snyk
Version:
snyk library and cli utility
9 lines (7 loc) • 125 kB
JavaScript
"use strict";
exports.id = 284;
exports.ids = [284];
exports.modules = {
/***/ 13284:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Oa=__webpack_require__(57310),Ee=__webpack_require__(57147),en=__webpack_require__(71017),_a=__webpack_require__(73837);function Ta(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ee=Ta(en);var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qr={exports:{}},Rr,Kn;function Ra(){if(Kn)return Rr;Kn=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,s=n*365.25;Rr=function(c,f){f=f||{};var m=typeof c;if(m==="string"&&c.length>0)return o(c);if(m==="number"&&isFinite(c))return f.long?a(c):u(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function o(c){if(c=String(c),!(c.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(f){var m=parseFloat(f[1]),d=(f[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return m*s;case"weeks":case"week":case"w":return m*i;case"days":case"day":case"d":return m*n;case"hours":case"hour":case"hrs":case"hr":case"h":return m*r;case"minutes":case"minute":case"mins":case"min":case"m":return m*t;case"seconds":case"second":case"secs":case"sec":case"s":return m*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function u(c){var f=Math.abs(c);return f>=n?Math.round(c/n)+"d":f>=r?Math.round(c/r)+"h":f>=t?Math.round(c/t)+"m":f>=e?Math.round(c/e)+"s":c+"ms"}function a(c){var f=Math.abs(c);return f>=n?h(c,f,n,"day"):f>=r?h(c,f,r,"hour"):f>=t?h(c,f,t,"minute"):f>=e?h(c,f,e,"second"):c+" ms"}function h(c,f,m,d){var A=f>=m*1.5;return Math.round(c/m)+" "+d+(A?"s":"")}return Rr}function Ia(e){r.debug=r,r.default=r,r.coerce=a,r.disable=o,r.enable=i,r.enabled=u,r.humanize=Ra(),r.destroy=h,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let f=0;for(let m=0;m<c.length;m++)f=(f<<5)-f+c.charCodeAt(m),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=t;function r(c){let f,m=null,d,A;function v(...b){if(!v.enabled)return;const j=v,W=Number(new Date),D=W-(f||W);j.diff=D,j.prev=f,j.curr=W,f=W,b[0]=r.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let B=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(ae,Ue)=>{if(ae==="%%")return"%";B++;const we=r.formatters[Ue];if(typeof we=="function"){const Ge=b[B];ae=we.call(j,Ge),b.splice(B,1),B--}return ae}),r.formatArgs.call(j,b),(j.log||r.log).apply(j,b)}return v.namespace=c,v.useColors=r.useColors(),v.color=r.selectColor(c),v.extend=n,v.destroy=r.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(d!==r.namespaces&&(d=r.namespaces,A=r.enabled(c)),A),set:b=>{m=b}}),typeof r.init=="function"&&r.init(v),v}function n(c,f){const m=r(this.namespace+(typeof f>"u"?":":f)+c);return m.log=this.log,m}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];const f=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const m of f)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function s(c,f){let m=0,d=0,A=-1,v=0;for(;m<c.length;)if(d<f.length&&(f[d]===c[m]||f[d]==="*"))f[d]==="*"?(A=d,v=m,d++):(m++,d++);else if(A!==-1)d=A+1,v++,m=v;else return!1;for(;d<f.length&&f[d]==="*";)d++;return d===f.length}function o(){const c=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),c}function u(c){for(const f of r.skips)if(s(c,f))return!1;for(const f of r.names)if(s(c,f))return!0;return!1}function a(c){return c instanceof Error?c.stack||c.message:c}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var Fa=Ia;(function(e,t){t.formatArgs=n,t.save=i,t.load=s,t.useColors=r,t.storage=o(),t.destroy=(()=>{let a=!1;return()=>{a||(a=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let a;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const h="color: "+this.color;a.splice(1,0,h,"color: inherit");let c=0,f=0;a[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(c++,m==="%c"&&(f=c))}),a.splice(f,0,h)}t.log=console.debug||console.log||(()=>{});function i(a){try{a?t.storage.setItem("debug",a):t.storage.removeItem("debug")}catch{}}function s(){let a;try{a=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!a&&typeof process<"u"&&"env"in process&&(a=process.env.DEBUG),a}function o(){try{return localStorage}catch{}}e.exports=Fa(t);const{formatters:u}=e.exports;u.j=function(a){try{return JSON.stringify(a)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}})(qr,qr.exports);var lr=qr.exports;const be=ar(lr);var Xr={exports:{}};const La="2.0.0",zi=256,Na=Number.MAX_SAFE_INTEGER||9007199254740991,ja=16,Da=zi-6,Pa=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var cr={MAX_LENGTH:zi,MAX_SAFE_COMPONENT_LENGTH:ja,MAX_SAFE_BUILD_LENGTH:Da,MAX_SAFE_INTEGER:Na,RELEASE_TYPES:Pa,SEMVER_SPEC_VERSION:La,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const Ma=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var ur=Ma;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=cr,s=ur;t=e.exports={};const o=t.re=[],u=t.safeRe=[],a=t.src=[],h=t.safeSrc=[],c=t.t={};let f=0;const m="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[m,n]],A=b=>{for(const[j,W]of d)b=b.split(`${j}*`).join(`${j}{0,${W}}`).split(`${j}+`).join(`${j}{1,${W}}`);return b},v=(b,j,W)=>{const D=A(j),B=f++;s(b,B,j),c[b]=B,a[B]=j,h[B]=D,o[B]=new RegExp(j,W?"g":void 0),u[B]=new RegExp(D,W?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`),v("MAINVERSION",`(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${a[c.NONNUMERICIDENTIFIER]}|${a[c.NUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${a[c.NONNUMERICIDENTIFIER]}|${a[c.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASE",`(?:-(${a[c.PRERELEASEIDENTIFIER]}(?:\\.${a[c.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${a[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[c.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${m}+`),v("BUILD",`(?:\\+(${a[c.BUILDIDENTIFIER]}(?:\\.${a[c.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${a[c.MAINVERSION]}${a[c.PRERELEASE]}?${a[c.BUILD]}?`),v("FULL",`^${a[c.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${a[c.MAINVERSIONLOOSE]}${a[c.PRERELEASELOOSE]}?${a[c.BUILD]}?`),v("LOOSE",`^${a[c.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${a[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${a[c.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:${a[c.PRERELEASE]})?${a[c.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:${a[c.PRERELEASELOOSE]})?${a[c.BUILD]}?)?)?`),v("XRANGE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${a[c.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",a[c.COERCEPLAIN]+`(?:${a[c.PRERELEASE]})?(?:${a[c.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",a[c.COERCE],!0),v("COERCERTLFULL",a[c.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${a[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${a[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${a[c.LONECARET]}${a[c.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${a[c.LONECARET]}${a[c.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${a[c.GTLT]}\\s*(${a[c.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]}|${a[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${a[c.XRANGEPLAIN]})\\s+-\\s+(${a[c.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${a[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[c.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Xr,Xr.exports);var bt=Xr.exports;const ka=Object.freeze({loose:!0}),Ua=Object.freeze({}),Ga=e=>e?typeof e!="object"?ka:e:Ua;var tn=Ga;const zn=/^[0-9]+$/,Ji=(e,t)=>{const r=zn.test(e),n=zn.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},Ha=(e,t)=>Ji(t,e);var Zi={compareIdentifiers:Ji,rcompareIdentifiers:Ha};const Bt=ur,{MAX_LENGTH:Jn,MAX_SAFE_INTEGER:Yt}=cr,{safeRe:Vt,t:qt}=bt,Ba=tn,{compareIdentifiers:qe}=Zi;let Ya=class le{constructor(t,r){if(r=Ba(r),t instanceof le){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Jn)throw new TypeError(`version is longer than ${Jn} characters`);Bt("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Vt[qt.LOOSE]:Vt[qt.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Yt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Yt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Yt||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const s=+i;if(s>=0&&s<Yt)return s}return i}):this.prerelease=[],this.build=n[5]?n[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(t){if(Bt("SemVer.compare",this.version,this.options,t),!(t instanceof le)){if(typeof t=="string"&&t===this.version)return 0;t=new le(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof le||(t=new le(t,this.options)),qe(this.major,t.major)||qe(this.minor,t.minor)||qe(this.patch,t.patch)}comparePre(t){if(t instanceof le||(t=new le(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],i=t.prerelease[r];if(Bt("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return qe(n,i)}while(++r)}compareBuild(t){t instanceof le||(t=new le(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(Bt("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return qe(n,i)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){const i=`-${r}`.match(this.options.loose?Vt[qt.PRERELEASELOOSE]:Vt[qt.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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":{const i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),qe(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var K=Ya;const Zn=K,Va=(e,t,r=!1)=>{if(e instanceof Zn)return e;try{return new Zn(e,t)}catch(n){if(!r)return null;throw n}};var at=Va;const qa=at,Xa=(e,t)=>{const r=qa(e,t);return r?r.version:null};var Wa=Xa;const Ka=at,za=(e,t)=>{const r=Ka(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var Ja=za;const Qn=K,Za=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Qn(e instanceof Qn?e.version:e,r).inc(t,n,i).version}catch{return null}};var Qa=Za;const ei=at,el=(e,t)=>{const r=ei(e,null,!0),n=ei(t,null,!0),i=r.compare(n);if(i===0)return null;const s=i>0,o=s?r:n,u=s?n:r,a=!!o.prerelease.length;if(!!u.prerelease.length&&!a){if(!u.patch&&!u.minor)return"major";if(u.compareMain(o)===0)return u.minor&&!u.patch?"minor":"patch"}const c=a?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":"prerelease"};var tl=el;const rl=K,nl=(e,t)=>new rl(e,t).major;var il=nl;const sl=K,ol=(e,t)=>new sl(e,t).minor;var al=ol;const ll=K,cl=(e,t)=>new ll(e,t).patch;var ul=cl;const fl=at,hl=(e,t)=>{const r=fl(e,t);return r&&r.prerelease.length?r.prerelease:null};var pl=hl;const ti=K,dl=(e,t,r)=>new ti(e,r).compare(new ti(t,r));var se=dl;const ml=se,gl=(e,t,r)=>ml(t,e,r);var vl=gl;const yl=se,El=(e,t)=>yl(e,t,!0);var xl=El;const ri=K,$l=(e,t,r)=>{const n=new ri(e,r),i=new ri(t,r);return n.compare(i)||n.compareBuild(i)};var rn=$l;const Al=rn,bl=(e,t)=>e.sort((r,n)=>Al(r,n,t));var wl=bl;const Cl=rn,Sl=(e,t)=>e.sort((r,n)=>Cl(n,r,t));var Ol=Sl;const _l=se,Tl=(e,t,r)=>_l(e,t,r)>0;var fr=Tl;const Rl=se,Il=(e,t,r)=>Rl(e,t,r)<0;var nn=Il;const Fl=se,Ll=(e,t,r)=>Fl(e,t,r)===0;var Qi=Ll;const Nl=se,jl=(e,t,r)=>Nl(e,t,r)!==0;var es=jl;const Dl=se,Pl=(e,t,r)=>Dl(e,t,r)>=0;var sn=Pl;const Ml=se,kl=(e,t,r)=>Ml(e,t,r)<=0;var on=kl;const Ul=Qi,Gl=es,Hl=fr,Bl=sn,Yl=nn,Vl=on,ql=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Ul(e,r,n);case"!=":return Gl(e,r,n);case">":return Hl(e,r,n);case">=":return Bl(e,r,n);case"<":return Yl(e,r,n);case"<=":return Vl(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var ts=ql;const Xl=K,Wl=at,{safeRe:Xt,t:Wt}=bt,Kl=(e,t)=>{if(e instanceof Xl)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Xt[Wt.COERCEFULL]:Xt[Wt.COERCE]);else{const a=t.includePrerelease?Xt[Wt.COERCERTLFULL]:Xt[Wt.COERCERTL];let h;for(;(h=a.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||h.index+h[0].length!==r.index+r[0].length)&&(r=h),a.lastIndex=h.index+h[1].length+h[2].length;a.lastIndex=-1}if(r===null)return null;const n=r[2],i=r[3]||"0",s=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return Wl(`${n}.${i}.${s}${o}${u}`,t)};var zl=Kl;let Jl=class{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};var Zl=Jl,Ir,ni;function oe(){if(ni)return Ir;ni=1;const e=/\s+/g;class t{constructor(y,O){if(O=i(O),y instanceof t)return y.loose===!!O.loose&&y.includePrerelease===!!O.includePrerelease?y:new t(y.raw,O);if(y instanceof s)return this.raw=y.value,this.set=[[y]],this.formatted=void 0,this;if(this.options=O,this.loose=!!O.loose,this.includePrerelease=!!O.includePrerelease,this.raw=y.trim().replace(e," "),this.set=this.raw.split("||").map(w=>this.parseRange(w.trim())).filter(w=>w.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const w=this.set[0];if(this.set=this.set.filter(_=>!v(_[0])),this.set.length===0)this.set=[w];else if(this.set.length>1){for(const _ of this.set)if(_.length===1&&b(_[0])){this.set=[_];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let y=0;y<this.set.length;y++){y>0&&(this.formatted+="||");const O=this.set[y];for(let w=0;w<O.length;w++)w>0&&(this.formatted+=" "),this.formatted+=O[w].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(y){const w=((this.options.includePrerelease&&d)|(this.options.loose&&A))+":"+y,_=n.get(w);if(_)return _;const C=this.options.loose,E=C?a[h.HYPHENRANGELOOSE]:a[h.HYPHENRANGE];y=y.replace(E,Nt(this.options.includePrerelease)),o("hyphen replace",y),y=y.replace(a[h.COMPARATORTRIM],c),o("comparator trim",y),y=y.replace(a[h.TILDETRIM],f),o("tilde trim",y),y=y.replace(a[h.CARETTRIM],m),o("caret trim",y);let L=y.split(" ").map(P=>W(P,this.options)).join(" ").split(/\s+/).map(P=>Lt(P,this.options));C&&(L=L.filter(P=>(o("loose invalid filter",P,this.options),!!P.match(a[h.COMPARATORLOOSE])))),o("range list",L);const T=new Map,R=L.map(P=>new s(P,this.options));for(const P of R){if(v(P))return[P];T.set(P.value,P)}T.size>1&&T.has("")&&T.delete("");const q=[...T.values()];return n.set(w,q),q}intersects(y,O){if(!(y instanceof t))throw new TypeError("a Range is required");return this.set.some(w=>j(w,O)&&y.set.some(_=>j(_,O)&&w.every(C=>_.every(E=>C.intersects(E,O)))))}test(y){if(!y)return!1;if(typeof y=="string")try{y=new u(y,this.options)}catch{return!1}for(let O=0;O<this.set.length;O++)if(jt(this.set[O],y,this.options))return!0;return!1}}Ir=t;const r=Zl,n=new r,i=tn,s=hr(),o=ur,u=K,{safeRe:a,t:h,comparatorTrimReplace:c,tildeTrimReplace:f,caretTrimReplace:m}=bt,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:A}=cr,v=x=>x.value==="<0.0.0-0",b=x=>x.value==="",j=(x,y)=>{let O=!0;const w=x.slice();let _=w.pop();for(;O&&w.length;)O=w.every(C=>_.intersects(C,y)),_=w.pop();return O},W=(x,y)=>(o("comp",x,y),x=ae(x,y),o("caret",x),x=B(x,y),o("tildes",x),x=we(x,y),o("xrange",x),x=Ft(x,y),o("stars",x),x),D=x=>!x||x.toLowerCase()==="x"||x==="*",B=(x,y)=>x.trim().split(/\s+/).map(O=>ut(O,y)).join(" "),ut=(x,y)=>{const O=y.loose?a[h.TILDELOOSE]:a[h.TILDE];return x.replace(O,(w,_,C,E,L)=>{o("tilde",x,w,_,C,E,L);let T;return D(_)?T="":D(C)?T=`>=${_}.0.0 <${+_+1}.0.0-0`:D(E)?T=`>=${_}.${C}.0 <${_}.${+C+1}.0-0`:L?(o("replaceTilde pr",L),T=`>=${_}.${C}.${E}-${L} <${_}.${+C+1}.0-0`):T=`>=${_}.${C}.${E} <${_}.${+C+1}.0-0`,o("tilde return",T),T})},ae=(x,y)=>x.trim().split(/\s+/).map(O=>Ue(O,y)).join(" "),Ue=(x,y)=>{o("caret",x,y);const O=y.loose?a[h.CARETLOOSE]:a[h.CARET],w=y.includePrerelease?"-0":"";return x.replace(O,(_,C,E,L,T)=>{o("caret",x,_,C,E,L,T);let R;return D(C)?R="":D(E)?R=`>=${C}.0.0${w} <${+C+1}.0.0-0`:D(L)?C==="0"?R=`>=${C}.${E}.0${w} <${C}.${+E+1}.0-0`:R=`>=${C}.${E}.0${w} <${+C+1}.0.0-0`:T?(o("replaceCaret pr",T),C==="0"?E==="0"?R=`>=${C}.${E}.${L}-${T} <${C}.${E}.${+L+1}-0`:R=`>=${C}.${E}.${L}-${T} <${C}.${+E+1}.0-0`:R=`>=${C}.${E}.${L}-${T} <${+C+1}.0.0-0`):(o("no pr"),C==="0"?E==="0"?R=`>=${C}.${E}.${L}${w} <${C}.${E}.${+L+1}-0`:R=`>=${C}.${E}.${L}${w} <${C}.${+E+1}.0-0`:R=`>=${C}.${E}.${L} <${+C+1}.0.0-0`),o("caret return",R),R})},we=(x,y)=>(o("replaceXRanges",x,y),x.split(/\s+/).map(O=>Ge(O,y)).join(" ")),Ge=(x,y)=>{x=x.trim();const O=y.loose?a[h.XRANGELOOSE]:a[h.XRANGE];return x.replace(O,(w,_,C,E,L,T)=>{o("xRange",x,w,_,C,E,L,T);const R=D(C),q=R||D(E),P=q||D(L),Ce=P;return _==="="&&Ce&&(_=""),T=y.includePrerelease?"-0":"",R?_===">"||_==="<"?w="<0.0.0-0":w="*":_&&Ce?(q&&(E=0),L=0,_===">"?(_=">=",q?(C=+C+1,E=0,L=0):(E=+E+1,L=0)):_==="<="&&(_="<",q?C=+C+1:E=+E+1),_==="<"&&(T="-0"),w=`${_+C}.${E}.${L}${T}`):q?w=`>=${C}.0.0${T} <${+C+1}.0.0-0`:P&&(w=`>=${C}.${E}.0${T} <${C}.${+E+1}.0-0`),o("xRange return",w),w})},Ft=(x,y)=>(o("replaceStars",x,y),x.trim().replace(a[h.STAR],"")),Lt=(x,y)=>(o("replaceGTE0",x,y),x.trim().replace(a[y.includePrerelease?h.GTE0PRE:h.GTE0],"")),Nt=x=>(y,O,w,_,C,E,L,T,R,q,P,Ce)=>(D(w)?O="":D(_)?O=`>=${w}.0.0${x?"-0":""}`:D(C)?O=`>=${w}.${_}.0${x?"-0":""}`:E?O=`>=${O}`:O=`>=${O}${x?"-0":""}`,D(R)?T="":D(q)?T=`<${+R+1}.0.0-0`:D(P)?T=`<${R}.${+q+1}.0-0`:Ce?T=`<=${R}.${q}.${P}-${Ce}`:x?T=`<${R}.${q}.${+P+1}-0`:T=`<=${T}`,`${O} ${T}`.trim()),jt=(x,y,O)=>{for(let w=0;w<x.length;w++)if(!x[w].test(y))return!1;if(y.prerelease.length&&!O.includePrerelease){for(let w=0;w<x.length;w++)if(o(x[w].semver),x[w].semver!==s.ANY&&x[w].semver.prerelease.length>0){const _=x[w].semver;if(_.major===y.major&&_.minor===y.minor&&_.patch===y.patch)return!0}return!1}return!0};return Ir}var Fr,ii;function hr(){if(ii)return Fr;ii=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,f){if(f=r(f),c instanceof t){if(c.loose===!!f.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),o("comparator",c,f),this.options=f,this.loose=!!f.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(c){const f=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],m=c.match(f);if(!m)throw new TypeError(`Invalid comparator: ${c}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new u(m[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(o("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new u(c,this.options)}catch{return!1}return s(c,this.operator,this.semver,this.options)}intersects(c,f){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new a(c.value,f).test(this.value):c.operator===""?c.value===""?!0:new a(this.value,f).test(c.semver):(f=r(f),f.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!f.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||s(this.semver,"<",c.semver,f)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||s(this.semver,">",c.semver,f)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}Fr=t;const r=tn,{safeRe:n,t:i}=bt,s=ts,o=ur,u=K,a=oe();return Fr}const Ql=oe(),ec=(e,t,r)=>{try{t=new Ql(t,r)}catch{return!1}return t.test(e)};var pr=ec;const tc=oe(),rc=(e,t)=>new tc(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var nc=rc;const ic=K,sc=oe(),oc=(e,t,r)=>{let n=null,i=null,s=null;try{s=new sc(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new ic(n,r))}),n};var ac=oc;const lc=K,cc=oe(),uc=(e,t,r)=>{let n=null,i=null,s=null;try{s=new cc(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new lc(n,r))}),n};var fc=uc;const Lr=K,hc=oe(),si=fr,pc=(e,t)=>{e=new hc(e,t);let r=new Lr("0.0.0");if(e.test(r)||(r=new Lr("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const i=e.set[n];let s=null;i.forEach(o=>{const u=new Lr(o.semver.version);switch(o.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!s||si(u,s))&&(s=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||si(r,s))&&(r=s)}return r&&e.test(r)?r:null};var dc=pc;const mc=oe(),gc=(e,t)=>{try{return new mc(e,t).range||"*"}catch{return null}};var vc=gc;const yc=K,rs=hr(),{ANY:Ec}=rs,xc=oe(),$c=pr,oi=fr,ai=nn,Ac=on,bc=sn,wc=(e,t,r,n)=>{e=new yc(e,n),t=new xc(t,n);let i,s,o,u,a;switch(r){case">":i=oi,s=Ac,o=ai,u=">",a=">=";break;case"<":i=ai,s=bc,o=oi,u="<",a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if($c(e,t,n))return!1;for(let h=0;h<t.set.length;++h){const c=t.set[h];let f=null,m=null;if(c.forEach(d=>{d.semver===Ec&&(d=new rs(">=0.0.0")),f=f||d,m=m||d,i(d.semver,f.semver,n)?f=d:o(d.semver,m.semver,n)&&(m=d)}),f.operator===u||f.operator===a||(!m.operator||m.operator===u)&&s(e,m.semver))return!1;if(m.operator===a&&o(e,m.semver))return!1}return!0};var an=wc;const Cc=an,Sc=(e,t,r)=>Cc(e,t,">",r);var Oc=Sc;const _c=an,Tc=(e,t,r)=>_c(e,t,"<",r);var Rc=Tc;const li=oe(),Ic=(e,t,r)=>(e=new li(e,r),t=new li(t,r),e.intersects(t,r));var Fc=Ic;const Lc=pr,Nc=se;var jc=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((c,f)=>Nc(c,f,r));for(const c of o)Lc(c,t,r)?(s=c,i||(i=c)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const u=[];for(const[c,f]of n)c===f?u.push(c):!f&&c===o[0]?u.push("*"):f?c===o[0]?u.push(`<=${f}`):u.push(`${c} - ${f}`):u.push(`>=${c}`);const a=u.join(" || "),h=typeof t.raw=="string"?t.raw:String(t);return a.length<h.length?a:t};const ci=oe(),ln=hr(),{ANY:Nr}=ln,pt=pr,cn=se,Dc=(e,t,r={})=>{if(e===t)return!0;e=new ci(e,r),t=new ci(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const o=Mc(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},Pc=[new ln(">=0.0.0-0")],ui=[new ln(">=0.0.0")],Mc=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Nr){if(t.length===1&&t[0].semver===Nr)return!0;r.includePrerelease?e=Pc:e=ui}if(t.length===1&&t[0].semver===Nr){if(r.includePrerelease)return!0;t=ui}const n=new Set;let i,s;for(const d of e)d.operator===">"||d.operator===">="?i=fi(i,d,r):d.operator==="<"||d.operator==="<="?s=hi(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=cn(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(const d of n){if(i&&!pt(d,String(i),r)||s&&!pt(d,String(s),r))return null;for(const A of t)if(!pt(d,String(A),r))return!1;return!0}let u,a,h,c,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,m=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(const d of t){if(c=c||d.operator===">"||d.operator===">=",h=h||d.operator==="<"||d.operator==="<=",i){if(m&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===m.major&&d.semver.minor===m.minor&&d.semver.patch===m.patch&&(m=!1),d.operator===">"||d.operator===">="){if(u=fi(i,d,r),u===d&&u!==i)return!1}else if(i.operator===">="&&!pt(i.semver,String(d),r))return!1}if(s){if(f&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===f.major&&d.semver.minor===f.minor&&d.semver.patch===f.patch&&(f=!1),d.operator==="<"||d.operator==="<="){if(a=hi(s,d,r),a===d&&a!==s)return!1}else if(s.operator==="<="&&!pt(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&h&&!s&&o!==0||s&&c&&!i&&o!==0||m||f)},fi=(e,t,r)=>{if(!e)return t;const n=cn(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},hi=(e,t,r)=>{if(!e)return t;const n=cn(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var kc=Dc;const jr=bt,pi=cr,Uc=K,di=Zi,Gc=at,Hc=Wa,Bc=Ja,Yc=Qa,Vc=tl,qc=il,Xc=al,Wc=ul,Kc=pl,zc=se,Jc=vl,Zc=xl,Qc=rn,eu=wl,tu=Ol,ru=fr,nu=nn,iu=Qi,su=es,ou=sn,au=on,lu=ts,cu=zl,uu=hr(),fu=oe(),hu=pr,pu=nc,du=ac,mu=fc,gu=dc,vu=vc,yu=an,Eu=Oc,xu=Rc,$u=Fc,Au=jc,bu=kc;var Wr={parse:Gc,valid:Hc,clean:Bc,inc:Yc,diff:Vc,major:qc,minor:Xc,patch:Wc,prerelease:Kc,compare:zc,rcompare:Jc,compareLoose:Zc,compareBuild:Qc,sort:eu,rsort:tu,gt:ru,lt:nu,eq:iu,neq:su,gte:ou,lte:au,cmp:lu,coerce:cu,Comparator:uu,Range:fu,satisfies:hu,toComparators:pu,maxSatisfying:du,minSatisfying:mu,minVersion:gu,validRange:vu,outside:yu,gtr:Eu,ltr:xu,intersects:$u,simplifyRange:Au,subset:bu,SemVer:Uc,re:jr.re,src:jr.src,tokens:jr.t,SEMVER_SPEC_VERSION:pi.SEMVER_SPEC_VERSION,RELEASE_TYPES:pi.RELEASE_TYPES,compareIdentifiers:di.compareIdentifiers,rcompareIdentifiers:di.rcompareIdentifiers},nt={},un={exports:{}};const N=(...e)=>e.every(t=>t)?e.join(""):"",V=e=>e?encodeURIComponent(e):"",wt={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${N("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${N("#",n)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${N("/",i,"/",V(n))}`,browsefiletemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:u})=>`https://${e}/${t}/${r}/${i}/${V(n||"master")}/${s}${N("#",u(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${N("/",n,"/",V(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${V(n)||"master"}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${N("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${N("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:ns},te={};te.github=Object.assign({},wt,{protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${N(e,"@")}raw.githubusercontent.com/${t}/${r}/${V(n)||"master"}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${V(n)||"master"}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}});te.bitbucket=Object.assign({},wt,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${V(n)||"master"}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}});te.gitlab=Object.assign({},wt,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${V(n)||"master"}`,extract:e=>{const t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;const r=t.split("/");let n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));const i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}});te.gist=Object.assign({},wt,{protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${N("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${N("#",r)}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${N("/",V(r))}`,browsefiletemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${N("/",V(r))}${N("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${N("/",V(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${N("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${N("/",V(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${N("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${N("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${N("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${V(t)||"master"}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+ns(e)}});te.sourcehut=Object.assign({},wt,{protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",browsefiletemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:u})=>`https://${e}/${t}/${r}/${i}/${V(n||"main")}/${s}${N("#",u(o||""))}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${V(n)||"main"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${N("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${V(n)||"main"}.tar.gz`,bugstemplate:({domain:e,user:t,project:r})=>`https://todo.sr.ht/${t}/${r}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${N("/",n,"/",V(i))}#readme`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}});const wu=Object.keys(te);te.byShortcut={};te.byDomain={};for(const e of wu)te.byShortcut[`${e}:`]=e,te.byDomain[te[e].domain]=e;function ns(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}var is=te;const Cu=is;let Su=class{constructor(t,r,n,i,s,o,u={}){Object.assign(this,Cu[t]),this.type=t,this.user=r,this.auth=n,this.project=i,this.committish=s,this.default=o,this.opts=u}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this._fill(this.sshtemplate,t)}_fill(t,r){if(typeof t=="function"){const n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);const i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}return null}sshurl(t){return this._fill(this.sshurltemplate,t)}browse(t,r,n){return typeof t!="string"?this._fill(this.browsetemplate,t):(typeof r!="string"&&(n=r,r=null),this._fill(this.browsefiletemplate,{...n,fragment:r,path:t}))}docs(t){return this._fill(this.docstemplate,t)}bugs(t){return this._fill(this.bugstemplate,t)}https(t){return this._fill(this.httpstemplate,t)}git(t){return this._fill(this.gittemplate,t)}shortcut(t){return this._fill(this.shortcuttemplate,t)}path(t){return this._fill(this.pathtemplate,t)}tarball(t){return this._fill(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this._fill(this.filetemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};var Ou=Su,Dr,mi;function _u(){return mi||(mi=1,Dr=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),Dr}var Tu=I;I.Node=Pe;I.create=I;function I(e){var t=this;if(t instanceof I||(t=new I),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}I.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};I.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};I.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};I.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)Iu(this,arguments[e]);return this.length};I.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)Fu(this,arguments[e]);return this.length};I.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};I.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};I.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};I.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};I.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};I.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};I.prototype.map=function(e,t){t=t||this;for(var r=new I,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};I.prototype.mapReverse=function(e,t){t=t||this;for(var r=new I,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};I.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};I.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};I.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};I.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};I.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new I;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};I.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new I;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};I.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=Ru(this,i,r[n]);return s};I.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function Ru(e,t,r){var n=t===e.head?new Pe(r,null,t,e):new Pe(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function Iu(e,t){e.tail=new Pe(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function Fu(e,t){e.head=new Pe(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Pe(e,t,r,n){if(!(this instanceof Pe))return new Pe(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{_u()(I)}catch{}const Lu=Tu,Ie=Symbol("max"),me=Symbol("length"),Xe=Symbol("lengthCalculator"),yt=Symbol("allowStale"),Le=Symbol("maxAge"),pe=Symbol("dispose"),gi=Symbol("noDisposeOnSet"),U=Symbol("lruList"),ne=Symbol("cache"),ss=Symbol("updateAgeOnGet"),Pr=()=>1;let Nu=class{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Ie]=t.max||1/0;const r=t.length||Pr;if(this[Xe]=typeof r!="function"?Pr:r,this[yt]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Le]=t.maxAge||0,this[pe]=t.dispose,this[gi]=t.noDisposeOnSet||!1,this[ss]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Ie]=t||1/0,dt(this)}get max(){return this[Ie]}set allowStale(t){this[yt]=!!t}get allowStale(){return this[yt]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Le]=t,dt(this)}get maxAge(){return this[Le]}set lengthCalculator(t){typeof t!="function"&&(t=Pr),t!==this[Xe]&&(this[Xe]=t,this[me]=0,this[U].forEach(r=>{r.length=this[Xe](r.value,r.key),this[me]+=r.length})),dt(this)}get lengthCalculator(){return this[Xe]}get length(){return this[me]}get itemCount(){return this[U].length}rforEach(t,r){r=r||this;for(let n=this[U].tail;n!==null;){const i=n.prev;vi(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[U].head;n!==null;){const i=n.next;vi(this,t,n,r),n=i}}keys(){return this[U].toArray().map(t=>t.key)}values(){return this[U].toArray().map(t=>t.value)}reset(){this[pe]&&this[U]&&this[U].length&&this[U].forEach(t=>this[pe](t.key,t.value)),this[ne]=new Map,this[U]=new Lu,this[me]=0}dump(){return this[U].map(t=>er(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[U]}set(t,r,n){if(n=n||this[Le],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Xe](r,t);if(this[ne].has(t)){if(s>this[Ie])return tt(this,this[ne].get(t)),!1;const a=this[ne].get(t).value;return this[pe]&&(this[gi]||this[pe](t,a.value)),a.now=i,a.maxAge=n,a.value=r,this[me]+=s-a.length,a.length=s,this.get(t),dt(this),!0}const o=new ju(t,r,s,i,n);return o.length>this[Ie]?(this[pe]&&this[pe](t,r),!1):(this[me]+=o.length,this[U].unshift(o),this[ne].set(t,this[U].head),dt(this),!0)}has(t){if(!this[ne].has(t))return!1;const r=this[ne].get(t).value;return!er(this,r)}get(t){return Mr(this,t,!0)}peek(t){return Mr(this,t,!1)}pop(){const t=this[U].tail;return t?(tt(this,t),t.value):null}del(t){tt(this,this[ne].get(t))}load(t){this.reset();const r=Date.now();for(let n=t.length-1;n>=0;n--){const i=t[n],s=i.e||0;if(s===0)this.set(i.k,i.v);else{const o=s-r;o>0&&this.set(i.k,i.v,o)}}}prune(){this[ne].forEach((t,r)=>Mr(this,r,!1))}};const Mr=(e,t,r)=>{const n=e[ne].get(t);if(n){const i=n.value;if(er(e,i)){if(tt(e,n),!e[yt])return}else r&&(e[ss]&&(n.value.now=Date.now()),e[U].unshiftNode(n));return i.value}},er=(e,t)=>{if(!t||!t.maxAge&&!e[Le])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[Le]&&r>e[Le]},dt=e=>{if(e[me]>e[Ie])for(let t=e[U].tail;e[me]>e[Ie]&&t!==null;){const r=t.prev;tt(e,t),t=r}},tt=(e,t)=>{if(t){const r=t.value;e[pe]&&e[pe](r.key,r.value),e[me]-=r.length,e[ne].delete(r.key),e[U].removeNode(t)}};let ju=class{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}};const vi=(e,t,r,n)=>{let i=r.value;er(e,i)&&(tt(e,r),e[yt]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var Du=Nu;const yi=Oa,zt=is,Pu=un.exports=Ou,Mu=Du,kr=new Mu({max:1e3}),ku={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function Uu(e){return ku[e]||e.slice(0,-1)}const Gu={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0},Hu=Object.keys(zt.byShortcut).concat(["http:","https:","git:","git+ssh:","git+https:","ssh:"]);un.exports.fromUrl=function(e,t){if(typeof e!="string")return;const r=e+JSON.stringify(t||{});return kr.has(r)||kr.set(r,Bu(e,t)),kr.get(r)};function Bu(e,t){if(!e)return;const r=Vu(e)?"github:"+e:Yu(e),n=Xu(r);if(!n)return n;const i=zt.byShortcut[n.protocol],s=zt.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],o=i||s;if(!o)return;const u=zt[i||s];let a=null;Gu[n.protocol]&&(n.username||n.password)&&(a=`${n.username}${n.password?":"+n.password:""}`);let h=null,c=null,f=null,m=null;try{if(i){let d=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname;const A=d.indexOf("@");A>-1&&(d=d.slice(A+1));const v=d.lastIndexOf("/");v>-1?(c=decodeURIComponent(d.slice(0,v)),c||(c=null),f=decodeURIComponent(d.slice(v+1))):f=decodeURIComponent(d),f.endsWith(".git")&&(f=f.slice(0,-4)),n.hash&&(h=decodeURIComponent(n.hash.slice(1))),m="shortcut"}else{if(!u.protocols.includes(n.protocol))return;const d=u.extract(n);if(!d)return;c=d.user&&decodeURIComponent(d.user),f=decodeURIComponent(d.project),h=decodeURIComponent(d.committish),m=Uu(n.protocol)}}catch(d){if(d instanceof URIError)return;throw d}return new Pu(o,c,a,f,h,m,t)}const Yu=e=>{const t=e.indexOf(":"),r=e.slice(0,t+1);if(Hu.includes(r))return e;const n=e.indexOf("@");return n>-1?n>t?`git+ssh://${e}`:e:e.indexOf("//")===t+1?e:e.slice(0,t+1)+"//"+e.slice(t+1)},Vu=e=>{const t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),u=!s||t>-1&&s.index>t,a=o===-1||t>-1&&o>t,h=i===-1||t>-1&&i>t,c=n===-1||t>-1&&n>t,f=r>0,m=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return u&&f&&m&&d&&a&&h&&c},qu=e=>{const t=e.indexOf("@"),r=e.lastIndexOf("#");let n=e.indexOf(":"),i=e.lastIndexOf(":",r>-1?r:1/0),s;return i>t&&(s=e.slice(0,i)+"/"+e.slice(i+1),n=s.indexOf(":"),i=s.lastIndexOf(":")),n===-1&&e.indexOf("//")===-1&&(s=`git+ssh://${s}`),s},Xu=e=>{let t;try{t=new yi.URL(e)}catch{}if(t)return t;const r=qu(e);try{t=new yi.URL(r)}catch{}return t};var Wu=un.exports;Object.defineProperty(nt,"__esModule",{value:!0});nt.encode=Je=nt.parsePackageString=void 0;const Et=lr("snyk:module"),Ku=Wu;Et.log=console.error.bind(console);nt.default=os;function os(e,t,r){if(!e)throw new Error("requires string to parse into module");let n;t&&!r&&typeof t=="object"?r=t:n=t;let i=e;if(!n&&/^(?:(?:[a-z-]+)|(?:@[a-z-]+\/[a-z-]+)|(?:[a-z-]+\.[.a-z-]+:[a-z-]+))$/.test(i))return Kt(i,{name:i,version:"*"},r);n&&i.lastIndexOf("@")<1&&(Et("appending version onto string"),i+="@"+n);const s=Ei(i);if(s)return Kt(i,xi(s),r);let o=i.split("@");i.indexOf("@")===0&&(o=o.slice(1),o[0]="@"+o[0]);const u=o[1]&&Ei(o[1]);if(u)return Kt(i,xi(u),r);o.length===1&&o.push("*");const a={name:o[0],version:o.slice(1).join("@")};return Kt(i,a,r)}var Je=nt.parsePackageString=os;function Ei(e){if(e.slice(-1)==="/"&&(e=e.slice(0,-1)),e.toLowerCase().indexOf("://github.com/")!==-1&&e.indexOf("http")===0){const r=e.replace(/https?:\/\/github.com\//,"").split("/");e=r.shift()+"/"+r.shift(),r.length&&(e+="#"+r.pop())}return Ku.fromUrl(e)}function xi(e){if(!e.project||!e.user){const r=new Error("not supported: failed to fully parse");throw r.code=501,r}const t={name:e.project,version:e.user+"/"+e.project};return e.committish&&(t.version+="#"+e.committish),t}function zu(e){return e[0]+encodeURIComponent(e.slice(1))}nt.encode=zu