sml-cli
Version:
Semantic Modeling Language CLI
46 lines (44 loc) • 4.89 MB
JavaScript
"use strict";var Lcr=Object.create;var Bve=Object.defineProperty;var jcr=Object.getOwnPropertyDescriptor;var Bcr=Object.getOwnPropertyNames;var qcr=Object.getPrototypeOf,$cr=Object.prototype.hasOwnProperty;var ch=(n,r)=>()=>(n&&(r=n(n=0)),r);var Ve=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports),Bne=(n,r)=>{for(var i in r)Bve(n,i,{get:r[i],enumerable:!0})},adt=(n,r,i,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of Bcr(r))!$cr.call(n,u)&&u!==i&&Bve(n,u,{get:()=>r[u],enumerable:!(c=jcr(r,u))||c.enumerable});return n};var uu=(n,r,i)=>(i=n!=null?Lcr(qcr(n)):{},adt(r||!n||!n.__esModule?Bve(i,"default",{value:n,enumerable:!0}):i,n)),Jcr=n=>adt(Bve({},"__esModule",{value:!0}),n);var odt=Ve((Dzr,Ucr)=>{Ucr.exports={name:"dotenv",version:"16.3.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://github.com/motdotla/dotenv?sponsor=1",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3",decache:"^4.6.1",sinon:"^14.0.1",standard:"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0",tap:"^16.3.0",tar:"^6.1.11",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var hLe=Ve((xzr,xF)=>{var cdt=require("fs"),mLe=require("path"),Vcr=require("os"),Wcr=require("crypto"),zcr=odt(),gLe=zcr.version,Gcr=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Hcr(n){let r={},i=n.toString();i=i.replace(/\r\n?/mg,`
`);let c;for(;(c=Gcr.exec(i))!=null;){let u=c[1],_=c[2]||"";_=_.trim();let g=_[0];_=_.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),g==='"'&&(_=_.replace(/\\n/g,`
`),_=_.replace(/\\r/g,"\r")),r[u]=_}return r}function Xcr(n){let r=udt(n),i=mv.configDotenv({path:r});if(!i.parsed)throw new Error(`MISSING_DATA: Cannot parse ${r} for an unknown reason`);let c=ldt(n).split(","),u=c.length,_;for(let g=0;g<u;g++)try{let x=c[g].trim(),I=Kcr(i,x);_=mv.decrypt(I.ciphertext,I.key);break}catch(x){if(g+1>=u)throw x}return mv.parse(_)}function Ycr(n){console.log(`[dotenv@${gLe}][INFO] ${n}`)}function Qcr(n){console.log(`[dotenv@${gLe}][WARN] ${n}`)}function dLe(n){console.log(`[dotenv@${gLe}][DEBUG] ${n}`)}function ldt(n){return n&&n.DOTENV_KEY&&n.DOTENV_KEY.length>0?n.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function Kcr(n,r){let i;try{i=new URL(r)}catch(x){throw x.code==="ERR_INVALID_URL"?new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenv.org/vault/.env.vault?environment=development"):x}let c=i.password;if(!c)throw new Error("INVALID_DOTENV_KEY: Missing key part");let u=i.searchParams.get("environment");if(!u)throw new Error("INVALID_DOTENV_KEY: Missing environment part");let _=`DOTENV_VAULT_${u.toUpperCase()}`,g=n.parsed[_];if(!g)throw new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${_} in your .env.vault file.`);return{ciphertext:g,key:c}}function udt(n){let r=mLe.resolve(process.cwd(),".env");return n&&n.path&&n.path.length>0&&(r=n.path),r.endsWith(".vault")?r:`${r}.vault`}function Zcr(n){return n[0]==="~"?mLe.join(Vcr.homedir(),n.slice(1)):n}function elr(n){Ycr("Loading env from encrypted .env.vault");let r=mv._parseVault(n),i=process.env;return n&&n.processEnv!=null&&(i=n.processEnv),mv.populate(i,r,n),{parsed:r}}function tlr(n){let r=mLe.resolve(process.cwd(),".env"),i="utf8",c=!!(n&&n.debug);n&&(n.path!=null&&(r=Zcr(n.path)),n.encoding!=null&&(i=n.encoding));try{let u=mv.parse(cdt.readFileSync(r,{encoding:i})),_=process.env;return n&&n.processEnv!=null&&(_=n.processEnv),mv.populate(_,u,n),{parsed:u}}catch(u){return c&&dLe(`Failed to load ${r} ${u.message}`),{error:u}}}function rlr(n){let r=udt(n);return ldt(n).length===0?mv.configDotenv(n):cdt.existsSync(r)?mv._configVault(n):(Qcr(`You set DOTENV_KEY but you are missing a .env.vault file at ${r}. Did you forget to build it?`),mv.configDotenv(n))}function nlr(n,r){let i=Buffer.from(r.slice(-64),"hex"),c=Buffer.from(n,"base64"),u=c.slice(0,12),_=c.slice(-16);c=c.slice(12,-16);try{let g=Wcr.createDecipheriv("aes-256-gcm",i,u);return g.setAuthTag(_),`${g.update(c)}${g.final()}`}catch(g){let x=g instanceof RangeError,I=g.message==="Invalid key length",w=g.message==="Unsupported state or unable to authenticate data";if(x||I){let M="INVALID_DOTENV_KEY: It must be 64 characters long (or more)";throw new Error(M)}else if(w){let M="DECRYPTION_FAILED: Please check your DOTENV_KEY";throw new Error(M)}else throw console.error("Error: ",g.code),console.error("Error: ",g.message),g}}function ilr(n,r,i={}){let c=!!(i&&i.debug),u=!!(i&&i.override);if(typeof r!="object")throw new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");for(let _ of Object.keys(r))Object.prototype.hasOwnProperty.call(n,_)?(u===!0&&(n[_]=r[_]),c&&dLe(u===!0?`"${_}" is already defined and WAS overwritten`:`"${_}" is already defined and was NOT overwritten`)):n[_]=r[_]}var mv={configDotenv:tlr,_configVault:elr,_parseVault:Xcr,config:rlr,decrypt:nlr,parse:Hcr,populate:ilr};xF.exports.configDotenv=mv.configDotenv;xF.exports._configVault=mv._configVault;xF.exports._parseVault=mv._parseVault;xF.exports.config=mv.config;xF.exports.decrypt=mv.decrypt;xF.exports.parse=mv.parse;xF.exports.populate=mv.populate;xF.exports=mv});var pdt=Ve((Tzr,fdt)=>{var yz={};process.env.DOTENV_CONFIG_ENCODING!=null&&(yz.encoding=process.env.DOTENV_CONFIG_ENCODING);process.env.DOTENV_CONFIG_PATH!=null&&(yz.path=process.env.DOTENV_CONFIG_PATH);process.env.DOTENV_CONFIG_DEBUG!=null&&(yz.debug=process.env.DOTENV_CONFIG_DEBUG);process.env.DOTENV_CONFIG_OVERRIDE!=null&&(yz.override=process.env.DOTENV_CONFIG_OVERRIDE);process.env.DOTENV_CONFIG_DOTENV_KEY!=null&&(yz.DOTENV_KEY=process.env.DOTENV_CONFIG_DOTENV_KEY);fdt.exports=yz});var ddt=Ve((Czr,_dt)=>{var slr=/^dotenv_config_(encoding|path|debug|override|DOTENV_KEY)=(.+)$/;_dt.exports=function(r){return r.reduce(function(i,c){let u=c.match(slr);return u&&(i[u[1]]=u[2]),i},{})}});var Ty=Ve(f1=>{"use strict";Object.defineProperty(f1,"__esModule",{value:!0});f1.pickBy=alr;f1.compact=olr;f1.uniqBy=clr;f1.last=llr;f1.sortBy=ulr;f1.castArray=flr;f1.isProd=plr;f1.maxBy=_lr;f1.sumBy=dlr;f1.capitalize=mlr;f1.isTruthy=glr;f1.isNotFalsy=hlr;f1.uniq=ylr;f1.mapValues=vlr;f1.mergeNestedObjects=Slr;function alr(n,r){return Object.entries(n).reduce((i,[c,u])=>(r(u)&&(i[c]=u),i),{})}function olr(n){return n.filter(r=>!!r)}function clr(n,r){return n.filter((i,c)=>{let u=r(i);return!n.some((_,g)=>g>c&&r(_)===u)})}function llr(n){if(n)return n.at(-1)}function yLe(n,r){if(n=n===void 0?0:n,r=r===void 0?0:r,Array.isArray(n)&&Array.isArray(r)){if(n.length===0&&r.length===0)return 0;let i=yLe(n[0],r[0]);return i!==0?i:yLe(n.slice(1),r.slice(1))}return n<r?-1:n>r?1:0}function ulr(n,r){return n.sort((i,c)=>yLe(r(i),r(c)))}function flr(n){return n===void 0?[]:Array.isArray(n)?n:[n]}function plr(){return!["development","test"].includes(process.env.NODE_ENV??"")}function _lr(n,r){if(n.length!==0)return n.reduce((i,c)=>{let u=r(c),_=r(i);return u>_?c:i})}function dlr(n,r){return n.reduce((i,c)=>i+r(c),0)}function mlr(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}function glr(n){return["1","true","y","yes"].includes(n.toLowerCase())}function hlr(n){return!["0","false","n","no"].includes(n.toLowerCase())}function ylr(n){return[...new Set(n)].sort()}function vlr(n,r){return Object.entries(n).reduce((i,[c,u])=>(i[c]=r(u,c),i),{})}function blr(n,r){return r.split(".").reduce((i,c)=>i?.[c],n)}function Slr(n,r){return Object.fromEntries(n.flatMap(i=>Object.entries(blr(i,r)??{})).reverse())}});var qne=Ve((Izr,mdt)=>{var Dlr="2.0.0",xlr=Number.MAX_SAFE_INTEGER||9007199254740991,Tlr=16,Clr=250,Elr=["major","premajor","minor","preminor","patch","prepatch","prerelease"];mdt.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Tlr,MAX_SAFE_BUILD_LENGTH:Clr,MAX_SAFE_INTEGER:xlr,RELEASE_TYPES:Elr,SEMVER_SPEC_VERSION:Dlr,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var $ne=Ve((Azr,gdt)=>{var Ilr=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};gdt.exports=Ilr});var vz=Ve((TF,hdt)=>{var{MAX_SAFE_COMPONENT_LENGTH:vLe,MAX_SAFE_BUILD_LENGTH:Alr,MAX_LENGTH:wlr}=qne(),klr=$ne();TF=hdt.exports={};var Plr=TF.re=[],Nlr=TF.safeRe=[],vo=TF.src=[],bo=TF.t={},Olr=0,bLe="[a-zA-Z0-9-]",Flr=[["\\s",1],["\\d",wlr],[bLe,Alr]],Rlr=n=>{for(let[r,i]of Flr)n=n.split(`${r}*`).join(`${r}{0,${i}}`).split(`${r}+`).join(`${r}{1,${i}}`);return n},ru=(n,r,i)=>{let c=Rlr(r),u=Olr++;klr(n,u,r),bo[n]=u,vo[u]=r,Plr[u]=new RegExp(r,i?"g":void 0),Nlr[u]=new RegExp(c,i?"g":void 0)};ru("NUMERICIDENTIFIER","0|[1-9]\\d*");ru("NUMERICIDENTIFIERLOOSE","\\d+");ru("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${bLe}*`);ru("MAINVERSION",`(${vo[bo.NUMERICIDENTIFIER]})\\.(${vo[bo.NUMERICIDENTIFIER]})\\.(${vo[bo.NUMERICIDENTIFIER]})`);ru("MAINVERSIONLOOSE",`(${vo[bo.NUMERICIDENTIFIERLOOSE]})\\.(${vo[bo.NUMERICIDENTIFIERLOOSE]})\\.(${vo[bo.NUMERICIDENTIFIERLOOSE]})`);ru("PRERELEASEIDENTIFIER",`(?:${vo[bo.NUMERICIDENTIFIER]}|${vo[bo.NONNUMERICIDENTIFIER]})`);ru("PRERELEASEIDENTIFIERLOOSE",`(?:${vo[bo.NUMERICIDENTIFIERLOOSE]}|${vo[bo.NONNUMERICIDENTIFIER]})`);ru("PRERELEASE",`(?:-(${vo[bo.PRERELEASEIDENTIFIER]}(?:\\.${vo[bo.PRERELEASEIDENTIFIER]})*))`);ru("PRERELEASELOOSE",`(?:-?(${vo[bo.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${vo[bo.PRERELEASEIDENTIFIERLOOSE]})*))`);ru("BUILDIDENTIFIER",`${bLe}+`);ru("BUILD",`(?:\\+(${vo[bo.BUILDIDENTIFIER]}(?:\\.${vo[bo.BUILDIDENTIFIER]})*))`);ru("FULLPLAIN",`v?${vo[bo.MAINVERSION]}${vo[bo.PRERELEASE]}?${vo[bo.BUILD]}?`);ru("FULL",`^${vo[bo.FULLPLAIN]}$`);ru("LOOSEPLAIN",`[v=\\s]*${vo[bo.MAINVERSIONLOOSE]}${vo[bo.PRERELEASELOOSE]}?${vo[bo.BUILD]}?`);ru("LOOSE",`^${vo[bo.LOOSEPLAIN]}$`);ru("GTLT","((?:<|>)?=?)");ru("XRANGEIDENTIFIERLOOSE",`${vo[bo.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ru("XRANGEIDENTIFIER",`${vo[bo.NUMERICIDENTIFIER]}|x|X|\\*`);ru("XRANGEPLAIN",`[v=\\s]*(${vo[bo.XRANGEIDENTIFIER]})(?:\\.(${vo[bo.XRANGEIDENTIFIER]})(?:\\.(${vo[bo.XRANGEIDENTIFIER]})(?:${vo[bo.PRERELEASE]})?${vo[bo.BUILD]}?)?)?`);ru("XRANGEPLAINLOOSE",`[v=\\s]*(${vo[bo.XRANGEIDENTIFIERLOOSE]})(?:\\.(${vo[bo.XRANGEIDENTIFIERLOOSE]})(?:\\.(${vo[bo.XRANGEIDENTIFIERLOOSE]})(?:${vo[bo.PRERELEASELOOSE]})?${vo[bo.BUILD]}?)?)?`);ru("XRANGE",`^${vo[bo.GTLT]}\\s*${vo[bo.XRANGEPLAIN]}$`);ru("XRANGELOOSE",`^${vo[bo.GTLT]}\\s*${vo[bo.XRANGEPLAINLOOSE]}$`);ru("COERCEPLAIN",`(^|[^\\d])(\\d{1,${vLe}})(?:\\.(\\d{1,${vLe}}))?(?:\\.(\\d{1,${vLe}}))?`);ru("COERCE",`${vo[bo.COERCEPLAIN]}(?:$|[^\\d])`);ru("COERCEFULL",vo[bo.COERCEPLAIN]+`(?:${vo[bo.PRERELEASE]})?(?:${vo[bo.BUILD]})?(?:$|[^\\d])`);ru("COERCERTL",vo[bo.COERCE],!0);ru("COERCERTLFULL",vo[bo.COERCEFULL],!0);ru("LONETILDE","(?:~>?)");ru("TILDETRIM",`(\\s*)${vo[bo.LONETILDE]}\\s+`,!0);TF.tildeTrimReplace="$1~";ru("TILDE",`^${vo[bo.LONETILDE]}${vo[bo.XRANGEPLAIN]}$`);ru("TILDELOOSE",`^${vo[bo.LONETILDE]}${vo[bo.XRANGEPLAINLOOSE]}$`);ru("LONECARET","(?:\\^)");ru("CARETTRIM",`(\\s*)${vo[bo.LONECARET]}\\s+`,!0);TF.caretTrimReplace="$1^";ru("CARET",`^${vo[bo.LONECARET]}${vo[bo.XRANGEPLAIN]}$`);ru("CARETLOOSE",`^${vo[bo.LONECARET]}${vo[bo.XRANGEPLAINLOOSE]}$`);ru("COMPARATORLOOSE",`^${vo[bo.GTLT]}\\s*(${vo[bo.LOOSEPLAIN]})$|^$`);ru("COMPARATOR",`^${vo[bo.GTLT]}\\s*(${vo[bo.FULLPLAIN]})$|^$`);ru("COMPARATORTRIM",`(\\s*)${vo[bo.GTLT]}\\s*(${vo[bo.LOOSEPLAIN]}|${vo[bo.XRANGEPLAIN]})`,!0);TF.comparatorTrimReplace="$1$2$3";ru("HYPHENRANGE",`^\\s*(${vo[bo.XRANGEPLAIN]})\\s+-\\s+(${vo[bo.XRANGEPLAIN]})\\s*$`);ru("HYPHENRANGELOOSE",`^\\s*(${vo[bo.XRANGEPLAINLOOSE]})\\s+-\\s+(${vo[bo.XRANGEPLAINLOOSE]})\\s*$`);ru("STAR","(<|>)?=?\\s*\\*");ru("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ru("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var qve=Ve((wzr,ydt)=>{var Mlr=Object.freeze({loose:!0}),Llr=Object.freeze({}),jlr=n=>n?typeof n!="object"?Mlr:n:Llr;ydt.exports=jlr});var SLe=Ve((kzr,Sdt)=>{var vdt=/^[0-9]+$/,bdt=(n,r)=>{let i=vdt.test(n),c=vdt.test(r);return i&&c&&(n=+n,r=+r),n===r?0:i&&!c?-1:c&&!i?1:n<r?-1:1},Blr=(n,r)=>bdt(r,n);Sdt.exports={compareIdentifiers:bdt,rcompareIdentifiers:Blr}});var bb=Ve((Pzr,Cdt)=>{var $ve=$ne(),{MAX_LENGTH:Ddt,MAX_SAFE_INTEGER:Jve}=qne(),{safeRe:xdt,t:Tdt}=vz(),qlr=qve(),{compareIdentifiers:bz}=SLe(),DLe=class n{constructor(r,i){if(i=qlr(i),r instanceof n){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>Ddt)throw new TypeError(`version is longer than ${Ddt} characters`);$ve("SemVer",r,i),this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease;let c=r.trim().match(i.loose?xdt[Tdt.LOOSE]:xdt[Tdt.FULL]);if(!c)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>Jve||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Jve||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Jve||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map(u=>{if(/^[0-9]+$/.test(u)){let _=+u;if(_>=0&&_<Jve)return _}return u}):this.prerelease=[],this.build=c[5]?c[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($ve("SemVer.compare",this.version,this.options,r),!(r instanceof n)){if(typeof r=="string"&&r===this.version)return 0;r=new n(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof n||(r=new n(r,this.options)),bz(this.major,r.major)||bz(this.minor,r.minor)||bz(this.patch,r.patch)}comparePre(r){if(r instanceof n||(r=new n(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 i=0;do{let c=this.prerelease[i],u=r.prerelease[i];if($ve("prerelease compare",i,c,u),c===void 0&&u===void 0)return 0;if(u===void 0)return 1;if(c===void 0)return-1;if(c===u)continue;return bz(c,u)}while(++i)}compareBuild(r){r instanceof n||(r=new n(r,this.options));let i=0;do{let c=this.build[i],u=r.build[i];if($ve("build compare",i,c,u),c===void 0&&u===void 0)return 0;if(u===void 0)return 1;if(c===void 0)return-1;if(c===u)continue;return bz(c,u)}while(++i)}inc(r,i,c){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",i,c);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",i,c);break;case"prepatch":this.prerelease.length=0,this.inc("patch",i,c),this.inc("pre",i,c);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",i,c),this.inc("pre",i,c);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":{let u=Number(c)?1:0;if(!i&&c===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[u];else{let _=this.prerelease.length;for(;--_>=0;)typeof this.prerelease[_]=="number"&&(this.prerelease[_]++,_=-2);if(_===-1){if(i===this.prerelease.join(".")&&c===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(u)}}if(i){let _=[i,u];c===!1&&(_=[i]),bz(this.prerelease[0],i)===0?isNaN(this.prerelease[1])&&(this.prerelease=_):this.prerelease=_}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Cdt.exports=DLe});var B9=Ve((Nzr,Idt)=>{var Edt=bb(),$lr=(n,r,i=!1)=>{if(n instanceof Edt)return n;try{return new Edt(n,r)}catch(c){if(!i)return null;throw c}};Idt.exports=$lr});var wdt=Ve((Ozr,Adt)=>{var Jlr=B9(),Ulr=(n,r)=>{let i=Jlr(n,r);return i?i.version:null};Adt.exports=Ulr});var Pdt=Ve((Fzr,kdt)=>{var Vlr=B9(),Wlr=(n,r)=>{let i=Vlr(n.trim().replace(/^[=v]+/,""),r);return i?i.version:null};kdt.exports=Wlr});var Fdt=Ve((Rzr,Odt)=>{var Ndt=bb(),zlr=(n,r,i,c,u)=>{typeof i=="string"&&(u=c,c=i,i=void 0);try{return new Ndt(n instanceof Ndt?n.version:n,i).inc(r,c,u).version}catch{return null}};Odt.exports=zlr});var Ldt=Ve((Mzr,Mdt)=>{var Rdt=B9(),Glr=(n,r)=>{let i=Rdt(n,null,!0),c=Rdt(r,null,!0),u=i.compare(c);if(u===0)return null;let _=u>0,g=_?i:c,x=_?c:i,I=!!g.prerelease.length;if(!!x.prerelease.length&&!I)return!x.patch&&!x.minor?"major":g.patch?"patch":g.minor?"minor":"major";let M=I?"pre":"";return i.major!==c.major?M+"major":i.minor!==c.minor?M+"minor":i.patch!==c.patch?M+"patch":"prerelease"};Mdt.exports=Glr});var Bdt=Ve((Lzr,jdt)=>{var Hlr=bb(),Xlr=(n,r)=>new Hlr(n,r).major;jdt.exports=Xlr});var $dt=Ve((jzr,qdt)=>{var Ylr=bb(),Qlr=(n,r)=>new Ylr(n,r).minor;qdt.exports=Qlr});var Udt=Ve((Bzr,Jdt)=>{var Klr=bb(),Zlr=(n,r)=>new Klr(n,r).patch;Jdt.exports=Zlr});var Wdt=Ve((qzr,Vdt)=>{var eur=B9(),tur=(n,r)=>{let i=eur(n,r);return i&&i.prerelease.length?i.prerelease:null};Vdt.exports=tur});var KC=Ve(($zr,Gdt)=>{var zdt=bb(),rur=(n,r,i)=>new zdt(n,i).compare(new zdt(r,i));Gdt.exports=rur});var Xdt=Ve((Jzr,Hdt)=>{var nur=KC(),iur=(n,r,i)=>nur(r,n,i);Hdt.exports=iur});var Qdt=Ve((Uzr,Ydt)=>{var sur=KC(),aur=(n,r)=>sur(n,r,!0);Ydt.exports=aur});var Uve=Ve((Vzr,Zdt)=>{var Kdt=bb(),our=(n,r,i)=>{let c=new Kdt(n,i),u=new Kdt(r,i);return c.compare(u)||c.compareBuild(u)};Zdt.exports=our});var tmt=Ve((Wzr,emt)=>{var cur=Uve(),lur=(n,r)=>n.sort((i,c)=>cur(i,c,r));emt.exports=lur});var nmt=Ve((zzr,rmt)=>{var uur=Uve(),fur=(n,r)=>n.sort((i,c)=>uur(c,i,r));rmt.exports=fur});var Jne=Ve((Gzr,imt)=>{var pur=KC(),_ur=(n,r,i)=>pur(n,r,i)>0;imt.exports=_ur});var Vve=Ve((Hzr,smt)=>{var dur=KC(),mur=(n,r,i)=>dur(n,r,i)<0;smt.exports=mur});var xLe=Ve((Xzr,amt)=>{var gur=KC(),hur=(n,r,i)=>gur(n,r,i)===0;amt.exports=hur});var TLe=Ve((Yzr,omt)=>{var yur=KC(),vur=(n,r,i)=>yur(n,r,i)!==0;omt.exports=vur});var Wve=Ve((Qzr,cmt)=>{var bur=KC(),Sur=(n,r,i)=>bur(n,r,i)>=0;cmt.exports=Sur});var zve=Ve((Kzr,lmt)=>{var Dur=KC(),xur=(n,r,i)=>Dur(n,r,i)<=0;lmt.exports=xur});var CLe=Ve((Zzr,umt)=>{var Tur=xLe(),Cur=TLe(),Eur=Jne(),Iur=Wve(),Aur=Vve(),wur=zve(),kur=(n,r,i,c)=>{switch(r){case"===":return typeof n=="object"&&(n=n.version),typeof i=="object"&&(i=i.version),n===i;case"!==":return typeof n=="object"&&(n=n.version),typeof i=="object"&&(i=i.version),n!==i;case"":case"=":case"==":return Tur(n,i,c);case"!=":return Cur(n,i,c);case">":return Eur(n,i,c);case">=":return Iur(n,i,c);case"<":return Aur(n,i,c);case"<=":return wur(n,i,c);default:throw new TypeError(`Invalid operator: ${r}`)}};umt.exports=kur});var pmt=Ve((eGr,fmt)=>{var Pur=bb(),Nur=B9(),{safeRe:Gve,t:Hve}=vz(),Our=(n,r)=>{if(n instanceof Pur)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;r=r||{};let i=null;if(!r.rtl)i=n.match(r.includePrerelease?Gve[Hve.COERCEFULL]:Gve[Hve.COERCE]);else{let I=r.includePrerelease?Gve[Hve.COERCERTLFULL]:Gve[Hve.COERCERTL],w;for(;(w=I.exec(n))&&(!i||i.index+i[0].length!==n.length);)(!i||w.index+w[0].length!==i.index+i[0].length)&&(i=w),I.lastIndex=w.index+w[1].length+w[2].length;I.lastIndex=-1}if(i===null)return null;let c=i[2],u=i[3]||"0",_=i[4]||"0",g=r.includePrerelease&&i[5]?`-${i[5]}`:"",x=r.includePrerelease&&i[6]?`+${i[6]}`:"";return Nur(`${c}.${u}.${_}${g}${x}`,r)};fmt.exports=Our});var dmt=Ve((tGr,_mt)=>{var ELe=class{constructor(){this.max=1e3,this.map=new Map}get(r){let i=this.map.get(r);if(i!==void 0)return this.map.delete(r),this.map.set(r,i),i}delete(r){return this.map.delete(r)}set(r,i){if(!this.delete(r)&&i!==void 0){if(this.map.size>=this.max){let u=this.map.keys().next().value;this.delete(u)}this.map.set(r,i)}return this}};_mt.exports=ELe});var ZC=Ve((rGr,ymt)=>{var Fur=/\s+/g,ILe=class n{constructor(r,i){if(i=Mur(i),r instanceof n)return r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease?r:new n(r.raw,i);if(r instanceof ALe)return this.raw=r.value,this.set=[[r]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=r.trim().replace(Fur," "),this.set=this.raw.split("||").map(c=>this.parseRange(c.trim())).filter(c=>c.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let c=this.set[0];if(this.set=this.set.filter(u=>!gmt(u[0])),this.set.length===0)this.set=[c];else if(this.set.length>1){for(let u of this.set)if(u.length===1&&Uur(u[0])){this.set=[u];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let r=0;r<this.set.length;r++){r>0&&(this.formatted+="||");let i=this.set[r];for(let c=0;c<i.length;c++)c>0&&(this.formatted+=" "),this.formatted+=i[c].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(r){let c=((this.options.includePrerelease&&$ur)|(this.options.loose&&Jur))+":"+r,u=mmt.get(c);if(u)return u;let _=this.options.loose,g=_?vx[WS.HYPHENRANGELOOSE]:vx[WS.HYPHENRANGE];r=r.replace(g,Zur(this.options.includePrerelease)),gm("hyphen replace",r),r=r.replace(vx[WS.COMPARATORTRIM],jur),gm("comparator trim",r),r=r.replace(vx[WS.TILDETRIM],Bur),gm("tilde trim",r),r=r.replace(vx[WS.CARETTRIM],qur),gm("caret trim",r);let x=r.split(" ").map(U=>Vur(U,this.options)).join(" ").split(/\s+/).map(U=>Kur(U,this.options));_&&(x=x.filter(U=>(gm("loose invalid filter",U,this.options),!!U.match(vx[WS.COMPARATORLOOSE])))),gm("range list",x);let I=new Map,w=x.map(U=>new ALe(U,this.options));for(let U of w){if(gmt(U))return[U];I.set(U.value,U)}I.size>1&&I.has("")&&I.delete("");let M=[...I.values()];return mmt.set(c,M),M}intersects(r,i){if(!(r instanceof n))throw new TypeError("a Range is required");return this.set.some(c=>hmt(c,i)&&r.set.some(u=>hmt(u,i)&&c.every(_=>u.every(g=>_.intersects(g,i)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new Lur(r,this.options)}catch{return!1}for(let i=0;i<this.set.length;i++)if(efr(this.set[i],r,this.options))return!0;return!1}};ymt.exports=ILe;var Rur=dmt(),mmt=new Rur,Mur=qve(),ALe=Une(),gm=$ne(),Lur=bb(),{safeRe:vx,t:WS,comparatorTrimReplace:jur,tildeTrimReplace:Bur,caretTrimReplace:qur}=vz(),{FLAG_INCLUDE_PRERELEASE:$ur,FLAG_LOOSE:Jur}=qne(),gmt=n=>n.value==="<0.0.0-0",Uur=n=>n.value==="",hmt=(n,r)=>{let i=!0,c=n.slice(),u=c.pop();for(;i&&c.length;)i=c.every(_=>u.intersects(_,r)),u=c.pop();return i},Vur=(n,r)=>(gm("comp",n,r),n=Gur(n,r),gm("caret",n),n=Wur(n,r),gm("tildes",n),n=Xur(n,r),gm("xrange",n),n=Qur(n,r),gm("stars",n),n),zS=n=>!n||n.toLowerCase()==="x"||n==="*",Wur=(n,r)=>n.trim().split(/\s+/).map(i=>zur(i,r)).join(" "),zur=(n,r)=>{let i=r.loose?vx[WS.TILDELOOSE]:vx[WS.TILDE];return n.replace(i,(c,u,_,g,x)=>{gm("tilde",n,c,u,_,g,x);let I;return zS(u)?I="":zS(_)?I=`>=${u}.0.0 <${+u+1}.0.0-0`:zS(g)?I=`>=${u}.${_}.0 <${u}.${+_+1}.0-0`:x?(gm("replaceTilde pr",x),I=`>=${u}.${_}.${g}-${x} <${u}.${+_+1}.0-0`):I=`>=${u}.${_}.${g} <${u}.${+_+1}.0-0`,gm("tilde return",I),I})},Gur=(n,r)=>n.trim().split(/\s+/).map(i=>Hur(i,r)).join(" "),Hur=(n,r)=>{gm("caret",n,r);let i=r.loose?vx[WS.CARETLOOSE]:vx[WS.CARET],c=r.includePrerelease?"-0":"";return n.replace(i,(u,_,g,x,I)=>{gm("caret",n,u,_,g,x,I);let w;return zS(_)?w="":zS(g)?w=`>=${_}.0.0${c} <${+_+1}.0.0-0`:zS(x)?_==="0"?w=`>=${_}.${g}.0${c} <${_}.${+g+1}.0-0`:w=`>=${_}.${g}.0${c} <${+_+1}.0.0-0`:I?(gm("replaceCaret pr",I),_==="0"?g==="0"?w=`>=${_}.${g}.${x}-${I} <${_}.${g}.${+x+1}-0`:w=`>=${_}.${g}.${x}-${I} <${_}.${+g+1}.0-0`:w=`>=${_}.${g}.${x}-${I} <${+_+1}.0.0-0`):(gm("no pr"),_==="0"?g==="0"?w=`>=${_}.${g}.${x}${c} <${_}.${g}.${+x+1}-0`:w=`>=${_}.${g}.${x}${c} <${_}.${+g+1}.0-0`:w=`>=${_}.${g}.${x} <${+_+1}.0.0-0`),gm("caret return",w),w})},Xur=(n,r)=>(gm("replaceXRanges",n,r),n.split(/\s+/).map(i=>Yur(i,r)).join(" ")),Yur=(n,r)=>{n=n.trim();let i=r.loose?vx[WS.XRANGELOOSE]:vx[WS.XRANGE];return n.replace(i,(c,u,_,g,x,I)=>{gm("xRange",n,c,u,_,g,x,I);let w=zS(_),M=w||zS(g),U=M||zS(x),Q=U;return u==="="&&Q&&(u=""),I=r.includePrerelease?"-0":"",w?u===">"||u==="<"?c="<0.0.0-0":c="*":u&&Q?(M&&(g=0),x=0,u===">"?(u=">=",M?(_=+_+1,g=0,x=0):(g=+g+1,x=0)):u==="<="&&(u="<",M?_=+_+1:g=+g+1),u==="<"&&(I="-0"),c=`${u+_}.${g}.${x}${I}`):M?c=`>=${_}.0.0${I} <${+_+1}.0.0-0`:U&&(c=`>=${_}.${g}.0${I} <${_}.${+g+1}.0-0`),gm("xRange return",c),c})},Qur=(n,r)=>(gm("replaceStars",n,r),n.trim().replace(vx[WS.STAR],"")),Kur=(n,r)=>(gm("replaceGTE0",n,r),n.trim().replace(vx[r.includePrerelease?WS.GTE0PRE:WS.GTE0],"")),Zur=n=>(r,i,c,u,_,g,x,I,w,M,U,Q)=>(zS(c)?i="":zS(u)?i=`>=${c}.0.0${n?"-0":""}`:zS(_)?i=`>=${c}.${u}.0${n?"-0":""}`:g?i=`>=${i}`:i=`>=${i}${n?"-0":""}`,zS(w)?I="":zS(M)?I=`<${+w+1}.0.0-0`:zS(U)?I=`<${w}.${+M+1}.0-0`:Q?I=`<=${w}.${M}.${U}-${Q}`:n?I=`<${w}.${M}.${+U+1}-0`:I=`<=${I}`,`${i} ${I}`.trim()),efr=(n,r,i)=>{for(let c=0;c<n.length;c++)if(!n[c].test(r))return!1;if(r.prerelease.length&&!i.includePrerelease){for(let c=0;c<n.length;c++)if(gm(n[c].semver),n[c].semver!==ALe.ANY&&n[c].semver.prerelease.length>0){let u=n[c].semver;if(u.major===r.major&&u.minor===r.minor&&u.patch===r.patch)return!0}return!1}return!0}});var Une=Ve((nGr,Tmt)=>{var Vne=Symbol("SemVer ANY"),PLe=class n{static get ANY(){return Vne}constructor(r,i){if(i=vmt(i),r instanceof n){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),kLe("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===Vne?this.value="":this.value=this.operator+this.semver.version,kLe("comp",this)}parse(r){let i=this.options.loose?bmt[Smt.COMPARATORLOOSE]:bmt[Smt.COMPARATOR],c=r.match(i);if(!c)throw new TypeError(`Invalid comparator: ${r}`);this.operator=c[1]!==void 0?c[1]:"",this.operator==="="&&(this.operator=""),c[2]?this.semver=new Dmt(c[2],this.options.loose):this.semver=Vne}toString(){return this.value}test(r){if(kLe("Comparator.test",r,this.options.loose),this.semver===Vne||r===Vne)return!0;if(typeof r=="string")try{r=new Dmt(r,this.options)}catch{return!1}return wLe(r,this.operator,this.semver,this.options)}intersects(r,i){if(!(r instanceof n))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new xmt(r.value,i).test(this.value):r.operator===""?r.value===""?!0:new xmt(this.value,i).test(r.semver):(i=vmt(i),i.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0")||!i.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&r.operator.startsWith(">")||this.operator.startsWith("<")&&r.operator.startsWith("<")||this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("=")||wLe(this.semver,"<",r.semver,i)&&this.operator.startsWith(">")&&r.operator.startsWith("<")||wLe(this.semver,">",r.semver,i)&&this.operator.startsWith("<")&&r.operator.startsWith(">")))}};Tmt.exports=PLe;var vmt=qve(),{safeRe:bmt,t:Smt}=vz(),wLe=CLe(),kLe=$ne(),Dmt=bb(),xmt=ZC()});var Wne=Ve((iGr,Cmt)=>{var tfr=ZC(),rfr=(n,r,i)=>{try{r=new tfr(r,i)}catch{return!1}return r.test(n)};Cmt.exports=rfr});var Imt=Ve((sGr,Emt)=>{var nfr=ZC(),ifr=(n,r)=>new nfr(n,r).set.map(i=>i.map(c=>c.value).join(" ").trim().split(" "));Emt.exports=ifr});var wmt=Ve((aGr,Amt)=>{var sfr=bb(),afr=ZC(),ofr=(n,r,i)=>{let c=null,u=null,_=null;try{_=new afr(r,i)}catch{return null}return n.forEach(g=>{_.test(g)&&(!c||u.compare(g)===-1)&&(c=g,u=new sfr(c,i))}),c};Amt.exports=ofr});var Pmt=Ve((oGr,kmt)=>{var cfr=bb(),lfr=ZC(),ufr=(n,r,i)=>{let c=null,u=null,_=null;try{_=new lfr(r,i)}catch{return null}return n.forEach(g=>{_.test(g)&&(!c||u.compare(g)===1)&&(c=g,u=new cfr(c,i))}),c};kmt.exports=ufr});var Fmt=Ve((cGr,Omt)=>{var NLe=bb(),ffr=ZC(),Nmt=Jne(),pfr=(n,r)=>{n=new ffr(n,r);let i=new NLe("0.0.0");if(n.test(i)||(i=new NLe("0.0.0-0"),n.test(i)))return i;i=null;for(let c=0;c<n.set.length;++c){let u=n.set[c],_=null;u.forEach(g=>{let x=new NLe(g.semver.version);switch(g.operator){case">":x.prerelease.length===0?x.patch++:x.prerelease.push(0),x.raw=x.format();case"":case">=":(!_||Nmt(x,_))&&(_=x);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${g.operator}`)}}),_&&(!i||Nmt(i,_))&&(i=_)}return i&&n.test(i)?i:null};Omt.exports=pfr});var Mmt=Ve((lGr,Rmt)=>{var _fr=ZC(),dfr=(n,r)=>{try{return new _fr(n,r).range||"*"}catch{return null}};Rmt.exports=dfr});var Xve=Ve((uGr,qmt)=>{var mfr=bb(),Bmt=Une(),{ANY:gfr}=Bmt,hfr=ZC(),yfr=Wne(),Lmt=Jne(),jmt=Vve(),vfr=zve(),bfr=Wve(),Sfr=(n,r,i,c)=>{n=new mfr(n,c),r=new hfr(r,c);let u,_,g,x,I;switch(i){case">":u=Lmt,_=vfr,g=jmt,x=">",I=">=";break;case"<":u=jmt,_=bfr,g=Lmt,x="<",I="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(yfr(n,r,c))return!1;for(let w=0;w<r.set.length;++w){let M=r.set[w],U=null,Q=null;if(M.forEach(ae=>{ae.semver===gfr&&(ae=new Bmt(">=0.0.0")),U=U||ae,Q=Q||ae,u(ae.semver,U.semver,c)?U=ae:g(ae.semver,Q.semver,c)&&(Q=ae)}),U.operator===x||U.operator===I||(!Q.operator||Q.operator===x)&&_(n,Q.semver))return!1;if(Q.operator===I&&g(n,Q.semver))return!1}return!0};qmt.exports=Sfr});var Jmt=Ve((fGr,$mt)=>{var Dfr=Xve(),xfr=(n,r,i)=>Dfr(n,r,">",i);$mt.exports=xfr});var Vmt=Ve((pGr,Umt)=>{var Tfr=Xve(),Cfr=(n,r,i)=>Tfr(n,r,"<",i);Umt.exports=Cfr});var Gmt=Ve((_Gr,zmt)=>{var Wmt=ZC(),Efr=(n,r,i)=>(n=new Wmt(n,i),r=new Wmt(r,i),n.intersects(r,i));zmt.exports=Efr});var Xmt=Ve((dGr,Hmt)=>{var Ifr=Wne(),Afr=KC();Hmt.exports=(n,r,i)=>{let c=[],u=null,_=null,g=n.sort((M,U)=>Afr(M,U,i));for(let M of g)Ifr(M,r,i)?(_=M,u||(u=M)):(_&&c.push([u,_]),_=null,u=null);u&&c.push([u,null]);let x=[];for(let[M,U]of c)M===U?x.push(M):!U&&M===g[0]?x.push("*"):U?M===g[0]?x.push(`<=${U}`):x.push(`${M} - ${U}`):x.push(`>=${M}`);let I=x.join(" || "),w=typeof r.raw=="string"?r.raw:String(r);return I.length<w.length?I:r}});var tgt=Ve((mGr,egt)=>{var Ymt=ZC(),FLe=Une(),{ANY:OLe}=FLe,zne=Wne(),RLe=KC(),wfr=(n,r,i={})=>{if(n===r)return!0;n=new Ymt(n,i),r=new Ymt(r,i);let c=!1;e:for(let u of n.set){for(let _ of r.set){let g=Pfr(u,_,i);if(c=c||g!==null,g)continue e}if(c)return!1}return!0},kfr=[new FLe(">=0.0.0-0")],Qmt=[new FLe(">=0.0.0")],Pfr=(n,r,i)=>{if(n===r)return!0;if(n.length===1&&n[0].semver===OLe){if(r.length===1&&r[0].semver===OLe)return!0;i.includePrerelease?n=kfr:n=Qmt}if(r.length===1&&r[0].semver===OLe){if(i.includePrerelease)return!0;r=Qmt}let c=new Set,u,_;for(let ae of n)ae.operator===">"||ae.operator===">="?u=Kmt(u,ae,i):ae.operator==="<"||ae.operator==="<="?_=Zmt(_,ae,i):c.add(ae.semver);if(c.size>1)return null;let g;if(u&&_){if(g=RLe(u.semver,_.semver,i),g>0)return null;if(g===0&&(u.operator!==">="||_.operator!=="<="))return null}for(let ae of c){if(u&&!zne(ae,String(u),i)||_&&!zne(ae,String(_),i))return null;for(let de of r)if(!zne(ae,String(de),i))return!1;return!0}let x,I,w,M,U=_&&!i.includePrerelease&&_.semver.prerelease.length?_.semver:!1,Q=u&&!i.includePrerelease&&u.semver.prerelease.length?u.semver:!1;U&&U.prerelease.length===1&&_.operator==="<"&&U.prerelease[0]===0&&(U=!1);for(let ae of r){if(M=M||ae.operator===">"||ae.operator===">=",w=w||ae.operator==="<"||ae.operator==="<=",u){if(Q&&ae.semver.prerelease&&ae.semver.prerelease.length&&ae.semver.major===Q.major&&ae.semver.minor===Q.minor&&ae.semver.patch===Q.patch&&(Q=!1),ae.operator===">"||ae.operator===">="){if(x=Kmt(u,ae,i),x===ae&&x!==u)return!1}else if(u.operator===">="&&!zne(u.semver,String(ae),i))return!1}if(_){if(U&&ae.semver.prerelease&&ae.semver.prerelease.length&&ae.semver.major===U.major&&ae.semver.minor===U.minor&&ae.semver.patch===U.patch&&(U=!1),ae.operator==="<"||ae.operator==="<="){if(I=Zmt(_,ae,i),I===ae&&I!==_)return!1}else if(_.operator==="<="&&!zne(_.semver,String(ae),i))return!1}if(!ae.operator&&(_||u)&&g!==0)return!1}return!(u&&w&&!_&&g!==0||_&&M&&!u&&g!==0||Q||U)},Kmt=(n,r,i)=>{if(!n)return r;let c=RLe(n.semver,r.semver,i);return c>0?n:c<0||r.operator===">"&&n.operator===">="?r:n},Zmt=(n,r,i)=>{if(!n)return r;let c=RLe(n.semver,r.semver,i);return c<0?n:c>0||r.operator==="<"&&n.operator==="<="?r:n};egt.exports=wfr});var sgt=Ve((gGr,igt)=>{var MLe=vz(),rgt=qne(),Nfr=bb(),ngt=SLe(),Ofr=B9(),Ffr=wdt(),Rfr=Pdt(),Mfr=Fdt(),Lfr=Ldt(),jfr=Bdt(),Bfr=$dt(),qfr=Udt(),$fr=Wdt(),Jfr=KC(),Ufr=Xdt(),Vfr=Qdt(),Wfr=Uve(),zfr=tmt(),Gfr=nmt(),Hfr=Jne(),Xfr=Vve(),Yfr=xLe(),Qfr=TLe(),Kfr=Wve(),Zfr=zve(),epr=CLe(),tpr=pmt(),rpr=Une(),npr=ZC(),ipr=Wne(),spr=Imt(),apr=wmt(),opr=Pmt(),cpr=Fmt(),lpr=Mmt(),upr=Xve(),fpr=Jmt(),ppr=Vmt(),_pr=Gmt(),dpr=Xmt(),mpr=tgt();igt.exports={parse:Ofr,valid:Ffr,clean:Rfr,inc:Mfr,diff:Lfr,major:jfr,minor:Bfr,patch:qfr,prerelease:$fr,compare:Jfr,rcompare:Ufr,compareLoose:Vfr,compareBuild:Wfr,sort:zfr,rsort:Gfr,gt:Hfr,lt:Xfr,eq:Yfr,neq:Qfr,gte:Kfr,lte:Zfr,cmp:epr,coerce:tpr,Comparator:rpr,Range:npr,satisfies:ipr,toComparators:spr,maxSatisfying:apr,minSatisfying:opr,minVersion:cpr,validRange:lpr,outside:upr,gtr:fpr,ltr:ppr,intersects:_pr,simplifyRange:dpr,subset:mpr,SemVer:Nfr,re:MLe.re,src:MLe.src,tokens:MLe.t,SEMVER_SPEC_VERSION:rgt.SEMVER_SPEC_VERSION,RELEASE_TYPES:rgt.RELEASE_TYPES,compareIdentifiers:ngt.compareIdentifiers,rcompareIdentifiers:ngt.rcompareIdentifiers}});var _P=Ve(CF=>{"use strict";Object.defineProperty(CF,"__esModule",{value:!0});CF.fileExists=CF.dirExists=void 0;CF.readJson=agt;CF.safeReadJson=bpr;CF.existsSync=Spr;var gpr=require("node:fs"),BLe=require("node:fs/promises"),hpr=Ty(),ypr=async n=>{let r;try{r=await(0,BLe.stat)(n)}catch{throw new Error(`No directory found at ${n}`)}if(!r.isDirectory())throw new Error(`${n} exists but is not a directory`);return n};CF.dirExists=ypr;var vpr=async n=>{let r;try{r=await(0,BLe.stat)(n)}catch{throw new Error(`No file found at ${n}`)}if(!r.isFile())throw new Error(`${n} exists but is not a file`);return n};CF.fileExists=vpr;var jLe=class extends Map{set(r,i){return((0,hpr.isProd)()??!1)&&super.set(r,i),this}},LLe=new jLe;async function agt(n,r=!0){if(r&&LLe.has(n))return JSON.parse(LLe.get(n));let i=await(0,BLe.readFile)(n,"utf8");return LLe.set(n,i),JSON.parse(i)}async function bpr(n,r=!0){try{return await agt(n,r)}catch{}}function Spr(n){return(0,gpr.existsSync)(n)}});var cgt=Ve(GS=>{"use strict";Object.defineProperty(GS,"__esModule",{value:!0});GS.string=GS.url=GS.file=GS.directory=GS.integer=GS.boolean=void 0;GS.custom=q9;var Dpr=require("node:url"),ogt=_P(),xpr=Ty();function q9(n){return(r={})=>({parse:async(i,c,u)=>i,...n,...r,input:[],type:"option"})}GS.boolean=q9({parse:async n=>!!n&&(0,xpr.isNotFalsy)(n)});GS.integer=q9({async parse(n,r,i){if(!/^-?\d+$/.test(n))throw new Error(`Expected an integer but received: ${n}`);let c=Number.parseInt(n,10);if(i.min!==void 0&&c<i.min)throw new Error(`Expected an integer greater than or equal to ${i.min} but received: ${n}`);if(i.max!==void 0&&c>i.max)throw new Error(`Expected an integer less than or equal to ${i.max} but received: ${n}`);return c}});GS.directory=q9({async parse(n,r,i){return i.exists?(0,ogt.dirExists)(n):n}});GS.file=q9({async parse(n,r,i){return i.exists?(0,ogt.fileExists)(n):n}});GS.url=q9({async parse(n){try{return new Dpr.URL(n)}catch{throw new Error(`Expected a valid url but received: ${n}`)}}});var Tpr=q9({});GS.string=Tpr});var lgt=Ve((vGr,Cpr)=>{Cpr.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.2.6",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.10.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.0",ejs:"^3.1.10","get-package-type":"^0.1.0",globby:"^11.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^9.0.5",semver:"^7.6.3","string-width":"^4.2.3","supports-color":"^8","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.2.5","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^10.8.2",nyc:"^15.1.0",prettier:"^3.4.2",shx:"^0.3.4",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.31.2",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var gA=Ve($Le=>{"use strict";Object.defineProperty($Le,"__esModule",{value:!0});var Epr=require("node:fs"),Ipr=require("node:path"),qLe=class n extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return n.instance||(n.instance=new n),n.instance}get(r){return super.get(r)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:lgt().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,Epr.readFileSync)((0,Ipr.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};$Le.default=qLe});var fgt=Ve(eE=>{"use strict";var Apr=/[|\\{}()[\]^$+*?.]/g,wpr=Object.prototype.hasOwnProperty,JLe=function(n,r){return wpr.apply(n,[r])};eE.escapeRegExpChars=function(n){return n?String(n).replace(Apr,"\\$&"):""};var kpr={"&":"&","<":"<",">":">",'"':""","'":"'"},Ppr=/[&<>'"]/g;function Npr(n){return kpr[n]||n}var Opr=`var _ENCODE_HTML_RULES = {
"&": "&"
, "<": "<"
, ">": ">"
, '"': """
, "'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(c) {
return _ENCODE_HTML_RULES[c] || c;
};
`;eE.escapeXML=function(n){return n==null?"":String(n).replace(Ppr,Npr)};function ugt(){return Function.prototype.toString.call(this)+`;
`+Opr}try{typeof Object.defineProperty=="function"?Object.defineProperty(eE.escapeXML,"toString",{value:ugt}):eE.escapeXML.toString=ugt}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}eE.shallowCopy=function(n,r){if(r=r||{},n!=null)for(var i in r)JLe(r,i)&&(i==="__proto__"||i==="constructor"||(n[i]=r[i]));return n};eE.shallowCopyFromList=function(n,r,i){if(i=i||[],r=r||{},n!=null)for(var c=0;c<i.length;c++){var u=i[c];if(typeof r[u]<"u"){if(!JLe(r,u)||u==="__proto__"||u==="constructor")continue;n[u]=r[u]}}return n};eE.cache={_data:{},set:function(n,r){this._data[n]=r},get:function(n){return this._data[n]},remove:function(n){delete this._data[n]},reset:function(){this._data={}}};eE.hyphenToCamel=function(n){return n.replace(/-[a-z]/g,function(r){return r[1].toUpperCase()})};eE.createNullProtoObjWherePossible=(function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}})();eE.hasOwnOnlyObject=function(n){var r=eE.createNullProtoObjWherePossible();for(var i in n)JLe(n,i)&&(r[i]=n[i]);return r}});var pgt=Ve((DGr,Fpr)=>{Fpr.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var WLe=Ve(r_=>{"use strict";var VLe=require("fs"),Gne=require("path"),zh=fgt(),_gt=!1,Rpr=pgt().version,Mpr="<",Lpr=">",jpr="%",vgt="locals",Bpr="ejs",qpr="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",bgt=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],$pr=bgt.concat("cache"),dgt=/^\uFEFF/,ULe=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;r_.cache=zh.cache;r_.fileLoader=VLe.readFileSync;r_.localsName=vgt;r_.promiseImpl=new Function("return this;")().Promise;r_.resolveInclude=function(n,r,i){var c=Gne.dirname,u=Gne.extname,_=Gne.resolve,g=_(i?r:c(r),n),x=u(n);return x||(g+=".ejs"),g};function mgt(n,r){var i;if(r.some(function(c){return i=r_.resolveInclude(n,c,!0),VLe.existsSync(i)}))return i}function Jpr(n,r){var i,c,u=r.views,_=/^[A-Za-z]+:\\|^\//.exec(n);if(_&&_.length)n=n.replace(/^\/*/,""),Array.isArray(r.root)?i=mgt(n,r.root):i=r_.resolveInclude(n,r.root||"/",!0);else if(r.filename&&(c=r_.resolveInclude(n,r.filename),VLe.existsSync(c)&&(i=c)),!i&&Array.isArray(u)&&(i=mgt(n,u)),!i&&typeof r.includer!="function")throw new Error('Could not find the include file "'+r.escapeFunction(n)+'"');return i}function Hne(n,r){var i,c=n.filename,u=arguments.length>1;if(n.cache){if(!c)throw new Error("cache option requires a filename");if(i=r_.cache.get(c),i)return i;u||(r=ggt(c).toString().replace(dgt,""))}else if(!u){if(!c)throw new Error("Internal EJS error: no file name or template provided");r=ggt(c).toString().replace(dgt,"")}return i=r_.compile(r,n),n.cache&&r_.cache.set(c,i),i}function Upr(n,r,i){var c;if(i){try{c=Hne(n)(r)}catch(u){return i(u)}i(null,c)}else{if(typeof r_.promiseImpl=="function")return new r_.promiseImpl(function(u,_){try{c=Hne(n)(r),u(c)}catch(g){_(g)}});throw new Error("Please provide a callback function")}}function ggt(n){return r_.fileLoader(n)}function Vpr(n,r){var i=zh.shallowCopy(zh.createNullProtoObjWherePossible(),r);if(i.filename=Jpr(n,i),typeof r.includer=="function"){var c=r.includer(n,i.filename);if(c&&(c.filename&&(i.filename=c.filename),c.template))return Hne(i,c.template)}return Hne(i)}function hgt(n,r,i,c,u){var _=r.split(`
`),g=Math.max(c-3,0),x=Math.min(_.length,c+3),I=u(i),w=_.slice(g,x).map(function(M,U){var Q=U+g+1;return(Q==c?" >> ":" ")+Q+"| "+M}).join(`
`);throw n.path=I,n.message=(I||"ejs")+":"+c+`
`+w+`
`+n.message,n}function ygt(n){return n.replace(/;(\s*$)/,"$1")}r_.compile=function(r,i){var c;return i&&i.scope&&(_gt||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),_gt=!0),i.context||(i.context=i.scope),delete i.scope),c=new _0(r,i),c.compile()};r_.render=function(n,r,i){var c=r||zh.createNullProtoObjWherePossible(),u=i||zh.createNullProtoObjWherePossible();return arguments.length==2&&zh.shallowCopyFromList(u,c,bgt),Hne(u,n)(c)};r_.renderFile=function(){var n=Array.prototype.slice.call(arguments),r=n.shift(),i,c={filename:r},u,_;return typeof arguments[arguments.length-1]=="function"&&(i=n.pop()),n.length?(u=n.shift(),n.length?zh.shallowCopy(c,n.pop()):(u.settings&&(u.settings.views&&(c.views=u.settings.views),u.settings["view cache"]&&(c.cache=!0),_=u.settings["view options"],_&&zh.shallowCopy(c,_)),zh.shallowCopyFromList(c,u,$pr)),c.filename=r):u=zh.createNullProtoObjWherePossible(),Upr(c,u,i)};r_.Template=_0;r_.clearCache=function(){r_.cache.reset()};function _0(n,r){var i=zh.hasOwnOnlyObject(r),c=zh.createNullProtoObjWherePossible();this.templateText=n,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",c.client=i.client||!1,c.escapeFunction=i.escape||i.escapeFunction||zh.escapeXML,c.compileDebug=i.compileDebug!==!1,c.debug=!!i.debug,c.filename=i.filename,c.openDelimiter=i.openDelimiter||r_.openDelimiter||Mpr,c.closeDelimiter=i.closeDelimiter||r_.closeDelimiter||Lpr,c.delimiter=i.delimiter||r_.delimiter||jpr,c.strict=i.strict||!1,c.context=i.context,c.cache=i.cache||!1,c.rmWhitespace=i.rmWhitespace,c.root=i.root,c.includer=i.includer,c.outputFunctionName=i.outputFunctionName,c.localsName=i.localsName||r_.localsName||vgt,c.views=i.views,c.async=i.async,c.destructuredLocals=i.destructuredLocals,c.legacyInclude=typeof i.legacyInclude<"u"?!!i.legacyInclude:!0,c.strict?c._with=!1:c._with=typeof i._with<"u"?i._with:!0,this.opts=c,this.regex=this.createRegex()}_0.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};_0.prototype={createRegex:function(){var n=qpr,r=zh.escapeRegExpChars(this.opts.delimiter),i=zh.escapeRegExpChars(this.opts.openDelimiter),c=zh.escapeRegExpChars(this.opts.closeDelimiter);return n=n.replace(/%/g,r).replace(/</g,i).replace(/>/g,c),new RegExp(n)},compile:function(){var n,r,i=this.opts,c="",u="",_=i.escapeFunction,g,x=i.filename?JSON.stringify(i.filename):"undefined";if(!this.source){if(this.generateSource(),c+=` var __output = "";
function __append(s) { if (s !== undefined && s !== null) __output += s }
`,i.outputFunctionName){if(!ULe.test(i.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");c+=" var "+i.outputFunctionName+` = __append;
`}if(i.localsName&&!ULe.test(i.localsName))throw new Error("localsName is not a valid JS identifier.");if(i.destructuredLocals&&i.destructuredLocals.length){for(var I=" var __locals = ("+i.localsName+` || {}),
`,w=0;w<i.destructuredLocals.length;w++){var M=i.destructuredLocals[w];if(!ULe.test(M))throw new Error("destructuredLocals["+w+"] is not a valid JS identifier.");w>0&&(I+=`,
`),I+=M+" = __locals."+M}c+=I+`;
`}i._with!==!1&&(c+=" with ("+i.localsName+` || {}) {
`,u+=` }
`),u+=` return __output;
`,this.source=c+this.source+u}i.compileDebug?n=`var __line = 1
, __lines = `+JSON.stringify(this.templateText)+`
, __filename = `+x+`;
try {
`+this.source+`} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn);
}
`:n=this.source,i.client&&(n="escapeFn = escapeFn || "+_.toString()+`;
`+n,i.compileDebug&&(n="rethrow = rethrow || "+hgt.toString()+`;
`+n)),i.strict&&(n=`"use strict";
`+n),i.debug&&console.log(n),i.compileDebug&&i.filename&&(n=n+`
//# sourceURL=`+x+`
`);try{if(i.async)try{g=new Function("return (async function(){}).constructor;")()}catch(de){throw de instanceof SyntaxError?new Error("This environment does not support async/await"):de}else g=Function;r=new g(i.localsName+", escapeFn, include, rethrow",n)}catch(de){throw de instanceof SyntaxError&&(i.filename&&(de.message+=" in "+i.filename),de.message+=` while compiling ejs
`,de.message+=`If the above error is not helpful, you may want to try EJS-Lint:
`,de.message+="https://github.com/RyanZim/EJS-Lint",i.async||(de.message+=`
`,de.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),de}var U=i.client?r:function(Ae){var Xe=function(He,nt){var yt=zh.shallowCopy(zh.createNullProtoObjWherePossible(),Ae);return nt&&(yt=zh.shallowCopy(yt,nt)),Vpr(He,i)(yt)};return r.apply(i.context,[Ae||zh.createNullProtoObjWherePossible(),_,Xe,hgt])};if(i.filename&&typeof Object.defineProperty=="function"){var Q=i.filename,ae=Gne.basename(Q,Gne.extname(Q));try{Object.defineProperty(U,"name",{value:ae,writable:!1,enumerable:!1,configurable:!0})}catch{}}return U},generateSource:function(){var n=this.opts;n.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
`).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replac