@serverless-devs/s 2.0.97-beta.6 → 2.0.97-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clean/index.js +1 -1
- package/lib/cli/index.js +1 -1
- package/lib/component/index.js +1 -1
- package/lib/config/add/index.js +1 -1
- package/lib/config/delete/index.js +1 -1
- package/lib/config/get/index.js +1 -1
- package/lib/config/index.js +1 -1
- package/lib/index.js +97 -117
- package/lib/init/index.js +76 -91
- package/lib/set/analysis/index.js +1 -1
- package/lib/set/index.js +1 -1
- package/lib/set/locale/index.js +1 -1
- package/lib/set/registry/index.js +1 -1
- package/lib/set/workspace/index.js +1 -1
- package/lib/update-notifier/index.js +19 -19
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ __p += '`),Y&&(R+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+R+`return __p
|
|
34
|
-
}`;var B=ul(function(){return Z(h,P+"return "+R).apply(i,g)});if(B.source=R,zs(B))throw B;return B}function am(e){return J(e).toLowerCase()}function lm(e){return J(e).toUpperCase()}function fm(e,t,n){if(e=J(e),e&&(n||t===i))return go(e);if(!e||!(t=Ne(t)))return e;var u=Je(e),l=Je(t),h=_o(u,l),g=vo(u,l)+1;return Pt(u,h,g).join("")}function cm(e,t,n){if(e=J(e),e&&(n||t===i))return e.slice(0,Eo(e)+1);if(!e||!(t=Ne(t)))return e;var u=Je(e),l=vo(u,Je(t))+1;return Pt(u,0,l).join("")}function hm(e,t,n){if(e=J(e),e&&(n||t===i))return e.replace(zi,"");if(!e||!(t=Ne(t)))return e;var u=Je(e),l=_o(u,Je(t));return Pt(u,l).join("")}function pm(e,t){var n=uh,u=oh;if(ie(t)){var l="separator"in t?t.separator:l;n="length"in t?G(t.length):n,u="omission"in t?Ne(t.omission):u}e=J(e);var h=e.length;if(hn(e)){var g=Je(e);h=g.length}if(n>=h)return e;var d=n-pn(u);if(d<1)return u;var m=g?Pt(g,0,d).join(""):e.slice(0,d);if(l===i)return m+u;if(g&&(d+=m.length-d),Vs(l)){if(e.slice(d).search(l)){var O,S=m;for(l.global||(l=as(l.source,J(qu.exec(l))+"g")),l.lastIndex=0;O=l.exec(S);)var R=O.index;m=m.slice(0,R===i?d:R)}}else if(e.indexOf(Ne(l),d)!=d){var I=m.lastIndexOf(l);I>-1&&(m=m.slice(0,I))}return m+u}function gm(e){return e=J(e),e&&Sh.test(e)?e.replace(Nu,Bp):e}var dm=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ks=oa("toUpperCase");function sl(e,t,n){return e=J(e),t=n?i:t,t===i?Mp(e)?Vp(e):bp(e):e.match(t)||[]}var ul=z(function(e,t){try{return Le(e,i,t)}catch(n){return zs(n)?n:new U(n)}}),_m=vt(function(e,t){return He(t,function(n){n=ot(n),dt(e,n,Bs(e[n],e))}),e});function vm(e){var t=e==null?0:e.length,n=q();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new Ue(f);return[n(u[0]),u[1]]}):[],z(function(u){for(var l=-1;++l<t;){var h=e[l];if(Le(h[0],this,u))return Le(h[1],this,u)}})}function mm(e){return Bg(Ge(e,p))}function Zs(e){return function(){return e}}function Em(e,t){return e==null||e!==e?t:e}var ym=la(),wm=la(!0);function Te(e){return e}function Js(e){return Ho(typeof e=="function"?e:Ge(e,p))}function xm(e){return Wo(Ge(e,p))}function Am(e,t){return Go(e,Ge(t,p))}var Om=z(function(e,t){return function(n){return Jn(n,e,t)}}),Sm=z(function(e,t){return function(n){return Jn(e,n,t)}});function ks(e,t,n){var u=he(t),l=Kr(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=Kr(t,he(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=Et(e);return He(l,function(d){var m=t[d];e[d]=m,g&&(e.prototype[d]=function(){var O=this.__chain__;if(h||O){var S=e(this.__wrapped__),R=S.__actions__=Ie(this.__actions__);return R.push({func:m,args:arguments,thisArg:e}),S.__chain__=O,S}return m.apply(e,It([this.value()],arguments))})}),e}function Rm(){return ce._===this&&(ce._=kp),this}function Qs(){}function Im(e){return e=G(e),z(function(t){return Bo(t,e)})}var Cm=Ts(re),bm=Ts(lo),Tm=Ts(ts);function ol(e){return Fs(e)?ns(ot(e)):ud(e)}function Lm(e){return function(t){return e==null?i:Xt(e,t)}}var $m=ca(),Nm=ca(!0);function eu(){return[]}function tu(){return!1}function Pm(){return{}}function Dm(){return""}function qm(){return!0}function Fm(e,t){if(e=G(e),e<1||e>St)return[];var n=it,u=ve(e,it);t=q(t),e-=it;for(var l=ss(u,t);++n<e;)t(n);return l}function Mm(e){return W(e)?re(e,ot):Pe(e)?[e]:Ie(Ia(J(e)))}function Hm(e){var t=++Zp;return J(e)+t}var Um=ti(function(e,t){return e+t},0),Wm=Ls("ceil"),Gm=ti(function(e,t){return e/t},1),Bm=Ls("floor");function Xm(e){return e&&e.length?Yr(e,Te,_s):i}function zm(e,t){return e&&e.length?Yr(e,q(t,2),_s):i}function Vm(e){return ho(e,Te)}function jm(e,t){return ho(e,q(t,2))}function Ym(e){return e&&e.length?Yr(e,Te,ys):i}function Km(e,t){return e&&e.length?Yr(e,q(t,2),ys):i}var Zm=ti(function(e,t){return e*t},1),Jm=Ls("round"),km=ti(function(e,t){return e-t},0);function Qm(e){return e&&e.length?is(e,Te):0}function e1(e,t){return e&&e.length?is(e,q(t,2)):0}return c.after=x0,c.ary=Ma,c.assign=lv,c.assignIn=ka,c.assignInWith=gi,c.assignWith=fv,c.at=cv,c.before=Ha,c.bind=Bs,c.bindAll=_m,c.bindKey=Ua,c.castArray=P0,c.chain=Da,c.chunk=Bd,c.compact=Xd,c.concat=zd,c.cond=vm,c.conforms=mm,c.constant=Zs,c.countBy=Q_,c.create=hv,c.curry=Wa,c.curryRight=Ga,c.debounce=Ba,c.defaults=pv,c.defaultsDeep=gv,c.defer=A0,c.delay=O0,c.difference=Vd,c.differenceBy=jd,c.differenceWith=Yd,c.drop=Kd,c.dropRight=Zd,c.dropRightWhile=Jd,c.dropWhile=kd,c.fill=Qd,c.filter=t0,c.flatMap=i0,c.flatMapDeep=s0,c.flatMapDepth=u0,c.flatten=La,c.flattenDeep=e_,c.flattenDepth=t_,c.flip=S0,c.flow=ym,c.flowRight=wm,c.fromPairs=n_,c.functions=wv,c.functionsIn=xv,c.groupBy=o0,c.initial=i_,c.intersection=s_,c.intersectionBy=u_,c.intersectionWith=o_,c.invert=Ov,c.invertBy=Sv,c.invokeMap=l0,c.iteratee=Js,c.keyBy=f0,c.keys=he,c.keysIn=be,c.map=ai,c.mapKeys=Iv,c.mapValues=Cv,c.matches=xm,c.matchesProperty=Am,c.memoize=fi,c.merge=bv,c.mergeWith=Qa,c.method=Om,c.methodOf=Sm,c.mixin=ks,c.negate=ci,c.nthArg=Im,c.omit=Tv,c.omitBy=Lv,c.once=R0,c.orderBy=c0,c.over=Cm,c.overArgs=I0,c.overEvery=bm,c.overSome=Tm,c.partial=Xs,c.partialRight=Xa,c.partition=h0,c.pick=$v,c.pickBy=el,c.property=ol,c.propertyOf=Lm,c.pull=c_,c.pullAll=Na,c.pullAllBy=h_,c.pullAllWith=p_,c.pullAt=g_,c.range=$m,c.rangeRight=Nm,c.rearg=C0,c.reject=d0,c.remove=d_,c.rest=b0,c.reverse=Ws,c.sampleSize=v0,c.set=Pv,c.setWith=Dv,c.shuffle=m0,c.slice=__,c.sortBy=w0,c.sortedUniq=A_,c.sortedUniqBy=O_,c.split=im,c.spread=T0,c.tail=S_,c.take=R_,c.takeRight=I_,c.takeRightWhile=C_,c.takeWhile=b_,c.tap=X_,c.throttle=L0,c.thru=oi,c.toArray=Ka,c.toPairs=tl,c.toPairsIn=nl,c.toPath=Mm,c.toPlainObject=Ja,c.transform=qv,c.unary=$0,c.union=T_,c.unionBy=L_,c.unionWith=$_,c.uniq=N_,c.uniqBy=P_,c.uniqWith=D_,c.unset=Fv,c.unzip=Gs,c.unzipWith=Pa,c.update=Mv,c.updateWith=Hv,c.values=xn,c.valuesIn=Uv,c.without=q_,c.words=sl,c.wrap=N0,c.xor=F_,c.xorBy=M_,c.xorWith=H_,c.zip=U_,c.zipObject=W_,c.zipObjectDeep=G_,c.zipWith=B_,c.entries=tl,c.entriesIn=nl,c.extend=ka,c.extendWith=gi,ks(c,c),c.add=Um,c.attempt=ul,c.camelCase=Xv,c.capitalize=rl,c.ceil=Wm,c.clamp=Wv,c.clone=D0,c.cloneDeep=F0,c.cloneDeepWith=M0,c.cloneWith=q0,c.conformsTo=H0,c.deburr=il,c.defaultTo=Em,c.divide=Gm,c.endsWith=zv,c.eq=Qe,c.escape=Vv,c.escapeRegExp=jv,c.every=e0,c.find=n0,c.findIndex=ba,c.findKey=dv,c.findLast=r0,c.findLastIndex=Ta,c.findLastKey=_v,c.floor=Bm,c.forEach=qa,c.forEachRight=Fa,c.forIn=vv,c.forInRight=mv,c.forOwn=Ev,c.forOwnRight=yv,c.get=js,c.gt=U0,c.gte=W0,c.has=Av,c.hasIn=Ys,c.head=$a,c.identity=Te,c.includes=a0,c.indexOf=r_,c.inRange=Gv,c.invoke=Rv,c.isArguments=jt,c.isArray=W,c.isArrayBuffer=G0,c.isArrayLike=Ce,c.isArrayLikeObject=ue,c.isBoolean=B0,c.isBuffer=Dt,c.isDate=X0,c.isElement=z0,c.isEmpty=V0,c.isEqual=j0,c.isEqualWith=Y0,c.isError=zs,c.isFinite=K0,c.isFunction=Et,c.isInteger=za,c.isLength=hi,c.isMap=Va,c.isMatch=Z0,c.isMatchWith=J0,c.isNaN=k0,c.isNative=Q0,c.isNil=tv,c.isNull=ev,c.isNumber=ja,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=rr,c.isRegExp=Vs,c.isSafeInteger=nv,c.isSet=Ya,c.isString=pi,c.isSymbol=Pe,c.isTypedArray=wn,c.isUndefined=rv,c.isWeakMap=iv,c.isWeakSet=sv,c.join=a_,c.kebabCase=Yv,c.last=Xe,c.lastIndexOf=l_,c.lowerCase=Kv,c.lowerFirst=Zv,c.lt=uv,c.lte=ov,c.max=Xm,c.maxBy=zm,c.mean=Vm,c.meanBy=jm,c.min=Ym,c.minBy=Km,c.stubArray=eu,c.stubFalse=tu,c.stubObject=Pm,c.stubString=Dm,c.stubTrue=qm,c.multiply=Zm,c.nth=f_,c.noConflict=Rm,c.noop=Qs,c.now=li,c.pad=Jv,c.padEnd=kv,c.padStart=Qv,c.parseInt=em,c.random=Bv,c.reduce=p0,c.reduceRight=g0,c.repeat=tm,c.replace=nm,c.result=Nv,c.round=Jm,c.runInContext=v,c.sample=_0,c.size=E0,c.snakeCase=rm,c.some=y0,c.sortedIndex=v_,c.sortedIndexBy=m_,c.sortedIndexOf=E_,c.sortedLastIndex=y_,c.sortedLastIndexBy=w_,c.sortedLastIndexOf=x_,c.startCase=sm,c.startsWith=um,c.subtract=km,c.sum=Qm,c.sumBy=e1,c.template=om,c.times=Fm,c.toFinite=yt,c.toInteger=G,c.toLength=Za,c.toLower=am,c.toNumber=ze,c.toSafeInteger=av,c.toString=J,c.toUpper=lm,c.trim=fm,c.trimEnd=cm,c.trimStart=hm,c.truncate=pm,c.unescape=gm,c.uniqueId=Hm,c.upperCase=dm,c.upperFirst=Ks,c.each=qa,c.eachRight=Fa,c.first=$a,ks(c,function(){var e={};return st(c,function(t,n){k.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,He(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),He(["drop","take"],function(e,t){j.prototype[e]=function(n){n=n===i?1:fe(G(n),0);var u=this.__filtered__&&!t?new j(this):this.clone();return u.__filtered__?u.__takeCount__=ve(n,u.__takeCount__):u.__views__.push({size:ve(n,it),type:e+(u.__dir__<0?"Right":"")}),u},j.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),He(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Tu||n==ch;j.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:q(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),He(["head","last"],function(e,t){var n="take"+(t?"Right":"");j.prototype[e]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");j.prototype[e]=function(){return this.__filtered__?new j(this):this[n](1)}}),j.prototype.compact=function(){return this.filter(Te)},j.prototype.find=function(e){return this.filter(e).head()},j.prototype.findLast=function(e){return this.reverse().find(e)},j.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new j(this):this.map(function(n){return Jn(n,e,t)})}),j.prototype.reject=function(e){return this.filter(ci(q(e)))},j.prototype.slice=function(e,t){e=G(e);var n=this;return n.__filtered__&&(e>0||t<0)?new j(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},j.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},j.prototype.toArray=function(){return this.take(it)},st(j.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var g=this.__wrapped__,d=u?[1]:arguments,m=g instanceof j,O=d[0],S=m||W(g),R=function(V){var Y=l.apply(c,It([V],d));return u&&I?Y[0]:Y};S&&n&&typeof O=="function"&&O.length!=1&&(m=S=!1);var I=this.__chain__,P=!!this.__actions__.length,F=h&&!I,B=m&&!P;if(!h&&S){g=B?g:new j(this);var M=e.apply(g,d);return M.__actions__.push({func:oi,args:[R],thisArg:i}),new We(M,I)}return F&&B?e.apply(this,d):(M=this.thru(R),F?u?M.value()[0]:M.value():M)})}),He(["pop","push","shift","sort","splice","unshift"],function(e){var t=Nr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(W(h)?h:[],l)}return this[n](function(g){return t.apply(W(g)?g:[],l)})}}),st(j.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";k.call(_n,u)||(_n[u]=[]),_n[u].push({name:t,func:n})}}),_n[ei(i,Ft).name]=[{name:"wrapper",func:i}],j.prototype.clone=gg,j.prototype.reverse=dg,j.prototype.value=_g,c.prototype.at=z_,c.prototype.chain=V_,c.prototype.commit=j_,c.prototype.next=Y_,c.prototype.plant=Z_,c.prototype.reverse=J_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=k_,c.prototype.first=c.prototype.head,Xn&&(c.prototype[Xn]=K_),c},bt=jp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ce._=bt,define(function(){return bt})):Ht?((Ht.exports=bt)._=bt,Ji._=bt):ce._=bt}).call(An)});var or=T((qw,ml)=>{var r1="2.0.0",i1=256,s1=Number.MAX_SAFE_INTEGER||9007199254740991,u1=16;ml.exports={SEMVER_SPEC_VERSION:r1,MAX_LENGTH:i1,MAX_SAFE_INTEGER:s1,MAX_SAFE_COMPONENT_LENGTH:u1}});var ar=T((Fw,El)=>{var o1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};El.exports=o1});var Zt=T((qt,yl)=>{var{MAX_SAFE_COMPONENT_LENGTH:su}=or(),a1=ar();qt=yl.exports={};var l1=qt.re=[],L=qt.src=[],$=qt.t={},f1=0,X=(i,r,s)=>{let o=f1++;a1(o,r),$[i]=o,L[o]=r,l1[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[$.NUMERICIDENTIFIER]})\\.(${L[$.NUMERICIDENTIFIER]})\\.(${L[$.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${L[$.NUMERICIDENTIFIERLOOSE]})\\.(${L[$.NUMERICIDENTIFIERLOOSE]})\\.(${L[$.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${L[$.NUMERICIDENTIFIER]}|${L[$.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${L[$.NUMERICIDENTIFIERLOOSE]}|${L[$.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${L[$.PRERELEASEIDENTIFIER]}(?:\\.${L[$.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${L[$.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[$.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER","[0-9A-Za-z-]+");X("BUILD",`(?:\\+(${L[$.BUILDIDENTIFIER]}(?:\\.${L[$.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${L[$.MAINVERSION]}${L[$.PRERELEASE]}?${L[$.BUILD]}?`);X("FULL",`^${L[$.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${L[$.MAINVERSIONLOOSE]}${L[$.PRERELEASELOOSE]}?${L[$.BUILD]}?`);X("LOOSE",`^${L[$.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${L[$.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${L[$.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${L[$.XRANGEIDENTIFIER]})(?:\\.(${L[$.XRANGEIDENTIFIER]})(?:\\.(${L[$.XRANGEIDENTIFIER]})(?:${L[$.PRERELEASE]})?${L[$.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${L[$.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[$.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[$.XRANGEIDENTIFIERLOOSE]})(?:${L[$.PRERELEASELOOSE]})?${L[$.BUILD]}?)?)?`);X("XRANGE",`^${L[$.GTLT]}\\s*${L[$.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${L[$.GTLT]}\\s*${L[$.XRANGEPLAINLOOSE]}$`);X("COERCE",`(^|[^\\d])(\\d{1,${su}})(?:\\.(\\d{1,${su}}))?(?:\\.(\\d{1,${su}}))?(?:$|[^\\d])`);X("COERCERTL",L[$.COERCE],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${L[$.LONETILDE]}\\s+`,!0);qt.tildeTrimReplace="$1~";X("TILDE",`^${L[$.LONETILDE]}${L[$.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${L[$.LONETILDE]}${L[$.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${L[$.LONECARET]}\\s+`,!0);qt.caretTrimReplace="$1^";X("CARET",`^${L[$.LONECARET]}${L[$.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${L[$.LONECARET]}${L[$.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${L[$.GTLT]}\\s*(${L[$.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${L[$.GTLT]}\\s*(${L[$.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${L[$.GTLT]}\\s*(${L[$.LOOSEPLAIN]}|${L[$.XRANGEPLAIN]})`,!0);qt.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${L[$.XRANGEPLAIN]})\\s+-\\s+(${L[$.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${L[$.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[$.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0.0.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var lr=T((Mw,wl)=>{var c1=["includePrerelease","loose","rtl"],h1=i=>i?typeof i!="object"?{loose:!0}:c1.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};wl.exports=h1});var _i=T((Hw,Ol)=>{var xl=/^[0-9]+$/,Al=(i,r)=>{let s=xl.test(i),o=xl.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},p1=(i,r)=>Al(r,i);Ol.exports={compareIdentifiers:Al,rcompareIdentifiers:p1}});var Ee=T((Uw,Cl)=>{var vi=ar(),{MAX_LENGTH:Sl,MAX_SAFE_INTEGER:mi}=or(),{re:Rl,t:Il}=Zt(),g1=lr(),{compareIdentifiers:fr}=_i(),Ve=class{constructor(r,s){if(s=g1(s),r instanceof Ve){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>Sl)throw new TypeError(`version is longer than ${Sl} characters`);vi("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?Rl[Il.LOOSE]:Rl[Il.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>mi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>mi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>mi||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){let a=+f;if(a>=0&&a<mi)return a}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(vi("SemVer.compare",this.version,this.options,r),!(r instanceof Ve)){if(typeof r=="string"&&r===this.version)return 0;r=new Ve(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Ve||(r=new Ve(r,this.options)),fr(this.major,r.major)||fr(this.minor,r.minor)||fr(this.patch,r.patch)}comparePre(r){if(r instanceof Ve||(r=new Ve(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let s=0;do{let o=this.prerelease[s],f=r.prerelease[s];if(vi("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 fr(o,f)}while(++s)}compareBuild(r){r instanceof Ve||(r=new Ve(r,this.options));let s=0;do{let o=this.build[s],f=r.build[s];if(vi("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 fr(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}};Cl.exports=Ve});var Jt=T((Ww,$l)=>{var{MAX_LENGTH:d1}=or(),{re:bl,t:Tl}=Zt(),Ll=Ee(),_1=lr(),v1=(i,r)=>{if(r=_1(r),i instanceof Ll)return i;if(typeof i!="string"||i.length>d1||!(r.loose?bl[Tl.LOOSE]:bl[Tl.FULL]).test(i))return null;try{return new Ll(i,r)}catch{return null}};$l.exports=v1});var Pl=T((Gw,Nl)=>{var m1=Jt(),E1=(i,r)=>{let s=m1(i,r);return s?s.version:null};Nl.exports=E1});var ql=T((Bw,Dl)=>{var y1=Jt(),w1=(i,r)=>{let s=y1(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};Dl.exports=w1});var Ml=T((Xw,Fl)=>{var x1=Ee(),A1=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new x1(i,s).inc(r,o).version}catch{return null}};Fl.exports=A1});var je=T((zw,Ul)=>{var Hl=Ee(),O1=(i,r,s)=>new Hl(i,s).compare(new Hl(r,s));Ul.exports=O1});var Ei=T((Vw,Wl)=>{var S1=je(),R1=(i,r,s)=>S1(i,r,s)===0;Wl.exports=R1});var Xl=T((jw,Bl)=>{var Gl=Jt(),I1=Ei(),C1=(i,r)=>{if(I1(i,r))return null;{let s=Gl(i),o=Gl(r),f=s.prerelease.length||o.prerelease.length,a=f?"pre":"",_=f?"prerelease":"";for(let E in s)if((E==="major"||E==="minor"||E==="patch")&&s[E]!==o[E])return a+E;return _}};Bl.exports=C1});var Vl=T((Yw,zl)=>{var b1=Ee(),T1=(i,r)=>new b1(i,r).major;zl.exports=T1});var Yl=T((Kw,jl)=>{var L1=Ee(),$1=(i,r)=>new L1(i,r).minor;jl.exports=$1});var Zl=T((Zw,Kl)=>{var N1=Ee(),P1=(i,r)=>new N1(i,r).patch;Kl.exports=P1});var kl=T((Jw,Jl)=>{var D1=Jt(),q1=(i,r)=>{let s=D1(i,r);return s&&s.prerelease.length?s.prerelease:null};Jl.exports=q1});var ef=T((kw,Ql)=>{var F1=je(),M1=(i,r,s)=>F1(r,i,s);Ql.exports=M1});var nf=T((Qw,tf)=>{var H1=je(),U1=(i,r)=>H1(i,r,!0);tf.exports=U1});var yi=T((ex,sf)=>{var rf=Ee(),W1=(i,r,s)=>{let o=new rf(i,s),f=new rf(r,s);return o.compare(f)||o.compareBuild(f)};sf.exports=W1});var of=T((tx,uf)=>{var G1=yi(),B1=(i,r)=>i.sort((s,o)=>G1(s,o,r));uf.exports=B1});var lf=T((nx,af)=>{var X1=yi(),z1=(i,r)=>i.sort((s,o)=>X1(o,s,r));af.exports=z1});var cr=T((rx,ff)=>{var V1=je(),j1=(i,r,s)=>V1(i,r,s)>0;ff.exports=j1});var wi=T((ix,cf)=>{var Y1=je(),K1=(i,r,s)=>Y1(i,r,s)<0;cf.exports=K1});var uu=T((sx,hf)=>{var Z1=je(),J1=(i,r,s)=>Z1(i,r,s)!==0;hf.exports=J1});var xi=T((ux,pf)=>{var k1=je(),Q1=(i,r,s)=>k1(i,r,s)>=0;pf.exports=Q1});var Ai=T((ox,gf)=>{var eE=je(),tE=(i,r,s)=>eE(i,r,s)<=0;gf.exports=tE});var ou=T((ax,df)=>{var nE=Ei(),rE=uu(),iE=cr(),sE=xi(),uE=wi(),oE=Ai(),aE=(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 nE(i,s,o);case"!=":return rE(i,s,o);case">":return iE(i,s,o);case">=":return sE(i,s,o);case"<":return uE(i,s,o);case"<=":return oE(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};df.exports=aE});var vf=T((lx,_f)=>{var lE=Ee(),fE=Jt(),{re:Oi,t:Si}=Zt(),cE=(i,r)=>{if(i instanceof lE)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(Oi[Si.COERCE]);else{let o;for(;(o=Oi[Si.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),Oi[Si.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;Oi[Si.COERCERTL].lastIndex=-1}return s===null?null:fE(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};_f.exports=cE});var Ef=T((fx,mf)=>{"use strict";mf.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var wf=T((cx,yf)=>{"use strict";yf.exports=K;K.Node=kt;K.create=K;function K(i){var r=this;if(r instanceof K||(r=new K),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(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}K.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,s=i.prev;return r&&(r.prev=s),s&&(s.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=s),i.list.length--,i.next=null,i.prev=null,i.list=null,r};K.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var r=this.head;i.list=this,i.next=r,r&&(r.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};K.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var r=this.tail;i.list=this,i.prev=r,r&&(r.next=i),this.tail=i,this.head||(this.head=i),this.length++}};K.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)pE(this,arguments[i]);return this.length};K.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)gE(this,arguments[i]);return this.length};K.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};K.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};K.prototype.forEach=function(i,r){r=r||this;for(var s=this.head,o=0;s!==null;o++)i.call(r,s.value,o,this),s=s.next};K.prototype.forEachReverse=function(i,r){r=r||this;for(var s=this.tail,o=this.length-1;s!==null;o--)i.call(r,s.value,o,this),s=s.prev};K.prototype.get=function(i){for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;if(r===i&&s!==null)return s.value};K.prototype.getReverse=function(i){for(var r=0,s=this.tail;s!==null&&r<i;r++)s=s.prev;if(r===i&&s!==null)return s.value};K.prototype.map=function(i,r){r=r||this;for(var s=new K,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};K.prototype.mapReverse=function(i,r){r=r||this;for(var s=new K,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};K.prototype.reduce=function(i,r){var s,o=this.head;if(arguments.length>1)s=r;else if(this.head)o=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=0;o!==null;f++)s=i(s,o.value,f),o=o.next;return s};K.prototype.reduceReverse=function(i,r){var s,o=this.tail;if(arguments.length>1)s=r;else if(this.tail)o=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=this.length-1;o!==null;f--)s=i(s,o.value,f),o=o.prev;return s};K.prototype.toArray=function(){for(var i=new Array(this.length),r=0,s=this.head;s!==null;r++)i[r]=s.value,s=s.next;return i};K.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,s=this.tail;s!==null;r++)i[r]=s.value,s=s.prev;return i};K.prototype.slice=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new K;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,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};K.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new K;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,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};K.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 a=[],o=0;f&&o<r;o++)a.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=hE(this,f,s[o]);return a};K.prototype.reverse=function(){for(var i=this.head,r=this.tail,s=i;s!==null;s=s.prev){var o=s.prev;s.prev=s.next,s.next=o}return this.head=r,this.tail=i,this};function hE(i,r,s){var o=r===i.head?new kt(s,null,r,i):new kt(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function pE(i,r){i.tail=new kt(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function gE(i,r){i.head=new kt(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function kt(i,r,s,o){if(!(this instanceof kt))return new kt(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{Ef()(K)}catch{}});var Cf=T((hx,If)=>{"use strict";var dE=wf(),Qt=Symbol("max"),xt=Symbol("length"),On=Symbol("lengthCalculator"),hr=Symbol("allowStale"),en=Symbol("maxAge"),At=Symbol("dispose"),xf=Symbol("noDisposeOnSet"),pe=Symbol("lruList"),tt=Symbol("cache"),Af=Symbol("updateAgeOnGet"),au=()=>1,Of=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[Qt]=r.max||1/0,o=r.length||au;if(this[On]=typeof o!="function"?au:o,this[hr]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[en]=r.maxAge||0,this[At]=r.dispose,this[xf]=r.noDisposeOnSet||!1,this[Af]=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[Qt]=r||1/0,pr(this)}get max(){return this[Qt]}set allowStale(r){this[hr]=!!r}get allowStale(){return this[hr]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[en]=r,pr(this)}get maxAge(){return this[en]}set lengthCalculator(r){typeof r!="function"&&(r=au),r!==this[On]&&(this[On]=r,this[xt]=0,this[pe].forEach(s=>{s.length=this[On](s.value,s.key),this[xt]+=s.length})),pr(this)}get lengthCalculator(){return this[On]}get length(){return this[xt]}get itemCount(){return this[pe].length}rforEach(r,s){s=s||this;for(let o=this[pe].tail;o!==null;){let f=o.prev;Rf(this,r,o,s),o=f}}forEach(r,s){s=s||this;for(let o=this[pe].head;o!==null;){let f=o.next;Rf(this,r,o,s),o=f}}keys(){return this[pe].toArray().map(r=>r.key)}values(){return this[pe].toArray().map(r=>r.value)}reset(){this[At]&&this[pe]&&this[pe].length&&this[pe].forEach(r=>this[At](r.key,r.value)),this[tt]=new Map,this[pe]=new dE,this[xt]=0}dump(){return this[pe].map(r=>Ri(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[pe]}set(r,s,o){if(o=o||this[en],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let f=o?Date.now():0,a=this[On](s,r);if(this[tt].has(r)){if(a>this[Qt])return Sn(this,this[tt].get(r)),!1;let y=this[tt].get(r).value;return this[At]&&(this[xf]||this[At](r,y.value)),y.now=f,y.maxAge=o,y.value=s,this[xt]+=a-y.length,y.length=a,this.get(r),pr(this),!0}let _=new Sf(r,s,a,f,o);return _.length>this[Qt]?(this[At]&&this[At](r,s),!1):(this[xt]+=_.length,this[pe].unshift(_),this[tt].set(r,this[pe].head),pr(this),!0)}has(r){if(!this[tt].has(r))return!1;let s=this[tt].get(r).value;return!Ri(this,s)}get(r){return lu(this,r,!0)}peek(r){return lu(this,r,!1)}pop(){let r=this[pe].tail;return r?(Sn(this,r),r.value):null}del(r){Sn(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],a=f.e||0;if(a===0)this.set(f.k,f.v);else{let _=a-s;_>0&&this.set(f.k,f.v,_)}}}prune(){this[tt].forEach((r,s)=>lu(this,s,!1))}},lu=(i,r,s)=>{let o=i[tt].get(r);if(o){let f=o.value;if(Ri(i,f)){if(Sn(i,o),!i[hr])return}else s&&(i[Af]&&(o.value.now=Date.now()),i[pe].unshiftNode(o));return f.value}},Ri=(i,r)=>{if(!r||!r.maxAge&&!i[en])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[en]&&s>i[en]},pr=i=>{if(i[xt]>i[Qt])for(let r=i[pe].tail;i[xt]>i[Qt]&&r!==null;){let s=r.prev;Sn(i,r),r=s}},Sn=(i,r)=>{if(r){let s=r.value;i[At]&&i[At](s.key,s.value),i[xt]-=s.length,i[tt].delete(s.key),i[pe].removeNode(r)}},Sf=class{constructor(r,s,o,f,a){this.key=r,this.value=s,this.length=o,this.now=f,this.maxAge=a||0}},Rf=(i,r,s,o)=>{let f=s.value;Ri(i,f)&&(Sn(i,s),i[hr]||(f=void 0)),f&&r.call(o,f.value,f.key,i)};If.exports=Of});var Ye=T((px,$f)=>{var Rn=class{constructor(r,s){if(s=vE(s),r instanceof Rn)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new Rn(r.raw,s);if(r instanceof fu)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=>!Tf(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&&xE(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=bf.get(o);if(f)return f;let a=this.options.loose,_=a?ye[_e.HYPHENRANGELOOSE]:ye[_e.HYPHENRANGE];r=r.replace(_,$E(this.options.includePrerelease)),ae("hyphen replace",r),r=r.replace(ye[_e.COMPARATORTRIM],EE),ae("comparator trim",r,ye[_e.COMPARATORTRIM]),r=r.replace(ye[_e.TILDETRIM],yE),r=r.replace(ye[_e.CARETTRIM],wE),r=r.split(/\s+/).join(" ");let E=a?ye[_e.COMPARATORLOOSE]:ye[_e.COMPARATOR],y=r.split(" ").map(N=>AE(N,this.options)).join(" ").split(/\s+/).map(N=>LE(N,this.options)).filter(this.options.loose?N=>!!N.match(E):()=>!0).map(N=>new fu(N,this.options)),p=y.length,A=new Map;for(let N of y){if(Tf(N))return[N];A.set(N.value,N)}A.size>1&&A.has("")&&A.delete("");let C=[...A.values()];return bf.set(o,C),C}intersects(r,s){if(!(r instanceof Rn))throw new TypeError("a Range is required");return this.set.some(o=>Lf(o,s)&&r.set.some(f=>Lf(f,s)&&o.every(a=>f.every(_=>a.intersects(_,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new mE(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(NE(this.set[s],r,this.options))return!0;return!1}};$f.exports=Rn;var _E=Cf(),bf=new _E({max:1e3}),vE=lr(),fu=gr(),ae=ar(),mE=Ee(),{re:ye,t:_e,comparatorTrimReplace:EE,tildeTrimReplace:yE,caretTrimReplace:wE}=Zt(),Tf=i=>i.value==="<0.0.0-0",xE=i=>i.value==="",Lf=(i,r)=>{let s=!0,o=i.slice(),f=o.pop();for(;s&&o.length;)s=o.every(a=>f.intersects(a,r)),f=o.pop();return s},AE=(i,r)=>(ae("comp",i,r),i=RE(i,r),ae("caret",i),i=OE(i,r),ae("tildes",i),i=CE(i,r),ae("xrange",i),i=TE(i,r),ae("stars",i),i),Oe=i=>!i||i.toLowerCase()==="x"||i==="*",OE=(i,r)=>i.trim().split(/\s+/).map(s=>SE(s,r)).join(" "),SE=(i,r)=>{let s=r.loose?ye[_e.TILDELOOSE]:ye[_e.TILDE];return i.replace(s,(o,f,a,_,E)=>{ae("tilde",i,o,f,a,_,E);let y;return Oe(f)?y="":Oe(a)?y=`>=${f}.0.0 <${+f+1}.0.0-0`:Oe(_)?y=`>=${f}.${a}.0 <${f}.${+a+1}.0-0`:E?(ae("replaceTilde pr",E),y=`>=${f}.${a}.${_}-${E} <${f}.${+a+1}.0-0`):y=`>=${f}.${a}.${_} <${f}.${+a+1}.0-0`,ae("tilde return",y),y})},RE=(i,r)=>i.trim().split(/\s+/).map(s=>IE(s,r)).join(" "),IE=(i,r)=>{ae("caret",i,r);let s=r.loose?ye[_e.CARETLOOSE]:ye[_e.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(f,a,_,E,y)=>{ae("caret",i,f,a,_,E,y);let p;return Oe(a)?p="":Oe(_)?p=`>=${a}.0.0${o} <${+a+1}.0.0-0`:Oe(E)?a==="0"?p=`>=${a}.${_}.0${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.0${o} <${+a+1}.0.0-0`:y?(ae("replaceCaret pr",y),a==="0"?_==="0"?p=`>=${a}.${_}.${E}-${y} <${a}.${_}.${+E+1}-0`:p=`>=${a}.${_}.${E}-${y} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.${E}-${y} <${+a+1}.0.0-0`):(ae("no pr"),a==="0"?_==="0"?p=`>=${a}.${_}.${E}${o} <${a}.${_}.${+E+1}-0`:p=`>=${a}.${_}.${E}${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.${E} <${+a+1}.0.0-0`),ae("caret return",p),p})},CE=(i,r)=>(ae("replaceXRanges",i,r),i.split(/\s+/).map(s=>bE(s,r)).join(" ")),bE=(i,r)=>{i=i.trim();let s=r.loose?ye[_e.XRANGELOOSE]:ye[_e.XRANGE];return i.replace(s,(o,f,a,_,E,y)=>{ae("xRange",i,o,f,a,_,E,y);let p=Oe(a),A=p||Oe(_),C=A||Oe(E),N=C;return f==="="&&N&&(f=""),y=r.includePrerelease?"-0":"",p?f===">"||f==="<"?o="<0.0.0-0":o="*":f&&N?(A&&(_=0),E=0,f===">"?(f=">=",A?(a=+a+1,_=0,E=0):(_=+_+1,E=0)):f==="<="&&(f="<",A?a=+a+1:_=+_+1),f==="<"&&(y="-0"),o=`${f+a}.${_}.${E}${y}`):A?o=`>=${a}.0.0${y} <${+a+1}.0.0-0`:C&&(o=`>=${a}.${_}.0${y} <${a}.${+_+1}.0-0`),ae("xRange return",o),o})},TE=(i,r)=>(ae("replaceStars",i,r),i.trim().replace(ye[_e.STAR],"")),LE=(i,r)=>(ae("replaceGTE0",i,r),i.trim().replace(ye[r.includePrerelease?_e.GTE0PRE:_e.GTE0],"")),$E=i=>(r,s,o,f,a,_,E,y,p,A,C,N,D)=>(Oe(o)?s="":Oe(f)?s=`>=${o}.0.0${i?"-0":""}`:Oe(a)?s=`>=${o}.${f}.0${i?"-0":""}`:_?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,Oe(p)?y="":Oe(A)?y=`<${+p+1}.0.0-0`:Oe(C)?y=`<${p}.${+A+1}.0-0`:N?y=`<=${p}.${A}.${C}-${N}`:i?y=`<${p}.${A}.${+C+1}-0`:y=`<=${y}`,`${s} ${y}`.trim()),NE=(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(ae(i[o].semver),i[o].semver!==fu.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 gr=T((gx,Ff)=>{var dr=Symbol("SemVer ANY"),_r=class{static get ANY(){return dr}constructor(r,s){if(s=PE(s),r instanceof _r){if(r.loose===!!s.loose)return r;r=r.value}hu("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===dr?this.value="":this.value=this.operator+this.semver.version,hu("comp",this)}parse(r){let s=this.options.loose?Nf[Pf.COMPARATORLOOSE]:Nf[Pf.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 Df(o[2],this.options.loose):this.semver=dr}toString(){return this.value}test(r){if(hu("Comparator.test",r,this.options.loose),this.semver===dr||r===dr)return!0;if(typeof r=="string")try{r=new Df(r,this.options)}catch{return!1}return cu(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof _r))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new qf(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new qf(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==="<"),a=this.semver.version===r.semver.version,_=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),E=cu(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),y=cu(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||f||a&&_||E||y}};Ff.exports=_r;var PE=lr(),{re:Nf,t:Pf}=Zt(),cu=ou(),hu=ar(),Df=Ee(),qf=Ye()});var vr=T((dx,Mf)=>{var DE=Ye(),qE=(i,r,s)=>{try{r=new DE(r,s)}catch{return!1}return r.test(i)};Mf.exports=qE});var Uf=T((_x,Hf)=>{var FE=Ye(),ME=(i,r)=>new FE(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));Hf.exports=ME});var Gf=T((vx,Wf)=>{var HE=Ee(),UE=Ye(),WE=(i,r,s)=>{let o=null,f=null,a=null;try{a=new UE(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||f.compare(_)===-1)&&(o=_,f=new HE(o,s))}),o};Wf.exports=WE});var Xf=T((mx,Bf)=>{var GE=Ee(),BE=Ye(),XE=(i,r,s)=>{let o=null,f=null,a=null;try{a=new BE(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||f.compare(_)===1)&&(o=_,f=new GE(o,s))}),o};Bf.exports=XE});var jf=T((Ex,Vf)=>{var pu=Ee(),zE=Ye(),zf=cr(),VE=(i,r)=>{i=new zE(i,r);let s=new pu("0.0.0");if(i.test(s)||(s=new pu("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],a=null;f.forEach(_=>{let E=new pu(_.semver.version);switch(_.operator){case">":E.prerelease.length===0?E.patch++:E.prerelease.push(0),E.raw=E.format();case"":case">=":(!a||zf(E,a))&&(a=E);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${_.operator}`)}}),a&&(!s||zf(s,a))&&(s=a)}return s&&i.test(s)?s:null};Vf.exports=VE});var Kf=T((yx,Yf)=>{var jE=Ye(),YE=(i,r)=>{try{return new jE(i,r).range||"*"}catch{return null}};Yf.exports=YE});var Ii=T((wx,Qf)=>{var KE=Ee(),Zf=gr(),{ANY:ZE}=Zf,JE=Ye(),kE=vr(),Jf=cr(),kf=wi(),QE=Ai(),ey=xi(),ty=(i,r,s,o)=>{i=new KE(i,o),r=new JE(r,o);let f,a,_,E,y;switch(s){case">":f=Jf,a=QE,_=kf,E=">",y=">=";break;case"<":f=kf,a=ey,_=Jf,E="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(kE(i,r,o))return!1;for(let p=0;p<r.set.length;++p){let A=r.set[p],C=null,N=null;if(A.forEach(D=>{D.semver===ZE&&(D=new Zf(">=0.0.0")),C=C||D,N=N||D,f(D.semver,C.semver,o)?C=D:_(D.semver,N.semver,o)&&(N=D)}),C.operator===E||C.operator===y||(!N.operator||N.operator===E)&&a(i,N.semver))return!1;if(N.operator===y&&_(i,N.semver))return!1}return!0};Qf.exports=ty});var tc=T((xx,ec)=>{var ny=Ii(),ry=(i,r,s)=>ny(i,r,">",s);ec.exports=ry});var rc=T((Ax,nc)=>{var iy=Ii(),sy=(i,r,s)=>iy(i,r,"<",s);nc.exports=sy});var uc=T((Ox,sc)=>{var ic=Ye(),uy=(i,r,s)=>(i=new ic(i,s),r=new ic(r,s),i.intersects(r));sc.exports=uy});var ac=T((Sx,oc)=>{var oy=vr(),ay=je();oc.exports=(i,r,s)=>{let o=[],f=null,a=null,_=i.sort((A,C)=>ay(A,C,s));for(let A of _)oy(A,r,s)?(a=A,f||(f=A)):(a&&o.push([f,a]),a=null,f=null);f&&o.push([f,null]);let E=[];for(let[A,C]of o)A===C?E.push(A):!C&&A===_[0]?E.push("*"):C?A===_[0]?E.push(`<=${C}`):E.push(`${A} - ${C}`):E.push(`>=${A}`);let y=E.join(" || "),p=typeof r.raw=="string"?r.raw:String(r);return y.length<p.length?y:r}});var pc=T((Rx,hc)=>{var lc=Ye(),Ci=gr(),{ANY:gu}=Ci,mr=vr(),du=je(),ly=(i,r,s={})=>{if(i===r)return!0;i=new lc(i,s),r=new lc(r,s);let o=!1;e:for(let f of i.set){for(let a of r.set){let _=fy(f,a,s);if(o=o||_!==null,_)continue e}if(o)return!1}return!0},fy=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===gu){if(r.length===1&&r[0].semver===gu)return!0;s.includePrerelease?i=[new Ci(">=0.0.0-0")]:i=[new Ci(">=0.0.0")]}if(r.length===1&&r[0].semver===gu){if(s.includePrerelease)return!0;r=[new Ci(">=0.0.0")]}let o=new Set,f,a;for(let D of i)D.operator===">"||D.operator===">="?f=fc(f,D,s):D.operator==="<"||D.operator==="<="?a=cc(a,D,s):o.add(D.semver);if(o.size>1)return null;let _;if(f&&a){if(_=du(f.semver,a.semver,s),_>0)return null;if(_===0&&(f.operator!==">="||a.operator!=="<="))return null}for(let D of o){if(f&&!mr(D,String(f),s)||a&&!mr(D,String(a),s))return null;for(let Re of r)if(!mr(D,String(Re),s))return!1;return!0}let E,y,p,A,C=a&&!s.includePrerelease&&a.semver.prerelease.length?a.semver:!1,N=f&&!s.includePrerelease&&f.semver.prerelease.length?f.semver:!1;C&&C.prerelease.length===1&&a.operator==="<"&&C.prerelease[0]===0&&(C=!1);for(let D of r){if(A=A||D.operator===">"||D.operator===">=",p=p||D.operator==="<"||D.operator==="<=",f){if(N&&D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===N.major&&D.semver.minor===N.minor&&D.semver.patch===N.patch&&(N=!1),D.operator===">"||D.operator===">="){if(E=fc(f,D,s),E===D&&E!==f)return!1}else if(f.operator===">="&&!mr(f.semver,String(D),s))return!1}if(a){if(C&&D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===C.major&&D.semver.minor===C.minor&&D.semver.patch===C.patch&&(C=!1),D.operator==="<"||D.operator==="<="){if(y=cc(a,D,s),y===D&&y!==a)return!1}else if(a.operator==="<="&&!mr(a.semver,String(D),s))return!1}if(!D.operator&&(a||f)&&_!==0)return!1}return!(f&&p&&!a&&_!==0||a&&A&&!f&&_!==0||N||C)},fc=(i,r,s)=>{if(!i)return r;let o=du(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},cc=(i,r,s)=>{if(!i)return r;let o=du(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};hc.exports=ly});var dc=T((Ix,gc)=>{var _u=Zt();gc.exports={re:_u.re,src:_u.src,tokens:_u.t,SEMVER_SPEC_VERSION:or().SEMVER_SPEC_VERSION,SemVer:Ee(),compareIdentifiers:_i().compareIdentifiers,rcompareIdentifiers:_i().rcompareIdentifiers,parse:Jt(),valid:Pl(),clean:ql(),inc:Ml(),diff:Xl(),major:Vl(),minor:Yl(),patch:Zl(),prerelease:kl(),compare:je(),rcompare:ef(),compareLoose:nf(),compareBuild:yi(),sort:of(),rsort:lf(),gt:cr(),lt:wi(),eq:Ei(),neq:uu(),gte:xi(),lte:Ai(),cmp:ou(),coerce:vf(),Comparator:gr(),Range:Ye(),satisfies:vr(),toComparators:Uf(),maxSatisfying:Gf(),minSatisfying:Xf(),minVersion:jf(),validRange:Kf(),outside:Ii(),gtr:tc(),ltr:rc(),intersects:uc(),simplifyRange:ac(),subset:pc()}});var at=T(tn=>{"use strict";var _c=tn&&tn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(tn,"__esModule",{value:!0});tn.getCoreVersion=void 0;var vc=_c(require("path")),mc=_c(require("fs")),cy=dc(),hy=require("@serverless-devs/core"),vu=vc.default.join(hy.getRootHome(),"cache","core"),Ec=vc.default.join(vu,"package.json");function py(){if(mc.default.existsSync(Ec)){var i=require("@serverless-devs/core/package.json").version,r=yc();return cy.gt(r,i)?require(vu):require("@serverless-devs/core")}return require("@serverless-devs/core")}function yc(){return mc.default.existsSync(vu)?require(Ec).version:void 0}tn.getCoreVersion=yc;tn.default=py()});var wc=T((bx,gy)=>{gy.exports={name:"@serverless-devs/s",version:"2.0.97-beta.6",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"beta"}}});var yr=T(H=>{"use strict";var dy=H&&H.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),_y=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),vy=H&&H.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&dy(r,i,s);return _y(r,i),r},xc=H&&H.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function E(A){try{p(o.next(A))}catch(C){_(C)}}function y(A){try{p(o.throw(A))}catch(C){_(C)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Ac=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},bi=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var ge=bi(require("path")),Fe=bi(require("fs")),mu=bi(vl()),my=bi(require("os")),Ey=yu(),In=vy(at()),Ti=In.default.colors,yy=In.default.jsyaml,wy=In.default.makeUnderLine,Oc=In.default.isDebugMode,Sc=wc();H.red=Ti.hex("#fd5750");H.yellow=Ti.hex("#F3F99D");H.bgRed=Ti.hex("#000").bgHex("#fd5750");var xy=function(i){var r=Oc?Oc():void 0;if(r){console.log(i);return}var s=i.message?i.message:"";try{var o=JSON.parse(s);console.log("".concat((0,H.bgRed)("ERROR:"),`
|
|
34
|
+
}`;var B=ul(function(){return Z(h,P+"return "+R).apply(i,g)});if(B.source=R,zs(B))throw B;return B}function am(e){return J(e).toLowerCase()}function lm(e){return J(e).toUpperCase()}function fm(e,t,n){if(e=J(e),e&&(n||t===i))return go(e);if(!e||!(t=Ne(t)))return e;var u=Je(e),l=Je(t),h=_o(u,l),g=vo(u,l)+1;return Pt(u,h,g).join("")}function cm(e,t,n){if(e=J(e),e&&(n||t===i))return e.slice(0,Eo(e)+1);if(!e||!(t=Ne(t)))return e;var u=Je(e),l=vo(u,Je(t))+1;return Pt(u,0,l).join("")}function hm(e,t,n){if(e=J(e),e&&(n||t===i))return e.replace(zi,"");if(!e||!(t=Ne(t)))return e;var u=Je(e),l=_o(u,Je(t));return Pt(u,l).join("")}function pm(e,t){var n=uh,u=oh;if(ie(t)){var l="separator"in t?t.separator:l;n="length"in t?G(t.length):n,u="omission"in t?Ne(t.omission):u}e=J(e);var h=e.length;if(hn(e)){var g=Je(e);h=g.length}if(n>=h)return e;var d=n-pn(u);if(d<1)return u;var m=g?Pt(g,0,d).join(""):e.slice(0,d);if(l===i)return m+u;if(g&&(d+=m.length-d),Vs(l)){if(e.slice(d).search(l)){var O,S=m;for(l.global||(l=as(l.source,J(qu.exec(l))+"g")),l.lastIndex=0;O=l.exec(S);)var R=O.index;m=m.slice(0,R===i?d:R)}}else if(e.indexOf(Ne(l),d)!=d){var I=m.lastIndexOf(l);I>-1&&(m=m.slice(0,I))}return m+u}function gm(e){return e=J(e),e&&Sh.test(e)?e.replace(Nu,Bp):e}var dm=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ks=oa("toUpperCase");function sl(e,t,n){return e=J(e),t=n?i:t,t===i?Mp(e)?Vp(e):bp(e):e.match(t)||[]}var ul=z(function(e,t){try{return Le(e,i,t)}catch(n){return zs(n)?n:new U(n)}}),_m=vt(function(e,t){return He(t,function(n){n=ot(n),dt(e,n,Bs(e[n],e))}),e});function vm(e){var t=e==null?0:e.length,n=q();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new Ue(f);return[n(u[0]),u[1]]}):[],z(function(u){for(var l=-1;++l<t;){var h=e[l];if(Le(h[0],this,u))return Le(h[1],this,u)}})}function mm(e){return Bg(Ge(e,p))}function Zs(e){return function(){return e}}function Em(e,t){return e==null||e!==e?t:e}var ym=la(),wm=la(!0);function Te(e){return e}function Js(e){return Ho(typeof e=="function"?e:Ge(e,p))}function xm(e){return Wo(Ge(e,p))}function Am(e,t){return Go(e,Ge(t,p))}var Om=z(function(e,t){return function(n){return Jn(n,e,t)}}),Sm=z(function(e,t){return function(n){return Jn(e,n,t)}});function ks(e,t,n){var u=he(t),l=Kr(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=Kr(t,he(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=Et(e);return He(l,function(d){var m=t[d];e[d]=m,g&&(e.prototype[d]=function(){var O=this.__chain__;if(h||O){var S=e(this.__wrapped__),R=S.__actions__=Ie(this.__actions__);return R.push({func:m,args:arguments,thisArg:e}),S.__chain__=O,S}return m.apply(e,It([this.value()],arguments))})}),e}function Rm(){return ce._===this&&(ce._=kp),this}function Qs(){}function Im(e){return e=G(e),z(function(t){return Bo(t,e)})}var Cm=Ts(re),bm=Ts(lo),Tm=Ts(ts);function ol(e){return Fs(e)?ns(ot(e)):ud(e)}function Lm(e){return function(t){return e==null?i:Xt(e,t)}}var $m=ca(),Nm=ca(!0);function eu(){return[]}function tu(){return!1}function Pm(){return{}}function Dm(){return""}function qm(){return!0}function Fm(e,t){if(e=G(e),e<1||e>St)return[];var n=it,u=ve(e,it);t=q(t),e-=it;for(var l=ss(u,t);++n<e;)t(n);return l}function Mm(e){return W(e)?re(e,ot):Pe(e)?[e]:Ie(Ia(J(e)))}function Hm(e){var t=++Zp;return J(e)+t}var Um=ti(function(e,t){return e+t},0),Wm=Ls("ceil"),Gm=ti(function(e,t){return e/t},1),Bm=Ls("floor");function Xm(e){return e&&e.length?Yr(e,Te,_s):i}function zm(e,t){return e&&e.length?Yr(e,q(t,2),_s):i}function Vm(e){return ho(e,Te)}function jm(e,t){return ho(e,q(t,2))}function Ym(e){return e&&e.length?Yr(e,Te,ys):i}function Km(e,t){return e&&e.length?Yr(e,q(t,2),ys):i}var Zm=ti(function(e,t){return e*t},1),Jm=Ls("round"),km=ti(function(e,t){return e-t},0);function Qm(e){return e&&e.length?is(e,Te):0}function e1(e,t){return e&&e.length?is(e,q(t,2)):0}return c.after=x0,c.ary=Ma,c.assign=lv,c.assignIn=ka,c.assignInWith=gi,c.assignWith=fv,c.at=cv,c.before=Ha,c.bind=Bs,c.bindAll=_m,c.bindKey=Ua,c.castArray=P0,c.chain=Da,c.chunk=Bd,c.compact=Xd,c.concat=zd,c.cond=vm,c.conforms=mm,c.constant=Zs,c.countBy=Q_,c.create=hv,c.curry=Wa,c.curryRight=Ga,c.debounce=Ba,c.defaults=pv,c.defaultsDeep=gv,c.defer=A0,c.delay=O0,c.difference=Vd,c.differenceBy=jd,c.differenceWith=Yd,c.drop=Kd,c.dropRight=Zd,c.dropRightWhile=Jd,c.dropWhile=kd,c.fill=Qd,c.filter=t0,c.flatMap=i0,c.flatMapDeep=s0,c.flatMapDepth=u0,c.flatten=La,c.flattenDeep=e_,c.flattenDepth=t_,c.flip=S0,c.flow=ym,c.flowRight=wm,c.fromPairs=n_,c.functions=wv,c.functionsIn=xv,c.groupBy=o0,c.initial=i_,c.intersection=s_,c.intersectionBy=u_,c.intersectionWith=o_,c.invert=Ov,c.invertBy=Sv,c.invokeMap=l0,c.iteratee=Js,c.keyBy=f0,c.keys=he,c.keysIn=be,c.map=ai,c.mapKeys=Iv,c.mapValues=Cv,c.matches=xm,c.matchesProperty=Am,c.memoize=fi,c.merge=bv,c.mergeWith=Qa,c.method=Om,c.methodOf=Sm,c.mixin=ks,c.negate=ci,c.nthArg=Im,c.omit=Tv,c.omitBy=Lv,c.once=R0,c.orderBy=c0,c.over=Cm,c.overArgs=I0,c.overEvery=bm,c.overSome=Tm,c.partial=Xs,c.partialRight=Xa,c.partition=h0,c.pick=$v,c.pickBy=el,c.property=ol,c.propertyOf=Lm,c.pull=c_,c.pullAll=Na,c.pullAllBy=h_,c.pullAllWith=p_,c.pullAt=g_,c.range=$m,c.rangeRight=Nm,c.rearg=C0,c.reject=d0,c.remove=d_,c.rest=b0,c.reverse=Ws,c.sampleSize=v0,c.set=Pv,c.setWith=Dv,c.shuffle=m0,c.slice=__,c.sortBy=w0,c.sortedUniq=A_,c.sortedUniqBy=O_,c.split=im,c.spread=T0,c.tail=S_,c.take=R_,c.takeRight=I_,c.takeRightWhile=C_,c.takeWhile=b_,c.tap=X_,c.throttle=L0,c.thru=oi,c.toArray=Ka,c.toPairs=tl,c.toPairsIn=nl,c.toPath=Mm,c.toPlainObject=Ja,c.transform=qv,c.unary=$0,c.union=T_,c.unionBy=L_,c.unionWith=$_,c.uniq=N_,c.uniqBy=P_,c.uniqWith=D_,c.unset=Fv,c.unzip=Gs,c.unzipWith=Pa,c.update=Mv,c.updateWith=Hv,c.values=xn,c.valuesIn=Uv,c.without=q_,c.words=sl,c.wrap=N0,c.xor=F_,c.xorBy=M_,c.xorWith=H_,c.zip=U_,c.zipObject=W_,c.zipObjectDeep=G_,c.zipWith=B_,c.entries=tl,c.entriesIn=nl,c.extend=ka,c.extendWith=gi,ks(c,c),c.add=Um,c.attempt=ul,c.camelCase=Xv,c.capitalize=rl,c.ceil=Wm,c.clamp=Wv,c.clone=D0,c.cloneDeep=F0,c.cloneDeepWith=M0,c.cloneWith=q0,c.conformsTo=H0,c.deburr=il,c.defaultTo=Em,c.divide=Gm,c.endsWith=zv,c.eq=Qe,c.escape=Vv,c.escapeRegExp=jv,c.every=e0,c.find=n0,c.findIndex=ba,c.findKey=dv,c.findLast=r0,c.findLastIndex=Ta,c.findLastKey=_v,c.floor=Bm,c.forEach=qa,c.forEachRight=Fa,c.forIn=vv,c.forInRight=mv,c.forOwn=Ev,c.forOwnRight=yv,c.get=js,c.gt=U0,c.gte=W0,c.has=Av,c.hasIn=Ys,c.head=$a,c.identity=Te,c.includes=a0,c.indexOf=r_,c.inRange=Gv,c.invoke=Rv,c.isArguments=jt,c.isArray=W,c.isArrayBuffer=G0,c.isArrayLike=Ce,c.isArrayLikeObject=ue,c.isBoolean=B0,c.isBuffer=Dt,c.isDate=X0,c.isElement=z0,c.isEmpty=V0,c.isEqual=j0,c.isEqualWith=Y0,c.isError=zs,c.isFinite=K0,c.isFunction=Et,c.isInteger=za,c.isLength=hi,c.isMap=Va,c.isMatch=Z0,c.isMatchWith=J0,c.isNaN=k0,c.isNative=Q0,c.isNil=tv,c.isNull=ev,c.isNumber=ja,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=rr,c.isRegExp=Vs,c.isSafeInteger=nv,c.isSet=Ya,c.isString=pi,c.isSymbol=Pe,c.isTypedArray=wn,c.isUndefined=rv,c.isWeakMap=iv,c.isWeakSet=sv,c.join=a_,c.kebabCase=Yv,c.last=Xe,c.lastIndexOf=l_,c.lowerCase=Kv,c.lowerFirst=Zv,c.lt=uv,c.lte=ov,c.max=Xm,c.maxBy=zm,c.mean=Vm,c.meanBy=jm,c.min=Ym,c.minBy=Km,c.stubArray=eu,c.stubFalse=tu,c.stubObject=Pm,c.stubString=Dm,c.stubTrue=qm,c.multiply=Zm,c.nth=f_,c.noConflict=Rm,c.noop=Qs,c.now=li,c.pad=Jv,c.padEnd=kv,c.padStart=Qv,c.parseInt=em,c.random=Bv,c.reduce=p0,c.reduceRight=g0,c.repeat=tm,c.replace=nm,c.result=Nv,c.round=Jm,c.runInContext=v,c.sample=_0,c.size=E0,c.snakeCase=rm,c.some=y0,c.sortedIndex=v_,c.sortedIndexBy=m_,c.sortedIndexOf=E_,c.sortedLastIndex=y_,c.sortedLastIndexBy=w_,c.sortedLastIndexOf=x_,c.startCase=sm,c.startsWith=um,c.subtract=km,c.sum=Qm,c.sumBy=e1,c.template=om,c.times=Fm,c.toFinite=yt,c.toInteger=G,c.toLength=Za,c.toLower=am,c.toNumber=ze,c.toSafeInteger=av,c.toString=J,c.toUpper=lm,c.trim=fm,c.trimEnd=cm,c.trimStart=hm,c.truncate=pm,c.unescape=gm,c.uniqueId=Hm,c.upperCase=dm,c.upperFirst=Ks,c.each=qa,c.eachRight=Fa,c.first=$a,ks(c,function(){var e={};return st(c,function(t,n){k.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,He(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),He(["drop","take"],function(e,t){j.prototype[e]=function(n){n=n===i?1:fe(G(n),0);var u=this.__filtered__&&!t?new j(this):this.clone();return u.__filtered__?u.__takeCount__=ve(n,u.__takeCount__):u.__views__.push({size:ve(n,it),type:e+(u.__dir__<0?"Right":"")}),u},j.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),He(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Tu||n==ch;j.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:q(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),He(["head","last"],function(e,t){var n="take"+(t?"Right":"");j.prototype[e]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");j.prototype[e]=function(){return this.__filtered__?new j(this):this[n](1)}}),j.prototype.compact=function(){return this.filter(Te)},j.prototype.find=function(e){return this.filter(e).head()},j.prototype.findLast=function(e){return this.reverse().find(e)},j.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new j(this):this.map(function(n){return Jn(n,e,t)})}),j.prototype.reject=function(e){return this.filter(ci(q(e)))},j.prototype.slice=function(e,t){e=G(e);var n=this;return n.__filtered__&&(e>0||t<0)?new j(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},j.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},j.prototype.toArray=function(){return this.take(it)},st(j.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var g=this.__wrapped__,d=u?[1]:arguments,m=g instanceof j,O=d[0],S=m||W(g),R=function(V){var Y=l.apply(c,It([V],d));return u&&I?Y[0]:Y};S&&n&&typeof O=="function"&&O.length!=1&&(m=S=!1);var I=this.__chain__,P=!!this.__actions__.length,F=h&&!I,B=m&&!P;if(!h&&S){g=B?g:new j(this);var M=e.apply(g,d);return M.__actions__.push({func:oi,args:[R],thisArg:i}),new We(M,I)}return F&&B?e.apply(this,d):(M=this.thru(R),F?u?M.value()[0]:M.value():M)})}),He(["pop","push","shift","sort","splice","unshift"],function(e){var t=Nr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(W(h)?h:[],l)}return this[n](function(g){return t.apply(W(g)?g:[],l)})}}),st(j.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";k.call(_n,u)||(_n[u]=[]),_n[u].push({name:t,func:n})}}),_n[ei(i,Ft).name]=[{name:"wrapper",func:i}],j.prototype.clone=gg,j.prototype.reverse=dg,j.prototype.value=_g,c.prototype.at=z_,c.prototype.chain=V_,c.prototype.commit=j_,c.prototype.next=Y_,c.prototype.plant=Z_,c.prototype.reverse=J_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=k_,c.prototype.first=c.prototype.head,Xn&&(c.prototype[Xn]=K_),c},bt=jp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ce._=bt,define(function(){return bt})):Ht?((Ht.exports=bt)._=bt,Ji._=bt):ce._=bt}).call(An)});var or=T((qw,ml)=>{var r1="2.0.0",i1=256,s1=Number.MAX_SAFE_INTEGER||9007199254740991,u1=16;ml.exports={SEMVER_SPEC_VERSION:r1,MAX_LENGTH:i1,MAX_SAFE_INTEGER:s1,MAX_SAFE_COMPONENT_LENGTH:u1}});var ar=T((Fw,El)=>{var o1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};El.exports=o1});var Zt=T((qt,yl)=>{var{MAX_SAFE_COMPONENT_LENGTH:su}=or(),a1=ar();qt=yl.exports={};var l1=qt.re=[],L=qt.src=[],$=qt.t={},f1=0,X=(i,r,s)=>{let o=f1++;a1(o,r),$[i]=o,L[o]=r,l1[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[$.NUMERICIDENTIFIER]})\\.(${L[$.NUMERICIDENTIFIER]})\\.(${L[$.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${L[$.NUMERICIDENTIFIERLOOSE]})\\.(${L[$.NUMERICIDENTIFIERLOOSE]})\\.(${L[$.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${L[$.NUMERICIDENTIFIER]}|${L[$.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${L[$.NUMERICIDENTIFIERLOOSE]}|${L[$.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${L[$.PRERELEASEIDENTIFIER]}(?:\\.${L[$.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${L[$.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[$.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER","[0-9A-Za-z-]+");X("BUILD",`(?:\\+(${L[$.BUILDIDENTIFIER]}(?:\\.${L[$.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${L[$.MAINVERSION]}${L[$.PRERELEASE]}?${L[$.BUILD]}?`);X("FULL",`^${L[$.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${L[$.MAINVERSIONLOOSE]}${L[$.PRERELEASELOOSE]}?${L[$.BUILD]}?`);X("LOOSE",`^${L[$.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${L[$.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${L[$.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${L[$.XRANGEIDENTIFIER]})(?:\\.(${L[$.XRANGEIDENTIFIER]})(?:\\.(${L[$.XRANGEIDENTIFIER]})(?:${L[$.PRERELEASE]})?${L[$.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${L[$.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[$.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[$.XRANGEIDENTIFIERLOOSE]})(?:${L[$.PRERELEASELOOSE]})?${L[$.BUILD]}?)?)?`);X("XRANGE",`^${L[$.GTLT]}\\s*${L[$.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${L[$.GTLT]}\\s*${L[$.XRANGEPLAINLOOSE]}$`);X("COERCE",`(^|[^\\d])(\\d{1,${su}})(?:\\.(\\d{1,${su}}))?(?:\\.(\\d{1,${su}}))?(?:$|[^\\d])`);X("COERCERTL",L[$.COERCE],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${L[$.LONETILDE]}\\s+`,!0);qt.tildeTrimReplace="$1~";X("TILDE",`^${L[$.LONETILDE]}${L[$.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${L[$.LONETILDE]}${L[$.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${L[$.LONECARET]}\\s+`,!0);qt.caretTrimReplace="$1^";X("CARET",`^${L[$.LONECARET]}${L[$.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${L[$.LONECARET]}${L[$.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${L[$.GTLT]}\\s*(${L[$.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${L[$.GTLT]}\\s*(${L[$.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${L[$.GTLT]}\\s*(${L[$.LOOSEPLAIN]}|${L[$.XRANGEPLAIN]})`,!0);qt.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${L[$.XRANGEPLAIN]})\\s+-\\s+(${L[$.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${L[$.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[$.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0.0.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var lr=T((Mw,wl)=>{var c1=["includePrerelease","loose","rtl"],h1=i=>i?typeof i!="object"?{loose:!0}:c1.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};wl.exports=h1});var _i=T((Hw,Ol)=>{var xl=/^[0-9]+$/,Al=(i,r)=>{let s=xl.test(i),o=xl.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},p1=(i,r)=>Al(r,i);Ol.exports={compareIdentifiers:Al,rcompareIdentifiers:p1}});var Ee=T((Uw,Cl)=>{var vi=ar(),{MAX_LENGTH:Sl,MAX_SAFE_INTEGER:mi}=or(),{re:Rl,t:Il}=Zt(),g1=lr(),{compareIdentifiers:fr}=_i(),Ve=class{constructor(r,s){if(s=g1(s),r instanceof Ve){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>Sl)throw new TypeError(`version is longer than ${Sl} characters`);vi("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?Rl[Il.LOOSE]:Rl[Il.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>mi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>mi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>mi||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){let a=+f;if(a>=0&&a<mi)return a}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(vi("SemVer.compare",this.version,this.options,r),!(r instanceof Ve)){if(typeof r=="string"&&r===this.version)return 0;r=new Ve(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Ve||(r=new Ve(r,this.options)),fr(this.major,r.major)||fr(this.minor,r.minor)||fr(this.patch,r.patch)}comparePre(r){if(r instanceof Ve||(r=new Ve(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let s=0;do{let o=this.prerelease[s],f=r.prerelease[s];if(vi("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 fr(o,f)}while(++s)}compareBuild(r){r instanceof Ve||(r=new Ve(r,this.options));let s=0;do{let o=this.build[s],f=r.build[s];if(vi("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 fr(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}};Cl.exports=Ve});var Jt=T((Ww,$l)=>{var{MAX_LENGTH:d1}=or(),{re:bl,t:Tl}=Zt(),Ll=Ee(),_1=lr(),v1=(i,r)=>{if(r=_1(r),i instanceof Ll)return i;if(typeof i!="string"||i.length>d1||!(r.loose?bl[Tl.LOOSE]:bl[Tl.FULL]).test(i))return null;try{return new Ll(i,r)}catch{return null}};$l.exports=v1});var Pl=T((Gw,Nl)=>{var m1=Jt(),E1=(i,r)=>{let s=m1(i,r);return s?s.version:null};Nl.exports=E1});var ql=T((Bw,Dl)=>{var y1=Jt(),w1=(i,r)=>{let s=y1(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};Dl.exports=w1});var Ml=T((Xw,Fl)=>{var x1=Ee(),A1=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new x1(i,s).inc(r,o).version}catch{return null}};Fl.exports=A1});var je=T((zw,Ul)=>{var Hl=Ee(),O1=(i,r,s)=>new Hl(i,s).compare(new Hl(r,s));Ul.exports=O1});var Ei=T((Vw,Wl)=>{var S1=je(),R1=(i,r,s)=>S1(i,r,s)===0;Wl.exports=R1});var Xl=T((jw,Bl)=>{var Gl=Jt(),I1=Ei(),C1=(i,r)=>{if(I1(i,r))return null;{let s=Gl(i),o=Gl(r),f=s.prerelease.length||o.prerelease.length,a=f?"pre":"",_=f?"prerelease":"";for(let E in s)if((E==="major"||E==="minor"||E==="patch")&&s[E]!==o[E])return a+E;return _}};Bl.exports=C1});var Vl=T((Yw,zl)=>{var b1=Ee(),T1=(i,r)=>new b1(i,r).major;zl.exports=T1});var Yl=T((Kw,jl)=>{var L1=Ee(),$1=(i,r)=>new L1(i,r).minor;jl.exports=$1});var Zl=T((Zw,Kl)=>{var N1=Ee(),P1=(i,r)=>new N1(i,r).patch;Kl.exports=P1});var kl=T((Jw,Jl)=>{var D1=Jt(),q1=(i,r)=>{let s=D1(i,r);return s&&s.prerelease.length?s.prerelease:null};Jl.exports=q1});var ef=T((kw,Ql)=>{var F1=je(),M1=(i,r,s)=>F1(r,i,s);Ql.exports=M1});var nf=T((Qw,tf)=>{var H1=je(),U1=(i,r)=>H1(i,r,!0);tf.exports=U1});var yi=T((ex,sf)=>{var rf=Ee(),W1=(i,r,s)=>{let o=new rf(i,s),f=new rf(r,s);return o.compare(f)||o.compareBuild(f)};sf.exports=W1});var of=T((tx,uf)=>{var G1=yi(),B1=(i,r)=>i.sort((s,o)=>G1(s,o,r));uf.exports=B1});var lf=T((nx,af)=>{var X1=yi(),z1=(i,r)=>i.sort((s,o)=>X1(o,s,r));af.exports=z1});var cr=T((rx,ff)=>{var V1=je(),j1=(i,r,s)=>V1(i,r,s)>0;ff.exports=j1});var wi=T((ix,cf)=>{var Y1=je(),K1=(i,r,s)=>Y1(i,r,s)<0;cf.exports=K1});var uu=T((sx,hf)=>{var Z1=je(),J1=(i,r,s)=>Z1(i,r,s)!==0;hf.exports=J1});var xi=T((ux,pf)=>{var k1=je(),Q1=(i,r,s)=>k1(i,r,s)>=0;pf.exports=Q1});var Ai=T((ox,gf)=>{var eE=je(),tE=(i,r,s)=>eE(i,r,s)<=0;gf.exports=tE});var ou=T((ax,df)=>{var nE=Ei(),rE=uu(),iE=cr(),sE=xi(),uE=wi(),oE=Ai(),aE=(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 nE(i,s,o);case"!=":return rE(i,s,o);case">":return iE(i,s,o);case">=":return sE(i,s,o);case"<":return uE(i,s,o);case"<=":return oE(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};df.exports=aE});var vf=T((lx,_f)=>{var lE=Ee(),fE=Jt(),{re:Oi,t:Si}=Zt(),cE=(i,r)=>{if(i instanceof lE)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(Oi[Si.COERCE]);else{let o;for(;(o=Oi[Si.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),Oi[Si.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;Oi[Si.COERCERTL].lastIndex=-1}return s===null?null:fE(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};_f.exports=cE});var Ef=T((fx,mf)=>{"use strict";mf.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var wf=T((cx,yf)=>{"use strict";yf.exports=K;K.Node=kt;K.create=K;function K(i){var r=this;if(r instanceof K||(r=new K),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(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}K.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,s=i.prev;return r&&(r.prev=s),s&&(s.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=s),i.list.length--,i.next=null,i.prev=null,i.list=null,r};K.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var r=this.head;i.list=this,i.next=r,r&&(r.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};K.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var r=this.tail;i.list=this,i.prev=r,r&&(r.next=i),this.tail=i,this.head||(this.head=i),this.length++}};K.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)pE(this,arguments[i]);return this.length};K.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)gE(this,arguments[i]);return this.length};K.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};K.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};K.prototype.forEach=function(i,r){r=r||this;for(var s=this.head,o=0;s!==null;o++)i.call(r,s.value,o,this),s=s.next};K.prototype.forEachReverse=function(i,r){r=r||this;for(var s=this.tail,o=this.length-1;s!==null;o--)i.call(r,s.value,o,this),s=s.prev};K.prototype.get=function(i){for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;if(r===i&&s!==null)return s.value};K.prototype.getReverse=function(i){for(var r=0,s=this.tail;s!==null&&r<i;r++)s=s.prev;if(r===i&&s!==null)return s.value};K.prototype.map=function(i,r){r=r||this;for(var s=new K,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};K.prototype.mapReverse=function(i,r){r=r||this;for(var s=new K,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};K.prototype.reduce=function(i,r){var s,o=this.head;if(arguments.length>1)s=r;else if(this.head)o=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=0;o!==null;f++)s=i(s,o.value,f),o=o.next;return s};K.prototype.reduceReverse=function(i,r){var s,o=this.tail;if(arguments.length>1)s=r;else if(this.tail)o=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=this.length-1;o!==null;f--)s=i(s,o.value,f),o=o.prev;return s};K.prototype.toArray=function(){for(var i=new Array(this.length),r=0,s=this.head;s!==null;r++)i[r]=s.value,s=s.next;return i};K.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,s=this.tail;s!==null;r++)i[r]=s.value,s=s.prev;return i};K.prototype.slice=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new K;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,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};K.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new K;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,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};K.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 a=[],o=0;f&&o<r;o++)a.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=hE(this,f,s[o]);return a};K.prototype.reverse=function(){for(var i=this.head,r=this.tail,s=i;s!==null;s=s.prev){var o=s.prev;s.prev=s.next,s.next=o}return this.head=r,this.tail=i,this};function hE(i,r,s){var o=r===i.head?new kt(s,null,r,i):new kt(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function pE(i,r){i.tail=new kt(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function gE(i,r){i.head=new kt(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function kt(i,r,s,o){if(!(this instanceof kt))return new kt(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{Ef()(K)}catch{}});var Cf=T((hx,If)=>{"use strict";var dE=wf(),Qt=Symbol("max"),xt=Symbol("length"),On=Symbol("lengthCalculator"),hr=Symbol("allowStale"),en=Symbol("maxAge"),At=Symbol("dispose"),xf=Symbol("noDisposeOnSet"),pe=Symbol("lruList"),tt=Symbol("cache"),Af=Symbol("updateAgeOnGet"),au=()=>1,Of=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[Qt]=r.max||1/0,o=r.length||au;if(this[On]=typeof o!="function"?au:o,this[hr]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[en]=r.maxAge||0,this[At]=r.dispose,this[xf]=r.noDisposeOnSet||!1,this[Af]=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[Qt]=r||1/0,pr(this)}get max(){return this[Qt]}set allowStale(r){this[hr]=!!r}get allowStale(){return this[hr]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[en]=r,pr(this)}get maxAge(){return this[en]}set lengthCalculator(r){typeof r!="function"&&(r=au),r!==this[On]&&(this[On]=r,this[xt]=0,this[pe].forEach(s=>{s.length=this[On](s.value,s.key),this[xt]+=s.length})),pr(this)}get lengthCalculator(){return this[On]}get length(){return this[xt]}get itemCount(){return this[pe].length}rforEach(r,s){s=s||this;for(let o=this[pe].tail;o!==null;){let f=o.prev;Rf(this,r,o,s),o=f}}forEach(r,s){s=s||this;for(let o=this[pe].head;o!==null;){let f=o.next;Rf(this,r,o,s),o=f}}keys(){return this[pe].toArray().map(r=>r.key)}values(){return this[pe].toArray().map(r=>r.value)}reset(){this[At]&&this[pe]&&this[pe].length&&this[pe].forEach(r=>this[At](r.key,r.value)),this[tt]=new Map,this[pe]=new dE,this[xt]=0}dump(){return this[pe].map(r=>Ri(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[pe]}set(r,s,o){if(o=o||this[en],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let f=o?Date.now():0,a=this[On](s,r);if(this[tt].has(r)){if(a>this[Qt])return Sn(this,this[tt].get(r)),!1;let y=this[tt].get(r).value;return this[At]&&(this[xf]||this[At](r,y.value)),y.now=f,y.maxAge=o,y.value=s,this[xt]+=a-y.length,y.length=a,this.get(r),pr(this),!0}let _=new Sf(r,s,a,f,o);return _.length>this[Qt]?(this[At]&&this[At](r,s),!1):(this[xt]+=_.length,this[pe].unshift(_),this[tt].set(r,this[pe].head),pr(this),!0)}has(r){if(!this[tt].has(r))return!1;let s=this[tt].get(r).value;return!Ri(this,s)}get(r){return lu(this,r,!0)}peek(r){return lu(this,r,!1)}pop(){let r=this[pe].tail;return r?(Sn(this,r),r.value):null}del(r){Sn(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],a=f.e||0;if(a===0)this.set(f.k,f.v);else{let _=a-s;_>0&&this.set(f.k,f.v,_)}}}prune(){this[tt].forEach((r,s)=>lu(this,s,!1))}},lu=(i,r,s)=>{let o=i[tt].get(r);if(o){let f=o.value;if(Ri(i,f)){if(Sn(i,o),!i[hr])return}else s&&(i[Af]&&(o.value.now=Date.now()),i[pe].unshiftNode(o));return f.value}},Ri=(i,r)=>{if(!r||!r.maxAge&&!i[en])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[en]&&s>i[en]},pr=i=>{if(i[xt]>i[Qt])for(let r=i[pe].tail;i[xt]>i[Qt]&&r!==null;){let s=r.prev;Sn(i,r),r=s}},Sn=(i,r)=>{if(r){let s=r.value;i[At]&&i[At](s.key,s.value),i[xt]-=s.length,i[tt].delete(s.key),i[pe].removeNode(r)}},Sf=class{constructor(r,s,o,f,a){this.key=r,this.value=s,this.length=o,this.now=f,this.maxAge=a||0}},Rf=(i,r,s,o)=>{let f=s.value;Ri(i,f)&&(Sn(i,s),i[hr]||(f=void 0)),f&&r.call(o,f.value,f.key,i)};If.exports=Of});var Ye=T((px,$f)=>{var Rn=class{constructor(r,s){if(s=vE(s),r instanceof Rn)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new Rn(r.raw,s);if(r instanceof fu)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=>!Tf(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&&xE(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=bf.get(o);if(f)return f;let a=this.options.loose,_=a?ye[_e.HYPHENRANGELOOSE]:ye[_e.HYPHENRANGE];r=r.replace(_,$E(this.options.includePrerelease)),ae("hyphen replace",r),r=r.replace(ye[_e.COMPARATORTRIM],EE),ae("comparator trim",r,ye[_e.COMPARATORTRIM]),r=r.replace(ye[_e.TILDETRIM],yE),r=r.replace(ye[_e.CARETTRIM],wE),r=r.split(/\s+/).join(" ");let E=a?ye[_e.COMPARATORLOOSE]:ye[_e.COMPARATOR],y=r.split(" ").map(N=>AE(N,this.options)).join(" ").split(/\s+/).map(N=>LE(N,this.options)).filter(this.options.loose?N=>!!N.match(E):()=>!0).map(N=>new fu(N,this.options)),p=y.length,A=new Map;for(let N of y){if(Tf(N))return[N];A.set(N.value,N)}A.size>1&&A.has("")&&A.delete("");let C=[...A.values()];return bf.set(o,C),C}intersects(r,s){if(!(r instanceof Rn))throw new TypeError("a Range is required");return this.set.some(o=>Lf(o,s)&&r.set.some(f=>Lf(f,s)&&o.every(a=>f.every(_=>a.intersects(_,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new mE(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(NE(this.set[s],r,this.options))return!0;return!1}};$f.exports=Rn;var _E=Cf(),bf=new _E({max:1e3}),vE=lr(),fu=gr(),ae=ar(),mE=Ee(),{re:ye,t:_e,comparatorTrimReplace:EE,tildeTrimReplace:yE,caretTrimReplace:wE}=Zt(),Tf=i=>i.value==="<0.0.0-0",xE=i=>i.value==="",Lf=(i,r)=>{let s=!0,o=i.slice(),f=o.pop();for(;s&&o.length;)s=o.every(a=>f.intersects(a,r)),f=o.pop();return s},AE=(i,r)=>(ae("comp",i,r),i=RE(i,r),ae("caret",i),i=OE(i,r),ae("tildes",i),i=CE(i,r),ae("xrange",i),i=TE(i,r),ae("stars",i),i),Oe=i=>!i||i.toLowerCase()==="x"||i==="*",OE=(i,r)=>i.trim().split(/\s+/).map(s=>SE(s,r)).join(" "),SE=(i,r)=>{let s=r.loose?ye[_e.TILDELOOSE]:ye[_e.TILDE];return i.replace(s,(o,f,a,_,E)=>{ae("tilde",i,o,f,a,_,E);let y;return Oe(f)?y="":Oe(a)?y=`>=${f}.0.0 <${+f+1}.0.0-0`:Oe(_)?y=`>=${f}.${a}.0 <${f}.${+a+1}.0-0`:E?(ae("replaceTilde pr",E),y=`>=${f}.${a}.${_}-${E} <${f}.${+a+1}.0-0`):y=`>=${f}.${a}.${_} <${f}.${+a+1}.0-0`,ae("tilde return",y),y})},RE=(i,r)=>i.trim().split(/\s+/).map(s=>IE(s,r)).join(" "),IE=(i,r)=>{ae("caret",i,r);let s=r.loose?ye[_e.CARETLOOSE]:ye[_e.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(f,a,_,E,y)=>{ae("caret",i,f,a,_,E,y);let p;return Oe(a)?p="":Oe(_)?p=`>=${a}.0.0${o} <${+a+1}.0.0-0`:Oe(E)?a==="0"?p=`>=${a}.${_}.0${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.0${o} <${+a+1}.0.0-0`:y?(ae("replaceCaret pr",y),a==="0"?_==="0"?p=`>=${a}.${_}.${E}-${y} <${a}.${_}.${+E+1}-0`:p=`>=${a}.${_}.${E}-${y} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.${E}-${y} <${+a+1}.0.0-0`):(ae("no pr"),a==="0"?_==="0"?p=`>=${a}.${_}.${E}${o} <${a}.${_}.${+E+1}-0`:p=`>=${a}.${_}.${E}${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.${E} <${+a+1}.0.0-0`),ae("caret return",p),p})},CE=(i,r)=>(ae("replaceXRanges",i,r),i.split(/\s+/).map(s=>bE(s,r)).join(" ")),bE=(i,r)=>{i=i.trim();let s=r.loose?ye[_e.XRANGELOOSE]:ye[_e.XRANGE];return i.replace(s,(o,f,a,_,E,y)=>{ae("xRange",i,o,f,a,_,E,y);let p=Oe(a),A=p||Oe(_),C=A||Oe(E),N=C;return f==="="&&N&&(f=""),y=r.includePrerelease?"-0":"",p?f===">"||f==="<"?o="<0.0.0-0":o="*":f&&N?(A&&(_=0),E=0,f===">"?(f=">=",A?(a=+a+1,_=0,E=0):(_=+_+1,E=0)):f==="<="&&(f="<",A?a=+a+1:_=+_+1),f==="<"&&(y="-0"),o=`${f+a}.${_}.${E}${y}`):A?o=`>=${a}.0.0${y} <${+a+1}.0.0-0`:C&&(o=`>=${a}.${_}.0${y} <${a}.${+_+1}.0-0`),ae("xRange return",o),o})},TE=(i,r)=>(ae("replaceStars",i,r),i.trim().replace(ye[_e.STAR],"")),LE=(i,r)=>(ae("replaceGTE0",i,r),i.trim().replace(ye[r.includePrerelease?_e.GTE0PRE:_e.GTE0],"")),$E=i=>(r,s,o,f,a,_,E,y,p,A,C,N,D)=>(Oe(o)?s="":Oe(f)?s=`>=${o}.0.0${i?"-0":""}`:Oe(a)?s=`>=${o}.${f}.0${i?"-0":""}`:_?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,Oe(p)?y="":Oe(A)?y=`<${+p+1}.0.0-0`:Oe(C)?y=`<${p}.${+A+1}.0-0`:N?y=`<=${p}.${A}.${C}-${N}`:i?y=`<${p}.${A}.${+C+1}-0`:y=`<=${y}`,`${s} ${y}`.trim()),NE=(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(ae(i[o].semver),i[o].semver!==fu.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 gr=T((gx,Ff)=>{var dr=Symbol("SemVer ANY"),_r=class{static get ANY(){return dr}constructor(r,s){if(s=PE(s),r instanceof _r){if(r.loose===!!s.loose)return r;r=r.value}hu("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===dr?this.value="":this.value=this.operator+this.semver.version,hu("comp",this)}parse(r){let s=this.options.loose?Nf[Pf.COMPARATORLOOSE]:Nf[Pf.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 Df(o[2],this.options.loose):this.semver=dr}toString(){return this.value}test(r){if(hu("Comparator.test",r,this.options.loose),this.semver===dr||r===dr)return!0;if(typeof r=="string")try{r=new Df(r,this.options)}catch{return!1}return cu(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof _r))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new qf(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new qf(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==="<"),a=this.semver.version===r.semver.version,_=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),E=cu(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),y=cu(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||f||a&&_||E||y}};Ff.exports=_r;var PE=lr(),{re:Nf,t:Pf}=Zt(),cu=ou(),hu=ar(),Df=Ee(),qf=Ye()});var vr=T((dx,Mf)=>{var DE=Ye(),qE=(i,r,s)=>{try{r=new DE(r,s)}catch{return!1}return r.test(i)};Mf.exports=qE});var Uf=T((_x,Hf)=>{var FE=Ye(),ME=(i,r)=>new FE(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));Hf.exports=ME});var Gf=T((vx,Wf)=>{var HE=Ee(),UE=Ye(),WE=(i,r,s)=>{let o=null,f=null,a=null;try{a=new UE(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||f.compare(_)===-1)&&(o=_,f=new HE(o,s))}),o};Wf.exports=WE});var Xf=T((mx,Bf)=>{var GE=Ee(),BE=Ye(),XE=(i,r,s)=>{let o=null,f=null,a=null;try{a=new BE(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||f.compare(_)===1)&&(o=_,f=new GE(o,s))}),o};Bf.exports=XE});var jf=T((Ex,Vf)=>{var pu=Ee(),zE=Ye(),zf=cr(),VE=(i,r)=>{i=new zE(i,r);let s=new pu("0.0.0");if(i.test(s)||(s=new pu("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],a=null;f.forEach(_=>{let E=new pu(_.semver.version);switch(_.operator){case">":E.prerelease.length===0?E.patch++:E.prerelease.push(0),E.raw=E.format();case"":case">=":(!a||zf(E,a))&&(a=E);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${_.operator}`)}}),a&&(!s||zf(s,a))&&(s=a)}return s&&i.test(s)?s:null};Vf.exports=VE});var Kf=T((yx,Yf)=>{var jE=Ye(),YE=(i,r)=>{try{return new jE(i,r).range||"*"}catch{return null}};Yf.exports=YE});var Ii=T((wx,Qf)=>{var KE=Ee(),Zf=gr(),{ANY:ZE}=Zf,JE=Ye(),kE=vr(),Jf=cr(),kf=wi(),QE=Ai(),ey=xi(),ty=(i,r,s,o)=>{i=new KE(i,o),r=new JE(r,o);let f,a,_,E,y;switch(s){case">":f=Jf,a=QE,_=kf,E=">",y=">=";break;case"<":f=kf,a=ey,_=Jf,E="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(kE(i,r,o))return!1;for(let p=0;p<r.set.length;++p){let A=r.set[p],C=null,N=null;if(A.forEach(D=>{D.semver===ZE&&(D=new Zf(">=0.0.0")),C=C||D,N=N||D,f(D.semver,C.semver,o)?C=D:_(D.semver,N.semver,o)&&(N=D)}),C.operator===E||C.operator===y||(!N.operator||N.operator===E)&&a(i,N.semver))return!1;if(N.operator===y&&_(i,N.semver))return!1}return!0};Qf.exports=ty});var tc=T((xx,ec)=>{var ny=Ii(),ry=(i,r,s)=>ny(i,r,">",s);ec.exports=ry});var rc=T((Ax,nc)=>{var iy=Ii(),sy=(i,r,s)=>iy(i,r,"<",s);nc.exports=sy});var uc=T((Ox,sc)=>{var ic=Ye(),uy=(i,r,s)=>(i=new ic(i,s),r=new ic(r,s),i.intersects(r));sc.exports=uy});var ac=T((Sx,oc)=>{var oy=vr(),ay=je();oc.exports=(i,r,s)=>{let o=[],f=null,a=null,_=i.sort((A,C)=>ay(A,C,s));for(let A of _)oy(A,r,s)?(a=A,f||(f=A)):(a&&o.push([f,a]),a=null,f=null);f&&o.push([f,null]);let E=[];for(let[A,C]of o)A===C?E.push(A):!C&&A===_[0]?E.push("*"):C?A===_[0]?E.push(`<=${C}`):E.push(`${A} - ${C}`):E.push(`>=${A}`);let y=E.join(" || "),p=typeof r.raw=="string"?r.raw:String(r);return y.length<p.length?y:r}});var pc=T((Rx,hc)=>{var lc=Ye(),Ci=gr(),{ANY:gu}=Ci,mr=vr(),du=je(),ly=(i,r,s={})=>{if(i===r)return!0;i=new lc(i,s),r=new lc(r,s);let o=!1;e:for(let f of i.set){for(let a of r.set){let _=fy(f,a,s);if(o=o||_!==null,_)continue e}if(o)return!1}return!0},fy=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===gu){if(r.length===1&&r[0].semver===gu)return!0;s.includePrerelease?i=[new Ci(">=0.0.0-0")]:i=[new Ci(">=0.0.0")]}if(r.length===1&&r[0].semver===gu){if(s.includePrerelease)return!0;r=[new Ci(">=0.0.0")]}let o=new Set,f,a;for(let D of i)D.operator===">"||D.operator===">="?f=fc(f,D,s):D.operator==="<"||D.operator==="<="?a=cc(a,D,s):o.add(D.semver);if(o.size>1)return null;let _;if(f&&a){if(_=du(f.semver,a.semver,s),_>0)return null;if(_===0&&(f.operator!==">="||a.operator!=="<="))return null}for(let D of o){if(f&&!mr(D,String(f),s)||a&&!mr(D,String(a),s))return null;for(let Re of r)if(!mr(D,String(Re),s))return!1;return!0}let E,y,p,A,C=a&&!s.includePrerelease&&a.semver.prerelease.length?a.semver:!1,N=f&&!s.includePrerelease&&f.semver.prerelease.length?f.semver:!1;C&&C.prerelease.length===1&&a.operator==="<"&&C.prerelease[0]===0&&(C=!1);for(let D of r){if(A=A||D.operator===">"||D.operator===">=",p=p||D.operator==="<"||D.operator==="<=",f){if(N&&D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===N.major&&D.semver.minor===N.minor&&D.semver.patch===N.patch&&(N=!1),D.operator===">"||D.operator===">="){if(E=fc(f,D,s),E===D&&E!==f)return!1}else if(f.operator===">="&&!mr(f.semver,String(D),s))return!1}if(a){if(C&&D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===C.major&&D.semver.minor===C.minor&&D.semver.patch===C.patch&&(C=!1),D.operator==="<"||D.operator==="<="){if(y=cc(a,D,s),y===D&&y!==a)return!1}else if(a.operator==="<="&&!mr(a.semver,String(D),s))return!1}if(!D.operator&&(a||f)&&_!==0)return!1}return!(f&&p&&!a&&_!==0||a&&A&&!f&&_!==0||N||C)},fc=(i,r,s)=>{if(!i)return r;let o=du(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},cc=(i,r,s)=>{if(!i)return r;let o=du(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};hc.exports=ly});var dc=T((Ix,gc)=>{var _u=Zt();gc.exports={re:_u.re,src:_u.src,tokens:_u.t,SEMVER_SPEC_VERSION:or().SEMVER_SPEC_VERSION,SemVer:Ee(),compareIdentifiers:_i().compareIdentifiers,rcompareIdentifiers:_i().rcompareIdentifiers,parse:Jt(),valid:Pl(),clean:ql(),inc:Ml(),diff:Xl(),major:Vl(),minor:Yl(),patch:Zl(),prerelease:kl(),compare:je(),rcompare:ef(),compareLoose:nf(),compareBuild:yi(),sort:of(),rsort:lf(),gt:cr(),lt:wi(),eq:Ei(),neq:uu(),gte:xi(),lte:Ai(),cmp:ou(),coerce:vf(),Comparator:gr(),Range:Ye(),satisfies:vr(),toComparators:Uf(),maxSatisfying:Gf(),minSatisfying:Xf(),minVersion:jf(),validRange:Kf(),outside:Ii(),gtr:tc(),ltr:rc(),intersects:uc(),simplifyRange:ac(),subset:pc()}});var at=T(tn=>{"use strict";var _c=tn&&tn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(tn,"__esModule",{value:!0});tn.getCoreVersion=void 0;var vc=_c(require("path")),mc=_c(require("fs")),cy=dc(),hy=require("@serverless-devs/core"),vu=vc.default.join(hy.getRootHome(),"cache","core"),Ec=vc.default.join(vu,"package.json");function py(){if(mc.default.existsSync(Ec)){var i=require("@serverless-devs/core/package.json").version,r=yc();return cy.gt(r,i)?require(vu):require("@serverless-devs/core")}return require("@serverless-devs/core")}function yc(){return mc.default.existsSync(vu)?require(Ec).version:void 0}tn.getCoreVersion=yc;tn.default=py()});var wc=T((bx,gy)=>{gy.exports={name:"@serverless-devs/s",version:"2.0.97-beta.7",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"beta"}}});var yr=T(H=>{"use strict";var dy=H&&H.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),_y=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),vy=H&&H.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&dy(r,i,s);return _y(r,i),r},xc=H&&H.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function E(A){try{p(o.next(A))}catch(C){_(C)}}function y(A){try{p(o.throw(A))}catch(C){_(C)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Ac=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},bi=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var ge=bi(require("path")),Fe=bi(require("fs")),mu=bi(vl()),my=bi(require("os")),Ey=yu(),In=vy(at()),Ti=In.default.colors,yy=In.default.jsyaml,wy=In.default.makeUnderLine,Oc=In.default.isDebugMode,Sc=wc();H.red=Ti.hex("#fd5750");H.yellow=Ti.hex("#F3F99D");H.bgRed=Ti.hex("#000").bgHex("#fd5750");var xy=function(i){var r=Oc?Oc():void 0;if(r){console.log(i);return}var s=i.message?i.message:"";try{var o=JSON.parse(s);console.log("".concat((0,H.bgRed)("ERROR:"),`
|
|
35
35
|
`).concat(o.message,`
|
|
36
36
|
`)),o.tips&&console.log("".concat((0,H.yellow)(wy(o.tips)),`
|
|
37
37
|
`))}catch{console.log("".concat((0,H.bgRed)("ERROR:"),`
|
package/lib/set/index.js
CHANGED
|
@@ -40,7 +40,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
40
40
|
`))}return i}();$n.HumanWarning=Uy});var Fc=T(te=>{"use strict";var Wy=te&&te.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function E(S){try{g(o.next(S))}catch(C){_(C)}}function w(S){try{g(o.throw(S))}catch(C){_(C)}}function g(S){S.done?f(S.value):l(S.value).then(E,w)}g((o=o.apply(i,r||[])).next())})},Gy=te&&te.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(g){return function(S){return w([g,S])}}function w(g){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=g[0]&2?l.return:g[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,g[1])).done)return f;switch(l=0,f&&(g=[g[0]&2,f.value]),g[0]){case 0:case 1:f=g;break;case 4:return s.label++,{value:g[1],done:!1};case 5:s.label++,l=g[1],g=[0];continue;case 7:g=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(g[0]===6||g[0]===2)){s=0;continue}if(g[0]===3&&(!f||g[1]>f[0]&&g[1]<f[3])){s.label=g[1];break}if(g[0]===6&&s.label<f[1]){s.label=f[1],f=g;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(g);break}f[2]&&s.ops.pop(),s.trys.pop();continue}g=r.call(i,s)}catch(S){g=[6,S],l=0}finally{o=f=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},By=te&&te.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(te,"__esModule",{value:!0});te.HandleError=te.HumanWarning=te.HumanError=te.ServerlessError=te.InitError=te.ConfigGetError=te.ConfigError=te.ConfigDeleteError=te.CommandError=void 0;var qc=mr(),Xy=Rc(),Eu=By(At()),zy=mr(),rn=Eu.default.colors,Vy=Eu.default.report,jy=Eu.default.getMAC,Yy=Ic();Object.defineProperty(te,"CommandError",{enumerable:!0,get:function(){return Yy.CommandError}});var Ky=Cc();Object.defineProperty(te,"ConfigDeleteError",{enumerable:!0,get:function(){return Ky.ConfigDeleteError}});var Zy=bc();Object.defineProperty(te,"ConfigError",{enumerable:!0,get:function(){return Zy.ConfigError}});var Jy=Tc();Object.defineProperty(te,"ConfigGetError",{enumerable:!0,get:function(){return Jy.ConfigGetError}});var ky=Lc();Object.defineProperty(te,"InitError",{enumerable:!0,get:function(){return ky.InitError}});var Qy=nn();Object.defineProperty(te,"ServerlessError",{enumerable:!0,get:function(){return Qy.ServerlessError}});var ew=Nc();Object.defineProperty(te,"HumanError",{enumerable:!0,get:function(){return ew.HumanError}});var tw=Dc();Object.defineProperty(te,"HumanWarning",{enumerable:!0,get:function(){return tw.HumanWarning}});function nw(){try{return jy().replace(/:/g,"")}catch{return"unknown"}}function yu(i,r){return"".concat(rn.gray(i)).concat(rn.gray.underline(r))}var rw=function(){function i(r){var s=r.error,o=r.prefix,l=o===void 0?"Message:":o;this.traceId="".concat(nw()).concat(Date.now()),console.log((0,qc.red)("\u2716 ".concat(l,`
|
|
41
41
|
`)));var f=(0,Xy.getConfig)("analysis");f!=="disable"&&console.log(rn.gray("TraceId: ".concat(this.traceId))),console.log(rn.gray("Environment: ".concat((0,qc.getVersion)()))),console.log(yu("Documents: ","https://www.serverless-devs.com")),console.log(yu("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(yu("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
|
|
42
42
|
`)),(0,zy.getErrorMessage)(s),f!=="disable"&&console.log(rn.gray("Please copy traceId: ".concat(this.traceId," and join Dingding group: 33947367 for consultation."))),console.log(rn.gray("You can run 's clean --cache' to prune Serverless devs.")),console.log(rn.gray(`And run again with the '--debug' option or 's -h' to get more logs.
|
|
43
|
-
`))}return i.prototype.report=function(r){return Wy(this,void 0,void 0,function(){return Gy(this,function(s){switch(s.label){case 0:return[4,Vy({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:this.traceId})];case 1:return s.sent(),[2]}})})},i}();te.HandleError=rw});var Mc=T((Sx,iw)=>{iw.exports={name:"@serverless-devs/s",version:"2.0.97-beta.
|
|
43
|
+
`))}return i.prototype.report=function(r){return Wy(this,void 0,void 0,function(){return Gy(this,function(s){switch(s.label){case 0:return[4,Vy({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:this.traceId})];case 1:return s.sent(),[2]}})})},i}();te.HandleError=rw});var Mc=T((Sx,iw)=>{iw.exports={name:"@serverless-devs/s",version:"2.0.97-beta.7",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"beta"}}});var mr=T(H=>{"use strict";var sw=H&&H.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),uw=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),ow=H&&H.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&sw(r,i,s);return uw(r,i),r},Hc=H&&H.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function E(S){try{g(o.next(S))}catch(C){_(C)}}function w(S){try{g(o.throw(S))}catch(C){_(C)}}function g(S){S.done?f(S.value):l(S.value).then(E,w)}g((o=o.apply(i,r||[])).next())})},Uc=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(g){return function(S){return w([g,S])}}function w(g){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=g[0]&2?l.return:g[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,g[1])).done)return f;switch(l=0,f&&(g=[g[0]&2,f.value]),g[0]){case 0:case 1:f=g;break;case 4:return s.label++,{value:g[1],done:!1};case 5:s.label++,l=g[1],g=[0];continue;case 7:g=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(g[0]===6||g[0]===2)){s=0;continue}if(g[0]===3&&(!f||g[1]>f[0]&&g[1]<f[3])){s.label=g[1];break}if(g[0]===6&&s.label<f[1]){s.label=f[1],f=g;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(g);break}f[2]&&s.ops.pop(),s.trys.pop();continue}g=r.call(i,s)}catch(S){g=[6,S],l=0}finally{o=f=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},bi=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var ge=bi(require("path")),Fe=bi(require("fs")),wu=bi(cl()),aw=bi(require("os")),lw=Fc(),Nn=ow(At()),Ti=Nn.default.colors,fw=Nn.default.jsyaml,cw=Nn.default.makeUnderLine,Wc=Nn.default.isDebugMode,Gc=Mc();H.red=Ti.hex("#fd5750");H.yellow=Ti.hex("#F3F99D");H.bgRed=Ti.hex("#000").bgHex("#fd5750");var hw=function(i){var r=Wc?Wc():void 0;if(r){console.log(i);return}var s=i.message?i.message:"";try{var o=JSON.parse(s);console.log("".concat((0,H.bgRed)("ERROR:"),`
|
|
44
44
|
`).concat(o.message,`
|
|
45
45
|
`)),o.tips&&console.log("".concat((0,H.yellow)(cw(o.tips)),`
|
|
46
46
|
`))}catch{console.log("".concat((0,H.bgRed)("ERROR:"),`
|
package/lib/set/locale/index.js
CHANGED
|
@@ -40,7 +40,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
40
40
|
`))}return r}();tr.HumanWarning=Qb});var nr=P(ie=>{"use strict";var eS=ie&&ie.__awaiter||function(r,n,i,o){function a(u){return u instanceof i?u:new i(function(p){p(u)})}return new(i||(i=Promise))(function(u,p){function g(_){try{c(o.next(_))}catch(C){p(C)}}function m(_){try{c(o.throw(_))}catch(C){p(C)}}function c(_){_.done?u(_.value):a(_.value).then(g,m)}c((o=o.apply(r,n||[])).next())})},tS=ie&&ie.__generator||function(r,n){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(_){return m([c,_])}}function m(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=c[0]&2?a.return:c[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,c[1])).done)return u;switch(a=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(r,i)}catch(_){c=[6,_],a=0}finally{o=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},nS=ie&&ie.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ie,"__esModule",{value:!0});ie.HandleError=ie.HumanWarning=ie.HumanError=ie.ServerlessError=ie.InitError=ie.ConfigGetError=ie.ConfigError=ie.ConfigDeleteError=ie.CommandError=void 0;var Xh=Wt(),rS=fs(),cu=nS(Re()),iS=Wt(),xn=cu.default.colors,sS=cu.default.report,oS=cu.default.getMAC,uS=jh();Object.defineProperty(ie,"CommandError",{enumerable:!0,get:function(){return uS.CommandError}});var aS=Hh();Object.defineProperty(ie,"ConfigDeleteError",{enumerable:!0,get:function(){return aS.ConfigDeleteError}});var lS=Uh();Object.defineProperty(ie,"ConfigError",{enumerable:!0,get:function(){return lS.ConfigError}});var cS=Gh();Object.defineProperty(ie,"ConfigGetError",{enumerable:!0,get:function(){return cS.ConfigGetError}});var fS=Wh();Object.defineProperty(ie,"InitError",{enumerable:!0,get:function(){return fS.InitError}});var hS=On();Object.defineProperty(ie,"ServerlessError",{enumerable:!0,get:function(){return hS.ServerlessError}});var pS=kh();Object.defineProperty(ie,"HumanError",{enumerable:!0,get:function(){return pS.HumanError}});var dS=zh();Object.defineProperty(ie,"HumanWarning",{enumerable:!0,get:function(){return dS.HumanWarning}});function gS(){try{return oS().replace(/:/g,"")}catch{return"unknown"}}function fu(r,n){return"".concat(xn.gray(r)).concat(xn.gray.underline(n))}var vS=function(){function r(n){var i=n.error,o=n.prefix,a=o===void 0?"Message:":o;this.traceId="".concat(gS()).concat(Date.now()),console.log((0,Xh.red)("\u2716 ".concat(a,`
|
|
41
41
|
`)));var u=(0,rS.getConfig)("analysis");u!=="disable"&&console.log(xn.gray("TraceId: ".concat(this.traceId))),console.log(xn.gray("Environment: ".concat((0,Xh.getVersion)()))),console.log(fu("Documents: ","https://www.serverless-devs.com")),console.log(fu("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(fu("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
|
|
42
42
|
`)),(0,iS.getErrorMessage)(i),u!=="disable"&&console.log(xn.gray("Please copy traceId: ".concat(this.traceId," and join Dingding group: 33947367 for consultation."))),console.log(xn.gray("You can run 's clean --cache' to prune Serverless devs.")),console.log(xn.gray(`And run again with the '--debug' option or 's -h' to get more logs.
|
|
43
|
-
`))}return r.prototype.report=function(n){return eS(this,void 0,void 0,function(){return tS(this,function(i){switch(i.label){case 0:return[4,sS({type:"jsError",content:"".concat(n.message,"||").concat(n.stack),traceId:this.traceId})];case 1:return i.sent(),[2]}})})},r}();ie.HandleError=vS});var Yh=P((hx,mS)=>{mS.exports={name:"@serverless-devs/s",version:"2.0.97-beta.
|
|
43
|
+
`))}return r.prototype.report=function(n){return eS(this,void 0,void 0,function(){return tS(this,function(i){switch(i.label){case 0:return[4,sS({type:"jsError",content:"".concat(n.message,"||").concat(n.stack),traceId:this.traceId})];case 1:return i.sent(),[2]}})})},r}();ie.HandleError=vS});var Yh=P((hx,mS)=>{mS.exports={name:"@serverless-devs/s",version:"2.0.97-beta.7",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"beta"}}});var Wt=P(j=>{"use strict";var _S=j&&j.__createBinding||(Object.create?function(r,n,i,o){o===void 0&&(o=i),Object.defineProperty(r,o,{enumerable:!0,get:function(){return n[i]}})}:function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]}),yS=j&&j.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),ES=j&&j.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&_S(n,r,i);return yS(n,r),n},Kh=j&&j.__awaiter||function(r,n,i,o){function a(u){return u instanceof i?u:new i(function(p){p(u)})}return new(i||(i=Promise))(function(u,p){function g(_){try{c(o.next(_))}catch(C){p(C)}}function m(_){try{c(o.throw(_))}catch(C){p(C)}}function c(_){_.done?u(_.value):a(_.value).then(g,m)}c((o=o.apply(r,n||[])).next())})},Zh=j&&j.__generator||function(r,n){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(_){return m([c,_])}}function m(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=c[0]&2?a.return:c[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,c[1])).done)return u;switch(a=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(r,i)}catch(_){c=[6,_],a=0}finally{o=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},hs=j&&j.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(j,"__esModule",{value:!0});j.emoji=j.mark=j.replaceTemplate=j.getTemplatekey=j.replaceFun=j.getLang=j.printn=j.checkTemplateFile=j.checkAndReturnTemplateFile=j.yamlLoad=j.getFolderSize=j.getVersion=j.getErrorMessage=j.bgRed=j.yellow=j.red=void 0;var we=hs(require("path")),Ke=hs(require("fs")),hu=hs(Xn()),wS=hs(require("os")),bS=nr(),rr=ES(Re()),ps=rr.default.colors,SS=rr.default.jsyaml,CS=rr.default.makeUnderLine,Jh=rr.default.isDebugMode,Qh=Yh();j.red=ps.hex("#fd5750");j.yellow=ps.hex("#F3F99D");j.bgRed=ps.hex("#000").bgHex("#fd5750");var OS=function(r){var n=Jh?Jh():void 0;if(n){console.log(r);return}var i=r.message?r.message:"";try{var o=JSON.parse(i);console.log("".concat((0,j.bgRed)("ERROR:"),`
|
|
44
44
|
`).concat(o.message,`
|
|
45
45
|
`)),o.tips&&console.log("".concat((0,j.yellow)(CS(o.tips)),`
|
|
46
46
|
`))}catch{console.log("".concat((0,j.bgRed)("ERROR:"),`
|
|
@@ -40,7 +40,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
40
40
|
`))}return n}();en.HumanWarning=rS});var tn=P(ie=>{"use strict";var nS=ie&&ie.__awaiter||function(n,r,i,o){function a(u){return u instanceof i?u:new i(function(p){p(u)})}return new(i||(i=Promise))(function(u,p){function g(_){try{c(o.next(_))}catch(C){p(C)}}function m(_){try{c(o.throw(_))}catch(C){p(C)}}function c(_){_.done?u(_.value):a(_.value).then(g,m)}c((o=o.apply(n,r||[])).next())})},iS=ie&&ie.__generator||function(n,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(_){return m([c,_])}}function m(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=c[0]&2?a.return:c[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,c[1])).done)return u;switch(a=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(n,i)}catch(_){c=[6,_],a=0}finally{o=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},sS=ie&&ie.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ie,"__esModule",{value:!0});ie.HandleError=ie.HumanWarning=ie.HumanError=ie.ServerlessError=ie.InitError=ie.ConfigGetError=ie.ConfigError=ie.ConfigDeleteError=ie.CommandError=void 0;var Xh=Wt(),oS=cs(),lu=sS(Ie()),uS=Wt(),Or=lu.default.colors,aS=lu.default.report,lS=lu.default.getMAC,cS=jh();Object.defineProperty(ie,"CommandError",{enumerable:!0,get:function(){return cS.CommandError}});var fS=Hh();Object.defineProperty(ie,"ConfigDeleteError",{enumerable:!0,get:function(){return fS.ConfigDeleteError}});var hS=Uh();Object.defineProperty(ie,"ConfigError",{enumerable:!0,get:function(){return hS.ConfigError}});var pS=Gh();Object.defineProperty(ie,"ConfigGetError",{enumerable:!0,get:function(){return pS.ConfigGetError}});var dS=Wh();Object.defineProperty(ie,"InitError",{enumerable:!0,get:function(){return dS.InitError}});var gS=Cr();Object.defineProperty(ie,"ServerlessError",{enumerable:!0,get:function(){return gS.ServerlessError}});var vS=kh();Object.defineProperty(ie,"HumanError",{enumerable:!0,get:function(){return vS.HumanError}});var mS=zh();Object.defineProperty(ie,"HumanWarning",{enumerable:!0,get:function(){return mS.HumanWarning}});function _S(){try{return lS().replace(/:/g,"")}catch{return"unknown"}}function cu(n,r){return"".concat(Or.gray(n)).concat(Or.gray.underline(r))}var yS=function(){function n(r){var i=r.error,o=r.prefix,a=o===void 0?"Message:":o;this.traceId="".concat(_S()).concat(Date.now()),console.log((0,Xh.red)("\u2716 ".concat(a,`
|
|
41
41
|
`)));var u=(0,oS.getConfig)("analysis");u!=="disable"&&console.log(Or.gray("TraceId: ".concat(this.traceId))),console.log(Or.gray("Environment: ".concat((0,Xh.getVersion)()))),console.log(cu("Documents: ","https://www.serverless-devs.com")),console.log(cu("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(cu("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
|
|
42
42
|
`)),(0,uS.getErrorMessage)(i),u!=="disable"&&console.log(Or.gray("Please copy traceId: ".concat(this.traceId," and join Dingding group: 33947367 for consultation."))),console.log(Or.gray("You can run 's clean --cache' to prune Serverless devs.")),console.log(Or.gray(`And run again with the '--debug' option or 's -h' to get more logs.
|
|
43
|
-
`))}return n.prototype.report=function(r){return nS(this,void 0,void 0,function(){return iS(this,function(i){switch(i.label){case 0:return[4,aS({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:this.traceId})];case 1:return i.sent(),[2]}})})},n}();ie.HandleError=yS});var Yh=P((hx,ES)=>{ES.exports={name:"@serverless-devs/s",version:"2.0.97-beta.
|
|
43
|
+
`))}return n.prototype.report=function(r){return nS(this,void 0,void 0,function(){return iS(this,function(i){switch(i.label){case 0:return[4,aS({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:this.traceId})];case 1:return i.sent(),[2]}})})},n}();ie.HandleError=yS});var Yh=P((hx,ES)=>{ES.exports={name:"@serverless-devs/s",version:"2.0.97-beta.7",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"beta"}}});var Wt=P(j=>{"use strict";var wS=j&&j.__createBinding||(Object.create?function(n,r,i,o){o===void 0&&(o=i),Object.defineProperty(n,o,{enumerable:!0,get:function(){return r[i]}})}:function(n,r,i,o){o===void 0&&(o=i),n[o]=r[i]}),bS=j&&j.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),SS=j&&j.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&wS(r,n,i);return bS(r,n),r},Kh=j&&j.__awaiter||function(n,r,i,o){function a(u){return u instanceof i?u:new i(function(p){p(u)})}return new(i||(i=Promise))(function(u,p){function g(_){try{c(o.next(_))}catch(C){p(C)}}function m(_){try{c(o.throw(_))}catch(C){p(C)}}function c(_){_.done?u(_.value):a(_.value).then(g,m)}c((o=o.apply(n,r||[])).next())})},Zh=j&&j.__generator||function(n,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(_){return m([c,_])}}function m(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=c[0]&2?a.return:c[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,c[1])).done)return u;switch(a=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(n,i)}catch(_){c=[6,_],a=0}finally{o=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},fs=j&&j.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(j,"__esModule",{value:!0});j.emoji=j.mark=j.replaceTemplate=j.getTemplatekey=j.replaceFun=j.getLang=j.printn=j.checkTemplateFile=j.checkAndReturnTemplateFile=j.yamlLoad=j.getFolderSize=j.getVersion=j.getErrorMessage=j.bgRed=j.yellow=j.red=void 0;var we=fs(require("path")),Ke=fs(require("fs")),fu=fs(zr()),CS=fs(require("os")),OS=tn(),rn=SS(Ie()),hs=rn.default.colors,xS=rn.default.jsyaml,AS=rn.default.makeUnderLine,Jh=rn.default.isDebugMode,Qh=Yh();j.red=hs.hex("#fd5750");j.yellow=hs.hex("#F3F99D");j.bgRed=hs.hex("#000").bgHex("#fd5750");var IS=function(n){var r=Jh?Jh():void 0;if(r){console.log(n);return}var i=n.message?n.message:"";try{var o=JSON.parse(i);console.log("".concat((0,j.bgRed)("ERROR:"),`
|
|
44
44
|
`).concat(o.message,`
|
|
45
45
|
`)),o.tips&&console.log("".concat((0,j.yellow)(AS(o.tips)),`
|
|
46
46
|
`))}catch{console.log("".concat((0,j.bgRed)("ERROR:"),`
|