@serverless-devs/s 2.0.100-beta.2 → 2.0.100-beta.3
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 +23 -23
- package/lib/component/index.js +35 -35
- package/lib/config/add/index.js +20 -20
- package/lib/config/delete/index.js +20 -20
- package/lib/config/get/index.js +24 -24
- package/lib/config/index.js +1 -1
- package/lib/error/index.js +4 -3
- package/lib/help/index.js +16 -15
- package/lib/index.js +62 -62
- package/lib/init/index.js +42 -42
- package/lib/set/analysis/index.js +22 -22
- package/lib/set/index.js +1 -1
- package/lib/set/locale/index.js +22 -22
- package/lib/set/registry/index.js +22 -22
- package/lib/set/workspace/index.js +20 -20
- package/lib/update-notifier/index.js +1 -1
- package/package.json +1 -1
package/lib/config/index.js
CHANGED
|
@@ -31,7 +31,7 @@ __p += '`),K&&(O+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+O+`return __p
|
|
34
|
-
}`;var B=Ma(function(){return J(c,N+"return "+O).apply(i,p)});if(B.source=O,bs(B))throw B;return B}function pm(e){return Q(e).toLowerCase()}function gm(e){return Q(e).toUpperCase()}function dm(e,t,n){if(e=Q(e),e&&(n||t===i))return Vu(e);if(!e||!(t=Te(t)))return e;var u=Qe(e),a=Qe(t),c=Yu(u,a),p=Ku(u,a)+1;return Tt(u,c,p).join("")}function _m(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Ju(e)+1);if(!e||!(t=Te(t)))return e;var u=Qe(e),a=Ku(u,Qe(t))+1;return Tt(u,0,a).join("")}function mm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(bi,"");if(!e||!(t=Te(t)))return e;var u=Qe(e),a=Yu(u,Qe(t));return Tt(u,a).join("")}function vm(e,t){var n=cc,u=hc;if(re(t)){var a="separator"in t?t.separator:a;n="length"in t?G(t.length):n,u="omission"in t?Te(t.omission):u}e=Q(e);var c=e.length;if(sn(e)){var p=Qe(e);c=p.length}if(n>=c)return e;var g=n-un(u);if(g<1)return u;var _=p?Tt(p,0,g).join(""):e.slice(0,g);if(a===i)return _+u;if(p&&(g+=_.length-g),Ts(a)){if(e.slice(g).search(a)){var y,R=_;for(a.global||(a=Yi(a.source,Q(gu.exec(a))+"g")),a.lastIndex=0;y=a.exec(R);)var O=y.index;_=_.slice(0,O===i?g:O)}}else if(e.indexOf(Te(a),g)!=g){var S=_.lastIndexOf(a);S>-1&&(_=_.slice(0,S))}return _+u}function Em(e){return e=Q(e),e&&bc.test(e)?e.replace(cu,Kh):e}var wm=hn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ps=Uo("toUpperCase");function Da(e,t,n){return e=Q(e),t=n?i:t,t===i?Bh(e)?Qh(e):Ph(e):e.match(t)||[]}var Ma=z(function(e,t){try{return Le(e,i,t)}catch(n){return bs(n)?n:new H(n)}}),Am=dt(function(e,t){return De(t,function(n){n=ot(n),pt(e,n,Cs(e[n],e))}),e});function xm(e){var t=e==null?0:e.length,n=D();return e=t?ne(e,function(u){if(typeof u[1]!="function")throw new Me(f);return[n(u[0]),u[1]]}):[],z(function(u){for(var a=-1;++a<t;){var c=e[a];if(Le(c[0],this,u))return Le(c[1],this,u)}})}function ym(e){return Kp(He(e,v))}function Fs(e){return function(){return e}}function Rm(e,t){return e==null||e!==e?t:e}var Om=Wo(),Im=Wo(!0);function Se(e){return e}function qs(e){return mo(typeof e=="function"?e:He(e,v))}function Sm(e){return Eo(He(e,v))}function Cm(e,t){return wo(e,He(t,v))}var Lm=z(function(e,t){return function(n){return qn(n,e,t)}}),bm=z(function(e,t){return function(n){return qn(e,n,t)}});function Ds(e,t,n){var u=ce(t),a=Pr(t,u);n==null&&!(re(t)&&(a.length||!u.length))&&(n=t,t=e,e=this,a=Pr(t,ce(t)));var c=!(re(n)&&"chain"in n)||!!n.chain,p=mt(e);return De(a,function(g){var _=t[g];e[g]=_,p&&(e.prototype[g]=function(){var y=this.__chain__;if(c||y){var R=e(this.__wrapped__),O=R.__actions__=Re(this.__actions__);return O.push({func:_,args:arguments,thisArg:e}),R.__chain__=y,R}return _.apply(e,Rt([this.value()],arguments))})}),e}function Tm(){return fe._===this&&(fe._=rp),this}function Ms(){}function $m(e){return e=G(e),z(function(t){return Ao(t,e)})}var Nm=ds(ne),Pm=ds(Wu),Fm=ds(Hi);function Ua(e){return xs(e)?Wi(ot(e)):cg(e)}function qm(e){return function(t){return e==null?i:Wt(e,t)}}var Dm=Bo(),Mm=Bo(!0);function Us(){return[]}function Hs(){return!1}function Um(){return{}}function Hm(){return""}function Wm(){return!0}function Gm(e,t){if(e=G(e),e<1||e>xt)return[];var n=it,u=de(e,it);t=D(t),e-=it;for(var a=Xi(u,t);++n<e;)t(n);return a}function Bm(e){return W(e)?ne(e,ot):$e(e)?[e]:Re(sa(Q(e)))}function Xm(e){var t=++tp;return Q(e)+t}var zm=Hr(function(e,t){return e+t},0),Vm=_s("ceil"),Ym=Hr(function(e,t){return e/t},1),Km=_s("floor");function Zm(e){return e&&e.length?Nr(e,Se,ts):i}function Jm(e,t){return e&&e.length?Nr(e,D(t,2),ts):i}function Qm(e){return Xu(e,Se)}function jm(e,t){return Xu(e,D(t,2))}function km(e){return e&&e.length?Nr(e,Se,ss):i}function ev(e,t){return e&&e.length?Nr(e,D(t,2),ss):i}var tv=Hr(function(e,t){return e*t},1),nv=_s("round"),rv=Hr(function(e,t){return e-t},0);function iv(e){return e&&e.length?Bi(e,Se):0}function sv(e,t){return e&&e.length?Bi(e,D(t,2)):0}return l.after=S0,l.ary=_a,l.assign=g_,l.assignIn=ba,l.assignInWith=kr,l.assignWith=d_,l.at=__,l.before=ma,l.bind=Cs,l.bindAll=Am,l.bindKey=va,l.castArray=U0,l.chain=pa,l.chunk=Kg,l.compact=Zg,l.concat=Jg,l.cond=xm,l.conforms=ym,l.constant=Fs,l.countBy=i0,l.create=m_,l.curry=Ea,l.curryRight=wa,l.debounce=Aa,l.defaults=v_,l.defaultsDeep=E_,l.defer=C0,l.delay=L0,l.difference=Qg,l.differenceBy=jg,l.differenceWith=kg,l.drop=ed,l.dropRight=td,l.dropRightWhile=nd,l.dropWhile=rd,l.fill=id,l.filter=u0,l.flatMap=l0,l.flatMapDeep=f0,l.flatMapDepth=c0,l.flatten=la,l.flattenDeep=sd,l.flattenDepth=ud,l.flip=b0,l.flow=Om,l.flowRight=Im,l.fromPairs=od,l.functions=I_,l.functionsIn=S_,l.groupBy=h0,l.initial=ld,l.intersection=fd,l.intersectionBy=cd,l.intersectionWith=hd,l.invert=L_,l.invertBy=b_,l.invokeMap=g0,l.iteratee=qs,l.keyBy=d0,l.keys=ce,l.keysIn=Ie,l.map=Yr,l.mapKeys=$_,l.mapValues=N_,l.matches=Sm,l.matchesProperty=Cm,l.memoize=Zr,l.merge=P_,l.mergeWith=Ta,l.method=Lm,l.methodOf=bm,l.mixin=Ds,l.negate=Jr,l.nthArg=$m,l.omit=F_,l.omitBy=q_,l.once=T0,l.orderBy=_0,l.over=Nm,l.overArgs=$0,l.overEvery=Pm,l.overSome=Fm,l.partial=Ls,l.partialRight=xa,l.partition=m0,l.pick=D_,l.pickBy=$a,l.property=Ua,l.propertyOf=qm,l.pull=_d,l.pullAll=ca,l.pullAllBy=md,l.pullAllWith=vd,l.pullAt=Ed,l.range=Dm,l.rangeRight=Mm,l.rearg=N0,l.reject=w0,l.remove=wd,l.rest=P0,l.reverse=Is,l.sampleSize=x0,l.set=U_,l.setWith=H_,l.shuffle=y0,l.slice=Ad,l.sortBy=I0,l.sortedUniq=Cd,l.sortedUniqBy=Ld,l.split=lm,l.spread=F0,l.tail=bd,l.take=Td,l.takeRight=$d,l.takeRightWhile=Nd,l.takeWhile=Pd,l.tap=Zd,l.throttle=q0,l.thru=Vr,l.toArray=Sa,l.toPairs=Na,l.toPairsIn=Pa,l.toPath=Bm,l.toPlainObject=La,l.transform=W_,l.unary=D0,l.union=Fd,l.unionBy=qd,l.unionWith=Dd,l.uniq=Md,l.uniqBy=Ud,l.uniqWith=Hd,l.unset=G_,l.unzip=Ss,l.unzipWith=ha,l.update=B_,l.updateWith=X_,l.values=dn,l.valuesIn=z_,l.without=Wd,l.words=Da,l.wrap=M0,l.xor=Gd,l.xorBy=Bd,l.xorWith=Xd,l.zip=zd,l.zipObject=Vd,l.zipObjectDeep=Yd,l.zipWith=Kd,l.entries=Na,l.entriesIn=Pa,l.extend=ba,l.extendWith=kr,Ds(l,l),l.add=zm,l.attempt=Ma,l.camelCase=Z_,l.capitalize=Fa,l.ceil=Vm,l.clamp=V_,l.clone=H0,l.cloneDeep=G0,l.cloneDeepWith=B0,l.cloneWith=W0,l.conformsTo=X0,l.deburr=qa,l.defaultTo=Rm,l.divide=Ym,l.endsWith=J_,l.eq=ke,l.escape=Q_,l.escapeRegExp=j_,l.every=s0,l.find=o0,l.findIndex=oa,l.findKey=w_,l.findLast=a0,l.findLastIndex=aa,l.findLastKey=A_,l.floor=Km,l.forEach=ga,l.forEachRight=da,l.forIn=x_,l.forInRight=y_,l.forOwn=R_,l.forOwnRight=O_,l.get=$s,l.gt=z0,l.gte=V0,l.has=C_,l.hasIn=Ns,l.head=fa,l.identity=Se,l.includes=p0,l.indexOf=ad,l.inRange=Y_,l.invoke=T_,l.isArguments=Xt,l.isArray=W,l.isArrayBuffer=Y0,l.isArrayLike=Oe,l.isArrayLikeObject=se,l.isBoolean=K0,l.isBuffer=$t,l.isDate=Z0,l.isElement=J0,l.isEmpty=Q0,l.isEqual=j0,l.isEqualWith=k0,l.isError=bs,l.isFinite=e_,l.isFunction=mt,l.isInteger=ya,l.isLength=Qr,l.isMap=Ra,l.isMatch=t_,l.isMatchWith=n_,l.isNaN=r_,l.isNative=i_,l.isNil=u_,l.isNull=s_,l.isNumber=Oa,l.isObject=re,l.isObjectLike=ie,l.isPlainObject=Gn,l.isRegExp=Ts,l.isSafeInteger=o_,l.isSet=Ia,l.isString=jr,l.isSymbol=$e,l.isTypedArray=gn,l.isUndefined=a_,l.isWeakMap=l_,l.isWeakSet=f_,l.join=pd,l.kebabCase=k_,l.last=Ge,l.lastIndexOf=gd,l.lowerCase=em,l.lowerFirst=tm,l.lt=c_,l.lte=h_,l.max=Zm,l.maxBy=Jm,l.mean=Qm,l.meanBy=jm,l.min=km,l.minBy=ev,l.stubArray=Us,l.stubFalse=Hs,l.stubObject=Um,l.stubString=Hm,l.stubTrue=Wm,l.multiply=tv,l.nth=dd,l.noConflict=Tm,l.noop=Ms,l.now=Kr,l.pad=nm,l.padEnd=rm,l.padStart=im,l.parseInt=sm,l.random=K_,l.reduce=v0,l.reduceRight=E0,l.repeat=um,l.replace=om,l.result=M_,l.round=nv,l.runInContext=d,l.sample=A0,l.size=R0,l.snakeCase=am,l.some=O0,l.sortedIndex=xd,l.sortedIndexBy=yd,l.sortedIndexOf=Rd,l.sortedLastIndex=Od,l.sortedLastIndexBy=Id,l.sortedLastIndexOf=Sd,l.startCase=fm,l.startsWith=cm,l.subtract=rv,l.sum=iv,l.sumBy=sv,l.template=hm,l.times=Gm,l.toFinite=vt,l.toInteger=G,l.toLength=Ca,l.toLower=pm,l.toNumber=Be,l.toSafeInteger=p_,l.toString=Q,l.toUpper=gm,l.trim=dm,l.trimEnd=_m,l.trimStart=mm,l.truncate=vm,l.unescape=Em,l.uniqueId=Xm,l.upperCase=wm,l.upperFirst=Ps,l.each=ga,l.eachRight=da,l.first=fa,Ds(l,function(){var e={};return st(l,function(t,n){j.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=r,De(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),De(["drop","take"],function(e,t){Y.prototype[e]=function(n){n=n===i?1:le(G(n),0);var u=this.__filtered__&&!t?new Y(this):this.clone();return u.__filtered__?u.__takeCount__=de(n,u.__takeCount__):u.__views__.push({size:de(n,it),type:e+(u.__dir__<0?"Right":"")}),u},Y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),De(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==au||n==_c;Y.prototype[e]=function(a){var c=this.clone();return c.__iteratees__.push({iteratee:D(a,3),type:n}),c.__filtered__=c.__filtered__||u,c}}),De(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),De(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(Se)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new Y(this):this.map(function(n){return qn(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(Jr(D(e)))},Y.prototype.slice=function(e,t){e=G(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(it)},st(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),a=l[u?"take"+(t=="last"?"Right":""):t],c=u||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,g=u?[1]:arguments,_=p instanceof Y,y=g[0],R=_||W(p),O=function(V){var K=a.apply(l,Rt([V],g));return u&&S?K[0]:K};R&&n&&typeof y=="function"&&y.length!=1&&(_=R=!1);var S=this.__chain__,N=!!this.__actions__.length,M=c&&!S,B=_&&!N;if(!c&&R){p=B?p:new Y(this);var U=e.apply(p,g);return U.__actions__.push({func:Vr,args:[O],thisArg:i}),new Ue(U,S)}return M&&B?e.apply(this,g):(U=this.thru(O),M?u?U.value()[0]:U.value():U)})}),De(["pop","push","shift","sort","splice","unshift"],function(e){var t=vr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(u&&!this.__chain__){var c=this.value();return t.apply(W(c)?c:[],a)}return this[n](function(p){return t.apply(W(p)?p:[],a)})}}),st(Y.prototype,function(e,t){var n=l[t];if(n){var u=n.name+"";j.call(ln,u)||(ln[u]=[]),ln[u].push({name:t,func:n})}}),ln[Ur(i,Pt).name]=[{name:"wrapper",func:i}],Y.prototype.clone=Ep,Y.prototype.reverse=wp,Y.prototype.value=Ap,l.prototype.at=Jd,l.prototype.chain=Qd,l.prototype.commit=jd,l.prototype.next=kd,l.prototype.plant=t0,l.prototype.reverse=n0,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=r0,l.prototype.first=l.prototype.head,Ln&&(l.prototype[Ln]=e0),l},It=jh();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(fe._=It,define(function(){return It})):qt?((qt.exports=It)._=It,qi._=It):fe._=It}).call(_n)});var Vn=F((sw,Ja)=>{var av="2.0.0",lv=256,fv=Number.MAX_SAFE_INTEGER||9007199254740991,cv=16;Ja.exports={SEMVER_SPEC_VERSION:av,MAX_LENGTH:lv,MAX_SAFE_INTEGER:fv,MAX_SAFE_COMPONENT_LENGTH:cv}});var Yn=F((uw,Qa)=>{var hv=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Qa.exports=hv});var Yt=F((Nt,ja)=>{var{MAX_SAFE_COMPONENT_LENGTH:Xs}=Vn(),pv=Yn();Nt=ja.exports={};var gv=Nt.re=[],L=Nt.src=[],b=Nt.t={},dv=0,X=(i,r,s)=>{let o=dv++;pv(o,r),b[i]=o,L[o]=r,gv[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",`(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${L[b.NUMERICIDENTIFIER]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${L[b.NUMERICIDENTIFIERLOOSE]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${L[b.PRERELEASEIDENTIFIER]}(?:\\.${L[b.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${L[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[b.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER","[0-9A-Za-z-]+");X("BUILD",`(?:\\+(${L[b.BUILDIDENTIFIER]}(?:\\.${L[b.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${L[b.MAINVERSION]}${L[b.PRERELEASE]}?${L[b.BUILD]}?`);X("FULL",`^${L[b.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${L[b.MAINVERSIONLOOSE]}${L[b.PRERELEASELOOSE]}?${L[b.BUILD]}?`);X("LOOSE",`^${L[b.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${L[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${L[b.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:${L[b.PRERELEASE]})?${L[b.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:${L[b.PRERELEASELOOSE]})?${L[b.BUILD]}?)?)?`);X("XRANGE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAINLOOSE]}$`);X("COERCE",`(^|[^\\d])(\\d{1,${Xs}})(?:\\.(\\d{1,${Xs}}))?(?:\\.(\\d{1,${Xs}}))?(?:$|[^\\d])`);X("COERCERTL",L[b.COERCE],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${L[b.LONETILDE]}\\s+`,!0);Nt.tildeTrimReplace="$1~";X("TILDE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${L[b.LONECARET]}\\s+`,!0);Nt.caretTrimReplace="$1^";X("CARET",`^${L[b.LONECARET]}${L[b.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${L[b.LONECARET]}${L[b.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${L[b.GTLT]}\\s*(${L[b.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]}|${L[b.XRANGEPLAIN]})`,!0);Nt.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${L[b.XRANGEPLAIN]})\\s+-\\s+(${L[b.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${L[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[b.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0.0.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Kn=F((ow,ka)=>{var _v=["includePrerelease","loose","rtl"],mv=i=>i?typeof i!="object"?{loose:!0}:_v.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};ka.exports=mv});var ti=F((aw,nl)=>{var el=/^[0-9]+$/,tl=(i,r)=>{let s=el.test(i),o=el.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},vv=(i,r)=>tl(r,i);nl.exports={compareIdentifiers:tl,rcompareIdentifiers:vv}});var me=F((lw,ul)=>{var ni=Yn(),{MAX_LENGTH:rl,MAX_SAFE_INTEGER:ri}=Vn(),{re:il,t:sl}=Yt(),Ev=Kn(),{compareIdentifiers:Zn}=ti(),Xe=class{constructor(r,s){if(s=Ev(s),r instanceof Xe){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>rl)throw new TypeError(`version is longer than ${rl} characters`);ni("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?il[sl.LOOSE]:il[sl.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>ri||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ri||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ri||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){let h=+f;if(h>=0&&h<ri)return h}return f}):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(ni("SemVer.compare",this.version,this.options,r),!(r instanceof Xe)){if(typeof r=="string"&&r===this.version)return 0;r=new Xe(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Xe||(r=new Xe(r,this.options)),Zn(this.major,r.major)||Zn(this.minor,r.minor)||Zn(this.patch,r.patch)}comparePre(r){if(r instanceof Xe||(r=new Xe(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],f=r.prerelease[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}compareBuild(r){r instanceof Xe||(r=new Xe(r,this.options));let s=0;do{let o=this.build[s],f=r.build[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}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}};ul.exports=Xe});var Kt=F((fw,fl)=>{var{MAX_LENGTH:wv}=Vn(),{re:ol,t:al}=Yt(),ll=me(),Av=Kn(),xv=(i,r)=>{if(r=Av(r),i instanceof ll)return i;if(typeof i!="string"||i.length>wv||!(r.loose?ol[al.LOOSE]:ol[al.FULL]).test(i))return null;try{return new ll(i,r)}catch{return null}};fl.exports=xv});var hl=F((cw,cl)=>{var yv=Kt(),Rv=(i,r)=>{let s=yv(i,r);return s?s.version:null};cl.exports=Rv});var gl=F((hw,pl)=>{var Ov=Kt(),Iv=(i,r)=>{let s=Ov(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};pl.exports=Iv});var _l=F((pw,dl)=>{var Sv=me(),Cv=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new Sv(i,s).inc(r,o).version}catch{return null}};dl.exports=Cv});var ze=F((gw,vl)=>{var ml=me(),Lv=(i,r,s)=>new ml(i,s).compare(new ml(r,s));vl.exports=Lv});var ii=F((dw,El)=>{var bv=ze(),Tv=(i,r,s)=>bv(i,r,s)===0;El.exports=Tv});var xl=F((_w,Al)=>{var wl=Kt(),$v=ii(),Nv=(i,r)=>{if($v(i,r))return null;{let s=wl(i),o=wl(r),f=s.prerelease.length||o.prerelease.length,h=f?"pre":"",m=f?"prerelease":"";for(let A in s)if((A==="major"||A==="minor"||A==="patch")&&s[A]!==o[A])return h+A;return m}};Al.exports=Nv});var Rl=F((mw,yl)=>{var Pv=me(),Fv=(i,r)=>new Pv(i,r).major;yl.exports=Fv});var Il=F((vw,Ol)=>{var qv=me(),Dv=(i,r)=>new qv(i,r).minor;Ol.exports=Dv});var Cl=F((Ew,Sl)=>{var Mv=me(),Uv=(i,r)=>new Mv(i,r).patch;Sl.exports=Uv});var bl=F((ww,Ll)=>{var Hv=Kt(),Wv=(i,r)=>{let s=Hv(i,r);return s&&s.prerelease.length?s.prerelease:null};Ll.exports=Wv});var $l=F((Aw,Tl)=>{var Gv=ze(),Bv=(i,r,s)=>Gv(r,i,s);Tl.exports=Bv});var Pl=F((xw,Nl)=>{var Xv=ze(),zv=(i,r)=>Xv(i,r,!0);Nl.exports=zv});var si=F((yw,ql)=>{var Fl=me(),Vv=(i,r,s)=>{let o=new Fl(i,s),f=new Fl(r,s);return o.compare(f)||o.compareBuild(f)};ql.exports=Vv});var Ml=F((Rw,Dl)=>{var Yv=si(),Kv=(i,r)=>i.sort((s,o)=>Yv(s,o,r));Dl.exports=Kv});var Hl=F((Ow,Ul)=>{var Zv=si(),Jv=(i,r)=>i.sort((s,o)=>Zv(o,s,r));Ul.exports=Jv});var Jn=F((Iw,Wl)=>{var Qv=ze(),jv=(i,r,s)=>Qv(i,r,s)>0;Wl.exports=jv});var ui=F((Sw,Gl)=>{var kv=ze(),e1=(i,r,s)=>kv(i,r,s)<0;Gl.exports=e1});var zs=F((Cw,Bl)=>{var t1=ze(),n1=(i,r,s)=>t1(i,r,s)!==0;Bl.exports=n1});var oi=F((Lw,Xl)=>{var r1=ze(),i1=(i,r,s)=>r1(i,r,s)>=0;Xl.exports=i1});var ai=F((bw,zl)=>{var s1=ze(),u1=(i,r,s)=>s1(i,r,s)<=0;zl.exports=u1});var Vs=F((Tw,Vl)=>{var o1=ii(),a1=zs(),l1=Jn(),f1=oi(),c1=ui(),h1=ai(),p1=(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 o1(i,s,o);case"!=":return a1(i,s,o);case">":return l1(i,s,o);case">=":return f1(i,s,o);case"<":return c1(i,s,o);case"<=":return h1(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};Vl.exports=p1});var Kl=F(($w,Yl)=>{var g1=me(),d1=Kt(),{re:li,t:fi}=Yt(),_1=(i,r)=>{if(i instanceof g1)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(li[fi.COERCE]);else{let o;for(;(o=li[fi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),li[fi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;li[fi.COERCERTL].lastIndex=-1}return s===null?null:d1(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};Yl.exports=_1});var Jl=F((Nw,Zl)=>{"use strict";Zl.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var jl=F((Pw,Ql)=>{"use strict";Ql.exports=Z;Z.Node=Zt;Z.create=Z;function Z(i){var r=this;if(r instanceof Z||(r=new Z),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(f){r.push(f)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}Z.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,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};Z.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var r=this.head;i.list=this,i.next=r,r&&(r.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};Z.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var r=this.tail;i.list=this,i.prev=r,r&&(r.next=i),this.tail=i,this.head||(this.head=i),this.length++}};Z.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)v1(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)E1(this,arguments[i]);return this.length};Z.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};Z.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};Z.prototype.forEach=function(i,r){r=r||this;for(var s=this.head,o=0;s!==null;o++)i.call(r,s.value,o,this),s=s.next};Z.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};Z.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};Z.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};Z.prototype.map=function(i,r){r=r||this;for(var s=new Z,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};Z.prototype.mapReverse=function(i,r){r=r||this;for(var s=new Z,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};Z.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 f=0;o!==null;f++)s=i(s,o.value,f),o=o.next;return s};Z.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 f=this.length-1;o!==null;f--)s=i(s,o.value,f),o=o.prev;return s};Z.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};Z.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};Z.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 Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(;f!==null&&o<r;o++,f=f.next)s.push(f.value);return s};Z.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 Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,f=this.tail;f!==null&&o>r;o--)f=f.prev;for(;f!==null&&o>i;o--,f=f.prev)s.push(f.value);return s};Z.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(var h=[],o=0;f&&o<r;o++)h.push(f.value),f=this.removeNode(f);f===null&&(f=this.tail),f!==this.head&&f!==this.tail&&(f=f.prev);for(var o=0;o<s.length;o++)f=m1(this,f,s[o]);return h};Z.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 m1(i,r,s){var o=r===i.head?new Zt(s,null,r,i):new Zt(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function v1(i,r){i.tail=new Zt(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function E1(i,r){i.head=new Zt(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function Zt(i,r,s,o){if(!(this instanceof Zt))return new Zt(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{Jl()(Z)}catch{}});var uf=F((Fw,sf)=>{"use strict";var w1=jl(),Jt=Symbol("max"),wt=Symbol("length"),mn=Symbol("lengthCalculator"),Qn=Symbol("allowStale"),Qt=Symbol("maxAge"),At=Symbol("dispose"),kl=Symbol("noDisposeOnSet"),he=Symbol("lruList"),tt=Symbol("cache"),ef=Symbol("updateAgeOnGet"),Ys=()=>1,tf=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[Jt]=r.max||1/0,o=r.length||Ys;if(this[mn]=typeof o!="function"?Ys:o,this[Qn]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Qt]=r.maxAge||0,this[At]=r.dispose,this[kl]=r.noDisposeOnSet||!1,this[ef]=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[Jt]=r||1/0,jn(this)}get max(){return this[Jt]}set allowStale(r){this[Qn]=!!r}get allowStale(){return this[Qn]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Qt]=r,jn(this)}get maxAge(){return this[Qt]}set lengthCalculator(r){typeof r!="function"&&(r=Ys),r!==this[mn]&&(this[mn]=r,this[wt]=0,this[he].forEach(s=>{s.length=this[mn](s.value,s.key),this[wt]+=s.length})),jn(this)}get lengthCalculator(){return this[mn]}get length(){return this[wt]}get itemCount(){return this[he].length}rforEach(r,s){s=s||this;for(let o=this[he].tail;o!==null;){let f=o.prev;rf(this,r,o,s),o=f}}forEach(r,s){s=s||this;for(let o=this[he].head;o!==null;){let f=o.next;rf(this,r,o,s),o=f}}keys(){return this[he].toArray().map(r=>r.key)}values(){return this[he].toArray().map(r=>r.value)}reset(){this[At]&&this[he]&&this[he].length&&this[he].forEach(r=>this[At](r.key,r.value)),this[tt]=new Map,this[he]=new w1,this[wt]=0}dump(){return this[he].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[he]}set(r,s,o){if(o=o||this[Qt],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let f=o?Date.now():0,h=this[mn](s,r);if(this[tt].has(r)){if(h>this[Jt])return vn(this,this[tt].get(r)),!1;let w=this[tt].get(r).value;return this[At]&&(this[kl]||this[At](r,w.value)),w.now=f,w.maxAge=o,w.value=s,this[wt]+=h-w.length,w.length=h,this.get(r),jn(this),!0}let m=new nf(r,s,h,f,o);return m.length>this[Jt]?(this[At]&&this[At](r,s),!1):(this[wt]+=m.length,this[he].unshift(m),this[tt].set(r,this[he].head),jn(this),!0)}has(r){if(!this[tt].has(r))return!1;let s=this[tt].get(r).value;return!ci(this,s)}get(r){return Ks(this,r,!0)}peek(r){return Ks(this,r,!1)}pop(){let r=this[he].tail;return r?(vn(this,r),r.value):null}del(r){vn(this,this[tt].get(r))}load(r){this.reset();let s=Date.now();for(let o=r.length-1;o>=0;o--){let f=r[o],h=f.e||0;if(h===0)this.set(f.k,f.v);else{let m=h-s;m>0&&this.set(f.k,f.v,m)}}}prune(){this[tt].forEach((r,s)=>Ks(this,s,!1))}},Ks=(i,r,s)=>{let o=i[tt].get(r);if(o){let f=o.value;if(ci(i,f)){if(vn(i,o),!i[Qn])return}else s&&(i[ef]&&(o.value.now=Date.now()),i[he].unshiftNode(o));return f.value}},ci=(i,r)=>{if(!r||!r.maxAge&&!i[Qt])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[Qt]&&s>i[Qt]},jn=i=>{if(i[wt]>i[Jt])for(let r=i[he].tail;i[wt]>i[Jt]&&r!==null;){let s=r.prev;vn(i,r),r=s}},vn=(i,r)=>{if(r){let s=r.value;i[At]&&i[At](s.key,s.value),i[wt]-=s.length,i[tt].delete(s.key),i[he].removeNode(r)}},nf=class{constructor(r,s,o,f,h){this.key=r,this.value=s,this.length=o,this.now=f,this.maxAge=h||0}},rf=(i,r,s,o)=>{let f=s.value;ci(i,f)&&(vn(i,s),i[Qn]||(f=void 0)),f&&r.call(o,f.value,f.key,i)};sf.exports=tf});var Ve=F((qw,ff)=>{var En=class{constructor(r,s){if(s=x1(s),r instanceof En)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new En(r.raw,s);if(r instanceof Zs)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(f=>!af(f[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let f of this.set)if(f.length===1&&S1(f[0])){this.set=[f];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}`,f=of.get(o);if(f)return f;let h=this.options.loose,m=h?ve[ge.HYPHENRANGELOOSE]:ve[ge.HYPHENRANGE];r=r.replace(m,D1(this.options.includePrerelease)),oe("hyphen replace",r),r=r.replace(ve[ge.COMPARATORTRIM],R1),oe("comparator trim",r,ve[ge.COMPARATORTRIM]),r=r.replace(ve[ge.TILDETRIM],O1),r=r.replace(ve[ge.CARETTRIM],I1),r=r.split(/\s+/).join(" ");let A=h?ve[ge.COMPARATORLOOSE]:ve[ge.COMPARATOR],w=r.split(" ").map(T=>C1(T,this.options)).join(" ").split(/\s+/).map(T=>q1(T,this.options)).filter(this.options.loose?T=>!!T.match(A):()=>!0).map(T=>new Zs(T,this.options)),v=w.length,I=new Map;for(let T of w){if(af(T))return[T];I.set(T.value,T)}I.size>1&&I.has("")&&I.delete("");let $=[...I.values()];return of.set(o,$),$}intersects(r,s){if(!(r instanceof En))throw new TypeError("a Range is required");return this.set.some(o=>lf(o,s)&&r.set.some(f=>lf(f,s)&&o.every(h=>f.every(m=>h.intersects(m,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new y1(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(M1(this.set[s],r,this.options))return!0;return!1}};ff.exports=En;var A1=uf(),of=new A1({max:1e3}),x1=Kn(),Zs=kn(),oe=Yn(),y1=me(),{re:ve,t:ge,comparatorTrimReplace:R1,tildeTrimReplace:O1,caretTrimReplace:I1}=Yt(),af=i=>i.value==="<0.0.0-0",S1=i=>i.value==="",lf=(i,r)=>{let s=!0,o=i.slice(),f=o.pop();for(;s&&o.length;)s=o.every(h=>f.intersects(h,r)),f=o.pop();return s},C1=(i,r)=>(oe("comp",i,r),i=T1(i,r),oe("caret",i),i=L1(i,r),oe("tildes",i),i=N1(i,r),oe("xrange",i),i=F1(i,r),oe("stars",i),i),xe=i=>!i||i.toLowerCase()==="x"||i==="*",L1=(i,r)=>i.trim().split(/\s+/).map(s=>b1(s,r)).join(" "),b1=(i,r)=>{let s=r.loose?ve[ge.TILDELOOSE]:ve[ge.TILDE];return i.replace(s,(o,f,h,m,A)=>{oe("tilde",i,o,f,h,m,A);let w;return xe(f)?w="":xe(h)?w=`>=${f}.0.0 <${+f+1}.0.0-0`:xe(m)?w=`>=${f}.${h}.0 <${f}.${+h+1}.0-0`:A?(oe("replaceTilde pr",A),w=`>=${f}.${h}.${m}-${A} <${f}.${+h+1}.0-0`):w=`>=${f}.${h}.${m} <${f}.${+h+1}.0-0`,oe("tilde return",w),w})},T1=(i,r)=>i.trim().split(/\s+/).map(s=>$1(s,r)).join(" "),$1=(i,r)=>{oe("caret",i,r);let s=r.loose?ve[ge.CARETLOOSE]:ve[ge.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(f,h,m,A,w)=>{oe("caret",i,f,h,m,A,w);let v;return xe(h)?v="":xe(m)?v=`>=${h}.0.0${o} <${+h+1}.0.0-0`:xe(A)?h==="0"?v=`>=${h}.${m}.0${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.0${o} <${+h+1}.0.0-0`:w?(oe("replaceCaret pr",w),h==="0"?m==="0"?v=`>=${h}.${m}.${A}-${w} <${h}.${m}.${+A+1}-0`:v=`>=${h}.${m}.${A}-${w} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${A}-${w} <${+h+1}.0.0-0`):(oe("no pr"),h==="0"?m==="0"?v=`>=${h}.${m}.${A}${o} <${h}.${m}.${+A+1}-0`:v=`>=${h}.${m}.${A}${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${A} <${+h+1}.0.0-0`),oe("caret return",v),v})},N1=(i,r)=>(oe("replaceXRanges",i,r),i.split(/\s+/).map(s=>P1(s,r)).join(" ")),P1=(i,r)=>{i=i.trim();let s=r.loose?ve[ge.XRANGELOOSE]:ve[ge.XRANGE];return i.replace(s,(o,f,h,m,A,w)=>{oe("xRange",i,o,f,h,m,A,w);let v=xe(h),I=v||xe(m),$=I||xe(A),T=$;return f==="="&&T&&(f=""),w=r.includePrerelease?"-0":"",v?f===">"||f==="<"?o="<0.0.0-0":o="*":f&&T?(I&&(m=0),A=0,f===">"?(f=">=",I?(h=+h+1,m=0,A=0):(m=+m+1,A=0)):f==="<="&&(f="<",I?h=+h+1:m=+m+1),f==="<"&&(w="-0"),o=`${f+h}.${m}.${A}${w}`):I?o=`>=${h}.0.0${w} <${+h+1}.0.0-0`:$&&(o=`>=${h}.${m}.0${w} <${h}.${+m+1}.0-0`),oe("xRange return",o),o})},F1=(i,r)=>(oe("replaceStars",i,r),i.trim().replace(ve[ge.STAR],"")),q1=(i,r)=>(oe("replaceGTE0",i,r),i.trim().replace(ve[r.includePrerelease?ge.GTE0PRE:ge.GTE0],"")),D1=i=>(r,s,o,f,h,m,A,w,v,I,$,T,P)=>(xe(o)?s="":xe(f)?s=`>=${o}.0.0${i?"-0":""}`:xe(h)?s=`>=${o}.${f}.0${i?"-0":""}`:m?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,xe(v)?w="":xe(I)?w=`<${+v+1}.0.0-0`:xe($)?w=`<${v}.${+I+1}.0-0`:T?w=`<=${v}.${I}.${$}-${T}`:i?w=`<${v}.${I}.${+$+1}-0`:w=`<=${w}`,`${s} ${w}`.trim()),M1=(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(oe(i[o].semver),i[o].semver!==Zs.ANY&&i[o].semver.prerelease.length>0){let f=i[o].semver;if(f.major===r.major&&f.minor===r.minor&&f.patch===r.patch)return!0}return!1}return!0}});var kn=F((Dw,df)=>{var er=Symbol("SemVer ANY"),tr=class{static get ANY(){return er}constructor(r,s){if(s=U1(s),r instanceof tr){if(r.loose===!!s.loose)return r;r=r.value}Qs("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===er?this.value="":this.value=this.operator+this.semver.version,Qs("comp",this)}parse(r){let s=this.options.loose?cf[hf.COMPARATORLOOSE]:cf[hf.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 pf(o[2],this.options.loose):this.semver=er}toString(){return this.value}test(r){if(Qs("Comparator.test",r,this.options.loose),this.semver===er||r===er)return!0;if(typeof r=="string")try{r=new pf(r,this.options)}catch{return!1}return Js(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof tr))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new gf(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new gf(this.value,s).test(r.semver);let o=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),f=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),h=this.semver.version===r.semver.version,m=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),A=Js(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),w=Js(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||f||h&&m||A||w}};df.exports=tr;var U1=Kn(),{re:cf,t:hf}=Yt(),Js=Vs(),Qs=Yn(),pf=me(),gf=Ve()});var nr=F((Mw,_f)=>{var H1=Ve(),W1=(i,r,s)=>{try{r=new H1(r,s)}catch{return!1}return r.test(i)};_f.exports=W1});var vf=F((Uw,mf)=>{var G1=Ve(),B1=(i,r)=>new G1(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));mf.exports=B1});var wf=F((Hw,Ef)=>{var X1=me(),z1=Ve(),V1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new z1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===-1)&&(o=m,f=new X1(o,s))}),o};Ef.exports=V1});var xf=F((Ww,Af)=>{var Y1=me(),K1=Ve(),Z1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new K1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===1)&&(o=m,f=new Y1(o,s))}),o};Af.exports=Z1});var Of=F((Gw,Rf)=>{var js=me(),J1=Ve(),yf=Jn(),Q1=(i,r)=>{i=new J1(i,r);let s=new js("0.0.0");if(i.test(s)||(s=new js("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let f=i.set[o],h=null;f.forEach(m=>{let A=new js(m.semver.version);switch(m.operator){case">":A.prerelease.length===0?A.patch++:A.prerelease.push(0),A.raw=A.format();case"":case">=":(!h||yf(A,h))&&(h=A);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${m.operator}`)}}),h&&(!s||yf(s,h))&&(s=h)}return s&&i.test(s)?s:null};Rf.exports=Q1});var Sf=F((Bw,If)=>{var j1=Ve(),k1=(i,r)=>{try{return new j1(i,r).range||"*"}catch{return null}};If.exports=k1});var hi=F((Xw,Tf)=>{var eE=me(),Cf=kn(),{ANY:tE}=Cf,nE=Ve(),rE=nr(),Lf=Jn(),bf=ui(),iE=ai(),sE=oi(),uE=(i,r,s,o)=>{i=new eE(i,o),r=new nE(r,o);let f,h,m,A,w;switch(s){case">":f=Lf,h=iE,m=bf,A=">",w=">=";break;case"<":f=bf,h=sE,m=Lf,A="<",w="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(rE(i,r,o))return!1;for(let v=0;v<r.set.length;++v){let I=r.set[v],$=null,T=null;if(I.forEach(P=>{P.semver===tE&&(P=new Cf(">=0.0.0")),$=$||P,T=T||P,f(P.semver,$.semver,o)?$=P:m(P.semver,T.semver,o)&&(T=P)}),$.operator===A||$.operator===w||(!T.operator||T.operator===A)&&h(i,T.semver))return!1;if(T.operator===w&&m(i,T.semver))return!1}return!0};Tf.exports=uE});var Nf=F((zw,$f)=>{var oE=hi(),aE=(i,r,s)=>oE(i,r,">",s);$f.exports=aE});var Ff=F((Vw,Pf)=>{var lE=hi(),fE=(i,r,s)=>lE(i,r,"<",s);Pf.exports=fE});var Mf=F((Yw,Df)=>{var qf=Ve(),cE=(i,r,s)=>(i=new qf(i,s),r=new qf(r,s),i.intersects(r));Df.exports=cE});var Hf=F((Kw,Uf)=>{var hE=nr(),pE=ze();Uf.exports=(i,r,s)=>{let o=[],f=null,h=null,m=i.sort((I,$)=>pE(I,$,s));for(let I of m)hE(I,r,s)?(h=I,f||(f=I)):(h&&o.push([f,h]),h=null,f=null);f&&o.push([f,null]);let A=[];for(let[I,$]of o)I===$?A.push(I):!$&&I===m[0]?A.push("*"):$?I===m[0]?A.push(`<=${$}`):A.push(`${I} - ${$}`):A.push(`>=${I}`);let w=A.join(" || "),v=typeof r.raw=="string"?r.raw:String(r);return w.length<v.length?w:r}});var zf=F((Zw,Xf)=>{var Wf=Ve(),pi=kn(),{ANY:ks}=pi,rr=nr(),eu=ze(),gE=(i,r,s={})=>{if(i===r)return!0;i=new Wf(i,s),r=new Wf(r,s);let o=!1;e:for(let f of i.set){for(let h of r.set){let m=dE(f,h,s);if(o=o||m!==null,m)continue e}if(o)return!1}return!0},dE=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===ks){if(r.length===1&&r[0].semver===ks)return!0;s.includePrerelease?i=[new pi(">=0.0.0-0")]:i=[new pi(">=0.0.0")]}if(r.length===1&&r[0].semver===ks){if(s.includePrerelease)return!0;r=[new pi(">=0.0.0")]}let o=new Set,f,h;for(let P of i)P.operator===">"||P.operator===">="?f=Gf(f,P,s):P.operator==="<"||P.operator==="<="?h=Bf(h,P,s):o.add(P.semver);if(o.size>1)return null;let m;if(f&&h){if(m=eu(f.semver,h.semver,s),m>0)return null;if(m===0&&(f.operator!==">="||h.operator!=="<="))return null}for(let P of o){if(f&&!rr(P,String(f),s)||h&&!rr(P,String(h),s))return null;for(let ye of r)if(!rr(P,String(ye),s))return!1;return!0}let A,w,v,I,$=h&&!s.includePrerelease&&h.semver.prerelease.length?h.semver:!1,T=f&&!s.includePrerelease&&f.semver.prerelease.length?f.semver:!1;$&&$.prerelease.length===1&&h.operator==="<"&&$.prerelease[0]===0&&($=!1);for(let P of r){if(I=I||P.operator===">"||P.operator===">=",v=v||P.operator==="<"||P.operator==="<=",f){if(T&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===T.major&&P.semver.minor===T.minor&&P.semver.patch===T.patch&&(T=!1),P.operator===">"||P.operator===">="){if(A=Gf(f,P,s),A===P&&A!==f)return!1}else if(f.operator===">="&&!rr(f.semver,String(P),s))return!1}if(h){if($&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===$.major&&P.semver.minor===$.minor&&P.semver.patch===$.patch&&($=!1),P.operator==="<"||P.operator==="<="){if(w=Bf(h,P,s),w===P&&w!==h)return!1}else if(h.operator==="<="&&!rr(h.semver,String(P),s))return!1}if(!P.operator&&(h||f)&&m!==0)return!1}return!(f&&v&&!h&&m!==0||h&&I&&!f&&m!==0||T||$)},Gf=(i,r,s)=>{if(!i)return r;let o=eu(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},Bf=(i,r,s)=>{if(!i)return r;let o=eu(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};Xf.exports=gE});var Yf=F((Jw,Vf)=>{var tu=Yt();Vf.exports={re:tu.re,src:tu.src,tokens:tu.t,SEMVER_SPEC_VERSION:Vn().SEMVER_SPEC_VERSION,SemVer:me(),compareIdentifiers:ti().compareIdentifiers,rcompareIdentifiers:ti().rcompareIdentifiers,parse:Kt(),valid:hl(),clean:gl(),inc:_l(),diff:xl(),major:Rl(),minor:Il(),patch:Cl(),prerelease:bl(),compare:ze(),rcompare:$l(),compareLoose:Pl(),compareBuild:si(),sort:Ml(),rsort:Hl(),gt:Jn(),lt:ui(),eq:ii(),neq:zs(),gte:oi(),lte:ai(),cmp:Vs(),coerce:Kl(),Comparator:kn(),Range:Ve(),satisfies:nr(),toComparators:vf(),maxSatisfying:wf(),minSatisfying:xf(),minVersion:Of(),validRange:Sf(),outside:hi(),gtr:Nf(),ltr:Ff(),intersects:Mf(),simplifyRange:Hf(),subset:zf()}});var gi=F(Fe=>{"use strict";var _E=Fe&&Fe.__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]}),mE=Fe&&Fe.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),vE=Fe&&Fe.__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)&&_E(r,i,s);return mE(r,i),r},Kf=Fe&&Fe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getCoreVersion=void 0;var Zf=Kf(require("path")),Jf=Kf(require("fs")),nu=vE(require("@serverless-devs/core")),EE=Yf(),Qf=Zf.default.join(nu.getRootHome(),"cache","core"),ru=Zf.default.join(Qf,"package.json");function wE(){if(Jf.default.existsSync(ru)){var i=require("@serverless-devs/core/package.json").version,r=jf();return EE.gt(r,i)?require(Qf):nu}return nu}function jf(){return Jf.default.existsSync(ru)?require(ru).version:void 0}Fe.getCoreVersion=jf;Fe.default=wE()});var rc=F(Ce=>{"use strict";var AE=Ce&&Ce.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function A(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(A,w)}v((o=o.apply(i,r||[])).next())})},xE=Ce&&Ce.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function A(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},kf=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.handlerProfileFile=Ce.getConfig=Ce.setConfig=void 0;var ec=kf(require("path")),iu=kf(gi()),at=iu.default.fse,di=iu.default.jsyaml,su=iu.default.getRootHome;function yE(i){var r=nc();at.writeFileSync(r,di.dump(i))}function tc(){var i=nc();if(!at.existsSync(i))return{};try{var r=di.load(at.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function nc(){var i=ec.default.join(su(),"set-config.yml");return at.existsSync(i)||at.createFileSync(i),i}function RE(i,r){var s=tc();s[i]=r,yE(s)}Ce.setConfig=RE;function OE(i,r){var s=tc();return s[i]||r}Ce.getConfig=OE;function IE(i){return AE(this,void 0,void 0,function(){var r,s,o,f,h,m,A;return xE(this,function(w){switch(w.label){case 0:if(r=i.filePath||"set-config.yml",s=ec.default.join(su(),r),o=at.existsSync(s),f={},o)return[3,5];h=su(),w.label=1;case 1:return w.trys.push([1,2,,4]),at.statSync(h),[3,4];case 2:return m=w.sent(),[4,at.mkdirSync(h)];case 3:return w.sent(),[3,4];case 4:return[3,6];case 5:try{f=di.load(at.readFileSync(s,"utf8"))||{}}catch(v){throw v}w.label=6;case 6:return i.read?[2,f]:(A=i.configKey||"",f[A]=i.data,[4,at.writeFileSync(s,di.dump(f))]);case 7:return w.sent(),[2,f]}})})}Ce.handlerProfileFile=IE});var ic=F((kw,SE)=>{SE.exports={name:"@serverless-devs/s",version:"2.0.100-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:"jest test/help.test.ts",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var lc=F(q=>{"use strict";var CE=q&&q.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),LE=q&&q.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),bE=q&&q.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&CE(r,i,s);return LE(r,i),r},ir=q&&q.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function A(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(A,w)}v((o=o.apply(i,r||[])).next())})},sr=q&&q.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function A(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},uu=q&&q.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(q,"__esModule",{value:!0});q.emoji=q.mark=q.replaceTemplate=q.getTemplatekey=q.replaceFun=q.getLang=q.printn=q.getFolderSize=q.getVersion=q.getPid=q.aiRequest=q.getCredentialWithAll=q.getCredentialWithExisted=q.getCredentialAliasList=q.getProcessArgv=q.bgRed=q.yellow=q.red=void 0;var sc=uu(require("path")),ur=uu(require("fs")),Ye=Za(),TE=uu(require("os")),Ke=bE(gi()),$E=rc(),uc=ic(),_i=Ke.default.colors,NE=Ke.default.got,PE=Ke.default.getMAC,FE=Ke.default.isDocker,qE=Ke.default.isCiCdEnv,DE=Ke.default.getGlobalArgs,ME=Ke.default.getYamlContent,UE=Ke.default.getRootHome,oc=Ke.default.getCredential,HE=Ke.default.getCredentialFromEnv;q.red=_i.hex("#fd5750");q.yellow=_i.hex("#F3F99D");q.bgRed=_i.hex("#000").bgHex("#fd5750");var WE=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=DE(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Ye.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Ye.filter)(s._argsObj,function(o){return!(0,Ye.includes)(["-h","--help"],o)}))})}catch{return{}}};q.getProcessArgv=WE;var GE=function(){return ir(void 0,void 0,void 0,function(){var i,r,s;return sr(this,function(o){switch(o.label){case 0:return i=[],[4,ME(sc.default.join(UE(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Ye.keys)(r)),[4,HE()];case 2:return s=o.sent(),s&&(i=(0,Ye.filter)(i,function(f){return f!==s.Alias}),i.push(s.Alias)),[2,i]}})})};q.getCredentialAliasList=GE;var BE=function(i){return ir(void 0,void 0,void 0,function(){var r,s;return sr(this,function(o){switch(o.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Ye.includes)(r,i)?[4,oc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Ye.omit)(s,"Alias")];case 3:return[2]}})})};q.getCredentialWithExisted=BE;var XE=function(){return ir(void 0,void 0,void 0,function(){var i,r,s,o,f,h;return sr(this,function(m){switch(m.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:if(i=m.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,m.label=2;case 2:return s<o.length?(f=o[s],[4,oc(f)]):[3,5];case 3:h=m.sent(),r[h.Alias]=(0,Ye.omit)(h,"Alias"),m.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};q.getCredentialWithAll=XE;var zE=function(i,r){r===void 0&&(r="unknow");try{var s=(0,$E.getConfig)("analysis");return s!=="enable"||FE()||qE()?void 0:NE("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0}).then(function(o){var f=(0,Ye.get)(o.body,"shorturl");f&&console.log(`AI Tips:
|
|
34
|
+
}`;var B=Ma(function(){return J(c,N+"return "+O).apply(i,p)});if(B.source=O,bs(B))throw B;return B}function pm(e){return Q(e).toLowerCase()}function gm(e){return Q(e).toUpperCase()}function dm(e,t,n){if(e=Q(e),e&&(n||t===i))return Vu(e);if(!e||!(t=Te(t)))return e;var u=Qe(e),a=Qe(t),c=Yu(u,a),p=Ku(u,a)+1;return Tt(u,c,p).join("")}function _m(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Ju(e)+1);if(!e||!(t=Te(t)))return e;var u=Qe(e),a=Ku(u,Qe(t))+1;return Tt(u,0,a).join("")}function mm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(bi,"");if(!e||!(t=Te(t)))return e;var u=Qe(e),a=Yu(u,Qe(t));return Tt(u,a).join("")}function vm(e,t){var n=cc,u=hc;if(re(t)){var a="separator"in t?t.separator:a;n="length"in t?G(t.length):n,u="omission"in t?Te(t.omission):u}e=Q(e);var c=e.length;if(sn(e)){var p=Qe(e);c=p.length}if(n>=c)return e;var g=n-un(u);if(g<1)return u;var _=p?Tt(p,0,g).join(""):e.slice(0,g);if(a===i)return _+u;if(p&&(g+=_.length-g),Ts(a)){if(e.slice(g).search(a)){var y,R=_;for(a.global||(a=Yi(a.source,Q(gu.exec(a))+"g")),a.lastIndex=0;y=a.exec(R);)var O=y.index;_=_.slice(0,O===i?g:O)}}else if(e.indexOf(Te(a),g)!=g){var S=_.lastIndexOf(a);S>-1&&(_=_.slice(0,S))}return _+u}function Em(e){return e=Q(e),e&&bc.test(e)?e.replace(cu,Kh):e}var wm=hn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ps=Uo("toUpperCase");function Da(e,t,n){return e=Q(e),t=n?i:t,t===i?Bh(e)?Qh(e):Ph(e):e.match(t)||[]}var Ma=z(function(e,t){try{return Le(e,i,t)}catch(n){return bs(n)?n:new H(n)}}),Am=dt(function(e,t){return De(t,function(n){n=ot(n),pt(e,n,Cs(e[n],e))}),e});function xm(e){var t=e==null?0:e.length,n=D();return e=t?ne(e,function(u){if(typeof u[1]!="function")throw new Me(f);return[n(u[0]),u[1]]}):[],z(function(u){for(var a=-1;++a<t;){var c=e[a];if(Le(c[0],this,u))return Le(c[1],this,u)}})}function ym(e){return Kp(He(e,v))}function Fs(e){return function(){return e}}function Rm(e,t){return e==null||e!==e?t:e}var Om=Wo(),Im=Wo(!0);function Se(e){return e}function qs(e){return mo(typeof e=="function"?e:He(e,v))}function Sm(e){return Eo(He(e,v))}function Cm(e,t){return wo(e,He(t,v))}var Lm=z(function(e,t){return function(n){return qn(n,e,t)}}),bm=z(function(e,t){return function(n){return qn(e,n,t)}});function Ds(e,t,n){var u=ce(t),a=Pr(t,u);n==null&&!(re(t)&&(a.length||!u.length))&&(n=t,t=e,e=this,a=Pr(t,ce(t)));var c=!(re(n)&&"chain"in n)||!!n.chain,p=mt(e);return De(a,function(g){var _=t[g];e[g]=_,p&&(e.prototype[g]=function(){var y=this.__chain__;if(c||y){var R=e(this.__wrapped__),O=R.__actions__=Re(this.__actions__);return O.push({func:_,args:arguments,thisArg:e}),R.__chain__=y,R}return _.apply(e,Rt([this.value()],arguments))})}),e}function Tm(){return fe._===this&&(fe._=rp),this}function Ms(){}function $m(e){return e=G(e),z(function(t){return Ao(t,e)})}var Nm=ds(ne),Pm=ds(Wu),Fm=ds(Hi);function Ua(e){return xs(e)?Wi(ot(e)):cg(e)}function qm(e){return function(t){return e==null?i:Wt(e,t)}}var Dm=Bo(),Mm=Bo(!0);function Us(){return[]}function Hs(){return!1}function Um(){return{}}function Hm(){return""}function Wm(){return!0}function Gm(e,t){if(e=G(e),e<1||e>xt)return[];var n=it,u=de(e,it);t=D(t),e-=it;for(var a=Xi(u,t);++n<e;)t(n);return a}function Bm(e){return W(e)?ne(e,ot):$e(e)?[e]:Re(sa(Q(e)))}function Xm(e){var t=++tp;return Q(e)+t}var zm=Hr(function(e,t){return e+t},0),Vm=_s("ceil"),Ym=Hr(function(e,t){return e/t},1),Km=_s("floor");function Zm(e){return e&&e.length?Nr(e,Se,ts):i}function Jm(e,t){return e&&e.length?Nr(e,D(t,2),ts):i}function Qm(e){return Xu(e,Se)}function jm(e,t){return Xu(e,D(t,2))}function km(e){return e&&e.length?Nr(e,Se,ss):i}function ev(e,t){return e&&e.length?Nr(e,D(t,2),ss):i}var tv=Hr(function(e,t){return e*t},1),nv=_s("round"),rv=Hr(function(e,t){return e-t},0);function iv(e){return e&&e.length?Bi(e,Se):0}function sv(e,t){return e&&e.length?Bi(e,D(t,2)):0}return l.after=S0,l.ary=_a,l.assign=g_,l.assignIn=ba,l.assignInWith=kr,l.assignWith=d_,l.at=__,l.before=ma,l.bind=Cs,l.bindAll=Am,l.bindKey=va,l.castArray=U0,l.chain=pa,l.chunk=Kg,l.compact=Zg,l.concat=Jg,l.cond=xm,l.conforms=ym,l.constant=Fs,l.countBy=i0,l.create=m_,l.curry=Ea,l.curryRight=wa,l.debounce=Aa,l.defaults=v_,l.defaultsDeep=E_,l.defer=C0,l.delay=L0,l.difference=Qg,l.differenceBy=jg,l.differenceWith=kg,l.drop=ed,l.dropRight=td,l.dropRightWhile=nd,l.dropWhile=rd,l.fill=id,l.filter=u0,l.flatMap=l0,l.flatMapDeep=f0,l.flatMapDepth=c0,l.flatten=la,l.flattenDeep=sd,l.flattenDepth=ud,l.flip=b0,l.flow=Om,l.flowRight=Im,l.fromPairs=od,l.functions=I_,l.functionsIn=S_,l.groupBy=h0,l.initial=ld,l.intersection=fd,l.intersectionBy=cd,l.intersectionWith=hd,l.invert=L_,l.invertBy=b_,l.invokeMap=g0,l.iteratee=qs,l.keyBy=d0,l.keys=ce,l.keysIn=Ie,l.map=Yr,l.mapKeys=$_,l.mapValues=N_,l.matches=Sm,l.matchesProperty=Cm,l.memoize=Zr,l.merge=P_,l.mergeWith=Ta,l.method=Lm,l.methodOf=bm,l.mixin=Ds,l.negate=Jr,l.nthArg=$m,l.omit=F_,l.omitBy=q_,l.once=T0,l.orderBy=_0,l.over=Nm,l.overArgs=$0,l.overEvery=Pm,l.overSome=Fm,l.partial=Ls,l.partialRight=xa,l.partition=m0,l.pick=D_,l.pickBy=$a,l.property=Ua,l.propertyOf=qm,l.pull=_d,l.pullAll=ca,l.pullAllBy=md,l.pullAllWith=vd,l.pullAt=Ed,l.range=Dm,l.rangeRight=Mm,l.rearg=N0,l.reject=w0,l.remove=wd,l.rest=P0,l.reverse=Is,l.sampleSize=x0,l.set=U_,l.setWith=H_,l.shuffle=y0,l.slice=Ad,l.sortBy=I0,l.sortedUniq=Cd,l.sortedUniqBy=Ld,l.split=lm,l.spread=F0,l.tail=bd,l.take=Td,l.takeRight=$d,l.takeRightWhile=Nd,l.takeWhile=Pd,l.tap=Zd,l.throttle=q0,l.thru=Vr,l.toArray=Sa,l.toPairs=Na,l.toPairsIn=Pa,l.toPath=Bm,l.toPlainObject=La,l.transform=W_,l.unary=D0,l.union=Fd,l.unionBy=qd,l.unionWith=Dd,l.uniq=Md,l.uniqBy=Ud,l.uniqWith=Hd,l.unset=G_,l.unzip=Ss,l.unzipWith=ha,l.update=B_,l.updateWith=X_,l.values=dn,l.valuesIn=z_,l.without=Wd,l.words=Da,l.wrap=M0,l.xor=Gd,l.xorBy=Bd,l.xorWith=Xd,l.zip=zd,l.zipObject=Vd,l.zipObjectDeep=Yd,l.zipWith=Kd,l.entries=Na,l.entriesIn=Pa,l.extend=ba,l.extendWith=kr,Ds(l,l),l.add=zm,l.attempt=Ma,l.camelCase=Z_,l.capitalize=Fa,l.ceil=Vm,l.clamp=V_,l.clone=H0,l.cloneDeep=G0,l.cloneDeepWith=B0,l.cloneWith=W0,l.conformsTo=X0,l.deburr=qa,l.defaultTo=Rm,l.divide=Ym,l.endsWith=J_,l.eq=ke,l.escape=Q_,l.escapeRegExp=j_,l.every=s0,l.find=o0,l.findIndex=oa,l.findKey=w_,l.findLast=a0,l.findLastIndex=aa,l.findLastKey=A_,l.floor=Km,l.forEach=ga,l.forEachRight=da,l.forIn=x_,l.forInRight=y_,l.forOwn=R_,l.forOwnRight=O_,l.get=$s,l.gt=z0,l.gte=V0,l.has=C_,l.hasIn=Ns,l.head=fa,l.identity=Se,l.includes=p0,l.indexOf=ad,l.inRange=Y_,l.invoke=T_,l.isArguments=Xt,l.isArray=W,l.isArrayBuffer=Y0,l.isArrayLike=Oe,l.isArrayLikeObject=se,l.isBoolean=K0,l.isBuffer=$t,l.isDate=Z0,l.isElement=J0,l.isEmpty=Q0,l.isEqual=j0,l.isEqualWith=k0,l.isError=bs,l.isFinite=e_,l.isFunction=mt,l.isInteger=ya,l.isLength=Qr,l.isMap=Ra,l.isMatch=t_,l.isMatchWith=n_,l.isNaN=r_,l.isNative=i_,l.isNil=u_,l.isNull=s_,l.isNumber=Oa,l.isObject=re,l.isObjectLike=ie,l.isPlainObject=Gn,l.isRegExp=Ts,l.isSafeInteger=o_,l.isSet=Ia,l.isString=jr,l.isSymbol=$e,l.isTypedArray=gn,l.isUndefined=a_,l.isWeakMap=l_,l.isWeakSet=f_,l.join=pd,l.kebabCase=k_,l.last=Ge,l.lastIndexOf=gd,l.lowerCase=em,l.lowerFirst=tm,l.lt=c_,l.lte=h_,l.max=Zm,l.maxBy=Jm,l.mean=Qm,l.meanBy=jm,l.min=km,l.minBy=ev,l.stubArray=Us,l.stubFalse=Hs,l.stubObject=Um,l.stubString=Hm,l.stubTrue=Wm,l.multiply=tv,l.nth=dd,l.noConflict=Tm,l.noop=Ms,l.now=Kr,l.pad=nm,l.padEnd=rm,l.padStart=im,l.parseInt=sm,l.random=K_,l.reduce=v0,l.reduceRight=E0,l.repeat=um,l.replace=om,l.result=M_,l.round=nv,l.runInContext=d,l.sample=A0,l.size=R0,l.snakeCase=am,l.some=O0,l.sortedIndex=xd,l.sortedIndexBy=yd,l.sortedIndexOf=Rd,l.sortedLastIndex=Od,l.sortedLastIndexBy=Id,l.sortedLastIndexOf=Sd,l.startCase=fm,l.startsWith=cm,l.subtract=rv,l.sum=iv,l.sumBy=sv,l.template=hm,l.times=Gm,l.toFinite=vt,l.toInteger=G,l.toLength=Ca,l.toLower=pm,l.toNumber=Be,l.toSafeInteger=p_,l.toString=Q,l.toUpper=gm,l.trim=dm,l.trimEnd=_m,l.trimStart=mm,l.truncate=vm,l.unescape=Em,l.uniqueId=Xm,l.upperCase=wm,l.upperFirst=Ps,l.each=ga,l.eachRight=da,l.first=fa,Ds(l,function(){var e={};return st(l,function(t,n){j.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=r,De(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),De(["drop","take"],function(e,t){Y.prototype[e]=function(n){n=n===i?1:le(G(n),0);var u=this.__filtered__&&!t?new Y(this):this.clone();return u.__filtered__?u.__takeCount__=de(n,u.__takeCount__):u.__views__.push({size:de(n,it),type:e+(u.__dir__<0?"Right":"")}),u},Y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),De(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==au||n==_c;Y.prototype[e]=function(a){var c=this.clone();return c.__iteratees__.push({iteratee:D(a,3),type:n}),c.__filtered__=c.__filtered__||u,c}}),De(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),De(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(Se)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new Y(this):this.map(function(n){return qn(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(Jr(D(e)))},Y.prototype.slice=function(e,t){e=G(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(it)},st(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),a=l[u?"take"+(t=="last"?"Right":""):t],c=u||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,g=u?[1]:arguments,_=p instanceof Y,y=g[0],R=_||W(p),O=function(V){var K=a.apply(l,Rt([V],g));return u&&S?K[0]:K};R&&n&&typeof y=="function"&&y.length!=1&&(_=R=!1);var S=this.__chain__,N=!!this.__actions__.length,M=c&&!S,B=_&&!N;if(!c&&R){p=B?p:new Y(this);var U=e.apply(p,g);return U.__actions__.push({func:Vr,args:[O],thisArg:i}),new Ue(U,S)}return M&&B?e.apply(this,g):(U=this.thru(O),M?u?U.value()[0]:U.value():U)})}),De(["pop","push","shift","sort","splice","unshift"],function(e){var t=vr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(u&&!this.__chain__){var c=this.value();return t.apply(W(c)?c:[],a)}return this[n](function(p){return t.apply(W(p)?p:[],a)})}}),st(Y.prototype,function(e,t){var n=l[t];if(n){var u=n.name+"";j.call(ln,u)||(ln[u]=[]),ln[u].push({name:t,func:n})}}),ln[Ur(i,Pt).name]=[{name:"wrapper",func:i}],Y.prototype.clone=Ep,Y.prototype.reverse=wp,Y.prototype.value=Ap,l.prototype.at=Jd,l.prototype.chain=Qd,l.prototype.commit=jd,l.prototype.next=kd,l.prototype.plant=t0,l.prototype.reverse=n0,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=r0,l.prototype.first=l.prototype.head,Ln&&(l.prototype[Ln]=e0),l},It=jh();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(fe._=It,define(function(){return It})):qt?((qt.exports=It)._=It,qi._=It):fe._=It}).call(_n)});var Vn=F((sw,Ja)=>{var av="2.0.0",lv=256,fv=Number.MAX_SAFE_INTEGER||9007199254740991,cv=16;Ja.exports={SEMVER_SPEC_VERSION:av,MAX_LENGTH:lv,MAX_SAFE_INTEGER:fv,MAX_SAFE_COMPONENT_LENGTH:cv}});var Yn=F((uw,Qa)=>{var hv=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Qa.exports=hv});var Yt=F((Nt,ja)=>{var{MAX_SAFE_COMPONENT_LENGTH:Xs}=Vn(),pv=Yn();Nt=ja.exports={};var gv=Nt.re=[],L=Nt.src=[],b=Nt.t={},dv=0,X=(i,r,s)=>{let o=dv++;pv(o,r),b[i]=o,L[o]=r,gv[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",`(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${L[b.NUMERICIDENTIFIER]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${L[b.NUMERICIDENTIFIERLOOSE]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${L[b.PRERELEASEIDENTIFIER]}(?:\\.${L[b.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${L[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[b.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER","[0-9A-Za-z-]+");X("BUILD",`(?:\\+(${L[b.BUILDIDENTIFIER]}(?:\\.${L[b.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${L[b.MAINVERSION]}${L[b.PRERELEASE]}?${L[b.BUILD]}?`);X("FULL",`^${L[b.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${L[b.MAINVERSIONLOOSE]}${L[b.PRERELEASELOOSE]}?${L[b.BUILD]}?`);X("LOOSE",`^${L[b.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${L[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${L[b.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:${L[b.PRERELEASE]})?${L[b.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:${L[b.PRERELEASELOOSE]})?${L[b.BUILD]}?)?)?`);X("XRANGE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAINLOOSE]}$`);X("COERCE",`(^|[^\\d])(\\d{1,${Xs}})(?:\\.(\\d{1,${Xs}}))?(?:\\.(\\d{1,${Xs}}))?(?:$|[^\\d])`);X("COERCERTL",L[b.COERCE],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${L[b.LONETILDE]}\\s+`,!0);Nt.tildeTrimReplace="$1~";X("TILDE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${L[b.LONECARET]}\\s+`,!0);Nt.caretTrimReplace="$1^";X("CARET",`^${L[b.LONECARET]}${L[b.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${L[b.LONECARET]}${L[b.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${L[b.GTLT]}\\s*(${L[b.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]}|${L[b.XRANGEPLAIN]})`,!0);Nt.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${L[b.XRANGEPLAIN]})\\s+-\\s+(${L[b.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${L[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[b.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0.0.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Kn=F((ow,ka)=>{var _v=["includePrerelease","loose","rtl"],mv=i=>i?typeof i!="object"?{loose:!0}:_v.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};ka.exports=mv});var ti=F((aw,nl)=>{var el=/^[0-9]+$/,tl=(i,r)=>{let s=el.test(i),o=el.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},vv=(i,r)=>tl(r,i);nl.exports={compareIdentifiers:tl,rcompareIdentifiers:vv}});var me=F((lw,ul)=>{var ni=Yn(),{MAX_LENGTH:rl,MAX_SAFE_INTEGER:ri}=Vn(),{re:il,t:sl}=Yt(),Ev=Kn(),{compareIdentifiers:Zn}=ti(),Xe=class{constructor(r,s){if(s=Ev(s),r instanceof Xe){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>rl)throw new TypeError(`version is longer than ${rl} characters`);ni("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?il[sl.LOOSE]:il[sl.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>ri||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ri||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ri||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){let h=+f;if(h>=0&&h<ri)return h}return f}):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(ni("SemVer.compare",this.version,this.options,r),!(r instanceof Xe)){if(typeof r=="string"&&r===this.version)return 0;r=new Xe(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Xe||(r=new Xe(r,this.options)),Zn(this.major,r.major)||Zn(this.minor,r.minor)||Zn(this.patch,r.patch)}comparePre(r){if(r instanceof Xe||(r=new Xe(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],f=r.prerelease[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}compareBuild(r){r instanceof Xe||(r=new Xe(r,this.options));let s=0;do{let o=this.build[s],f=r.build[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}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}};ul.exports=Xe});var Kt=F((fw,fl)=>{var{MAX_LENGTH:wv}=Vn(),{re:ol,t:al}=Yt(),ll=me(),Av=Kn(),xv=(i,r)=>{if(r=Av(r),i instanceof ll)return i;if(typeof i!="string"||i.length>wv||!(r.loose?ol[al.LOOSE]:ol[al.FULL]).test(i))return null;try{return new ll(i,r)}catch{return null}};fl.exports=xv});var hl=F((cw,cl)=>{var yv=Kt(),Rv=(i,r)=>{let s=yv(i,r);return s?s.version:null};cl.exports=Rv});var gl=F((hw,pl)=>{var Ov=Kt(),Iv=(i,r)=>{let s=Ov(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};pl.exports=Iv});var _l=F((pw,dl)=>{var Sv=me(),Cv=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new Sv(i,s).inc(r,o).version}catch{return null}};dl.exports=Cv});var ze=F((gw,vl)=>{var ml=me(),Lv=(i,r,s)=>new ml(i,s).compare(new ml(r,s));vl.exports=Lv});var ii=F((dw,El)=>{var bv=ze(),Tv=(i,r,s)=>bv(i,r,s)===0;El.exports=Tv});var xl=F((_w,Al)=>{var wl=Kt(),$v=ii(),Nv=(i,r)=>{if($v(i,r))return null;{let s=wl(i),o=wl(r),f=s.prerelease.length||o.prerelease.length,h=f?"pre":"",m=f?"prerelease":"";for(let A in s)if((A==="major"||A==="minor"||A==="patch")&&s[A]!==o[A])return h+A;return m}};Al.exports=Nv});var Rl=F((mw,yl)=>{var Pv=me(),Fv=(i,r)=>new Pv(i,r).major;yl.exports=Fv});var Il=F((vw,Ol)=>{var qv=me(),Dv=(i,r)=>new qv(i,r).minor;Ol.exports=Dv});var Cl=F((Ew,Sl)=>{var Mv=me(),Uv=(i,r)=>new Mv(i,r).patch;Sl.exports=Uv});var bl=F((ww,Ll)=>{var Hv=Kt(),Wv=(i,r)=>{let s=Hv(i,r);return s&&s.prerelease.length?s.prerelease:null};Ll.exports=Wv});var $l=F((Aw,Tl)=>{var Gv=ze(),Bv=(i,r,s)=>Gv(r,i,s);Tl.exports=Bv});var Pl=F((xw,Nl)=>{var Xv=ze(),zv=(i,r)=>Xv(i,r,!0);Nl.exports=zv});var si=F((yw,ql)=>{var Fl=me(),Vv=(i,r,s)=>{let o=new Fl(i,s),f=new Fl(r,s);return o.compare(f)||o.compareBuild(f)};ql.exports=Vv});var Ml=F((Rw,Dl)=>{var Yv=si(),Kv=(i,r)=>i.sort((s,o)=>Yv(s,o,r));Dl.exports=Kv});var Hl=F((Ow,Ul)=>{var Zv=si(),Jv=(i,r)=>i.sort((s,o)=>Zv(o,s,r));Ul.exports=Jv});var Jn=F((Iw,Wl)=>{var Qv=ze(),jv=(i,r,s)=>Qv(i,r,s)>0;Wl.exports=jv});var ui=F((Sw,Gl)=>{var kv=ze(),e1=(i,r,s)=>kv(i,r,s)<0;Gl.exports=e1});var zs=F((Cw,Bl)=>{var t1=ze(),n1=(i,r,s)=>t1(i,r,s)!==0;Bl.exports=n1});var oi=F((Lw,Xl)=>{var r1=ze(),i1=(i,r,s)=>r1(i,r,s)>=0;Xl.exports=i1});var ai=F((bw,zl)=>{var s1=ze(),u1=(i,r,s)=>s1(i,r,s)<=0;zl.exports=u1});var Vs=F((Tw,Vl)=>{var o1=ii(),a1=zs(),l1=Jn(),f1=oi(),c1=ui(),h1=ai(),p1=(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 o1(i,s,o);case"!=":return a1(i,s,o);case">":return l1(i,s,o);case">=":return f1(i,s,o);case"<":return c1(i,s,o);case"<=":return h1(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};Vl.exports=p1});var Kl=F(($w,Yl)=>{var g1=me(),d1=Kt(),{re:li,t:fi}=Yt(),_1=(i,r)=>{if(i instanceof g1)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(li[fi.COERCE]);else{let o;for(;(o=li[fi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),li[fi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;li[fi.COERCERTL].lastIndex=-1}return s===null?null:d1(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};Yl.exports=_1});var Jl=F((Nw,Zl)=>{"use strict";Zl.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var jl=F((Pw,Ql)=>{"use strict";Ql.exports=Z;Z.Node=Zt;Z.create=Z;function Z(i){var r=this;if(r instanceof Z||(r=new Z),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(f){r.push(f)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}Z.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,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};Z.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var r=this.head;i.list=this,i.next=r,r&&(r.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};Z.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var r=this.tail;i.list=this,i.prev=r,r&&(r.next=i),this.tail=i,this.head||(this.head=i),this.length++}};Z.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)v1(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)E1(this,arguments[i]);return this.length};Z.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};Z.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};Z.prototype.forEach=function(i,r){r=r||this;for(var s=this.head,o=0;s!==null;o++)i.call(r,s.value,o,this),s=s.next};Z.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};Z.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};Z.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};Z.prototype.map=function(i,r){r=r||this;for(var s=new Z,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};Z.prototype.mapReverse=function(i,r){r=r||this;for(var s=new Z,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};Z.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 f=0;o!==null;f++)s=i(s,o.value,f),o=o.next;return s};Z.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 f=this.length-1;o!==null;f--)s=i(s,o.value,f),o=o.prev;return s};Z.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};Z.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};Z.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 Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(;f!==null&&o<r;o++,f=f.next)s.push(f.value);return s};Z.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 Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,f=this.tail;f!==null&&o>r;o--)f=f.prev;for(;f!==null&&o>i;o--,f=f.prev)s.push(f.value);return s};Z.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(var h=[],o=0;f&&o<r;o++)h.push(f.value),f=this.removeNode(f);f===null&&(f=this.tail),f!==this.head&&f!==this.tail&&(f=f.prev);for(var o=0;o<s.length;o++)f=m1(this,f,s[o]);return h};Z.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 m1(i,r,s){var o=r===i.head?new Zt(s,null,r,i):new Zt(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function v1(i,r){i.tail=new Zt(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function E1(i,r){i.head=new Zt(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function Zt(i,r,s,o){if(!(this instanceof Zt))return new Zt(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{Jl()(Z)}catch{}});var uf=F((Fw,sf)=>{"use strict";var w1=jl(),Jt=Symbol("max"),wt=Symbol("length"),mn=Symbol("lengthCalculator"),Qn=Symbol("allowStale"),Qt=Symbol("maxAge"),At=Symbol("dispose"),kl=Symbol("noDisposeOnSet"),he=Symbol("lruList"),tt=Symbol("cache"),ef=Symbol("updateAgeOnGet"),Ys=()=>1,tf=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[Jt]=r.max||1/0,o=r.length||Ys;if(this[mn]=typeof o!="function"?Ys:o,this[Qn]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Qt]=r.maxAge||0,this[At]=r.dispose,this[kl]=r.noDisposeOnSet||!1,this[ef]=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[Jt]=r||1/0,jn(this)}get max(){return this[Jt]}set allowStale(r){this[Qn]=!!r}get allowStale(){return this[Qn]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Qt]=r,jn(this)}get maxAge(){return this[Qt]}set lengthCalculator(r){typeof r!="function"&&(r=Ys),r!==this[mn]&&(this[mn]=r,this[wt]=0,this[he].forEach(s=>{s.length=this[mn](s.value,s.key),this[wt]+=s.length})),jn(this)}get lengthCalculator(){return this[mn]}get length(){return this[wt]}get itemCount(){return this[he].length}rforEach(r,s){s=s||this;for(let o=this[he].tail;o!==null;){let f=o.prev;rf(this,r,o,s),o=f}}forEach(r,s){s=s||this;for(let o=this[he].head;o!==null;){let f=o.next;rf(this,r,o,s),o=f}}keys(){return this[he].toArray().map(r=>r.key)}values(){return this[he].toArray().map(r=>r.value)}reset(){this[At]&&this[he]&&this[he].length&&this[he].forEach(r=>this[At](r.key,r.value)),this[tt]=new Map,this[he]=new w1,this[wt]=0}dump(){return this[he].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[he]}set(r,s,o){if(o=o||this[Qt],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let f=o?Date.now():0,h=this[mn](s,r);if(this[tt].has(r)){if(h>this[Jt])return vn(this,this[tt].get(r)),!1;let w=this[tt].get(r).value;return this[At]&&(this[kl]||this[At](r,w.value)),w.now=f,w.maxAge=o,w.value=s,this[wt]+=h-w.length,w.length=h,this.get(r),jn(this),!0}let m=new nf(r,s,h,f,o);return m.length>this[Jt]?(this[At]&&this[At](r,s),!1):(this[wt]+=m.length,this[he].unshift(m),this[tt].set(r,this[he].head),jn(this),!0)}has(r){if(!this[tt].has(r))return!1;let s=this[tt].get(r).value;return!ci(this,s)}get(r){return Ks(this,r,!0)}peek(r){return Ks(this,r,!1)}pop(){let r=this[he].tail;return r?(vn(this,r),r.value):null}del(r){vn(this,this[tt].get(r))}load(r){this.reset();let s=Date.now();for(let o=r.length-1;o>=0;o--){let f=r[o],h=f.e||0;if(h===0)this.set(f.k,f.v);else{let m=h-s;m>0&&this.set(f.k,f.v,m)}}}prune(){this[tt].forEach((r,s)=>Ks(this,s,!1))}},Ks=(i,r,s)=>{let o=i[tt].get(r);if(o){let f=o.value;if(ci(i,f)){if(vn(i,o),!i[Qn])return}else s&&(i[ef]&&(o.value.now=Date.now()),i[he].unshiftNode(o));return f.value}},ci=(i,r)=>{if(!r||!r.maxAge&&!i[Qt])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[Qt]&&s>i[Qt]},jn=i=>{if(i[wt]>i[Jt])for(let r=i[he].tail;i[wt]>i[Jt]&&r!==null;){let s=r.prev;vn(i,r),r=s}},vn=(i,r)=>{if(r){let s=r.value;i[At]&&i[At](s.key,s.value),i[wt]-=s.length,i[tt].delete(s.key),i[he].removeNode(r)}},nf=class{constructor(r,s,o,f,h){this.key=r,this.value=s,this.length=o,this.now=f,this.maxAge=h||0}},rf=(i,r,s,o)=>{let f=s.value;ci(i,f)&&(vn(i,s),i[Qn]||(f=void 0)),f&&r.call(o,f.value,f.key,i)};sf.exports=tf});var Ve=F((qw,ff)=>{var En=class{constructor(r,s){if(s=x1(s),r instanceof En)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new En(r.raw,s);if(r instanceof Zs)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(f=>!af(f[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let f of this.set)if(f.length===1&&S1(f[0])){this.set=[f];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}`,f=of.get(o);if(f)return f;let h=this.options.loose,m=h?ve[ge.HYPHENRANGELOOSE]:ve[ge.HYPHENRANGE];r=r.replace(m,D1(this.options.includePrerelease)),oe("hyphen replace",r),r=r.replace(ve[ge.COMPARATORTRIM],R1),oe("comparator trim",r,ve[ge.COMPARATORTRIM]),r=r.replace(ve[ge.TILDETRIM],O1),r=r.replace(ve[ge.CARETTRIM],I1),r=r.split(/\s+/).join(" ");let A=h?ve[ge.COMPARATORLOOSE]:ve[ge.COMPARATOR],w=r.split(" ").map(T=>C1(T,this.options)).join(" ").split(/\s+/).map(T=>q1(T,this.options)).filter(this.options.loose?T=>!!T.match(A):()=>!0).map(T=>new Zs(T,this.options)),v=w.length,I=new Map;for(let T of w){if(af(T))return[T];I.set(T.value,T)}I.size>1&&I.has("")&&I.delete("");let $=[...I.values()];return of.set(o,$),$}intersects(r,s){if(!(r instanceof En))throw new TypeError("a Range is required");return this.set.some(o=>lf(o,s)&&r.set.some(f=>lf(f,s)&&o.every(h=>f.every(m=>h.intersects(m,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new y1(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(M1(this.set[s],r,this.options))return!0;return!1}};ff.exports=En;var A1=uf(),of=new A1({max:1e3}),x1=Kn(),Zs=kn(),oe=Yn(),y1=me(),{re:ve,t:ge,comparatorTrimReplace:R1,tildeTrimReplace:O1,caretTrimReplace:I1}=Yt(),af=i=>i.value==="<0.0.0-0",S1=i=>i.value==="",lf=(i,r)=>{let s=!0,o=i.slice(),f=o.pop();for(;s&&o.length;)s=o.every(h=>f.intersects(h,r)),f=o.pop();return s},C1=(i,r)=>(oe("comp",i,r),i=T1(i,r),oe("caret",i),i=L1(i,r),oe("tildes",i),i=N1(i,r),oe("xrange",i),i=F1(i,r),oe("stars",i),i),xe=i=>!i||i.toLowerCase()==="x"||i==="*",L1=(i,r)=>i.trim().split(/\s+/).map(s=>b1(s,r)).join(" "),b1=(i,r)=>{let s=r.loose?ve[ge.TILDELOOSE]:ve[ge.TILDE];return i.replace(s,(o,f,h,m,A)=>{oe("tilde",i,o,f,h,m,A);let w;return xe(f)?w="":xe(h)?w=`>=${f}.0.0 <${+f+1}.0.0-0`:xe(m)?w=`>=${f}.${h}.0 <${f}.${+h+1}.0-0`:A?(oe("replaceTilde pr",A),w=`>=${f}.${h}.${m}-${A} <${f}.${+h+1}.0-0`):w=`>=${f}.${h}.${m} <${f}.${+h+1}.0-0`,oe("tilde return",w),w})},T1=(i,r)=>i.trim().split(/\s+/).map(s=>$1(s,r)).join(" "),$1=(i,r)=>{oe("caret",i,r);let s=r.loose?ve[ge.CARETLOOSE]:ve[ge.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(f,h,m,A,w)=>{oe("caret",i,f,h,m,A,w);let v;return xe(h)?v="":xe(m)?v=`>=${h}.0.0${o} <${+h+1}.0.0-0`:xe(A)?h==="0"?v=`>=${h}.${m}.0${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.0${o} <${+h+1}.0.0-0`:w?(oe("replaceCaret pr",w),h==="0"?m==="0"?v=`>=${h}.${m}.${A}-${w} <${h}.${m}.${+A+1}-0`:v=`>=${h}.${m}.${A}-${w} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${A}-${w} <${+h+1}.0.0-0`):(oe("no pr"),h==="0"?m==="0"?v=`>=${h}.${m}.${A}${o} <${h}.${m}.${+A+1}-0`:v=`>=${h}.${m}.${A}${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${A} <${+h+1}.0.0-0`),oe("caret return",v),v})},N1=(i,r)=>(oe("replaceXRanges",i,r),i.split(/\s+/).map(s=>P1(s,r)).join(" ")),P1=(i,r)=>{i=i.trim();let s=r.loose?ve[ge.XRANGELOOSE]:ve[ge.XRANGE];return i.replace(s,(o,f,h,m,A,w)=>{oe("xRange",i,o,f,h,m,A,w);let v=xe(h),I=v||xe(m),$=I||xe(A),T=$;return f==="="&&T&&(f=""),w=r.includePrerelease?"-0":"",v?f===">"||f==="<"?o="<0.0.0-0":o="*":f&&T?(I&&(m=0),A=0,f===">"?(f=">=",I?(h=+h+1,m=0,A=0):(m=+m+1,A=0)):f==="<="&&(f="<",I?h=+h+1:m=+m+1),f==="<"&&(w="-0"),o=`${f+h}.${m}.${A}${w}`):I?o=`>=${h}.0.0${w} <${+h+1}.0.0-0`:$&&(o=`>=${h}.${m}.0${w} <${h}.${+m+1}.0-0`),oe("xRange return",o),o})},F1=(i,r)=>(oe("replaceStars",i,r),i.trim().replace(ve[ge.STAR],"")),q1=(i,r)=>(oe("replaceGTE0",i,r),i.trim().replace(ve[r.includePrerelease?ge.GTE0PRE:ge.GTE0],"")),D1=i=>(r,s,o,f,h,m,A,w,v,I,$,T,P)=>(xe(o)?s="":xe(f)?s=`>=${o}.0.0${i?"-0":""}`:xe(h)?s=`>=${o}.${f}.0${i?"-0":""}`:m?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,xe(v)?w="":xe(I)?w=`<${+v+1}.0.0-0`:xe($)?w=`<${v}.${+I+1}.0-0`:T?w=`<=${v}.${I}.${$}-${T}`:i?w=`<${v}.${I}.${+$+1}-0`:w=`<=${w}`,`${s} ${w}`.trim()),M1=(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(oe(i[o].semver),i[o].semver!==Zs.ANY&&i[o].semver.prerelease.length>0){let f=i[o].semver;if(f.major===r.major&&f.minor===r.minor&&f.patch===r.patch)return!0}return!1}return!0}});var kn=F((Dw,df)=>{var er=Symbol("SemVer ANY"),tr=class{static get ANY(){return er}constructor(r,s){if(s=U1(s),r instanceof tr){if(r.loose===!!s.loose)return r;r=r.value}Qs("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===er?this.value="":this.value=this.operator+this.semver.version,Qs("comp",this)}parse(r){let s=this.options.loose?cf[hf.COMPARATORLOOSE]:cf[hf.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 pf(o[2],this.options.loose):this.semver=er}toString(){return this.value}test(r){if(Qs("Comparator.test",r,this.options.loose),this.semver===er||r===er)return!0;if(typeof r=="string")try{r=new pf(r,this.options)}catch{return!1}return Js(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof tr))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new gf(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new gf(this.value,s).test(r.semver);let o=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),f=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),h=this.semver.version===r.semver.version,m=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),A=Js(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),w=Js(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||f||h&&m||A||w}};df.exports=tr;var U1=Kn(),{re:cf,t:hf}=Yt(),Js=Vs(),Qs=Yn(),pf=me(),gf=Ve()});var nr=F((Mw,_f)=>{var H1=Ve(),W1=(i,r,s)=>{try{r=new H1(r,s)}catch{return!1}return r.test(i)};_f.exports=W1});var vf=F((Uw,mf)=>{var G1=Ve(),B1=(i,r)=>new G1(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));mf.exports=B1});var wf=F((Hw,Ef)=>{var X1=me(),z1=Ve(),V1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new z1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===-1)&&(o=m,f=new X1(o,s))}),o};Ef.exports=V1});var xf=F((Ww,Af)=>{var Y1=me(),K1=Ve(),Z1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new K1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===1)&&(o=m,f=new Y1(o,s))}),o};Af.exports=Z1});var Of=F((Gw,Rf)=>{var js=me(),J1=Ve(),yf=Jn(),Q1=(i,r)=>{i=new J1(i,r);let s=new js("0.0.0");if(i.test(s)||(s=new js("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let f=i.set[o],h=null;f.forEach(m=>{let A=new js(m.semver.version);switch(m.operator){case">":A.prerelease.length===0?A.patch++:A.prerelease.push(0),A.raw=A.format();case"":case">=":(!h||yf(A,h))&&(h=A);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${m.operator}`)}}),h&&(!s||yf(s,h))&&(s=h)}return s&&i.test(s)?s:null};Rf.exports=Q1});var Sf=F((Bw,If)=>{var j1=Ve(),k1=(i,r)=>{try{return new j1(i,r).range||"*"}catch{return null}};If.exports=k1});var hi=F((Xw,Tf)=>{var eE=me(),Cf=kn(),{ANY:tE}=Cf,nE=Ve(),rE=nr(),Lf=Jn(),bf=ui(),iE=ai(),sE=oi(),uE=(i,r,s,o)=>{i=new eE(i,o),r=new nE(r,o);let f,h,m,A,w;switch(s){case">":f=Lf,h=iE,m=bf,A=">",w=">=";break;case"<":f=bf,h=sE,m=Lf,A="<",w="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(rE(i,r,o))return!1;for(let v=0;v<r.set.length;++v){let I=r.set[v],$=null,T=null;if(I.forEach(P=>{P.semver===tE&&(P=new Cf(">=0.0.0")),$=$||P,T=T||P,f(P.semver,$.semver,o)?$=P:m(P.semver,T.semver,o)&&(T=P)}),$.operator===A||$.operator===w||(!T.operator||T.operator===A)&&h(i,T.semver))return!1;if(T.operator===w&&m(i,T.semver))return!1}return!0};Tf.exports=uE});var Nf=F((zw,$f)=>{var oE=hi(),aE=(i,r,s)=>oE(i,r,">",s);$f.exports=aE});var Ff=F((Vw,Pf)=>{var lE=hi(),fE=(i,r,s)=>lE(i,r,"<",s);Pf.exports=fE});var Mf=F((Yw,Df)=>{var qf=Ve(),cE=(i,r,s)=>(i=new qf(i,s),r=new qf(r,s),i.intersects(r));Df.exports=cE});var Hf=F((Kw,Uf)=>{var hE=nr(),pE=ze();Uf.exports=(i,r,s)=>{let o=[],f=null,h=null,m=i.sort((I,$)=>pE(I,$,s));for(let I of m)hE(I,r,s)?(h=I,f||(f=I)):(h&&o.push([f,h]),h=null,f=null);f&&o.push([f,null]);let A=[];for(let[I,$]of o)I===$?A.push(I):!$&&I===m[0]?A.push("*"):$?I===m[0]?A.push(`<=${$}`):A.push(`${I} - ${$}`):A.push(`>=${I}`);let w=A.join(" || "),v=typeof r.raw=="string"?r.raw:String(r);return w.length<v.length?w:r}});var zf=F((Zw,Xf)=>{var Wf=Ve(),pi=kn(),{ANY:ks}=pi,rr=nr(),eu=ze(),gE=(i,r,s={})=>{if(i===r)return!0;i=new Wf(i,s),r=new Wf(r,s);let o=!1;e:for(let f of i.set){for(let h of r.set){let m=dE(f,h,s);if(o=o||m!==null,m)continue e}if(o)return!1}return!0},dE=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===ks){if(r.length===1&&r[0].semver===ks)return!0;s.includePrerelease?i=[new pi(">=0.0.0-0")]:i=[new pi(">=0.0.0")]}if(r.length===1&&r[0].semver===ks){if(s.includePrerelease)return!0;r=[new pi(">=0.0.0")]}let o=new Set,f,h;for(let P of i)P.operator===">"||P.operator===">="?f=Gf(f,P,s):P.operator==="<"||P.operator==="<="?h=Bf(h,P,s):o.add(P.semver);if(o.size>1)return null;let m;if(f&&h){if(m=eu(f.semver,h.semver,s),m>0)return null;if(m===0&&(f.operator!==">="||h.operator!=="<="))return null}for(let P of o){if(f&&!rr(P,String(f),s)||h&&!rr(P,String(h),s))return null;for(let ye of r)if(!rr(P,String(ye),s))return!1;return!0}let A,w,v,I,$=h&&!s.includePrerelease&&h.semver.prerelease.length?h.semver:!1,T=f&&!s.includePrerelease&&f.semver.prerelease.length?f.semver:!1;$&&$.prerelease.length===1&&h.operator==="<"&&$.prerelease[0]===0&&($=!1);for(let P of r){if(I=I||P.operator===">"||P.operator===">=",v=v||P.operator==="<"||P.operator==="<=",f){if(T&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===T.major&&P.semver.minor===T.minor&&P.semver.patch===T.patch&&(T=!1),P.operator===">"||P.operator===">="){if(A=Gf(f,P,s),A===P&&A!==f)return!1}else if(f.operator===">="&&!rr(f.semver,String(P),s))return!1}if(h){if($&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===$.major&&P.semver.minor===$.minor&&P.semver.patch===$.patch&&($=!1),P.operator==="<"||P.operator==="<="){if(w=Bf(h,P,s),w===P&&w!==h)return!1}else if(h.operator==="<="&&!rr(h.semver,String(P),s))return!1}if(!P.operator&&(h||f)&&m!==0)return!1}return!(f&&v&&!h&&m!==0||h&&I&&!f&&m!==0||T||$)},Gf=(i,r,s)=>{if(!i)return r;let o=eu(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},Bf=(i,r,s)=>{if(!i)return r;let o=eu(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};Xf.exports=gE});var Yf=F((Jw,Vf)=>{var tu=Yt();Vf.exports={re:tu.re,src:tu.src,tokens:tu.t,SEMVER_SPEC_VERSION:Vn().SEMVER_SPEC_VERSION,SemVer:me(),compareIdentifiers:ti().compareIdentifiers,rcompareIdentifiers:ti().rcompareIdentifiers,parse:Kt(),valid:hl(),clean:gl(),inc:_l(),diff:xl(),major:Rl(),minor:Il(),patch:Cl(),prerelease:bl(),compare:ze(),rcompare:$l(),compareLoose:Pl(),compareBuild:si(),sort:Ml(),rsort:Hl(),gt:Jn(),lt:ui(),eq:ii(),neq:zs(),gte:oi(),lte:ai(),cmp:Vs(),coerce:Kl(),Comparator:kn(),Range:Ve(),satisfies:nr(),toComparators:vf(),maxSatisfying:wf(),minSatisfying:xf(),minVersion:Of(),validRange:Sf(),outside:hi(),gtr:Nf(),ltr:Ff(),intersects:Mf(),simplifyRange:Hf(),subset:zf()}});var gi=F(Fe=>{"use strict";var _E=Fe&&Fe.__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]}),mE=Fe&&Fe.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),vE=Fe&&Fe.__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)&&_E(r,i,s);return mE(r,i),r},Kf=Fe&&Fe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getCoreVersion=void 0;var Zf=Kf(require("path")),Jf=Kf(require("fs")),nu=vE(require("@serverless-devs/core")),EE=Yf(),Qf=Zf.default.join(nu.getRootHome(),"cache","core"),ru=Zf.default.join(Qf,"package.json");function wE(){if(Jf.default.existsSync(ru)){var i=require("@serverless-devs/core/package.json").version,r=jf();return EE.gt(r,i)?require(Qf):nu}return nu}function jf(){return Jf.default.existsSync(ru)?require(ru).version:void 0}Fe.getCoreVersion=jf;Fe.default=wE()});var rc=F(Ce=>{"use strict";var AE=Ce&&Ce.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function A(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(A,w)}v((o=o.apply(i,r||[])).next())})},xE=Ce&&Ce.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function A(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},kf=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.handlerProfileFile=Ce.getConfig=Ce.setConfig=void 0;var ec=kf(require("path")),iu=kf(gi()),at=iu.default.fse,di=iu.default.jsyaml,su=iu.default.getRootHome;function yE(i){var r=nc();at.writeFileSync(r,di.dump(i))}function tc(){var i=nc();if(!at.existsSync(i))return{};try{var r=di.load(at.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function nc(){var i=ec.default.join(su(),"set-config.yml");return at.existsSync(i)||at.createFileSync(i),i}function RE(i,r){var s=tc();s[i]=r,yE(s)}Ce.setConfig=RE;function OE(i,r){var s=tc();return s[i]||r}Ce.getConfig=OE;function IE(i){return AE(this,void 0,void 0,function(){var r,s,o,f,h,m,A;return xE(this,function(w){switch(w.label){case 0:if(r=i.filePath||"set-config.yml",s=ec.default.join(su(),r),o=at.existsSync(s),f={},o)return[3,5];h=su(),w.label=1;case 1:return w.trys.push([1,2,,4]),at.statSync(h),[3,4];case 2:return m=w.sent(),[4,at.mkdirSync(h)];case 3:return w.sent(),[3,4];case 4:return[3,6];case 5:try{f=di.load(at.readFileSync(s,"utf8"))||{}}catch(v){throw v}w.label=6;case 6:return i.read?[2,f]:(A=i.configKey||"",f[A]=i.data,[4,at.writeFileSync(s,di.dump(f))]);case 7:return w.sent(),[2,f]}})})}Ce.handlerProfileFile=IE});var ic=F((kw,SE)=>{SE.exports={name:"@serverless-devs/s",version:"2.0.100-beta.3",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/help.test.ts",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var lc=F(q=>{"use strict";var CE=q&&q.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),LE=q&&q.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),bE=q&&q.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&CE(r,i,s);return LE(r,i),r},ir=q&&q.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function A(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(A,w)}v((o=o.apply(i,r||[])).next())})},sr=q&&q.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function A(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},uu=q&&q.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(q,"__esModule",{value:!0});q.emoji=q.mark=q.replaceTemplate=q.getTemplatekey=q.replaceFun=q.getLang=q.printn=q.getFolderSize=q.getVersion=q.getPid=q.aiRequest=q.getCredentialWithAll=q.getCredentialWithExisted=q.getCredentialAliasList=q.getProcessArgv=q.bgRed=q.yellow=q.red=void 0;var sc=uu(require("path")),ur=uu(require("fs")),Ye=Za(),TE=uu(require("os")),Ke=bE(gi()),$E=rc(),uc=ic(),_i=Ke.default.colors,NE=Ke.default.got,PE=Ke.default.getMAC,FE=Ke.default.isDocker,qE=Ke.default.isCiCdEnv,DE=Ke.default.getGlobalArgs,ME=Ke.default.getYamlContent,UE=Ke.default.getRootHome,oc=Ke.default.getCredential,HE=Ke.default.getCredentialFromEnv;q.red=_i.hex("#fd5750");q.yellow=_i.hex("#F3F99D");q.bgRed=_i.hex("#000").bgHex("#fd5750");var WE=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=DE(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Ye.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Ye.filter)(s._argsObj,function(o){return!(0,Ye.includes)(["-h","--help"],o)}))})}catch{return{}}};q.getProcessArgv=WE;var GE=function(){return ir(void 0,void 0,void 0,function(){var i,r,s;return sr(this,function(o){switch(o.label){case 0:return i=[],[4,ME(sc.default.join(UE(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Ye.keys)(r)),[4,HE()];case 2:return s=o.sent(),s&&(i=(0,Ye.filter)(i,function(f){return f!==s.Alias}),i.push(s.Alias)),[2,i]}})})};q.getCredentialAliasList=GE;var BE=function(i){return ir(void 0,void 0,void 0,function(){var r,s;return sr(this,function(o){switch(o.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Ye.includes)(r,i)?[4,oc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Ye.omit)(s,"Alias")];case 3:return[2]}})})};q.getCredentialWithExisted=BE;var XE=function(){return ir(void 0,void 0,void 0,function(){var i,r,s,o,f,h;return sr(this,function(m){switch(m.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:if(i=m.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,m.label=2;case 2:return s<o.length?(f=o[s],[4,oc(f)]):[3,5];case 3:h=m.sent(),r[h.Alias]=(0,Ye.omit)(h,"Alias"),m.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};q.getCredentialWithAll=XE;var zE=function(i,r){r===void 0&&(r="unknow");try{var s=(0,$E.getConfig)("analysis");return s!=="enable"||FE()||qE()?void 0:NE("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0}).then(function(o){var f=(0,Ye.get)(o.body,"shorturl");f&&console.log(`AI Tips:
|
|
35
35
|
You can try to solve the problem through: `.concat(_i.underline(f),`
|
|
36
36
|
`))})}catch{}};q.aiRequest=zE;var VE=function(){try{return PE().replace(/:/g,"")}catch{return"unknown"}};q.getPid=VE;function YE(){var i=(0,Ke.getCoreVersion)(),r="".concat(process.platform,"-").concat(process.arch),s="node-".concat(process.version),o="core: ".concat(i),f="s-home: ".concat(Ke.default.getRootHome()),h="".concat(uc.name,": ").concat(uc.version);return i?"".concat(h,", ").concat(o,", ").concat(f,", ").concat(r,", ").concat(s):"".concat(h,", ").concat(f,", ").concat(r,", ").concat(s)}q.getVersion=YE;function KE(i){return ir(this,void 0,void 0,function(){function r(f){return ir(this,void 0,void 0,function(){var h,m;return sr(this,function(A){switch(A.label){case 0:return h=ur.default.lstatSync(f),typeof h!="object"?[2]:(s.set(h.ino,h.size),h.isDirectory()?(m=ur.default.readdirSync(f),typeof m!="object"?[2]:[4,Promise.all(m.map(function(w){return r(sc.default.join(f,w))}))]):[3,2]);case 1:A.sent(),A.label=2;case 2:return[2]}})})}var s,o;return sr(this,function(f){switch(f.label){case 0:return s=new Map,[4,r(i)];case 1:return f.sent(),o=Array.from(s.values()).reduce(function(h,m){return h+m},0),[2,o]}})})}q.getFolderSize=KE;function ZE(i,r){r===void 0&&(r=" ");for(var s="",o=0;o<i;o++)s=s+r;return s}q.printn=ZE;function JE(){return"en"}q.getLang=JE;function ac(i,r){var s=/\{\{(.*?)\}\}/g,o=i.match(s);if(o)for(var f=0;f<o.length;f++){var h=o[f].replace(/{{|}}/g,""),m=(0,Ye.trim)(h.split("|")[0]);r[m]&&(i=i.replace(o[f],r[m]))}return i}q.replaceFun=ac;function QE(i){var r=/\{\{(.*?)\}\}/g,s=i.match(r);return s?s.filter(function(o){return o}).map(function(o){var f=o.replace(/{{|}}/g,""),h=f.split("|");return{name:(0,Ye.trim)(h[0]),desc:(0,Ye.trim)(h[1])}}):[]}q.getTemplatekey=QE;function jE(i,r){i.forEach(function(s){if(ur.default.existsSync(s)){var o=ur.default.readFileSync(s,"utf-8"),f=ac(o,r);ur.default.writeFileSync(s,f,"utf-8")}})}q.replaceTemplate=jE;function kE(i){if(!i)return i;var r=i.slice(-4);return"***********".concat(r)}q.mark=kE;function ew(i,r){return TE.default.platform()==="win32"?r||"\u25C6":"".concat(i," ")}q.emoji=ew});var fc=exports&&exports.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(exports,"__esModule",{value:!0});var tw=fc(Ka()),mi=lc(),nw=fc(gi()),vi=nw.default.colors,rw=`Configure venders account, including Alibaba Cloud, Baidu Cloud, Huawei Cloud, Tencent Cloud, etc.
|
|
37
37
|
|
package/lib/error/index.js
CHANGED
|
@@ -84,7 +84,7 @@ var HandleError = function (error) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
84
84
|
messageStr = jsonMsg.message ? "Message: ".concat(jsonMsg.message, "\n") : '';
|
|
85
85
|
tipsStr = jsonMsg.tips ? "* ".concat(makeUnderLine(jsonMsg.tips.replace(/\n/, '\n* '))) : '';
|
|
86
86
|
utils_1.logger.log("\n".concat(colors.hex('#000').bgYellow('WARNING:'), "\n======================\n").concat(tipsStr, "\n"), 'yellow');
|
|
87
|
-
isDebugMode() ? console.log(error) : console.log(colors.grey(messageStr));
|
|
87
|
+
isDebugMode() ? console.log(error.stack) : console.log(colors.grey(messageStr));
|
|
88
88
|
configOption.catchableError = true;
|
|
89
89
|
tmpError = jsonMsg;
|
|
90
90
|
return [3 /*break*/, 5];
|
|
@@ -100,7 +100,8 @@ var HandleError = function (error) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
100
100
|
return [3 /*break*/, 5];
|
|
101
101
|
case 3:
|
|
102
102
|
console.log((0, utils_1.red)("\u2716 ".concat(defaultPrefix, "\n")));
|
|
103
|
-
console.log("".concat((0, utils_1.bgRed)('ERROR:'), "\n")
|
|
103
|
+
console.log("".concat((0, utils_1.bgRed)('ERROR:'), "\n"));
|
|
104
|
+
console.log(isDebugMode() ? error.stack : "".concat(message, "\n"));
|
|
104
105
|
return [4 /*yield*/, (0, utils_1.aiRequest)(message)];
|
|
105
106
|
case 4:
|
|
106
107
|
_a.sent();
|
|
@@ -135,4 +136,4 @@ var HandleError = function (error) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
135
136
|
});
|
|
136
137
|
}); };
|
|
137
138
|
exports.HandleError = HandleError;
|
|
138
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
139
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZXJyb3IvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsY0FBYztBQUNkLGtDQUF3RjtBQUN4Rix1REFBaUM7QUFDekIsSUFBQSxNQUFNLEdBQXlDLGNBQUksT0FBN0MsRUFBRSxNQUFNLEdBQWlDLGNBQUksT0FBckMsRUFBRSxXQUFXLEdBQW9CLGNBQUksWUFBeEIsRUFBRSxhQUFhLEdBQUssY0FBSSxjQUFULENBQVU7QUFDNUQsaURBQStDO0FBQXRDLDZHQUFBLFlBQVksT0FBQTtBQUNyQiw2REFBMEQ7QUFBakQsd0hBQUEsaUJBQWlCLE9BQUE7QUFDMUIsK0NBQTZDO0FBQXBDLDJHQUFBLFdBQVcsT0FBQTtBQUNwQix1REFBb0Q7QUFBM0Msa0hBQUEsY0FBYyxPQUFBO0FBQ3ZCLDJDQUF5QztBQUFoQyx1R0FBQSxTQUFTLE9BQUE7QUFDbEIsdURBQXFEO0FBQTVDLG1IQUFBLGVBQWUsT0FBQTtBQUN4Qiw2Q0FBMkM7QUFBbEMseUdBQUEsVUFBVSxPQUFBO0FBQ25CLGlEQUErQztBQUF0Qyw2R0FBQSxZQUFZLE9BQUE7QUFFckIsU0FBUyxTQUFTLENBQUMsTUFBYyxFQUFFLElBQVk7SUFDN0MsT0FBTyxVQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLFNBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLENBQUUsQ0FBQztBQUNoRSxDQUFDO0FBTU0sSUFBTSxXQUFXLEdBQUcsVUFBTyxLQUFZOzs7OztnQkFDdEMsYUFBYSxHQUFHLFVBQVUsQ0FBQztnQkFDM0IsWUFBWSxHQUFHLEVBQUUsT0FBTyxFQUFFLEVBQUUsRUFBRSxjQUFjLEVBQUUsS0FBSyxFQUFFLENBQUM7Z0JBQ3hELFFBQVEsR0FBYyxLQUFLLENBQUM7Z0JBRTFCLFFBQVEs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
|
package/lib/help/index.js
CHANGED
|
@@ -65,46 +65,47 @@ var descption = {
|
|
|
65
65
|
};
|
|
66
66
|
function help(program) {
|
|
67
67
|
return __awaiter(this, void 0, void 0, function () {
|
|
68
|
-
var helperLength, template, customeDescription, spath, yamlData, serviceList, _i, serviceList_1, service, component, instance, publishPath, publishContent, commands, key, output;
|
|
69
|
-
var
|
|
70
|
-
return __generator(this, function (
|
|
71
|
-
switch (
|
|
68
|
+
var helperLength, _a, rawData, template, help, customeDescription, spath, yamlData, serviceList, _i, serviceList_1, service, component, instance, publishPath, publishContent, commands, key, output;
|
|
69
|
+
var _b, _c;
|
|
70
|
+
return __generator(this, function (_d) {
|
|
71
|
+
switch (_d.label) {
|
|
72
72
|
case 0:
|
|
73
73
|
helperLength = publishHelp.maxLen(descption.Options);
|
|
74
|
-
|
|
74
|
+
_a = getGlobalArgs(process.argv.slice(2)), rawData = _a._, template = _a.template, help = _a.help;
|
|
75
75
|
customeDescription = [];
|
|
76
|
+
if (!(rawData.length === 0 && help)) return [3 /*break*/, 6];
|
|
76
77
|
return [4 /*yield*/, getTemplatePath(template)];
|
|
77
78
|
case 1:
|
|
78
|
-
spath =
|
|
79
|
+
spath = _d.sent();
|
|
79
80
|
if (!spath) return [3 /*break*/, 6];
|
|
80
81
|
return [4 /*yield*/, getYamlContent(spath)];
|
|
81
82
|
case 2:
|
|
82
|
-
yamlData =
|
|
83
|
+
yamlData = _d.sent();
|
|
83
84
|
serviceList = (0, lodash_1.keys)((0, lodash_1.get)(yamlData, 'services'));
|
|
84
85
|
if (!(serviceList.length > 1)) return [3 /*break*/, 3];
|
|
85
86
|
for (_i = 0, serviceList_1 = serviceList; _i < serviceList_1.length; _i++) {
|
|
86
87
|
service = serviceList_1[_i];
|
|
87
|
-
customeDescription.push((
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
customeDescription.push((_b = {},
|
|
89
|
+
_b["".concat(service, " [options]")] = "Please use [s ".concat(service, " -h] obtain the documentation."),
|
|
90
|
+
_b));
|
|
90
91
|
}
|
|
91
92
|
return [3 /*break*/, 6];
|
|
92
93
|
case 3:
|
|
93
94
|
component = (0, lodash_1.get)(yamlData, ['services', serviceList[0], 'component']);
|
|
94
95
|
return [4 /*yield*/, loadComponent(component)];
|
|
95
96
|
case 4:
|
|
96
|
-
instance =
|
|
97
|
+
instance = _d.sent();
|
|
97
98
|
publishPath = path_1.default.join(instance.__path, 'publish.yaml');
|
|
98
99
|
return [4 /*yield*/, getYamlContent(publishPath)];
|
|
99
100
|
case 5:
|
|
100
|
-
publishContent =
|
|
101
|
+
publishContent = _d.sent();
|
|
101
102
|
commands = publishContent.Commands;
|
|
102
103
|
if (commands) {
|
|
103
104
|
for (key in commands) {
|
|
104
|
-
customeDescription.push((
|
|
105
|
+
customeDescription.push((_c = {}, _c[key] = commands[key], _c));
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
|
-
|
|
108
|
+
_d.label = 6;
|
|
108
109
|
case 6:
|
|
109
110
|
output = [
|
|
110
111
|
"".concat((0, utils_1.emoji)('🚀'), " Welcome to the Serverless Devs.\n"),
|
|
@@ -123,4 +124,4 @@ function help(program) {
|
|
|
123
124
|
});
|
|
124
125
|
}
|
|
125
126
|
exports.default = help;
|
|
126
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
127
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaGVscC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLGtDQUFpQztBQUNqQyxpQ0FBbUM7QUFDbkMsdURBQWlDO0FBQ2pDLDhDQUF3QjtBQUNoQixJQUFBLGFBQWEsR0FBaUYsY0FBSSxjQUFyRixFQUFFLFdBQVcsR0FBb0UsY0FBSSxZQUF4RSxFQUFFLGFBQWEsR0FBcUQsY0FBSSxjQUF6RCxFQUFFLGVBQWUsR0FBb0MsY0FBSSxnQkFBeEMsRUFBRSxjQUFjLEdBQW9CLGNBQUksZUFBeEIsRUFBRSxhQUFhLEdBQUssY0FBSSxjQUFULENBQVU7QUFFM0csSUFBTSxTQUFTLEdBQUc7SUFDaEIsT0FBTyxFQUFFO1FBQ1AsRUFBRSxTQUFTLEVBQUUsbUJBQW1CLEVBQUU7UUFDbEMsRUFBRSxnQkFBZ0IsRUFBRSwyQkFBMkIsRUFBRTtRQUNqRCxFQUFFLHVCQUF1QixFQUFFLDRCQUE0QixFQUFFO1FBQ3pELEVBQUUsMEJBQTBCLEVBQUUsZ0NBQWdDLEVBQUU7UUFDaEUsRUFBRSxlQUFlLEVBQUUsNEJBQTRCLEVBQUU7UUFDakQsRUFBRSxZQUFZLEVBQUUsMkJBQTJCLEVBQUU7S0FDOUM7SUFDRCxRQUFRLEVBQUU7UUFDUixFQUFFLE1BQU0sRUFBRSxnQ0FBZ0MsRUFBRTtRQUM1QyxFQUFFLElBQUksRUFBRSx3Q0FBd0MsRUFBRTtRQUNsRCxFQUFFLEdBQUcsRUFBRSwrQ0FBK0MsRUFBRTtRQUN4RCxFQUFFLEdBQUcsRUFBRSw0QkFBNEIsRUFBRTtRQUNyQyxFQUFFLEtBQUssRUFBRSwrQkFBK0IsRUFBRTtRQUMxQyxFQUFFLFNBQVMsRUFBRSxzQ0FBc0MsRUFBRTtLQUN0RDtJQUNELFFBQVEsRUFBRSxDQUFDLEVBQUUsSUFBSSxFQUFFLG1EQUFtRCxFQUFFLENBQUM7Q0FDMUUsQ0FBQztB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
|