create-expo 3.1.2 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/index.js +10 -10
  2. package/package.json +2 -2
package/build/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- (()=>{var __webpack_modules__={4971:(t,r,i)=>{"use strict";t=i.nmd(t);const o=i(2830);const wrapAnsi16=(t,r)=>function(){const i=t.apply(o,arguments);return`[${i+r}m`};const wrapAnsi256=(t,r)=>function(){const i=t.apply(o,arguments);return`[${38+r};5;${i}m`};const wrapAnsi16m=(t,r)=>function(){const i=t.apply(o,arguments);return`[${38+r};2;${i[0]};${i[1]};${i[2]}m`};function assembleStyles(){const t=new Map;const r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.grey=r.color.gray;for(const i of Object.keys(r)){const o=r[i];for(const i of Object.keys(o)){const a=o[i];r[i]={open:`[${a[0]}m`,close:`[${a[1]}m`};o[i]=r[i];t.set(a[0],a[1])}Object.defineProperty(r,i,{value:o,enumerable:false});Object.defineProperty(r,"codes",{value:t,enumerable:false})}const ansi2ansi=t=>t;const rgb2rgb=(t,r,i)=>[t,r,i];r.color.close="";r.bgColor.close="";r.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};r.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};r.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};r.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};r.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};r.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let t of Object.keys(o)){if(typeof o[t]!=="object"){continue}const i=o[t];if(t==="ansi16"){t="ansi"}if("ansi16"in i){r.color.ansi[t]=wrapAnsi16(i.ansi16,0);r.bgColor.ansi[t]=wrapAnsi16(i.ansi16,10)}if("ansi256"in i){r.color.ansi256[t]=wrapAnsi256(i.ansi256,0);r.bgColor.ansi256[t]=wrapAnsi256(i.ansi256,10)}if("rgb"in i){r.color.ansi16m[t]=wrapAnsi16m(i.rgb,0);r.bgColor.ansi16m[t]=wrapAnsi16m(i.rgb,10)}}return r}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},6870:(t,r,i)=>{"use strict";const o=i(5978);const a=i(4971);const u=i(1851).stdout;const l=i(6094);const h=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const p=["ansi","ansi","ansi256","ansi16m"];const d=new Set(["gray"]);const m=Object.create(null);function applyOptions(t,r){r=r||{};const i=u?u.level:0;t.level=r.level===undefined?i:r.level;t.enabled="enabled"in r?r.enabled:t.level>0}function Chalk(t){if(!this||!(this instanceof Chalk)||this.template){const r={};applyOptions(r,t);r.template=function(){const t=[].slice.call(arguments);return chalkTag.apply(null,[r.template].concat(t))};Object.setPrototypeOf(r,Chalk.prototype);Object.setPrototypeOf(r.template,r);r.template.constructor=Chalk;return r.template}applyOptions(this,t)}if(h){a.blue.open=""}for(const t of Object.keys(a)){a[t].closeRe=new RegExp(o(a[t].close),"g");m[t]={get(){const r=a[t];return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}}m.visible={get(){return build.call(this,this._styles||[],true,"visible")}};a.color.closeRe=new RegExp(o(a.color.close),"g");for(const t of Object.keys(a.color.ansi)){if(d.has(t)){continue}m[t]={get(){const r=this.level;return function(){const i=a.color[p[r]][t].apply(null,arguments);const o={open:i,close:a.color.close,closeRe:a.color.closeRe};return build.call(this,this._styles?this._styles.concat(o):[o],this._empty,t)}}}}a.bgColor.closeRe=new RegExp(o(a.bgColor.close),"g");for(const t of Object.keys(a.bgColor.ansi)){if(d.has(t)){continue}const r="bg"+t[0].toUpperCase()+t.slice(1);m[r]={get(){const r=this.level;return function(){const i=a.bgColor[p[r]][t].apply(null,arguments);const o={open:i,close:a.bgColor.close,closeRe:a.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(o):[o],this._empty,t)}}}}const g=Object.defineProperties((()=>{}),m);function build(t,r,i){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=t;builder._empty=r;const o=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return o.level},set(t){o.level=t}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return o.enabled},set(t){o.enabled=t}});builder.hasGrey=this.hasGrey||i==="gray"||i==="grey";builder.__proto__=g;return builder}function applyStyle(){const t=arguments;const r=t.length;let i=String(arguments[0]);if(r===0){return""}if(r>1){for(let o=1;o<r;o++){i+=" "+t[o]}}if(!this.enabled||this.level<=0||!i){return this._empty?"":i}const o=a.dim.open;if(h&&this.hasGrey){a.dim.open=""}for(const t of this._styles.slice().reverse()){i=t.open+i.replace(t.closeRe,t.open)+t.close;i=i.replace(/\r?\n/g,`${t.close}$&${t.open}`)}a.dim.open=o;return i}function chalkTag(t,r){if(!Array.isArray(r)){return[].slice.call(arguments,1).join(" ")}const i=[].slice.call(arguments,2);const o=[r.raw[0]];for(let t=1;t<r.length;t++){o.push(String(i[t-1]).replace(/[{}\\]/g,"\\$&"));o.push(String(r.raw[t]))}return l(t,o.join(""))}Object.defineProperties(Chalk.prototype,m);t.exports=Chalk();t.exports.supportsColor=u;t.exports["default"]=t.exports},6094:t=>{"use strict";const r=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const a=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const u=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(t){if(t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}return u.get(t)||t}function parseArguments(t,r){const i=[];const u=r.trim().split(/\s*,\s*/g);let l;for(const r of u){if(!isNaN(r)){i.push(Number(r))}else if(l=r.match(o)){i.push(l[2].replace(a,((t,r,i)=>r?unescape(r):i)))}else{throw new Error(`Invalid Chalk template style argument: ${r} (in style '${t}')`)}}return i}function parseStyle(t){i.lastIndex=0;const r=[];let o;while((o=i.exec(t))!==null){const t=o[1];if(o[2]){const i=parseArguments(t,o[2]);r.push([t].concat(i))}else{r.push([t])}}return r}function buildStyle(t,r){const i={};for(const t of r){for(const r of t.styles){i[r[0]]=t.inverse?null:r.slice(1)}}let o=t;for(const t of Object.keys(i)){if(Array.isArray(i[t])){if(!(t in o)){throw new Error(`Unknown Chalk style: ${t}`)}if(i[t].length>0){o=o[t].apply(o,i[t])}else{o=o[t]}}}return o}t.exports=(t,i)=>{const o=[];const a=[];let u=[];i.replace(r,((r,i,l,h,p,d)=>{if(i){u.push(unescape(i))}else if(h){const r=u.join("");u=[];a.push(o.length===0?r:buildStyle(t,o)(r));o.push({inverse:l,styles:parseStyle(h)})}else if(p){if(o.length===0){throw new Error("Found extraneous } in Chalk template literal")}a.push(buildStyle(t,o)(u.join("")));u=[];o.pop()}else{u.push(d)}}));a.push(u.join(""));if(o.length>0){const t=`Chalk template literal is missing ${o.length} closing bracket${o.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return a.join("")}},5978:t=>{"use strict";var r=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if(typeof t!=="string"){throw new TypeError("Expected a string")}return t.replace(r,"\\$&")}},6966:t=>{"use strict";t.exports=(t,r)=>{r=r||process.argv;const i=t.startsWith("-")?"":t.length===1?"-":"--";const o=r.indexOf(i+t);const a=r.indexOf("--");return o!==-1&&(a===-1?true:o<a)}},1851:(t,r,i)=>{"use strict";const o=i(2037);const a=i(6966);const u=process.env;let l;if(a("no-color")||a("no-colors")||a("color=false")){l=false}else if(a("color")||a("colors")||a("color=true")||a("color=always")){l=true}if("FORCE_COLOR"in u){l=u.FORCE_COLOR.length===0||parseInt(u.FORCE_COLOR,10)!==0}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t){if(l===false){return 0}if(a("color=16m")||a("color=full")||a("color=truecolor")){return 3}if(a("color=256")){return 2}if(t&&!t.isTTY&&l!==true){return 0}const r=l?1:0;if(process.platform==="win32"){const t=o.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in u){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((t=>t in u))||u.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in u){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(u.TEAMCITY_VERSION)?1:0}if(u.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in u){const t=parseInt((u.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(u.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(u.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(u.TERM)){return 1}if("COLORTERM"in u){return 1}if(u.TERM==="dumb"){return r}return r}function getSupportLevel(t){const r=supportsColor(t);return translateLevel(r)}t.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},5642:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const a=o(i(7987));function spawnAsync(t,r,i={}){const o=new Error;const u=o.stack?o.stack.replace(/^.*/," ..."):null;let l;let h=new Promise(((o,h)=>{let{ignoreStdio:p,...d}=i;l=(0,a.default)(t,r,d);let m="";let g="";if(!p){if(l.stdout){l.stdout.on("data",(t=>{m+=t}))}if(l.stderr){l.stderr.on("data",(t=>{g+=t}))}}let completionListener=(i,a)=>{l.removeListener("error",errorListener);let p={pid:l.pid,output:[m,g],stdout:m,stderr:g,status:i,signal:a};if(i!==0){let o=r&&r.length>0?` ${r.join(" ")}`:"";let l=a?new Error(`${t}${o} exited with signal: ${a}`):new Error(`${t}${o} exited with non-zero code: ${i}`);if(l.stack&&u){l.stack+=`\n${u}`}Object.assign(l,p);h(l)}else{o(p)}};let errorListener=t=>{if(p){l.removeListener("exit",completionListener)}else{l.removeListener("close",completionListener)}Object.assign(t,{pid:l.pid,output:[m,g],stdout:m,stderr:g,status:null,signal:null});h(t)};if(p){l.once("exit",completionListener)}else{l.once("close",completionListener)}l.once("error",errorListener)}));h.child=l;return h}t.exports=spawnAsync},1088:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createFileSystemAdapter=r.FILE_SYSTEM_ADAPTER=void 0;const o=i(7147);r.FILE_SYSTEM_ADAPTER={lstat:o.lstat,stat:o.stat,lstatSync:o.lstatSync,statSync:o.statSync,readdir:o.readdir,readdirSync:o.readdirSync};function createFileSystemAdapter(t){if(t===undefined){return r.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},r.FILE_SYSTEM_ADAPTER),t)}r.createFileSystemAdapter=createFileSystemAdapter},4919:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const i=process.versions.node.split(".");if(i[0]===undefined||i[1]===undefined){throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`)}const o=Number.parseInt(i[0],10);const a=Number.parseInt(i[1],10);const u=10;const l=10;const h=o>u;const p=o===u&&a>=l;r.IS_SUPPORT_READDIR_WITH_FILE_TYPES=h||p},7552:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Settings=r.scandirSync=r.scandir=void 0;const o=i(7091);const a=i(1328);const u=i(3022);r.Settings=u.default;function scandir(t,r,i){if(typeof r==="function"){o.read(t,getSettings(),r);return}o.read(t,getSettings(r),i)}r.scandir=scandir;function scandirSync(t,r){const i=getSettings(r);return a.read(t,i)}r.scandirSync=scandirSync;function getSettings(t={}){if(t instanceof u.default){return t}return new u.default(t)}},7091:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.readdir=r.readdirWithFileTypes=r.read=void 0;const o=i(2580);const a=i(1188);const u=i(4919);const l=i(1210);const h=i(4845);function read(t,r,i){if(!r.stats&&u.IS_SUPPORT_READDIR_WITH_FILE_TYPES){readdirWithFileTypes(t,r,i);return}readdir(t,r,i)}r.read=read;function readdirWithFileTypes(t,r,i){r.fs.readdir(t,{withFileTypes:true},((o,u)=>{if(o!==null){callFailureCallback(i,o);return}const l=u.map((i=>({dirent:i,name:i.name,path:h.joinPathSegments(t,i.name,r.pathSegmentSeparator)})));if(!r.followSymbolicLinks){callSuccessCallback(i,l);return}const p=l.map((t=>makeRplTaskEntry(t,r)));a(p,((t,r)=>{if(t!==null){callFailureCallback(i,t);return}callSuccessCallback(i,r)}))}))}r.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(t,r){return i=>{if(!t.dirent.isSymbolicLink()){i(null,t);return}r.fs.stat(t.path,((o,a)=>{if(o!==null){if(r.throwErrorOnBrokenSymbolicLink){i(o);return}i(null,t);return}t.dirent=l.fs.createDirentFromStats(t.name,a);i(null,t)}))}}function readdir(t,r,i){r.fs.readdir(t,((u,p)=>{if(u!==null){callFailureCallback(i,u);return}const d=p.map((i=>{const a=h.joinPathSegments(t,i,r.pathSegmentSeparator);return t=>{o.stat(a,r.fsStatSettings,((o,u)=>{if(o!==null){t(o);return}const h={name:i,path:a,dirent:l.fs.createDirentFromStats(i,u)};if(r.stats){h.stats=u}t(null,h)}))}}));a(d,((t,r)=>{if(t!==null){callFailureCallback(i,t);return}callSuccessCallback(i,r)}))}))}r.readdir=readdir;function callFailureCallback(t,r){t(r)}function callSuccessCallback(t,r){t(null,r)}},4845:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.joinPathSegments=void 0;function joinPathSegments(t,r,i){if(t.endsWith(i)){return t+r}return t+i+r}r.joinPathSegments=joinPathSegments},1328:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.readdir=r.readdirWithFileTypes=r.read=void 0;const o=i(2580);const a=i(4919);const u=i(1210);const l=i(4845);function read(t,r){if(!r.stats&&a.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,r)}return readdir(t,r)}r.read=read;function readdirWithFileTypes(t,r){const i=r.fs.readdirSync(t,{withFileTypes:true});return i.map((i=>{const o={dirent:i,name:i.name,path:l.joinPathSegments(t,i.name,r.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&r.followSymbolicLinks){try{const t=r.fs.statSync(o.path);o.dirent=u.fs.createDirentFromStats(o.name,t)}catch(t){if(r.throwErrorOnBrokenSymbolicLink){throw t}}}return o}))}r.readdirWithFileTypes=readdirWithFileTypes;function readdir(t,r){const i=r.fs.readdirSync(t);return i.map((i=>{const a=l.joinPathSegments(t,i,r.pathSegmentSeparator);const h=o.statSync(a,r.fsStatSettings);const p={name:i,path:a,dirent:u.fs.createDirentFromStats(i,h)};if(r.stats){p.stats=h}return p}))}r.readdir=readdir},3022:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1017);const a=i(2580);const u=i(1088);class Settings{constructor(t={}){this._options=t;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=u.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,o.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new a.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!==null&&t!==void 0?t:r}}r["default"]=Settings},7794:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createDirentFromStats=void 0;class DirentFromStats{constructor(t,r){this.name=t;this.isBlockDevice=r.isBlockDevice.bind(r);this.isCharacterDevice=r.isCharacterDevice.bind(r);this.isDirectory=r.isDirectory.bind(r);this.isFIFO=r.isFIFO.bind(r);this.isFile=r.isFile.bind(r);this.isSocket=r.isSocket.bind(r);this.isSymbolicLink=r.isSymbolicLink.bind(r)}}function createDirentFromStats(t,r){return new DirentFromStats(t,r)}r.createDirentFromStats=createDirentFromStats},1210:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fs=void 0;const o=i(7794);r.fs=o},7650:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createFileSystemAdapter=r.FILE_SYSTEM_ADAPTER=void 0;const o=i(7147);r.FILE_SYSTEM_ADAPTER={lstat:o.lstat,stat:o.stat,lstatSync:o.lstatSync,statSync:o.statSync};function createFileSystemAdapter(t){if(t===undefined){return r.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},r.FILE_SYSTEM_ADAPTER),t)}r.createFileSystemAdapter=createFileSystemAdapter},2580:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.statSync=r.stat=r.Settings=void 0;const o=i(5939);const a=i(105);const u=i(2466);r.Settings=u.default;function stat(t,r,i){if(typeof r==="function"){o.read(t,getSettings(),r);return}o.read(t,getSettings(r),i)}r.stat=stat;function statSync(t,r){const i=getSettings(r);return a.read(t,i)}r.statSync=statSync;function getSettings(t={}){if(t instanceof u.default){return t}return new u.default(t)}},5939:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.read=void 0;function read(t,r,i){r.fs.lstat(t,((o,a)=>{if(o!==null){callFailureCallback(i,o);return}if(!a.isSymbolicLink()||!r.followSymbolicLink){callSuccessCallback(i,a);return}r.fs.stat(t,((t,o)=>{if(t!==null){if(r.throwErrorOnBrokenSymbolicLink){callFailureCallback(i,t);return}callSuccessCallback(i,a);return}if(r.markSymbolicLink){o.isSymbolicLink=()=>true}callSuccessCallback(i,o)}))}))}r.read=read;function callFailureCallback(t,r){t(r)}function callSuccessCallback(t,r){t(null,r)}},105:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.read=void 0;function read(t,r){const i=r.fs.lstatSync(t);if(!i.isSymbolicLink()||!r.followSymbolicLink){return i}try{const i=r.fs.statSync(t);if(r.markSymbolicLink){i.isSymbolicLink=()=>true}return i}catch(t){if(!r.throwErrorOnBrokenSymbolicLink){return i}throw t}}r.read=read},2466:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(7650);class Settings{constructor(t={}){this._options=t;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=o.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(t,r){return t!==null&&t!==void 0?t:r}}r["default"]=Settings},803:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Settings=r.walkStream=r.walkSync=r.walk=void 0;const o=i(6887);const a=i(7499);const u=i(6875);const l=i(8265);r.Settings=l.default;function walk(t,r,i){if(typeof r==="function"){new o.default(t,getSettings()).read(r);return}new o.default(t,getSettings(r)).read(i)}r.walk=walk;function walkSync(t,r){const i=getSettings(r);const o=new u.default(t,i);return o.read()}r.walkSync=walkSync;function walkStream(t,r){const i=getSettings(r);const o=new a.default(t,i);return o.read()}r.walkStream=walkStream;function getSettings(t={}){if(t instanceof l.default){return t}return new l.default(t)}},6887:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6203);class AsyncProvider{constructor(t,r){this._root=t;this._settings=r;this._reader=new o.default(this._root,this._settings);this._storage=[]}read(t){this._reader.onError((r=>{callFailureCallback(t,r)}));this._reader.onEntry((t=>{this._storage.push(t)}));this._reader.onEnd((()=>{callSuccessCallback(t,this._storage)}));this._reader.read()}}r["default"]=AsyncProvider;function callFailureCallback(t,r){t(r)}function callSuccessCallback(t,r){t(null,r)}},7499:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(2781);const a=i(6203);class StreamProvider{constructor(t,r){this._root=t;this._settings=r;this._reader=new a.default(this._root,this._settings);this._stream=new o.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError((t=>{this._stream.emit("error",t)}));this._reader.onEntry((t=>{this._stream.push(t)}));this._reader.onEnd((()=>{this._stream.push(null)}));this._reader.read();return this._stream}}r["default"]=StreamProvider},6875:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1214);class SyncProvider{constructor(t,r){this._root=t;this._settings=r;this._reader=new o.default(this._root,this._settings)}read(){return this._reader.read()}}r["default"]=SyncProvider},6203:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(2361);const a=i(7552);const u=i(2696);const l=i(7628);const h=i(3402);class AsyncReader extends h.default{constructor(t,r){super(t,r);this._settings=r;this._scandir=a.scandir;this._emitter=new o.EventEmitter;this._queue=u(this._worker.bind(this),this._settings.concurrency);this._isFatalError=false;this._isDestroyed=false;this._queue.drain=()=>{if(!this._isFatalError){this._emitter.emit("end")}}}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)}));return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){const i={directory:t,base:r};this._queue.push(i,(t=>{if(t!==null){this._handleError(t)}}))}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,((i,o)=>{if(i!==null){r(i,undefined);return}for(const r of o){this._handleEntry(r,t.base)}r(null,undefined)}))}_handleError(t){if(this._isDestroyed||!l.isFatalError(this._settings,t)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",t)}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError){return}const i=t.path;if(r!==undefined){t.path=l.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)}if(l.isAppliedFilter(this._settings.entryFilter,t)){this._emitEntry(t)}if(t.dirent.isDirectory()&&l.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(i,r===undefined?undefined:t.path)}}_emitEntry(t){this._emitter.emit("entry",t)}}r["default"]=AsyncReader},7628:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.joinPathSegments=r.replacePathSegmentSeparator=r.isAppliedFilter=r.isFatalError=void 0;function isFatalError(t,r){if(t.errorFilter===null){return true}return!t.errorFilter(r)}r.isFatalError=isFatalError;function isAppliedFilter(t,r){return t===null||t(r)}r.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(t,r){return t.split(/[/\\]/).join(r)}r.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(t,r,i){if(t===""){return r}if(t.endsWith(i)){return t+r}return t+i+r}r.joinPathSegments=joinPathSegments},3402:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(7628);class Reader{constructor(t,r){this._root=t;this._settings=r;this._root=o.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}}r["default"]=Reader},1214:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(7552);const a=i(7628);const u=i(3402);class SyncReader extends u.default{constructor(){super(...arguments);this._scandir=o.scandirSync;this._storage=[];this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(const t of this._queue.values()){this._handleDirectory(t.directory,t.base)}}_handleDirectory(t,r){try{const i=this._scandir(t,this._settings.fsScandirSettings);for(const t of i){this._handleEntry(t,r)}}catch(t){this._handleError(t)}}_handleError(t){if(!a.isFatalError(this._settings,t)){return}throw t}_handleEntry(t,r){const i=t.path;if(r!==undefined){t.path=a.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)}if(a.isAppliedFilter(this._settings.entryFilter,t)){this._pushToStorage(t)}if(t.dirent.isDirectory()&&a.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(i,r===undefined?undefined:t.path)}}_pushToStorage(t){this._storage.push(t)}}r["default"]=SyncReader},8265:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1017);const a=i(7552);class Settings{constructor(t={}){this._options=t;this.basePath=this._getValue(this._options.basePath,undefined);this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY);this.deepFilter=this._getValue(this._options.deepFilter,null);this.entryFilter=this._getValue(this._options.entryFilter,null);this.errorFilter=this._getValue(this._options.errorFilter,null);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,o.sep);this.fsScandirSettings=new a.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!==null&&t!==void 0?t:r}}r["default"]=Settings},3741:(t,r,i)=>{"use strict";t=i.nmd(t);const wrapAnsi16=(t,r)=>(...i)=>{const o=t(...i);return`[${o+r}m`};const wrapAnsi256=(t,r)=>(...i)=>{const o=t(...i);return`[${38+r};5;${o}m`};const wrapAnsi16m=(t,r)=>(...i)=>{const o=t(...i);return`[${38+r};2;${o[0]};${o[1]};${o[2]}m`};const ansi2ansi=t=>t;const rgb2rgb=(t,r,i)=>[t,r,i];const setLazyProperty=(t,r,i)=>{Object.defineProperty(t,r,{get:()=>{const o=i();Object.defineProperty(t,r,{value:o,enumerable:true,configurable:true});return o},enumerable:true,configurable:true})};let o;const makeDynamicStyles=(t,r,a,u)=>{if(o===undefined){o=i(1593)}const l=u?10:0;const h={};for(const[i,u]of Object.entries(o)){const o=i==="ansi16"?"ansi":i;if(i===r){h[o]=t(a,l)}else if(typeof u==="object"){h[o]=t(u[r],l)}}return h};function assembleStyles(){const t=new Map;const r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.gray=r.color.blackBright;r.bgColor.bgGray=r.bgColor.bgBlackBright;r.color.grey=r.color.blackBright;r.bgColor.bgGrey=r.bgColor.bgBlackBright;for(const[i,o]of Object.entries(r)){for(const[i,a]of Object.entries(o)){r[i]={open:`[${a[0]}m`,close:`[${a[1]}m`};o[i]=r[i];t.set(a[0],a[1])}Object.defineProperty(r,i,{value:o,enumerable:false})}Object.defineProperty(r,"codes",{value:t,enumerable:false});r.color.close="";r.bgColor.close="";setLazyProperty(r.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(r.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(r.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(r.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(r.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(r.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return r}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},7606:(t,r,i)=>{const o=i(9407);const a={};for(const t of Object.keys(o)){a[o[t]]=t}const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=u;for(const t of Object.keys(u)){if(!("channels"in u[t])){throw new Error("missing channels property: "+t)}if(!("labels"in u[t])){throw new Error("missing channel labels property: "+t)}if(u[t].labels.length!==u[t].channels){throw new Error("channel and label counts mismatch: "+t)}const{channels:r,labels:i}=u[t];delete u[t].channels;delete u[t].labels;Object.defineProperty(u[t],"channels",{value:r});Object.defineProperty(u[t],"labels",{value:i})}u.rgb.hsl=function(t){const r=t[0]/255;const i=t[1]/255;const o=t[2]/255;const a=Math.min(r,i,o);const u=Math.max(r,i,o);const l=u-a;let h;let p;if(u===a){h=0}else if(r===u){h=(i-o)/l}else if(i===u){h=2+(o-r)/l}else if(o===u){h=4+(r-i)/l}h=Math.min(h*60,360);if(h<0){h+=360}const d=(a+u)/2;if(u===a){p=0}else if(d<=.5){p=l/(u+a)}else{p=l/(2-u-a)}return[h,p*100,d*100]};u.rgb.hsv=function(t){let r;let i;let o;let a;let u;const l=t[0]/255;const h=t[1]/255;const p=t[2]/255;const d=Math.max(l,h,p);const m=d-Math.min(l,h,p);const diffc=function(t){return(d-t)/6/m+1/2};if(m===0){a=0;u=0}else{u=m/d;r=diffc(l);i=diffc(h);o=diffc(p);if(l===d){a=o-i}else if(h===d){a=1/3+r-o}else if(p===d){a=2/3+i-r}if(a<0){a+=1}else if(a>1){a-=1}}return[a*360,u*100,d*100]};u.rgb.hwb=function(t){const r=t[0];const i=t[1];let o=t[2];const a=u.rgb.hsl(t)[0];const l=1/255*Math.min(r,Math.min(i,o));o=1-1/255*Math.max(r,Math.max(i,o));return[a,l*100,o*100]};u.rgb.cmyk=function(t){const r=t[0]/255;const i=t[1]/255;const o=t[2]/255;const a=Math.min(1-r,1-i,1-o);const u=(1-r-a)/(1-a)||0;const l=(1-i-a)/(1-a)||0;const h=(1-o-a)/(1-a)||0;return[u*100,l*100,h*100,a*100]};function comparativeDistance(t,r){return(t[0]-r[0])**2+(t[1]-r[1])**2+(t[2]-r[2])**2}u.rgb.keyword=function(t){const r=a[t];if(r){return r}let i=Infinity;let u;for(const r of Object.keys(o)){const a=o[r];const l=comparativeDistance(t,a);if(l<i){i=l;u=r}}return u};u.keyword.rgb=function(t){return o[t]};u.rgb.xyz=function(t){let r=t[0]/255;let i=t[1]/255;let o=t[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;const a=r*.4124+i*.3576+o*.1805;const u=r*.2126+i*.7152+o*.0722;const l=r*.0193+i*.1192+o*.9505;return[a*100,u*100,l*100]};u.rgb.lab=function(t){const r=u.rgb.xyz(t);let i=r[0];let o=r[1];let a=r[2];i/=95.047;o/=100;a/=108.883;i=i>.008856?i**(1/3):7.787*i+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;a=a>.008856?a**(1/3):7.787*a+16/116;const l=116*o-16;const h=500*(i-o);const p=200*(o-a);return[l,h,p]};u.hsl.rgb=function(t){const r=t[0]/360;const i=t[1]/100;const o=t[2]/100;let a;let u;let l;if(i===0){l=o*255;return[l,l,l]}if(o<.5){a=o*(1+i)}else{a=o+i-o*i}const h=2*o-a;const p=[0,0,0];for(let t=0;t<3;t++){u=r+1/3*-(t-1);if(u<0){u++}if(u>1){u--}if(6*u<1){l=h+(a-h)*6*u}else if(2*u<1){l=a}else if(3*u<2){l=h+(a-h)*(2/3-u)*6}else{l=h}p[t]=l*255}return p};u.hsl.hsv=function(t){const r=t[0];let i=t[1]/100;let o=t[2]/100;let a=i;const u=Math.max(o,.01);o*=2;i*=o<=1?o:2-o;a*=u<=1?u:2-u;const l=(o+i)/2;const h=o===0?2*a/(u+a):2*i/(o+i);return[r,h*100,l*100]};u.hsv.rgb=function(t){const r=t[0]/60;const i=t[1]/100;let o=t[2]/100;const a=Math.floor(r)%6;const u=r-Math.floor(r);const l=255*o*(1-i);const h=255*o*(1-i*u);const p=255*o*(1-i*(1-u));o*=255;switch(a){case 0:return[o,p,l];case 1:return[h,o,l];case 2:return[l,o,p];case 3:return[l,h,o];case 4:return[p,l,o];case 5:return[o,l,h]}};u.hsv.hsl=function(t){const r=t[0];const i=t[1]/100;const o=t[2]/100;const a=Math.max(o,.01);let u;let l;l=(2-i)*o;const h=(2-i)*a;u=i*a;u/=h<=1?h:2-h;u=u||0;l/=2;return[r,u*100,l*100]};u.hwb.rgb=function(t){const r=t[0]/360;let i=t[1]/100;let o=t[2]/100;const a=i+o;let u;if(a>1){i/=a;o/=a}const l=Math.floor(6*r);const h=1-o;u=6*r-l;if((l&1)!==0){u=1-u}const p=i+u*(h-i);let d;let m;let g;switch(l){default:case 6:case 0:d=h;m=p;g=i;break;case 1:d=p;m=h;g=i;break;case 2:d=i;m=h;g=p;break;case 3:d=i;m=p;g=h;break;case 4:d=p;m=i;g=h;break;case 5:d=h;m=i;g=p;break}return[d*255,m*255,g*255]};u.cmyk.rgb=function(t){const r=t[0]/100;const i=t[1]/100;const o=t[2]/100;const a=t[3]/100;const u=1-Math.min(1,r*(1-a)+a);const l=1-Math.min(1,i*(1-a)+a);const h=1-Math.min(1,o*(1-a)+a);return[u*255,l*255,h*255]};u.xyz.rgb=function(t){const r=t[0]/100;const i=t[1]/100;const o=t[2]/100;let a;let u;let l;a=r*3.2406+i*-1.5372+o*-.4986;u=r*-.9689+i*1.8758+o*.0415;l=r*.0557+i*-.204+o*1.057;a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92;u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92;l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92;a=Math.min(Math.max(0,a),1);u=Math.min(Math.max(0,u),1);l=Math.min(Math.max(0,l),1);return[a*255,u*255,l*255]};u.xyz.lab=function(t){let r=t[0];let i=t[1];let o=t[2];r/=95.047;i/=100;o/=108.883;r=r>.008856?r**(1/3):7.787*r+16/116;i=i>.008856?i**(1/3):7.787*i+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*i-16;const u=500*(r-i);const l=200*(i-o);return[a,u,l]};u.lab.xyz=function(t){const r=t[0];const i=t[1];const o=t[2];let a;let u;let l;u=(r+16)/116;a=i/500+u;l=u-o/200;const h=u**3;const p=a**3;const d=l**3;u=h>.008856?h:(u-16/116)/7.787;a=p>.008856?p:(a-16/116)/7.787;l=d>.008856?d:(l-16/116)/7.787;a*=95.047;u*=100;l*=108.883;return[a,u,l]};u.lab.lch=function(t){const r=t[0];const i=t[1];const o=t[2];let a;const u=Math.atan2(o,i);a=u*360/2/Math.PI;if(a<0){a+=360}const l=Math.sqrt(i*i+o*o);return[r,l,a]};u.lch.lab=function(t){const r=t[0];const i=t[1];const o=t[2];const a=o/360*2*Math.PI;const u=i*Math.cos(a);const l=i*Math.sin(a);return[r,u,l]};u.rgb.ansi16=function(t,r=null){const[i,o,a]=t;let l=r===null?u.rgb.hsv(t)[2]:r;l=Math.round(l/50);if(l===0){return 30}let h=30+(Math.round(a/255)<<2|Math.round(o/255)<<1|Math.round(i/255));if(l===2){h+=60}return h};u.hsv.ansi16=function(t){return u.rgb.ansi16(u.hsv.rgb(t),t[2])};u.rgb.ansi256=function(t){const r=t[0];const i=t[1];const o=t[2];if(r===i&&i===o){if(r<8){return 16}if(r>248){return 231}return Math.round((r-8)/247*24)+232}const a=16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(o/255*5);return a};u.ansi16.rgb=function(t){let r=t%10;if(r===0||r===7){if(t>50){r+=3.5}r=r/10.5*255;return[r,r,r]}const i=(~~(t>50)+1)*.5;const o=(r&1)*i*255;const a=(r>>1&1)*i*255;const u=(r>>2&1)*i*255;return[o,a,u]};u.ansi256.rgb=function(t){if(t>=232){const r=(t-232)*10+8;return[r,r,r]}t-=16;let r;const i=Math.floor(t/36)/5*255;const o=Math.floor((r=t%36)/6)/5*255;const a=r%6/5*255;return[i,o,a]};u.rgb.hex=function(t){const r=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);const i=r.toString(16).toUpperCase();return"000000".substring(i.length)+i};u.hex.rgb=function(t){const r=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r){return[0,0,0]}let i=r[0];if(r[0].length===3){i=i.split("").map((t=>t+t)).join("")}const o=parseInt(i,16);const a=o>>16&255;const u=o>>8&255;const l=o&255;return[a,u,l]};u.rgb.hcg=function(t){const r=t[0]/255;const i=t[1]/255;const o=t[2]/255;const a=Math.max(Math.max(r,i),o);const u=Math.min(Math.min(r,i),o);const l=a-u;let h;let p;if(l<1){h=u/(1-l)}else{h=0}if(l<=0){p=0}else if(a===r){p=(i-o)/l%6}else if(a===i){p=2+(o-r)/l}else{p=4+(r-i)/l}p/=6;p%=1;return[p*360,l*100,h*100]};u.hsl.hcg=function(t){const r=t[1]/100;const i=t[2]/100;const o=i<.5?2*r*i:2*r*(1-i);let a=0;if(o<1){a=(i-.5*o)/(1-o)}return[t[0],o*100,a*100]};u.hsv.hcg=function(t){const r=t[1]/100;const i=t[2]/100;const o=r*i;let a=0;if(o<1){a=(i-o)/(1-o)}return[t[0],o*100,a*100]};u.hcg.rgb=function(t){const r=t[0]/360;const i=t[1]/100;const o=t[2]/100;if(i===0){return[o*255,o*255,o*255]}const a=[0,0,0];const u=r%1*6;const l=u%1;const h=1-l;let p=0;switch(Math.floor(u)){case 0:a[0]=1;a[1]=l;a[2]=0;break;case 1:a[0]=h;a[1]=1;a[2]=0;break;case 2:a[0]=0;a[1]=1;a[2]=l;break;case 3:a[0]=0;a[1]=h;a[2]=1;break;case 4:a[0]=l;a[1]=0;a[2]=1;break;default:a[0]=1;a[1]=0;a[2]=h}p=(1-i)*o;return[(i*a[0]+p)*255,(i*a[1]+p)*255,(i*a[2]+p)*255]};u.hcg.hsv=function(t){const r=t[1]/100;const i=t[2]/100;const o=r+i*(1-r);let a=0;if(o>0){a=r/o}return[t[0],a*100,o*100]};u.hcg.hsl=function(t){const r=t[1]/100;const i=t[2]/100;const o=i*(1-r)+.5*r;let a=0;if(o>0&&o<.5){a=r/(2*o)}else if(o>=.5&&o<1){a=r/(2*(1-o))}return[t[0],a*100,o*100]};u.hcg.hwb=function(t){const r=t[1]/100;const i=t[2]/100;const o=r+i*(1-r);return[t[0],(o-r)*100,(1-o)*100]};u.hwb.hcg=function(t){const r=t[1]/100;const i=t[2]/100;const o=1-i;const a=o-r;let u=0;if(a<1){u=(o-a)/(1-a)}return[t[0],a*100,u*100]};u.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};u.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};u.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};u.gray.hsl=function(t){return[0,0,t[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(t){return[0,100,t[0]]};u.gray.cmyk=function(t){return[0,0,0,t[0]]};u.gray.lab=function(t){return[t[0],0,0]};u.gray.hex=function(t){const r=Math.round(t[0]/100*255)&255;const i=(r<<16)+(r<<8)+r;const o=i.toString(16).toUpperCase();return"000000".substring(o.length)+o};u.rgb.gray=function(t){const r=(t[0]+t[1]+t[2])/3;return[r/255*100]}},1593:(t,r,i)=>{const o=i(7606);const a=i(1529);const u={};const l=Object.keys(o);function wrapRaw(t){const wrappedFn=function(...r){const i=r[0];if(i===undefined||i===null){return i}if(i.length>1){r=i}return t(r)};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}function wrapRounded(t){const wrappedFn=function(...r){const i=r[0];if(i===undefined||i===null){return i}if(i.length>1){r=i}const o=t(r);if(typeof o==="object"){for(let t=o.length,r=0;r<t;r++){o[r]=Math.round(o[r])}}return o};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}l.forEach((t=>{u[t]={};Object.defineProperty(u[t],"channels",{value:o[t].channels});Object.defineProperty(u[t],"labels",{value:o[t].labels});const r=a(t);const i=Object.keys(r);i.forEach((i=>{const o=r[i];u[t][i]=wrapRounded(o);u[t][i].raw=wrapRaw(o)}))}));t.exports=u},1529:(t,r,i)=>{const o=i(7606);function buildGraph(){const t={};const r=Object.keys(o);for(let i=r.length,o=0;o<i;o++){t[r[o]]={distance:-1,parent:null}}return t}function deriveBFS(t){const r=buildGraph();const i=[t];r[t].distance=0;while(i.length){const t=i.pop();const a=Object.keys(o[t]);for(let o=a.length,u=0;u<o;u++){const o=a[u];const l=r[o];if(l.distance===-1){l.distance=r[t].distance+1;l.parent=t;i.unshift(o)}}}return r}function link(t,r){return function(i){return r(t(i))}}function wrapConversion(t,r){const i=[r[t].parent,t];let a=o[r[t].parent][t];let u=r[t].parent;while(r[u].parent){i.unshift(r[u].parent);a=link(o[r[u].parent][u],a);u=r[u].parent}a.conversion=i;return a}t.exports=function(t){const r=deriveBFS(t);const i={};const o=Object.keys(r);for(let t=o.length,a=0;a<t;a++){const t=o[a];const u=r[t];if(u.parent===null){continue}i[t]=wrapConversion(t,r)}return i}},4816:t=>{const r=Symbol("arg flag");class ArgError extends Error{constructor(t,r){super(t);this.name="ArgError";this.code=r;Object.setPrototypeOf(this,ArgError.prototype)}}function arg(t,{argv:i=process.argv.slice(2),permissive:o=false,stopAtPositional:a=false}={}){if(!t){throw new ArgError("argument specification object is required","ARG_CONFIG_NO_SPEC")}const u={_:[]};const l={};const h={};for(const i of Object.keys(t)){if(!i){throw new ArgError("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY")}if(i[0]!=="-"){throw new ArgError(`argument key must start with '-' but found: '${i}'`,"ARG_CONFIG_NONOPT_KEY")}if(i.length===1){throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${i}`,"ARG_CONFIG_NONAME_KEY")}if(typeof t[i]==="string"){l[i]=t[i];continue}let o=t[i];let a=false;if(Array.isArray(o)&&o.length===1&&typeof o[0]==="function"){const[t]=o;o=(r,i,o=[])=>{o.push(t(r,i,o[o.length-1]));return o};a=t===Boolean||t[r]===true}else if(typeof o==="function"){a=o===Boolean||o[r]===true}else{throw new ArgError(`type missing or not a function or valid array type: ${i}`,"ARG_CONFIG_VAD_TYPE")}if(i[1]!=="-"&&i.length>2){throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${i}`,"ARG_CONFIG_SHORTOPT_TOOLONG")}h[i]=[o,a]}for(let t=0,r=i.length;t<r;t++){const r=i[t];if(a&&u._.length>0){u._=u._.concat(i.slice(t));break}if(r==="--"){u._=u._.concat(i.slice(t+1));break}if(r.length>1&&r[0]==="-"){const a=r[1]==="-"||r.length===2?[r]:r.slice(1).split("").map((t=>`-${t}`));for(let r=0;r<a.length;r++){const p=a[r];const[d,m]=p[1]==="-"?p.split(/=(.*)/,2):[p,undefined];let g=d;while(g in l){g=l[g]}if(!(g in h)){if(o){u._.push(p);continue}else{throw new ArgError(`unknown or unexpected option: ${d}`,"ARG_UNKNOWN_OPTION")}}const[y,A]=h[g];if(!A&&r+1<a.length){throw new ArgError(`option requires argument (but was followed by another short argument): ${d}`,"ARG_MISSING_REQUIRED_SHORTARG")}if(A){u[g]=y(true,g,u[g])}else if(m===undefined){if(i.length<t+2||i[t+1].length>1&&i[t+1][0]==="-"&&!(i[t+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(y===Number||typeof BigInt!=="undefined"&&y===BigInt))){const t=d===g?"":` (alias for ${g})`;throw new ArgError(`option requires argument: ${d}${t}`,"ARG_MISSING_REQUIRED_LONGARG")}u[g]=y(i[t+1],g,u[g]);++t}else{u[g]=y(m,g,u[g])}}}else{u._.push(r)}}return u}arg.flag=t=>{t[r]=true;return t};arg.COUNT=arg.flag(((t,r,i)=>(i||0)+1));arg.ArgError=ArgError;t.exports=arg},538:(t,r,i)=>{"use strict";const o=i(9200);const a=i(3668);const u=i(5961);const l=i(9594);const braces=(t,r={})=>{let i=[];if(Array.isArray(t)){for(const o of t){const t=braces.create(o,r);if(Array.isArray(t)){i.push(...t)}else{i.push(t)}}}else{i=[].concat(braces.create(t,r))}if(r&&r.expand===true&&r.nodupes===true){i=[...new Set(i)]}return i};braces.parse=(t,r={})=>l(t,r);braces.stringify=(t,r={})=>{if(typeof t==="string"){return o(braces.parse(t,r),r)}return o(t,r)};braces.compile=(t,r={})=>{if(typeof t==="string"){t=braces.parse(t,r)}return a(t,r)};braces.expand=(t,r={})=>{if(typeof t==="string"){t=braces.parse(t,r)}let i=u(t,r);if(r.noempty===true){i=i.filter(Boolean)}if(r.nodupes===true){i=[...new Set(i)]}return i};braces.create=(t,r={})=>{if(t===""||t.length<3){return[t]}return r.expand!==true?braces.compile(t,r):braces.expand(t,r)};t.exports=braces},3668:(t,r,i)=>{"use strict";const o=i(3488);const a=i(4691);const compile=(t,r={})=>{const walk=(t,i={})=>{const u=a.isInvalidBrace(i);const l=t.invalid===true&&r.escapeInvalid===true;const h=u===true||l===true;const p=r.escapeInvalid===true?"\\":"";let d="";if(t.isOpen===true){return p+t.value}if(t.isClose===true){console.log("node.isClose",p,t.value);return p+t.value}if(t.type==="open"){return h?p+t.value:"("}if(t.type==="close"){return h?p+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":h?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){const i=a.reduce(t.nodes);const u=o(...i,{...r,wrap:false,toRegex:true,strictZeros:true});if(u.length!==0){return i.length>1&&u.length>1?`(${u})`:u}}if(t.nodes){for(const r of t.nodes){d+=walk(r,t)}}return d};return walk(t)};t.exports=compile},5529:t=>{"use strict";t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},5961:(t,r,i)=>{"use strict";const o=i(3488);const a=i(9200);const u=i(4691);const append=(t="",r="",i=false)=>{const o=[];t=[].concat(t);r=[].concat(r);if(!r.length)return t;if(!t.length){return i?u.flatten(r).map((t=>`{${t}}`)):r}for(const a of t){if(Array.isArray(a)){for(const t of a){o.push(append(t,r,i))}}else{for(let t of r){if(i===true&&typeof t==="string")t=`{${t}}`;o.push(Array.isArray(t)?append(a,t,i):a+t)}}}return u.flatten(o)};const expand=(t,r={})=>{const i=r.rangeLimit===undefined?1e3:r.rangeLimit;const walk=(t,l={})=>{t.queue=[];let h=l;let p=l.queue;while(h.type!=="brace"&&h.type!=="root"&&h.parent){h=h.parent;p=h.queue}if(t.invalid||t.dollar){p.push(append(p.pop(),a(t,r)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){p.push(append(p.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){const l=u.reduce(t.nodes);if(u.exceedsLimit(...l,r.step,i)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let h=o(...l,r);if(h.length===0){h=a(t,r)}p.push(append(p.pop(),h));t.nodes=[];return}const d=u.encloseBrace(t);let m=t.queue;let g=t;while(g.type!=="brace"&&g.type!=="root"&&g.parent){g=g.parent;m=g.queue}for(let r=0;r<t.nodes.length;r++){const i=t.nodes[r];if(i.type==="comma"&&t.type==="brace"){if(r===1)m.push("");m.push("");continue}if(i.type==="close"){p.push(append(p.pop(),m,d));continue}if(i.value&&i.type!=="open"){m.push(append(m.pop(),i.value));continue}if(i.nodes){walk(i,t)}}return m};return u.flatten(walk(t))};t.exports=expand},9594:(t,r,i)=>{"use strict";const o=i(9200);const{MAX_LENGTH:a,CHAR_BACKSLASH:u,CHAR_BACKTICK:l,CHAR_COMMA:h,CHAR_DOT:p,CHAR_LEFT_PARENTHESES:d,CHAR_RIGHT_PARENTHESES:m,CHAR_LEFT_CURLY_BRACE:g,CHAR_RIGHT_CURLY_BRACE:y,CHAR_LEFT_SQUARE_BRACKET:A,CHAR_RIGHT_SQUARE_BRACKET:b,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:E,CHAR_NO_BREAK_SPACE:w,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=i(5529);const parse=(t,r={})=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}const i=r||{};const S=typeof i.maxLength==="number"?Math.min(a,i.maxLength):a;if(t.length>S){throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${S})`)}const C={type:"root",input:t,nodes:[]};const D=[C];let x=C;let R=C;let O=0;const k=t.length;let P=0;let T=0;let L;const advance=()=>t[P++];const push=t=>{if(t.type==="text"&&R.type==="dot"){R.type="text"}if(R&&R.type==="text"&&t.type==="text"){R.value+=t.value;return}x.nodes.push(t);t.parent=x;t.prev=R;R=t;return t};push({type:"bos"});while(P<k){x=D[D.length-1];L=advance();if(L===_||L===w){continue}if(L===u){push({type:"text",value:(r.keepEscaping?L:"")+advance()});continue}if(L===b){push({type:"text",value:"\\"+L});continue}if(L===A){O++;let t;while(P<k&&(t=advance())){L+=t;if(t===A){O++;continue}if(t===u){L+=advance();continue}if(t===b){O--;if(O===0){break}}}push({type:"text",value:L});continue}if(L===d){x=push({type:"paren",nodes:[]});D.push(x);push({type:"text",value:L});continue}if(L===m){if(x.type!=="paren"){push({type:"text",value:L});continue}x=D.pop();push({type:"text",value:L});x=D[D.length-1];continue}if(L===v||L===E||L===l){const t=L;let i;if(r.keepQuotes!==true){L=""}while(P<k&&(i=advance())){if(i===u){L+=i+advance();continue}if(i===t){if(r.keepQuotes===true)L+=i;break}L+=i}push({type:"text",value:L});continue}if(L===g){T++;const t=R.value&&R.value.slice(-1)==="$"||x.dollar===true;const r={type:"brace",open:true,close:false,dollar:t,depth:T,commas:0,ranges:0,nodes:[]};x=push(r);D.push(x);push({type:"open",value:L});continue}if(L===y){if(x.type!=="brace"){push({type:"text",value:L});continue}const t="close";x=D.pop();x.close=true;push({type:t,value:L});T--;x=D[D.length-1];continue}if(L===h&&T>0){if(x.ranges>0){x.ranges=0;const t=x.nodes.shift();x.nodes=[t,{type:"text",value:o(x)}]}push({type:"comma",value:L});x.commas++;continue}if(L===p&&T>0&&x.commas===0){const t=x.nodes;if(T===0||t.length===0){push({type:"text",value:L});continue}if(R.type==="dot"){x.range=[];R.value+=L;R.type="range";if(x.nodes.length!==3&&x.nodes.length!==5){x.invalid=true;x.ranges=0;R.type="text";continue}x.ranges++;x.args=[];continue}if(R.type==="range"){t.pop();const r=t[t.length-1];r.value+=R.value+L;R=r;x.ranges--;continue}push({type:"dot",value:L});continue}push({type:"text",value:L})}do{x=D.pop();if(x.type!=="root"){x.nodes.forEach((t=>{if(!t.nodes){if(t.type==="open")t.isOpen=true;if(t.type==="close")t.isClose=true;if(!t.nodes)t.type="text";t.invalid=true}}));const t=D[D.length-1];const r=t.nodes.indexOf(x);t.nodes.splice(r,1,...x.nodes)}}while(D.length>0);push({type:"eos"});return C};t.exports=parse},9200:(t,r,i)=>{"use strict";const o=i(4691);t.exports=(t,r={})=>{const stringify=(t,i={})=>{const a=r.escapeInvalid&&o.isInvalidBrace(i);const u=t.invalid===true&&r.escapeInvalid===true;let l="";if(t.value){if((a||u)&&o.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(const r of t.nodes){l+=stringify(r)}}return l};return stringify(t)}},4691:(t,r)=>{"use strict";r.isInteger=t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false};r.find=(t,r)=>t.nodes.find((t=>t.type===r));r.exceedsLimit=(t,i,o=1,a)=>{if(a===false)return false;if(!r.isInteger(t)||!r.isInteger(i))return false;return(Number(i)-Number(t))/Number(o)>=a};r.escapeNode=(t,r=0,i)=>{const o=t.nodes[r];if(!o)return;if(i&&o.type===i||o.type==="open"||o.type==="close"){if(o.escaped!==true){o.value="\\"+o.value;o.escaped=true}}};r.encloseBrace=t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false};r.isInvalidBrace=t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false};r.isOpenOrClose=t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true};r.reduce=t=>t.reduce(((t,r)=>{if(r.type==="text")t.push(r.value);if(r.type==="range")r.type="text";return t}),[]);r.flatten=(...t)=>{const r=[];const flat=t=>{for(let i=0;i<t.length;i++){const o=t[i];if(Array.isArray(o)){flat(o);continue}if(o!==undefined){r.push(o)}}return r};flat(t);return r}},8746:(t,r,i)=>{"use strict";const o=i(3741);const{stdout:a,stderr:u}=i(395);const{stringReplaceAll:l,stringEncaseCRLFWithFirstIndex:h}=i(5611);const{isArray:p}=Array;const d=["ansi","ansi","ansi256","ansi16m"];const m=Object.create(null);const applyOptions=(t,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const i=a?a.level:0;t.level=r.level===undefined?i:r.level};class ChalkClass{constructor(t){return chalkFactory(t)}}const chalkFactory=t=>{const r={};applyOptions(r,t);r.template=(...t)=>chalkTag(r.template,...t);Object.setPrototypeOf(r,Chalk.prototype);Object.setPrototypeOf(r.template,r);r.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};r.template.Instance=ChalkClass;return r.template};function Chalk(t){return chalkFactory(t)}for(const[t,r]of Object.entries(o)){m[t]={get(){const i=createBuilder(this,createStyler(r.open,r.close,this._styler),this._isEmpty);Object.defineProperty(this,t,{value:i});return i}}}m.visible={get(){const t=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:t});return t}};const g=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of g){m[t]={get(){const{level:r}=this;return function(...i){const a=createStyler(o.color[d[r]][t](...i),o.color.close,this._styler);return createBuilder(this,a,this._isEmpty)}}}}for(const t of g){const r="bg"+t[0].toUpperCase()+t.slice(1);m[r]={get(){const{level:r}=this;return function(...i){const a=createStyler(o.bgColor[d[r]][t](...i),o.bgColor.close,this._styler);return createBuilder(this,a,this._isEmpty)}}}}const y=Object.defineProperties((()=>{}),{...m,level:{enumerable:true,get(){return this._generator.level},set(t){this._generator.level=t}}});const createStyler=(t,r,i)=>{let o;let a;if(i===undefined){o=t;a=r}else{o=i.openAll+t;a=r+i.closeAll}return{open:t,close:r,openAll:o,closeAll:a,parent:i}};const createBuilder=(t,r,i)=>{const builder=(...t)=>{if(p(t[0])&&p(t[0].raw)){return applyStyle(builder,chalkTag(builder,...t))}return applyStyle(builder,t.length===1?""+t[0]:t.join(" "))};Object.setPrototypeOf(builder,y);builder._generator=t;builder._styler=r;builder._isEmpty=i;return builder};const applyStyle=(t,r)=>{if(t.level<=0||!r){return t._isEmpty?"":r}let i=t._styler;if(i===undefined){return r}const{openAll:o,closeAll:a}=i;if(r.indexOf("")!==-1){while(i!==undefined){r=l(r,i.close,i.open);i=i.parent}}const u=r.indexOf("\n");if(u!==-1){r=h(r,a,o,u)}return o+r+a};let A;const chalkTag=(t,...r)=>{const[o]=r;if(!p(o)||!p(o.raw)){return r.join(" ")}const a=r.slice(1);const u=[o.raw[0]];for(let t=1;t<o.length;t++){u.push(String(a[t-1]).replace(/[{}\\]/g,"\\$&"),String(o.raw[t]))}if(A===undefined){A=i(2746)}return A(t,u.join(""))};Object.defineProperties(Chalk.prototype,m);const b=Chalk();b.supportsColor=a;b.stderr=Chalk({level:u?u.level:0});b.stderr.supportsColor=u;t.exports=b},2746:t=>{"use strict";const r=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const a=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const u=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(t){const r=t[0]==="u";const i=t[1]==="{";if(r&&!i&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}if(r&&i){return String.fromCodePoint(parseInt(t.slice(2,-1),16))}return u.get(t)||t}function parseArguments(t,r){const i=[];const u=r.trim().split(/\s*,\s*/g);let l;for(const r of u){const u=Number(r);if(!Number.isNaN(u)){i.push(u)}else if(l=r.match(o)){i.push(l[2].replace(a,((t,r,i)=>r?unescape(r):i)))}else{throw new Error(`Invalid Chalk template style argument: ${r} (in style '${t}')`)}}return i}function parseStyle(t){i.lastIndex=0;const r=[];let o;while((o=i.exec(t))!==null){const t=o[1];if(o[2]){const i=parseArguments(t,o[2]);r.push([t].concat(i))}else{r.push([t])}}return r}function buildStyle(t,r){const i={};for(const t of r){for(const r of t.styles){i[r[0]]=t.inverse?null:r.slice(1)}}let o=t;for(const[t,r]of Object.entries(i)){if(!Array.isArray(r)){continue}if(!(t in o)){throw new Error(`Unknown Chalk style: ${t}`)}o=r.length>0?o[t](...r):o[t]}return o}t.exports=(t,i)=>{const o=[];const a=[];let u=[];i.replace(r,((r,i,l,h,p,d)=>{if(i){u.push(unescape(i))}else if(h){const r=u.join("");u=[];a.push(o.length===0?r:buildStyle(t,o)(r));o.push({inverse:l,styles:parseStyle(h)})}else if(p){if(o.length===0){throw new Error("Found extraneous } in Chalk template literal")}a.push(buildStyle(t,o)(u.join("")));u=[];o.pop()}else{u.push(d)}}));a.push(u.join(""));if(o.length>0){const t=`Chalk template literal is missing ${o.length} closing bracket${o.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return a.join("")}},5611:t=>{"use strict";const stringReplaceAll=(t,r,i)=>{let o=t.indexOf(r);if(o===-1){return t}const a=r.length;let u=0;let l="";do{l+=t.substr(u,o-u)+r+i;u=o+a;o=t.indexOf(r,u)}while(o!==-1);l+=t.substr(u);return l};const stringEncaseCRLFWithFirstIndex=(t,r,i,o)=>{let a=0;let u="";do{const l=t[o-1]==="\r";u+=t.substr(a,(l?o-1:o)-a)+r+(l?"\r\n":"\n")+i;a=o+1;o=t.indexOf("\n",a)}while(o!==-1);u+=t.substr(a);return u};t.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},6067:(t,r,i)=>{"use strict";const o=Object.assign({},i(2548));const a=Object.keys(o);Object.defineProperty(o,"random",{get(){const t=Math.floor(Math.random()*a.length);const r=a[t];return o[r]}});t.exports=o},6845:t=>{var r=function(){"use strict";function clone(t,r,i,o){var a;if(typeof r==="object"){i=r.depth;o=r.prototype;a=r.filter;r=r.circular}var u=[];var l=[];var h=typeof Buffer!="undefined";if(typeof r=="undefined")r=true;if(typeof i=="undefined")i=Infinity;function _clone(t,i){if(t===null)return null;if(i==0)return t;var a;var p;if(typeof t!="object"){return t}if(clone.__isArray(t)){a=[]}else if(clone.__isRegExp(t)){a=new RegExp(t.source,__getRegExpFlags(t));if(t.lastIndex)a.lastIndex=t.lastIndex}else if(clone.__isDate(t)){a=new Date(t.getTime())}else if(h&&Buffer.isBuffer(t)){if(Buffer.allocUnsafe){a=Buffer.allocUnsafe(t.length)}else{a=new Buffer(t.length)}t.copy(a);return a}else{if(typeof o=="undefined"){p=Object.getPrototypeOf(t);a=Object.create(p)}else{a=Object.create(o);p=o}}if(r){var d=u.indexOf(t);if(d!=-1){return l[d]}u.push(t);l.push(a)}for(var m in t){var g;if(p){g=Object.getOwnPropertyDescriptor(p,m)}if(g&&g.set==null){continue}a[m]=_clone(t[m],i-1)}return a}return _clone(t,i)}clone.clonePrototype=function clonePrototype(t){if(t===null)return null;var c=function(){};c.prototype=t;return new c};function __objToStr(t){return Object.prototype.toString.call(t)}clone.__objToStr=__objToStr;function __isDate(t){return typeof t==="object"&&__objToStr(t)==="[object Date]"}clone.__isDate=__isDate;function __isArray(t){return typeof t==="object"&&__objToStr(t)==="[object Array]"}clone.__isArray=__isArray;function __isRegExp(t){return typeof t==="object"&&__objToStr(t)==="[object RegExp]"}clone.__isRegExp=__isRegExp;function __getRegExpFlags(t){var r="";if(t.global)r+="g";if(t.ignoreCase)r+="i";if(t.multiline)r+="m";return r}clone.__getRegExpFlags=__getRegExpFlags;return clone}();if(true&&t.exports){t.exports=r}},9598:(t,r,i)=>{var o=i(9120);var a={};for(var u in o){if(o.hasOwnProperty(u)){a[o[u]]=u}}var l=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var h in l){if(l.hasOwnProperty(h)){if(!("channels"in l[h])){throw new Error("missing channels property: "+h)}if(!("labels"in l[h])){throw new Error("missing channel labels property: "+h)}if(l[h].labels.length!==l[h].channels){throw new Error("channel and label counts mismatch: "+h)}var p=l[h].channels;var d=l[h].labels;delete l[h].channels;delete l[h].labels;Object.defineProperty(l[h],"channels",{value:p});Object.defineProperty(l[h],"labels",{value:d})}}l.rgb.hsl=function(t){var r=t[0]/255;var i=t[1]/255;var o=t[2]/255;var a=Math.min(r,i,o);var u=Math.max(r,i,o);var l=u-a;var h;var p;var d;if(u===a){h=0}else if(r===u){h=(i-o)/l}else if(i===u){h=2+(o-r)/l}else if(o===u){h=4+(r-i)/l}h=Math.min(h*60,360);if(h<0){h+=360}d=(a+u)/2;if(u===a){p=0}else if(d<=.5){p=l/(u+a)}else{p=l/(2-u-a)}return[h,p*100,d*100]};l.rgb.hsv=function(t){var r;var i;var o;var a;var u;var l=t[0]/255;var h=t[1]/255;var p=t[2]/255;var d=Math.max(l,h,p);var m=d-Math.min(l,h,p);var diffc=function(t){return(d-t)/6/m+1/2};if(m===0){a=u=0}else{u=m/d;r=diffc(l);i=diffc(h);o=diffc(p);if(l===d){a=o-i}else if(h===d){a=1/3+r-o}else if(p===d){a=2/3+i-r}if(a<0){a+=1}else if(a>1){a-=1}}return[a*360,u*100,d*100]};l.rgb.hwb=function(t){var r=t[0];var i=t[1];var o=t[2];var a=l.rgb.hsl(t)[0];var u=1/255*Math.min(r,Math.min(i,o));o=1-1/255*Math.max(r,Math.max(i,o));return[a,u*100,o*100]};l.rgb.cmyk=function(t){var r=t[0]/255;var i=t[1]/255;var o=t[2]/255;var a;var u;var l;var h;h=Math.min(1-r,1-i,1-o);a=(1-r-h)/(1-h)||0;u=(1-i-h)/(1-h)||0;l=(1-o-h)/(1-h)||0;return[a*100,u*100,l*100,h*100]};function comparativeDistance(t,r){return Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2)+Math.pow(t[2]-r[2],2)}l.rgb.keyword=function(t){var r=a[t];if(r){return r}var i=Infinity;var u;for(var l in o){if(o.hasOwnProperty(l)){var h=o[l];var p=comparativeDistance(t,h);if(p<i){i=p;u=l}}}return u};l.keyword.rgb=function(t){return o[t]};l.rgb.xyz=function(t){var r=t[0]/255;var i=t[1]/255;var o=t[2]/255;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92;var a=r*.4124+i*.3576+o*.1805;var u=r*.2126+i*.7152+o*.0722;var l=r*.0193+i*.1192+o*.9505;return[a*100,u*100,l*100]};l.rgb.lab=function(t){var r=l.rgb.xyz(t);var i=r[0];var o=r[1];var a=r[2];var u;var h;var p;i/=95.047;o/=100;a/=108.883;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;o=o>.008856?Math.pow(o,1/3):7.787*o+16/116;a=a>.008856?Math.pow(a,1/3):7.787*a+16/116;u=116*o-16;h=500*(i-o);p=200*(o-a);return[u,h,p]};l.hsl.rgb=function(t){var r=t[0]/360;var i=t[1]/100;var o=t[2]/100;var a;var u;var l;var h;var p;if(i===0){p=o*255;return[p,p,p]}if(o<.5){u=o*(1+i)}else{u=o+i-o*i}a=2*o-u;h=[0,0,0];for(var d=0;d<3;d++){l=r+1/3*-(d-1);if(l<0){l++}if(l>1){l--}if(6*l<1){p=a+(u-a)*6*l}else if(2*l<1){p=u}else if(3*l<2){p=a+(u-a)*(2/3-l)*6}else{p=a}h[d]=p*255}return h};l.hsl.hsv=function(t){var r=t[0];var i=t[1]/100;var o=t[2]/100;var a=i;var u=Math.max(o,.01);var l;var h;o*=2;i*=o<=1?o:2-o;a*=u<=1?u:2-u;h=(o+i)/2;l=o===0?2*a/(u+a):2*i/(o+i);return[r,l*100,h*100]};l.hsv.rgb=function(t){var r=t[0]/60;var i=t[1]/100;var o=t[2]/100;var a=Math.floor(r)%6;var u=r-Math.floor(r);var l=255*o*(1-i);var h=255*o*(1-i*u);var p=255*o*(1-i*(1-u));o*=255;switch(a){case 0:return[o,p,l];case 1:return[h,o,l];case 2:return[l,o,p];case 3:return[l,h,o];case 4:return[p,l,o];case 5:return[o,l,h]}};l.hsv.hsl=function(t){var r=t[0];var i=t[1]/100;var o=t[2]/100;var a=Math.max(o,.01);var u;var l;var h;h=(2-i)*o;u=(2-i)*a;l=i*a;l/=u<=1?u:2-u;l=l||0;h/=2;return[r,l*100,h*100]};l.hwb.rgb=function(t){var r=t[0]/360;var i=t[1]/100;var o=t[2]/100;var a=i+o;var u;var l;var h;var p;if(a>1){i/=a;o/=a}u=Math.floor(6*r);l=1-o;h=6*r-u;if((u&1)!==0){h=1-h}p=i+h*(l-i);var d;var m;var g;switch(u){default:case 6:case 0:d=l;m=p;g=i;break;case 1:d=p;m=l;g=i;break;case 2:d=i;m=l;g=p;break;case 3:d=i;m=p;g=l;break;case 4:d=p;m=i;g=l;break;case 5:d=l;m=i;g=p;break}return[d*255,m*255,g*255]};l.cmyk.rgb=function(t){var r=t[0]/100;var i=t[1]/100;var o=t[2]/100;var a=t[3]/100;var u;var l;var h;u=1-Math.min(1,r*(1-a)+a);l=1-Math.min(1,i*(1-a)+a);h=1-Math.min(1,o*(1-a)+a);return[u*255,l*255,h*255]};l.xyz.rgb=function(t){var r=t[0]/100;var i=t[1]/100;var o=t[2]/100;var a;var u;var l;a=r*3.2406+i*-1.5372+o*-.4986;u=r*-.9689+i*1.8758+o*.0415;l=r*.0557+i*-.204+o*1.057;a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92;u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:u*12.92;l=l>.0031308?1.055*Math.pow(l,1/2.4)-.055:l*12.92;a=Math.min(Math.max(0,a),1);u=Math.min(Math.max(0,u),1);l=Math.min(Math.max(0,l),1);return[a*255,u*255,l*255]};l.xyz.lab=function(t){var r=t[0];var i=t[1];var o=t[2];var a;var u;var l;r/=95.047;i/=100;o/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;o=o>.008856?Math.pow(o,1/3):7.787*o+16/116;a=116*i-16;u=500*(r-i);l=200*(i-o);return[a,u,l]};l.lab.xyz=function(t){var r=t[0];var i=t[1];var o=t[2];var a;var u;var l;u=(r+16)/116;a=i/500+u;l=u-o/200;var h=Math.pow(u,3);var p=Math.pow(a,3);var d=Math.pow(l,3);u=h>.008856?h:(u-16/116)/7.787;a=p>.008856?p:(a-16/116)/7.787;l=d>.008856?d:(l-16/116)/7.787;a*=95.047;u*=100;l*=108.883;return[a,u,l]};l.lab.lch=function(t){var r=t[0];var i=t[1];var o=t[2];var a;var u;var l;a=Math.atan2(o,i);u=a*360/2/Math.PI;if(u<0){u+=360}l=Math.sqrt(i*i+o*o);return[r,l,u]};l.lch.lab=function(t){var r=t[0];var i=t[1];var o=t[2];var a;var u;var l;l=o/360*2*Math.PI;a=i*Math.cos(l);u=i*Math.sin(l);return[r,a,u]};l.rgb.ansi16=function(t){var r=t[0];var i=t[1];var o=t[2];var a=1 in arguments?arguments[1]:l.rgb.hsv(t)[2];a=Math.round(a/50);if(a===0){return 30}var u=30+(Math.round(o/255)<<2|Math.round(i/255)<<1|Math.round(r/255));if(a===2){u+=60}return u};l.hsv.ansi16=function(t){return l.rgb.ansi16(l.hsv.rgb(t),t[2])};l.rgb.ansi256=function(t){var r=t[0];var i=t[1];var o=t[2];if(r===i&&i===o){if(r<8){return 16}if(r>248){return 231}return Math.round((r-8)/247*24)+232}var a=16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(o/255*5);return a};l.ansi16.rgb=function(t){var r=t%10;if(r===0||r===7){if(t>50){r+=3.5}r=r/10.5*255;return[r,r,r]}var i=(~~(t>50)+1)*.5;var o=(r&1)*i*255;var a=(r>>1&1)*i*255;var u=(r>>2&1)*i*255;return[o,a,u]};l.ansi256.rgb=function(t){if(t>=232){var r=(t-232)*10+8;return[r,r,r]}t-=16;var i;var o=Math.floor(t/36)/5*255;var a=Math.floor((i=t%36)/6)/5*255;var u=i%6/5*255;return[o,a,u]};l.rgb.hex=function(t){var r=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);var i=r.toString(16).toUpperCase();return"000000".substring(i.length)+i};l.hex.rgb=function(t){var r=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r){return[0,0,0]}var i=r[0];if(r[0].length===3){i=i.split("").map((function(t){return t+t})).join("")}var o=parseInt(i,16);var a=o>>16&255;var u=o>>8&255;var l=o&255;return[a,u,l]};l.rgb.hcg=function(t){var r=t[0]/255;var i=t[1]/255;var o=t[2]/255;var a=Math.max(Math.max(r,i),o);var u=Math.min(Math.min(r,i),o);var l=a-u;var h;var p;if(l<1){h=u/(1-l)}else{h=0}if(l<=0){p=0}else if(a===r){p=(i-o)/l%6}else if(a===i){p=2+(o-r)/l}else{p=4+(r-i)/l+4}p/=6;p%=1;return[p*360,l*100,h*100]};l.hsl.hcg=function(t){var r=t[1]/100;var i=t[2]/100;var o=1;var a=0;if(i<.5){o=2*r*i}else{o=2*r*(1-i)}if(o<1){a=(i-.5*o)/(1-o)}return[t[0],o*100,a*100]};l.hsv.hcg=function(t){var r=t[1]/100;var i=t[2]/100;var o=r*i;var a=0;if(o<1){a=(i-o)/(1-o)}return[t[0],o*100,a*100]};l.hcg.rgb=function(t){var r=t[0]/360;var i=t[1]/100;var o=t[2]/100;if(i===0){return[o*255,o*255,o*255]}var a=[0,0,0];var u=r%1*6;var l=u%1;var h=1-l;var p=0;switch(Math.floor(u)){case 0:a[0]=1;a[1]=l;a[2]=0;break;case 1:a[0]=h;a[1]=1;a[2]=0;break;case 2:a[0]=0;a[1]=1;a[2]=l;break;case 3:a[0]=0;a[1]=h;a[2]=1;break;case 4:a[0]=l;a[1]=0;a[2]=1;break;default:a[0]=1;a[1]=0;a[2]=h}p=(1-i)*o;return[(i*a[0]+p)*255,(i*a[1]+p)*255,(i*a[2]+p)*255]};l.hcg.hsv=function(t){var r=t[1]/100;var i=t[2]/100;var o=r+i*(1-r);var a=0;if(o>0){a=r/o}return[t[0],a*100,o*100]};l.hcg.hsl=function(t){var r=t[1]/100;var i=t[2]/100;var o=i*(1-r)+.5*r;var a=0;if(o>0&&o<.5){a=r/(2*o)}else if(o>=.5&&o<1){a=r/(2*(1-o))}return[t[0],a*100,o*100]};l.hcg.hwb=function(t){var r=t[1]/100;var i=t[2]/100;var o=r+i*(1-r);return[t[0],(o-r)*100,(1-o)*100]};l.hwb.hcg=function(t){var r=t[1]/100;var i=t[2]/100;var o=1-i;var a=o-r;var u=0;if(a<1){u=(o-a)/(1-a)}return[t[0],a*100,u*100]};l.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};l.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};l.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};l.gray.hsl=l.gray.hsv=function(t){return[0,0,t[0]]};l.gray.hwb=function(t){return[0,100,t[0]]};l.gray.cmyk=function(t){return[0,0,0,t[0]]};l.gray.lab=function(t){return[t[0],0,0]};l.gray.hex=function(t){var r=Math.round(t[0]/100*255)&255;var i=(r<<16)+(r<<8)+r;var o=i.toString(16).toUpperCase();return"000000".substring(o.length)+o};l.rgb.gray=function(t){var r=(t[0]+t[1]+t[2])/3;return[r/255*100]}},2830:(t,r,i)=>{var o=i(9598);var a=i(5180);var u={};var l=Object.keys(o);function wrapRaw(t){var wrappedFn=function(r){if(r===undefined||r===null){return r}if(arguments.length>1){r=Array.prototype.slice.call(arguments)}return t(r)};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}function wrapRounded(t){var wrappedFn=function(r){if(r===undefined||r===null){return r}if(arguments.length>1){r=Array.prototype.slice.call(arguments)}var i=t(r);if(typeof i==="object"){for(var o=i.length,a=0;a<o;a++){i[a]=Math.round(i[a])}}return i};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}l.forEach((function(t){u[t]={};Object.defineProperty(u[t],"channels",{value:o[t].channels});Object.defineProperty(u[t],"labels",{value:o[t].labels});var r=a(t);var i=Object.keys(r);i.forEach((function(i){var o=r[i];u[t][i]=wrapRounded(o);u[t][i].raw=wrapRaw(o)}))}));t.exports=u},9120:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},5180:(t,r,i)=>{var o=i(9598);function buildGraph(){var t={};var r=Object.keys(o);for(var i=r.length,a=0;a<i;a++){t[r[a]]={distance:-1,parent:null}}return t}function deriveBFS(t){var r=buildGraph();var i=[t];r[t].distance=0;while(i.length){var a=i.pop();var u=Object.keys(o[a]);for(var l=u.length,h=0;h<l;h++){var p=u[h];var d=r[p];if(d.distance===-1){d.distance=r[a].distance+1;d.parent=a;i.unshift(p)}}}return r}function link(t,r){return function(i){return r(t(i))}}function wrapConversion(t,r){var i=[r[t].parent,t];var a=o[r[t].parent][t];var u=r[t].parent;while(r[u].parent){i.unshift(r[u].parent);a=link(o[r[u].parent][u],a);u=r[u].parent}a.conversion=i;return a}t.exports=function(t){var r=deriveBFS(t);var i={};var o=Object.keys(r);for(var a=o.length,u=0;u<a;u++){var l=o[u];var h=r[l];if(h.parent===null){continue}i[l]=wrapConversion(l,r)}return i}},9407:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},7987:(t,r,i)=>{"use strict";const o=i(2081);const a=i(1655);const u=i(9738);function spawn(t,r,i){const l=a(t,r,i);const h=o.spawn(l.command,l.args,l.options);u.hookChildProcess(h,l);return h}function spawnSync(t,r,i){const l=a(t,r,i);const h=o.spawnSync(l.command,l.args,l.options);h.error=h.error||u.verifyENOENTSync(h.status,l);return h}t.exports=spawn;t.exports.spawn=spawn;t.exports.sync=spawnSync;t.exports._parse=a;t.exports._enoent=u},9738:t=>{"use strict";const r=process.platform==="win32";function notFoundError(t,r){return Object.assign(new Error(`${r} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${t.command}`,path:t.command,spawnargs:t.args})}function hookChildProcess(t,i){if(!r){return}const o=t.emit;t.emit=function(r,a){if(r==="exit"){const r=verifyENOENT(a,i,"spawn");if(r){return o.call(t,"error",r)}}return o.apply(t,arguments)}}function verifyENOENT(t,i){if(r&&t===1&&!i.file){return notFoundError(i.original,"spawn")}return null}function verifyENOENTSync(t,i){if(r&&t===1&&!i.file){return notFoundError(i.original,"spawnSync")}return null}t.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},1655:(t,r,i)=>{"use strict";const o=i(1017);const a=i(7534);const u=i(8902);const l=i(2964);const h=process.platform==="win32";const p=/\.(?:com|exe)$/i;const d=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(t){t.file=a(t);const r=t.file&&l(t.file);if(r){t.args.unshift(t.file);t.command=r;return a(t)}return t.file}function parseNonShell(t){if(!h){return t}const r=detectShebang(t);const i=!p.test(r);if(t.options.forceShell||i){const i=d.test(r);t.command=o.normalize(t.command);t.command=u.command(t.command);t.args=t.args.map((t=>u.argument(t,i)));const a=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${a}"`];t.command=process.env.comspec||"cmd.exe";t.options.windowsVerbatimArguments=true}return t}function parse(t,r,i){if(r&&!Array.isArray(r)){i=r;r=null}r=r?r.slice(0):[];i=Object.assign({},i);const o={command:t,args:r,options:i,file:undefined,original:{command:t,args:r}};return i.shell?o:parseNonShell(o)}t.exports=parse},8902:t=>{"use strict";const r=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(t){t=t.replace(r,"^$1");return t}function escapeArgument(t,i){t=`${t}`;t=t.replace(/(\\*)"/g,'$1$1\\"');t=t.replace(/(\\*)$/,"$1$1");t=`"${t}"`;t=t.replace(r,"^$1");if(i){t=t.replace(r,"^$1")}return t}t.exports.command=escapeCommand;t.exports.argument=escapeArgument},2964:(t,r,i)=>{"use strict";const o=i(7147);const a=i(382);function readShebang(t){const r=150;const i=Buffer.alloc(r);let u;try{u=o.openSync(t,"r");o.readSync(u,i,0,r,0);o.closeSync(u)}catch(t){}return a(i.toString())}t.exports=readShebang},7534:(t,r,i)=>{"use strict";const o=i(1017);const a=i(6362);const u=i(6661);function resolveCommandAttempt(t,r){const i=t.options.env||process.env;const l=process.cwd();const h=t.options.cwd!=null;const p=h&&process.chdir!==undefined&&!process.chdir.disabled;if(p){try{process.chdir(t.options.cwd)}catch(t){}}let d;try{d=a.sync(t.command,{path:i[u({env:i})],pathExt:r?o.delimiter:undefined})}catch(t){}finally{if(p){process.chdir(l)}}if(d){d=o.resolve(h?t.options.cwd:"",d)}return d}function resolveCommand(t){return resolveCommandAttempt(t)||resolveCommandAttempt(t,true)}t.exports=resolveCommand},6661:t=>{"use strict";const pathKey=(t={})=>{const r=t.env||process.env;const i=t.platform||process.platform;if(i!=="win32"){return"PATH"}return Object.keys(r).reverse().find((t=>t.toUpperCase()==="PATH"))||"Path"};t.exports=pathKey;t.exports["default"]=pathKey},382:(t,r,i)=>{"use strict";const o=i(8690);t.exports=(t="")=>{const r=t.match(o);if(!r){return null}const[i,a]=r[0].replace(/#! ?/,"").split(" ");const u=i.split("/").pop();if(u==="env"){return a}return a?`${u} ${a}`:u}},8690:t=>{"use strict";t.exports=/^#!(.*)/},6362:(t,r,i)=>{const o=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const a=i(1017);const u=o?";":":";const l=i(228);const getNotFoundError=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"});const getPathInfo=(t,r)=>{const i=r.colon||u;const a=t.match(/\//)||o&&t.match(/\\/)?[""]:[...o?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(i)];const l=o?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const h=o?l.split(i):[""];if(o){if(t.indexOf(".")!==-1&&h[0]!=="")h.unshift("")}return{pathEnv:a,pathExt:h,pathExtExe:l}};const which=(t,r,i)=>{if(typeof r==="function"){i=r;r={}}if(!r)r={};const{pathEnv:o,pathExt:u,pathExtExe:h}=getPathInfo(t,r);const p=[];const step=i=>new Promise(((u,l)=>{if(i===o.length)return r.all&&p.length?u(p):l(getNotFoundError(t));const h=o[i];const d=/^".*"$/.test(h)?h.slice(1,-1):h;const m=a.join(d,t);const g=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;u(subStep(g,i,0))}));const subStep=(t,i,o)=>new Promise(((a,d)=>{if(o===u.length)return a(step(i+1));const m=u[o];l(t+m,{pathExt:h},((u,l)=>{if(!u&&l){if(r.all)p.push(t+m);else return a(t+m)}return a(subStep(t,i,o+1))}))}));return i?step(0).then((t=>i(null,t)),i):step(0)};const whichSync=(t,r)=>{r=r||{};const{pathEnv:i,pathExt:o,pathExtExe:u}=getPathInfo(t,r);const h=[];for(let p=0;p<i.length;p++){const d=i[p];const m=/^".*"$/.test(d)?d.slice(1,-1):d;const g=a.join(m,t);const y=!m&&/^\.[\\\/]/.test(t)?t.slice(0,2)+g:g;for(let t=0;t<o.length;t++){const i=y+o[t];try{const t=l.sync(i,{pathExt:u});if(t){if(r.all)h.push(i);else return i}}catch(t){}}}if(r.all&&h.length)return h;if(r.nothrow)return null;throw getNotFoundError(t)};t.exports=which;which.sync=whichSync},9851:(t,r,i)=>{r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage=localstorage();r.destroy=(()=>{let t=false;return()=>{if(!t){t=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();r.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 useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let t;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(r){r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff);if(!this.useColors){return}const i="color: "+this.color;r.splice(1,0,i,"color: inherit");let o=0;let a=0;r[0].replace(/%[a-zA-Z%]/g,(t=>{if(t==="%%"){return}o++;if(t==="%c"){a=o}}));r.splice(a,0,i)}r.log=console.debug||console.log||(()=>{});function save(t){try{if(t){r.storage.setItem("debug",t)}else{r.storage.removeItem("debug")}}catch(t){}}function load(){let t;try{t=r.storage.getItem("debug")}catch(t){}if(!t&&typeof process!=="undefined"&&"env"in process){t=process.env.DEBUG}return t}function localstorage(){try{return localStorage}catch(t){}}t.exports=i(6033)(r);const{formatters:o}=t.exports;o.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},6033:(t,r,i)=>{function setup(t){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=i(40);createDebug.destroy=destroy;Object.keys(t).forEach((r=>{createDebug[r]=t[r]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(t){let r=0;for(let i=0;i<t.length;i++){r=(r<<5)-r+t.charCodeAt(i);r|=0}return createDebug.colors[Math.abs(r)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(t){let r;let i=null;let o;let a;function debug(...t){if(!debug.enabled){return}const i=debug;const o=Number(new Date);const a=o-(r||o);i.diff=a;i.prev=r;i.curr=o;r=o;t[0]=createDebug.coerce(t[0]);if(typeof t[0]!=="string"){t.unshift("%O")}let u=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if(r==="%%"){return"%"}u++;const a=createDebug.formatters[o];if(typeof a==="function"){const o=t[u];r=a.call(i,o);t.splice(u,1);u--}return r}));createDebug.formatArgs.call(i,t);const l=i.log||createDebug.log;l.apply(i,t)}debug.namespace=t;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(t);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(i!==null){return i}if(o!==createDebug.namespaces){o=createDebug.namespaces;a=createDebug.enabled(t)}return a},set:t=>{i=t}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(t,r){const i=createDebug(this.namespace+(typeof r==="undefined"?":":r)+t);i.log=this.log;return i}function enable(t){createDebug.save(t);createDebug.namespaces=t;createDebug.names=[];createDebug.skips=[];let r;const i=(typeof t==="string"?t:"").split(/[\s,]+/);const o=i.length;for(r=0;r<o;r++){if(!i[r]){continue}t=i[r].replace(/\*/g,".*?");if(t[0]==="-"){createDebug.skips.push(new RegExp("^"+t.slice(1)+"$"))}else{createDebug.names.push(new RegExp("^"+t+"$"))}}}function disable(){const t=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((t=>"-"+t))].join(",");createDebug.enable("");return t}function enabled(t){if(t[t.length-1]==="*"){return true}let r;let i;for(r=0,i=createDebug.skips.length;r<i;r++){if(createDebug.skips[r].test(t)){return false}}for(r=0,i=createDebug.names.length;r<i;r++){if(createDebug.names[r].test(t)){return true}}return false}function toNamespace(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(t){if(t instanceof Error){return t.stack||t.message}return t}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}t.exports=setup},7984:(t,r,i)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){t.exports=i(9851)}else{t.exports=i(3860)}},3860:(t,r,i)=>{const o=i(6224);const a=i(3837);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.destroy=a.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");r.colors=[6,2,3,4,5,1];try{const t=i(395);if(t&&(t.stderr||t).level>=2){r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(t){}r.inspectOpts=Object.keys(process.env).filter((t=>/^debug_/i.test(t))).reduce(((t,r)=>{const i=r.substring(6).toLowerCase().replace(/_([a-z])/g,((t,r)=>r.toUpperCase()));let o=process.env[r];if(/^(yes|on|true|enabled)$/i.test(o)){o=true}else if(/^(no|off|false|disabled)$/i.test(o)){o=false}else if(o==="null"){o=null}else{o=Number(o)}t[i]=o;return t}),{});function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):o.isatty(process.stderr.fd)}function formatArgs(r){const{namespace:i,useColors:o}=this;if(o){const o=this.color;const a="[3"+(o<8?o:"8;5;"+o);const u=` ${a};1m${i} `;r[0]=u+r[0].split("\n").join("\n"+u);r.push(a+"m+"+t.exports.humanize(this.diff)+"")}else{r[0]=getDate()+i+" "+r[0]}}function getDate(){if(r.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...t){return process.stderr.write(a.formatWithOptions(r.inspectOpts,...t)+"\n")}function save(t){if(t){process.env.DEBUG=t}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(t){t.inspectOpts={};const i=Object.keys(r.inspectOpts);for(let o=0;o<i.length;o++){t.inspectOpts[i[o]]=r.inspectOpts[i[o]]}}t.exports=i(6033)(r);const{formatters:u}=t.exports;u.o=function(t){this.inspectOpts.colors=this.useColors;return a.inspect(t,this.inspectOpts).split("\n").map((t=>t.trim())).join(" ")};u.O=function(t){this.inspectOpts.colors=this.useColors;return a.inspect(t,this.inspectOpts)}},5134:t=>{"use strict";
2
+ (()=>{var __webpack_modules__={4971:(t,r,i)=>{"use strict";t=i.nmd(t);const o=i(2830);const wrapAnsi16=(t,r)=>function(){const i=t.apply(o,arguments);return`[${i+r}m`};const wrapAnsi256=(t,r)=>function(){const i=t.apply(o,arguments);return`[${38+r};5;${i}m`};const wrapAnsi16m=(t,r)=>function(){const i=t.apply(o,arguments);return`[${38+r};2;${i[0]};${i[1]};${i[2]}m`};function assembleStyles(){const t=new Map;const r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.grey=r.color.gray;for(const i of Object.keys(r)){const o=r[i];for(const i of Object.keys(o)){const a=o[i];r[i]={open:`[${a[0]}m`,close:`[${a[1]}m`};o[i]=r[i];t.set(a[0],a[1])}Object.defineProperty(r,i,{value:o,enumerable:false});Object.defineProperty(r,"codes",{value:t,enumerable:false})}const ansi2ansi=t=>t;const rgb2rgb=(t,r,i)=>[t,r,i];r.color.close="";r.bgColor.close="";r.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};r.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};r.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};r.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};r.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};r.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let t of Object.keys(o)){if(typeof o[t]!=="object"){continue}const i=o[t];if(t==="ansi16"){t="ansi"}if("ansi16"in i){r.color.ansi[t]=wrapAnsi16(i.ansi16,0);r.bgColor.ansi[t]=wrapAnsi16(i.ansi16,10)}if("ansi256"in i){r.color.ansi256[t]=wrapAnsi256(i.ansi256,0);r.bgColor.ansi256[t]=wrapAnsi256(i.ansi256,10)}if("rgb"in i){r.color.ansi16m[t]=wrapAnsi16m(i.rgb,0);r.bgColor.ansi16m[t]=wrapAnsi16m(i.rgb,10)}}return r}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},6870:(t,r,i)=>{"use strict";const o=i(5978);const a=i(4971);const u=i(1851).stdout;const l=i(6094);const h=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const p=["ansi","ansi","ansi256","ansi16m"];const d=new Set(["gray"]);const m=Object.create(null);function applyOptions(t,r){r=r||{};const i=u?u.level:0;t.level=r.level===undefined?i:r.level;t.enabled="enabled"in r?r.enabled:t.level>0}function Chalk(t){if(!this||!(this instanceof Chalk)||this.template){const r={};applyOptions(r,t);r.template=function(){const t=[].slice.call(arguments);return chalkTag.apply(null,[r.template].concat(t))};Object.setPrototypeOf(r,Chalk.prototype);Object.setPrototypeOf(r.template,r);r.template.constructor=Chalk;return r.template}applyOptions(this,t)}if(h){a.blue.open=""}for(const t of Object.keys(a)){a[t].closeRe=new RegExp(o(a[t].close),"g");m[t]={get(){const r=a[t];return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}}m.visible={get(){return build.call(this,this._styles||[],true,"visible")}};a.color.closeRe=new RegExp(o(a.color.close),"g");for(const t of Object.keys(a.color.ansi)){if(d.has(t)){continue}m[t]={get(){const r=this.level;return function(){const i=a.color[p[r]][t].apply(null,arguments);const o={open:i,close:a.color.close,closeRe:a.color.closeRe};return build.call(this,this._styles?this._styles.concat(o):[o],this._empty,t)}}}}a.bgColor.closeRe=new RegExp(o(a.bgColor.close),"g");for(const t of Object.keys(a.bgColor.ansi)){if(d.has(t)){continue}const r="bg"+t[0].toUpperCase()+t.slice(1);m[r]={get(){const r=this.level;return function(){const i=a.bgColor[p[r]][t].apply(null,arguments);const o={open:i,close:a.bgColor.close,closeRe:a.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(o):[o],this._empty,t)}}}}const g=Object.defineProperties((()=>{}),m);function build(t,r,i){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=t;builder._empty=r;const o=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return o.level},set(t){o.level=t}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return o.enabled},set(t){o.enabled=t}});builder.hasGrey=this.hasGrey||i==="gray"||i==="grey";builder.__proto__=g;return builder}function applyStyle(){const t=arguments;const r=t.length;let i=String(arguments[0]);if(r===0){return""}if(r>1){for(let o=1;o<r;o++){i+=" "+t[o]}}if(!this.enabled||this.level<=0||!i){return this._empty?"":i}const o=a.dim.open;if(h&&this.hasGrey){a.dim.open=""}for(const t of this._styles.slice().reverse()){i=t.open+i.replace(t.closeRe,t.open)+t.close;i=i.replace(/\r?\n/g,`${t.close}$&${t.open}`)}a.dim.open=o;return i}function chalkTag(t,r){if(!Array.isArray(r)){return[].slice.call(arguments,1).join(" ")}const i=[].slice.call(arguments,2);const o=[r.raw[0]];for(let t=1;t<r.length;t++){o.push(String(i[t-1]).replace(/[{}\\]/g,"\\$&"));o.push(String(r.raw[t]))}return l(t,o.join(""))}Object.defineProperties(Chalk.prototype,m);t.exports=Chalk();t.exports.supportsColor=u;t.exports["default"]=t.exports},6094:t=>{"use strict";const r=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const a=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const u=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(t){if(t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}return u.get(t)||t}function parseArguments(t,r){const i=[];const u=r.trim().split(/\s*,\s*/g);let l;for(const r of u){if(!isNaN(r)){i.push(Number(r))}else if(l=r.match(o)){i.push(l[2].replace(a,((t,r,i)=>r?unescape(r):i)))}else{throw new Error(`Invalid Chalk template style argument: ${r} (in style '${t}')`)}}return i}function parseStyle(t){i.lastIndex=0;const r=[];let o;while((o=i.exec(t))!==null){const t=o[1];if(o[2]){const i=parseArguments(t,o[2]);r.push([t].concat(i))}else{r.push([t])}}return r}function buildStyle(t,r){const i={};for(const t of r){for(const r of t.styles){i[r[0]]=t.inverse?null:r.slice(1)}}let o=t;for(const t of Object.keys(i)){if(Array.isArray(i[t])){if(!(t in o)){throw new Error(`Unknown Chalk style: ${t}`)}if(i[t].length>0){o=o[t].apply(o,i[t])}else{o=o[t]}}}return o}t.exports=(t,i)=>{const o=[];const a=[];let u=[];i.replace(r,((r,i,l,h,p,d)=>{if(i){u.push(unescape(i))}else if(h){const r=u.join("");u=[];a.push(o.length===0?r:buildStyle(t,o)(r));o.push({inverse:l,styles:parseStyle(h)})}else if(p){if(o.length===0){throw new Error("Found extraneous } in Chalk template literal")}a.push(buildStyle(t,o)(u.join("")));u=[];o.pop()}else{u.push(d)}}));a.push(u.join(""));if(o.length>0){const t=`Chalk template literal is missing ${o.length} closing bracket${o.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return a.join("")}},5978:t=>{"use strict";var r=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if(typeof t!=="string"){throw new TypeError("Expected a string")}return t.replace(r,"\\$&")}},6966:t=>{"use strict";t.exports=(t,r)=>{r=r||process.argv;const i=t.startsWith("-")?"":t.length===1?"-":"--";const o=r.indexOf(i+t);const a=r.indexOf("--");return o!==-1&&(a===-1?true:o<a)}},1851:(t,r,i)=>{"use strict";const o=i(2037);const a=i(6966);const u=process.env;let l;if(a("no-color")||a("no-colors")||a("color=false")){l=false}else if(a("color")||a("colors")||a("color=true")||a("color=always")){l=true}if("FORCE_COLOR"in u){l=u.FORCE_COLOR.length===0||parseInt(u.FORCE_COLOR,10)!==0}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t){if(l===false){return 0}if(a("color=16m")||a("color=full")||a("color=truecolor")){return 3}if(a("color=256")){return 2}if(t&&!t.isTTY&&l!==true){return 0}const r=l?1:0;if(process.platform==="win32"){const t=o.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in u){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((t=>t in u))||u.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in u){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(u.TEAMCITY_VERSION)?1:0}if(u.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in u){const t=parseInt((u.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(u.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(u.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(u.TERM)){return 1}if("COLORTERM"in u){return 1}if(u.TERM==="dumb"){return r}return r}function getSupportLevel(t){const r=supportsColor(t);return translateLevel(r)}t.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},5642:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const a=o(i(7987));function spawnAsync(t,r,i={}){const o=new Error;const u=o.stack?o.stack.replace(/^.*/," ..."):null;let l;let h=new Promise(((o,h)=>{let{ignoreStdio:p,...d}=i;l=(0,a.default)(t,r,d);let m="";let g="";if(!p){if(l.stdout){l.stdout.on("data",(t=>{m+=t}))}if(l.stderr){l.stderr.on("data",(t=>{g+=t}))}}let completionListener=(i,a)=>{l.removeListener("error",errorListener);let p={pid:l.pid,output:[m,g],stdout:m,stderr:g,status:i,signal:a};if(i!==0){let o=r&&r.length>0?` ${r.join(" ")}`:"";let l=a?new Error(`${t}${o} exited with signal: ${a}`):new Error(`${t}${o} exited with non-zero code: ${i}`);if(l.stack&&u){l.stack+=`\n${u}`}Object.assign(l,p);h(l)}else{o(p)}};let errorListener=t=>{if(p){l.removeListener("exit",completionListener)}else{l.removeListener("close",completionListener)}Object.assign(t,{pid:l.pid,output:[m,g],stdout:m,stderr:g,status:null,signal:null});h(t)};if(p){l.once("exit",completionListener)}else{l.once("close",completionListener)}l.once("error",errorListener)}));h.child=l;return h}t.exports=spawnAsync},1088:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createFileSystemAdapter=r.FILE_SYSTEM_ADAPTER=void 0;const o=i(7147);r.FILE_SYSTEM_ADAPTER={lstat:o.lstat,stat:o.stat,lstatSync:o.lstatSync,statSync:o.statSync,readdir:o.readdir,readdirSync:o.readdirSync};function createFileSystemAdapter(t){if(t===undefined){return r.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},r.FILE_SYSTEM_ADAPTER),t)}r.createFileSystemAdapter=createFileSystemAdapter},4919:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const i=process.versions.node.split(".");if(i[0]===undefined||i[1]===undefined){throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`)}const o=Number.parseInt(i[0],10);const a=Number.parseInt(i[1],10);const u=10;const l=10;const h=o>u;const p=o===u&&a>=l;r.IS_SUPPORT_READDIR_WITH_FILE_TYPES=h||p},7552:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Settings=r.scandirSync=r.scandir=void 0;const o=i(7091);const a=i(1328);const u=i(3022);r.Settings=u.default;function scandir(t,r,i){if(typeof r==="function"){o.read(t,getSettings(),r);return}o.read(t,getSettings(r),i)}r.scandir=scandir;function scandirSync(t,r){const i=getSettings(r);return a.read(t,i)}r.scandirSync=scandirSync;function getSettings(t={}){if(t instanceof u.default){return t}return new u.default(t)}},7091:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.readdir=r.readdirWithFileTypes=r.read=void 0;const o=i(2580);const a=i(1188);const u=i(4919);const l=i(1210);const h=i(4845);function read(t,r,i){if(!r.stats&&u.IS_SUPPORT_READDIR_WITH_FILE_TYPES){readdirWithFileTypes(t,r,i);return}readdir(t,r,i)}r.read=read;function readdirWithFileTypes(t,r,i){r.fs.readdir(t,{withFileTypes:true},((o,u)=>{if(o!==null){callFailureCallback(i,o);return}const l=u.map((i=>({dirent:i,name:i.name,path:h.joinPathSegments(t,i.name,r.pathSegmentSeparator)})));if(!r.followSymbolicLinks){callSuccessCallback(i,l);return}const p=l.map((t=>makeRplTaskEntry(t,r)));a(p,((t,r)=>{if(t!==null){callFailureCallback(i,t);return}callSuccessCallback(i,r)}))}))}r.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(t,r){return i=>{if(!t.dirent.isSymbolicLink()){i(null,t);return}r.fs.stat(t.path,((o,a)=>{if(o!==null){if(r.throwErrorOnBrokenSymbolicLink){i(o);return}i(null,t);return}t.dirent=l.fs.createDirentFromStats(t.name,a);i(null,t)}))}}function readdir(t,r,i){r.fs.readdir(t,((u,p)=>{if(u!==null){callFailureCallback(i,u);return}const d=p.map((i=>{const a=h.joinPathSegments(t,i,r.pathSegmentSeparator);return t=>{o.stat(a,r.fsStatSettings,((o,u)=>{if(o!==null){t(o);return}const h={name:i,path:a,dirent:l.fs.createDirentFromStats(i,u)};if(r.stats){h.stats=u}t(null,h)}))}}));a(d,((t,r)=>{if(t!==null){callFailureCallback(i,t);return}callSuccessCallback(i,r)}))}))}r.readdir=readdir;function callFailureCallback(t,r){t(r)}function callSuccessCallback(t,r){t(null,r)}},4845:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.joinPathSegments=void 0;function joinPathSegments(t,r,i){if(t.endsWith(i)){return t+r}return t+i+r}r.joinPathSegments=joinPathSegments},1328:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.readdir=r.readdirWithFileTypes=r.read=void 0;const o=i(2580);const a=i(4919);const u=i(1210);const l=i(4845);function read(t,r){if(!r.stats&&a.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,r)}return readdir(t,r)}r.read=read;function readdirWithFileTypes(t,r){const i=r.fs.readdirSync(t,{withFileTypes:true});return i.map((i=>{const o={dirent:i,name:i.name,path:l.joinPathSegments(t,i.name,r.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&r.followSymbolicLinks){try{const t=r.fs.statSync(o.path);o.dirent=u.fs.createDirentFromStats(o.name,t)}catch(t){if(r.throwErrorOnBrokenSymbolicLink){throw t}}}return o}))}r.readdirWithFileTypes=readdirWithFileTypes;function readdir(t,r){const i=r.fs.readdirSync(t);return i.map((i=>{const a=l.joinPathSegments(t,i,r.pathSegmentSeparator);const h=o.statSync(a,r.fsStatSettings);const p={name:i,path:a,dirent:u.fs.createDirentFromStats(i,h)};if(r.stats){p.stats=h}return p}))}r.readdir=readdir},3022:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1017);const a=i(2580);const u=i(1088);class Settings{constructor(t={}){this._options=t;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=u.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,o.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new a.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!==null&&t!==void 0?t:r}}r["default"]=Settings},7794:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createDirentFromStats=void 0;class DirentFromStats{constructor(t,r){this.name=t;this.isBlockDevice=r.isBlockDevice.bind(r);this.isCharacterDevice=r.isCharacterDevice.bind(r);this.isDirectory=r.isDirectory.bind(r);this.isFIFO=r.isFIFO.bind(r);this.isFile=r.isFile.bind(r);this.isSocket=r.isSocket.bind(r);this.isSymbolicLink=r.isSymbolicLink.bind(r)}}function createDirentFromStats(t,r){return new DirentFromStats(t,r)}r.createDirentFromStats=createDirentFromStats},1210:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fs=void 0;const o=i(7794);r.fs=o},7650:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createFileSystemAdapter=r.FILE_SYSTEM_ADAPTER=void 0;const o=i(7147);r.FILE_SYSTEM_ADAPTER={lstat:o.lstat,stat:o.stat,lstatSync:o.lstatSync,statSync:o.statSync};function createFileSystemAdapter(t){if(t===undefined){return r.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},r.FILE_SYSTEM_ADAPTER),t)}r.createFileSystemAdapter=createFileSystemAdapter},2580:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.statSync=r.stat=r.Settings=void 0;const o=i(5939);const a=i(105);const u=i(2466);r.Settings=u.default;function stat(t,r,i){if(typeof r==="function"){o.read(t,getSettings(),r);return}o.read(t,getSettings(r),i)}r.stat=stat;function statSync(t,r){const i=getSettings(r);return a.read(t,i)}r.statSync=statSync;function getSettings(t={}){if(t instanceof u.default){return t}return new u.default(t)}},5939:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.read=void 0;function read(t,r,i){r.fs.lstat(t,((o,a)=>{if(o!==null){callFailureCallback(i,o);return}if(!a.isSymbolicLink()||!r.followSymbolicLink){callSuccessCallback(i,a);return}r.fs.stat(t,((t,o)=>{if(t!==null){if(r.throwErrorOnBrokenSymbolicLink){callFailureCallback(i,t);return}callSuccessCallback(i,a);return}if(r.markSymbolicLink){o.isSymbolicLink=()=>true}callSuccessCallback(i,o)}))}))}r.read=read;function callFailureCallback(t,r){t(r)}function callSuccessCallback(t,r){t(null,r)}},105:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.read=void 0;function read(t,r){const i=r.fs.lstatSync(t);if(!i.isSymbolicLink()||!r.followSymbolicLink){return i}try{const i=r.fs.statSync(t);if(r.markSymbolicLink){i.isSymbolicLink=()=>true}return i}catch(t){if(!r.throwErrorOnBrokenSymbolicLink){return i}throw t}}r.read=read},2466:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(7650);class Settings{constructor(t={}){this._options=t;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=o.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(t,r){return t!==null&&t!==void 0?t:r}}r["default"]=Settings},803:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Settings=r.walkStream=r.walkSync=r.walk=void 0;const o=i(6887);const a=i(7499);const u=i(6875);const l=i(8265);r.Settings=l.default;function walk(t,r,i){if(typeof r==="function"){new o.default(t,getSettings()).read(r);return}new o.default(t,getSettings(r)).read(i)}r.walk=walk;function walkSync(t,r){const i=getSettings(r);const o=new u.default(t,i);return o.read()}r.walkSync=walkSync;function walkStream(t,r){const i=getSettings(r);const o=new a.default(t,i);return o.read()}r.walkStream=walkStream;function getSettings(t={}){if(t instanceof l.default){return t}return new l.default(t)}},6887:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6203);class AsyncProvider{constructor(t,r){this._root=t;this._settings=r;this._reader=new o.default(this._root,this._settings);this._storage=[]}read(t){this._reader.onError((r=>{callFailureCallback(t,r)}));this._reader.onEntry((t=>{this._storage.push(t)}));this._reader.onEnd((()=>{callSuccessCallback(t,this._storage)}));this._reader.read()}}r["default"]=AsyncProvider;function callFailureCallback(t,r){t(r)}function callSuccessCallback(t,r){t(null,r)}},7499:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(2781);const a=i(6203);class StreamProvider{constructor(t,r){this._root=t;this._settings=r;this._reader=new a.default(this._root,this._settings);this._stream=new o.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError((t=>{this._stream.emit("error",t)}));this._reader.onEntry((t=>{this._stream.push(t)}));this._reader.onEnd((()=>{this._stream.push(null)}));this._reader.read();return this._stream}}r["default"]=StreamProvider},6875:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1214);class SyncProvider{constructor(t,r){this._root=t;this._settings=r;this._reader=new o.default(this._root,this._settings)}read(){return this._reader.read()}}r["default"]=SyncProvider},6203:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(2361);const a=i(7552);const u=i(2696);const l=i(7628);const h=i(3402);class AsyncReader extends h.default{constructor(t,r){super(t,r);this._settings=r;this._scandir=a.scandir;this._emitter=new o.EventEmitter;this._queue=u(this._worker.bind(this),this._settings.concurrency);this._isFatalError=false;this._isDestroyed=false;this._queue.drain=()=>{if(!this._isFatalError){this._emitter.emit("end")}}}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)}));return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){const i={directory:t,base:r};this._queue.push(i,(t=>{if(t!==null){this._handleError(t)}}))}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,((i,o)=>{if(i!==null){r(i,undefined);return}for(const r of o){this._handleEntry(r,t.base)}r(null,undefined)}))}_handleError(t){if(this._isDestroyed||!l.isFatalError(this._settings,t)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",t)}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError){return}const i=t.path;if(r!==undefined){t.path=l.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)}if(l.isAppliedFilter(this._settings.entryFilter,t)){this._emitEntry(t)}if(t.dirent.isDirectory()&&l.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(i,r===undefined?undefined:t.path)}}_emitEntry(t){this._emitter.emit("entry",t)}}r["default"]=AsyncReader},7628:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.joinPathSegments=r.replacePathSegmentSeparator=r.isAppliedFilter=r.isFatalError=void 0;function isFatalError(t,r){if(t.errorFilter===null){return true}return!t.errorFilter(r)}r.isFatalError=isFatalError;function isAppliedFilter(t,r){return t===null||t(r)}r.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(t,r){return t.split(/[/\\]/).join(r)}r.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(t,r,i){if(t===""){return r}if(t.endsWith(i)){return t+r}return t+i+r}r.joinPathSegments=joinPathSegments},3402:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(7628);class Reader{constructor(t,r){this._root=t;this._settings=r;this._root=o.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}}r["default"]=Reader},1214:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(7552);const a=i(7628);const u=i(3402);class SyncReader extends u.default{constructor(){super(...arguments);this._scandir=o.scandirSync;this._storage=[];this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(const t of this._queue.values()){this._handleDirectory(t.directory,t.base)}}_handleDirectory(t,r){try{const i=this._scandir(t,this._settings.fsScandirSettings);for(const t of i){this._handleEntry(t,r)}}catch(t){this._handleError(t)}}_handleError(t){if(!a.isFatalError(this._settings,t)){return}throw t}_handleEntry(t,r){const i=t.path;if(r!==undefined){t.path=a.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)}if(a.isAppliedFilter(this._settings.entryFilter,t)){this._pushToStorage(t)}if(t.dirent.isDirectory()&&a.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(i,r===undefined?undefined:t.path)}}_pushToStorage(t){this._storage.push(t)}}r["default"]=SyncReader},8265:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1017);const a=i(7552);class Settings{constructor(t={}){this._options=t;this.basePath=this._getValue(this._options.basePath,undefined);this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY);this.deepFilter=this._getValue(this._options.deepFilter,null);this.entryFilter=this._getValue(this._options.entryFilter,null);this.errorFilter=this._getValue(this._options.errorFilter,null);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,o.sep);this.fsScandirSettings=new a.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!==null&&t!==void 0?t:r}}r["default"]=Settings},3741:(t,r,i)=>{"use strict";t=i.nmd(t);const wrapAnsi16=(t,r)=>(...i)=>{const o=t(...i);return`[${o+r}m`};const wrapAnsi256=(t,r)=>(...i)=>{const o=t(...i);return`[${38+r};5;${o}m`};const wrapAnsi16m=(t,r)=>(...i)=>{const o=t(...i);return`[${38+r};2;${o[0]};${o[1]};${o[2]}m`};const ansi2ansi=t=>t;const rgb2rgb=(t,r,i)=>[t,r,i];const setLazyProperty=(t,r,i)=>{Object.defineProperty(t,r,{get:()=>{const o=i();Object.defineProperty(t,r,{value:o,enumerable:true,configurable:true});return o},enumerable:true,configurable:true})};let o;const makeDynamicStyles=(t,r,a,u)=>{if(o===undefined){o=i(1593)}const l=u?10:0;const h={};for(const[i,u]of Object.entries(o)){const o=i==="ansi16"?"ansi":i;if(i===r){h[o]=t(a,l)}else if(typeof u==="object"){h[o]=t(u[r],l)}}return h};function assembleStyles(){const t=new Map;const r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.gray=r.color.blackBright;r.bgColor.bgGray=r.bgColor.bgBlackBright;r.color.grey=r.color.blackBright;r.bgColor.bgGrey=r.bgColor.bgBlackBright;for(const[i,o]of Object.entries(r)){for(const[i,a]of Object.entries(o)){r[i]={open:`[${a[0]}m`,close:`[${a[1]}m`};o[i]=r[i];t.set(a[0],a[1])}Object.defineProperty(r,i,{value:o,enumerable:false})}Object.defineProperty(r,"codes",{value:t,enumerable:false});r.color.close="";r.bgColor.close="";setLazyProperty(r.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(r.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(r.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(r.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(r.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(r.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return r}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},7606:(t,r,i)=>{const o=i(9407);const a={};for(const t of Object.keys(o)){a[o[t]]=t}const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=u;for(const t of Object.keys(u)){if(!("channels"in u[t])){throw new Error("missing channels property: "+t)}if(!("labels"in u[t])){throw new Error("missing channel labels property: "+t)}if(u[t].labels.length!==u[t].channels){throw new Error("channel and label counts mismatch: "+t)}const{channels:r,labels:i}=u[t];delete u[t].channels;delete u[t].labels;Object.defineProperty(u[t],"channels",{value:r});Object.defineProperty(u[t],"labels",{value:i})}u.rgb.hsl=function(t){const r=t[0]/255;const i=t[1]/255;const o=t[2]/255;const a=Math.min(r,i,o);const u=Math.max(r,i,o);const l=u-a;let h;let p;if(u===a){h=0}else if(r===u){h=(i-o)/l}else if(i===u){h=2+(o-r)/l}else if(o===u){h=4+(r-i)/l}h=Math.min(h*60,360);if(h<0){h+=360}const d=(a+u)/2;if(u===a){p=0}else if(d<=.5){p=l/(u+a)}else{p=l/(2-u-a)}return[h,p*100,d*100]};u.rgb.hsv=function(t){let r;let i;let o;let a;let u;const l=t[0]/255;const h=t[1]/255;const p=t[2]/255;const d=Math.max(l,h,p);const m=d-Math.min(l,h,p);const diffc=function(t){return(d-t)/6/m+1/2};if(m===0){a=0;u=0}else{u=m/d;r=diffc(l);i=diffc(h);o=diffc(p);if(l===d){a=o-i}else if(h===d){a=1/3+r-o}else if(p===d){a=2/3+i-r}if(a<0){a+=1}else if(a>1){a-=1}}return[a*360,u*100,d*100]};u.rgb.hwb=function(t){const r=t[0];const i=t[1];let o=t[2];const a=u.rgb.hsl(t)[0];const l=1/255*Math.min(r,Math.min(i,o));o=1-1/255*Math.max(r,Math.max(i,o));return[a,l*100,o*100]};u.rgb.cmyk=function(t){const r=t[0]/255;const i=t[1]/255;const o=t[2]/255;const a=Math.min(1-r,1-i,1-o);const u=(1-r-a)/(1-a)||0;const l=(1-i-a)/(1-a)||0;const h=(1-o-a)/(1-a)||0;return[u*100,l*100,h*100,a*100]};function comparativeDistance(t,r){return(t[0]-r[0])**2+(t[1]-r[1])**2+(t[2]-r[2])**2}u.rgb.keyword=function(t){const r=a[t];if(r){return r}let i=Infinity;let u;for(const r of Object.keys(o)){const a=o[r];const l=comparativeDistance(t,a);if(l<i){i=l;u=r}}return u};u.keyword.rgb=function(t){return o[t]};u.rgb.xyz=function(t){let r=t[0]/255;let i=t[1]/255;let o=t[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;const a=r*.4124+i*.3576+o*.1805;const u=r*.2126+i*.7152+o*.0722;const l=r*.0193+i*.1192+o*.9505;return[a*100,u*100,l*100]};u.rgb.lab=function(t){const r=u.rgb.xyz(t);let i=r[0];let o=r[1];let a=r[2];i/=95.047;o/=100;a/=108.883;i=i>.008856?i**(1/3):7.787*i+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;a=a>.008856?a**(1/3):7.787*a+16/116;const l=116*o-16;const h=500*(i-o);const p=200*(o-a);return[l,h,p]};u.hsl.rgb=function(t){const r=t[0]/360;const i=t[1]/100;const o=t[2]/100;let a;let u;let l;if(i===0){l=o*255;return[l,l,l]}if(o<.5){a=o*(1+i)}else{a=o+i-o*i}const h=2*o-a;const p=[0,0,0];for(let t=0;t<3;t++){u=r+1/3*-(t-1);if(u<0){u++}if(u>1){u--}if(6*u<1){l=h+(a-h)*6*u}else if(2*u<1){l=a}else if(3*u<2){l=h+(a-h)*(2/3-u)*6}else{l=h}p[t]=l*255}return p};u.hsl.hsv=function(t){const r=t[0];let i=t[1]/100;let o=t[2]/100;let a=i;const u=Math.max(o,.01);o*=2;i*=o<=1?o:2-o;a*=u<=1?u:2-u;const l=(o+i)/2;const h=o===0?2*a/(u+a):2*i/(o+i);return[r,h*100,l*100]};u.hsv.rgb=function(t){const r=t[0]/60;const i=t[1]/100;let o=t[2]/100;const a=Math.floor(r)%6;const u=r-Math.floor(r);const l=255*o*(1-i);const h=255*o*(1-i*u);const p=255*o*(1-i*(1-u));o*=255;switch(a){case 0:return[o,p,l];case 1:return[h,o,l];case 2:return[l,o,p];case 3:return[l,h,o];case 4:return[p,l,o];case 5:return[o,l,h]}};u.hsv.hsl=function(t){const r=t[0];const i=t[1]/100;const o=t[2]/100;const a=Math.max(o,.01);let u;let l;l=(2-i)*o;const h=(2-i)*a;u=i*a;u/=h<=1?h:2-h;u=u||0;l/=2;return[r,u*100,l*100]};u.hwb.rgb=function(t){const r=t[0]/360;let i=t[1]/100;let o=t[2]/100;const a=i+o;let u;if(a>1){i/=a;o/=a}const l=Math.floor(6*r);const h=1-o;u=6*r-l;if((l&1)!==0){u=1-u}const p=i+u*(h-i);let d;let m;let g;switch(l){default:case 6:case 0:d=h;m=p;g=i;break;case 1:d=p;m=h;g=i;break;case 2:d=i;m=h;g=p;break;case 3:d=i;m=p;g=h;break;case 4:d=p;m=i;g=h;break;case 5:d=h;m=i;g=p;break}return[d*255,m*255,g*255]};u.cmyk.rgb=function(t){const r=t[0]/100;const i=t[1]/100;const o=t[2]/100;const a=t[3]/100;const u=1-Math.min(1,r*(1-a)+a);const l=1-Math.min(1,i*(1-a)+a);const h=1-Math.min(1,o*(1-a)+a);return[u*255,l*255,h*255]};u.xyz.rgb=function(t){const r=t[0]/100;const i=t[1]/100;const o=t[2]/100;let a;let u;let l;a=r*3.2406+i*-1.5372+o*-.4986;u=r*-.9689+i*1.8758+o*.0415;l=r*.0557+i*-.204+o*1.057;a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92;u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92;l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92;a=Math.min(Math.max(0,a),1);u=Math.min(Math.max(0,u),1);l=Math.min(Math.max(0,l),1);return[a*255,u*255,l*255]};u.xyz.lab=function(t){let r=t[0];let i=t[1];let o=t[2];r/=95.047;i/=100;o/=108.883;r=r>.008856?r**(1/3):7.787*r+16/116;i=i>.008856?i**(1/3):7.787*i+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*i-16;const u=500*(r-i);const l=200*(i-o);return[a,u,l]};u.lab.xyz=function(t){const r=t[0];const i=t[1];const o=t[2];let a;let u;let l;u=(r+16)/116;a=i/500+u;l=u-o/200;const h=u**3;const p=a**3;const d=l**3;u=h>.008856?h:(u-16/116)/7.787;a=p>.008856?p:(a-16/116)/7.787;l=d>.008856?d:(l-16/116)/7.787;a*=95.047;u*=100;l*=108.883;return[a,u,l]};u.lab.lch=function(t){const r=t[0];const i=t[1];const o=t[2];let a;const u=Math.atan2(o,i);a=u*360/2/Math.PI;if(a<0){a+=360}const l=Math.sqrt(i*i+o*o);return[r,l,a]};u.lch.lab=function(t){const r=t[0];const i=t[1];const o=t[2];const a=o/360*2*Math.PI;const u=i*Math.cos(a);const l=i*Math.sin(a);return[r,u,l]};u.rgb.ansi16=function(t,r=null){const[i,o,a]=t;let l=r===null?u.rgb.hsv(t)[2]:r;l=Math.round(l/50);if(l===0){return 30}let h=30+(Math.round(a/255)<<2|Math.round(o/255)<<1|Math.round(i/255));if(l===2){h+=60}return h};u.hsv.ansi16=function(t){return u.rgb.ansi16(u.hsv.rgb(t),t[2])};u.rgb.ansi256=function(t){const r=t[0];const i=t[1];const o=t[2];if(r===i&&i===o){if(r<8){return 16}if(r>248){return 231}return Math.round((r-8)/247*24)+232}const a=16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(o/255*5);return a};u.ansi16.rgb=function(t){let r=t%10;if(r===0||r===7){if(t>50){r+=3.5}r=r/10.5*255;return[r,r,r]}const i=(~~(t>50)+1)*.5;const o=(r&1)*i*255;const a=(r>>1&1)*i*255;const u=(r>>2&1)*i*255;return[o,a,u]};u.ansi256.rgb=function(t){if(t>=232){const r=(t-232)*10+8;return[r,r,r]}t-=16;let r;const i=Math.floor(t/36)/5*255;const o=Math.floor((r=t%36)/6)/5*255;const a=r%6/5*255;return[i,o,a]};u.rgb.hex=function(t){const r=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);const i=r.toString(16).toUpperCase();return"000000".substring(i.length)+i};u.hex.rgb=function(t){const r=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r){return[0,0,0]}let i=r[0];if(r[0].length===3){i=i.split("").map((t=>t+t)).join("")}const o=parseInt(i,16);const a=o>>16&255;const u=o>>8&255;const l=o&255;return[a,u,l]};u.rgb.hcg=function(t){const r=t[0]/255;const i=t[1]/255;const o=t[2]/255;const a=Math.max(Math.max(r,i),o);const u=Math.min(Math.min(r,i),o);const l=a-u;let h;let p;if(l<1){h=u/(1-l)}else{h=0}if(l<=0){p=0}else if(a===r){p=(i-o)/l%6}else if(a===i){p=2+(o-r)/l}else{p=4+(r-i)/l}p/=6;p%=1;return[p*360,l*100,h*100]};u.hsl.hcg=function(t){const r=t[1]/100;const i=t[2]/100;const o=i<.5?2*r*i:2*r*(1-i);let a=0;if(o<1){a=(i-.5*o)/(1-o)}return[t[0],o*100,a*100]};u.hsv.hcg=function(t){const r=t[1]/100;const i=t[2]/100;const o=r*i;let a=0;if(o<1){a=(i-o)/(1-o)}return[t[0],o*100,a*100]};u.hcg.rgb=function(t){const r=t[0]/360;const i=t[1]/100;const o=t[2]/100;if(i===0){return[o*255,o*255,o*255]}const a=[0,0,0];const u=r%1*6;const l=u%1;const h=1-l;let p=0;switch(Math.floor(u)){case 0:a[0]=1;a[1]=l;a[2]=0;break;case 1:a[0]=h;a[1]=1;a[2]=0;break;case 2:a[0]=0;a[1]=1;a[2]=l;break;case 3:a[0]=0;a[1]=h;a[2]=1;break;case 4:a[0]=l;a[1]=0;a[2]=1;break;default:a[0]=1;a[1]=0;a[2]=h}p=(1-i)*o;return[(i*a[0]+p)*255,(i*a[1]+p)*255,(i*a[2]+p)*255]};u.hcg.hsv=function(t){const r=t[1]/100;const i=t[2]/100;const o=r+i*(1-r);let a=0;if(o>0){a=r/o}return[t[0],a*100,o*100]};u.hcg.hsl=function(t){const r=t[1]/100;const i=t[2]/100;const o=i*(1-r)+.5*r;let a=0;if(o>0&&o<.5){a=r/(2*o)}else if(o>=.5&&o<1){a=r/(2*(1-o))}return[t[0],a*100,o*100]};u.hcg.hwb=function(t){const r=t[1]/100;const i=t[2]/100;const o=r+i*(1-r);return[t[0],(o-r)*100,(1-o)*100]};u.hwb.hcg=function(t){const r=t[1]/100;const i=t[2]/100;const o=1-i;const a=o-r;let u=0;if(a<1){u=(o-a)/(1-a)}return[t[0],a*100,u*100]};u.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};u.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};u.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};u.gray.hsl=function(t){return[0,0,t[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(t){return[0,100,t[0]]};u.gray.cmyk=function(t){return[0,0,0,t[0]]};u.gray.lab=function(t){return[t[0],0,0]};u.gray.hex=function(t){const r=Math.round(t[0]/100*255)&255;const i=(r<<16)+(r<<8)+r;const o=i.toString(16).toUpperCase();return"000000".substring(o.length)+o};u.rgb.gray=function(t){const r=(t[0]+t[1]+t[2])/3;return[r/255*100]}},1593:(t,r,i)=>{const o=i(7606);const a=i(1529);const u={};const l=Object.keys(o);function wrapRaw(t){const wrappedFn=function(...r){const i=r[0];if(i===undefined||i===null){return i}if(i.length>1){r=i}return t(r)};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}function wrapRounded(t){const wrappedFn=function(...r){const i=r[0];if(i===undefined||i===null){return i}if(i.length>1){r=i}const o=t(r);if(typeof o==="object"){for(let t=o.length,r=0;r<t;r++){o[r]=Math.round(o[r])}}return o};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}l.forEach((t=>{u[t]={};Object.defineProperty(u[t],"channels",{value:o[t].channels});Object.defineProperty(u[t],"labels",{value:o[t].labels});const r=a(t);const i=Object.keys(r);i.forEach((i=>{const o=r[i];u[t][i]=wrapRounded(o);u[t][i].raw=wrapRaw(o)}))}));t.exports=u},1529:(t,r,i)=>{const o=i(7606);function buildGraph(){const t={};const r=Object.keys(o);for(let i=r.length,o=0;o<i;o++){t[r[o]]={distance:-1,parent:null}}return t}function deriveBFS(t){const r=buildGraph();const i=[t];r[t].distance=0;while(i.length){const t=i.pop();const a=Object.keys(o[t]);for(let o=a.length,u=0;u<o;u++){const o=a[u];const l=r[o];if(l.distance===-1){l.distance=r[t].distance+1;l.parent=t;i.unshift(o)}}}return r}function link(t,r){return function(i){return r(t(i))}}function wrapConversion(t,r){const i=[r[t].parent,t];let a=o[r[t].parent][t];let u=r[t].parent;while(r[u].parent){i.unshift(r[u].parent);a=link(o[r[u].parent][u],a);u=r[u].parent}a.conversion=i;return a}t.exports=function(t){const r=deriveBFS(t);const i={};const o=Object.keys(r);for(let t=o.length,a=0;a<t;a++){const t=o[a];const u=r[t];if(u.parent===null){continue}i[t]=wrapConversion(t,r)}return i}},4816:t=>{const r=Symbol("arg flag");class ArgError extends Error{constructor(t,r){super(t);this.name="ArgError";this.code=r;Object.setPrototypeOf(this,ArgError.prototype)}}function arg(t,{argv:i=process.argv.slice(2),permissive:o=false,stopAtPositional:a=false}={}){if(!t){throw new ArgError("argument specification object is required","ARG_CONFIG_NO_SPEC")}const u={_:[]};const l={};const h={};for(const i of Object.keys(t)){if(!i){throw new ArgError("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY")}if(i[0]!=="-"){throw new ArgError(`argument key must start with '-' but found: '${i}'`,"ARG_CONFIG_NONOPT_KEY")}if(i.length===1){throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${i}`,"ARG_CONFIG_NONAME_KEY")}if(typeof t[i]==="string"){l[i]=t[i];continue}let o=t[i];let a=false;if(Array.isArray(o)&&o.length===1&&typeof o[0]==="function"){const[t]=o;o=(r,i,o=[])=>{o.push(t(r,i,o[o.length-1]));return o};a=t===Boolean||t[r]===true}else if(typeof o==="function"){a=o===Boolean||o[r]===true}else{throw new ArgError(`type missing or not a function or valid array type: ${i}`,"ARG_CONFIG_VAD_TYPE")}if(i[1]!=="-"&&i.length>2){throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${i}`,"ARG_CONFIG_SHORTOPT_TOOLONG")}h[i]=[o,a]}for(let t=0,r=i.length;t<r;t++){const r=i[t];if(a&&u._.length>0){u._=u._.concat(i.slice(t));break}if(r==="--"){u._=u._.concat(i.slice(t+1));break}if(r.length>1&&r[0]==="-"){const a=r[1]==="-"||r.length===2?[r]:r.slice(1).split("").map((t=>`-${t}`));for(let r=0;r<a.length;r++){const p=a[r];const[d,m]=p[1]==="-"?p.split(/=(.*)/,2):[p,undefined];let g=d;while(g in l){g=l[g]}if(!(g in h)){if(o){u._.push(p);continue}else{throw new ArgError(`unknown or unexpected option: ${d}`,"ARG_UNKNOWN_OPTION")}}const[y,A]=h[g];if(!A&&r+1<a.length){throw new ArgError(`option requires argument (but was followed by another short argument): ${d}`,"ARG_MISSING_REQUIRED_SHORTARG")}if(A){u[g]=y(true,g,u[g])}else if(m===undefined){if(i.length<t+2||i[t+1].length>1&&i[t+1][0]==="-"&&!(i[t+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(y===Number||typeof BigInt!=="undefined"&&y===BigInt))){const t=d===g?"":` (alias for ${g})`;throw new ArgError(`option requires argument: ${d}${t}`,"ARG_MISSING_REQUIRED_LONGARG")}u[g]=y(i[t+1],g,u[g]);++t}else{u[g]=y(m,g,u[g])}}}else{u._.push(r)}}return u}arg.flag=t=>{t[r]=true;return t};arg.COUNT=arg.flag(((t,r,i)=>(i||0)+1));arg.ArgError=ArgError;t.exports=arg},538:(t,r,i)=>{"use strict";const o=i(9200);const a=i(3668);const u=i(5961);const l=i(9594);const braces=(t,r={})=>{let i=[];if(Array.isArray(t)){for(const o of t){const t=braces.create(o,r);if(Array.isArray(t)){i.push(...t)}else{i.push(t)}}}else{i=[].concat(braces.create(t,r))}if(r&&r.expand===true&&r.nodupes===true){i=[...new Set(i)]}return i};braces.parse=(t,r={})=>l(t,r);braces.stringify=(t,r={})=>{if(typeof t==="string"){return o(braces.parse(t,r),r)}return o(t,r)};braces.compile=(t,r={})=>{if(typeof t==="string"){t=braces.parse(t,r)}return a(t,r)};braces.expand=(t,r={})=>{if(typeof t==="string"){t=braces.parse(t,r)}let i=u(t,r);if(r.noempty===true){i=i.filter(Boolean)}if(r.nodupes===true){i=[...new Set(i)]}return i};braces.create=(t,r={})=>{if(t===""||t.length<3){return[t]}return r.expand!==true?braces.compile(t,r):braces.expand(t,r)};t.exports=braces},3668:(t,r,i)=>{"use strict";const o=i(3488);const a=i(4691);const compile=(t,r={})=>{const walk=(t,i={})=>{const u=a.isInvalidBrace(i);const l=t.invalid===true&&r.escapeInvalid===true;const h=u===true||l===true;const p=r.escapeInvalid===true?"\\":"";let d="";if(t.isOpen===true){return p+t.value}if(t.isClose===true){console.log("node.isClose",p,t.value);return p+t.value}if(t.type==="open"){return h?p+t.value:"("}if(t.type==="close"){return h?p+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":h?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){const i=a.reduce(t.nodes);const u=o(...i,{...r,wrap:false,toRegex:true,strictZeros:true});if(u.length!==0){return i.length>1&&u.length>1?`(${u})`:u}}if(t.nodes){for(const r of t.nodes){d+=walk(r,t)}}return d};return walk(t)};t.exports=compile},5529:t=>{"use strict";t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},5961:(t,r,i)=>{"use strict";const o=i(3488);const a=i(9200);const u=i(4691);const append=(t="",r="",i=false)=>{const o=[];t=[].concat(t);r=[].concat(r);if(!r.length)return t;if(!t.length){return i?u.flatten(r).map((t=>`{${t}}`)):r}for(const a of t){if(Array.isArray(a)){for(const t of a){o.push(append(t,r,i))}}else{for(let t of r){if(i===true&&typeof t==="string")t=`{${t}}`;o.push(Array.isArray(t)?append(a,t,i):a+t)}}}return u.flatten(o)};const expand=(t,r={})=>{const i=r.rangeLimit===undefined?1e3:r.rangeLimit;const walk=(t,l={})=>{t.queue=[];let h=l;let p=l.queue;while(h.type!=="brace"&&h.type!=="root"&&h.parent){h=h.parent;p=h.queue}if(t.invalid||t.dollar){p.push(append(p.pop(),a(t,r)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){p.push(append(p.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){const l=u.reduce(t.nodes);if(u.exceedsLimit(...l,r.step,i)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let h=o(...l,r);if(h.length===0){h=a(t,r)}p.push(append(p.pop(),h));t.nodes=[];return}const d=u.encloseBrace(t);let m=t.queue;let g=t;while(g.type!=="brace"&&g.type!=="root"&&g.parent){g=g.parent;m=g.queue}for(let r=0;r<t.nodes.length;r++){const i=t.nodes[r];if(i.type==="comma"&&t.type==="brace"){if(r===1)m.push("");m.push("");continue}if(i.type==="close"){p.push(append(p.pop(),m,d));continue}if(i.value&&i.type!=="open"){m.push(append(m.pop(),i.value));continue}if(i.nodes){walk(i,t)}}return m};return u.flatten(walk(t))};t.exports=expand},9594:(t,r,i)=>{"use strict";const o=i(9200);const{MAX_LENGTH:a,CHAR_BACKSLASH:u,CHAR_BACKTICK:l,CHAR_COMMA:h,CHAR_DOT:p,CHAR_LEFT_PARENTHESES:d,CHAR_RIGHT_PARENTHESES:m,CHAR_LEFT_CURLY_BRACE:g,CHAR_RIGHT_CURLY_BRACE:y,CHAR_LEFT_SQUARE_BRACKET:A,CHAR_RIGHT_SQUARE_BRACKET:b,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:w,CHAR_NO_BREAK_SPACE:E,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=i(5529);const parse=(t,r={})=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}const i=r||{};const S=typeof i.maxLength==="number"?Math.min(a,i.maxLength):a;if(t.length>S){throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${S})`)}const C={type:"root",input:t,nodes:[]};const D=[C];let x=C;let R=C;let O=0;const k=t.length;let P=0;let T=0;let L;const advance=()=>t[P++];const push=t=>{if(t.type==="text"&&R.type==="dot"){R.type="text"}if(R&&R.type==="text"&&t.type==="text"){R.value+=t.value;return}x.nodes.push(t);t.parent=x;t.prev=R;R=t;return t};push({type:"bos"});while(P<k){x=D[D.length-1];L=advance();if(L===_||L===E){continue}if(L===u){push({type:"text",value:(r.keepEscaping?L:"")+advance()});continue}if(L===b){push({type:"text",value:"\\"+L});continue}if(L===A){O++;let t;while(P<k&&(t=advance())){L+=t;if(t===A){O++;continue}if(t===u){L+=advance();continue}if(t===b){O--;if(O===0){break}}}push({type:"text",value:L});continue}if(L===d){x=push({type:"paren",nodes:[]});D.push(x);push({type:"text",value:L});continue}if(L===m){if(x.type!=="paren"){push({type:"text",value:L});continue}x=D.pop();push({type:"text",value:L});x=D[D.length-1];continue}if(L===v||L===w||L===l){const t=L;let i;if(r.keepQuotes!==true){L=""}while(P<k&&(i=advance())){if(i===u){L+=i+advance();continue}if(i===t){if(r.keepQuotes===true)L+=i;break}L+=i}push({type:"text",value:L});continue}if(L===g){T++;const t=R.value&&R.value.slice(-1)==="$"||x.dollar===true;const r={type:"brace",open:true,close:false,dollar:t,depth:T,commas:0,ranges:0,nodes:[]};x=push(r);D.push(x);push({type:"open",value:L});continue}if(L===y){if(x.type!=="brace"){push({type:"text",value:L});continue}const t="close";x=D.pop();x.close=true;push({type:t,value:L});T--;x=D[D.length-1];continue}if(L===h&&T>0){if(x.ranges>0){x.ranges=0;const t=x.nodes.shift();x.nodes=[t,{type:"text",value:o(x)}]}push({type:"comma",value:L});x.commas++;continue}if(L===p&&T>0&&x.commas===0){const t=x.nodes;if(T===0||t.length===0){push({type:"text",value:L});continue}if(R.type==="dot"){x.range=[];R.value+=L;R.type="range";if(x.nodes.length!==3&&x.nodes.length!==5){x.invalid=true;x.ranges=0;R.type="text";continue}x.ranges++;x.args=[];continue}if(R.type==="range"){t.pop();const r=t[t.length-1];r.value+=R.value+L;R=r;x.ranges--;continue}push({type:"dot",value:L});continue}push({type:"text",value:L})}do{x=D.pop();if(x.type!=="root"){x.nodes.forEach((t=>{if(!t.nodes){if(t.type==="open")t.isOpen=true;if(t.type==="close")t.isClose=true;if(!t.nodes)t.type="text";t.invalid=true}}));const t=D[D.length-1];const r=t.nodes.indexOf(x);t.nodes.splice(r,1,...x.nodes)}}while(D.length>0);push({type:"eos"});return C};t.exports=parse},9200:(t,r,i)=>{"use strict";const o=i(4691);t.exports=(t,r={})=>{const stringify=(t,i={})=>{const a=r.escapeInvalid&&o.isInvalidBrace(i);const u=t.invalid===true&&r.escapeInvalid===true;let l="";if(t.value){if((a||u)&&o.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(const r of t.nodes){l+=stringify(r)}}return l};return stringify(t)}},4691:(t,r)=>{"use strict";r.isInteger=t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false};r.find=(t,r)=>t.nodes.find((t=>t.type===r));r.exceedsLimit=(t,i,o=1,a)=>{if(a===false)return false;if(!r.isInteger(t)||!r.isInteger(i))return false;return(Number(i)-Number(t))/Number(o)>=a};r.escapeNode=(t,r=0,i)=>{const o=t.nodes[r];if(!o)return;if(i&&o.type===i||o.type==="open"||o.type==="close"){if(o.escaped!==true){o.value="\\"+o.value;o.escaped=true}}};r.encloseBrace=t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false};r.isInvalidBrace=t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false};r.isOpenOrClose=t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true};r.reduce=t=>t.reduce(((t,r)=>{if(r.type==="text")t.push(r.value);if(r.type==="range")r.type="text";return t}),[]);r.flatten=(...t)=>{const r=[];const flat=t=>{for(let i=0;i<t.length;i++){const o=t[i];if(Array.isArray(o)){flat(o);continue}if(o!==undefined){r.push(o)}}return r};flat(t);return r}},8746:(t,r,i)=>{"use strict";const o=i(3741);const{stdout:a,stderr:u}=i(395);const{stringReplaceAll:l,stringEncaseCRLFWithFirstIndex:h}=i(5611);const{isArray:p}=Array;const d=["ansi","ansi","ansi256","ansi16m"];const m=Object.create(null);const applyOptions=(t,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const i=a?a.level:0;t.level=r.level===undefined?i:r.level};class ChalkClass{constructor(t){return chalkFactory(t)}}const chalkFactory=t=>{const r={};applyOptions(r,t);r.template=(...t)=>chalkTag(r.template,...t);Object.setPrototypeOf(r,Chalk.prototype);Object.setPrototypeOf(r.template,r);r.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};r.template.Instance=ChalkClass;return r.template};function Chalk(t){return chalkFactory(t)}for(const[t,r]of Object.entries(o)){m[t]={get(){const i=createBuilder(this,createStyler(r.open,r.close,this._styler),this._isEmpty);Object.defineProperty(this,t,{value:i});return i}}}m.visible={get(){const t=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:t});return t}};const g=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of g){m[t]={get(){const{level:r}=this;return function(...i){const a=createStyler(o.color[d[r]][t](...i),o.color.close,this._styler);return createBuilder(this,a,this._isEmpty)}}}}for(const t of g){const r="bg"+t[0].toUpperCase()+t.slice(1);m[r]={get(){const{level:r}=this;return function(...i){const a=createStyler(o.bgColor[d[r]][t](...i),o.bgColor.close,this._styler);return createBuilder(this,a,this._isEmpty)}}}}const y=Object.defineProperties((()=>{}),{...m,level:{enumerable:true,get(){return this._generator.level},set(t){this._generator.level=t}}});const createStyler=(t,r,i)=>{let o;let a;if(i===undefined){o=t;a=r}else{o=i.openAll+t;a=r+i.closeAll}return{open:t,close:r,openAll:o,closeAll:a,parent:i}};const createBuilder=(t,r,i)=>{const builder=(...t)=>{if(p(t[0])&&p(t[0].raw)){return applyStyle(builder,chalkTag(builder,...t))}return applyStyle(builder,t.length===1?""+t[0]:t.join(" "))};Object.setPrototypeOf(builder,y);builder._generator=t;builder._styler=r;builder._isEmpty=i;return builder};const applyStyle=(t,r)=>{if(t.level<=0||!r){return t._isEmpty?"":r}let i=t._styler;if(i===undefined){return r}const{openAll:o,closeAll:a}=i;if(r.indexOf("")!==-1){while(i!==undefined){r=l(r,i.close,i.open);i=i.parent}}const u=r.indexOf("\n");if(u!==-1){r=h(r,a,o,u)}return o+r+a};let A;const chalkTag=(t,...r)=>{const[o]=r;if(!p(o)||!p(o.raw)){return r.join(" ")}const a=r.slice(1);const u=[o.raw[0]];for(let t=1;t<o.length;t++){u.push(String(a[t-1]).replace(/[{}\\]/g,"\\$&"),String(o.raw[t]))}if(A===undefined){A=i(2746)}return A(t,u.join(""))};Object.defineProperties(Chalk.prototype,m);const b=Chalk();b.supportsColor=a;b.stderr=Chalk({level:u?u.level:0});b.stderr.supportsColor=u;t.exports=b},2746:t=>{"use strict";const r=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const a=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const u=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(t){const r=t[0]==="u";const i=t[1]==="{";if(r&&!i&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}if(r&&i){return String.fromCodePoint(parseInt(t.slice(2,-1),16))}return u.get(t)||t}function parseArguments(t,r){const i=[];const u=r.trim().split(/\s*,\s*/g);let l;for(const r of u){const u=Number(r);if(!Number.isNaN(u)){i.push(u)}else if(l=r.match(o)){i.push(l[2].replace(a,((t,r,i)=>r?unescape(r):i)))}else{throw new Error(`Invalid Chalk template style argument: ${r} (in style '${t}')`)}}return i}function parseStyle(t){i.lastIndex=0;const r=[];let o;while((o=i.exec(t))!==null){const t=o[1];if(o[2]){const i=parseArguments(t,o[2]);r.push([t].concat(i))}else{r.push([t])}}return r}function buildStyle(t,r){const i={};for(const t of r){for(const r of t.styles){i[r[0]]=t.inverse?null:r.slice(1)}}let o=t;for(const[t,r]of Object.entries(i)){if(!Array.isArray(r)){continue}if(!(t in o)){throw new Error(`Unknown Chalk style: ${t}`)}o=r.length>0?o[t](...r):o[t]}return o}t.exports=(t,i)=>{const o=[];const a=[];let u=[];i.replace(r,((r,i,l,h,p,d)=>{if(i){u.push(unescape(i))}else if(h){const r=u.join("");u=[];a.push(o.length===0?r:buildStyle(t,o)(r));o.push({inverse:l,styles:parseStyle(h)})}else if(p){if(o.length===0){throw new Error("Found extraneous } in Chalk template literal")}a.push(buildStyle(t,o)(u.join("")));u=[];o.pop()}else{u.push(d)}}));a.push(u.join(""));if(o.length>0){const t=`Chalk template literal is missing ${o.length} closing bracket${o.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return a.join("")}},5611:t=>{"use strict";const stringReplaceAll=(t,r,i)=>{let o=t.indexOf(r);if(o===-1){return t}const a=r.length;let u=0;let l="";do{l+=t.substr(u,o-u)+r+i;u=o+a;o=t.indexOf(r,u)}while(o!==-1);l+=t.substr(u);return l};const stringEncaseCRLFWithFirstIndex=(t,r,i,o)=>{let a=0;let u="";do{const l=t[o-1]==="\r";u+=t.substr(a,(l?o-1:o)-a)+r+(l?"\r\n":"\n")+i;a=o+1;o=t.indexOf("\n",a)}while(o!==-1);u+=t.substr(a);return u};t.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},6067:(t,r,i)=>{"use strict";const o=Object.assign({},i(2548));const a=Object.keys(o);Object.defineProperty(o,"random",{get(){const t=Math.floor(Math.random()*a.length);const r=a[t];return o[r]}});t.exports=o},6845:t=>{var r=function(){"use strict";function clone(t,r,i,o){var a;if(typeof r==="object"){i=r.depth;o=r.prototype;a=r.filter;r=r.circular}var u=[];var l=[];var h=typeof Buffer!="undefined";if(typeof r=="undefined")r=true;if(typeof i=="undefined")i=Infinity;function _clone(t,i){if(t===null)return null;if(i==0)return t;var a;var p;if(typeof t!="object"){return t}if(clone.__isArray(t)){a=[]}else if(clone.__isRegExp(t)){a=new RegExp(t.source,__getRegExpFlags(t));if(t.lastIndex)a.lastIndex=t.lastIndex}else if(clone.__isDate(t)){a=new Date(t.getTime())}else if(h&&Buffer.isBuffer(t)){if(Buffer.allocUnsafe){a=Buffer.allocUnsafe(t.length)}else{a=new Buffer(t.length)}t.copy(a);return a}else{if(typeof o=="undefined"){p=Object.getPrototypeOf(t);a=Object.create(p)}else{a=Object.create(o);p=o}}if(r){var d=u.indexOf(t);if(d!=-1){return l[d]}u.push(t);l.push(a)}for(var m in t){var g;if(p){g=Object.getOwnPropertyDescriptor(p,m)}if(g&&g.set==null){continue}a[m]=_clone(t[m],i-1)}return a}return _clone(t,i)}clone.clonePrototype=function clonePrototype(t){if(t===null)return null;var c=function(){};c.prototype=t;return new c};function __objToStr(t){return Object.prototype.toString.call(t)}clone.__objToStr=__objToStr;function __isDate(t){return typeof t==="object"&&__objToStr(t)==="[object Date]"}clone.__isDate=__isDate;function __isArray(t){return typeof t==="object"&&__objToStr(t)==="[object Array]"}clone.__isArray=__isArray;function __isRegExp(t){return typeof t==="object"&&__objToStr(t)==="[object RegExp]"}clone.__isRegExp=__isRegExp;function __getRegExpFlags(t){var r="";if(t.global)r+="g";if(t.ignoreCase)r+="i";if(t.multiline)r+="m";return r}clone.__getRegExpFlags=__getRegExpFlags;return clone}();if(true&&t.exports){t.exports=r}},9598:(t,r,i)=>{var o=i(9120);var a={};for(var u in o){if(o.hasOwnProperty(u)){a[o[u]]=u}}var l=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var h in l){if(l.hasOwnProperty(h)){if(!("channels"in l[h])){throw new Error("missing channels property: "+h)}if(!("labels"in l[h])){throw new Error("missing channel labels property: "+h)}if(l[h].labels.length!==l[h].channels){throw new Error("channel and label counts mismatch: "+h)}var p=l[h].channels;var d=l[h].labels;delete l[h].channels;delete l[h].labels;Object.defineProperty(l[h],"channels",{value:p});Object.defineProperty(l[h],"labels",{value:d})}}l.rgb.hsl=function(t){var r=t[0]/255;var i=t[1]/255;var o=t[2]/255;var a=Math.min(r,i,o);var u=Math.max(r,i,o);var l=u-a;var h;var p;var d;if(u===a){h=0}else if(r===u){h=(i-o)/l}else if(i===u){h=2+(o-r)/l}else if(o===u){h=4+(r-i)/l}h=Math.min(h*60,360);if(h<0){h+=360}d=(a+u)/2;if(u===a){p=0}else if(d<=.5){p=l/(u+a)}else{p=l/(2-u-a)}return[h,p*100,d*100]};l.rgb.hsv=function(t){var r;var i;var o;var a;var u;var l=t[0]/255;var h=t[1]/255;var p=t[2]/255;var d=Math.max(l,h,p);var m=d-Math.min(l,h,p);var diffc=function(t){return(d-t)/6/m+1/2};if(m===0){a=u=0}else{u=m/d;r=diffc(l);i=diffc(h);o=diffc(p);if(l===d){a=o-i}else if(h===d){a=1/3+r-o}else if(p===d){a=2/3+i-r}if(a<0){a+=1}else if(a>1){a-=1}}return[a*360,u*100,d*100]};l.rgb.hwb=function(t){var r=t[0];var i=t[1];var o=t[2];var a=l.rgb.hsl(t)[0];var u=1/255*Math.min(r,Math.min(i,o));o=1-1/255*Math.max(r,Math.max(i,o));return[a,u*100,o*100]};l.rgb.cmyk=function(t){var r=t[0]/255;var i=t[1]/255;var o=t[2]/255;var a;var u;var l;var h;h=Math.min(1-r,1-i,1-o);a=(1-r-h)/(1-h)||0;u=(1-i-h)/(1-h)||0;l=(1-o-h)/(1-h)||0;return[a*100,u*100,l*100,h*100]};function comparativeDistance(t,r){return Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2)+Math.pow(t[2]-r[2],2)}l.rgb.keyword=function(t){var r=a[t];if(r){return r}var i=Infinity;var u;for(var l in o){if(o.hasOwnProperty(l)){var h=o[l];var p=comparativeDistance(t,h);if(p<i){i=p;u=l}}}return u};l.keyword.rgb=function(t){return o[t]};l.rgb.xyz=function(t){var r=t[0]/255;var i=t[1]/255;var o=t[2]/255;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92;var a=r*.4124+i*.3576+o*.1805;var u=r*.2126+i*.7152+o*.0722;var l=r*.0193+i*.1192+o*.9505;return[a*100,u*100,l*100]};l.rgb.lab=function(t){var r=l.rgb.xyz(t);var i=r[0];var o=r[1];var a=r[2];var u;var h;var p;i/=95.047;o/=100;a/=108.883;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;o=o>.008856?Math.pow(o,1/3):7.787*o+16/116;a=a>.008856?Math.pow(a,1/3):7.787*a+16/116;u=116*o-16;h=500*(i-o);p=200*(o-a);return[u,h,p]};l.hsl.rgb=function(t){var r=t[0]/360;var i=t[1]/100;var o=t[2]/100;var a;var u;var l;var h;var p;if(i===0){p=o*255;return[p,p,p]}if(o<.5){u=o*(1+i)}else{u=o+i-o*i}a=2*o-u;h=[0,0,0];for(var d=0;d<3;d++){l=r+1/3*-(d-1);if(l<0){l++}if(l>1){l--}if(6*l<1){p=a+(u-a)*6*l}else if(2*l<1){p=u}else if(3*l<2){p=a+(u-a)*(2/3-l)*6}else{p=a}h[d]=p*255}return h};l.hsl.hsv=function(t){var r=t[0];var i=t[1]/100;var o=t[2]/100;var a=i;var u=Math.max(o,.01);var l;var h;o*=2;i*=o<=1?o:2-o;a*=u<=1?u:2-u;h=(o+i)/2;l=o===0?2*a/(u+a):2*i/(o+i);return[r,l*100,h*100]};l.hsv.rgb=function(t){var r=t[0]/60;var i=t[1]/100;var o=t[2]/100;var a=Math.floor(r)%6;var u=r-Math.floor(r);var l=255*o*(1-i);var h=255*o*(1-i*u);var p=255*o*(1-i*(1-u));o*=255;switch(a){case 0:return[o,p,l];case 1:return[h,o,l];case 2:return[l,o,p];case 3:return[l,h,o];case 4:return[p,l,o];case 5:return[o,l,h]}};l.hsv.hsl=function(t){var r=t[0];var i=t[1]/100;var o=t[2]/100;var a=Math.max(o,.01);var u;var l;var h;h=(2-i)*o;u=(2-i)*a;l=i*a;l/=u<=1?u:2-u;l=l||0;h/=2;return[r,l*100,h*100]};l.hwb.rgb=function(t){var r=t[0]/360;var i=t[1]/100;var o=t[2]/100;var a=i+o;var u;var l;var h;var p;if(a>1){i/=a;o/=a}u=Math.floor(6*r);l=1-o;h=6*r-u;if((u&1)!==0){h=1-h}p=i+h*(l-i);var d;var m;var g;switch(u){default:case 6:case 0:d=l;m=p;g=i;break;case 1:d=p;m=l;g=i;break;case 2:d=i;m=l;g=p;break;case 3:d=i;m=p;g=l;break;case 4:d=p;m=i;g=l;break;case 5:d=l;m=i;g=p;break}return[d*255,m*255,g*255]};l.cmyk.rgb=function(t){var r=t[0]/100;var i=t[1]/100;var o=t[2]/100;var a=t[3]/100;var u;var l;var h;u=1-Math.min(1,r*(1-a)+a);l=1-Math.min(1,i*(1-a)+a);h=1-Math.min(1,o*(1-a)+a);return[u*255,l*255,h*255]};l.xyz.rgb=function(t){var r=t[0]/100;var i=t[1]/100;var o=t[2]/100;var a;var u;var l;a=r*3.2406+i*-1.5372+o*-.4986;u=r*-.9689+i*1.8758+o*.0415;l=r*.0557+i*-.204+o*1.057;a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92;u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:u*12.92;l=l>.0031308?1.055*Math.pow(l,1/2.4)-.055:l*12.92;a=Math.min(Math.max(0,a),1);u=Math.min(Math.max(0,u),1);l=Math.min(Math.max(0,l),1);return[a*255,u*255,l*255]};l.xyz.lab=function(t){var r=t[0];var i=t[1];var o=t[2];var a;var u;var l;r/=95.047;i/=100;o/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;o=o>.008856?Math.pow(o,1/3):7.787*o+16/116;a=116*i-16;u=500*(r-i);l=200*(i-o);return[a,u,l]};l.lab.xyz=function(t){var r=t[0];var i=t[1];var o=t[2];var a;var u;var l;u=(r+16)/116;a=i/500+u;l=u-o/200;var h=Math.pow(u,3);var p=Math.pow(a,3);var d=Math.pow(l,3);u=h>.008856?h:(u-16/116)/7.787;a=p>.008856?p:(a-16/116)/7.787;l=d>.008856?d:(l-16/116)/7.787;a*=95.047;u*=100;l*=108.883;return[a,u,l]};l.lab.lch=function(t){var r=t[0];var i=t[1];var o=t[2];var a;var u;var l;a=Math.atan2(o,i);u=a*360/2/Math.PI;if(u<0){u+=360}l=Math.sqrt(i*i+o*o);return[r,l,u]};l.lch.lab=function(t){var r=t[0];var i=t[1];var o=t[2];var a;var u;var l;l=o/360*2*Math.PI;a=i*Math.cos(l);u=i*Math.sin(l);return[r,a,u]};l.rgb.ansi16=function(t){var r=t[0];var i=t[1];var o=t[2];var a=1 in arguments?arguments[1]:l.rgb.hsv(t)[2];a=Math.round(a/50);if(a===0){return 30}var u=30+(Math.round(o/255)<<2|Math.round(i/255)<<1|Math.round(r/255));if(a===2){u+=60}return u};l.hsv.ansi16=function(t){return l.rgb.ansi16(l.hsv.rgb(t),t[2])};l.rgb.ansi256=function(t){var r=t[0];var i=t[1];var o=t[2];if(r===i&&i===o){if(r<8){return 16}if(r>248){return 231}return Math.round((r-8)/247*24)+232}var a=16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(o/255*5);return a};l.ansi16.rgb=function(t){var r=t%10;if(r===0||r===7){if(t>50){r+=3.5}r=r/10.5*255;return[r,r,r]}var i=(~~(t>50)+1)*.5;var o=(r&1)*i*255;var a=(r>>1&1)*i*255;var u=(r>>2&1)*i*255;return[o,a,u]};l.ansi256.rgb=function(t){if(t>=232){var r=(t-232)*10+8;return[r,r,r]}t-=16;var i;var o=Math.floor(t/36)/5*255;var a=Math.floor((i=t%36)/6)/5*255;var u=i%6/5*255;return[o,a,u]};l.rgb.hex=function(t){var r=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);var i=r.toString(16).toUpperCase();return"000000".substring(i.length)+i};l.hex.rgb=function(t){var r=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r){return[0,0,0]}var i=r[0];if(r[0].length===3){i=i.split("").map((function(t){return t+t})).join("")}var o=parseInt(i,16);var a=o>>16&255;var u=o>>8&255;var l=o&255;return[a,u,l]};l.rgb.hcg=function(t){var r=t[0]/255;var i=t[1]/255;var o=t[2]/255;var a=Math.max(Math.max(r,i),o);var u=Math.min(Math.min(r,i),o);var l=a-u;var h;var p;if(l<1){h=u/(1-l)}else{h=0}if(l<=0){p=0}else if(a===r){p=(i-o)/l%6}else if(a===i){p=2+(o-r)/l}else{p=4+(r-i)/l+4}p/=6;p%=1;return[p*360,l*100,h*100]};l.hsl.hcg=function(t){var r=t[1]/100;var i=t[2]/100;var o=1;var a=0;if(i<.5){o=2*r*i}else{o=2*r*(1-i)}if(o<1){a=(i-.5*o)/(1-o)}return[t[0],o*100,a*100]};l.hsv.hcg=function(t){var r=t[1]/100;var i=t[2]/100;var o=r*i;var a=0;if(o<1){a=(i-o)/(1-o)}return[t[0],o*100,a*100]};l.hcg.rgb=function(t){var r=t[0]/360;var i=t[1]/100;var o=t[2]/100;if(i===0){return[o*255,o*255,o*255]}var a=[0,0,0];var u=r%1*6;var l=u%1;var h=1-l;var p=0;switch(Math.floor(u)){case 0:a[0]=1;a[1]=l;a[2]=0;break;case 1:a[0]=h;a[1]=1;a[2]=0;break;case 2:a[0]=0;a[1]=1;a[2]=l;break;case 3:a[0]=0;a[1]=h;a[2]=1;break;case 4:a[0]=l;a[1]=0;a[2]=1;break;default:a[0]=1;a[1]=0;a[2]=h}p=(1-i)*o;return[(i*a[0]+p)*255,(i*a[1]+p)*255,(i*a[2]+p)*255]};l.hcg.hsv=function(t){var r=t[1]/100;var i=t[2]/100;var o=r+i*(1-r);var a=0;if(o>0){a=r/o}return[t[0],a*100,o*100]};l.hcg.hsl=function(t){var r=t[1]/100;var i=t[2]/100;var o=i*(1-r)+.5*r;var a=0;if(o>0&&o<.5){a=r/(2*o)}else if(o>=.5&&o<1){a=r/(2*(1-o))}return[t[0],a*100,o*100]};l.hcg.hwb=function(t){var r=t[1]/100;var i=t[2]/100;var o=r+i*(1-r);return[t[0],(o-r)*100,(1-o)*100]};l.hwb.hcg=function(t){var r=t[1]/100;var i=t[2]/100;var o=1-i;var a=o-r;var u=0;if(a<1){u=(o-a)/(1-a)}return[t[0],a*100,u*100]};l.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};l.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};l.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};l.gray.hsl=l.gray.hsv=function(t){return[0,0,t[0]]};l.gray.hwb=function(t){return[0,100,t[0]]};l.gray.cmyk=function(t){return[0,0,0,t[0]]};l.gray.lab=function(t){return[t[0],0,0]};l.gray.hex=function(t){var r=Math.round(t[0]/100*255)&255;var i=(r<<16)+(r<<8)+r;var o=i.toString(16).toUpperCase();return"000000".substring(o.length)+o};l.rgb.gray=function(t){var r=(t[0]+t[1]+t[2])/3;return[r/255*100]}},2830:(t,r,i)=>{var o=i(9598);var a=i(5180);var u={};var l=Object.keys(o);function wrapRaw(t){var wrappedFn=function(r){if(r===undefined||r===null){return r}if(arguments.length>1){r=Array.prototype.slice.call(arguments)}return t(r)};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}function wrapRounded(t){var wrappedFn=function(r){if(r===undefined||r===null){return r}if(arguments.length>1){r=Array.prototype.slice.call(arguments)}var i=t(r);if(typeof i==="object"){for(var o=i.length,a=0;a<o;a++){i[a]=Math.round(i[a])}}return i};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}l.forEach((function(t){u[t]={};Object.defineProperty(u[t],"channels",{value:o[t].channels});Object.defineProperty(u[t],"labels",{value:o[t].labels});var r=a(t);var i=Object.keys(r);i.forEach((function(i){var o=r[i];u[t][i]=wrapRounded(o);u[t][i].raw=wrapRaw(o)}))}));t.exports=u},9120:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},5180:(t,r,i)=>{var o=i(9598);function buildGraph(){var t={};var r=Object.keys(o);for(var i=r.length,a=0;a<i;a++){t[r[a]]={distance:-1,parent:null}}return t}function deriveBFS(t){var r=buildGraph();var i=[t];r[t].distance=0;while(i.length){var a=i.pop();var u=Object.keys(o[a]);for(var l=u.length,h=0;h<l;h++){var p=u[h];var d=r[p];if(d.distance===-1){d.distance=r[a].distance+1;d.parent=a;i.unshift(p)}}}return r}function link(t,r){return function(i){return r(t(i))}}function wrapConversion(t,r){var i=[r[t].parent,t];var a=o[r[t].parent][t];var u=r[t].parent;while(r[u].parent){i.unshift(r[u].parent);a=link(o[r[u].parent][u],a);u=r[u].parent}a.conversion=i;return a}t.exports=function(t){var r=deriveBFS(t);var i={};var o=Object.keys(r);for(var a=o.length,u=0;u<a;u++){var l=o[u];var h=r[l];if(h.parent===null){continue}i[l]=wrapConversion(l,r)}return i}},9407:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},7987:(t,r,i)=>{"use strict";const o=i(2081);const a=i(1655);const u=i(9738);function spawn(t,r,i){const l=a(t,r,i);const h=o.spawn(l.command,l.args,l.options);u.hookChildProcess(h,l);return h}function spawnSync(t,r,i){const l=a(t,r,i);const h=o.spawnSync(l.command,l.args,l.options);h.error=h.error||u.verifyENOENTSync(h.status,l);return h}t.exports=spawn;t.exports.spawn=spawn;t.exports.sync=spawnSync;t.exports._parse=a;t.exports._enoent=u},9738:t=>{"use strict";const r=process.platform==="win32";function notFoundError(t,r){return Object.assign(new Error(`${r} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${t.command}`,path:t.command,spawnargs:t.args})}function hookChildProcess(t,i){if(!r){return}const o=t.emit;t.emit=function(r,a){if(r==="exit"){const r=verifyENOENT(a,i);if(r){return o.call(t,"error",r)}}return o.apply(t,arguments)}}function verifyENOENT(t,i){if(r&&t===1&&!i.file){return notFoundError(i.original,"spawn")}return null}function verifyENOENTSync(t,i){if(r&&t===1&&!i.file){return notFoundError(i.original,"spawnSync")}return null}t.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},1655:(t,r,i)=>{"use strict";const o=i(1017);const a=i(7534);const u=i(8902);const l=i(2964);const h=process.platform==="win32";const p=/\.(?:com|exe)$/i;const d=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(t){t.file=a(t);const r=t.file&&l(t.file);if(r){t.args.unshift(t.file);t.command=r;return a(t)}return t.file}function parseNonShell(t){if(!h){return t}const r=detectShebang(t);const i=!p.test(r);if(t.options.forceShell||i){const i=d.test(r);t.command=o.normalize(t.command);t.command=u.command(t.command);t.args=t.args.map((t=>u.argument(t,i)));const a=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${a}"`];t.command=process.env.comspec||"cmd.exe";t.options.windowsVerbatimArguments=true}return t}function parse(t,r,i){if(r&&!Array.isArray(r)){i=r;r=null}r=r?r.slice(0):[];i=Object.assign({},i);const o={command:t,args:r,options:i,file:undefined,original:{command:t,args:r}};return i.shell?o:parseNonShell(o)}t.exports=parse},8902:t=>{"use strict";const r=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(t){t=t.replace(r,"^$1");return t}function escapeArgument(t,i){t=`${t}`;t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"');t=t.replace(/(?=(\\+?)?)\1$/,"$1$1");t=`"${t}"`;t=t.replace(r,"^$1");if(i){t=t.replace(r,"^$1")}return t}t.exports.command=escapeCommand;t.exports.argument=escapeArgument},2964:(t,r,i)=>{"use strict";const o=i(7147);const a=i(382);function readShebang(t){const r=150;const i=Buffer.alloc(r);let u;try{u=o.openSync(t,"r");o.readSync(u,i,0,r,0);o.closeSync(u)}catch(t){}return a(i.toString())}t.exports=readShebang},7534:(t,r,i)=>{"use strict";const o=i(1017);const a=i(6362);const u=i(6661);function resolveCommandAttempt(t,r){const i=t.options.env||process.env;const l=process.cwd();const h=t.options.cwd!=null;const p=h&&process.chdir!==undefined&&!process.chdir.disabled;if(p){try{process.chdir(t.options.cwd)}catch(t){}}let d;try{d=a.sync(t.command,{path:i[u({env:i})],pathExt:r?o.delimiter:undefined})}catch(t){}finally{if(p){process.chdir(l)}}if(d){d=o.resolve(h?t.options.cwd:"",d)}return d}function resolveCommand(t){return resolveCommandAttempt(t)||resolveCommandAttempt(t,true)}t.exports=resolveCommand},6661:t=>{"use strict";const pathKey=(t={})=>{const r=t.env||process.env;const i=t.platform||process.platform;if(i!=="win32"){return"PATH"}return Object.keys(r).reverse().find((t=>t.toUpperCase()==="PATH"))||"Path"};t.exports=pathKey;t.exports["default"]=pathKey},382:(t,r,i)=>{"use strict";const o=i(8690);t.exports=(t="")=>{const r=t.match(o);if(!r){return null}const[i,a]=r[0].replace(/#! ?/,"").split(" ");const u=i.split("/").pop();if(u==="env"){return a}return a?`${u} ${a}`:u}},8690:t=>{"use strict";t.exports=/^#!(.*)/},6362:(t,r,i)=>{const o=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const a=i(1017);const u=o?";":":";const l=i(228);const getNotFoundError=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"});const getPathInfo=(t,r)=>{const i=r.colon||u;const a=t.match(/\//)||o&&t.match(/\\/)?[""]:[...o?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(i)];const l=o?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const h=o?l.split(i):[""];if(o){if(t.indexOf(".")!==-1&&h[0]!=="")h.unshift("")}return{pathEnv:a,pathExt:h,pathExtExe:l}};const which=(t,r,i)=>{if(typeof r==="function"){i=r;r={}}if(!r)r={};const{pathEnv:o,pathExt:u,pathExtExe:h}=getPathInfo(t,r);const p=[];const step=i=>new Promise(((u,l)=>{if(i===o.length)return r.all&&p.length?u(p):l(getNotFoundError(t));const h=o[i];const d=/^".*"$/.test(h)?h.slice(1,-1):h;const m=a.join(d,t);const g=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;u(subStep(g,i,0))}));const subStep=(t,i,o)=>new Promise(((a,d)=>{if(o===u.length)return a(step(i+1));const m=u[o];l(t+m,{pathExt:h},((u,l)=>{if(!u&&l){if(r.all)p.push(t+m);else return a(t+m)}return a(subStep(t,i,o+1))}))}));return i?step(0).then((t=>i(null,t)),i):step(0)};const whichSync=(t,r)=>{r=r||{};const{pathEnv:i,pathExt:o,pathExtExe:u}=getPathInfo(t,r);const h=[];for(let p=0;p<i.length;p++){const d=i[p];const m=/^".*"$/.test(d)?d.slice(1,-1):d;const g=a.join(m,t);const y=!m&&/^\.[\\\/]/.test(t)?t.slice(0,2)+g:g;for(let t=0;t<o.length;t++){const i=y+o[t];try{const t=l.sync(i,{pathExt:u});if(t){if(r.all)h.push(i);else return i}}catch(t){}}}if(r.all&&h.length)return h;if(r.nothrow)return null;throw getNotFoundError(t)};t.exports=which;which.sync=whichSync},9851:(t,r,i)=>{r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage=localstorage();r.destroy=(()=>{let t=false;return()=>{if(!t){t=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();r.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 useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let t;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(r){r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff);if(!this.useColors){return}const i="color: "+this.color;r.splice(1,0,i,"color: inherit");let o=0;let a=0;r[0].replace(/%[a-zA-Z%]/g,(t=>{if(t==="%%"){return}o++;if(t==="%c"){a=o}}));r.splice(a,0,i)}r.log=console.debug||console.log||(()=>{});function save(t){try{if(t){r.storage.setItem("debug",t)}else{r.storage.removeItem("debug")}}catch(t){}}function load(){let t;try{t=r.storage.getItem("debug")}catch(t){}if(!t&&typeof process!=="undefined"&&"env"in process){t=process.env.DEBUG}return t}function localstorage(){try{return localStorage}catch(t){}}t.exports=i(6033)(r);const{formatters:o}=t.exports;o.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},6033:(t,r,i)=>{function setup(t){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=i(40);createDebug.destroy=destroy;Object.keys(t).forEach((r=>{createDebug[r]=t[r]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(t){let r=0;for(let i=0;i<t.length;i++){r=(r<<5)-r+t.charCodeAt(i);r|=0}return createDebug.colors[Math.abs(r)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(t){let r;let i=null;let o;let a;function debug(...t){if(!debug.enabled){return}const i=debug;const o=Number(new Date);const a=o-(r||o);i.diff=a;i.prev=r;i.curr=o;r=o;t[0]=createDebug.coerce(t[0]);if(typeof t[0]!=="string"){t.unshift("%O")}let u=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if(r==="%%"){return"%"}u++;const a=createDebug.formatters[o];if(typeof a==="function"){const o=t[u];r=a.call(i,o);t.splice(u,1);u--}return r}));createDebug.formatArgs.call(i,t);const l=i.log||createDebug.log;l.apply(i,t)}debug.namespace=t;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(t);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(i!==null){return i}if(o!==createDebug.namespaces){o=createDebug.namespaces;a=createDebug.enabled(t)}return a},set:t=>{i=t}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(t,r){const i=createDebug(this.namespace+(typeof r==="undefined"?":":r)+t);i.log=this.log;return i}function enable(t){createDebug.save(t);createDebug.namespaces=t;createDebug.names=[];createDebug.skips=[];let r;const i=(typeof t==="string"?t:"").split(/[\s,]+/);const o=i.length;for(r=0;r<o;r++){if(!i[r]){continue}t=i[r].replace(/\*/g,".*?");if(t[0]==="-"){createDebug.skips.push(new RegExp("^"+t.slice(1)+"$"))}else{createDebug.names.push(new RegExp("^"+t+"$"))}}}function disable(){const t=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((t=>"-"+t))].join(",");createDebug.enable("");return t}function enabled(t){if(t[t.length-1]==="*"){return true}let r;let i;for(r=0,i=createDebug.skips.length;r<i;r++){if(createDebug.skips[r].test(t)){return false}}for(r=0,i=createDebug.names.length;r<i;r++){if(createDebug.names[r].test(t)){return true}}return false}function toNamespace(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(t){if(t instanceof Error){return t.stack||t.message}return t}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}t.exports=setup},7984:(t,r,i)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){t.exports=i(9851)}else{t.exports=i(3860)}},3860:(t,r,i)=>{const o=i(6224);const a=i(3837);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.destroy=a.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");r.colors=[6,2,3,4,5,1];try{const t=i(395);if(t&&(t.stderr||t).level>=2){r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(t){}r.inspectOpts=Object.keys(process.env).filter((t=>/^debug_/i.test(t))).reduce(((t,r)=>{const i=r.substring(6).toLowerCase().replace(/_([a-z])/g,((t,r)=>r.toUpperCase()));let o=process.env[r];if(/^(yes|on|true|enabled)$/i.test(o)){o=true}else if(/^(no|off|false|disabled)$/i.test(o)){o=false}else if(o==="null"){o=null}else{o=Number(o)}t[i]=o;return t}),{});function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):o.isatty(process.stderr.fd)}function formatArgs(r){const{namespace:i,useColors:o}=this;if(o){const o=this.color;const a="[3"+(o<8?o:"8;5;"+o);const u=` ${a};1m${i} `;r[0]=u+r[0].split("\n").join("\n"+u);r.push(a+"m+"+t.exports.humanize(this.diff)+"")}else{r[0]=getDate()+i+" "+r[0]}}function getDate(){if(r.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...t){return process.stderr.write(a.formatWithOptions(r.inspectOpts,...t)+"\n")}function save(t){if(t){process.env.DEBUG=t}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(t){t.inspectOpts={};const i=Object.keys(r.inspectOpts);for(let o=0;o<i.length;o++){t.inspectOpts[i[o]]=r.inspectOpts[i[o]]}}t.exports=i(6033)(r);const{formatters:u}=t.exports;u.o=function(t){this.inspectOpts.colors=this.useColors;return a.inspect(t,this.inspectOpts).split("\n").map((t=>t.trim())).join(" ")};u.O=function(t){this.inspectOpts.colors=this.useColors;return a.inspect(t,this.inspectOpts)}},5134:t=>{"use strict";
3
3
  /*!
4
4
  * @description Recursive object extending
5
5
  * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
@@ -31,7 +31,7 @@
31
31
  *
32
32
  * Copyright (c) 2014-present, Jon Schlinkert.
33
33
  * Licensed under the MIT License.
34
- */const o=i(3837);const a=i(887);const isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);const transform=t=>r=>t===true?Number(r):String(r);const isValidValue=t=>typeof t==="number"||typeof t==="string"&&t!=="";const isNumber=t=>Number.isInteger(+t);const zeros=t=>{let r=`${t}`;let i=-1;if(r[0]==="-")r=r.slice(1);if(r==="0")return false;while(r[++i]==="0");return i>0};const stringify=(t,r,i)=>{if(typeof t==="string"||typeof r==="string"){return true}return i.stringify===true};const pad=(t,r,i)=>{if(r>0){let i=t[0]==="-"?"-":"";if(i)t=t.slice(1);t=i+t.padStart(i?r-1:r,"0")}if(i===false){return String(t)}return t};const toMaxLen=(t,r)=>{let i=t[0]==="-"?"-":"";if(i){t=t.slice(1);r--}while(t.length<r)t="0"+t;return i?"-"+t:t};const toSequence=(t,r,i)=>{t.negatives.sort(((t,r)=>t<r?-1:t>r?1:0));t.positives.sort(((t,r)=>t<r?-1:t>r?1:0));let o=r.capture?"":"?:";let a="";let u="";let l;if(t.positives.length){a=t.positives.map((t=>toMaxLen(String(t),i))).join("|")}if(t.negatives.length){u=`-(${o}${t.negatives.map((t=>toMaxLen(String(t),i))).join("|")})`}if(a&&u){l=`${a}|${u}`}else{l=a||u}if(r.wrap){return`(${o}${l})`}return l};const toRange=(t,r,i,o)=>{if(i){return a(t,r,{wrap:false,...o})}let u=String.fromCharCode(t);if(t===r)return u;let l=String.fromCharCode(r);return`[${u}-${l}]`};const toRegex=(t,r,i)=>{if(Array.isArray(t)){let r=i.wrap===true;let o=i.capture?"":"?:";return r?`(${o}${t.join("|")})`:t.join("|")}return a(t,r,i)};const rangeError=(...t)=>new RangeError("Invalid range arguments: "+o.inspect(...t));const invalidRange=(t,r,i)=>{if(i.strictRanges===true)throw rangeError([t,r]);return[]};const invalidStep=(t,r)=>{if(r.strictRanges===true){throw new TypeError(`Expected step "${t}" to be a number`)}return[]};const fillNumbers=(t,r,i=1,o={})=>{let a=Number(t);let u=Number(r);if(!Number.isInteger(a)||!Number.isInteger(u)){if(o.strictRanges===true)throw rangeError([t,r]);return[]}if(a===0)a=0;if(u===0)u=0;let l=a>u;let h=String(t);let p=String(r);let d=String(i);i=Math.max(Math.abs(i),1);let m=zeros(h)||zeros(p)||zeros(d);let g=m?Math.max(h.length,p.length,d.length):0;let y=m===false&&stringify(t,r,o)===false;let A=o.transform||transform(y);if(o.toRegex&&i===1){return toRange(toMaxLen(t,g),toMaxLen(r,g),true,o)}let b={negatives:[],positives:[]};let push=t=>b[t<0?"negatives":"positives"].push(Math.abs(t));let v=[];let E=0;while(l?a>=u:a<=u){if(o.toRegex===true&&i>1){push(a)}else{v.push(pad(A(a,E),g,y))}a=l?a-i:a+i;E++}if(o.toRegex===true){return i>1?toSequence(b,o,g):toRegex(v,null,{wrap:false,...o})}return v};const fillLetters=(t,r,i=1,o={})=>{if(!isNumber(t)&&t.length>1||!isNumber(r)&&r.length>1){return invalidRange(t,r,o)}let a=o.transform||(t=>String.fromCharCode(t));let u=`${t}`.charCodeAt(0);let l=`${r}`.charCodeAt(0);let h=u>l;let p=Math.min(u,l);let d=Math.max(u,l);if(o.toRegex&&i===1){return toRange(p,d,false,o)}let m=[];let g=0;while(h?u>=l:u<=l){m.push(a(u,g));u=h?u-i:u+i;g++}if(o.toRegex===true){return toRegex(m,null,{wrap:false,options:o})}return m};const fill=(t,r,i,o={})=>{if(r==null&&isValidValue(t)){return[t]}if(!isValidValue(t)||!isValidValue(r)){return invalidRange(t,r,o)}if(typeof i==="function"){return fill(t,r,1,{transform:i})}if(isObject(i)){return fill(t,r,0,i)}let a={...o};if(a.capture===true)a.wrap=true;i=i||a.step||1;if(!isNumber(i)){if(i!=null&&!isObject(i))return invalidStep(i,a);return fill(t,r,1,i)}if(isNumber(t)&&isNumber(r)){return fillNumbers(t,r,i,a)}return fillLetters(t,r,Math.max(Math.abs(i),1),a)};t.exports=fill},3597:(t,r,i)=>{"use strict";const o=i(3722);const a=i(2361).EventEmitter;const u=i(7147);let l=u.writev;if(!l){const t=process.binding("fs");const r=t.FSReqWrap||t.FSReqCallback;l=(i,o,a,u)=>{const done=(t,r)=>u(t,r,o);const l=new r;l.oncomplete=done;t.writeBuffers(i,o,a,l)}}const h=Symbol("_autoClose");const p=Symbol("_close");const d=Symbol("_ended");const m=Symbol("_fd");const g=Symbol("_finished");const y=Symbol("_flags");const A=Symbol("_flush");const b=Symbol("_handleChunk");const v=Symbol("_makeBuf");const E=Symbol("_mode");const w=Symbol("_needDrain");const _=Symbol("_onerror");const S=Symbol("_onopen");const C=Symbol("_onread");const D=Symbol("_onwrite");const x=Symbol("_open");const R=Symbol("_path");const O=Symbol("_pos");const k=Symbol("_queue");const P=Symbol("_read");const T=Symbol("_readSize");const L=Symbol("_reading");const I=Symbol("_remain");const M=Symbol("_size");const B=Symbol("_write");const N=Symbol("_writing");const $=Symbol("_defaultFlag");const j=Symbol("_errored");class ReadStream extends o{constructor(t,r){r=r||{};super(r);this.readable=true;this.writable=false;if(typeof t!=="string")throw new TypeError("path must be a string");this[j]=false;this[m]=typeof r.fd==="number"?r.fd:null;this[R]=t;this[T]=r.readSize||16*1024*1024;this[L]=false;this[M]=typeof r.size==="number"?r.size:Infinity;this[I]=this[M];this[h]=typeof r.autoClose==="boolean"?r.autoClose:true;if(typeof this[m]==="number")this[P]();else this[x]()}get fd(){return this[m]}get path(){return this[R]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[x](){u.open(this[R],"r",((t,r)=>this[S](t,r)))}[S](t,r){if(t)this[_](t);else{this[m]=r;this.emit("open",r);this[P]()}}[v](){return Buffer.allocUnsafe(Math.min(this[T],this[I]))}[P](){if(!this[L]){this[L]=true;const t=this[v]();if(t.length===0)return process.nextTick((()=>this[C](null,0,t)));u.read(this[m],t,0,t.length,null,((t,r,i)=>this[C](t,r,i)))}}[C](t,r,i){this[L]=false;if(t)this[_](t);else if(this[b](r,i))this[P]()}[p](){if(this[h]&&typeof this[m]==="number"){const t=this[m];this[m]=null;u.close(t,(t=>t?this.emit("error",t):this.emit("close")))}}[_](t){this[L]=true;this[p]();this.emit("error",t)}[b](t,r){let i=false;this[I]-=t;if(t>0)i=super.write(t<r.length?r.slice(0,t):r);if(t===0||this[I]<=0){i=false;this[p]();super.end()}return i}emit(t,r){switch(t){case"prefinish":case"finish":break;case"drain":if(typeof this[m]==="number")this[P]();break;case"error":if(this[j])return;this[j]=true;return super.emit(t,r);default:return super.emit(t,r)}}}class ReadStreamSync extends ReadStream{[x](){let t=true;try{this[S](null,u.openSync(this[R],"r"));t=false}finally{if(t)this[p]()}}[P](){let t=true;try{if(!this[L]){this[L]=true;do{const t=this[v]();const r=t.length===0?0:u.readSync(this[m],t,0,t.length,null);if(!this[b](r,t))break}while(true);this[L]=false}t=false}finally{if(t)this[p]()}}[p](){if(this[h]&&typeof this[m]==="number"){const t=this[m];this[m]=null;u.closeSync(t);this.emit("close")}}}class WriteStream extends a{constructor(t,r){r=r||{};super(r);this.readable=false;this.writable=true;this[j]=false;this[N]=false;this[d]=false;this[w]=false;this[k]=[];this[R]=t;this[m]=typeof r.fd==="number"?r.fd:null;this[E]=r.mode===undefined?438:r.mode;this[O]=typeof r.start==="number"?r.start:null;this[h]=typeof r.autoClose==="boolean"?r.autoClose:true;const i=this[O]!==null?"r+":"w";this[$]=r.flags===undefined;this[y]=this[$]?i:r.flags;if(this[m]===null)this[x]()}emit(t,r){if(t==="error"){if(this[j])return;this[j]=true}return super.emit(t,r)}get fd(){return this[m]}get path(){return this[R]}[_](t){this[p]();this[N]=true;this.emit("error",t)}[x](){u.open(this[R],this[y],this[E],((t,r)=>this[S](t,r)))}[S](t,r){if(this[$]&&this[y]==="r+"&&t&&t.code==="ENOENT"){this[y]="w";this[x]()}else if(t)this[_](t);else{this[m]=r;this.emit("open",r);this[A]()}}end(t,r){if(t)this.write(t,r);this[d]=true;if(!this[N]&&!this[k].length&&typeof this[m]==="number")this[D](null,0);return this}write(t,r){if(typeof t==="string")t=Buffer.from(t,r);if(this[d]){this.emit("error",new Error("write() after end()"));return false}if(this[m]===null||this[N]||this[k].length){this[k].push(t);this[w]=true;return false}this[N]=true;this[B](t);return true}[B](t){u.write(this[m],t,0,t.length,this[O],((t,r)=>this[D](t,r)))}[D](t,r){if(t)this[_](t);else{if(this[O]!==null)this[O]+=r;if(this[k].length)this[A]();else{this[N]=false;if(this[d]&&!this[g]){this[g]=true;this[p]();this.emit("finish")}else if(this[w]){this[w]=false;this.emit("drain")}}}}[A](){if(this[k].length===0){if(this[d])this[D](null,0)}else if(this[k].length===1)this[B](this[k].pop());else{const t=this[k];this[k]=[];l(this[m],t,this[O],((t,r)=>this[D](t,r)))}}[p](){if(this[h]&&typeof this[m]==="number"){const t=this[m];this[m]=null;u.close(t,(t=>t?this.emit("error",t):this.emit("close")))}}}class WriteStreamSync extends WriteStream{[x](){let t;if(this[$]&&this[y]==="r+"){try{t=u.openSync(this[R],this[y],this[E])}catch(t){if(t.code==="ENOENT"){this[y]="w";return this[x]()}else throw t}}else t=u.openSync(this[R],this[y],this[E]);this[S](null,t)}[p](){if(this[h]&&typeof this[m]==="number"){const t=this[m];this[m]=null;u.closeSync(t);this.emit("close")}}[B](t){let r=true;try{this[D](null,u.writeSync(this[m],t,0,t.length,this[O]));r=false}finally{if(r)try{this[p]()}catch(t){}}}}r.ReadStream=ReadStream;r.ReadStreamSync=ReadStreamSync;r.WriteStream=WriteStream;r.WriteStreamSync=WriteStreamSync},3722:(t,r,i)=>{"use strict";const o=typeof process==="object"&&process?process:{stdout:null,stderr:null};const a=i(2361);const u=i(2781);const l=i(1576).StringDecoder;const h=Symbol("EOF");const p=Symbol("maybeEmitEnd");const d=Symbol("emittedEnd");const m=Symbol("emittingEnd");const g=Symbol("emittedError");const y=Symbol("closed");const A=Symbol("read");const b=Symbol("flush");const v=Symbol("flushChunk");const E=Symbol("encoding");const w=Symbol("decoder");const _=Symbol("flowing");const S=Symbol("paused");const C=Symbol("resume");const D=Symbol("bufferLength");const x=Symbol("bufferPush");const R=Symbol("bufferShift");const O=Symbol("objectMode");const k=Symbol("destroyed");const P=Symbol("emitData");const T=Symbol("emitEnd");const L=Symbol("emitEnd2");const I=Symbol("async");const defer=t=>Promise.resolve().then(t);const M=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const B=M&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const N=M&&Symbol.iterator||Symbol("iterator not implemented");const isEndish=t=>t==="end"||t==="finish"||t==="prefinish";const isArrayBuffer=t=>t instanceof ArrayBuffer||typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const isArrayBufferView=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);class Pipe{constructor(t,r,i){this.src=t;this.dest=r;this.opts=i;this.ondrain=()=>t[C]();r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(t,r,i){super(t,r,i);this.proxyErrors=t=>r.emit("error",t);t.on("error",this.proxyErrors)}}t.exports=class Minipass extends u{constructor(t){super();this[_]=false;this[S]=false;this.pipes=[];this.buffer=[];this[O]=t&&t.objectMode||false;if(this[O])this[E]=null;else this[E]=t&&t.encoding||null;if(this[E]==="buffer")this[E]=null;this[I]=t&&!!t.async||false;this[w]=this[E]?new l(this[E]):null;this[h]=false;this[d]=false;this[m]=false;this[y]=false;this[g]=null;this.writable=true;this.readable=true;this[D]=0;this[k]=false}get bufferLength(){return this[D]}get encoding(){return this[E]}set encoding(t){if(this[O])throw new Error("cannot set encoding in objectMode");if(this[E]&&t!==this[E]&&(this[w]&&this[w].lastNeed||this[D]))throw new Error("cannot change encoding");if(this[E]!==t){this[w]=t?new l(t):null;if(this.buffer.length)this.buffer=this.buffer.map((t=>this[w].write(t)))}this[E]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[O]}set objectMode(t){this[O]=this[O]||!!t}get["async"](){return this[I]}set["async"](t){this[I]=this[I]||!!t}write(t,r,i){if(this[h])throw new Error("write after end");if(this[k]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof r==="function")i=r,r="utf8";if(!r)r="utf8";const o=this[I]?defer:t=>t();if(!this[O]&&!Buffer.isBuffer(t)){if(isArrayBufferView(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(isArrayBuffer(t))t=Buffer.from(t);else if(typeof t!=="string")this.objectMode=true}if(this[O]){if(this.flowing&&this[D]!==0)this[b](true);if(this.flowing)this.emit("data",t);else this[x](t);if(this[D]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(!t.length){if(this[D]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(typeof t==="string"&&!(r===this[E]&&!this[w].lastNeed)){t=Buffer.from(t,r)}if(Buffer.isBuffer(t)&&this[E])t=this[w].write(t);if(this.flowing&&this[D]!==0)this[b](true);if(this.flowing)this.emit("data",t);else this[x](t);if(this[D]!==0)this.emit("readable");if(i)o(i);return this.flowing}read(t){if(this[k])return null;if(this[D]===0||t===0||t>this[D]){this[p]();return null}if(this[O])t=null;if(this.buffer.length>1&&!this[O]){if(this.encoding)this.buffer=[this.buffer.join("")];else this.buffer=[Buffer.concat(this.buffer,this[D])]}const r=this[A](t||null,this.buffer[0]);this[p]();return r}[A](t,r){if(t===r.length||t===null)this[R]();else{this.buffer[0]=r.slice(t);r=r.slice(0,t);this[D]-=t}this.emit("data",r);if(!this.buffer.length&&!this[h])this.emit("drain");return r}end(t,r,i){if(typeof t==="function")i=t,t=null;if(typeof r==="function")i=r,r="utf8";if(t)this.write(t,r);if(i)this.once("end",i);this[h]=true;this.writable=false;if(this.flowing||!this[S])this[p]();return this}[C](){if(this[k])return;this[S]=false;this[_]=true;this.emit("resume");if(this.buffer.length)this[b]();else if(this[h])this[p]();else this.emit("drain")}resume(){return this[C]()}pause(){this[_]=false;this[S]=true}get destroyed(){return this[k]}get flowing(){return this[_]}get paused(){return this[S]}[x](t){if(this[O])this[D]+=1;else this[D]+=t.length;this.buffer.push(t)}[R](){if(this.buffer.length){if(this[O])this[D]-=1;else this[D]-=this.buffer[0].length}return this.buffer.shift()}[b](t){do{}while(this[v](this[R]()));if(!t&&!this.buffer.length&&!this[h])this.emit("drain")}[v](t){return t?(this.emit("data",t),this.flowing):false}pipe(t,r){if(this[k])return;const i=this[d];r=r||{};if(t===o.stdout||t===o.stderr)r.end=false;else r.end=r.end!==false;r.proxyErrors=!!r.proxyErrors;if(i){if(r.end)t.end()}else{this.pipes.push(!r.proxyErrors?new Pipe(this,t,r):new PipeProxyErrors(this,t,r));if(this[I])defer((()=>this[C]()));else this[C]()}return t}unpipe(t){const r=this.pipes.find((r=>r.dest===t));if(r){this.pipes.splice(this.pipes.indexOf(r),1);r.unpipe()}}addListener(t,r){return this.on(t,r)}on(t,r){const i=super.on(t,r);if(t==="data"&&!this.pipes.length&&!this.flowing)this[C]();else if(t==="readable"&&this[D]!==0)super.emit("readable");else if(isEndish(t)&&this[d]){super.emit(t);this.removeAllListeners(t)}else if(t==="error"&&this[g]){if(this[I])defer((()=>r.call(this,this[g])));else r.call(this,this[g])}return i}get emittedEnd(){return this[d]}[p](){if(!this[m]&&!this[d]&&!this[k]&&this.buffer.length===0&&this[h]){this[m]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[y])this.emit("close");this[m]=false}}emit(t,r,...i){if(t!=="error"&&t!=="close"&&t!==k&&this[k])return;else if(t==="data"){return!r?false:this[I]?defer((()=>this[P](r))):this[P](r)}else if(t==="end"){return this[T]()}else if(t==="close"){this[y]=true;if(!this[d]&&!this[k])return;const t=super.emit("close");this.removeAllListeners("close");return t}else if(t==="error"){this[g]=r;const t=super.emit("error",r);this[p]();return t}else if(t==="resume"){const t=super.emit("resume");this[p]();return t}else if(t==="finish"||t==="prefinish"){const r=super.emit(t);this.removeAllListeners(t);return r}const o=super.emit(t,r,...i);this[p]();return o}[P](t){for(const r of this.pipes){if(r.dest.write(t)===false)this.pause()}const r=super.emit("data",t);this[p]();return r}[T](){if(this[d])return;this[d]=true;this.readable=false;if(this[I])defer((()=>this[L]()));else this[L]()}[L](){if(this[w]){const t=this[w].end();if(t){for(const r of this.pipes){r.dest.write(t)}super.emit("data",t)}}for(const t of this.pipes){t.end()}const t=super.emit("end");this.removeAllListeners("end");return t}collect(){const t=[];if(!this[O])t.dataLength=0;const r=this.promise();this.on("data",(r=>{t.push(r);if(!this[O])t.dataLength+=r.length}));return r.then((()=>t))}concat(){return this[O]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((t=>this[O]?Promise.reject(new Error("cannot concat in objectMode")):this[E]?t.join(""):Buffer.concat(t,t.dataLength)))}promise(){return new Promise(((t,r)=>{this.on(k,(()=>r(new Error("stream destroyed"))));this.on("error",(t=>r(t)));this.on("end",(()=>t()))}))}[B](){const next=()=>{const t=this.read();if(t!==null)return Promise.resolve({done:false,value:t});if(this[h])return Promise.resolve({done:true});let r=null;let i=null;const onerr=t=>{this.removeListener("data",ondata);this.removeListener("end",onend);i(t)};const ondata=t=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.pause();r({value:t,done:!!this[h]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);r({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((t,o)=>{i=o;r=t;this.once(k,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next}}[N](){const next=()=>{const t=this.read();const r=t===null;return{value:t,done:r}};return{next:next}}destroy(t){if(this[k]){if(t)this.emit("error",t);else this.emit(k);return this}this[k]=true;this.buffer.length=0;this[D]=0;if(typeof this.close==="function"&&!this[y])this.close();if(t)this.emit("error",t);else this.emit(k);return this}static isStream(t){return!!t&&(t instanceof Minipass||t instanceof u||t instanceof a&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function"))}}},7945:(t,r,i)=>{const o=i(3837);const a=i(7310);let u=false;let l=true;function _value(t,r){const i=process.env[t];if(i===undefined){if(r===undefined&&!l){return i}if(r===undefined){throw new Error("GetEnv.Nonexistent: "+t+" does not exist "+"and no fallback value provided.")}if(u){throw new Error("GetEnv.DisabledFallbacks: "+t+" relying on fallback "+"when fallbacks have been disabled")}return""+r}return i}const h={string:function(t){return""+t},int:function(t){const r=t.match(/^-?\d+$/);if(!r){throw new Error("GetEnv.NoInteger: "+t+" is not an integer.")}return+t},float:function(t){const r=+t===Infinity||+t===-Infinity;if(r){throw new Error("GetEnv.Infinity: "+t+" is set to +/-Infinity.")}const i=!(isNaN(t)||t==="");if(!i){throw new Error("GetEnv.NoFloat: "+t+" is not a number.")}return+t},bool:function(t){const r=t==="true"||t==="false";if(!r){throw new Error("GetEnv.NoBoolean: "+t+" is not a boolean.")}return t==="true"},boolish:function(t){try{return h.bool(t)}catch(r){const i=t==="1"||t==="0";if(!i){throw new Error("GetEnv.NoBoolean: "+t+" is not a boolean.")}return t==="1"}},url:a.parse};function converter(t){return function(r,i){if(typeof r=="string"){const o=_value(r,i);return h[t](o)}else{return p.multi(r)}}}const p=converter("string");Object.keys(h).forEach((function(t){p[t]=converter(t)}));p.array=function array(t,r,i){r=r||"string";if(Object.keys(h).indexOf(r)===-1){throw new Error("GetEnv.ArrayUndefinedType: Unknown array type "+r)}const o=_value(t,i);return o.split(/\s*,\s*/).map(h[r])};p.multi=function multi(t){const r={};for(let i in t){const a=t[i];if(o.isArray(a)){switch(a.length){case 1:case 2:r[i]=p(a[0],a[1]);break;case 3:r[i]=p[a[2]](a[0],a[1]);break;default:throw"getenv.multi(): invalid spec";break}}else{r[i]=p(a)}}return r};p.disableFallbacks=function(){u=true};p.enableFallbacks=function(){u=false};p.disableErrors=function(){l=false};p.enableErrors=function(){l=true};t.exports=p},9132:t=>{"use strict";t.exports=clone;var r=Object.getPrototypeOf||function(t){return t.__proto__};function clone(t){if(t===null||typeof t!=="object")return t;if(t instanceof Object)var i={__proto__:r(t)};else var i=Object.create(null);Object.getOwnPropertyNames(t).forEach((function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))}));return i}},552:(t,r,i)=>{var o=i(7147);var a=i(1290);var u=i(4410);var l=i(9132);var h=i(3837);var p;var d;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){p=Symbol.for("graceful-fs.queue");d=Symbol.for("graceful-fs.previous")}else{p="___graceful-fs.queue";d="___graceful-fs.previous"}function noop(){}function publishQueue(t,r){Object.defineProperty(t,p,{get:function(){return r}})}var m=noop;if(h.debuglog)m=h.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))m=function(){var t=h.format.apply(h,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: ");console.error(t)};if(!o[p]){var g=global[p]||[];publishQueue(o,g);o.close=function(t){function close(r,i){return t.call(o,r,(function(t){if(!t){resetQueue()}if(typeof i==="function")i.apply(this,arguments)}))}Object.defineProperty(close,d,{value:t});return close}(o.close);o.closeSync=function(t){function closeSync(r){t.apply(o,arguments);resetQueue()}Object.defineProperty(closeSync,d,{value:t});return closeSync}(o.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){m(o[p]);i(9491).equal(o[p].length,0)}))}}if(!global[p]){publishQueue(global,o[p])}t.exports=patch(l(o));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched){t.exports=patch(o);o.__patched=true}function patch(t){a(t);t.gracefulify=patch;t.createReadStream=createReadStream;t.createWriteStream=createWriteStream;var r=t.readFile;t.readFile=readFile;function readFile(t,i,o){if(typeof i==="function")o=i,i=null;return go$readFile(t,i,o);function go$readFile(t,i,o,a){return r(t,i,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$readFile,[t,i,o],r,a||Date.now(),Date.now()]);else{if(typeof o==="function")o.apply(this,arguments)}}))}}var i=t.writeFile;t.writeFile=writeFile;function writeFile(t,r,o,a){if(typeof o==="function")a=o,o=null;return go$writeFile(t,r,o,a);function go$writeFile(t,r,o,a,u){return i(t,r,o,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$writeFile,[t,r,o,a],i,u||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var o=t.appendFile;if(o)t.appendFile=appendFile;function appendFile(t,r,i,a){if(typeof i==="function")a=i,i=null;return go$appendFile(t,r,i,a);function go$appendFile(t,r,i,a,u){return o(t,r,i,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$appendFile,[t,r,i,a],o,u||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var l=t.copyFile;if(l)t.copyFile=copyFile;function copyFile(t,r,i,o){if(typeof i==="function"){o=i;i=0}return go$copyFile(t,r,i,o);function go$copyFile(t,r,i,o,a){return l(t,r,i,(function(u){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))enqueue([go$copyFile,[t,r,i,o],u,a||Date.now(),Date.now()]);else{if(typeof o==="function")o.apply(this,arguments)}}))}}var h=t.readdir;t.readdir=readdir;var p=/^v[0-5]\./;function readdir(t,r,i){if(typeof r==="function")i=r,r=null;var o=p.test(process.version)?function go$readdir(t,r,i,o){return h(t,fs$readdirCallback(t,r,i,o))}:function go$readdir(t,r,i,o){return h(t,r,fs$readdirCallback(t,r,i,o))};return o(t,r,i);function fs$readdirCallback(t,r,i,a){return function(u,l){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))enqueue([o,[t,r,i],u,a||Date.now(),Date.now()]);else{if(l&&l.sort)l.sort();if(typeof i==="function")i.call(this,u,l)}}}}if(process.version.substr(0,4)==="v0.8"){var d=u(t);ReadStream=d.ReadStream;WriteStream=d.WriteStream}var m=t.ReadStream;if(m){ReadStream.prototype=Object.create(m.prototype);ReadStream.prototype.open=ReadStream$open}var g=t.WriteStream;if(g){WriteStream.prototype=Object.create(g.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(t,"ReadStream",{get:function(){return ReadStream},set:function(t){ReadStream=t},enumerable:true,configurable:true});Object.defineProperty(t,"WriteStream",{get:function(){return WriteStream},set:function(t){WriteStream=t},enumerable:true,configurable:true});var y=ReadStream;Object.defineProperty(t,"FileReadStream",{get:function(){return y},set:function(t){y=t},enumerable:true,configurable:true});var A=WriteStream;Object.defineProperty(t,"FileWriteStream",{get:function(){return A},set:function(t){A=t},enumerable:true,configurable:true});function ReadStream(t,r){if(this instanceof ReadStream)return m.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var t=this;open(t.path,t.flags,t.mode,(function(r,i){if(r){if(t.autoClose)t.destroy();t.emit("error",r)}else{t.fd=i;t.emit("open",i);t.read()}}))}function WriteStream(t,r){if(this instanceof WriteStream)return g.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var t=this;open(t.path,t.flags,t.mode,(function(r,i){if(r){t.destroy();t.emit("error",r)}else{t.fd=i;t.emit("open",i)}}))}function createReadStream(r,i){return new t.ReadStream(r,i)}function createWriteStream(r,i){return new t.WriteStream(r,i)}var b=t.open;t.open=open;function open(t,r,i,o){if(typeof i==="function")o=i,i=null;return go$open(t,r,i,o);function go$open(t,r,i,o,a){return b(t,r,i,(function(u,l){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))enqueue([go$open,[t,r,i,o],u,a||Date.now(),Date.now()]);else{if(typeof o==="function")o.apply(this,arguments)}}))}}return t}function enqueue(t){m("ENQUEUE",t[0].name,t[1]);o[p].push(t);retry()}var y;function resetQueue(){var t=Date.now();for(var r=0;r<o[p].length;++r){if(o[p][r].length>2){o[p][r][3]=t;o[p][r][4]=t}}retry()}function retry(){clearTimeout(y);y=undefined;if(o[p].length===0)return;var t=o[p].shift();var r=t[0];var i=t[1];var a=t[2];var u=t[3];var l=t[4];if(u===undefined){m("RETRY",r.name,i);r.apply(null,i)}else if(Date.now()-u>=6e4){m("TIMEOUT",r.name,i);var h=i.pop();if(typeof h==="function")h.call(null,a)}else{var d=Date.now()-l;var g=Math.max(l-u,1);var A=Math.min(g*1.2,100);if(d>=A){m("RETRY",r.name,i);r.apply(null,i.concat([u]))}else{o[p].push(t)}}if(y===undefined){y=setTimeout(retry,0)}}},4410:(t,r,i)=>{var o=i(2781).Stream;t.exports=legacy;function legacy(t){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(r,i){if(!(this instanceof ReadStream))return new ReadStream(r,i);o.call(this);var a=this;this.path=r;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;i=i||{};var u=Object.keys(i);for(var l=0,h=u.length;l<h;l++){var p=u[l];this[p]=i[p]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){a._read()}));return}t.open(this.path,this.flags,this.mode,(function(t,r){if(t){a.emit("error",t);a.readable=false;return}a.fd=r;a.emit("open",r);a._read()}))}function WriteStream(r,i){if(!(this instanceof WriteStream))return new WriteStream(r,i);o.call(this);this.path=r;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var a=Object.keys(i);for(var u=0,l=a.length;u<l;u++){var h=a[u];this[h]=i[h]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=t.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},1290:(t,r,i)=>{var o=i(2057);var a=process.cwd;var u=null;var l=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!u)u=a.call(process);return u};try{process.cwd()}catch(t){}if(typeof process.chdir==="function"){var h=process.chdir;process.chdir=function(t){u=null;h.call(process,t)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,h)}t.exports=patch;function patch(t){if(o.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(t)}if(!t.lutimes){patchLutimes(t)}t.chown=chownFix(t.chown);t.fchown=chownFix(t.fchown);t.lchown=chownFix(t.lchown);t.chmod=chmodFix(t.chmod);t.fchmod=chmodFix(t.fchmod);t.lchmod=chmodFix(t.lchmod);t.chownSync=chownFixSync(t.chownSync);t.fchownSync=chownFixSync(t.fchownSync);t.lchownSync=chownFixSync(t.lchownSync);t.chmodSync=chmodFixSync(t.chmodSync);t.fchmodSync=chmodFixSync(t.fchmodSync);t.lchmodSync=chmodFixSync(t.lchmodSync);t.stat=statFix(t.stat);t.fstat=statFix(t.fstat);t.lstat=statFix(t.lstat);t.statSync=statFixSync(t.statSync);t.fstatSync=statFixSync(t.fstatSync);t.lstatSync=statFixSync(t.lstatSync);if(t.chmod&&!t.lchmod){t.lchmod=function(t,r,i){if(i)process.nextTick(i)};t.lchmodSync=function(){}}if(t.chown&&!t.lchown){t.lchown=function(t,r,i,o){if(o)process.nextTick(o)};t.lchownSync=function(){}}if(l==="win32"){t.rename=typeof t.rename!=="function"?t.rename:function(r){function rename(i,o,a){var u=Date.now();var l=0;r(i,o,(function CB(h){if(h&&(h.code==="EACCES"||h.code==="EPERM"||h.code==="EBUSY")&&Date.now()-u<6e4){setTimeout((function(){t.stat(o,(function(t,u){if(t&&t.code==="ENOENT")r(i,o,CB);else a(h)}))}),l);if(l<100)l+=10;return}if(a)a(h)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,r);return rename}(t.rename)}t.read=typeof t.read!=="function"?t.read:function(r){function read(i,o,a,u,l,h){var p;if(h&&typeof h==="function"){var d=0;p=function(m,g,y){if(m&&m.code==="EAGAIN"&&d<10){d++;return r.call(t,i,o,a,u,l,p)}h.apply(this,arguments)}}return r.call(t,i,o,a,u,l,p)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,r);return read}(t.read);t.readSync=typeof t.readSync!=="function"?t.readSync:function(r){return function(i,o,a,u,l){var h=0;while(true){try{return r.call(t,i,o,a,u,l)}catch(t){if(t.code==="EAGAIN"&&h<10){h++;continue}throw t}}}}(t.readSync);function patchLchmod(t){t.lchmod=function(r,i,a){t.open(r,o.O_WRONLY|o.O_SYMLINK,i,(function(r,o){if(r){if(a)a(r);return}t.fchmod(o,i,(function(r){t.close(o,(function(t){if(a)a(r||t)}))}))}))};t.lchmodSync=function(r,i){var a=t.openSync(r,o.O_WRONLY|o.O_SYMLINK,i);var u=true;var l;try{l=t.fchmodSync(a,i);u=false}finally{if(u){try{t.closeSync(a)}catch(t){}}else{t.closeSync(a)}}return l}}function patchLutimes(t){if(o.hasOwnProperty("O_SYMLINK")&&t.futimes){t.lutimes=function(r,i,a,u){t.open(r,o.O_SYMLINK,(function(r,o){if(r){if(u)u(r);return}t.futimes(o,i,a,(function(r){t.close(o,(function(t){if(u)u(r||t)}))}))}))};t.lutimesSync=function(r,i,a){var u=t.openSync(r,o.O_SYMLINK);var l;var h=true;try{l=t.futimesSync(u,i,a);h=false}finally{if(h){try{t.closeSync(u)}catch(t){}}else{t.closeSync(u)}}return l}}else if(t.futimes){t.lutimes=function(t,r,i,o){if(o)process.nextTick(o)};t.lutimesSync=function(){}}}function chmodFix(r){if(!r)return r;return function(i,o,a){return r.call(t,i,o,(function(t){if(chownErOk(t))t=null;if(a)a.apply(this,arguments)}))}}function chmodFixSync(r){if(!r)return r;return function(i,o){try{return r.call(t,i,o)}catch(t){if(!chownErOk(t))throw t}}}function chownFix(r){if(!r)return r;return function(i,o,a,u){return r.call(t,i,o,a,(function(t){if(chownErOk(t))t=null;if(u)u.apply(this,arguments)}))}}function chownFixSync(r){if(!r)return r;return function(i,o,a){try{return r.call(t,i,o,a)}catch(t){if(!chownErOk(t))throw t}}}function statFix(r){if(!r)return r;return function(i,o,a){if(typeof o==="function"){a=o;o=null}function callback(t,r){if(r){if(r.uid<0)r.uid+=4294967296;if(r.gid<0)r.gid+=4294967296}if(a)a.apply(this,arguments)}return o?r.call(t,i,o,callback):r.call(t,i,callback)}}function statFixSync(r){if(!r)return r;return function(i,o){var a=o?r.call(t,i,o):r.call(t,i);if(a){if(a.uid<0)a.uid+=4294967296;if(a.gid<0)a.gid+=4294967296}return a}}function chownErOk(t){if(!t)return true;if(t.code==="ENOSYS")return true;var r=!process.getuid||process.getuid()!==0;if(r){if(t.code==="EINVAL"||t.code==="EPERM")return true}return false}}},6738:t=>{"use strict";t.exports=(t,r=process.argv)=>{const i=t.startsWith("-")?"":t.length===1?"-":"--";const o=r.indexOf(i+t);const a=r.indexOf("--");return o!==-1&&(a===-1||o<a)}},3697:(t,r,i)=>{"use strict";const o=i(6642);const isGitHubShorthand=t=>{const r=t.indexOf("#");const i=t.indexOf("/");const o=t.indexOf("/",i+1);const a=t.indexOf(":");const u=/\s/.exec(t);const l=t.indexOf("@");const h=!u||r>-1&&u.index>r;const p=l===-1||r>-1&&l>r;const d=a===-1||r>-1&&a>r;const m=o===-1||r>-1&&o>r;const g=i>0;const y=r>-1?t[r-1]!=="/":!t.endsWith("/");const A=!t.startsWith(".");return h&&g&&y&&A&&p&&d&&m};t.exports=(t,r,{gitHosts:i,protocols:a})=>{if(!t){return}const u=isGitHubShorthand(t)?`github:${t}`:t;const l=o(u,a);if(!l){return}const h=i.byShortcut[l.protocol];const p=i.byDomain[l.hostname.startsWith("www.")?l.hostname.slice(4):l.hostname];const d=h||p;if(!d){return}const m=i[h||p];let g=null;if(a[l.protocol]?.auth&&(l.username||l.password)){g=`${l.username}${l.password?":"+l.password:""}`}let y=null;let A=null;let b=null;let v=null;try{if(h){let t=l.pathname.startsWith("/")?l.pathname.slice(1):l.pathname;const r=t.indexOf("@");if(r>-1){t=t.slice(r+1)}const i=t.lastIndexOf("/");if(i>-1){A=decodeURIComponent(t.slice(0,i));if(!A){A=null}b=decodeURIComponent(t.slice(i+1))}else{b=decodeURIComponent(t)}if(b.endsWith(".git")){b=b.slice(0,-4)}if(l.hash){y=decodeURIComponent(l.hash.slice(1))}v="shortcut"}else{if(!m.protocols.includes(l.protocol)){return}const t=m.extract(l);if(!t){return}A=t.user&&decodeURIComponent(t.user);b=decodeURIComponent(t.project);y=decodeURIComponent(t.committish);v=a[l.protocol]?.name||l.protocol.slice(0,-1)}}catch(t){if(t instanceof URIError){return}else{throw t}}return[d,A,g,b,y,v,r]}},8393:t=>{"use strict";const maybeJoin=(...t)=>t.every((t=>t))?t.join(""):"";const maybeEncode=t=>t?encodeURIComponent(t):"";const formatHashFragment=t=>t.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-");const r={sshtemplate:({domain:t,user:r,project:i,committish:o})=>`git@${t}:${r}/${i}.git${maybeJoin("#",o)}`,sshurltemplate:({domain:t,user:r,project:i,committish:o})=>`git+ssh://git@${t}/${r}/${i}.git${maybeJoin("#",o)}`,edittemplate:({domain:t,user:r,project:i,committish:o,editpath:a,path:u})=>`https://${t}/${r}/${i}${maybeJoin("/",a,"/",maybeEncode(o||"HEAD"),"/",u)}`,browsetemplate:({domain:t,user:r,project:i,committish:o,treepath:a})=>`https://${t}/${r}/${i}${maybeJoin("/",a,"/",maybeEncode(o))}`,browsetreetemplate:({domain:t,user:r,project:i,committish:o,treepath:a,path:u,fragment:l,hashformat:h})=>`https://${t}/${r}/${i}/${a}/${maybeEncode(o||"HEAD")}/${u}${maybeJoin("#",h(l||""))}`,browseblobtemplate:({domain:t,user:r,project:i,committish:o,blobpath:a,path:u,fragment:l,hashformat:h})=>`https://${t}/${r}/${i}/${a}/${maybeEncode(o||"HEAD")}/${u}${maybeJoin("#",h(l||""))}`,docstemplate:({domain:t,user:r,project:i,treepath:o,committish:a})=>`https://${t}/${r}/${i}${maybeJoin("/",o,"/",maybeEncode(a))}#readme`,httpstemplate:({auth:t,domain:r,user:i,project:o,committish:a})=>`git+https://${maybeJoin(t,"@")}${r}/${i}/${o}.git${maybeJoin("#",a)}`,filetemplate:({domain:t,user:r,project:i,committish:o,path:a})=>`https://${t}/${r}/${i}/raw/${maybeEncode(o||"HEAD")}/${a}`,shortcuttemplate:({type:t,user:r,project:i,committish:o})=>`${t}:${r}/${i}${maybeJoin("#",o)}`,pathtemplate:({user:t,project:r,committish:i})=>`${t}/${r}${maybeJoin("#",i)}`,bugstemplate:({domain:t,user:r,project:i})=>`https://${t}/${r}/${i}/issues`,hashformat:formatHashFragment};const i={};i.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:t,user:r,project:i,committish:o,path:a})=>`https://${maybeJoin(t,"@")}raw.githubusercontent.com/${r}/${i}/${maybeEncode(o||"HEAD")}/${a}`,gittemplate:({auth:t,domain:r,user:i,project:o,committish:a})=>`git://${maybeJoin(t,"@")}${r}/${i}/${o}.git${maybeJoin("#",a)}`,tarballtemplate:({domain:t,user:r,project:i,committish:o})=>`https://codeload.${t}/${r}/${i}/tar.gz/${maybeEncode(o||"HEAD")}`,extract:t=>{let[,r,i,o,a]=t.pathname.split("/",5);if(o&&o!=="tree"){return}if(!o){a=t.hash.slice(1)}if(i&&i.endsWith(".git")){i=i.slice(0,-4)}if(!r||!i){return}return{user:r,project:i,committish:a}}};i.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:t,user:r,project:i,committish:o,treepath:a,path:u,editpath:l})=>`https://${t}/${r}/${i}${maybeJoin("/",a,"/",maybeEncode(o||"HEAD"),"/",u,l)}`,tarballtemplate:({domain:t,user:r,project:i,committish:o})=>`https://${t}/${r}/${i}/get/${maybeEncode(o||"HEAD")}.tar.gz`,extract:t=>{let[,r,i,o]=t.pathname.split("/",4);if(["get"].includes(o)){return}if(i&&i.endsWith(".git")){i=i.slice(0,-4)}if(!r||!i){return}return{user:r,project:i,committish:t.hash.slice(1)}}};i.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:t,domain:r,user:i,project:o,committish:a})=>`git+https://${maybeJoin(t,"@")}${r}/${i}/${o}.git${maybeJoin("#",a)}`,tarballtemplate:({domain:t,user:r,project:i,committish:o})=>`https://${t}/${r}/${i}/repository/archive.tar.gz?ref=${maybeEncode(o||"HEAD")}`,extract:t=>{const r=t.pathname.slice(1);if(r.includes("/-/")||r.includes("/archive.tar.gz")){return}const i=r.split("/");let o=i.pop();if(o.endsWith(".git")){o=o.slice(0,-4)}const a=i.join("/");if(!a||!o){return}return{user:a,project:o,committish:t.hash.slice(1)}}};i.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:t,project:r,committish:i})=>`git@${t}:${r}.git${maybeJoin("#",i)}`,sshurltemplate:({domain:t,project:r,committish:i})=>`git+ssh://git@${t}/${r}.git${maybeJoin("#",i)}`,edittemplate:({domain:t,user:r,project:i,committish:o,editpath:a})=>`https://${t}/${r}/${i}${maybeJoin("/",maybeEncode(o))}/${a}`,browsetemplate:({domain:t,project:r,committish:i})=>`https://${t}/${r}${maybeJoin("/",maybeEncode(i))}`,browsetreetemplate:({domain:t,project:r,committish:i,path:o,hashformat:a})=>`https://${t}/${r}${maybeJoin("/",maybeEncode(i))}${maybeJoin("#",a(o))}`,browseblobtemplate:({domain:t,project:r,committish:i,path:o,hashformat:a})=>`https://${t}/${r}${maybeJoin("/",maybeEncode(i))}${maybeJoin("#",a(o))}`,docstemplate:({domain:t,project:r,committish:i})=>`https://${t}/${r}${maybeJoin("/",maybeEncode(i))}`,httpstemplate:({domain:t,project:r,committish:i})=>`git+https://${t}/${r}.git${maybeJoin("#",i)}`,filetemplate:({user:t,project:r,committish:i,path:o})=>`https://gist.githubusercontent.com/${t}/${r}/raw${maybeJoin("/",maybeEncode(i))}/${o}`,shortcuttemplate:({type:t,project:r,committish:i})=>`${t}:${r}${maybeJoin("#",i)}`,pathtemplate:({project:t,committish:r})=>`${t}${maybeJoin("#",r)}`,bugstemplate:({domain:t,project:r})=>`https://${t}/${r}`,gittemplate:({domain:t,project:r,committish:i})=>`git://${t}/${r}.git${maybeJoin("#",i)}`,tarballtemplate:({project:t,committish:r})=>`https://codeload.github.com/gist/${t}/tar.gz/${maybeEncode(r||"HEAD")}`,extract:t=>{let[,r,i,o]=t.pathname.split("/",4);if(o==="raw"){return}if(!i){if(!r){return}i=r;r=null}if(i.endsWith(".git")){i=i.slice(0,-4)}return{user:r,project:i,committish:t.hash.slice(1)}},hashformat:function(t){return t&&"file-"+formatHashFragment(t)}};i.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:t,user:r,project:i,committish:o,path:a})=>`https://${t}/${r}/${i}/blob/${maybeEncode(o)||"HEAD"}/${a}`,httpstemplate:({domain:t,user:r,project:i,committish:o})=>`https://${t}/${r}/${i}.git${maybeJoin("#",o)}`,tarballtemplate:({domain:t,user:r,project:i,committish:o})=>`https://${t}/${r}/${i}/archive/${maybeEncode(o)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:t=>{let[,r,i,o]=t.pathname.split("/",4);if(["archive"].includes(o)){return}if(i&&i.endsWith(".git")){i=i.slice(0,-4)}if(!r||!i){return}return{user:r,project:i,committish:t.hash.slice(1)}}};for(const[t,o]of Object.entries(i)){i[t]=Object.assign({},r,o)}t.exports=i},6069:(t,r,i)=>{"use strict";const{LRUCache:o}=i(3576);const a=i(8393);const u=i(3697);const l=i(6642);const h=new o({max:1e3});class GitHost{constructor(t,r,i,o,a,u,l={}){Object.assign(this,GitHost.#e[t],{type:t,user:r,auth:i,project:o,committish:a,default:u,opts:l})}static#e={byShortcut:{},byDomain:{}};static#t={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:true},"git:":{auth:true},"http:":{auth:true},"https:":{auth:true},"git+http:":{auth:true}};static addHost(t,r){GitHost.#e[t]=r;GitHost.#e.byDomain[r.domain]=t;GitHost.#e.byShortcut[`${t}:`]=t;GitHost.#t[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!=="string"){return}const i=t+JSON.stringify(r||{});if(!h.has(i)){const o=u(t,r,{gitHosts:GitHost.#e,protocols:GitHost.#t});h.set(i,o?new GitHost(...o):undefined)}return h.get(i)}static parseUrl(t){return l(t)}#r(t,r){if(typeof t!=="function"){return null}const i={...this,...this.opts,...r};if(!i.path){i.path=""}if(i.path.startsWith("/")){i.path=i.path.slice(1)}if(i.noCommittish){i.committish=null}const o=t(i);return i.noGitPlus&&o.startsWith("git+")?o.slice(4):o}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#r(this.sshtemplate,t)}sshurl(t){return this.#r(this.sshurltemplate,t)}browse(t,...r){if(typeof t!=="string"){return this.#r(this.browsetemplate,t)}if(typeof r[0]!=="string"){return this.#r(this.browsetreetemplate,{...r[0],path:t})}return this.#r(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){if(typeof r[0]!=="string"){return this.#r(this.browseblobtemplate,{...r[0],path:t})}return this.#r(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#r(this.docstemplate,t)}bugs(t){return this.#r(this.bugstemplate,t)}https(t){return this.#r(this.httpstemplate,t)}git(t){return this.#r(this.gittemplate,t)}shortcut(t){return this.#r(this.shortcuttemplate,t)}path(t){return this.#r(this.pathtemplate,t)}tarball(t){return this.#r(this.tarballtemplate,{...t,noCommittish:false})}file(t,r){return this.#r(this.filetemplate,{...r,path:t})}edit(t,r){return this.#r(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){if(this.default&&typeof this[this.default]==="function"){return this[this.default](t)}return this.sshurl(t)}}for(const[t,r]of Object.entries(a)){GitHost.addHost(t,r)}t.exports=GitHost},6642:(t,r,i)=>{const o=i(7310);const lastIndexOfBefore=(t,r,i)=>{const o=t.indexOf(i);return t.lastIndexOf(r,o>-1?o:Infinity)};const safeUrl=t=>{try{return new o.URL(t)}catch{}};const correctProtocol=(t,r)=>{const i=t.indexOf(":");const o=t.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(r,o)){return t}const a=t.indexOf("@");if(a>-1){if(a>i){return`git+ssh://${t}`}else{return t}}const u=t.indexOf("//");if(u===i+1){return t}return`${t.slice(0,i+1)}//${t.slice(i+1)}`};const correctUrl=t=>{const r=lastIndexOfBefore(t,"@","#");const i=lastIndexOfBefore(t,":","#");if(i>r){t=t.slice(0,i)+"/"+t.slice(i+1)}if(lastIndexOfBefore(t,":","#")===-1&&t.indexOf("//")===-1){t=`git+ssh://${t}`}return t};t.exports=(t,r)=>{const i=r?correctProtocol(t,r):t;return safeUrl(i)||safeUrl(correctUrl(i))}},5091:t=>{
34
+ */const o=i(3837);const a=i(887);const isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);const transform=t=>r=>t===true?Number(r):String(r);const isValidValue=t=>typeof t==="number"||typeof t==="string"&&t!=="";const isNumber=t=>Number.isInteger(+t);const zeros=t=>{let r=`${t}`;let i=-1;if(r[0]==="-")r=r.slice(1);if(r==="0")return false;while(r[++i]==="0");return i>0};const stringify=(t,r,i)=>{if(typeof t==="string"||typeof r==="string"){return true}return i.stringify===true};const pad=(t,r,i)=>{if(r>0){let i=t[0]==="-"?"-":"";if(i)t=t.slice(1);t=i+t.padStart(i?r-1:r,"0")}if(i===false){return String(t)}return t};const toMaxLen=(t,r)=>{let i=t[0]==="-"?"-":"";if(i){t=t.slice(1);r--}while(t.length<r)t="0"+t;return i?"-"+t:t};const toSequence=(t,r,i)=>{t.negatives.sort(((t,r)=>t<r?-1:t>r?1:0));t.positives.sort(((t,r)=>t<r?-1:t>r?1:0));let o=r.capture?"":"?:";let a="";let u="";let l;if(t.positives.length){a=t.positives.map((t=>toMaxLen(String(t),i))).join("|")}if(t.negatives.length){u=`-(${o}${t.negatives.map((t=>toMaxLen(String(t),i))).join("|")})`}if(a&&u){l=`${a}|${u}`}else{l=a||u}if(r.wrap){return`(${o}${l})`}return l};const toRange=(t,r,i,o)=>{if(i){return a(t,r,{wrap:false,...o})}let u=String.fromCharCode(t);if(t===r)return u;let l=String.fromCharCode(r);return`[${u}-${l}]`};const toRegex=(t,r,i)=>{if(Array.isArray(t)){let r=i.wrap===true;let o=i.capture?"":"?:";return r?`(${o}${t.join("|")})`:t.join("|")}return a(t,r,i)};const rangeError=(...t)=>new RangeError("Invalid range arguments: "+o.inspect(...t));const invalidRange=(t,r,i)=>{if(i.strictRanges===true)throw rangeError([t,r]);return[]};const invalidStep=(t,r)=>{if(r.strictRanges===true){throw new TypeError(`Expected step "${t}" to be a number`)}return[]};const fillNumbers=(t,r,i=1,o={})=>{let a=Number(t);let u=Number(r);if(!Number.isInteger(a)||!Number.isInteger(u)){if(o.strictRanges===true)throw rangeError([t,r]);return[]}if(a===0)a=0;if(u===0)u=0;let l=a>u;let h=String(t);let p=String(r);let d=String(i);i=Math.max(Math.abs(i),1);let m=zeros(h)||zeros(p)||zeros(d);let g=m?Math.max(h.length,p.length,d.length):0;let y=m===false&&stringify(t,r,o)===false;let A=o.transform||transform(y);if(o.toRegex&&i===1){return toRange(toMaxLen(t,g),toMaxLen(r,g),true,o)}let b={negatives:[],positives:[]};let push=t=>b[t<0?"negatives":"positives"].push(Math.abs(t));let v=[];let w=0;while(l?a>=u:a<=u){if(o.toRegex===true&&i>1){push(a)}else{v.push(pad(A(a,w),g,y))}a=l?a-i:a+i;w++}if(o.toRegex===true){return i>1?toSequence(b,o,g):toRegex(v,null,{wrap:false,...o})}return v};const fillLetters=(t,r,i=1,o={})=>{if(!isNumber(t)&&t.length>1||!isNumber(r)&&r.length>1){return invalidRange(t,r,o)}let a=o.transform||(t=>String.fromCharCode(t));let u=`${t}`.charCodeAt(0);let l=`${r}`.charCodeAt(0);let h=u>l;let p=Math.min(u,l);let d=Math.max(u,l);if(o.toRegex&&i===1){return toRange(p,d,false,o)}let m=[];let g=0;while(h?u>=l:u<=l){m.push(a(u,g));u=h?u-i:u+i;g++}if(o.toRegex===true){return toRegex(m,null,{wrap:false,options:o})}return m};const fill=(t,r,i,o={})=>{if(r==null&&isValidValue(t)){return[t]}if(!isValidValue(t)||!isValidValue(r)){return invalidRange(t,r,o)}if(typeof i==="function"){return fill(t,r,1,{transform:i})}if(isObject(i)){return fill(t,r,0,i)}let a={...o};if(a.capture===true)a.wrap=true;i=i||a.step||1;if(!isNumber(i)){if(i!=null&&!isObject(i))return invalidStep(i,a);return fill(t,r,1,i)}if(isNumber(t)&&isNumber(r)){return fillNumbers(t,r,i,a)}return fillLetters(t,r,Math.max(Math.abs(i),1),a)};t.exports=fill},3597:(t,r,i)=>{"use strict";const o=i(3722);const a=i(2361).EventEmitter;const u=i(7147);let l=u.writev;if(!l){const t=process.binding("fs");const r=t.FSReqWrap||t.FSReqCallback;l=(i,o,a,u)=>{const done=(t,r)=>u(t,r,o);const l=new r;l.oncomplete=done;t.writeBuffers(i,o,a,l)}}const h=Symbol("_autoClose");const p=Symbol("_close");const d=Symbol("_ended");const m=Symbol("_fd");const g=Symbol("_finished");const y=Symbol("_flags");const A=Symbol("_flush");const b=Symbol("_handleChunk");const v=Symbol("_makeBuf");const w=Symbol("_mode");const E=Symbol("_needDrain");const _=Symbol("_onerror");const S=Symbol("_onopen");const C=Symbol("_onread");const D=Symbol("_onwrite");const x=Symbol("_open");const R=Symbol("_path");const O=Symbol("_pos");const k=Symbol("_queue");const P=Symbol("_read");const T=Symbol("_readSize");const L=Symbol("_reading");const I=Symbol("_remain");const M=Symbol("_size");const B=Symbol("_write");const N=Symbol("_writing");const $=Symbol("_defaultFlag");const j=Symbol("_errored");class ReadStream extends o{constructor(t,r){r=r||{};super(r);this.readable=true;this.writable=false;if(typeof t!=="string")throw new TypeError("path must be a string");this[j]=false;this[m]=typeof r.fd==="number"?r.fd:null;this[R]=t;this[T]=r.readSize||16*1024*1024;this[L]=false;this[M]=typeof r.size==="number"?r.size:Infinity;this[I]=this[M];this[h]=typeof r.autoClose==="boolean"?r.autoClose:true;if(typeof this[m]==="number")this[P]();else this[x]()}get fd(){return this[m]}get path(){return this[R]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[x](){u.open(this[R],"r",((t,r)=>this[S](t,r)))}[S](t,r){if(t)this[_](t);else{this[m]=r;this.emit("open",r);this[P]()}}[v](){return Buffer.allocUnsafe(Math.min(this[T],this[I]))}[P](){if(!this[L]){this[L]=true;const t=this[v]();if(t.length===0)return process.nextTick((()=>this[C](null,0,t)));u.read(this[m],t,0,t.length,null,((t,r,i)=>this[C](t,r,i)))}}[C](t,r,i){this[L]=false;if(t)this[_](t);else if(this[b](r,i))this[P]()}[p](){if(this[h]&&typeof this[m]==="number"){const t=this[m];this[m]=null;u.close(t,(t=>t?this.emit("error",t):this.emit("close")))}}[_](t){this[L]=true;this[p]();this.emit("error",t)}[b](t,r){let i=false;this[I]-=t;if(t>0)i=super.write(t<r.length?r.slice(0,t):r);if(t===0||this[I]<=0){i=false;this[p]();super.end()}return i}emit(t,r){switch(t){case"prefinish":case"finish":break;case"drain":if(typeof this[m]==="number")this[P]();break;case"error":if(this[j])return;this[j]=true;return super.emit(t,r);default:return super.emit(t,r)}}}class ReadStreamSync extends ReadStream{[x](){let t=true;try{this[S](null,u.openSync(this[R],"r"));t=false}finally{if(t)this[p]()}}[P](){let t=true;try{if(!this[L]){this[L]=true;do{const t=this[v]();const r=t.length===0?0:u.readSync(this[m],t,0,t.length,null);if(!this[b](r,t))break}while(true);this[L]=false}t=false}finally{if(t)this[p]()}}[p](){if(this[h]&&typeof this[m]==="number"){const t=this[m];this[m]=null;u.closeSync(t);this.emit("close")}}}class WriteStream extends a{constructor(t,r){r=r||{};super(r);this.readable=false;this.writable=true;this[j]=false;this[N]=false;this[d]=false;this[E]=false;this[k]=[];this[R]=t;this[m]=typeof r.fd==="number"?r.fd:null;this[w]=r.mode===undefined?438:r.mode;this[O]=typeof r.start==="number"?r.start:null;this[h]=typeof r.autoClose==="boolean"?r.autoClose:true;const i=this[O]!==null?"r+":"w";this[$]=r.flags===undefined;this[y]=this[$]?i:r.flags;if(this[m]===null)this[x]()}emit(t,r){if(t==="error"){if(this[j])return;this[j]=true}return super.emit(t,r)}get fd(){return this[m]}get path(){return this[R]}[_](t){this[p]();this[N]=true;this.emit("error",t)}[x](){u.open(this[R],this[y],this[w],((t,r)=>this[S](t,r)))}[S](t,r){if(this[$]&&this[y]==="r+"&&t&&t.code==="ENOENT"){this[y]="w";this[x]()}else if(t)this[_](t);else{this[m]=r;this.emit("open",r);this[A]()}}end(t,r){if(t)this.write(t,r);this[d]=true;if(!this[N]&&!this[k].length&&typeof this[m]==="number")this[D](null,0);return this}write(t,r){if(typeof t==="string")t=Buffer.from(t,r);if(this[d]){this.emit("error",new Error("write() after end()"));return false}if(this[m]===null||this[N]||this[k].length){this[k].push(t);this[E]=true;return false}this[N]=true;this[B](t);return true}[B](t){u.write(this[m],t,0,t.length,this[O],((t,r)=>this[D](t,r)))}[D](t,r){if(t)this[_](t);else{if(this[O]!==null)this[O]+=r;if(this[k].length)this[A]();else{this[N]=false;if(this[d]&&!this[g]){this[g]=true;this[p]();this.emit("finish")}else if(this[E]){this[E]=false;this.emit("drain")}}}}[A](){if(this[k].length===0){if(this[d])this[D](null,0)}else if(this[k].length===1)this[B](this[k].pop());else{const t=this[k];this[k]=[];l(this[m],t,this[O],((t,r)=>this[D](t,r)))}}[p](){if(this[h]&&typeof this[m]==="number"){const t=this[m];this[m]=null;u.close(t,(t=>t?this.emit("error",t):this.emit("close")))}}}class WriteStreamSync extends WriteStream{[x](){let t;if(this[$]&&this[y]==="r+"){try{t=u.openSync(this[R],this[y],this[w])}catch(t){if(t.code==="ENOENT"){this[y]="w";return this[x]()}else throw t}}else t=u.openSync(this[R],this[y],this[w]);this[S](null,t)}[p](){if(this[h]&&typeof this[m]==="number"){const t=this[m];this[m]=null;u.closeSync(t);this.emit("close")}}[B](t){let r=true;try{this[D](null,u.writeSync(this[m],t,0,t.length,this[O]));r=false}finally{if(r)try{this[p]()}catch(t){}}}}r.ReadStream=ReadStream;r.ReadStreamSync=ReadStreamSync;r.WriteStream=WriteStream;r.WriteStreamSync=WriteStreamSync},3722:(t,r,i)=>{"use strict";const o=typeof process==="object"&&process?process:{stdout:null,stderr:null};const a=i(2361);const u=i(2781);const l=i(1576).StringDecoder;const h=Symbol("EOF");const p=Symbol("maybeEmitEnd");const d=Symbol("emittedEnd");const m=Symbol("emittingEnd");const g=Symbol("emittedError");const y=Symbol("closed");const A=Symbol("read");const b=Symbol("flush");const v=Symbol("flushChunk");const w=Symbol("encoding");const E=Symbol("decoder");const _=Symbol("flowing");const S=Symbol("paused");const C=Symbol("resume");const D=Symbol("bufferLength");const x=Symbol("bufferPush");const R=Symbol("bufferShift");const O=Symbol("objectMode");const k=Symbol("destroyed");const P=Symbol("emitData");const T=Symbol("emitEnd");const L=Symbol("emitEnd2");const I=Symbol("async");const defer=t=>Promise.resolve().then(t);const M=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const B=M&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const N=M&&Symbol.iterator||Symbol("iterator not implemented");const isEndish=t=>t==="end"||t==="finish"||t==="prefinish";const isArrayBuffer=t=>t instanceof ArrayBuffer||typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const isArrayBufferView=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);class Pipe{constructor(t,r,i){this.src=t;this.dest=r;this.opts=i;this.ondrain=()=>t[C]();r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(t,r,i){super(t,r,i);this.proxyErrors=t=>r.emit("error",t);t.on("error",this.proxyErrors)}}t.exports=class Minipass extends u{constructor(t){super();this[_]=false;this[S]=false;this.pipes=[];this.buffer=[];this[O]=t&&t.objectMode||false;if(this[O])this[w]=null;else this[w]=t&&t.encoding||null;if(this[w]==="buffer")this[w]=null;this[I]=t&&!!t.async||false;this[E]=this[w]?new l(this[w]):null;this[h]=false;this[d]=false;this[m]=false;this[y]=false;this[g]=null;this.writable=true;this.readable=true;this[D]=0;this[k]=false}get bufferLength(){return this[D]}get encoding(){return this[w]}set encoding(t){if(this[O])throw new Error("cannot set encoding in objectMode");if(this[w]&&t!==this[w]&&(this[E]&&this[E].lastNeed||this[D]))throw new Error("cannot change encoding");if(this[w]!==t){this[E]=t?new l(t):null;if(this.buffer.length)this.buffer=this.buffer.map((t=>this[E].write(t)))}this[w]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[O]}set objectMode(t){this[O]=this[O]||!!t}get["async"](){return this[I]}set["async"](t){this[I]=this[I]||!!t}write(t,r,i){if(this[h])throw new Error("write after end");if(this[k]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof r==="function")i=r,r="utf8";if(!r)r="utf8";const o=this[I]?defer:t=>t();if(!this[O]&&!Buffer.isBuffer(t)){if(isArrayBufferView(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(isArrayBuffer(t))t=Buffer.from(t);else if(typeof t!=="string")this.objectMode=true}if(this[O]){if(this.flowing&&this[D]!==0)this[b](true);if(this.flowing)this.emit("data",t);else this[x](t);if(this[D]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(!t.length){if(this[D]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(typeof t==="string"&&!(r===this[w]&&!this[E].lastNeed)){t=Buffer.from(t,r)}if(Buffer.isBuffer(t)&&this[w])t=this[E].write(t);if(this.flowing&&this[D]!==0)this[b](true);if(this.flowing)this.emit("data",t);else this[x](t);if(this[D]!==0)this.emit("readable");if(i)o(i);return this.flowing}read(t){if(this[k])return null;if(this[D]===0||t===0||t>this[D]){this[p]();return null}if(this[O])t=null;if(this.buffer.length>1&&!this[O]){if(this.encoding)this.buffer=[this.buffer.join("")];else this.buffer=[Buffer.concat(this.buffer,this[D])]}const r=this[A](t||null,this.buffer[0]);this[p]();return r}[A](t,r){if(t===r.length||t===null)this[R]();else{this.buffer[0]=r.slice(t);r=r.slice(0,t);this[D]-=t}this.emit("data",r);if(!this.buffer.length&&!this[h])this.emit("drain");return r}end(t,r,i){if(typeof t==="function")i=t,t=null;if(typeof r==="function")i=r,r="utf8";if(t)this.write(t,r);if(i)this.once("end",i);this[h]=true;this.writable=false;if(this.flowing||!this[S])this[p]();return this}[C](){if(this[k])return;this[S]=false;this[_]=true;this.emit("resume");if(this.buffer.length)this[b]();else if(this[h])this[p]();else this.emit("drain")}resume(){return this[C]()}pause(){this[_]=false;this[S]=true}get destroyed(){return this[k]}get flowing(){return this[_]}get paused(){return this[S]}[x](t){if(this[O])this[D]+=1;else this[D]+=t.length;this.buffer.push(t)}[R](){if(this.buffer.length){if(this[O])this[D]-=1;else this[D]-=this.buffer[0].length}return this.buffer.shift()}[b](t){do{}while(this[v](this[R]()));if(!t&&!this.buffer.length&&!this[h])this.emit("drain")}[v](t){return t?(this.emit("data",t),this.flowing):false}pipe(t,r){if(this[k])return;const i=this[d];r=r||{};if(t===o.stdout||t===o.stderr)r.end=false;else r.end=r.end!==false;r.proxyErrors=!!r.proxyErrors;if(i){if(r.end)t.end()}else{this.pipes.push(!r.proxyErrors?new Pipe(this,t,r):new PipeProxyErrors(this,t,r));if(this[I])defer((()=>this[C]()));else this[C]()}return t}unpipe(t){const r=this.pipes.find((r=>r.dest===t));if(r){this.pipes.splice(this.pipes.indexOf(r),1);r.unpipe()}}addListener(t,r){return this.on(t,r)}on(t,r){const i=super.on(t,r);if(t==="data"&&!this.pipes.length&&!this.flowing)this[C]();else if(t==="readable"&&this[D]!==0)super.emit("readable");else if(isEndish(t)&&this[d]){super.emit(t);this.removeAllListeners(t)}else if(t==="error"&&this[g]){if(this[I])defer((()=>r.call(this,this[g])));else r.call(this,this[g])}return i}get emittedEnd(){return this[d]}[p](){if(!this[m]&&!this[d]&&!this[k]&&this.buffer.length===0&&this[h]){this[m]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[y])this.emit("close");this[m]=false}}emit(t,r,...i){if(t!=="error"&&t!=="close"&&t!==k&&this[k])return;else if(t==="data"){return!r?false:this[I]?defer((()=>this[P](r))):this[P](r)}else if(t==="end"){return this[T]()}else if(t==="close"){this[y]=true;if(!this[d]&&!this[k])return;const t=super.emit("close");this.removeAllListeners("close");return t}else if(t==="error"){this[g]=r;const t=super.emit("error",r);this[p]();return t}else if(t==="resume"){const t=super.emit("resume");this[p]();return t}else if(t==="finish"||t==="prefinish"){const r=super.emit(t);this.removeAllListeners(t);return r}const o=super.emit(t,r,...i);this[p]();return o}[P](t){for(const r of this.pipes){if(r.dest.write(t)===false)this.pause()}const r=super.emit("data",t);this[p]();return r}[T](){if(this[d])return;this[d]=true;this.readable=false;if(this[I])defer((()=>this[L]()));else this[L]()}[L](){if(this[E]){const t=this[E].end();if(t){for(const r of this.pipes){r.dest.write(t)}super.emit("data",t)}}for(const t of this.pipes){t.end()}const t=super.emit("end");this.removeAllListeners("end");return t}collect(){const t=[];if(!this[O])t.dataLength=0;const r=this.promise();this.on("data",(r=>{t.push(r);if(!this[O])t.dataLength+=r.length}));return r.then((()=>t))}concat(){return this[O]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((t=>this[O]?Promise.reject(new Error("cannot concat in objectMode")):this[w]?t.join(""):Buffer.concat(t,t.dataLength)))}promise(){return new Promise(((t,r)=>{this.on(k,(()=>r(new Error("stream destroyed"))));this.on("error",(t=>r(t)));this.on("end",(()=>t()))}))}[B](){const next=()=>{const t=this.read();if(t!==null)return Promise.resolve({done:false,value:t});if(this[h])return Promise.resolve({done:true});let r=null;let i=null;const onerr=t=>{this.removeListener("data",ondata);this.removeListener("end",onend);i(t)};const ondata=t=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.pause();r({value:t,done:!!this[h]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);r({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((t,o)=>{i=o;r=t;this.once(k,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next}}[N](){const next=()=>{const t=this.read();const r=t===null;return{value:t,done:r}};return{next:next}}destroy(t){if(this[k]){if(t)this.emit("error",t);else this.emit(k);return this}this[k]=true;this.buffer.length=0;this[D]=0;if(typeof this.close==="function"&&!this[y])this.close();if(t)this.emit("error",t);else this.emit(k);return this}static isStream(t){return!!t&&(t instanceof Minipass||t instanceof u||t instanceof a&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function"))}}},7945:(t,r,i)=>{const o=i(3837);const a=i(7310);let u=false;let l=true;function _value(t,r){const i=process.env[t];if(i===undefined){if(r===undefined&&!l){return i}if(r===undefined){throw new Error("GetEnv.Nonexistent: "+t+" does not exist "+"and no fallback value provided.")}if(u){throw new Error("GetEnv.DisabledFallbacks: "+t+" relying on fallback "+"when fallbacks have been disabled")}return""+r}return i}const h={string:function(t){return""+t},int:function(t){const r=t.match(/^-?\d+$/);if(!r){throw new Error("GetEnv.NoInteger: "+t+" is not an integer.")}return+t},float:function(t){const r=+t===Infinity||+t===-Infinity;if(r){throw new Error("GetEnv.Infinity: "+t+" is set to +/-Infinity.")}const i=!(isNaN(t)||t==="");if(!i){throw new Error("GetEnv.NoFloat: "+t+" is not a number.")}return+t},bool:function(t){const r=t==="true"||t==="false";if(!r){throw new Error("GetEnv.NoBoolean: "+t+" is not a boolean.")}return t==="true"},boolish:function(t){try{return h.bool(t)}catch(r){const i=t==="1"||t==="0";if(!i){throw new Error("GetEnv.NoBoolean: "+t+" is not a boolean.")}return t==="1"}},url:a.parse};function converter(t){return function(r,i){if(typeof r=="string"){const o=_value(r,i);return h[t](o)}else{return p.multi(r)}}}const p=converter("string");Object.keys(h).forEach((function(t){p[t]=converter(t)}));p.array=function array(t,r,i){r=r||"string";if(Object.keys(h).indexOf(r)===-1){throw new Error("GetEnv.ArrayUndefinedType: Unknown array type "+r)}const o=_value(t,i);return o.split(/\s*,\s*/).map(h[r])};p.multi=function multi(t){const r={};for(let i in t){const a=t[i];if(o.isArray(a)){switch(a.length){case 1:case 2:r[i]=p(a[0],a[1]);break;case 3:r[i]=p[a[2]](a[0],a[1]);break;default:throw"getenv.multi(): invalid spec";break}}else{r[i]=p(a)}}return r};p.disableFallbacks=function(){u=true};p.enableFallbacks=function(){u=false};p.disableErrors=function(){l=false};p.enableErrors=function(){l=true};t.exports=p},9132:t=>{"use strict";t.exports=clone;var r=Object.getPrototypeOf||function(t){return t.__proto__};function clone(t){if(t===null||typeof t!=="object")return t;if(t instanceof Object)var i={__proto__:r(t)};else var i=Object.create(null);Object.getOwnPropertyNames(t).forEach((function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))}));return i}},552:(t,r,i)=>{var o=i(7147);var a=i(1290);var u=i(4410);var l=i(9132);var h=i(3837);var p;var d;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){p=Symbol.for("graceful-fs.queue");d=Symbol.for("graceful-fs.previous")}else{p="___graceful-fs.queue";d="___graceful-fs.previous"}function noop(){}function publishQueue(t,r){Object.defineProperty(t,p,{get:function(){return r}})}var m=noop;if(h.debuglog)m=h.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))m=function(){var t=h.format.apply(h,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: ");console.error(t)};if(!o[p]){var g=global[p]||[];publishQueue(o,g);o.close=function(t){function close(r,i){return t.call(o,r,(function(t){if(!t){resetQueue()}if(typeof i==="function")i.apply(this,arguments)}))}Object.defineProperty(close,d,{value:t});return close}(o.close);o.closeSync=function(t){function closeSync(r){t.apply(o,arguments);resetQueue()}Object.defineProperty(closeSync,d,{value:t});return closeSync}(o.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){m(o[p]);i(9491).equal(o[p].length,0)}))}}if(!global[p]){publishQueue(global,o[p])}t.exports=patch(l(o));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched){t.exports=patch(o);o.__patched=true}function patch(t){a(t);t.gracefulify=patch;t.createReadStream=createReadStream;t.createWriteStream=createWriteStream;var r=t.readFile;t.readFile=readFile;function readFile(t,i,o){if(typeof i==="function")o=i,i=null;return go$readFile(t,i,o);function go$readFile(t,i,o,a){return r(t,i,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$readFile,[t,i,o],r,a||Date.now(),Date.now()]);else{if(typeof o==="function")o.apply(this,arguments)}}))}}var i=t.writeFile;t.writeFile=writeFile;function writeFile(t,r,o,a){if(typeof o==="function")a=o,o=null;return go$writeFile(t,r,o,a);function go$writeFile(t,r,o,a,u){return i(t,r,o,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$writeFile,[t,r,o,a],i,u||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var o=t.appendFile;if(o)t.appendFile=appendFile;function appendFile(t,r,i,a){if(typeof i==="function")a=i,i=null;return go$appendFile(t,r,i,a);function go$appendFile(t,r,i,a,u){return o(t,r,i,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$appendFile,[t,r,i,a],o,u||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var l=t.copyFile;if(l)t.copyFile=copyFile;function copyFile(t,r,i,o){if(typeof i==="function"){o=i;i=0}return go$copyFile(t,r,i,o);function go$copyFile(t,r,i,o,a){return l(t,r,i,(function(u){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))enqueue([go$copyFile,[t,r,i,o],u,a||Date.now(),Date.now()]);else{if(typeof o==="function")o.apply(this,arguments)}}))}}var h=t.readdir;t.readdir=readdir;var p=/^v[0-5]\./;function readdir(t,r,i){if(typeof r==="function")i=r,r=null;var o=p.test(process.version)?function go$readdir(t,r,i,o){return h(t,fs$readdirCallback(t,r,i,o))}:function go$readdir(t,r,i,o){return h(t,r,fs$readdirCallback(t,r,i,o))};return o(t,r,i);function fs$readdirCallback(t,r,i,a){return function(u,l){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))enqueue([o,[t,r,i],u,a||Date.now(),Date.now()]);else{if(l&&l.sort)l.sort();if(typeof i==="function")i.call(this,u,l)}}}}if(process.version.substr(0,4)==="v0.8"){var d=u(t);ReadStream=d.ReadStream;WriteStream=d.WriteStream}var m=t.ReadStream;if(m){ReadStream.prototype=Object.create(m.prototype);ReadStream.prototype.open=ReadStream$open}var g=t.WriteStream;if(g){WriteStream.prototype=Object.create(g.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(t,"ReadStream",{get:function(){return ReadStream},set:function(t){ReadStream=t},enumerable:true,configurable:true});Object.defineProperty(t,"WriteStream",{get:function(){return WriteStream},set:function(t){WriteStream=t},enumerable:true,configurable:true});var y=ReadStream;Object.defineProperty(t,"FileReadStream",{get:function(){return y},set:function(t){y=t},enumerable:true,configurable:true});var A=WriteStream;Object.defineProperty(t,"FileWriteStream",{get:function(){return A},set:function(t){A=t},enumerable:true,configurable:true});function ReadStream(t,r){if(this instanceof ReadStream)return m.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var t=this;open(t.path,t.flags,t.mode,(function(r,i){if(r){if(t.autoClose)t.destroy();t.emit("error",r)}else{t.fd=i;t.emit("open",i);t.read()}}))}function WriteStream(t,r){if(this instanceof WriteStream)return g.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var t=this;open(t.path,t.flags,t.mode,(function(r,i){if(r){t.destroy();t.emit("error",r)}else{t.fd=i;t.emit("open",i)}}))}function createReadStream(r,i){return new t.ReadStream(r,i)}function createWriteStream(r,i){return new t.WriteStream(r,i)}var b=t.open;t.open=open;function open(t,r,i,o){if(typeof i==="function")o=i,i=null;return go$open(t,r,i,o);function go$open(t,r,i,o,a){return b(t,r,i,(function(u,l){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))enqueue([go$open,[t,r,i,o],u,a||Date.now(),Date.now()]);else{if(typeof o==="function")o.apply(this,arguments)}}))}}return t}function enqueue(t){m("ENQUEUE",t[0].name,t[1]);o[p].push(t);retry()}var y;function resetQueue(){var t=Date.now();for(var r=0;r<o[p].length;++r){if(o[p][r].length>2){o[p][r][3]=t;o[p][r][4]=t}}retry()}function retry(){clearTimeout(y);y=undefined;if(o[p].length===0)return;var t=o[p].shift();var r=t[0];var i=t[1];var a=t[2];var u=t[3];var l=t[4];if(u===undefined){m("RETRY",r.name,i);r.apply(null,i)}else if(Date.now()-u>=6e4){m("TIMEOUT",r.name,i);var h=i.pop();if(typeof h==="function")h.call(null,a)}else{var d=Date.now()-l;var g=Math.max(l-u,1);var A=Math.min(g*1.2,100);if(d>=A){m("RETRY",r.name,i);r.apply(null,i.concat([u]))}else{o[p].push(t)}}if(y===undefined){y=setTimeout(retry,0)}}},4410:(t,r,i)=>{var o=i(2781).Stream;t.exports=legacy;function legacy(t){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(r,i){if(!(this instanceof ReadStream))return new ReadStream(r,i);o.call(this);var a=this;this.path=r;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;i=i||{};var u=Object.keys(i);for(var l=0,h=u.length;l<h;l++){var p=u[l];this[p]=i[p]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){a._read()}));return}t.open(this.path,this.flags,this.mode,(function(t,r){if(t){a.emit("error",t);a.readable=false;return}a.fd=r;a.emit("open",r);a._read()}))}function WriteStream(r,i){if(!(this instanceof WriteStream))return new WriteStream(r,i);o.call(this);this.path=r;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var a=Object.keys(i);for(var u=0,l=a.length;u<l;u++){var h=a[u];this[h]=i[h]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=t.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},1290:(t,r,i)=>{var o=i(2057);var a=process.cwd;var u=null;var l=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!u)u=a.call(process);return u};try{process.cwd()}catch(t){}if(typeof process.chdir==="function"){var h=process.chdir;process.chdir=function(t){u=null;h.call(process,t)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,h)}t.exports=patch;function patch(t){if(o.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(t)}if(!t.lutimes){patchLutimes(t)}t.chown=chownFix(t.chown);t.fchown=chownFix(t.fchown);t.lchown=chownFix(t.lchown);t.chmod=chmodFix(t.chmod);t.fchmod=chmodFix(t.fchmod);t.lchmod=chmodFix(t.lchmod);t.chownSync=chownFixSync(t.chownSync);t.fchownSync=chownFixSync(t.fchownSync);t.lchownSync=chownFixSync(t.lchownSync);t.chmodSync=chmodFixSync(t.chmodSync);t.fchmodSync=chmodFixSync(t.fchmodSync);t.lchmodSync=chmodFixSync(t.lchmodSync);t.stat=statFix(t.stat);t.fstat=statFix(t.fstat);t.lstat=statFix(t.lstat);t.statSync=statFixSync(t.statSync);t.fstatSync=statFixSync(t.fstatSync);t.lstatSync=statFixSync(t.lstatSync);if(t.chmod&&!t.lchmod){t.lchmod=function(t,r,i){if(i)process.nextTick(i)};t.lchmodSync=function(){}}if(t.chown&&!t.lchown){t.lchown=function(t,r,i,o){if(o)process.nextTick(o)};t.lchownSync=function(){}}if(l==="win32"){t.rename=typeof t.rename!=="function"?t.rename:function(r){function rename(i,o,a){var u=Date.now();var l=0;r(i,o,(function CB(h){if(h&&(h.code==="EACCES"||h.code==="EPERM"||h.code==="EBUSY")&&Date.now()-u<6e4){setTimeout((function(){t.stat(o,(function(t,u){if(t&&t.code==="ENOENT")r(i,o,CB);else a(h)}))}),l);if(l<100)l+=10;return}if(a)a(h)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,r);return rename}(t.rename)}t.read=typeof t.read!=="function"?t.read:function(r){function read(i,o,a,u,l,h){var p;if(h&&typeof h==="function"){var d=0;p=function(m,g,y){if(m&&m.code==="EAGAIN"&&d<10){d++;return r.call(t,i,o,a,u,l,p)}h.apply(this,arguments)}}return r.call(t,i,o,a,u,l,p)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,r);return read}(t.read);t.readSync=typeof t.readSync!=="function"?t.readSync:function(r){return function(i,o,a,u,l){var h=0;while(true){try{return r.call(t,i,o,a,u,l)}catch(t){if(t.code==="EAGAIN"&&h<10){h++;continue}throw t}}}}(t.readSync);function patchLchmod(t){t.lchmod=function(r,i,a){t.open(r,o.O_WRONLY|o.O_SYMLINK,i,(function(r,o){if(r){if(a)a(r);return}t.fchmod(o,i,(function(r){t.close(o,(function(t){if(a)a(r||t)}))}))}))};t.lchmodSync=function(r,i){var a=t.openSync(r,o.O_WRONLY|o.O_SYMLINK,i);var u=true;var l;try{l=t.fchmodSync(a,i);u=false}finally{if(u){try{t.closeSync(a)}catch(t){}}else{t.closeSync(a)}}return l}}function patchLutimes(t){if(o.hasOwnProperty("O_SYMLINK")&&t.futimes){t.lutimes=function(r,i,a,u){t.open(r,o.O_SYMLINK,(function(r,o){if(r){if(u)u(r);return}t.futimes(o,i,a,(function(r){t.close(o,(function(t){if(u)u(r||t)}))}))}))};t.lutimesSync=function(r,i,a){var u=t.openSync(r,o.O_SYMLINK);var l;var h=true;try{l=t.futimesSync(u,i,a);h=false}finally{if(h){try{t.closeSync(u)}catch(t){}}else{t.closeSync(u)}}return l}}else if(t.futimes){t.lutimes=function(t,r,i,o){if(o)process.nextTick(o)};t.lutimesSync=function(){}}}function chmodFix(r){if(!r)return r;return function(i,o,a){return r.call(t,i,o,(function(t){if(chownErOk(t))t=null;if(a)a.apply(this,arguments)}))}}function chmodFixSync(r){if(!r)return r;return function(i,o){try{return r.call(t,i,o)}catch(t){if(!chownErOk(t))throw t}}}function chownFix(r){if(!r)return r;return function(i,o,a,u){return r.call(t,i,o,a,(function(t){if(chownErOk(t))t=null;if(u)u.apply(this,arguments)}))}}function chownFixSync(r){if(!r)return r;return function(i,o,a){try{return r.call(t,i,o,a)}catch(t){if(!chownErOk(t))throw t}}}function statFix(r){if(!r)return r;return function(i,o,a){if(typeof o==="function"){a=o;o=null}function callback(t,r){if(r){if(r.uid<0)r.uid+=4294967296;if(r.gid<0)r.gid+=4294967296}if(a)a.apply(this,arguments)}return o?r.call(t,i,o,callback):r.call(t,i,callback)}}function statFixSync(r){if(!r)return r;return function(i,o){var a=o?r.call(t,i,o):r.call(t,i);if(a){if(a.uid<0)a.uid+=4294967296;if(a.gid<0)a.gid+=4294967296}return a}}function chownErOk(t){if(!t)return true;if(t.code==="ENOSYS")return true;var r=!process.getuid||process.getuid()!==0;if(r){if(t.code==="EINVAL"||t.code==="EPERM")return true}return false}}},6738:t=>{"use strict";t.exports=(t,r=process.argv)=>{const i=t.startsWith("-")?"":t.length===1?"-":"--";const o=r.indexOf(i+t);const a=r.indexOf("--");return o!==-1&&(a===-1||o<a)}},3697:(t,r,i)=>{"use strict";const o=i(6642);const isGitHubShorthand=t=>{const r=t.indexOf("#");const i=t.indexOf("/");const o=t.indexOf("/",i+1);const a=t.indexOf(":");const u=/\s/.exec(t);const l=t.indexOf("@");const h=!u||r>-1&&u.index>r;const p=l===-1||r>-1&&l>r;const d=a===-1||r>-1&&a>r;const m=o===-1||r>-1&&o>r;const g=i>0;const y=r>-1?t[r-1]!=="/":!t.endsWith("/");const A=!t.startsWith(".");return h&&g&&y&&A&&p&&d&&m};t.exports=(t,r,{gitHosts:i,protocols:a})=>{if(!t){return}const u=isGitHubShorthand(t)?`github:${t}`:t;const l=o(u,a);if(!l){return}const h=i.byShortcut[l.protocol];const p=i.byDomain[l.hostname.startsWith("www.")?l.hostname.slice(4):l.hostname];const d=h||p;if(!d){return}const m=i[h||p];let g=null;if(a[l.protocol]?.auth&&(l.username||l.password)){g=`${l.username}${l.password?":"+l.password:""}`}let y=null;let A=null;let b=null;let v=null;try{if(h){let t=l.pathname.startsWith("/")?l.pathname.slice(1):l.pathname;const r=t.indexOf("@");if(r>-1){t=t.slice(r+1)}const i=t.lastIndexOf("/");if(i>-1){A=decodeURIComponent(t.slice(0,i));if(!A){A=null}b=decodeURIComponent(t.slice(i+1))}else{b=decodeURIComponent(t)}if(b.endsWith(".git")){b=b.slice(0,-4)}if(l.hash){y=decodeURIComponent(l.hash.slice(1))}v="shortcut"}else{if(!m.protocols.includes(l.protocol)){return}const t=m.extract(l);if(!t){return}A=t.user&&decodeURIComponent(t.user);b=decodeURIComponent(t.project);y=decodeURIComponent(t.committish);v=a[l.protocol]?.name||l.protocol.slice(0,-1)}}catch(t){if(t instanceof URIError){return}else{throw t}}return[d,A,g,b,y,v,r]}},8393:t=>{"use strict";const maybeJoin=(...t)=>t.every((t=>t))?t.join(""):"";const maybeEncode=t=>t?encodeURIComponent(t):"";const formatHashFragment=t=>t.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-");const r={sshtemplate:({domain:t,user:r,project:i,committish:o})=>`git@${t}:${r}/${i}.git${maybeJoin("#",o)}`,sshurltemplate:({domain:t,user:r,project:i,committish:o})=>`git+ssh://git@${t}/${r}/${i}.git${maybeJoin("#",o)}`,edittemplate:({domain:t,user:r,project:i,committish:o,editpath:a,path:u})=>`https://${t}/${r}/${i}${maybeJoin("/",a,"/",maybeEncode(o||"HEAD"),"/",u)}`,browsetemplate:({domain:t,user:r,project:i,committish:o,treepath:a})=>`https://${t}/${r}/${i}${maybeJoin("/",a,"/",maybeEncode(o))}`,browsetreetemplate:({domain:t,user:r,project:i,committish:o,treepath:a,path:u,fragment:l,hashformat:h})=>`https://${t}/${r}/${i}/${a}/${maybeEncode(o||"HEAD")}/${u}${maybeJoin("#",h(l||""))}`,browseblobtemplate:({domain:t,user:r,project:i,committish:o,blobpath:a,path:u,fragment:l,hashformat:h})=>`https://${t}/${r}/${i}/${a}/${maybeEncode(o||"HEAD")}/${u}${maybeJoin("#",h(l||""))}`,docstemplate:({domain:t,user:r,project:i,treepath:o,committish:a})=>`https://${t}/${r}/${i}${maybeJoin("/",o,"/",maybeEncode(a))}#readme`,httpstemplate:({auth:t,domain:r,user:i,project:o,committish:a})=>`git+https://${maybeJoin(t,"@")}${r}/${i}/${o}.git${maybeJoin("#",a)}`,filetemplate:({domain:t,user:r,project:i,committish:o,path:a})=>`https://${t}/${r}/${i}/raw/${maybeEncode(o||"HEAD")}/${a}`,shortcuttemplate:({type:t,user:r,project:i,committish:o})=>`${t}:${r}/${i}${maybeJoin("#",o)}`,pathtemplate:({user:t,project:r,committish:i})=>`${t}/${r}${maybeJoin("#",i)}`,bugstemplate:({domain:t,user:r,project:i})=>`https://${t}/${r}/${i}/issues`,hashformat:formatHashFragment};const i={};i.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:t,user:r,project:i,committish:o,path:a})=>`https://${maybeJoin(t,"@")}raw.githubusercontent.com/${r}/${i}/${maybeEncode(o||"HEAD")}/${a}`,gittemplate:({auth:t,domain:r,user:i,project:o,committish:a})=>`git://${maybeJoin(t,"@")}${r}/${i}/${o}.git${maybeJoin("#",a)}`,tarballtemplate:({domain:t,user:r,project:i,committish:o})=>`https://codeload.${t}/${r}/${i}/tar.gz/${maybeEncode(o||"HEAD")}`,extract:t=>{let[,r,i,o,a]=t.pathname.split("/",5);if(o&&o!=="tree"){return}if(!o){a=t.hash.slice(1)}if(i&&i.endsWith(".git")){i=i.slice(0,-4)}if(!r||!i){return}return{user:r,project:i,committish:a}}};i.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:t,user:r,project:i,committish:o,treepath:a,path:u,editpath:l})=>`https://${t}/${r}/${i}${maybeJoin("/",a,"/",maybeEncode(o||"HEAD"),"/",u,l)}`,tarballtemplate:({domain:t,user:r,project:i,committish:o})=>`https://${t}/${r}/${i}/get/${maybeEncode(o||"HEAD")}.tar.gz`,extract:t=>{let[,r,i,o]=t.pathname.split("/",4);if(["get"].includes(o)){return}if(i&&i.endsWith(".git")){i=i.slice(0,-4)}if(!r||!i){return}return{user:r,project:i,committish:t.hash.slice(1)}}};i.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:t,domain:r,user:i,project:o,committish:a})=>`git+https://${maybeJoin(t,"@")}${r}/${i}/${o}.git${maybeJoin("#",a)}`,tarballtemplate:({domain:t,user:r,project:i,committish:o})=>`https://${t}/${r}/${i}/repository/archive.tar.gz?ref=${maybeEncode(o||"HEAD")}`,extract:t=>{const r=t.pathname.slice(1);if(r.includes("/-/")||r.includes("/archive.tar.gz")){return}const i=r.split("/");let o=i.pop();if(o.endsWith(".git")){o=o.slice(0,-4)}const a=i.join("/");if(!a||!o){return}return{user:a,project:o,committish:t.hash.slice(1)}}};i.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:t,project:r,committish:i})=>`git@${t}:${r}.git${maybeJoin("#",i)}`,sshurltemplate:({domain:t,project:r,committish:i})=>`git+ssh://git@${t}/${r}.git${maybeJoin("#",i)}`,edittemplate:({domain:t,user:r,project:i,committish:o,editpath:a})=>`https://${t}/${r}/${i}${maybeJoin("/",maybeEncode(o))}/${a}`,browsetemplate:({domain:t,project:r,committish:i})=>`https://${t}/${r}${maybeJoin("/",maybeEncode(i))}`,browsetreetemplate:({domain:t,project:r,committish:i,path:o,hashformat:a})=>`https://${t}/${r}${maybeJoin("/",maybeEncode(i))}${maybeJoin("#",a(o))}`,browseblobtemplate:({domain:t,project:r,committish:i,path:o,hashformat:a})=>`https://${t}/${r}${maybeJoin("/",maybeEncode(i))}${maybeJoin("#",a(o))}`,docstemplate:({domain:t,project:r,committish:i})=>`https://${t}/${r}${maybeJoin("/",maybeEncode(i))}`,httpstemplate:({domain:t,project:r,committish:i})=>`git+https://${t}/${r}.git${maybeJoin("#",i)}`,filetemplate:({user:t,project:r,committish:i,path:o})=>`https://gist.githubusercontent.com/${t}/${r}/raw${maybeJoin("/",maybeEncode(i))}/${o}`,shortcuttemplate:({type:t,project:r,committish:i})=>`${t}:${r}${maybeJoin("#",i)}`,pathtemplate:({project:t,committish:r})=>`${t}${maybeJoin("#",r)}`,bugstemplate:({domain:t,project:r})=>`https://${t}/${r}`,gittemplate:({domain:t,project:r,committish:i})=>`git://${t}/${r}.git${maybeJoin("#",i)}`,tarballtemplate:({project:t,committish:r})=>`https://codeload.github.com/gist/${t}/tar.gz/${maybeEncode(r||"HEAD")}`,extract:t=>{let[,r,i,o]=t.pathname.split("/",4);if(o==="raw"){return}if(!i){if(!r){return}i=r;r=null}if(i.endsWith(".git")){i=i.slice(0,-4)}return{user:r,project:i,committish:t.hash.slice(1)}},hashformat:function(t){return t&&"file-"+formatHashFragment(t)}};i.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:t,user:r,project:i,committish:o,path:a})=>`https://${t}/${r}/${i}/blob/${maybeEncode(o)||"HEAD"}/${a}`,httpstemplate:({domain:t,user:r,project:i,committish:o})=>`https://${t}/${r}/${i}.git${maybeJoin("#",o)}`,tarballtemplate:({domain:t,user:r,project:i,committish:o})=>`https://${t}/${r}/${i}/archive/${maybeEncode(o)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:t=>{let[,r,i,o]=t.pathname.split("/",4);if(["archive"].includes(o)){return}if(i&&i.endsWith(".git")){i=i.slice(0,-4)}if(!r||!i){return}return{user:r,project:i,committish:t.hash.slice(1)}}};for(const[t,o]of Object.entries(i)){i[t]=Object.assign({},r,o)}t.exports=i},6069:(t,r,i)=>{"use strict";const{LRUCache:o}=i(3576);const a=i(8393);const u=i(3697);const l=i(6642);const h=new o({max:1e3});class GitHost{constructor(t,r,i,o,a,u,l={}){Object.assign(this,GitHost.#e[t],{type:t,user:r,auth:i,project:o,committish:a,default:u,opts:l})}static#e={byShortcut:{},byDomain:{}};static#t={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:true},"git:":{auth:true},"http:":{auth:true},"https:":{auth:true},"git+http:":{auth:true}};static addHost(t,r){GitHost.#e[t]=r;GitHost.#e.byDomain[r.domain]=t;GitHost.#e.byShortcut[`${t}:`]=t;GitHost.#t[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!=="string"){return}const i=t+JSON.stringify(r||{});if(!h.has(i)){const o=u(t,r,{gitHosts:GitHost.#e,protocols:GitHost.#t});h.set(i,o?new GitHost(...o):undefined)}return h.get(i)}static parseUrl(t){return l(t)}#r(t,r){if(typeof t!=="function"){return null}const i={...this,...this.opts,...r};if(!i.path){i.path=""}if(i.path.startsWith("/")){i.path=i.path.slice(1)}if(i.noCommittish){i.committish=null}const o=t(i);return i.noGitPlus&&o.startsWith("git+")?o.slice(4):o}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#r(this.sshtemplate,t)}sshurl(t){return this.#r(this.sshurltemplate,t)}browse(t,...r){if(typeof t!=="string"){return this.#r(this.browsetemplate,t)}if(typeof r[0]!=="string"){return this.#r(this.browsetreetemplate,{...r[0],path:t})}return this.#r(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){if(typeof r[0]!=="string"){return this.#r(this.browseblobtemplate,{...r[0],path:t})}return this.#r(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#r(this.docstemplate,t)}bugs(t){return this.#r(this.bugstemplate,t)}https(t){return this.#r(this.httpstemplate,t)}git(t){return this.#r(this.gittemplate,t)}shortcut(t){return this.#r(this.shortcuttemplate,t)}path(t){return this.#r(this.pathtemplate,t)}tarball(t){return this.#r(this.tarballtemplate,{...t,noCommittish:false})}file(t,r){return this.#r(this.filetemplate,{...r,path:t})}edit(t,r){return this.#r(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){if(this.default&&typeof this[this.default]==="function"){return this[this.default](t)}return this.sshurl(t)}}for(const[t,r]of Object.entries(a)){GitHost.addHost(t,r)}t.exports=GitHost},6642:(t,r,i)=>{const o=i(7310);const lastIndexOfBefore=(t,r,i)=>{const o=t.indexOf(i);return t.lastIndexOf(r,o>-1?o:Infinity)};const safeUrl=t=>{try{return new o.URL(t)}catch{}};const correctProtocol=(t,r)=>{const i=t.indexOf(":");const o=t.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(r,o)){return t}const a=t.indexOf("@");if(a>-1){if(a>i){return`git+ssh://${t}`}else{return t}}const u=t.indexOf("//");if(u===i+1){return t}return`${t.slice(0,i+1)}//${t.slice(i+1)}`};const correctUrl=t=>{const r=lastIndexOfBefore(t,"@","#");const i=lastIndexOfBefore(t,":","#");if(i>r){t=t.slice(0,i)+"/"+t.slice(i+1)}if(lastIndexOfBefore(t,":","#")===-1&&t.indexOf("//")===-1){t=`git+ssh://${t}`}return t};t.exports=(t,r)=>{const i=r?correctProtocol(t,r):t;return safeUrl(i)||safeUrl(correctUrl(i))}},5091:t=>{
35
35
  /**
36
36
  * @preserve
37
37
  * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
@@ -57,23 +57,23 @@ var o=i(1157);var a={"{":"}","(":")","[":"]"};var strictCheck=function(t){if(t[0
57
57
  * Copyright (c) 2014-2016, Jon Schlinkert.
58
58
  * Licensed under the MIT License.
59
59
  */
60
- t.exports=function isExtglob(t){if(typeof t!=="string"||t===""){return false}var r;while(r=/(\\).|([@?!+*]\(.*\))/g.exec(t)){if(r[2])return true;t=t.slice(r.index+r[0].length)}return false}},228:(t,r,i)=>{var o=i(7147);var a;if(process.platform==="win32"||global.TESTING_WINDOWS){a=i(7214)}else{a=i(5211)}t.exports=isexe;isexe.sync=sync;function isexe(t,r,i){if(typeof r==="function"){i=r;r={}}if(!i){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(i,o){isexe(t,r||{},(function(t,r){if(t){o(t)}else{i(r)}}))}))}a(t,r||{},(function(t,o){if(t){if(t.code==="EACCES"||r&&r.ignoreErrors){t=null;o=false}}i(t,o)}))}function sync(t,r){try{return a.sync(t,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES"){return false}else{throw t}}}},5211:(t,r,i)=>{t.exports=isexe;isexe.sync=sync;var o=i(7147);function isexe(t,r,i){o.stat(t,(function(t,o){i(t,t?false:checkStat(o,r))}))}function sync(t,r){return checkStat(o.statSync(t),r)}function checkStat(t,r){return t.isFile()&&checkMode(t,r)}function checkMode(t,r){var i=t.mode;var o=t.uid;var a=t.gid;var u=r.uid!==undefined?r.uid:process.getuid&&process.getuid();var l=r.gid!==undefined?r.gid:process.getgid&&process.getgid();var h=parseInt("100",8);var p=parseInt("010",8);var d=parseInt("001",8);var m=h|p;var g=i&d||i&p&&a===l||i&h&&o===u||i&m&&u===0;return g}},7214:(t,r,i)=>{t.exports=isexe;isexe.sync=sync;var o=i(7147);function checkPathExt(t,r){var i=r.pathExt!==undefined?r.pathExt:process.env.PATHEXT;if(!i){return true}i=i.split(";");if(i.indexOf("")!==-1){return true}for(var o=0;o<i.length;o++){var a=i[o].toLowerCase();if(a&&t.substr(-a.length).toLowerCase()===a){return true}}return false}function checkStat(t,r,i){if(!t.isSymbolicLink()&&!t.isFile()){return false}return checkPathExt(r,i)}function isexe(t,r,i){o.stat(t,(function(o,a){i(o,o?false:checkStat(a,t,r))}))}function sync(t,r){return checkStat(o.statSync(t),t,r)}},8035:(t,r)=>{Object.defineProperty(r,"__esModule",{value:true});r["default"]=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;r.matchToToken=function(t){var r={type:"invalid",value:t[0],closed:undefined};if(t[1])r.type="string",r.closed=!!(t[3]||t[4]);else if(t[5])r.type="comment";else if(t[6])r.type="comment",r.closed=!!t[7];else if(t[8])r.type="regex";else if(t[9])r.type="number";else if(t[10])r.type="name";else if(t[11])r.type="punctuator";else if(t[12])r.type="whitespace";return r}},5130:(t,r,i)=>{const o=i(3210);const a=i(5627);const u={parse:o,stringify:a};t.exports=u},3210:(t,r,i)=>{const o=i(3009);let a;let u;let l;let h;let p;let d;let m;let g;let y;t.exports=function parse(t,r){a=String(t);u="start";l=[];h=0;p=1;d=0;m=undefined;g=undefined;y=undefined;do{m=lex();S[u]()}while(m.type!=="eof");if(typeof r==="function"){return internalize({"":y},"",r)}return y};function internalize(t,r,i){const o=t[r];if(o!=null&&typeof o==="object"){if(Array.isArray(o)){for(let t=0;t<o.length;t++){const r=String(t);const a=internalize(o,r,i);if(a===undefined){delete o[r]}else{Object.defineProperty(o,r,{value:a,writable:true,enumerable:true,configurable:true})}}}else{for(const t in o){const r=internalize(o,t,i);if(r===undefined){delete o[t]}else{Object.defineProperty(o,t,{value:r,writable:true,enumerable:true,configurable:true})}}}}return i.call(t,r,o)}let A;let b;let v;let E;let w;function lex(){A="default";b="";v=false;E=1;for(;;){w=peek();const t=_[A]();if(t){return t}}}function peek(){if(a[h]){return String.fromCodePoint(a.codePointAt(h))}}function read(){const t=peek();if(t==="\n"){p++;d=0}else if(t){d+=t.length}else{d++}if(t){h+=t.length}return t}const _={default(){switch(w){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":read();return;case"/":read();A="comment";return;case undefined:read();return newToken("eof")}if(o.isSpaceSeparator(w)){read();return}return _[u]()},comment(){switch(w){case"*":read();A="multiLineComment";return;case"/":read();A="singleLineComment";return}throw invalidChar(read())},multiLineComment(){switch(w){case"*":read();A="multiLineCommentAsterisk";return;case undefined:throw invalidChar(read())}read()},multiLineCommentAsterisk(){switch(w){case"*":read();return;case"/":read();A="default";return;case undefined:throw invalidChar(read())}read();A="multiLineComment"},singleLineComment(){switch(w){case"\n":case"\r":case"\u2028":case"\u2029":read();A="default";return;case undefined:read();return newToken("eof")}read()},value(){switch(w){case"{":case"[":return newToken("punctuator",read());case"n":read();literal("ull");return newToken("null",null);case"t":read();literal("rue");return newToken("boolean",true);case"f":read();literal("alse");return newToken("boolean",false);case"-":case"+":if(read()==="-"){E=-1}A="sign";return;case".":b=read();A="decimalPointLeading";return;case"0":b=read();A="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":b=read();A="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",Infinity);case"N":read();literal("aN");return newToken("numeric",NaN);case'"':case"'":v=read()==='"';b="";A="string";return}throw invalidChar(read())},identifierNameStartEscape(){if(w!=="u"){throw invalidChar(read())}read();const t=unicodeEscape();switch(t){case"$":case"_":break;default:if(!o.isIdStartChar(t)){throw invalidIdentifier()}break}b+=t;A="identifierName"},identifierName(){switch(w){case"$":case"_":case"‌":case"‍":b+=read();return;case"\\":read();A="identifierNameEscape";return}if(o.isIdContinueChar(w)){b+=read();return}return newToken("identifier",b)},identifierNameEscape(){if(w!=="u"){throw invalidChar(read())}read();const t=unicodeEscape();switch(t){case"$":case"_":case"‌":case"‍":break;default:if(!o.isIdContinueChar(t)){throw invalidIdentifier()}break}b+=t;A="identifierName"},sign(){switch(w){case".":b=read();A="decimalPointLeading";return;case"0":b=read();A="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":b=read();A="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",E*Infinity);case"N":read();literal("aN");return newToken("numeric",NaN)}throw invalidChar(read())},zero(){switch(w){case".":b+=read();A="decimalPoint";return;case"e":case"E":b+=read();A="decimalExponent";return;case"x":case"X":b+=read();A="hexadecimal";return}return newToken("numeric",E*0)},decimalInteger(){switch(w){case".":b+=read();A="decimalPoint";return;case"e":case"E":b+=read();A="decimalExponent";return}if(o.isDigit(w)){b+=read();return}return newToken("numeric",E*Number(b))},decimalPointLeading(){if(o.isDigit(w)){b+=read();A="decimalFraction";return}throw invalidChar(read())},decimalPoint(){switch(w){case"e":case"E":b+=read();A="decimalExponent";return}if(o.isDigit(w)){b+=read();A="decimalFraction";return}return newToken("numeric",E*Number(b))},decimalFraction(){switch(w){case"e":case"E":b+=read();A="decimalExponent";return}if(o.isDigit(w)){b+=read();return}return newToken("numeric",E*Number(b))},decimalExponent(){switch(w){case"+":case"-":b+=read();A="decimalExponentSign";return}if(o.isDigit(w)){b+=read();A="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentSign(){if(o.isDigit(w)){b+=read();A="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentInteger(){if(o.isDigit(w)){b+=read();return}return newToken("numeric",E*Number(b))},hexadecimal(){if(o.isHexDigit(w)){b+=read();A="hexadecimalInteger";return}throw invalidChar(read())},hexadecimalInteger(){if(o.isHexDigit(w)){b+=read();return}return newToken("numeric",E*Number(b))},string(){switch(w){case"\\":read();b+=escape();return;case'"':if(v){read();return newToken("string",b)}b+=read();return;case"'":if(!v){read();return newToken("string",b)}b+=read();return;case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":separatorChar(w);break;case undefined:throw invalidChar(read())}b+=read()},start(){switch(w){case"{":case"[":return newToken("punctuator",read())}A="value"},beforePropertyName(){switch(w){case"$":case"_":b=read();A="identifierName";return;case"\\":read();A="identifierNameStartEscape";return;case"}":return newToken("punctuator",read());case'"':case"'":v=read()==='"';A="string";return}if(o.isIdStartChar(w)){b+=read();A="identifierName";return}throw invalidChar(read())},afterPropertyName(){if(w===":"){return newToken("punctuator",read())}throw invalidChar(read())},beforePropertyValue(){A="value"},afterPropertyValue(){switch(w){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue(){if(w==="]"){return newToken("punctuator",read())}A="value"},afterArrayValue(){switch(w){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end(){throw invalidChar(read())}};function newToken(t,r){return{type:t,value:r,line:p,column:d}}function literal(t){for(const r of t){const t=peek();if(t!==r){throw invalidChar(read())}read()}}function escape(){const t=peek();switch(t){case"b":read();return"\b";case"f":read();return"\f";case"n":read();return"\n";case"r":read();return"\r";case"t":read();return"\t";case"v":read();return"\v";case"0":read();if(o.isDigit(peek())){throw invalidChar(read())}return"\0";case"x":read();return hexEscape();case"u":read();return unicodeEscape();case"\n":case"\u2028":case"\u2029":read();return"";case"\r":read();if(peek()==="\n"){read()}return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw invalidChar(read());case undefined:throw invalidChar(read())}return read()}function hexEscape(){let t="";let r=peek();if(!o.isHexDigit(r)){throw invalidChar(read())}t+=read();r=peek();if(!o.isHexDigit(r)){throw invalidChar(read())}t+=read();return String.fromCodePoint(parseInt(t,16))}function unicodeEscape(){let t="";let r=4;while(r-- >0){const r=peek();if(!o.isHexDigit(r)){throw invalidChar(read())}t+=read()}return String.fromCodePoint(parseInt(t,16))}const S={start(){if(m.type==="eof"){throw invalidEOF()}push()},beforePropertyName(){switch(m.type){case"identifier":case"string":g=m.value;u="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName(){if(m.type==="eof"){throw invalidEOF()}u="beforePropertyValue"},beforePropertyValue(){if(m.type==="eof"){throw invalidEOF()}push()},beforeArrayValue(){if(m.type==="eof"){throw invalidEOF()}if(m.type==="punctuator"&&m.value==="]"){pop();return}push()},afterPropertyValue(){if(m.type==="eof"){throw invalidEOF()}switch(m.value){case",":u="beforePropertyName";return;case"}":pop()}},afterArrayValue(){if(m.type==="eof"){throw invalidEOF()}switch(m.value){case",":u="beforeArrayValue";return;case"]":pop()}},end(){}};function push(){let t;switch(m.type){case"punctuator":switch(m.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=m.value;break}if(y===undefined){y=t}else{const r=l[l.length-1];if(Array.isArray(r)){r.push(t)}else{Object.defineProperty(r,g,{value:t,writable:true,enumerable:true,configurable:true})}}if(t!==null&&typeof t==="object"){l.push(t);if(Array.isArray(t)){u="beforeArrayValue"}else{u="beforePropertyName"}}else{const t=l[l.length-1];if(t==null){u="end"}else if(Array.isArray(t)){u="afterArrayValue"}else{u="afterPropertyValue"}}}function pop(){l.pop();const t=l[l.length-1];if(t==null){u="end"}else if(Array.isArray(t)){u="afterArrayValue"}else{u="afterPropertyValue"}}function invalidChar(t){if(t===undefined){return syntaxError(`JSON5: invalid end of input at ${p}:${d}`)}return syntaxError(`JSON5: invalid character '${formatChar(t)}' at ${p}:${d}`)}function invalidEOF(){return syntaxError(`JSON5: invalid end of input at ${p}:${d}`)}function invalidIdentifier(){d-=5;return syntaxError(`JSON5: invalid identifier character at ${p}:${d}`)}function separatorChar(t){console.warn(`JSON5: '${formatChar(t)}' in strings is not valid ECMAScript; consider escaping`)}function formatChar(t){const r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(r[t]){return r[t]}if(t<" "){const r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}function syntaxError(t){const r=new SyntaxError(t);r.lineNumber=p;r.columnNumber=d;return r}},5627:(t,r,i)=>{const o=i(3009);t.exports=function stringify(t,r,i){const a=[];let u="";let l;let h;let p="";let d;if(r!=null&&typeof r==="object"&&!Array.isArray(r)){i=r.space;d=r.quote;r=r.replacer}if(typeof r==="function"){h=r}else if(Array.isArray(r)){l=[];for(const t of r){let r;if(typeof t==="string"){r=t}else if(typeof t==="number"||t instanceof String||t instanceof Number){r=String(t)}if(r!==undefined&&l.indexOf(r)<0){l.push(r)}}}if(i instanceof Number){i=Number(i)}else if(i instanceof String){i=String(i)}if(typeof i==="number"){if(i>0){i=Math.min(10,Math.floor(i));p=" ".substr(0,i)}}else if(typeof i==="string"){p=i.substr(0,10)}return serializeProperty("",{"":t});function serializeProperty(t,r){let i=r[t];if(i!=null){if(typeof i.toJSON5==="function"){i=i.toJSON5(t)}else if(typeof i.toJSON==="function"){i=i.toJSON(t)}}if(h){i=h.call(r,t,i)}if(i instanceof Number){i=Number(i)}else if(i instanceof String){i=String(i)}else if(i instanceof Boolean){i=i.valueOf()}switch(i){case null:return"null";case true:return"true";case false:return"false"}if(typeof i==="string"){return quoteString(i,false)}if(typeof i==="number"){return String(i)}if(typeof i==="object"){return Array.isArray(i)?serializeArray(i):serializeObject(i)}return undefined}function quoteString(t){const r={"'":.1,'"':.2};const i={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let a="";for(let u=0;u<t.length;u++){const l=t[u];switch(l){case"'":case'"':r[l]++;a+=l;continue;case"\0":if(o.isDigit(t[u+1])){a+="\\x00";continue}}if(i[l]){a+=i[l];continue}if(l<" "){let t=l.charCodeAt(0).toString(16);a+="\\x"+("00"+t).substring(t.length);continue}a+=l}const u=d||Object.keys(r).reduce(((t,i)=>r[t]<r[i]?t:i));a=a.replace(new RegExp(u,"g"),i[u]);return u+a+u}function serializeObject(t){if(a.indexOf(t)>=0){throw TypeError("Converting circular structure to JSON5")}a.push(t);let r=u;u=u+p;let i=l||Object.keys(t);let o=[];for(const r of i){const i=serializeProperty(r,t);if(i!==undefined){let t=serializeKey(r)+":";if(p!==""){t+=" "}t+=i;o.push(t)}}let h;if(o.length===0){h="{}"}else{let t;if(p===""){t=o.join(",");h="{"+t+"}"}else{let i=",\n"+u;t=o.join(i);h="{\n"+u+t+",\n"+r+"}"}}a.pop();u=r;return h}function serializeKey(t){if(t.length===0){return quoteString(t,true)}const r=String.fromCodePoint(t.codePointAt(0));if(!o.isIdStartChar(r)){return quoteString(t,true)}for(let i=r.length;i<t.length;i++){if(!o.isIdContinueChar(String.fromCodePoint(t.codePointAt(i)))){return quoteString(t,true)}}return t}function serializeArray(t){if(a.indexOf(t)>=0){throw TypeError("Converting circular structure to JSON5")}a.push(t);let r=u;u=u+p;let i=[];for(let r=0;r<t.length;r++){const o=serializeProperty(String(r),t);i.push(o!==undefined?o:"null")}let o;if(i.length===0){o="[]"}else{if(p===""){let t=i.join(",");o="["+t+"]"}else{let t=",\n"+u;let a=i.join(t);o="[\n"+u+a+",\n"+r+"]"}}a.pop();u=r;return o}}},6195:t=>{t.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;t.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;t.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},3009:(t,r,i)=>{const o=i(6195);t.exports={isSpaceSeparator(t){return typeof t==="string"&&o.Space_Separator.test(t)},isIdStartChar(t){return typeof t==="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||o.ID_Start.test(t))},isIdContinueChar(t){return typeof t==="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="‌"||t==="‍"||o.ID_Continue.test(t))},isDigit(t){return typeof t==="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t==="string"&&/[0-9A-Fa-f]/.test(t)}}},9439:t=>{"use strict";const{FORCE_COLOR:r,NODE_DISABLE_COLORS:i,TERM:o}=process.env;const a={enabled:!i&&o!=="dumb"&&r!=="0",reset:init(0,0),bold:init(1,22),dim:init(2,22),italic:init(3,23),underline:init(4,24),inverse:init(7,27),hidden:init(8,28),strikethrough:init(9,29),black:init(30,39),red:init(31,39),green:init(32,39),yellow:init(33,39),blue:init(34,39),magenta:init(35,39),cyan:init(36,39),white:init(37,39),gray:init(90,39),grey:init(90,39),bgBlack:init(40,49),bgRed:init(41,49),bgGreen:init(42,49),bgYellow:init(43,49),bgBlue:init(44,49),bgMagenta:init(45,49),bgCyan:init(46,49),bgWhite:init(47,49)};function run(t,r){let i=0,o,a="",u="";for(;i<t.length;i++){o=t[i];a+=o.open;u+=o.close;if(r.includes(o.close)){r=r.replace(o.rgx,o.close+o.open)}}return a+r+u}function chain(t,r){let i={has:t,keys:r};i.reset=a.reset.bind(i);i.bold=a.bold.bind(i);i.dim=a.dim.bind(i);i.italic=a.italic.bind(i);i.underline=a.underline.bind(i);i.inverse=a.inverse.bind(i);i.hidden=a.hidden.bind(i);i.strikethrough=a.strikethrough.bind(i);i.black=a.black.bind(i);i.red=a.red.bind(i);i.green=a.green.bind(i);i.yellow=a.yellow.bind(i);i.blue=a.blue.bind(i);i.magenta=a.magenta.bind(i);i.cyan=a.cyan.bind(i);i.white=a.white.bind(i);i.gray=a.gray.bind(i);i.grey=a.grey.bind(i);i.bgBlack=a.bgBlack.bind(i);i.bgRed=a.bgRed.bind(i);i.bgGreen=a.bgGreen.bind(i);i.bgYellow=a.bgYellow.bind(i);i.bgBlue=a.bgBlue.bind(i);i.bgMagenta=a.bgMagenta.bind(i);i.bgCyan=a.bgCyan.bind(i);i.bgWhite=a.bgWhite.bind(i);return i}function init(t,r){let i={open:`[${t}m`,close:`[${r}m`,rgx:new RegExp(`\\x1b\\[${r}m`,"g")};return function(r){if(this!==void 0&&this.has!==void 0){this.has.includes(t)||(this.has.push(t),this.keys.push(i));return r===void 0?this:a.enabled?run(this.keys,r+""):r+""}return r===void 0?chain([t],[i]):a.enabled?run([i],r+""):r+""}}t.exports=a},2375:(t,r,i)=>{"use strict";const o=i(2781);const a=o.PassThrough;const u=Array.prototype.slice;t.exports=merge2;function merge2(){const t=[];const r=u.call(arguments);let i=false;let o=r[r.length-1];if(o&&!Array.isArray(o)&&o.pipe==null){r.pop()}else{o={}}const l=o.end!==false;const h=o.pipeError===true;if(o.objectMode==null){o.objectMode=true}if(o.highWaterMark==null){o.highWaterMark=64*1024}const p=a(o);function addStream(){for(let r=0,i=arguments.length;r<i;r++){t.push(pauseStreams(arguments[r],o))}mergeStream();return this}function mergeStream(){if(i){return}i=true;let r=t.shift();if(!r){process.nextTick(endStream);return}if(!Array.isArray(r)){r=[r]}let o=r.length+1;function next(){if(--o>0){return}i=false;mergeStream()}function pipe(t){function onend(){t.removeListener("merge2UnpipeEnd",onend);t.removeListener("end",onend);if(h){t.removeListener("error",onerror)}next()}function onerror(t){p.emit("error",t)}if(t._readableState.endEmitted){return next()}t.on("merge2UnpipeEnd",onend);t.on("end",onend);if(h){t.on("error",onerror)}t.pipe(p,{end:false});t.resume()}for(let t=0;t<r.length;t++){pipe(r[t])}next()}function endStream(){i=false;p.emit("queueDrain");if(l){p.end()}}p.setMaxListeners(0);p.add=addStream;p.on("unpipe",(function(t){t.emit("merge2UnpipeEnd")}));if(r.length){addStream.apply(null,r)}return p}function pauseStreams(t,r){if(!Array.isArray(t)){if(!t._readableState&&t.pipe){t=t.pipe(a(r))}if(!t._readableState||!t.pause||!t.pipe){throw new Error("Only readable stream can be merged.")}t.pause()}else{for(let i=0,o=t.length;i<o;i++){t[i]=pauseStreams(t[i],r)}}return t}},9015:(t,r,i)=>{"use strict";const o=i(3837);const a=i(538);const u=i(9138);const l=i(2924);const isEmptyString=t=>t===""||t==="./";const hasBraces=t=>{const r=t.indexOf("{");return r>-1&&t.indexOf("}",r)>-1};const micromatch=(t,r,i)=>{r=[].concat(r);t=[].concat(t);let o=new Set;let a=new Set;let l=new Set;let h=0;let onResult=t=>{l.add(t.output);if(i&&i.onResult){i.onResult(t)}};for(let l=0;l<r.length;l++){let p=u(String(r[l]),{...i,onResult:onResult},true);let d=p.state.negated||p.state.negatedExtglob;if(d)h++;for(let r of t){let t=p(r,true);let i=d?!t.isMatch:t.isMatch;if(!i)continue;if(d){o.add(t.output)}else{o.delete(t.output);a.add(t.output)}}}let p=h===r.length?[...l]:[...a];let d=p.filter((t=>!o.has(t)));if(i&&d.length===0){if(i.failglob===true){throw new Error(`No matches found for "${r.join(", ")}"`)}if(i.nonull===true||i.nullglob===true){return i.unescape?r.map((t=>t.replace(/\\/g,""))):r}}return d};micromatch.match=micromatch;micromatch.matcher=(t,r)=>u(t,r);micromatch.isMatch=(t,r,i)=>u(r,i)(t);micromatch.any=micromatch.isMatch;micromatch.not=(t,r,i={})=>{r=[].concat(r).map(String);let o=new Set;let a=[];let onResult=t=>{if(i.onResult)i.onResult(t);a.push(t.output)};let u=new Set(micromatch(t,r,{...i,onResult:onResult}));for(let t of a){if(!u.has(t)){o.add(t)}}return[...o]};micromatch.contains=(t,r,i)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${o.inspect(t)}"`)}if(Array.isArray(r)){return r.some((r=>micromatch.contains(t,r,i)))}if(typeof r==="string"){if(isEmptyString(t)||isEmptyString(r)){return false}if(t.includes(r)||t.startsWith("./")&&t.slice(2).includes(r)){return true}}return micromatch.isMatch(t,r,{...i,contains:true})};micromatch.matchKeys=(t,r,i)=>{if(!l.isObject(t)){throw new TypeError("Expected the first argument to be an object")}let o=micromatch(Object.keys(t),r,i);let a={};for(let r of o)a[r]=t[r];return a};micromatch.some=(t,r,i)=>{let o=[].concat(t);for(let t of[].concat(r)){let r=u(String(t),i);if(o.some((t=>r(t)))){return true}}return false};micromatch.every=(t,r,i)=>{let o=[].concat(t);for(let t of[].concat(r)){let r=u(String(t),i);if(!o.every((t=>r(t)))){return false}}return true};micromatch.all=(t,r,i)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${o.inspect(t)}"`)}return[].concat(r).every((r=>u(r,i)(t)))};micromatch.capture=(t,r,i)=>{let o=l.isWindows(i);let a=u.makeRe(String(t),{...i,capture:true});let h=a.exec(o?l.toPosixSlashes(r):r);if(h){return h.slice(1).map((t=>t===void 0?"":t))}};micromatch.makeRe=(...t)=>u.makeRe(...t);micromatch.scan=(...t)=>u.scan(...t);micromatch.parse=(t,r)=>{let i=[];for(let o of[].concat(t||[])){for(let t of a(String(o),r)){i.push(u.parse(t,r))}}return i};micromatch.braces=(t,r)=>{if(typeof t!=="string")throw new TypeError("Expected a string");if(r&&r.nobrace===true||!hasBraces(t)){return[t]}return a(t,r)};micromatch.braceExpand=(t,r)=>{if(typeof t!=="string")throw new TypeError("Expected a string");return micromatch.braces(t,{...r,expand:true})};micromatch.hasBraces=hasBraces;t.exports=micromatch},5912:t=>{"use strict";function hasKey(t,r){var i=t;r.slice(0,-1).forEach((function(t){i=i[t]||{}}));var o=r[r.length-1];return o in i}function isNumber(t){if(typeof t==="number"){return true}if(/^0x[0-9a-f]+$/i.test(t)){return true}return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function isConstructorOrProto(t,r){return r==="constructor"&&typeof t[r]==="function"||r==="__proto__"}t.exports=function(t,r){if(!r){r={}}var i={bools:{},strings:{},unknownFn:null};if(typeof r.unknown==="function"){i.unknownFn=r.unknown}if(typeof r.boolean==="boolean"&&r.boolean){i.allBools=true}else{[].concat(r.boolean).filter(Boolean).forEach((function(t){i.bools[t]=true}))}var o={};function aliasIsBoolean(t){return o[t].some((function(t){return i.bools[t]}))}Object.keys(r.alias||{}).forEach((function(t){o[t]=[].concat(r.alias[t]);o[t].forEach((function(r){o[r]=[t].concat(o[t].filter((function(t){return r!==t})))}))}));[].concat(r.string).filter(Boolean).forEach((function(t){i.strings[t]=true;if(o[t]){[].concat(o[t]).forEach((function(t){i.strings[t]=true}))}}));var a=r.default||{};var u={_:[]};function argDefined(t,r){return i.allBools&&/^--[^=]+$/.test(r)||i.strings[t]||i.bools[t]||o[t]}function setKey(t,r,o){var a=t;for(var u=0;u<r.length-1;u++){var l=r[u];if(isConstructorOrProto(a,l)){return}if(a[l]===undefined){a[l]={}}if(a[l]===Object.prototype||a[l]===Number.prototype||a[l]===String.prototype){a[l]={}}if(a[l]===Array.prototype){a[l]=[]}a=a[l]}var h=r[r.length-1];if(isConstructorOrProto(a,h)){return}if(a===Object.prototype||a===Number.prototype||a===String.prototype){a={}}if(a===Array.prototype){a=[]}if(a[h]===undefined||i.bools[h]||typeof a[h]==="boolean"){a[h]=o}else if(Array.isArray(a[h])){a[h].push(o)}else{a[h]=[a[h],o]}}function setArg(t,r,a){if(a&&i.unknownFn&&!argDefined(t,a)){if(i.unknownFn(a)===false){return}}var l=!i.strings[t]&&isNumber(r)?Number(r):r;setKey(u,t.split("."),l);(o[t]||[]).forEach((function(t){setKey(u,t.split("."),l)}))}Object.keys(i.bools).forEach((function(t){setArg(t,a[t]===undefined?false:a[t])}));var l=[];if(t.indexOf("--")!==-1){l=t.slice(t.indexOf("--")+1);t=t.slice(0,t.indexOf("--"))}for(var h=0;h<t.length;h++){var p=t[h];var d;var m;if(/^--.+=/.test(p)){var g=p.match(/^--([^=]+)=([\s\S]*)$/);d=g[1];var y=g[2];if(i.bools[d]){y=y!=="false"}setArg(d,y,p)}else if(/^--no-.+/.test(p)){d=p.match(/^--no-(.+)/)[1];setArg(d,false,p)}else if(/^--.+/.test(p)){d=p.match(/^--(.+)/)[1];m=t[h+1];if(m!==undefined&&!/^(-|--)[^-]/.test(m)&&!i.bools[d]&&!i.allBools&&(o[d]?!aliasIsBoolean(d):true)){setArg(d,m,p);h+=1}else if(/^(true|false)$/.test(m)){setArg(d,m==="true",p);h+=1}else{setArg(d,i.strings[d]?"":true,p)}}else if(/^-[^-]+/.test(p)){var A=p.slice(1,-1).split("");var b=false;for(var v=0;v<A.length;v++){m=p.slice(v+2);if(m==="-"){setArg(A[v],m,p);continue}if(/[A-Za-z]/.test(A[v])&&m[0]==="="){setArg(A[v],m.slice(1),p);b=true;break}if(/[A-Za-z]/.test(A[v])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(m)){setArg(A[v],m,p);b=true;break}if(A[v+1]&&A[v+1].match(/\W/)){setArg(A[v],p.slice(v+2),p);b=true;break}else{setArg(A[v],i.strings[A[v]]?"":true,p)}}d=p.slice(-1)[0];if(!b&&d!=="-"){if(t[h+1]&&!/^(-|--)[^-]/.test(t[h+1])&&!i.bools[d]&&(o[d]?!aliasIsBoolean(d):true)){setArg(d,t[h+1],p);h+=1}else if(t[h+1]&&/^(true|false)$/.test(t[h+1])){setArg(d,t[h+1]==="true",p);h+=1}else{setArg(d,i.strings[d]?"":true,p)}}}else{if(!i.unknownFn||i.unknownFn(p)!==false){u._.push(i.strings._||!isNumber(p)?p:Number(p))}if(r.stopEarly){u._.push.apply(u._,t.slice(h+1));break}}}Object.keys(a).forEach((function(t){if(!hasKey(u,t.split("."))){setKey(u,t.split("."),a[t]);(o[t]||[]).forEach((function(r){setKey(u,r.split("."),a[t])}))}}));if(r["--"]){u["--"]=l.slice()}else{l.forEach((function(t){u._.push(t)}))}return u}},8319:(t,r,i)=>{const o=i(9796).constants||{ZLIB_VERNUM:4736};t.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},o))},7547:(t,r,i)=>{"use strict";const o=i(9491);const a=i(4300).Buffer;const u=i(9796);const l=r.constants=i(8319);const h=i(2164);const p=a.concat;const d=Symbol("_superWrite");class ZlibError extends Error{constructor(t){super("zlib: "+t.message);this.code=t.code;this.errno=t.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+t.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const m=Symbol("opts");const g=Symbol("flushFlag");const y=Symbol("finishFlushFlag");const A=Symbol("fullFlushFlag");const b=Symbol("handle");const v=Symbol("onError");const E=Symbol("sawError");const w=Symbol("level");const _=Symbol("strategy");const S=Symbol("ended");const C=Symbol("_defaultFullFlush");class ZlibBase extends h{constructor(t,r){if(!t||typeof t!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(t);this[E]=false;this[S]=false;this[m]=t;this[g]=t.flush;this[y]=t.finishFlush;try{this[b]=new u[r](t)}catch(t){throw new ZlibError(t)}this[v]=t=>{if(this[E])return;this[E]=true;this.close();this.emit("error",t)};this[b].on("error",(t=>this[v](new ZlibError(t))));this.once("end",(()=>this.close))}close(){if(this[b]){this[b].close();this[b]=null;this.emit("close")}}reset(){if(!this[E]){o(this[b],"zlib binding closed");return this[b].reset()}}flush(t){if(this.ended)return;if(typeof t!=="number")t=this[A];this.write(Object.assign(a.alloc(0),{[g]:t}))}end(t,r,i){if(t)this.write(t,r);this.flush(this[y]);this[S]=true;return super.end(null,null,i)}get ended(){return this[S]}write(t,r,i){if(typeof r==="function")i=r,r="utf8";if(typeof t==="string")t=a.from(t,r);if(this[E])return;o(this[b],"zlib binding closed");const u=this[b]._handle;const l=u.close;u.close=()=>{};const h=this[b].close;this[b].close=()=>{};a.concat=t=>t;let m;try{const r=typeof t[g]==="number"?t[g]:this[g];m=this[b]._processChunk(t,r);a.concat=p}catch(t){a.concat=p;this[v](new ZlibError(t))}finally{if(this[b]){this[b]._handle=u;u.close=l;this[b].close=h;this[b].removeAllListeners("error")}}if(this[b])this[b].on("error",(t=>this[v](new ZlibError(t))));let y;if(m){if(Array.isArray(m)&&m.length>0){y=this[d](a.from(m[0]));for(let t=1;t<m.length;t++){y=this[d](m[t])}}else{y=this[d](a.from(m))}}if(i)i();return y}[d](t){return super.write(t)}}class Zlib extends ZlibBase{constructor(t,r){t=t||{};t.flush=t.flush||l.Z_NO_FLUSH;t.finishFlush=t.finishFlush||l.Z_FINISH;super(t,r);this[A]=l.Z_FULL_FLUSH;this[w]=t.level;this[_]=t.strategy}params(t,r){if(this[E])return;if(!this[b])throw new Error("cannot switch params when binding is closed");if(!this[b].params)throw new Error("not supported in this implementation");if(this[w]!==t||this[_]!==r){this.flush(l.Z_SYNC_FLUSH);o(this[b],"zlib binding closed");const i=this[b].flush;this[b].flush=(t,r)=>{this.flush(t);r()};try{this[b].params(t,r)}finally{this[b].flush=i}if(this[b]){this[w]=t;this[_]=r}}}}class Deflate extends Zlib{constructor(t){super(t,"Deflate")}}class Inflate extends Zlib{constructor(t){super(t,"Inflate")}}const D=Symbol("_portable");class Gzip extends Zlib{constructor(t){super(t,"Gzip");this[D]=t&&!!t.portable}[d](t){if(!this[D])return super[d](t);this[D]=false;t[9]=255;return super[d](t)}}class Gunzip extends Zlib{constructor(t){super(t,"Gunzip")}}class DeflateRaw extends Zlib{constructor(t){super(t,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(t){super(t,"InflateRaw")}}class Unzip extends Zlib{constructor(t){super(t,"Unzip")}}class Brotli extends ZlibBase{constructor(t,r){t=t||{};t.flush=t.flush||l.BROTLI_OPERATION_PROCESS;t.finishFlush=t.finishFlush||l.BROTLI_OPERATION_FINISH;super(t,r);this[A]=l.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(t){super(t,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(t){super(t,"BrotliDecompress")}}r.Deflate=Deflate;r.Inflate=Inflate;r.Gzip=Gzip;r.Gunzip=Gunzip;r.DeflateRaw=DeflateRaw;r.InflateRaw=InflateRaw;r.Unzip=Unzip;if(typeof u.BrotliCompress==="function"){r.BrotliCompress=BrotliCompress;r.BrotliDecompress=BrotliDecompress}else{r.BrotliCompress=r.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},2164:(t,r,i)=>{"use strict";const o=typeof process==="object"&&process?process:{stdout:null,stderr:null};const a=i(2361);const u=i(2781);const l=i(1576).StringDecoder;const h=Symbol("EOF");const p=Symbol("maybeEmitEnd");const d=Symbol("emittedEnd");const m=Symbol("emittingEnd");const g=Symbol("emittedError");const y=Symbol("closed");const A=Symbol("read");const b=Symbol("flush");const v=Symbol("flushChunk");const E=Symbol("encoding");const w=Symbol("decoder");const _=Symbol("flowing");const S=Symbol("paused");const C=Symbol("resume");const D=Symbol("bufferLength");const x=Symbol("bufferPush");const R=Symbol("bufferShift");const O=Symbol("objectMode");const k=Symbol("destroyed");const P=Symbol("emitData");const T=Symbol("emitEnd");const L=Symbol("emitEnd2");const I=Symbol("async");const defer=t=>Promise.resolve().then(t);const M=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const B=M&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const N=M&&Symbol.iterator||Symbol("iterator not implemented");const isEndish=t=>t==="end"||t==="finish"||t==="prefinish";const isArrayBuffer=t=>t instanceof ArrayBuffer||typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const isArrayBufferView=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);class Pipe{constructor(t,r,i){this.src=t;this.dest=r;this.opts=i;this.ondrain=()=>t[C]();r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(t,r,i){super(t,r,i);this.proxyErrors=t=>r.emit("error",t);t.on("error",this.proxyErrors)}}t.exports=class Minipass extends u{constructor(t){super();this[_]=false;this[S]=false;this.pipes=[];this.buffer=[];this[O]=t&&t.objectMode||false;if(this[O])this[E]=null;else this[E]=t&&t.encoding||null;if(this[E]==="buffer")this[E]=null;this[I]=t&&!!t.async||false;this[w]=this[E]?new l(this[E]):null;this[h]=false;this[d]=false;this[m]=false;this[y]=false;this[g]=null;this.writable=true;this.readable=true;this[D]=0;this[k]=false}get bufferLength(){return this[D]}get encoding(){return this[E]}set encoding(t){if(this[O])throw new Error("cannot set encoding in objectMode");if(this[E]&&t!==this[E]&&(this[w]&&this[w].lastNeed||this[D]))throw new Error("cannot change encoding");if(this[E]!==t){this[w]=t?new l(t):null;if(this.buffer.length)this.buffer=this.buffer.map((t=>this[w].write(t)))}this[E]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[O]}set objectMode(t){this[O]=this[O]||!!t}get["async"](){return this[I]}set["async"](t){this[I]=this[I]||!!t}write(t,r,i){if(this[h])throw new Error("write after end");if(this[k]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof r==="function")i=r,r="utf8";if(!r)r="utf8";const o=this[I]?defer:t=>t();if(!this[O]&&!Buffer.isBuffer(t)){if(isArrayBufferView(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(isArrayBuffer(t))t=Buffer.from(t);else if(typeof t!=="string")this.objectMode=true}if(this[O]){if(this.flowing&&this[D]!==0)this[b](true);if(this.flowing)this.emit("data",t);else this[x](t);if(this[D]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(!t.length){if(this[D]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(typeof t==="string"&&!(r===this[E]&&!this[w].lastNeed)){t=Buffer.from(t,r)}if(Buffer.isBuffer(t)&&this[E])t=this[w].write(t);if(this.flowing&&this[D]!==0)this[b](true);if(this.flowing)this.emit("data",t);else this[x](t);if(this[D]!==0)this.emit("readable");if(i)o(i);return this.flowing}read(t){if(this[k])return null;if(this[D]===0||t===0||t>this[D]){this[p]();return null}if(this[O])t=null;if(this.buffer.length>1&&!this[O]){if(this.encoding)this.buffer=[this.buffer.join("")];else this.buffer=[Buffer.concat(this.buffer,this[D])]}const r=this[A](t||null,this.buffer[0]);this[p]();return r}[A](t,r){if(t===r.length||t===null)this[R]();else{this.buffer[0]=r.slice(t);r=r.slice(0,t);this[D]-=t}this.emit("data",r);if(!this.buffer.length&&!this[h])this.emit("drain");return r}end(t,r,i){if(typeof t==="function")i=t,t=null;if(typeof r==="function")i=r,r="utf8";if(t)this.write(t,r);if(i)this.once("end",i);this[h]=true;this.writable=false;if(this.flowing||!this[S])this[p]();return this}[C](){if(this[k])return;this[S]=false;this[_]=true;this.emit("resume");if(this.buffer.length)this[b]();else if(this[h])this[p]();else this.emit("drain")}resume(){return this[C]()}pause(){this[_]=false;this[S]=true}get destroyed(){return this[k]}get flowing(){return this[_]}get paused(){return this[S]}[x](t){if(this[O])this[D]+=1;else this[D]+=t.length;this.buffer.push(t)}[R](){if(this.buffer.length){if(this[O])this[D]-=1;else this[D]-=this.buffer[0].length}return this.buffer.shift()}[b](t){do{}while(this[v](this[R]()));if(!t&&!this.buffer.length&&!this[h])this.emit("drain")}[v](t){return t?(this.emit("data",t),this.flowing):false}pipe(t,r){if(this[k])return;const i=this[d];r=r||{};if(t===o.stdout||t===o.stderr)r.end=false;else r.end=r.end!==false;r.proxyErrors=!!r.proxyErrors;if(i){if(r.end)t.end()}else{this.pipes.push(!r.proxyErrors?new Pipe(this,t,r):new PipeProxyErrors(this,t,r));if(this[I])defer((()=>this[C]()));else this[C]()}return t}unpipe(t){const r=this.pipes.find((r=>r.dest===t));if(r){this.pipes.splice(this.pipes.indexOf(r),1);r.unpipe()}}addListener(t,r){return this.on(t,r)}on(t,r){const i=super.on(t,r);if(t==="data"&&!this.pipes.length&&!this.flowing)this[C]();else if(t==="readable"&&this[D]!==0)super.emit("readable");else if(isEndish(t)&&this[d]){super.emit(t);this.removeAllListeners(t)}else if(t==="error"&&this[g]){if(this[I])defer((()=>r.call(this,this[g])));else r.call(this,this[g])}return i}get emittedEnd(){return this[d]}[p](){if(!this[m]&&!this[d]&&!this[k]&&this.buffer.length===0&&this[h]){this[m]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[y])this.emit("close");this[m]=false}}emit(t,r,...i){if(t!=="error"&&t!=="close"&&t!==k&&this[k])return;else if(t==="data"){return!r?false:this[I]?defer((()=>this[P](r))):this[P](r)}else if(t==="end"){return this[T]()}else if(t==="close"){this[y]=true;if(!this[d]&&!this[k])return;const t=super.emit("close");this.removeAllListeners("close");return t}else if(t==="error"){this[g]=r;const t=super.emit("error",r);this[p]();return t}else if(t==="resume"){const t=super.emit("resume");this[p]();return t}else if(t==="finish"||t==="prefinish"){const r=super.emit(t);this.removeAllListeners(t);return r}const o=super.emit(t,r,...i);this[p]();return o}[P](t){for(const r of this.pipes){if(r.dest.write(t)===false)this.pause()}const r=super.emit("data",t);this[p]();return r}[T](){if(this[d])return;this[d]=true;this.readable=false;if(this[I])defer((()=>this[L]()));else this[L]()}[L](){if(this[w]){const t=this[w].end();if(t){for(const r of this.pipes){r.dest.write(t)}super.emit("data",t)}}for(const t of this.pipes){t.end()}const t=super.emit("end");this.removeAllListeners("end");return t}collect(){const t=[];if(!this[O])t.dataLength=0;const r=this.promise();this.on("data",(r=>{t.push(r);if(!this[O])t.dataLength+=r.length}));return r.then((()=>t))}concat(){return this[O]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((t=>this[O]?Promise.reject(new Error("cannot concat in objectMode")):this[E]?t.join(""):Buffer.concat(t,t.dataLength)))}promise(){return new Promise(((t,r)=>{this.on(k,(()=>r(new Error("stream destroyed"))));this.on("error",(t=>r(t)));this.on("end",(()=>t()))}))}[B](){const next=()=>{const t=this.read();if(t!==null)return Promise.resolve({done:false,value:t});if(this[h])return Promise.resolve({done:true});let r=null;let i=null;const onerr=t=>{this.removeListener("data",ondata);this.removeListener("end",onend);i(t)};const ondata=t=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.pause();r({value:t,done:!!this[h]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);r({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((t,o)=>{i=o;r=t;this.once(k,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next}}[N](){const next=()=>{const t=this.read();const r=t===null;return{value:t,done:r}};return{next:next}}destroy(t){if(this[k]){if(t)this.emit("error",t);else this.emit(k);return this}this[k]=true;this.buffer.length=0;this[D]=0;if(typeof this.close==="function"&&!this[y])this.close();if(t)this.emit("error",t);else this.emit(k);return this}static isStream(t){return!!t&&(t instanceof Minipass||t instanceof u||t instanceof a&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function"))}}},40:t=>{var r=1e3;var i=r*60;var o=i*60;var a=o*24;var u=a*7;var l=a*365.25;t.exports=function(t,r){r=r||{};var i=typeof t;if(i==="string"&&t.length>0){return parse(t)}else if(i==="number"&&isFinite(t)){return r.long?fmtLong(t):fmtShort(t)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function parse(t){t=String(t);if(t.length>100){return}var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!h){return}var p=parseFloat(h[1]);var d=(h[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return p*l;case"weeks":case"week":case"w":return p*u;case"days":case"day":case"d":return p*a;case"hours":case"hour":case"hrs":case"hr":case"h":return p*o;case"minutes":case"minute":case"mins":case"min":case"m":return p*i;case"seconds":case"second":case"secs":case"sec":case"s":return p*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return undefined}}function fmtShort(t){var u=Math.abs(t);if(u>=a){return Math.round(t/a)+"d"}if(u>=o){return Math.round(t/o)+"h"}if(u>=i){return Math.round(t/i)+"m"}if(u>=r){return Math.round(t/r)+"s"}return t+"ms"}function fmtLong(t){var u=Math.abs(t);if(u>=a){return plural(t,u,a,"day")}if(u>=o){return plural(t,u,o,"hour")}if(u>=i){return plural(t,u,i,"minute")}if(u>=r){return plural(t,u,r,"second")}return t+" ms"}function plural(t,r,i,o){var a=r>=i*1.5;return Math.round(t/i)+" "+o+(a?"s":"")}},5440:(t,r,i)=>{"use strict";t.exports=npa;t.exports.resolve=resolve;t.exports.toPurl=toPurl;t.exports.Result=Result;const{URL:o}=i(7310);const a=i(6069);const u=i(7546);const l=global.FAKE_WINDOWS?i(1017).win32:i(1017);const h=i(8593);const{homedir:p}=i(2037);const{log:d}=i(1316);const m=process.platform==="win32"||global.FAKE_WINDOWS;const g=m?/\\|[/]/:/[/]/;const y=/^(?:git[+])?[a-z]+:/i;const A=/^[^@]+@[^:.]+\.[^:]+:.+$/i;const b=/[.](?:tgz|tar.gz|tar)$/i;function npa(t,r){let i;let o;if(typeof t==="object"){if(t instanceof Result&&(!r||r===t.where)){return t}else if(t.name&&t.rawSpec){return npa.resolve(t.name,t.rawSpec,r||t.where)}else{return npa(t.raw,r||t.where)}}const a=t[0]==="@"?t.slice(1).indexOf("@")+1:t.indexOf("@");const u=a>0?t.slice(0,a):t;if(y.test(t)){o=t}else if(A.test(t)){o=`git+ssh://${t}`}else if(u[0]!=="@"&&(g.test(u)||b.test(u))){o=t}else if(a>0){i=u;o=t.slice(a+1)||"*"}else{const r=h(t);if(r.validForOldPackages){i=t;o="*"}else{o=t}}return resolve(i,o,r,t)}const v=m?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function resolve(t,r,i,o){const u=new Result({raw:o,name:t,rawSpec:r,fromArgument:o!=null});if(t){u.setName(t)}if(r&&(v.test(r)||/^file:/i.test(r))){return fromFile(u,i)}else if(r&&/^npm:/i.test(r)){return fromAlias(u,i)}const l=a.fromUrl(r,{noGitPlus:true,noCommittish:true});if(l){return fromHostedGit(u,l)}else if(r&&y.test(r)){return fromURL(u)}else if(r&&(g.test(r)||b.test(r))){return fromFile(u,i)}else{return fromRegistry(u)}}const E="https://registry.npmjs.org";function toPurl(t,r=E){const i=npa(t);if(i.type!=="version"){throw invalidPurlType(i.type,i.raw)}let o="pkg:npm/"+i.name.replace(/^@/,"%40")+"@"+i.rawSpec;if(r!==E){o+="?repository_url="+r}return o}function invalidPackageName(t,r,i){const o=new Error(`Invalid package name "${t}" of package "${i}": ${r.errors.join("; ")}.`);o.code="EINVALIDPACKAGENAME";return o}function invalidTagName(t,r){const i=new Error(`Invalid tag name "${t}" of package "${r}": Tags may not have any characters that encodeURIComponent encodes.`);i.code="EINVALIDTAGNAME";return i}function invalidPurlType(t,r){const i=new Error(`Invalid type "${t}" of package "${r}": Purl can only be generated for "version" types.`);i.code="EINVALIDPURLTYPE";return i}function Result(t){this.type=t.type;this.registry=t.registry;this.where=t.where;if(t.raw==null){this.raw=t.name?t.name+"@"+t.rawSpec:t.rawSpec}else{this.raw=t.raw}this.name=undefined;this.escapedName=undefined;this.scope=undefined;this.rawSpec=t.rawSpec||"";this.saveSpec=t.saveSpec;this.fetchSpec=t.fetchSpec;if(t.name){this.setName(t.name)}this.gitRange=t.gitRange;this.gitCommittish=t.gitCommittish;this.gitSubdir=t.gitSubdir;this.hosted=t.hosted}Result.prototype.setName=function(t){const r=h(t);if(!r.validForOldPackages){throw invalidPackageName(t,r,this.raw)}this.name=t;this.scope=t[0]==="@"?t.slice(0,t.indexOf("/")):undefined;this.escapedName=t.replace("/","%2f");return this};Result.prototype.toString=function(){const t=[];if(this.name!=null&&this.name!==""){t.push(this.name)}const r=this.saveSpec||this.fetchSpec||this.rawSpec;if(r!=null&&r!==""){t.push(r)}return t.length?t.join("@"):this.raw};Result.prototype.toJSON=function(){const t=Object.assign({},this);delete t.hosted;return t};function setGitAttrs(t,r){if(!r){t.gitCommittish=null;return}for(const i of r.split("::")){if(!i.includes(":")){if(t.gitRange){throw new Error("cannot override existing semver range with a committish")}if(t.gitCommittish){throw new Error("cannot override existing committish with a second committish")}t.gitCommittish=i;continue}const[r,o]=i.split(":");if(r==="semver"){if(t.gitCommittish){throw new Error("cannot override existing committish with a semver range")}if(t.gitRange){throw new Error("cannot override existing semver range with a second semver range")}t.gitRange=decodeURIComponent(o);continue}if(r==="path"){if(t.gitSubdir){throw new Error("cannot override existing path with a second path")}t.gitSubdir=`/${o}`;continue}d.warn("npm-package-arg",`ignoring unknown key "${r}"`)}}function fromFile(t,r){if(!r){r=process.cwd()}t.type=b.test(t.rawSpec)?"file":"directory";t.where=r;let i;let a;const u=!/^file:/.test(t.rawSpec)?"file:":"";const h=u+t.rawSpec;let d=h.replace(/^file:/,"");try{a=new o(h,`file://${l.resolve(r)}/`);i=new o(h)}catch(i){const o=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(o,{raw:t.rawSpec,spec:t,where:r,originalError:i})}if(a.host&&a.host!=="localhost"){const u=t.rawSpec.replace(/^file:\/\//,"file:///");a=new o(u,`file://${l.resolve(r)}/`);i=new o(u);d=u.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(d)){const u=t.rawSpec.replace(/^file:\/{1,3}/,"file:");a=new o(u,`file://${l.resolve(r)}/`);i=new o(u);d=u.replace(/^file:/,"")}let g=decodeURIComponent(i.pathname);let y=decodeURIComponent(a.pathname);if(m){g=g.replace(/^\/+([a-z]:\/)/i,"$1");y=y.replace(/^\/+([a-z]:\/)/i,"$1")}if(/^\/~(\/|$)/.test(g)){t.saveSpec=`file:${g.substr(1)}`;y=l.resolve(p(),g.substr(3))}else if(!l.isAbsolute(d)){t.saveSpec=`file:${l.relative(r,y)}`}else{t.saveSpec=`file:${l.resolve(y)}`}t.fetchSpec=l.resolve(r,y);return t}function fromHostedGit(t,r){t.type="git";t.hosted=r;t.saveSpec=r.toString({noGitPlus:false,noCommittish:false});t.fetchSpec=r.getDefaultRepresentation()==="shortcut"?null:r.toString();setGitAttrs(t,r.committish);return t}function unsupportedURLType(t,r){const i=new Error(`Unsupported URL Type "${t}": ${r}`);i.code="EUNSUPPORTEDPROTOCOL";return i}function fromURL(t){let r=t.rawSpec;t.saveSpec=r;if(r.startsWith("git+ssh:")){const i=r.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(i&&!i[1].match(/:[0-9]+\/?.*$/i)){t.type="git";setGitAttrs(t,i[2]);t.fetchSpec=i[1];return t}}else if(r.startsWith("git+file://")){r=r.replace(/\\/g,"/")}const i=new o(r);switch(i.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":t.type="git";setGitAttrs(t,i.hash.slice(1));if(i.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(r)){t.fetchSpec=`git+file://${i.host.toLowerCase()}:${i.pathname}`}else{i.hash="";t.fetchSpec=i.toString()}if(t.fetchSpec.startsWith("git+")){t.fetchSpec=t.fetchSpec.slice(4)}break;case"http:":case"https:":t.type="remote";t.fetchSpec=t.saveSpec;break;default:throw unsupportedURLType(i.protocol,r)}return t}function fromAlias(t,r){const i=npa(t.rawSpec.substr(4),r);if(i.type==="alias"){throw new Error("nested aliases not supported")}if(!i.registry){throw new Error("aliases only work for registry deps")}if(!i.name){throw new Error("aliases must have a name")}t.subSpec=i;t.registry=true;t.type="alias";t.saveSpec=null;t.fetchSpec=null;return t}function fromRegistry(t){t.registry=true;const r=t.rawSpec.trim();t.saveSpec=null;t.fetchSpec=r;const i=u.valid(r,true);const o=u.validRange(r,true);if(i){t.type="version"}else if(o){t.type="range"}else{if(encodeURIComponent(r)!==r){throw invalidTagName(r,t.raw)}t.type="tag"}return t}},1316:t=>{const r=Symbol("proc-log.meta");t.exports={META:r,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...t){return process.emit("output","standard",...t)},error:function(...t){return process.emit("output","error",...t)},buffer:function(...t){return process.emit("output","buffer",...t)},flush:function(...t){return process.emit("output","flush",...t)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...t){return process.emit("log","error",...t)},notice:function(...t){return process.emit("log","notice",...t)},warn:function(...t){return process.emit("log","warn",...t)},info:function(...t){return process.emit("log","info",...t)},verbose:function(...t){return process.emit("log","verbose",...t)},http:function(...t){return process.emit("log","http",...t)},silly:function(...t){return process.emit("log","silly",...t)},timing:function(...t){return process.emit("log","timing",...t)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(t,r){process.emit("time","start",t);function end(){return process.emit("time","end",t)}if(typeof r==="function"){const t=r();if(t&&t.finally){return t.finally(end)}end();return t}return end},end:function(t){return process.emit("time","end",t)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(t){process.emit("input","start");function end(){return process.emit("input","end")}if(typeof t==="function"){const r=t();if(r&&r.finally){return r.finally(end)}end();return r}return end},end:function(){return process.emit("input","end")},read:function(...t){let r,i;const o=new Promise(((t,o)=>{r=t;i=o}));process.emit("input","read",r,i,...t);return o}}}},2651:(t,r,i)=>{"use strict";const o=i(3585);const a=i(9335);const u=i(6067);const l=i(2554);const h=i(6022);const p=i(1205);const d=Symbol("text");const m=Symbol("prefixText");class Ora{constructor(t){if(typeof t==="string"){t={text:t}}this.options=Object.assign({text:"",color:"cyan",stream:process.stderr},t);this.spinner=this.options.spinner;this.color=this.options.color;this.hideCursor=this.options.hideCursor!==false;this.interval=this.options.interval||this.spinner.interval||100;this.stream=this.options.stream;this.id=null;this.isEnabled=typeof this.options.isEnabled==="boolean"?this.options.isEnabled:this.stream&&this.stream.isTTY&&!process.env.CI;this.text=this.options.text;this.prefixText=this.options.prefixText;this.linesToClear=0;this.indent=this.options.indent}get indent(){return this._indent}set indent(t=0){if(!(t>=0&&Number.isInteger(t))){throw new Error("The `indent` option must be an integer from 0 and up")}this._indent=t}get spinner(){return this._spinner}set spinner(t){this.frameIndex=0;if(typeof t==="object"){if(t.frames===undefined){throw new Error("The given spinner must have a `frames` property")}this._spinner=t}else if(process.platform==="win32"){this._spinner=u.line}else if(t===undefined){this._spinner=u.dots}else if(u[t]){this._spinner=u[t]}else{throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`)}}get text(){return this[d]}get prefixText(){return this[m]}get isSpinning(){return this.id!==null}updateLineCount(){const t=this.stream.columns||80;const r=typeof this[m]==="string"?this[m]+"-":"";this.lineCount=h(r+"--"+this[d]).split("\n").reduce(((r,i)=>r+Math.max(1,Math.ceil(p(i)/t))),0)}set text(t){this[d]=t;this.updateLineCount()}set prefixText(t){this[m]=t;this.updateLineCount()}frame(){const{frames:t}=this.spinner;let r=t[this.frameIndex];if(this.color){r=o[this.color](r)}this.frameIndex=++this.frameIndex%t.length;const i=typeof this.prefixText==="string"?this.prefixText+" ":"";const a=typeof this.text==="string"?" "+this.text:"";return i+r+a}clear(){if(!this.isEnabled||!this.stream.isTTY){return this}for(let t=0;t<this.linesToClear;t++){if(t>0){this.stream.moveCursor(0,-1)}this.stream.clearLine();this.stream.cursorTo(this.indent)}this.linesToClear=0;return this}render(){this.clear();this.stream.write(this.frame());this.linesToClear=this.lineCount;return this}start(t){if(t){this.text=t}if(!this.isEnabled){this.stream.write(`- ${this.text}\n`);return this}if(this.isSpinning){return this}if(this.hideCursor){a.hide(this.stream)}this.render();this.id=setInterval(this.render.bind(this),this.interval);return this}stop(){if(!this.isEnabled){return this}clearInterval(this.id);this.id=null;this.frameIndex=0;this.clear();if(this.hideCursor){a.show(this.stream)}return this}succeed(t){return this.stopAndPersist({symbol:l.success,text:t})}fail(t){return this.stopAndPersist({symbol:l.error,text:t})}warn(t){return this.stopAndPersist({symbol:l.warning,text:t})}info(t){return this.stopAndPersist({symbol:l.info,text:t})}stopAndPersist(t={}){const r=t.prefixText||this.prefixText;const i=typeof r==="string"?r+" ":"";const o=t.text||this.text;const a=typeof o==="string"?" "+o:"";this.stop();this.stream.write(`${i}${t.symbol||" "}${a}\n`);return this}}const oraFactory=function(t){return new Ora(t)};t.exports=oraFactory;t.exports["default"]=oraFactory;t.exports.promise=(t,r)=>{if(typeof t.then!=="function"){throw new TypeError("Parameter `action` must be a Promise")}const i=new Ora(r);i.start();t.then((()=>{i.succeed()}),(()=>{i.fail()}));return i}},6334:t=>{"use strict";t.exports=t=>{t=Object.assign({onlyFirst:false},t);const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,t.onlyFirst?undefined:"g")}},4445:(t,r,i)=>{"use strict";t=i.nmd(t);const o=i(2830);const wrapAnsi16=(t,r)=>function(){const i=t.apply(o,arguments);return`[${i+r}m`};const wrapAnsi256=(t,r)=>function(){const i=t.apply(o,arguments);return`[${38+r};5;${i}m`};const wrapAnsi16m=(t,r)=>function(){const i=t.apply(o,arguments);return`[${38+r};2;${i[0]};${i[1]};${i[2]}m`};function assembleStyles(){const t=new Map;const r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.grey=r.color.gray;for(const i of Object.keys(r)){const o=r[i];for(const i of Object.keys(o)){const a=o[i];r[i]={open:`[${a[0]}m`,close:`[${a[1]}m`};o[i]=r[i];t.set(a[0],a[1])}Object.defineProperty(r,i,{value:o,enumerable:false});Object.defineProperty(r,"codes",{value:t,enumerable:false})}const ansi2ansi=t=>t;const rgb2rgb=(t,r,i)=>[t,r,i];r.color.close="";r.bgColor.close="";r.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};r.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};r.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};r.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};r.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};r.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let t of Object.keys(o)){if(typeof o[t]!=="object"){continue}const i=o[t];if(t==="ansi16"){t="ansi"}if("ansi16"in i){r.color.ansi[t]=wrapAnsi16(i.ansi16,0);r.bgColor.ansi[t]=wrapAnsi16(i.ansi16,10)}if("ansi256"in i){r.color.ansi256[t]=wrapAnsi256(i.ansi256,0);r.bgColor.ansi256[t]=wrapAnsi256(i.ansi256,10)}if("rgb"in i){r.color.ansi16m[t]=wrapAnsi16m(i.rgb,0);r.bgColor.ansi16m[t]=wrapAnsi16m(i.rgb,10)}}return r}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},3585:(t,r,i)=>{"use strict";const o=i(789);const a=i(4445);const u=i(5387).stdout;const l=i(9149);const h=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const p=["ansi","ansi","ansi256","ansi16m"];const d=new Set(["gray"]);const m=Object.create(null);function applyOptions(t,r){r=r||{};const i=u?u.level:0;t.level=r.level===undefined?i:r.level;t.enabled="enabled"in r?r.enabled:t.level>0}function Chalk(t){if(!this||!(this instanceof Chalk)||this.template){const r={};applyOptions(r,t);r.template=function(){const t=[].slice.call(arguments);return chalkTag.apply(null,[r.template].concat(t))};Object.setPrototypeOf(r,Chalk.prototype);Object.setPrototypeOf(r.template,r);r.template.constructor=Chalk;return r.template}applyOptions(this,t)}if(h){a.blue.open=""}for(const t of Object.keys(a)){a[t].closeRe=new RegExp(o(a[t].close),"g");m[t]={get(){const r=a[t];return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}}m.visible={get(){return build.call(this,this._styles||[],true,"visible")}};a.color.closeRe=new RegExp(o(a.color.close),"g");for(const t of Object.keys(a.color.ansi)){if(d.has(t)){continue}m[t]={get(){const r=this.level;return function(){const i=a.color[p[r]][t].apply(null,arguments);const o={open:i,close:a.color.close,closeRe:a.color.closeRe};return build.call(this,this._styles?this._styles.concat(o):[o],this._empty,t)}}}}a.bgColor.closeRe=new RegExp(o(a.bgColor.close),"g");for(const t of Object.keys(a.bgColor.ansi)){if(d.has(t)){continue}const r="bg"+t[0].toUpperCase()+t.slice(1);m[r]={get(){const r=this.level;return function(){const i=a.bgColor[p[r]][t].apply(null,arguments);const o={open:i,close:a.bgColor.close,closeRe:a.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(o):[o],this._empty,t)}}}}const g=Object.defineProperties((()=>{}),m);function build(t,r,i){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=t;builder._empty=r;const o=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return o.level},set(t){o.level=t}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return o.enabled},set(t){o.enabled=t}});builder.hasGrey=this.hasGrey||i==="gray"||i==="grey";builder.__proto__=g;return builder}function applyStyle(){const t=arguments;const r=t.length;let i=String(arguments[0]);if(r===0){return""}if(r>1){for(let o=1;o<r;o++){i+=" "+t[o]}}if(!this.enabled||this.level<=0||!i){return this._empty?"":i}const o=a.dim.open;if(h&&this.hasGrey){a.dim.open=""}for(const t of this._styles.slice().reverse()){i=t.open+i.replace(t.closeRe,t.open)+t.close;i=i.replace(/\r?\n/g,`${t.close}$&${t.open}`)}a.dim.open=o;return i}function chalkTag(t,r){if(!Array.isArray(r)){return[].slice.call(arguments,1).join(" ")}const i=[].slice.call(arguments,2);const o=[r.raw[0]];for(let t=1;t<r.length;t++){o.push(String(i[t-1]).replace(/[{}\\]/g,"\\$&"));o.push(String(r.raw[t]))}return l(t,o.join(""))}Object.defineProperties(Chalk.prototype,m);t.exports=Chalk();t.exports.supportsColor=u;t.exports["default"]=t.exports},9149:t=>{"use strict";const r=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const a=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const u=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(t){if(t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}return u.get(t)||t}function parseArguments(t,r){const i=[];const u=r.trim().split(/\s*,\s*/g);let l;for(const r of u){if(!isNaN(r)){i.push(Number(r))}else if(l=r.match(o)){i.push(l[2].replace(a,((t,r,i)=>r?unescape(r):i)))}else{throw new Error(`Invalid Chalk template style argument: ${r} (in style '${t}')`)}}return i}function parseStyle(t){i.lastIndex=0;const r=[];let o;while((o=i.exec(t))!==null){const t=o[1];if(o[2]){const i=parseArguments(t,o[2]);r.push([t].concat(i))}else{r.push([t])}}return r}function buildStyle(t,r){const i={};for(const t of r){for(const r of t.styles){i[r[0]]=t.inverse?null:r.slice(1)}}let o=t;for(const t of Object.keys(i)){if(Array.isArray(i[t])){if(!(t in o)){throw new Error(`Unknown Chalk style: ${t}`)}if(i[t].length>0){o=o[t].apply(o,i[t])}else{o=o[t]}}}return o}t.exports=(t,i)=>{const o=[];const a=[];let u=[];i.replace(r,((r,i,l,h,p,d)=>{if(i){u.push(unescape(i))}else if(h){const r=u.join("");u=[];a.push(o.length===0?r:buildStyle(t,o)(r));o.push({inverse:l,styles:parseStyle(h)})}else if(p){if(o.length===0){throw new Error("Found extraneous } in Chalk template literal")}a.push(buildStyle(t,o)(u.join("")));u=[];o.pop()}else{u.push(d)}}));a.push(u.join(""));if(o.length>0){const t=`Chalk template literal is missing ${o.length} closing bracket${o.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return a.join("")}},9335:(t,r,i)=>{"use strict";const o=i(8664);let a=false;r.show=t=>{const r=t||process.stderr;if(!r.isTTY){return}a=false;r.write("[?25h")};r.hide=t=>{const r=t||process.stderr;if(!r.isTTY){return}o();a=true;r.write("[?25l")};r.toggle=(t,i)=>{if(t!==undefined){a=t}if(a){r.show(i)}else{r.hide(i)}}},789:t=>{"use strict";var r=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if(typeof t!=="string"){throw new TypeError("Expected a string")}return t.replace(r,"\\$&")}},125:t=>{"use strict";t.exports=(t,r)=>{r=r||process.argv;const i=t.startsWith("-")?"":t.length===1?"-":"--";const o=r.indexOf(i+t);const a=r.indexOf("--");return o!==-1&&(a===-1?true:o<a)}},2554:(t,r,i)=>{"use strict";const o=i(3585);const a=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color";const u={info:o.blue("ℹ"),success:o.green("✔"),warning:o.yellow("⚠"),error:o.red("✖")};const l={info:o.blue("i"),success:o.green("√"),warning:o.yellow("‼"),error:o.red("×")};t.exports=a?u:l},4048:t=>{"use strict";t.exports=(t,r)=>{for(const i of Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))}return t}},3527:(t,r,i)=>{"use strict";const o=i(4048);t.exports=(t,r)=>{if(r===true){throw new TypeError("The second argument is now an options object")}if(typeof t!=="function"){throw new TypeError("Expected a function")}r=r||{};let i;let a=false;const u=t.displayName||t.name||"<anonymous>";const onetime=function(){if(a){if(r.throw===true){throw new Error(`Function \`${u}\` can only be called once`)}return i}a=true;i=t.apply(this,arguments);t=null;return i};o(onetime,t);return onetime}},8664:(t,r,i)=>{"use strict";const o=i(3527);const a=i(2028);t.exports=o((()=>{a((()=>{process.stderr.write("[?25h")}),{alwaysLast:true})}))},6022:(t,r,i)=>{"use strict";const o=i(6334);const stripAnsi=t=>typeof t==="string"?t.replace(o(),""):t;t.exports=stripAnsi;t.exports["default"]=stripAnsi},5387:(t,r,i)=>{"use strict";const o=i(2037);const a=i(125);const u=process.env;let l;if(a("no-color")||a("no-colors")||a("color=false")){l=false}else if(a("color")||a("colors")||a("color=true")||a("color=always")){l=true}if("FORCE_COLOR"in u){l=u.FORCE_COLOR.length===0||parseInt(u.FORCE_COLOR,10)!==0}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t){if(l===false){return 0}if(a("color=16m")||a("color=full")||a("color=truecolor")){return 3}if(a("color=256")){return 2}if(t&&!t.isTTY&&l!==true){return 0}const r=l?1:0;if(process.platform==="win32"){const t=o.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in u){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((t=>t in u))||u.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in u){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(u.TEAMCITY_VERSION)?1:0}if(u.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in u){const t=parseInt((u.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(u.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(u.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(u.TERM)){return 1}if("COLORTERM"in u){return 1}if(u.TERM==="dumb"){return r}return r}function getSupportLevel(t){const r=supportsColor(t);return translateLevel(r)}t.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},9397:(t,r,i)=>{let o=process.argv||[],a=process.env;let u=!("NO_COLOR"in a||o.includes("--no-color"))&&("FORCE_COLOR"in a||o.includes("--color")||process.platform==="win32"||require!=null&&i(6224).isatty(1)&&a.TERM!=="dumb"||"CI"in a);let formatter=(t,r,i=t)=>o=>{let a=""+o;let u=a.indexOf(r,t.length);return~u?t+replaceClose(a,r,i,u)+r:t+a+r};let replaceClose=(t,r,i,o)=>{let a="";let u=0;do{a+=t.substring(u,o)+i;u=o+r.length;o=t.indexOf(r,u)}while(~o);return a+t.substring(u)};let createColors=(t=u)=>{let r=t?formatter:()=>String;return{isColorSupported:t,reset:r("",""),bold:r("","",""),dim:r("","",""),italic:r("",""),underline:r("",""),inverse:r("",""),hidden:r("",""),strikethrough:r("",""),black:r("",""),red:r("",""),green:r("",""),yellow:r("",""),blue:r("",""),magenta:r("",""),cyan:r("",""),white:r("",""),gray:r("",""),bgBlack:r("",""),bgRed:r("",""),bgGreen:r("",""),bgYellow:r("",""),bgBlue:r("",""),bgMagenta:r("",""),bgCyan:r("",""),bgWhite:r("","")}};t.exports=createColors();t.exports.createColors=createColors},9138:(t,r,i)=>{"use strict";t.exports=i(4755)},8223:(t,r,i)=>{"use strict";const o=i(1017);const a="\\\\/";const u=`[^${a}]`;const l="\\.";const h="\\+";const p="\\?";const d="\\/";const m="(?=.)";const g="[^/]";const y=`(?:${d}|$)`;const A=`(?:^|${d})`;const b=`${l}{1,2}${y}`;const v=`(?!${l})`;const E=`(?!${A}${b})`;const w=`(?!${l}{0,1}${y})`;const _=`(?!${b})`;const S=`[^.${d}]`;const C=`${g}*?`;const D={DOT_LITERAL:l,PLUS_LITERAL:h,QMARK_LITERAL:p,SLASH_LITERAL:d,ONE_CHAR:m,QMARK:g,END_ANCHOR:y,DOTS_SLASH:b,NO_DOT:v,NO_DOTS:E,NO_DOT_SLASH:w,NO_DOTS_SLASH:_,QMARK_NO_DOT:S,STAR:C,START_ANCHOR:A};const x={...D,SLASH_LITERAL:`[${a}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${l}{1,2}(?:[${a}]|$)`,NO_DOT:`(?!${l})`,NO_DOTS:`(?!(?:^|[${a}])${l}{1,2}(?:[${a}]|$))`,NO_DOT_SLASH:`(?!${l}{0,1}(?:[${a}]|$))`,NO_DOTS_SLASH:`(?!${l}{1,2}(?:[${a}]|$))`,QMARK_NO_DOT:`[^.${a}]`,START_ANCHOR:`(?:^|[${a}])`,END_ANCHOR:`(?:[${a}]|$)`};const R={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:R,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:o.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?x:D}}},1833:(t,r,i)=>{"use strict";const o=i(8223);const a=i(2924);const{MAX_LENGTH:u,POSIX_REGEX_SOURCE:l,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:p,REPLACEMENTS:d}=o;const expandRange=(t,r)=>{if(typeof r.expandRange==="function"){return r.expandRange(...t,r)}t.sort();const i=`[${t.join("-")}]`;try{new RegExp(i)}catch(r){return t.map((t=>a.escapeRegex(t))).join("..")}return i};const syntaxError=(t,r)=>`Missing ${t}: "${r}" - use "\\\\${r}" to match literal characters`;const parse=(t,r)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=d[t]||t;const i={...r};const m=typeof i.maxLength==="number"?Math.min(u,i.maxLength):u;let g=t.length;if(g>m){throw new SyntaxError(`Input length: ${g}, exceeds maximum allowed length: ${m}`)}const y={type:"bos",value:"",output:i.prepend||""};const A=[y];const b=i.capture?"":"?:";const v=a.isWindows(r);const E=o.globChars(v);const w=o.extglobChars(E);const{DOT_LITERAL:_,PLUS_LITERAL:S,SLASH_LITERAL:C,ONE_CHAR:D,DOTS_SLASH:x,NO_DOT:R,NO_DOT_SLASH:O,NO_DOTS_SLASH:k,QMARK:P,QMARK_NO_DOT:T,STAR:L,START_ANCHOR:I}=E;const globstar=t=>`(${b}(?:(?!${I}${t.dot?x:_}).)*?)`;const M=i.dot?"":R;const B=i.dot?P:T;let N=i.bash===true?globstar(i):L;if(i.capture){N=`(${N})`}if(typeof i.noext==="boolean"){i.noextglob=i.noext}const $={input:t,index:-1,start:0,dot:i.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:A};t=a.removePrefix(t,$);g=t.length;const j=[];const H=[];const G=[];let U=y;let W;const eos=()=>$.index===g-1;const z=$.peek=(r=1)=>t[$.index+r];const Y=$.advance=()=>t[++$.index]||"";const remaining=()=>t.slice($.index+1);const consume=(t="",r=0)=>{$.consumed+=t;$.index+=r};const append=t=>{$.output+=t.output!=null?t.output:t.value;consume(t.value)};const negate=()=>{let t=1;while(z()==="!"&&(z(2)!=="("||z(3)==="?")){Y();$.start++;t++}if(t%2===0){return false}$.negated=true;$.start++;return true};const increment=t=>{$[t]++;G.push(t)};const decrement=t=>{$[t]--;G.pop()};const push=t=>{if(U.type==="globstar"){const r=$.braces>0&&(t.type==="comma"||t.type==="brace");const i=t.extglob===true||j.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!r&&!i){$.output=$.output.slice(0,-U.output.length);U.type="star";U.value="*";U.output=N;$.output+=U.output}}if(j.length&&t.type!=="paren"){j[j.length-1].inner+=t.value}if(t.value||t.output)append(t);if(U&&U.type==="text"&&t.type==="text"){U.value+=t.value;U.output=(U.output||"")+t.value;return}t.prev=U;A.push(t);U=t};const extglobOpen=(t,r)=>{const o={...w[r],conditions:1,inner:""};o.prev=U;o.parens=$.parens;o.output=$.output;const a=(i.capture?"(":"")+o.open;increment("parens");push({type:t,value:r,output:$.output?"":D});push({type:"paren",extglob:true,value:Y(),output:a});j.push(o)};const extglobClose=t=>{let o=t.close+(i.capture?")":"");let a;if(t.type==="negate"){let u=N;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){u=globstar(i)}if(u!==N||eos()||/^\)+$/.test(remaining())){o=t.close=`)$))${u}`}if(t.inner.includes("*")&&(a=remaining())&&/^\.[^\\/.]+$/.test(a)){const i=parse(a,{...r,fastpaths:false}).output;o=t.close=`)${i})${u})`}if(t.prev.type==="bos"){$.negatedExtglob=true}}push({type:"paren",extglob:true,value:W,output:o});decrement("parens")};if(i.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let o=false;let u=t.replace(p,((t,r,i,a,u,l)=>{if(a==="\\"){o=true;return t}if(a==="?"){if(r){return r+a+(u?P.repeat(u.length):"")}if(l===0){return B+(u?P.repeat(u.length):"")}return P.repeat(i.length)}if(a==="."){return _.repeat(i.length)}if(a==="*"){if(r){return r+a+(u?N:"")}return N}return r?t:`\\${t}`}));if(o===true){if(i.unescape===true){u=u.replace(/\\/g,"")}else{u=u.replace(/\\+/g,(t=>t.length%2===0?"\\\\":t?"\\":""))}}if(u===t&&i.contains===true){$.output=t;return $}$.output=a.wrapOutput(u,$,r);return $}while(!eos()){W=Y();if(W==="\0"){continue}if(W==="\\"){const t=z();if(t==="/"&&i.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){W+="\\";push({type:"text",value:W});continue}const r=/^\\+/.exec(remaining());let o=0;if(r&&r[0].length>2){o=r[0].length;$.index+=o;if(o%2!==0){W+="\\"}}if(i.unescape===true){W=Y()}else{W+=Y()}if($.brackets===0){push({type:"text",value:W});continue}}if($.brackets>0&&(W!=="]"||U.value==="["||U.value==="[^")){if(i.posix!==false&&W===":"){const t=U.value.slice(1);if(t.includes("[")){U.posix=true;if(t.includes(":")){const t=U.value.lastIndexOf("[");const r=U.value.slice(0,t);const i=U.value.slice(t+2);const o=l[i];if(o){U.value=r+o;$.backtrack=true;Y();if(!y.output&&A.indexOf(U)===1){y.output=D}continue}}}}if(W==="["&&z()!==":"||W==="-"&&z()==="]"){W=`\\${W}`}if(W==="]"&&(U.value==="["||U.value==="[^")){W=`\\${W}`}if(i.posix===true&&W==="!"&&U.value==="["){W="^"}U.value+=W;append({value:W});continue}if($.quotes===1&&W!=='"'){W=a.escapeRegex(W);U.value+=W;append({value:W});continue}if(W==='"'){$.quotes=$.quotes===1?0:1;if(i.keepQuotes===true){push({type:"text",value:W})}continue}if(W==="("){increment("parens");push({type:"paren",value:W});continue}if(W===")"){if($.parens===0&&i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const t=j[j.length-1];if(t&&$.parens===t.parens+1){extglobClose(j.pop());continue}push({type:"paren",value:W,output:$.parens?")":"\\)"});decrement("parens");continue}if(W==="["){if(i.nobracket===true||!remaining().includes("]")){if(i.nobracket!==true&&i.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}W=`\\${W}`}else{increment("brackets")}push({type:"bracket",value:W});continue}if(W==="]"){if(i.nobracket===true||U&&U.type==="bracket"&&U.value.length===1){push({type:"text",value:W,output:`\\${W}`});continue}if($.brackets===0){if(i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:W,output:`\\${W}`});continue}decrement("brackets");const t=U.value.slice(1);if(U.posix!==true&&t[0]==="^"&&!t.includes("/")){W=`/${W}`}U.value+=W;append({value:W});if(i.literalBrackets===false||a.hasRegexChars(t)){continue}const r=a.escapeRegex(U.value);$.output=$.output.slice(0,-U.value.length);if(i.literalBrackets===true){$.output+=r;U.value=r;continue}U.value=`(${b}${r}|${U.value})`;$.output+=U.value;continue}if(W==="{"&&i.nobrace!==true){increment("braces");const t={type:"brace",value:W,output:"(",outputIndex:$.output.length,tokensIndex:$.tokens.length};H.push(t);push(t);continue}if(W==="}"){const t=H[H.length-1];if(i.nobrace===true||!t){push({type:"text",value:W,output:W});continue}let r=")";if(t.dots===true){const t=A.slice();const o=[];for(let r=t.length-1;r>=0;r--){A.pop();if(t[r].type==="brace"){break}if(t[r].type!=="dots"){o.unshift(t[r].value)}}r=expandRange(o,i);$.backtrack=true}if(t.comma!==true&&t.dots!==true){const i=$.output.slice(0,t.outputIndex);const o=$.tokens.slice(t.tokensIndex);t.value=t.output="\\{";W=r="\\}";$.output=i;for(const t of o){$.output+=t.output||t.value}}push({type:"brace",value:W,output:r});decrement("braces");H.pop();continue}if(W==="|"){if(j.length>0){j[j.length-1].conditions++}push({type:"text",value:W});continue}if(W===","){let t=W;const r=H[H.length-1];if(r&&G[G.length-1]==="braces"){r.comma=true;t="|"}push({type:"comma",value:W,output:t});continue}if(W==="/"){if(U.type==="dot"&&$.index===$.start+1){$.start=$.index+1;$.consumed="";$.output="";A.pop();U=y;continue}push({type:"slash",value:W,output:C});continue}if(W==="."){if($.braces>0&&U.type==="dot"){if(U.value===".")U.output=_;const t=H[H.length-1];U.type="dots";U.output+=W;U.value+=W;t.dots=true;continue}if($.braces+$.parens===0&&U.type!=="bos"&&U.type!=="slash"){push({type:"text",value:W,output:_});continue}push({type:"dot",value:W,output:_});continue}if(W==="?"){const t=U&&U.value==="(";if(!t&&i.noextglob!==true&&z()==="("&&z(2)!=="?"){extglobOpen("qmark",W);continue}if(U&&U.type==="paren"){const t=z();let r=W;if(t==="<"&&!a.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(U.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(remaining())){r=`\\${W}`}push({type:"text",value:W,output:r});continue}if(i.dot!==true&&(U.type==="slash"||U.type==="bos")){push({type:"qmark",value:W,output:T});continue}push({type:"qmark",value:W,output:P});continue}if(W==="!"){if(i.noextglob!==true&&z()==="("){if(z(2)!=="?"||!/[!=<:]/.test(z(3))){extglobOpen("negate",W);continue}}if(i.nonegate!==true&&$.index===0){negate();continue}}if(W==="+"){if(i.noextglob!==true&&z()==="("&&z(2)!=="?"){extglobOpen("plus",W);continue}if(U&&U.value==="("||i.regex===false){push({type:"plus",value:W,output:S});continue}if(U&&(U.type==="bracket"||U.type==="paren"||U.type==="brace")||$.parens>0){push({type:"plus",value:W});continue}push({type:"plus",value:S});continue}if(W==="@"){if(i.noextglob!==true&&z()==="("&&z(2)!=="?"){push({type:"at",extglob:true,value:W,output:""});continue}push({type:"text",value:W});continue}if(W!=="*"){if(W==="$"||W==="^"){W=`\\${W}`}const t=h.exec(remaining());if(t){W+=t[0];$.index+=t[0].length}push({type:"text",value:W});continue}if(U&&(U.type==="globstar"||U.star===true)){U.type="star";U.star=true;U.value+=W;U.output=N;$.backtrack=true;$.globstar=true;consume(W);continue}let r=remaining();if(i.noextglob!==true&&/^\([^?]/.test(r)){extglobOpen("star",W);continue}if(U.type==="star"){if(i.noglobstar===true){consume(W);continue}const o=U.prev;const a=o.prev;const u=o.type==="slash"||o.type==="bos";const l=a&&(a.type==="star"||a.type==="globstar");if(i.bash===true&&(!u||r[0]&&r[0]!=="/")){push({type:"star",value:W,output:""});continue}const h=$.braces>0&&(o.type==="comma"||o.type==="brace");const p=j.length&&(o.type==="pipe"||o.type==="paren");if(!u&&o.type!=="paren"&&!h&&!p){push({type:"star",value:W,output:""});continue}while(r.slice(0,3)==="/**"){const i=t[$.index+4];if(i&&i!=="/"){break}r=r.slice(3);consume("/**",3)}if(o.type==="bos"&&eos()){U.type="globstar";U.value+=W;U.output=globstar(i);$.output=U.output;$.globstar=true;consume(W);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&!l&&eos()){$.output=$.output.slice(0,-(o.output+U.output).length);o.output=`(?:${o.output}`;U.type="globstar";U.output=globstar(i)+(i.strictSlashes?")":"|$)");U.value+=W;$.globstar=true;$.output+=o.output+U.output;consume(W);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&r[0]==="/"){const t=r[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(o.output+U.output).length);o.output=`(?:${o.output}`;U.type="globstar";U.output=`${globstar(i)}${C}|${C}${t})`;U.value+=W;$.output+=o.output+U.output;$.globstar=true;consume(W+Y());push({type:"slash",value:"/",output:""});continue}if(o.type==="bos"&&r[0]==="/"){U.type="globstar";U.value+=W;U.output=`(?:^|${C}|${globstar(i)}${C})`;$.output=U.output;$.globstar=true;consume(W+Y());push({type:"slash",value:"/",output:""});continue}$.output=$.output.slice(0,-U.output.length);U.type="globstar";U.output=globstar(i);U.value+=W;$.output+=U.output;$.globstar=true;consume(W);continue}const o={type:"star",value:W,output:N};if(i.bash===true){o.output=".*?";if(U.type==="bos"||U.type==="slash"){o.output=M+o.output}push(o);continue}if(U&&(U.type==="bracket"||U.type==="paren")&&i.regex===true){o.output=W;push(o);continue}if($.index===$.start||U.type==="slash"||U.type==="dot"){if(U.type==="dot"){$.output+=O;U.output+=O}else if(i.dot===true){$.output+=k;U.output+=k}else{$.output+=M;U.output+=M}if(z()!=="*"){$.output+=D;U.output+=D}}push(o)}while($.brackets>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));$.output=a.escapeLast($.output,"[");decrement("brackets")}while($.parens>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));$.output=a.escapeLast($.output,"(");decrement("parens")}while($.braces>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));$.output=a.escapeLast($.output,"{");decrement("braces")}if(i.strictSlashes!==true&&(U.type==="star"||U.type==="bracket")){push({type:"maybe_slash",value:"",output:`${C}?`})}if($.backtrack===true){$.output="";for(const t of $.tokens){$.output+=t.output!=null?t.output:t.value;if(t.suffix){$.output+=t.suffix}}}return $};parse.fastpaths=(t,r)=>{const i={...r};const l=typeof i.maxLength==="number"?Math.min(u,i.maxLength):u;const h=t.length;if(h>l){throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${l}`)}t=d[t]||t;const p=a.isWindows(r);const{DOT_LITERAL:m,SLASH_LITERAL:g,ONE_CHAR:y,DOTS_SLASH:A,NO_DOT:b,NO_DOTS:v,NO_DOTS_SLASH:E,STAR:w,START_ANCHOR:_}=o.globChars(p);const S=i.dot?v:b;const C=i.dot?E:b;const D=i.capture?"":"?:";const x={negated:false,prefix:""};let R=i.bash===true?".*?":w;if(i.capture){R=`(${R})`}const globstar=t=>{if(t.noglobstar===true)return R;return`(${D}(?:(?!${_}${t.dot?A:m}).)*?)`};const create=t=>{switch(t){case"*":return`${S}${y}${R}`;case".*":return`${m}${y}${R}`;case"*.*":return`${S}${R}${m}${y}${R}`;case"*/*":return`${S}${R}${g}${y}${C}${R}`;case"**":return S+globstar(i);case"**/*":return`(?:${S}${globstar(i)}${g})?${C}${y}${R}`;case"**/*.*":return`(?:${S}${globstar(i)}${g})?${C}${R}${m}${y}${R}`;case"**/.*":return`(?:${S}${globstar(i)}${g})?${m}${y}${R}`;default:{const r=/^(.*?)\.(\w+)$/.exec(t);if(!r)return;const i=create(r[1]);if(!i)return;return i+m+r[2]}}};const O=a.removePrefix(t,x);let k=create(O);if(k&&i.strictSlashes!==true){k+=`${g}?`}return k};t.exports=parse},4755:(t,r,i)=>{"use strict";const o=i(1017);const a=i(2017);const u=i(1833);const l=i(2924);const h=i(8223);const isObject=t=>t&&typeof t==="object"&&!Array.isArray(t);const picomatch=(t,r,i=false)=>{if(Array.isArray(t)){const o=t.map((t=>picomatch(t,r,i)));const arrayMatcher=t=>{for(const r of o){const i=r(t);if(i)return i}return false};return arrayMatcher}const o=isObject(t)&&t.tokens&&t.input;if(t===""||typeof t!=="string"&&!o){throw new TypeError("Expected pattern to be a non-empty string")}const a=r||{};const u=l.isWindows(r);const h=o?picomatch.compileRe(t,r):picomatch.makeRe(t,r,false,true);const p=h.state;delete h.state;let isIgnored=()=>false;if(a.ignore){const t={...r,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(a.ignore,t,i)}const matcher=(i,o=false)=>{const{isMatch:l,match:d,output:m}=picomatch.test(i,h,r,{glob:t,posix:u});const g={glob:t,state:p,regex:h,posix:u,input:i,output:m,match:d,isMatch:l};if(typeof a.onResult==="function"){a.onResult(g)}if(l===false){g.isMatch=false;return o?g:false}if(isIgnored(i)){if(typeof a.onIgnore==="function"){a.onIgnore(g)}g.isMatch=false;return o?g:false}if(typeof a.onMatch==="function"){a.onMatch(g)}return o?g:true};if(i){matcher.state=p}return matcher};picomatch.test=(t,r,i,{glob:o,posix:a}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const u=i||{};const h=u.format||(a?l.toPosixSlashes:null);let p=t===o;let d=p&&h?h(t):t;if(p===false){d=h?h(t):t;p=d===o}if(p===false||u.capture===true){if(u.matchBase===true||u.basename===true){p=picomatch.matchBase(t,r,i,a)}else{p=r.exec(d)}}return{isMatch:Boolean(p),match:p,output:d}};picomatch.matchBase=(t,r,i,a=l.isWindows(i))=>{const u=r instanceof RegExp?r:picomatch.makeRe(r,i);return u.test(o.basename(t))};picomatch.isMatch=(t,r,i)=>picomatch(r,i)(t);picomatch.parse=(t,r)=>{if(Array.isArray(t))return t.map((t=>picomatch.parse(t,r)));return u(t,{...r,fastpaths:false})};picomatch.scan=(t,r)=>a(t,r);picomatch.compileRe=(t,r,i=false,o=false)=>{if(i===true){return t.output}const a=r||{};const u=a.contains?"":"^";const l=a.contains?"":"$";let h=`${u}(?:${t.output})${l}`;if(t&&t.negated===true){h=`^(?!${h}).*$`}const p=picomatch.toRegex(h,r);if(o===true){p.state=t}return p};picomatch.makeRe=(t,r={},i=false,o=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}let a={negated:false,fastpaths:true};if(r.fastpaths!==false&&(t[0]==="."||t[0]==="*")){a.output=u.fastpaths(t,r)}if(!a.output){a=u(t,r)}return picomatch.compileRe(a,r,i,o)};picomatch.toRegex=(t,r)=>{try{const i=r||{};return new RegExp(t,i.flags||(i.nocase?"i":""))}catch(t){if(r&&r.debug===true)throw t;return/$^/}};picomatch.constants=h;t.exports=picomatch},2017:(t,r,i)=>{"use strict";const o=i(2924);const{CHAR_ASTERISK:a,CHAR_AT:u,CHAR_BACKWARD_SLASH:l,CHAR_COMMA:h,CHAR_DOT:p,CHAR_EXCLAMATION_MARK:d,CHAR_FORWARD_SLASH:m,CHAR_LEFT_CURLY_BRACE:g,CHAR_LEFT_PARENTHESES:y,CHAR_LEFT_SQUARE_BRACKET:A,CHAR_PLUS:b,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:E,CHAR_RIGHT_PARENTHESES:w,CHAR_RIGHT_SQUARE_BRACKET:_}=i(8223);const isPathSeparator=t=>t===m||t===l;const depth=t=>{if(t.isPrefix!==true){t.depth=t.isGlobstar?Infinity:1}};const scan=(t,r)=>{const i=r||{};const S=t.length-1;const C=i.parts===true||i.scanToEnd===true;const D=[];const x=[];const R=[];let O=t;let k=-1;let P=0;let T=0;let L=false;let I=false;let M=false;let B=false;let N=false;let $=false;let j=false;let H=false;let G=false;let U=false;let W=0;let z;let Y;let V={value:"",depth:0,isGlob:false};const eos=()=>k>=S;const peek=()=>O.charCodeAt(k+1);const advance=()=>{z=Y;return O.charCodeAt(++k)};while(k<S){Y=advance();let t;if(Y===l){j=V.backslashes=true;Y=advance();if(Y===g){$=true}continue}if($===true||Y===g){W++;while(eos()!==true&&(Y=advance())){if(Y===l){j=V.backslashes=true;advance();continue}if(Y===g){W++;continue}if($!==true&&Y===p&&(Y=advance())===p){L=V.isBrace=true;M=V.isGlob=true;U=true;if(C===true){continue}break}if($!==true&&Y===h){L=V.isBrace=true;M=V.isGlob=true;U=true;if(C===true){continue}break}if(Y===E){W--;if(W===0){$=false;L=V.isBrace=true;U=true;break}}}if(C===true){continue}break}if(Y===m){D.push(k);x.push(V);V={value:"",depth:0,isGlob:false};if(U===true)continue;if(z===p&&k===P+1){P+=2;continue}T=k+1;continue}if(i.noext!==true){const t=Y===b||Y===u||Y===a||Y===v||Y===d;if(t===true&&peek()===y){M=V.isGlob=true;B=V.isExtglob=true;U=true;if(Y===d&&k===P){G=true}if(C===true){while(eos()!==true&&(Y=advance())){if(Y===l){j=V.backslashes=true;Y=advance();continue}if(Y===w){M=V.isGlob=true;U=true;break}}continue}break}}if(Y===a){if(z===a)N=V.isGlobstar=true;M=V.isGlob=true;U=true;if(C===true){continue}break}if(Y===v){M=V.isGlob=true;U=true;if(C===true){continue}break}if(Y===A){while(eos()!==true&&(t=advance())){if(t===l){j=V.backslashes=true;advance();continue}if(t===_){I=V.isBracket=true;M=V.isGlob=true;U=true;break}}if(C===true){continue}break}if(i.nonegate!==true&&Y===d&&k===P){H=V.negated=true;P++;continue}if(i.noparen!==true&&Y===y){M=V.isGlob=true;if(C===true){while(eos()!==true&&(Y=advance())){if(Y===y){j=V.backslashes=true;Y=advance();continue}if(Y===w){U=true;break}}continue}break}if(M===true){U=true;if(C===true){continue}break}}if(i.noext===true){B=false;M=false}let Q=O;let K="";let X="";if(P>0){K=O.slice(0,P);O=O.slice(P);T-=P}if(Q&&M===true&&T>0){Q=O.slice(0,T);X=O.slice(T)}else if(M===true){Q="";X=O}else{Q=O}if(Q&&Q!==""&&Q!=="/"&&Q!==O){if(isPathSeparator(Q.charCodeAt(Q.length-1))){Q=Q.slice(0,-1)}}if(i.unescape===true){if(X)X=o.removeBackslashes(X);if(Q&&j===true){Q=o.removeBackslashes(Q)}}const q={prefix:K,input:t,start:P,base:Q,glob:X,isBrace:L,isBracket:I,isGlob:M,isExtglob:B,isGlobstar:N,negated:H,negatedExtglob:G};if(i.tokens===true){q.maxDepth=0;if(!isPathSeparator(Y)){x.push(V)}q.tokens=x}if(i.parts===true||i.tokens===true){let r;for(let o=0;o<D.length;o++){const a=r?r+1:P;const u=D[o];const l=t.slice(a,u);if(i.tokens){if(o===0&&P!==0){x[o].isPrefix=true;x[o].value=K}else{x[o].value=l}depth(x[o]);q.maxDepth+=x[o].depth}if(o!==0||l!==""){R.push(l)}r=u}if(r&&r+1<t.length){const o=t.slice(r+1);R.push(o);if(i.tokens){x[x.length-1].value=o;depth(x[x.length-1]);q.maxDepth+=x[x.length-1].depth}}q.slashes=D;q.parts=R}return q};t.exports=scan},2924:(t,r,i)=>{"use strict";const o=i(1017);const a=process.platform==="win32";const{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:l,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:p}=i(8223);r.isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);r.hasRegexChars=t=>h.test(t);r.isRegexChar=t=>t.length===1&&r.hasRegexChars(t);r.escapeRegex=t=>t.replace(p,"\\$1");r.toPosixSlashes=t=>t.replace(u,"/");r.removeBackslashes=t=>t.replace(l,(t=>t==="\\"?"":t));r.supportsLookbehinds=()=>{const t=process.version.slice(1).split(".").map(Number);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false};r.isWindows=t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return a===true||o.sep==="\\"};r.escapeLast=(t,i,o)=>{const a=t.lastIndexOf(i,o);if(a===-1)return t;if(t[a-1]==="\\")return r.escapeLast(t,i,a-1);return`${t.slice(0,a)}\\${t.slice(a)}`};r.removePrefix=(t,r={})=>{let i=t;if(i.startsWith("./")){i=i.slice(2);r.prefix="./"}return i};r.wrapOutput=(t,r={},i={})=>{const o=i.contains?"":"^";const a=i.contains?"":"$";let u=`${o}(?:${t})${a}`;if(r.negated===true){u=`(?:^(?!${u}).*$)`}return u}},399:t=>{"use strict";class DatePart{constructor({token:t,date:r,parts:i,locales:o}){this.token=t;this.date=r||new Date;this.parts=i||[this];this.locales=o||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,i)=>i>t&&r instanceof DatePart))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,i)=>i>r&&t instanceof DatePart))}toString(){return String(this.date)}}t.exports=DatePart},7967:(t,r,i)=>{"use strict";const o=i(399);const pos=t=>{t=t%10;return t===1?"st":t===2?"nd":t===3?"rd":"th"};class Day extends o{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate();let r=this.date.getDay();return this.token==="DD"?String(t).padStart(2,"0"):this.token==="Do"?t+pos(t):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:t}}t.exports=Day},4102:(t,r,i)=>{"use strict";const o=i(399);class Hours extends o{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();if(/h/.test(this.token))t=t%12||12;return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Hours},7517:(t,r,i)=>{"use strict";t.exports={DatePart:i(399),Meridiem:i(4128),Day:i(7967),Hours:i(4102),Milliseconds:i(6945),Minutes:i(7829),Month:i(8608),Seconds:i(812),Year:i(5227)}},4128:(t,r,i)=>{"use strict";const o=i(399);class Meridiem extends o{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}t.exports=Meridiem},6945:(t,r,i)=>{"use strict";const o=i(399);class Milliseconds extends o{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}t.exports=Milliseconds},7829:(t,r,i)=>{"use strict";const o=i(399);class Minutes extends o{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Minutes},8608:(t,r,i)=>{"use strict";const o=i(399);class Month extends o{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1;this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth();let r=this.token.length;return r===2?String(t+1).padStart(2,"0"):r===3?this.locales.monthsShort[t]:r===4?this.locales.months[t]:String(t+1)}}t.exports=Month},812:(t,r,i)=>{"use strict";const o=i(399);class Seconds extends o{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Seconds},5227:(t,r,i)=>{"use strict";const o=i(399);class Year extends o{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?t.substr(-2):t}}t.exports=Year},935:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var p=h.value}catch(t){i(t);return}if(h.done){r(p)}else{Promise.resolve(p).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(9439);const a=i(5876);const u=i(332),l=u.erase,h=u.cursor;const p=i(2800),d=p.style,m=p.clear,g=p.figures,y=p.wrap,A=p.entriesToDisplay;const getVal=(t,r)=>t[r]&&(t[r].value||t[r].title||t[r]);const getTitle=(t,r)=>t[r]&&(t[r].title||t[r].value||t[r]);const getIndex=(t,r)=>{const i=t.findIndex((t=>t.value===r||t.title===r));return i>-1?i:undefined};class AutocompletePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.suggest=t.suggest;this.choices=t.choices;this.initial=typeof t.initial==="number"?t.initial:getIndex(t.choices,t.initial);this.select=this.initial||t.cursor||0;this.i18n={noMatches:t.noMatches||"no matches found"};this.fallback=t.fallback||this.initial;this.clearFirst=t.clearFirst||false;this.suggestions=[];this.input="";this.limit=t.limit||10;this.cursor=0;this.transform=d.render(t.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=m("",this.out.columns);this.complete(this.render);this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;if(typeof this._fb==="number")t=this.choices[this._fb];else if(typeof this._fb==="string")t={title:this._fb};return t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t;if(this.suggestions.length>0)this.value=getVal(this.suggestions,t);else this.value=this.fallback.value;this.fire()}complete(t){var r=this;return _asyncToGenerator((function*(){const i=r.completing=r.suggest(r.input,r.choices);const o=yield i;if(r.completing!==i)return;r.suggestions=o.map(((t,r,i)=>({title:getTitle(i,r),value:getVal(i,r),description:t.description})));r.completing=false;const a=Math.max(o.length-1,0);r.moveSelect(Math.min(a,r.select));t&&t()}))()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}exit(){if(this.clearFirst&&this.input.length>0){this.reset()}else{this.done=this.exited=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}abort(){this.done=this.aborted=true;this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){let i=this.input.slice(0,this.cursor);let o=this.input.slice(this.cursor);this.input=`${i}${t}${o}`;this.cursor=i.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let t=this.input.slice(0,this.cursor-1);let r=this.input.slice(this.cursor);this.input=`${t}${r}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor);let r=this.input.slice(this.cursor+1);this.input=`${t}${r}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select===0){this.moveSelect(this.suggestions.length-1)}else{this.moveSelect(this.select-1)}this.render()}down(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else{this.moveSelect(this.select+1)}this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1));this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0));this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}renderOption(t,r,i,a){let u;let l=i?g.arrowUp:a?g.arrowDown:" ";let h=r?o.cyan().underline(t.title):t.title;l=(r?o.cyan(g.pointer)+" ":" ")+l;if(t.description){u=` - ${t.description}`;if(l.length+h.length+u.length>=this.out.columns||t.description.split(/\r?\n/).length>1){u="\n"+y(t.description,{margin:3,width:this.out.columns})}}return l+" "+h+o.gray(u||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(m(this.outputText,this.out.columns));super.render();let t=A(this.select,this.choices.length,this.limit),r=t.startIndex,i=t.endIndex;this.outputText=[d.symbol(this.done,this.aborted,this.exited),o.bold(this.msg),d.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const t=this.suggestions.slice(r,i).map(((t,o)=>this.renderOption(t,this.select===o+r,o===0&&r>0,o+r===i-1&&i<this.choices.length))).join("\n");this.outputText+=`\n`+(t||o.gray(this.fallback.title))}this.out.write(l.line+h.to(0)+this.outputText)}}t.exports=AutocompletePrompt},2040:(t,r,i)=>{"use strict";const o=i(9439);const a=i(332),u=a.cursor;const l=i(4047);const h=i(2800),p=h.clear,d=h.style,m=h.figures;class AutocompleteMultiselectPrompt extends l{constructor(t={}){t.overrideRender=true;super(t);this.inputValue="";this.clear=p("",this.out.columns);this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>{if(this.inputValue){if(typeof t.title==="string"){if(t.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof t.value==="string"){if(t.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const r=this.filteredOptions.findIndex((r=>r===t));this.cursor=r<0?0:r;this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t;this.updateFilteredOptions()}_(t,r){if(t===" "){this.handleSpaceToggle()}else{this.handleInputChange(t)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${m.arrowUp}/${m.arrowDown}: Highlight option\n ${m.arrowLeft}/${m.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:o.gray("Enter something to filter")}\n`}renderOption(t,r,i){let a;if(r.disabled)a=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title);else a=t===i?o.cyan().underline(r.title):r.title;return(r.selected?o.green(m.radioOn):m.radioOff)+" "+a}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();let t=[d.symbol(this.done,this.aborted),o.bold(this.msg),d.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+t);this.clear=p(t,this.out.columns)}}t.exports=AutocompleteMultiselectPrompt},5680:(t,r,i)=>{"use strict";const o=i(9439);const a=i(5876);const u=i(2800),l=u.style,h=u.clear;const p=i(332),d=p.erase,m=p.cursor;class ConfirmPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=t.initial;this.initialValue=!!t.initial;this.yesMsg=t.yes||"yes";this.yesOption=t.yesOption||"(Y/n)";this.noMsg=t.no||"no";this.noOption=t.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){if(t.toLowerCase()==="y"){this.value=true;return this.submit()}if(t.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(m.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:o.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(d.line+m.to(0)+this.outputText)}}t.exports=ConfirmPrompt},3031:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var p=h.value}catch(t){i(t);return}if(h.done){r(p)}else{Promise.resolve(p).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(9439);const a=i(5876);const u=i(2800),l=u.style,h=u.clear,p=u.figures;const d=i(332),m=d.erase,g=d.cursor;const y=i(7517),A=y.DatePart,b=y.Meridiem,v=y.Day,E=y.Hours,w=y.Milliseconds,_=y.Minutes,S=y.Month,C=y.Seconds,D=y.Year;const x=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const R={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new v(t),3:t=>new S(t),4:t=>new D(t),5:t=>new b(t),6:t=>new E(t),7:t=>new _(t),8:t=>new C(t),9:t=>new w(t)};const O={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.cursor=0;this.typed="";this.locales=Object.assign(O,t.locales);this._date=t.initial||new Date;this.errorMsg=t.error||"Please Enter A Valid Value";this.validator=t.validate||(()=>true);this.mask=t.mask||"YYYY-MM-DD HH:mm:ss";this.clear=h("",this.out.columns);this.render()}get value(){return this.date}get date(){return this._date}set date(t){if(t)this._date.setTime(t.getTime())}set mask(t){let r;this.parts=[];while(r=x.exec(t)){let t=r.shift();let i=r.findIndex((t=>t!=null));this.parts.push(i in R?R[i]({token:r[i]||t,date:this.date,parts:this.parts,locales:this.locales}):r[i]||t)}let i=this.parts.reduce(((t,r)=>{if(typeof r==="string"&&typeof t[t.length-1]==="string")t[t.length-1]+=r;else t.push(r);return t}),[]);this.parts.splice(0);this.parts.push(...i);this.reset()}moveCursor(t){this.typed="";this.cursor=t;this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof A)));this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r==="string"){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){yield t.validate();if(t.error){t.color="red";t.fire();t.render();return}t.done=true;t.aborted=false;t.fire();t.render();t.out.write("\n");t.close()}))()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let t=this.parts[this.cursor].prev();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}right(){let t=this.parts[this.cursor].next();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof A)));this.render()}_(t){if(/\d/.test(t)){this.typed+=t;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(g.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(false),this.parts.reduce(((t,r,i)=>t.concat(i===this.cursor&&!this.done?o.cyan().underline(r.toString()):r)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((t,r,i)=>t+`\n${i?` `:p.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(m.line+g.to(0)+this.outputText)}}t.exports=DatePrompt},9956:(t,r,i)=>{"use strict";t.exports={TextPrompt:i(5430),SelectPrompt:i(8856),TogglePrompt:i(9692),DatePrompt:i(3031),NumberPrompt:i(8831),MultiselectPrompt:i(4047),AutocompletePrompt:i(935),AutocompleteMultiselectPrompt:i(2040),ConfirmPrompt:i(5680)}},4047:(t,r,i)=>{"use strict";const o=i(9439);const a=i(332),u=a.cursor;const l=i(5876);const h=i(2800),p=h.clear,d=h.figures,m=h.style,g=h.wrap,y=h.entriesToDisplay;class MultiselectPrompt extends l{constructor(t={}){super(t);this.msg=t.message;this.cursor=t.cursor||0;this.scrollIndex=t.cursor||0;this.hint=t.hint||"";this.warn=t.warn||"- This option is disabled -";this.minSelected=t.min;this.showMinError=false;this.maxChoices=t.max;this.instructions=t.instructions;this.optionsPerPage=t.optionsPerPage||10;this.value=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(t.value===undefined?r:t.value),selected:t&&t.selected,disabled:t&&t.disabled}}));this.clear=p("",this.out.columns);if(!t.overrideRender){this.render()}}reset(){this.value.map((t=>!t.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const t=this.value.filter((t=>t.selected));if(this.minSelected&&t.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((r=>r.selected=t));this.render()}_(t,r){if(t===" "){this.handleSpaceToggle()}else if(t==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+` ${d.arrowUp}/${d.arrowDown}: Highlight option\n`+` ${d.arrowLeft}/${d.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(t,r,i,a){const u=(r.selected?o.green(d.radioOn):d.radioOff)+" "+a+" ";let l,h;if(r.disabled){l=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title)}else{l=t===i?o.cyan().underline(r.title):r.title;if(t===i&&r.description){h=` - ${r.description}`;if(u.length+l.length+h.length>=this.out.columns||r.description.split(/\r?\n/).length>1){h="\n"+g(r.description,{margin:u.length,width:this.out.columns})}}}return u+l+o.gray(h||"")}paginateOptions(t){if(t.length===0){return o.red("No matches for this query.")}let r=y(this.cursor,t.length,this.optionsPerPage),i=r.startIndex,a=r.endIndex;let u,l=[];for(let r=i;r<a;r++){if(r===i&&i>0){u=d.arrowUp}else if(r===a-1&&a<t.length){u=d.arrowDown}else{u=" "}l.push(this.renderOption(this.cursor,t[r],r,u))}return"\n"+l.join("\n")}renderOptions(t){if(!this.done){return this.paginateOptions(t)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();let t=[m.symbol(this.done,this.aborted),o.bold(this.msg),m.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.value);this.out.write(this.clear+t);this.clear=p(t,this.out.columns)}}t.exports=MultiselectPrompt},8831:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var p=h.value}catch(t){i(t);return}if(h.done){r(p)}else{Promise.resolve(p).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(9439);const a=i(5876);const u=i(332),l=u.cursor,h=u.erase;const p=i(2800),d=p.style,m=p.figures,g=p.clear,y=p.lines;const A=/[0-9]/;const isDef=t=>t!==undefined;const round=(t,r)=>{let i=Math.pow(10,r);return Math.round(t*i)/i};class NumberPrompt extends a{constructor(t={}){super(t);this.transform=d.render(t.style);this.msg=t.message;this.initial=isDef(t.initial)?t.initial:"";this.float=!!t.float;this.round=t.round||2;this.inc=t.increment||1;this.min=isDef(t.min)?t.min:-Infinity;this.max=isDef(t.max)?t.max:Infinity;this.errorMsg=t.error||`Please Enter A Valid Value`;this.validator=t.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(t){if(!t&&t!==0){this.placeholder=true;this.rendered=o.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(t,this.round)}`);this._value=round(t,this.round)}this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return t===`-`||t===`.`&&this.float||A.test(t)}reset(){this.typed=``;this.value=``;this.fire();this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=t!==``?t:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r===`string`){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){yield t.validate();if(t.error){t.color=`red`;t.fire();t.render();return}let r=t.value;t.value=r!==``?r:t.initial;t.done=true;t.aborted=false;t.error=false;t.fire();t.render();t.out.write(`\n`);t.close()}))()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let t=this.value.toString();if(t.length===0)return this.bell();this.value=this.parse(t=t.slice(0,-1))||``;if(this.value!==""&&this.value<this.min){this.value=this.min}this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(t,r){if(!this.valid(t))return this.bell();const i=Date.now();if(i-this.lastHit>1e3)this.typed=``;this.typed+=t;this.lastHit=i;this.color=`cyan`;if(t===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(l.down(y(this.outputError,this.out.columns)-1)+g(this.outputError,this.out.columns));this.out.write(g(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[d.symbol(this.done,this.aborted),o.bold(this.msg),d.delimiter(this.done),!this.done||!this.done&&!this.placeholder?o[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?` `:m.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(h.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore)}}t.exports=NumberPrompt},5876:(t,r,i)=>{"use strict";const o=i(4521);const a=i(2800),u=a.action;const l=i(2361);const h=i(332),p=h.beep,d=h.cursor;const m=i(9439);class Prompt extends l{constructor(t={}){super();this.firstRender=true;this.in=t.stdin||process.stdin;this.out=t.stdout||process.stdout;this.onRender=(t.onRender||(()=>void 0)).bind(this);const r=o.createInterface({input:this.in,escapeCodeTimeout:50});o.emitKeypressEvents(this.in,r);if(this.in.isTTY)this.in.setRawMode(true);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(t,r)=>{let o=u(r,i);if(o===false){this._&&this._(t,r)}else if(typeof this[o]==="function"){this[o](r)}else{this.bell()}};this.close=()=>{this.out.write(d.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);r.close();this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(p)}render(){this.onRender(m);if(this.firstRender)this.firstRender=false}}t.exports=Prompt},8856:(t,r,i)=>{"use strict";const o=i(9439);const a=i(5876);const u=i(2800),l=u.style,h=u.clear,p=u.figures,d=u.wrap,m=u.entriesToDisplay;const g=i(332),y=g.cursor;class SelectPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.hint=t.hint||"- Use arrow-keys. Return to submit.";this.warn=t.warn||"- This option is disabled";this.cursor=t.initial||0;this.choices=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),value:t&&(t.value===undefined?r:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}}));this.optionsPerPage=t.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=h("",this.out.columns);this.render()}moveCursor(t){this.cursor=t;this.value=this.choices[t].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0){this.moveCursor(this.choices.length-1)}else{this.moveCursor(this.cursor-1)}this.render()}down(){if(this.cursor===this.choices.length-1){this.moveCursor(0)}else{this.moveCursor(this.cursor+1)}this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(t,r){if(t===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(y.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();let t=m(this.cursor,this.choices.length,this.optionsPerPage),r=t.startIndex,i=t.endIndex;this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(false),this.done?this.selection.title:this.selection.disabled?o.yellow(this.warn):o.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let t=r;t<i;t++){let a,u,l="",h=this.choices[t];if(t===r&&r>0){u=p.arrowUp}else if(t===i-1&&i<this.choices.length){u=p.arrowDown}else{u=" "}if(h.disabled){a=this.cursor===t?o.gray().underline(h.title):o.strikethrough().gray(h.title);u=(this.cursor===t?o.bold().gray(p.pointer)+" ":" ")+u}else{a=this.cursor===t?o.cyan().underline(h.title):h.title;u=(this.cursor===t?o.cyan(p.pointer)+" ":" ")+u;if(h.description&&this.cursor===t){l=` - ${h.description}`;if(u.length+a.length+l.length>=this.out.columns||h.description.split(/\r?\n/).length>1){l="\n"+d(h.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${u} ${a}${o.gray(l)}\n`}}this.out.write(this.outputText)}}t.exports=SelectPrompt},5430:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var p=h.value}catch(t){i(t);return}if(h.done){r(p)}else{Promise.resolve(p).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(9439);const a=i(5876);const u=i(332),l=u.erase,h=u.cursor;const p=i(2800),d=p.style,m=p.clear,g=p.lines,y=p.figures;class TextPrompt extends a{constructor(t={}){super(t);this.transform=d.render(t.style);this.scale=this.transform.scale;this.msg=t.message;this.initial=t.initial||``;this.validator=t.validate||(()=>true);this.value=``;this.errorMsg=t.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.clear=m(``,this.out.columns);this.render()}set value(t){if(!t&&this.initial){this.placeholder=true;this.rendered=o.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(t)}this._value=t;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.fire();this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r===`string`){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){t.value=t.value||t.initial;t.cursorOffset=0;t.cursor=t.rendered.length;yield t.validate();if(t.error){t.red=true;t.fire();t.render();return}t.done=true;t.aborted=false;t.fire();t.render();t.out.write("\n");t.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(t){if(this.placeholder)return;this.cursor=this.cursor+t;this.cursorOffset+=t}_(t,r){let i=this.value.slice(0,this.cursor);let o=this.value.slice(this.cursor);this.value=`${i}${t}${o}`;this.red=false;this.cursor=this.placeholder?0:i.length+1;this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1);let r=this.value.slice(this.cursor);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtStart()){this.cursorOffset=0}else{this.cursorOffset++;this.moveCursor(-1)}this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor);let r=this.value.slice(this.cursor+1);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtEnd()){this.cursorOffset=0}else{this.cursorOffset++}this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(h.down(g(this.outputError,this.out.columns)-1)+m(this.outputError,this.out.columns));this.out.write(m(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[d.symbol(this.done,this.aborted),o.bold(this.msg),d.delimiter(this.done),this.red?o.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?" ":y.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(l.line+h.to(0)+this.outputText+h.save+this.outputError+h.restore+h.move(this.cursorOffset,0))}}t.exports=TextPrompt},9692:(t,r,i)=>{"use strict";const o=i(9439);const a=i(5876);const u=i(2800),l=u.style,h=u.clear;const p=i(332),d=p.cursor,m=p.erase;class TogglePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=!!t.initial;this.active=t.active||"on";this.inactive=t.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(t,r){if(t===" "){this.value=!this.value}else if(t==="1"){this.value=true}else if(t==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(d.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(this.done),this.value?this.inactive:o.cyan().underline(this.inactive),o.gray("/"),this.value?o.cyan().underline(this.active):this.active].join(" ");this.out.write(m.line+d.to(0)+this.outputText)}}t.exports=TogglePrompt},6598:(t,r,i)=>{"use strict";function ownKeys(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);if(r){o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))}i.push.apply(i,o)}return i}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){ownKeys(Object(i),true).forEach((function(r){_defineProperty(t,r,i[r])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(i))}else{ownKeys(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}}return t}function _defineProperty(t,r,i){if(r in t){Object.defineProperty(t,r,{value:i,enumerable:true,configurable:true,writable:true})}else{t[r]=i}return t}function _createForOfIteratorHelper(t,r){var i=typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||r&&t&&typeof t.length==="number"){if(i)t=i;var o=0;var a=function F(){};return{s:a,n:function n(){if(o>=t.length)return{done:true};return{done:false,value:t[o++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=true,l=false,h;return{s:function s(){i=i.call(t)},n:function n(){var t=i.next();u=t.done;return t},e:function e(t){l=true;h=t},f:function f(){try{if(!u&&i.return!=null)i.return()}finally{if(l)throw h}}}}function _unsupportedIterableToArray(t,r){if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor)i=t.constructor.name;if(i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(t,r)}function _arrayLikeToArray(t,r){if(r==null||r>t.length)r=t.length;for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var p=h.value}catch(t){i(t);return}if(h.done){r(p)}else{Promise.resolve(p).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(4591);const a=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator((function*(t=[],{onSubmit:r=noop,onCancel:i=noop}={}){const u={};const l=prompt._override||{};t=[].concat(t);let h,p,d,m,g,y;const A=function(){var t=_asyncToGenerator((function*(t,r,i=false){if(!i&&t.validate&&t.validate(r)!==true){return}return t.format?yield t.format(r,u):r}));return function getFormattedAnswer(r,i){return t.apply(this,arguments)}}();var b=_createForOfIteratorHelper(t),v;try{for(b.s();!(v=b.n()).done;){p=v.value;var E=p;m=E.name;g=E.type;if(typeof g==="function"){g=yield g(h,_objectSpread({},u),p);p["type"]=g}if(!g)continue;for(let t in p){if(a.includes(t))continue;let r=p[t];p[t]=typeof r==="function"?yield r(h,_objectSpread({},u),y):r}y=p;if(typeof p.message!=="string"){throw new Error("prompt message is required")}var w=p;m=w.name;g=w.type;if(o[g]===void 0){throw new Error(`prompt type (${g}) is not defined`)}if(l[p.name]!==undefined){h=yield A(p,l[p.name]);if(h!==undefined){u[m]=h;continue}}try{h=prompt._injected?getInjectedAnswer(prompt._injected,p.initial):yield o[g](p);u[m]=h=yield A(p,h,true);d=yield r(p,h,u)}catch(t){d=!(yield i(p,u))}if(d)return u}}catch(t){b.e(t)}finally{b.f()}return u}));return _prompt.apply(this,arguments)}function getInjectedAnswer(t,r){const i=t.shift();if(i instanceof Error){throw i}return i===undefined?r:i}function inject(t){prompt._injected=(prompt._injected||[]).concat(t)}function override(t){prompt._override=Object.assign({},t)}t.exports=Object.assign(prompt,{prompt:prompt,prompts:o,inject:inject,override:override})},4591:(t,r,i)=>{"use strict";const o=r;const a=i(9956);const noop=t=>t;function toPrompt(t,r,i={}){return new Promise(((o,u)=>{const l=new a[t](r);const h=i.onAbort||noop;const p=i.onSubmit||noop;const d=i.onExit||noop;l.on("state",r.onState||noop);l.on("submit",(t=>o(p(t))));l.on("exit",(t=>o(d(t))));l.on("abort",(t=>u(h(t))))}))}o.text=t=>toPrompt("TextPrompt",t);o.password=t=>{t.style="password";return o.text(t)};o.invisible=t=>{t.style="invisible";return o.text(t)};o.number=t=>toPrompt("NumberPrompt",t);o.date=t=>toPrompt("DatePrompt",t);o.confirm=t=>toPrompt("ConfirmPrompt",t);o.list=t=>{const r=t.separator||",";return toPrompt("TextPrompt",t,{onSubmit:t=>t.split(r).map((t=>t.trim()))})};o.toggle=t=>toPrompt("TogglePrompt",t);o.select=t=>toPrompt("SelectPrompt",t);o.multiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("MultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};o.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("AutocompleteMultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(t,r)=>Promise.resolve(r.filter((r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));o.autocomplete=t=>{t.suggest=t.suggest||byTitle;t.choices=[].concat(t.choices||[]);return toPrompt("AutocompletePrompt",t)}},8692:t=>{"use strict";t.exports=(t,r)=>{if(t.meta&&t.name!=="escape")return;if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c")return"abort";if(t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(r){if(t.name==="j")return"down";if(t.name==="k")return"up"}if(t.name==="return")return"submit";if(t.name==="enter")return"submit";if(t.name==="backspace")return"delete";if(t.name==="delete")return"deleteForward";if(t.name==="abort")return"abort";if(t.name==="escape")return"exit";if(t.name==="tab")return"next";if(t.name==="pagedown")return"nextPage";if(t.name==="pageup")return"prevPage";if(t.name==="home")return"home";if(t.name==="end")return"end";if(t.name==="up")return"up";if(t.name==="down")return"down";if(t.name==="right")return"right";if(t.name==="left")return"left";return false}},3513:(t,r,i)=>{"use strict";function _createForOfIteratorHelper(t,r){var i=typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||r&&t&&typeof t.length==="number"){if(i)t=i;var o=0;var a=function F(){};return{s:a,n:function n(){if(o>=t.length)return{done:true};return{done:false,value:t[o++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=true,l=false,h;return{s:function s(){i=i.call(t)},n:function n(){var t=i.next();u=t.done;return t},e:function e(t){l=true;h=t},f:function f(){try{if(!u&&i.return!=null)i.return()}finally{if(l)throw h}}}}function _unsupportedIterableToArray(t,r){if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor)i=t.constructor.name;if(i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(t,r)}function _arrayLikeToArray(t,r){if(r==null||r>t.length)r=t.length;for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}const o=i(8760);const a=i(332),u=a.erase,l=a.cursor;const width=t=>[...o(t)].length;t.exports=function(t,r){if(!r)return u.line+l.to(0);let i=0;const o=t.split(/\r?\n/);var a=_createForOfIteratorHelper(o),h;try{for(a.s();!(h=a.n()).done;){let t=h.value;i+=1+Math.floor(Math.max(width(t)-1,0)/r)}}catch(t){a.e(t)}finally{a.f()}return u.lines(i)}},393:t=>{"use strict";t.exports=(t,r,i)=>{i=i||r;let o=Math.min(r-i,t-Math.floor(i/2));if(o<0)o=0;let a=Math.min(o+i,r);return{startIndex:o,endIndex:a}}},6217:t=>{"use strict";const r={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const i={arrowUp:r.arrowUp,arrowDown:r.arrowDown,arrowLeft:r.arrowLeft,arrowRight:r.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const o=process.platform==="win32"?i:r;t.exports=o},2800:(t,r,i)=>{"use strict";t.exports={action:i(8692),clear:i(3513),style:i(5012),strip:i(8760),figures:i(6217),lines:i(1688),wrap:i(1705),entriesToDisplay:i(393)}},1688:(t,r,i)=>{"use strict";const o=i(8760);t.exports=function(t,r){let i=String(o(t)||"").split(/\r?\n/);if(!r)return i.length;return i.map((t=>Math.ceil(t.length/r))).reduce(((t,r)=>t+r))}},8760:t=>{"use strict";t.exports=t=>{const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const i=new RegExp(r,"g");return typeof t==="string"?t.replace(i,""):t}},5012:(t,r,i)=>{"use strict";const o=i(9439);const a=i(6217);const u=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}});const render=t=>u[t]||u.default;const l=Object.freeze({aborted:o.red(a.cross),done:o.green(a.tick),exited:o.yellow(a.cross),default:o.cyan("?")});const symbol=(t,r,i)=>r?l.aborted:i?l.exited:t?l.done:l.default;const delimiter=t=>o.gray(t?a.ellipsis:a.pointerSmall);const item=(t,r)=>o.gray(t?r?a.pointerSmall:"+":a.line);t.exports={styles:u,render:render,symbols:l,symbol:symbol,delimiter:delimiter,item:item}},1705:t=>{"use strict";t.exports=(t,r={})=>{const i=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"";const o=r.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,r)=>{if(r.length+i.length>=o||t[t.length-1].length+r.length+1<o)t[t.length-1]+=` ${r}`;else t.push(`${i}${r}`);return t}),[i]).join("\n"))).join("\n")}},1112:(t,r,i)=>{function isNodeLT(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let r=0,i=process.versions.node.split(".").map(Number);for(;r<t.length;r++){if(i[r]>t[r])return false;if(t[r]>i[r])return true}return false}t.exports=isNodeLT("8.6.0")?i(6598):i(9590)},8994:t=>{"use strict";class DatePart{constructor({token:t,date:r,parts:i,locales:o}){this.token=t;this.date=r||new Date;this.parts=i||[this];this.locales=o||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,i)=>i>t&&r instanceof DatePart))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,i)=>i>r&&t instanceof DatePart))}toString(){return String(this.date)}}t.exports=DatePart},5513:(t,r,i)=>{"use strict";const o=i(8994);const pos=t=>{t=t%10;return t===1?"st":t===2?"nd":t===3?"rd":"th"};class Day extends o{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate();let r=this.date.getDay();return this.token==="DD"?String(t).padStart(2,"0"):this.token==="Do"?t+pos(t):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:t}}t.exports=Day},9270:(t,r,i)=>{"use strict";const o=i(8994);class Hours extends o{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();if(/h/.test(this.token))t=t%12||12;return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Hours},1190:(t,r,i)=>{"use strict";t.exports={DatePart:i(8994),Meridiem:i(8135),Day:i(5513),Hours:i(9270),Milliseconds:i(2397),Minutes:i(9246),Month:i(5763),Seconds:i(5579),Year:i(4191)}},8135:(t,r,i)=>{"use strict";const o=i(8994);class Meridiem extends o{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}t.exports=Meridiem},2397:(t,r,i)=>{"use strict";const o=i(8994);class Milliseconds extends o{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}t.exports=Milliseconds},9246:(t,r,i)=>{"use strict";const o=i(8994);class Minutes extends o{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Minutes},5763:(t,r,i)=>{"use strict";const o=i(8994);class Month extends o{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1;this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth();let r=this.token.length;return r===2?String(t+1).padStart(2,"0"):r===3?this.locales.monthsShort[t]:r===4?this.locales.months[t]:String(t+1)}}t.exports=Month},5579:(t,r,i)=>{"use strict";const o=i(8994);class Seconds extends o{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Seconds},4191:(t,r,i)=>{"use strict";const o=i(8994);class Year extends o{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?t.substr(-2):t}}t.exports=Year},514:(t,r,i)=>{"use strict";const o=i(9439);const a=i(9126);const{erase:u,cursor:l}=i(332);const{style:h,clear:p,figures:d,wrap:m,entriesToDisplay:g}=i(9807);const getVal=(t,r)=>t[r]&&(t[r].value||t[r].title||t[r]);const getTitle=(t,r)=>t[r]&&(t[r].title||t[r].value||t[r]);const getIndex=(t,r)=>{const i=t.findIndex((t=>t.value===r||t.title===r));return i>-1?i:undefined};class AutocompletePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.suggest=t.suggest;this.choices=t.choices;this.initial=typeof t.initial==="number"?t.initial:getIndex(t.choices,t.initial);this.select=this.initial||t.cursor||0;this.i18n={noMatches:t.noMatches||"no matches found"};this.fallback=t.fallback||this.initial;this.clearFirst=t.clearFirst||false;this.suggestions=[];this.input="";this.limit=t.limit||10;this.cursor=0;this.transform=h.render(t.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=p("",this.out.columns);this.complete(this.render);this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;if(typeof this._fb==="number")t=this.choices[this._fb];else if(typeof this._fb==="string")t={title:this._fb};return t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t;if(this.suggestions.length>0)this.value=getVal(this.suggestions,t);else this.value=this.fallback.value;this.fire()}async complete(t){const r=this.completing=this.suggest(this.input,this.choices);const i=await r;if(this.completing!==r)return;this.suggestions=i.map(((t,r,i)=>({title:getTitle(i,r),value:getVal(i,r),description:t.description})));this.completing=false;const o=Math.max(i.length-1,0);this.moveSelect(Math.min(o,this.select));t&&t()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}exit(){if(this.clearFirst&&this.input.length>0){this.reset()}else{this.done=this.exited=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}abort(){this.done=this.aborted=true;this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){let i=this.input.slice(0,this.cursor);let o=this.input.slice(this.cursor);this.input=`${i}${t}${o}`;this.cursor=i.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let t=this.input.slice(0,this.cursor-1);let r=this.input.slice(this.cursor);this.input=`${t}${r}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor);let r=this.input.slice(this.cursor+1);this.input=`${t}${r}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select===0){this.moveSelect(this.suggestions.length-1)}else{this.moveSelect(this.select-1)}this.render()}down(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else{this.moveSelect(this.select+1)}this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1));this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0));this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}renderOption(t,r,i,a){let u;let l=i?d.arrowUp:a?d.arrowDown:" ";let h=r?o.cyan().underline(t.title):t.title;l=(r?o.cyan(d.pointer)+" ":" ")+l;if(t.description){u=` - ${t.description}`;if(l.length+h.length+u.length>=this.out.columns||t.description.split(/\r?\n/).length>1){u="\n"+m(t.description,{margin:3,width:this.out.columns})}}return l+" "+h+o.gray(u||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(p(this.outputText,this.out.columns));super.render();let{startIndex:t,endIndex:r}=g(this.select,this.choices.length,this.limit);this.outputText=[h.symbol(this.done,this.aborted,this.exited),o.bold(this.msg),h.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const i=this.suggestions.slice(t,r).map(((i,o)=>this.renderOption(i,this.select===o+t,o===0&&t>0,o+t===r-1&&r<this.choices.length))).join("\n");this.outputText+=`\n`+(i||o.gray(this.fallback.title))}this.out.write(u.line+l.to(0)+this.outputText)}}t.exports=AutocompletePrompt},7685:(t,r,i)=>{"use strict";const o=i(9439);const{cursor:a}=i(332);const u=i(92);const{clear:l,style:h,figures:p}=i(9807);class AutocompleteMultiselectPrompt extends u{constructor(t={}){t.overrideRender=true;super(t);this.inputValue="";this.clear=l("",this.out.columns);this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>{if(this.inputValue){if(typeof t.title==="string"){if(t.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof t.value==="string"){if(t.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const r=this.filteredOptions.findIndex((r=>r===t));this.cursor=r<0?0:r;this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t;this.updateFilteredOptions()}_(t,r){if(t===" "){this.handleSpaceToggle()}else{this.handleInputChange(t)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${p.arrowUp}/${p.arrowDown}: Highlight option\n ${p.arrowLeft}/${p.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:o.gray("Enter something to filter")}\n`}renderOption(t,r,i){let a;if(r.disabled)a=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title);else a=t===i?o.cyan().underline(r.title):r.title;return(r.selected?o.green(p.radioOn):p.radioOff)+" "+a}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();let t=[h.symbol(this.done,this.aborted),o.bold(this.msg),h.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+t);this.clear=l(t,this.out.columns)}}t.exports=AutocompleteMultiselectPrompt},3037:(t,r,i)=>{const o=i(9439);const a=i(9126);const{style:u,clear:l}=i(9807);const{erase:h,cursor:p}=i(332);class ConfirmPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=t.initial;this.initialValue=!!t.initial;this.yesMsg=t.yes||"yes";this.yesOption=t.yesOption||"(Y/n)";this.noMsg=t.no||"no";this.noOption=t.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){if(t.toLowerCase()==="y"){this.value=true;return this.submit()}if(t.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(p.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:o.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(h.line+p.to(0)+this.outputText)}}t.exports=ConfirmPrompt},5048:(t,r,i)=>{"use strict";const o=i(9439);const a=i(9126);const{style:u,clear:l,figures:h}=i(9807);const{erase:p,cursor:d}=i(332);const{DatePart:m,Meridiem:g,Day:y,Hours:A,Milliseconds:b,Minutes:v,Month:E,Seconds:w,Year:_}=i(1190);const S=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const C={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new y(t),3:t=>new E(t),4:t=>new _(t),5:t=>new g(t),6:t=>new A(t),7:t=>new v(t),8:t=>new w(t),9:t=>new b(t)};const D={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.cursor=0;this.typed="";this.locales=Object.assign(D,t.locales);this._date=t.initial||new Date;this.errorMsg=t.error||"Please Enter A Valid Value";this.validator=t.validate||(()=>true);this.mask=t.mask||"YYYY-MM-DD HH:mm:ss";this.clear=l("",this.out.columns);this.render()}get value(){return this.date}get date(){return this._date}set date(t){if(t)this._date.setTime(t.getTime())}set mask(t){let r;this.parts=[];while(r=S.exec(t)){let t=r.shift();let i=r.findIndex((t=>t!=null));this.parts.push(i in C?C[i]({token:r[i]||t,date:this.date,parts:this.parts,locales:this.locales}):r[i]||t)}let i=this.parts.reduce(((t,r)=>{if(typeof r==="string"&&typeof t[t.length-1]==="string")t[t.length-1]+=r;else t.push(r);return t}),[]);this.parts.splice(0);this.parts.push(...i);this.reset()}moveCursor(t){this.typed="";this.cursor=t;this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof m)));this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let t=await this.validator(this.value);if(typeof t==="string"){this.errorMsg=t;t=false}this.error=!t}async submit(){await this.validate();if(this.error){this.color="red";this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let t=this.parts[this.cursor].prev();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}right(){let t=this.parts[this.cursor].next();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof m)));this.render()}_(t){if(/\d/.test(t)){this.typed+=t;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(d.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(false),this.parts.reduce(((t,r,i)=>t.concat(i===this.cursor&&!this.done?o.cyan().underline(r.toString()):r)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((t,r,i)=>t+`\n${i?` `:h.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(p.line+d.to(0)+this.outputText)}}t.exports=DatePrompt},6529:(t,r,i)=>{"use strict";t.exports={TextPrompt:i(1551),SelectPrompt:i(6515),TogglePrompt:i(181),DatePrompt:i(5048),NumberPrompt:i(3686),MultiselectPrompt:i(92),AutocompletePrompt:i(514),AutocompleteMultiselectPrompt:i(7685),ConfirmPrompt:i(3037)}},92:(t,r,i)=>{"use strict";const o=i(9439);const{cursor:a}=i(332);const u=i(9126);const{clear:l,figures:h,style:p,wrap:d,entriesToDisplay:m}=i(9807);class MultiselectPrompt extends u{constructor(t={}){super(t);this.msg=t.message;this.cursor=t.cursor||0;this.scrollIndex=t.cursor||0;this.hint=t.hint||"";this.warn=t.warn||"- This option is disabled -";this.minSelected=t.min;this.showMinError=false;this.maxChoices=t.max;this.instructions=t.instructions;this.optionsPerPage=t.optionsPerPage||10;this.value=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(t.value===undefined?r:t.value),selected:t&&t.selected,disabled:t&&t.disabled}}));this.clear=l("",this.out.columns);if(!t.overrideRender){this.render()}}reset(){this.value.map((t=>!t.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const t=this.value.filter((t=>t.selected));if(this.minSelected&&t.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((r=>r.selected=t));this.render()}_(t,r){if(t===" "){this.handleSpaceToggle()}else if(t==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+` ${h.arrowUp}/${h.arrowDown}: Highlight option\n`+` ${h.arrowLeft}/${h.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(t,r,i,a){const u=(r.selected?o.green(h.radioOn):h.radioOff)+" "+a+" ";let l,p;if(r.disabled){l=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title)}else{l=t===i?o.cyan().underline(r.title):r.title;if(t===i&&r.description){p=` - ${r.description}`;if(u.length+l.length+p.length>=this.out.columns||r.description.split(/\r?\n/).length>1){p="\n"+d(r.description,{margin:u.length,width:this.out.columns})}}}return u+l+o.gray(p||"")}paginateOptions(t){if(t.length===0){return o.red("No matches for this query.")}let{startIndex:r,endIndex:i}=m(this.cursor,t.length,this.optionsPerPage);let a,u=[];for(let o=r;o<i;o++){if(o===r&&r>0){a=h.arrowUp}else if(o===i-1&&i<t.length){a=h.arrowDown}else{a=" "}u.push(this.renderOption(this.cursor,t[o],o,a))}return"\n"+u.join("\n")}renderOptions(t){if(!this.done){return this.paginateOptions(t)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();let t=[p.symbol(this.done,this.aborted),o.bold(this.msg),p.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.value);this.out.write(this.clear+t);this.clear=l(t,this.out.columns)}}t.exports=MultiselectPrompt},3686:(t,r,i)=>{const o=i(9439);const a=i(9126);const{cursor:u,erase:l}=i(332);const{style:h,figures:p,clear:d,lines:m}=i(9807);const g=/[0-9]/;const isDef=t=>t!==undefined;const round=(t,r)=>{let i=Math.pow(10,r);return Math.round(t*i)/i};class NumberPrompt extends a{constructor(t={}){super(t);this.transform=h.render(t.style);this.msg=t.message;this.initial=isDef(t.initial)?t.initial:"";this.float=!!t.float;this.round=t.round||2;this.inc=t.increment||1;this.min=isDef(t.min)?t.min:-Infinity;this.max=isDef(t.max)?t.max:Infinity;this.errorMsg=t.error||`Please Enter A Valid Value`;this.validator=t.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(t){if(!t&&t!==0){this.placeholder=true;this.rendered=o.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(t,this.round)}`);this._value=round(t,this.round)}this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return t===`-`||t===`.`&&this.float||g.test(t)}reset(){this.typed=``;this.value=``;this.fire();this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=t!==``?t:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let t=await this.validator(this.value);if(typeof t===`string`){this.errorMsg=t;t=false}this.error=!t}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let t=this.value;this.value=t!==``?t:this.initial;this.done=true;this.aborted=false;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let t=this.value.toString();if(t.length===0)return this.bell();this.value=this.parse(t=t.slice(0,-1))||``;if(this.value!==""&&this.value<this.min){this.value=this.min}this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(t,r){if(!this.valid(t))return this.bell();const i=Date.now();if(i-this.lastHit>1e3)this.typed=``;this.typed+=t;this.lastHit=i;this.color=`cyan`;if(t===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(u.down(m(this.outputError,this.out.columns)-1)+d(this.outputError,this.out.columns));this.out.write(d(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[h.symbol(this.done,this.aborted),o.bold(this.msg),h.delimiter(this.done),!this.done||!this.done&&!this.placeholder?o[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?` `:p.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(l.line+u.to(0)+this.outputText+u.save+this.outputError+u.restore)}}t.exports=NumberPrompt},9126:(t,r,i)=>{"use strict";const o=i(4521);const{action:a}=i(9807);const u=i(2361);const{beep:l,cursor:h}=i(332);const p=i(9439);class Prompt extends u{constructor(t={}){super();this.firstRender=true;this.in=t.stdin||process.stdin;this.out=t.stdout||process.stdout;this.onRender=(t.onRender||(()=>void 0)).bind(this);const r=o.createInterface({input:this.in,escapeCodeTimeout:50});o.emitKeypressEvents(this.in,r);if(this.in.isTTY)this.in.setRawMode(true);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(t,r)=>{let o=a(r,i);if(o===false){this._&&this._(t,r)}else if(typeof this[o]==="function"){this[o](r)}else{this.bell()}};this.close=()=>{this.out.write(h.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);r.close();this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(l)}render(){this.onRender(p);if(this.firstRender)this.firstRender=false}}t.exports=Prompt},6515:(t,r,i)=>{"use strict";const o=i(9439);const a=i(9126);const{style:u,clear:l,figures:h,wrap:p,entriesToDisplay:d}=i(9807);const{cursor:m}=i(332);class SelectPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.hint=t.hint||"- Use arrow-keys. Return to submit.";this.warn=t.warn||"- This option is disabled";this.cursor=t.initial||0;this.choices=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),value:t&&(t.value===undefined?r:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}}));this.optionsPerPage=t.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=l("",this.out.columns);this.render()}moveCursor(t){this.cursor=t;this.value=this.choices[t].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0){this.moveCursor(this.choices.length-1)}else{this.moveCursor(this.cursor-1)}this.render()}down(){if(this.cursor===this.choices.length-1){this.moveCursor(0)}else{this.moveCursor(this.cursor+1)}this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(t,r){if(t===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(m.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();let{startIndex:t,endIndex:r}=d(this.cursor,this.choices.length,this.optionsPerPage);this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(false),this.done?this.selection.title:this.selection.disabled?o.yellow(this.warn):o.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let i=t;i<r;i++){let a,u,l="",d=this.choices[i];if(i===t&&t>0){u=h.arrowUp}else if(i===r-1&&r<this.choices.length){u=h.arrowDown}else{u=" "}if(d.disabled){a=this.cursor===i?o.gray().underline(d.title):o.strikethrough().gray(d.title);u=(this.cursor===i?o.bold().gray(h.pointer)+" ":" ")+u}else{a=this.cursor===i?o.cyan().underline(d.title):d.title;u=(this.cursor===i?o.cyan(h.pointer)+" ":" ")+u;if(d.description&&this.cursor===i){l=` - ${d.description}`;if(u.length+a.length+l.length>=this.out.columns||d.description.split(/\r?\n/).length>1){l="\n"+p(d.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${u} ${a}${o.gray(l)}\n`}}this.out.write(this.outputText)}}t.exports=SelectPrompt},1551:(t,r,i)=>{const o=i(9439);const a=i(9126);const{erase:u,cursor:l}=i(332);const{style:h,clear:p,lines:d,figures:m}=i(9807);class TextPrompt extends a{constructor(t={}){super(t);this.transform=h.render(t.style);this.scale=this.transform.scale;this.msg=t.message;this.initial=t.initial||``;this.validator=t.validate||(()=>true);this.value=``;this.errorMsg=t.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.clear=p(``,this.out.columns);this.render()}set value(t){if(!t&&this.initial){this.placeholder=true;this.rendered=o.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(t)}this._value=t;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.fire();this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let t=await this.validator(this.value);if(typeof t===`string`){this.errorMsg=t;t=false}this.error=!t}async submit(){this.value=this.value||this.initial;this.cursorOffset=0;this.cursor=this.rendered.length;await this.validate();if(this.error){this.red=true;this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(t){if(this.placeholder)return;this.cursor=this.cursor+t;this.cursorOffset+=t}_(t,r){let i=this.value.slice(0,this.cursor);let o=this.value.slice(this.cursor);this.value=`${i}${t}${o}`;this.red=false;this.cursor=this.placeholder?0:i.length+1;this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1);let r=this.value.slice(this.cursor);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtStart()){this.cursorOffset=0}else{this.cursorOffset++;this.moveCursor(-1)}this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor);let r=this.value.slice(this.cursor+1);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtEnd()){this.cursorOffset=0}else{this.cursorOffset++}this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(l.down(d(this.outputError,this.out.columns)-1)+p(this.outputError,this.out.columns));this.out.write(p(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[h.symbol(this.done,this.aborted),o.bold(this.msg),h.delimiter(this.done),this.red?o.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?" ":m.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(u.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore+l.move(this.cursorOffset,0))}}t.exports=TextPrompt},181:(t,r,i)=>{const o=i(9439);const a=i(9126);const{style:u,clear:l}=i(9807);const{cursor:h,erase:p}=i(332);class TogglePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=!!t.initial;this.active=t.active||"on";this.inactive=t.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(t,r){if(t===" "){this.value=!this.value}else if(t==="1"){this.value=true}else if(t==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(this.done),this.value?this.inactive:o.cyan().underline(this.inactive),o.gray("/"),this.value?o.cyan().underline(this.active):this.active].join(" ");this.out.write(p.line+h.to(0)+this.outputText)}}t.exports=TogglePrompt},9590:(t,r,i)=>{"use strict";const o=i(4450);const a=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};async function prompt(t=[],{onSubmit:r=noop,onCancel:i=noop}={}){const u={};const l=prompt._override||{};t=[].concat(t);let h,p,d,m,g,y;const getFormattedAnswer=async(t,r,i=false)=>{if(!i&&t.validate&&t.validate(r)!==true){return}return t.format?await t.format(r,u):r};for(p of t){({name:m,type:g}=p);if(typeof g==="function"){g=await g(h,{...u},p);p["type"]=g}if(!g)continue;for(let t in p){if(a.includes(t))continue;let r=p[t];p[t]=typeof r==="function"?await r(h,{...u},y):r}y=p;if(typeof p.message!=="string"){throw new Error("prompt message is required")}({name:m,type:g}=p);if(o[g]===void 0){throw new Error(`prompt type (${g}) is not defined`)}if(l[p.name]!==undefined){h=await getFormattedAnswer(p,l[p.name]);if(h!==undefined){u[m]=h;continue}}try{h=prompt._injected?getInjectedAnswer(prompt._injected,p.initial):await o[g](p);u[m]=h=await getFormattedAnswer(p,h,true);d=await r(p,h,u)}catch(t){d=!await i(p,u)}if(d)return u}return u}function getInjectedAnswer(t,r){const i=t.shift();if(i instanceof Error){throw i}return i===undefined?r:i}function inject(t){prompt._injected=(prompt._injected||[]).concat(t)}function override(t){prompt._override=Object.assign({},t)}t.exports=Object.assign(prompt,{prompt:prompt,prompts:o,inject:inject,override:override})},4450:(t,r,i)=>{"use strict";const o=r;const a=i(6529);const noop=t=>t;function toPrompt(t,r,i={}){return new Promise(((o,u)=>{const l=new a[t](r);const h=i.onAbort||noop;const p=i.onSubmit||noop;const d=i.onExit||noop;l.on("state",r.onState||noop);l.on("submit",(t=>o(p(t))));l.on("exit",(t=>o(d(t))));l.on("abort",(t=>u(h(t))))}))}o.text=t=>toPrompt("TextPrompt",t);o.password=t=>{t.style="password";return o.text(t)};o.invisible=t=>{t.style="invisible";return o.text(t)};o.number=t=>toPrompt("NumberPrompt",t);o.date=t=>toPrompt("DatePrompt",t);o.confirm=t=>toPrompt("ConfirmPrompt",t);o.list=t=>{const r=t.separator||",";return toPrompt("TextPrompt",t,{onSubmit:t=>t.split(r).map((t=>t.trim()))})};o.toggle=t=>toPrompt("TogglePrompt",t);o.select=t=>toPrompt("SelectPrompt",t);o.multiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("MultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};o.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("AutocompleteMultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(t,r)=>Promise.resolve(r.filter((r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));o.autocomplete=t=>{t.suggest=t.suggest||byTitle;t.choices=[].concat(t.choices||[]);return toPrompt("AutocompletePrompt",t)}},8573:t=>{"use strict";t.exports=(t,r)=>{if(t.meta&&t.name!=="escape")return;if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c")return"abort";if(t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(r){if(t.name==="j")return"down";if(t.name==="k")return"up"}if(t.name==="return")return"submit";if(t.name==="enter")return"submit";if(t.name==="backspace")return"delete";if(t.name==="delete")return"deleteForward";if(t.name==="abort")return"abort";if(t.name==="escape")return"exit";if(t.name==="tab")return"next";if(t.name==="pagedown")return"nextPage";if(t.name==="pageup")return"prevPage";if(t.name==="home")return"home";if(t.name==="end")return"end";if(t.name==="up")return"up";if(t.name==="down")return"down";if(t.name==="right")return"right";if(t.name==="left")return"left";return false}},6747:(t,r,i)=>{"use strict";const o=i(2714);const{erase:a,cursor:u}=i(332);const width=t=>[...o(t)].length;t.exports=function(t,r){if(!r)return a.line+u.to(0);let i=0;const o=t.split(/\r?\n/);for(let t of o){i+=1+Math.floor(Math.max(width(t)-1,0)/r)}return a.lines(i)}},3297:t=>{"use strict";t.exports=(t,r,i)=>{i=i||r;let o=Math.min(r-i,t-Math.floor(i/2));if(o<0)o=0;let a=Math.min(o+i,r);return{startIndex:o,endIndex:a}}},3034:t=>{"use strict";const r={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const i={arrowUp:r.arrowUp,arrowDown:r.arrowDown,arrowLeft:r.arrowLeft,arrowRight:r.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const o=process.platform==="win32"?i:r;t.exports=o},9807:(t,r,i)=>{"use strict";t.exports={action:i(8573),clear:i(6747),style:i(7357),strip:i(2714),figures:i(3034),lines:i(4413),wrap:i(2492),entriesToDisplay:i(3297)}},4413:(t,r,i)=>{"use strict";const o=i(2714);t.exports=function(t,r){let i=String(o(t)||"").split(/\r?\n/);if(!r)return i.length;return i.map((t=>Math.ceil(t.length/r))).reduce(((t,r)=>t+r))}},2714:t=>{"use strict";t.exports=t=>{const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const i=new RegExp(r,"g");return typeof t==="string"?t.replace(i,""):t}},7357:(t,r,i)=>{"use strict";const o=i(9439);const a=i(3034);const u=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}});const render=t=>u[t]||u.default;const l=Object.freeze({aborted:o.red(a.cross),done:o.green(a.tick),exited:o.yellow(a.cross),default:o.cyan("?")});const symbol=(t,r,i)=>r?l.aborted:i?l.exited:t?l.done:l.default;const delimiter=t=>o.gray(t?a.ellipsis:a.pointerSmall);const item=(t,r)=>o.gray(t?r?a.pointerSmall:"+":a.line);t.exports={styles:u,render:render,symbols:l,symbol:symbol,delimiter:delimiter,item:item}},2492:t=>{"use strict";t.exports=(t,r={})=>{const i=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"";const o=r.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,r)=>{if(r.length+i.length>=o||t[t.length-1].length+r.length+1<o)t[t.length-1]+=` ${r}`;else t.push(`${i}${r}`);return t}),[i]).join("\n"))).join("\n")}},3135:t=>{
60
+ t.exports=function isExtglob(t){if(typeof t!=="string"||t===""){return false}var r;while(r=/(\\).|([@?!+*]\(.*\))/g.exec(t)){if(r[2])return true;t=t.slice(r.index+r[0].length)}return false}},228:(t,r,i)=>{var o=i(7147);var a;if(process.platform==="win32"||global.TESTING_WINDOWS){a=i(7214)}else{a=i(5211)}t.exports=isexe;isexe.sync=sync;function isexe(t,r,i){if(typeof r==="function"){i=r;r={}}if(!i){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(i,o){isexe(t,r||{},(function(t,r){if(t){o(t)}else{i(r)}}))}))}a(t,r||{},(function(t,o){if(t){if(t.code==="EACCES"||r&&r.ignoreErrors){t=null;o=false}}i(t,o)}))}function sync(t,r){try{return a.sync(t,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES"){return false}else{throw t}}}},5211:(t,r,i)=>{t.exports=isexe;isexe.sync=sync;var o=i(7147);function isexe(t,r,i){o.stat(t,(function(t,o){i(t,t?false:checkStat(o,r))}))}function sync(t,r){return checkStat(o.statSync(t),r)}function checkStat(t,r){return t.isFile()&&checkMode(t,r)}function checkMode(t,r){var i=t.mode;var o=t.uid;var a=t.gid;var u=r.uid!==undefined?r.uid:process.getuid&&process.getuid();var l=r.gid!==undefined?r.gid:process.getgid&&process.getgid();var h=parseInt("100",8);var p=parseInt("010",8);var d=parseInt("001",8);var m=h|p;var g=i&d||i&p&&a===l||i&h&&o===u||i&m&&u===0;return g}},7214:(t,r,i)=>{t.exports=isexe;isexe.sync=sync;var o=i(7147);function checkPathExt(t,r){var i=r.pathExt!==undefined?r.pathExt:process.env.PATHEXT;if(!i){return true}i=i.split(";");if(i.indexOf("")!==-1){return true}for(var o=0;o<i.length;o++){var a=i[o].toLowerCase();if(a&&t.substr(-a.length).toLowerCase()===a){return true}}return false}function checkStat(t,r,i){if(!t.isSymbolicLink()&&!t.isFile()){return false}return checkPathExt(r,i)}function isexe(t,r,i){o.stat(t,(function(o,a){i(o,o?false:checkStat(a,t,r))}))}function sync(t,r){return checkStat(o.statSync(t),t,r)}},8035:(t,r)=>{Object.defineProperty(r,"__esModule",{value:true});r["default"]=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;r.matchToToken=function(t){var r={type:"invalid",value:t[0],closed:undefined};if(t[1])r.type="string",r.closed=!!(t[3]||t[4]);else if(t[5])r.type="comment";else if(t[6])r.type="comment",r.closed=!!t[7];else if(t[8])r.type="regex";else if(t[9])r.type="number";else if(t[10])r.type="name";else if(t[11])r.type="punctuator";else if(t[12])r.type="whitespace";return r}},5130:(t,r,i)=>{const o=i(3210);const a=i(5627);const u={parse:o,stringify:a};t.exports=u},3210:(t,r,i)=>{const o=i(3009);let a;let u;let l;let h;let p;let d;let m;let g;let y;t.exports=function parse(t,r){a=String(t);u="start";l=[];h=0;p=1;d=0;m=undefined;g=undefined;y=undefined;do{m=lex();S[u]()}while(m.type!=="eof");if(typeof r==="function"){return internalize({"":y},"",r)}return y};function internalize(t,r,i){const o=t[r];if(o!=null&&typeof o==="object"){if(Array.isArray(o)){for(let t=0;t<o.length;t++){const r=String(t);const a=internalize(o,r,i);if(a===undefined){delete o[r]}else{Object.defineProperty(o,r,{value:a,writable:true,enumerable:true,configurable:true})}}}else{for(const t in o){const r=internalize(o,t,i);if(r===undefined){delete o[t]}else{Object.defineProperty(o,t,{value:r,writable:true,enumerable:true,configurable:true})}}}}return i.call(t,r,o)}let A;let b;let v;let w;let E;function lex(){A="default";b="";v=false;w=1;for(;;){E=peek();const t=_[A]();if(t){return t}}}function peek(){if(a[h]){return String.fromCodePoint(a.codePointAt(h))}}function read(){const t=peek();if(t==="\n"){p++;d=0}else if(t){d+=t.length}else{d++}if(t){h+=t.length}return t}const _={default(){switch(E){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":read();return;case"/":read();A="comment";return;case undefined:read();return newToken("eof")}if(o.isSpaceSeparator(E)){read();return}return _[u]()},comment(){switch(E){case"*":read();A="multiLineComment";return;case"/":read();A="singleLineComment";return}throw invalidChar(read())},multiLineComment(){switch(E){case"*":read();A="multiLineCommentAsterisk";return;case undefined:throw invalidChar(read())}read()},multiLineCommentAsterisk(){switch(E){case"*":read();return;case"/":read();A="default";return;case undefined:throw invalidChar(read())}read();A="multiLineComment"},singleLineComment(){switch(E){case"\n":case"\r":case"\u2028":case"\u2029":read();A="default";return;case undefined:read();return newToken("eof")}read()},value(){switch(E){case"{":case"[":return newToken("punctuator",read());case"n":read();literal("ull");return newToken("null",null);case"t":read();literal("rue");return newToken("boolean",true);case"f":read();literal("alse");return newToken("boolean",false);case"-":case"+":if(read()==="-"){w=-1}A="sign";return;case".":b=read();A="decimalPointLeading";return;case"0":b=read();A="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":b=read();A="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",Infinity);case"N":read();literal("aN");return newToken("numeric",NaN);case'"':case"'":v=read()==='"';b="";A="string";return}throw invalidChar(read())},identifierNameStartEscape(){if(E!=="u"){throw invalidChar(read())}read();const t=unicodeEscape();switch(t){case"$":case"_":break;default:if(!o.isIdStartChar(t)){throw invalidIdentifier()}break}b+=t;A="identifierName"},identifierName(){switch(E){case"$":case"_":case"‌":case"‍":b+=read();return;case"\\":read();A="identifierNameEscape";return}if(o.isIdContinueChar(E)){b+=read();return}return newToken("identifier",b)},identifierNameEscape(){if(E!=="u"){throw invalidChar(read())}read();const t=unicodeEscape();switch(t){case"$":case"_":case"‌":case"‍":break;default:if(!o.isIdContinueChar(t)){throw invalidIdentifier()}break}b+=t;A="identifierName"},sign(){switch(E){case".":b=read();A="decimalPointLeading";return;case"0":b=read();A="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":b=read();A="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",w*Infinity);case"N":read();literal("aN");return newToken("numeric",NaN)}throw invalidChar(read())},zero(){switch(E){case".":b+=read();A="decimalPoint";return;case"e":case"E":b+=read();A="decimalExponent";return;case"x":case"X":b+=read();A="hexadecimal";return}return newToken("numeric",w*0)},decimalInteger(){switch(E){case".":b+=read();A="decimalPoint";return;case"e":case"E":b+=read();A="decimalExponent";return}if(o.isDigit(E)){b+=read();return}return newToken("numeric",w*Number(b))},decimalPointLeading(){if(o.isDigit(E)){b+=read();A="decimalFraction";return}throw invalidChar(read())},decimalPoint(){switch(E){case"e":case"E":b+=read();A="decimalExponent";return}if(o.isDigit(E)){b+=read();A="decimalFraction";return}return newToken("numeric",w*Number(b))},decimalFraction(){switch(E){case"e":case"E":b+=read();A="decimalExponent";return}if(o.isDigit(E)){b+=read();return}return newToken("numeric",w*Number(b))},decimalExponent(){switch(E){case"+":case"-":b+=read();A="decimalExponentSign";return}if(o.isDigit(E)){b+=read();A="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentSign(){if(o.isDigit(E)){b+=read();A="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentInteger(){if(o.isDigit(E)){b+=read();return}return newToken("numeric",w*Number(b))},hexadecimal(){if(o.isHexDigit(E)){b+=read();A="hexadecimalInteger";return}throw invalidChar(read())},hexadecimalInteger(){if(o.isHexDigit(E)){b+=read();return}return newToken("numeric",w*Number(b))},string(){switch(E){case"\\":read();b+=escape();return;case'"':if(v){read();return newToken("string",b)}b+=read();return;case"'":if(!v){read();return newToken("string",b)}b+=read();return;case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":separatorChar(E);break;case undefined:throw invalidChar(read())}b+=read()},start(){switch(E){case"{":case"[":return newToken("punctuator",read())}A="value"},beforePropertyName(){switch(E){case"$":case"_":b=read();A="identifierName";return;case"\\":read();A="identifierNameStartEscape";return;case"}":return newToken("punctuator",read());case'"':case"'":v=read()==='"';A="string";return}if(o.isIdStartChar(E)){b+=read();A="identifierName";return}throw invalidChar(read())},afterPropertyName(){if(E===":"){return newToken("punctuator",read())}throw invalidChar(read())},beforePropertyValue(){A="value"},afterPropertyValue(){switch(E){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue(){if(E==="]"){return newToken("punctuator",read())}A="value"},afterArrayValue(){switch(E){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end(){throw invalidChar(read())}};function newToken(t,r){return{type:t,value:r,line:p,column:d}}function literal(t){for(const r of t){const t=peek();if(t!==r){throw invalidChar(read())}read()}}function escape(){const t=peek();switch(t){case"b":read();return"\b";case"f":read();return"\f";case"n":read();return"\n";case"r":read();return"\r";case"t":read();return"\t";case"v":read();return"\v";case"0":read();if(o.isDigit(peek())){throw invalidChar(read())}return"\0";case"x":read();return hexEscape();case"u":read();return unicodeEscape();case"\n":case"\u2028":case"\u2029":read();return"";case"\r":read();if(peek()==="\n"){read()}return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw invalidChar(read());case undefined:throw invalidChar(read())}return read()}function hexEscape(){let t="";let r=peek();if(!o.isHexDigit(r)){throw invalidChar(read())}t+=read();r=peek();if(!o.isHexDigit(r)){throw invalidChar(read())}t+=read();return String.fromCodePoint(parseInt(t,16))}function unicodeEscape(){let t="";let r=4;while(r-- >0){const r=peek();if(!o.isHexDigit(r)){throw invalidChar(read())}t+=read()}return String.fromCodePoint(parseInt(t,16))}const S={start(){if(m.type==="eof"){throw invalidEOF()}push()},beforePropertyName(){switch(m.type){case"identifier":case"string":g=m.value;u="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName(){if(m.type==="eof"){throw invalidEOF()}u="beforePropertyValue"},beforePropertyValue(){if(m.type==="eof"){throw invalidEOF()}push()},beforeArrayValue(){if(m.type==="eof"){throw invalidEOF()}if(m.type==="punctuator"&&m.value==="]"){pop();return}push()},afterPropertyValue(){if(m.type==="eof"){throw invalidEOF()}switch(m.value){case",":u="beforePropertyName";return;case"}":pop()}},afterArrayValue(){if(m.type==="eof"){throw invalidEOF()}switch(m.value){case",":u="beforeArrayValue";return;case"]":pop()}},end(){}};function push(){let t;switch(m.type){case"punctuator":switch(m.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=m.value;break}if(y===undefined){y=t}else{const r=l[l.length-1];if(Array.isArray(r)){r.push(t)}else{Object.defineProperty(r,g,{value:t,writable:true,enumerable:true,configurable:true})}}if(t!==null&&typeof t==="object"){l.push(t);if(Array.isArray(t)){u="beforeArrayValue"}else{u="beforePropertyName"}}else{const t=l[l.length-1];if(t==null){u="end"}else if(Array.isArray(t)){u="afterArrayValue"}else{u="afterPropertyValue"}}}function pop(){l.pop();const t=l[l.length-1];if(t==null){u="end"}else if(Array.isArray(t)){u="afterArrayValue"}else{u="afterPropertyValue"}}function invalidChar(t){if(t===undefined){return syntaxError(`JSON5: invalid end of input at ${p}:${d}`)}return syntaxError(`JSON5: invalid character '${formatChar(t)}' at ${p}:${d}`)}function invalidEOF(){return syntaxError(`JSON5: invalid end of input at ${p}:${d}`)}function invalidIdentifier(){d-=5;return syntaxError(`JSON5: invalid identifier character at ${p}:${d}`)}function separatorChar(t){console.warn(`JSON5: '${formatChar(t)}' in strings is not valid ECMAScript; consider escaping`)}function formatChar(t){const r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(r[t]){return r[t]}if(t<" "){const r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}function syntaxError(t){const r=new SyntaxError(t);r.lineNumber=p;r.columnNumber=d;return r}},5627:(t,r,i)=>{const o=i(3009);t.exports=function stringify(t,r,i){const a=[];let u="";let l;let h;let p="";let d;if(r!=null&&typeof r==="object"&&!Array.isArray(r)){i=r.space;d=r.quote;r=r.replacer}if(typeof r==="function"){h=r}else if(Array.isArray(r)){l=[];for(const t of r){let r;if(typeof t==="string"){r=t}else if(typeof t==="number"||t instanceof String||t instanceof Number){r=String(t)}if(r!==undefined&&l.indexOf(r)<0){l.push(r)}}}if(i instanceof Number){i=Number(i)}else if(i instanceof String){i=String(i)}if(typeof i==="number"){if(i>0){i=Math.min(10,Math.floor(i));p=" ".substr(0,i)}}else if(typeof i==="string"){p=i.substr(0,10)}return serializeProperty("",{"":t});function serializeProperty(t,r){let i=r[t];if(i!=null){if(typeof i.toJSON5==="function"){i=i.toJSON5(t)}else if(typeof i.toJSON==="function"){i=i.toJSON(t)}}if(h){i=h.call(r,t,i)}if(i instanceof Number){i=Number(i)}else if(i instanceof String){i=String(i)}else if(i instanceof Boolean){i=i.valueOf()}switch(i){case null:return"null";case true:return"true";case false:return"false"}if(typeof i==="string"){return quoteString(i,false)}if(typeof i==="number"){return String(i)}if(typeof i==="object"){return Array.isArray(i)?serializeArray(i):serializeObject(i)}return undefined}function quoteString(t){const r={"'":.1,'"':.2};const i={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let a="";for(let u=0;u<t.length;u++){const l=t[u];switch(l){case"'":case'"':r[l]++;a+=l;continue;case"\0":if(o.isDigit(t[u+1])){a+="\\x00";continue}}if(i[l]){a+=i[l];continue}if(l<" "){let t=l.charCodeAt(0).toString(16);a+="\\x"+("00"+t).substring(t.length);continue}a+=l}const u=d||Object.keys(r).reduce(((t,i)=>r[t]<r[i]?t:i));a=a.replace(new RegExp(u,"g"),i[u]);return u+a+u}function serializeObject(t){if(a.indexOf(t)>=0){throw TypeError("Converting circular structure to JSON5")}a.push(t);let r=u;u=u+p;let i=l||Object.keys(t);let o=[];for(const r of i){const i=serializeProperty(r,t);if(i!==undefined){let t=serializeKey(r)+":";if(p!==""){t+=" "}t+=i;o.push(t)}}let h;if(o.length===0){h="{}"}else{let t;if(p===""){t=o.join(",");h="{"+t+"}"}else{let i=",\n"+u;t=o.join(i);h="{\n"+u+t+",\n"+r+"}"}}a.pop();u=r;return h}function serializeKey(t){if(t.length===0){return quoteString(t,true)}const r=String.fromCodePoint(t.codePointAt(0));if(!o.isIdStartChar(r)){return quoteString(t,true)}for(let i=r.length;i<t.length;i++){if(!o.isIdContinueChar(String.fromCodePoint(t.codePointAt(i)))){return quoteString(t,true)}}return t}function serializeArray(t){if(a.indexOf(t)>=0){throw TypeError("Converting circular structure to JSON5")}a.push(t);let r=u;u=u+p;let i=[];for(let r=0;r<t.length;r++){const o=serializeProperty(String(r),t);i.push(o!==undefined?o:"null")}let o;if(i.length===0){o="[]"}else{if(p===""){let t=i.join(",");o="["+t+"]"}else{let t=",\n"+u;let a=i.join(t);o="[\n"+u+a+",\n"+r+"]"}}a.pop();u=r;return o}}},6195:t=>{t.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;t.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;t.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},3009:(t,r,i)=>{const o=i(6195);t.exports={isSpaceSeparator(t){return typeof t==="string"&&o.Space_Separator.test(t)},isIdStartChar(t){return typeof t==="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||o.ID_Start.test(t))},isIdContinueChar(t){return typeof t==="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="‌"||t==="‍"||o.ID_Continue.test(t))},isDigit(t){return typeof t==="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t==="string"&&/[0-9A-Fa-f]/.test(t)}}},9439:t=>{"use strict";const{FORCE_COLOR:r,NODE_DISABLE_COLORS:i,TERM:o}=process.env;const a={enabled:!i&&o!=="dumb"&&r!=="0",reset:init(0,0),bold:init(1,22),dim:init(2,22),italic:init(3,23),underline:init(4,24),inverse:init(7,27),hidden:init(8,28),strikethrough:init(9,29),black:init(30,39),red:init(31,39),green:init(32,39),yellow:init(33,39),blue:init(34,39),magenta:init(35,39),cyan:init(36,39),white:init(37,39),gray:init(90,39),grey:init(90,39),bgBlack:init(40,49),bgRed:init(41,49),bgGreen:init(42,49),bgYellow:init(43,49),bgBlue:init(44,49),bgMagenta:init(45,49),bgCyan:init(46,49),bgWhite:init(47,49)};function run(t,r){let i=0,o,a="",u="";for(;i<t.length;i++){o=t[i];a+=o.open;u+=o.close;if(r.includes(o.close)){r=r.replace(o.rgx,o.close+o.open)}}return a+r+u}function chain(t,r){let i={has:t,keys:r};i.reset=a.reset.bind(i);i.bold=a.bold.bind(i);i.dim=a.dim.bind(i);i.italic=a.italic.bind(i);i.underline=a.underline.bind(i);i.inverse=a.inverse.bind(i);i.hidden=a.hidden.bind(i);i.strikethrough=a.strikethrough.bind(i);i.black=a.black.bind(i);i.red=a.red.bind(i);i.green=a.green.bind(i);i.yellow=a.yellow.bind(i);i.blue=a.blue.bind(i);i.magenta=a.magenta.bind(i);i.cyan=a.cyan.bind(i);i.white=a.white.bind(i);i.gray=a.gray.bind(i);i.grey=a.grey.bind(i);i.bgBlack=a.bgBlack.bind(i);i.bgRed=a.bgRed.bind(i);i.bgGreen=a.bgGreen.bind(i);i.bgYellow=a.bgYellow.bind(i);i.bgBlue=a.bgBlue.bind(i);i.bgMagenta=a.bgMagenta.bind(i);i.bgCyan=a.bgCyan.bind(i);i.bgWhite=a.bgWhite.bind(i);return i}function init(t,r){let i={open:`[${t}m`,close:`[${r}m`,rgx:new RegExp(`\\x1b\\[${r}m`,"g")};return function(r){if(this!==void 0&&this.has!==void 0){this.has.includes(t)||(this.has.push(t),this.keys.push(i));return r===void 0?this:a.enabled?run(this.keys,r+""):r+""}return r===void 0?chain([t],[i]):a.enabled?run([i],r+""):r+""}}t.exports=a},2375:(t,r,i)=>{"use strict";const o=i(2781);const a=o.PassThrough;const u=Array.prototype.slice;t.exports=merge2;function merge2(){const t=[];const r=u.call(arguments);let i=false;let o=r[r.length-1];if(o&&!Array.isArray(o)&&o.pipe==null){r.pop()}else{o={}}const l=o.end!==false;const h=o.pipeError===true;if(o.objectMode==null){o.objectMode=true}if(o.highWaterMark==null){o.highWaterMark=64*1024}const p=a(o);function addStream(){for(let r=0,i=arguments.length;r<i;r++){t.push(pauseStreams(arguments[r],o))}mergeStream();return this}function mergeStream(){if(i){return}i=true;let r=t.shift();if(!r){process.nextTick(endStream);return}if(!Array.isArray(r)){r=[r]}let o=r.length+1;function next(){if(--o>0){return}i=false;mergeStream()}function pipe(t){function onend(){t.removeListener("merge2UnpipeEnd",onend);t.removeListener("end",onend);if(h){t.removeListener("error",onerror)}next()}function onerror(t){p.emit("error",t)}if(t._readableState.endEmitted){return next()}t.on("merge2UnpipeEnd",onend);t.on("end",onend);if(h){t.on("error",onerror)}t.pipe(p,{end:false});t.resume()}for(let t=0;t<r.length;t++){pipe(r[t])}next()}function endStream(){i=false;p.emit("queueDrain");if(l){p.end()}}p.setMaxListeners(0);p.add=addStream;p.on("unpipe",(function(t){t.emit("merge2UnpipeEnd")}));if(r.length){addStream.apply(null,r)}return p}function pauseStreams(t,r){if(!Array.isArray(t)){if(!t._readableState&&t.pipe){t=t.pipe(a(r))}if(!t._readableState||!t.pause||!t.pipe){throw new Error("Only readable stream can be merged.")}t.pause()}else{for(let i=0,o=t.length;i<o;i++){t[i]=pauseStreams(t[i],r)}}return t}},9015:(t,r,i)=>{"use strict";const o=i(3837);const a=i(538);const u=i(9138);const l=i(2924);const isEmptyString=t=>t===""||t==="./";const hasBraces=t=>{const r=t.indexOf("{");return r>-1&&t.indexOf("}",r)>-1};const micromatch=(t,r,i)=>{r=[].concat(r);t=[].concat(t);let o=new Set;let a=new Set;let l=new Set;let h=0;let onResult=t=>{l.add(t.output);if(i&&i.onResult){i.onResult(t)}};for(let l=0;l<r.length;l++){let p=u(String(r[l]),{...i,onResult:onResult},true);let d=p.state.negated||p.state.negatedExtglob;if(d)h++;for(let r of t){let t=p(r,true);let i=d?!t.isMatch:t.isMatch;if(!i)continue;if(d){o.add(t.output)}else{o.delete(t.output);a.add(t.output)}}}let p=h===r.length?[...l]:[...a];let d=p.filter((t=>!o.has(t)));if(i&&d.length===0){if(i.failglob===true){throw new Error(`No matches found for "${r.join(", ")}"`)}if(i.nonull===true||i.nullglob===true){return i.unescape?r.map((t=>t.replace(/\\/g,""))):r}}return d};micromatch.match=micromatch;micromatch.matcher=(t,r)=>u(t,r);micromatch.isMatch=(t,r,i)=>u(r,i)(t);micromatch.any=micromatch.isMatch;micromatch.not=(t,r,i={})=>{r=[].concat(r).map(String);let o=new Set;let a=[];let onResult=t=>{if(i.onResult)i.onResult(t);a.push(t.output)};let u=new Set(micromatch(t,r,{...i,onResult:onResult}));for(let t of a){if(!u.has(t)){o.add(t)}}return[...o]};micromatch.contains=(t,r,i)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${o.inspect(t)}"`)}if(Array.isArray(r)){return r.some((r=>micromatch.contains(t,r,i)))}if(typeof r==="string"){if(isEmptyString(t)||isEmptyString(r)){return false}if(t.includes(r)||t.startsWith("./")&&t.slice(2).includes(r)){return true}}return micromatch.isMatch(t,r,{...i,contains:true})};micromatch.matchKeys=(t,r,i)=>{if(!l.isObject(t)){throw new TypeError("Expected the first argument to be an object")}let o=micromatch(Object.keys(t),r,i);let a={};for(let r of o)a[r]=t[r];return a};micromatch.some=(t,r,i)=>{let o=[].concat(t);for(let t of[].concat(r)){let r=u(String(t),i);if(o.some((t=>r(t)))){return true}}return false};micromatch.every=(t,r,i)=>{let o=[].concat(t);for(let t of[].concat(r)){let r=u(String(t),i);if(!o.every((t=>r(t)))){return false}}return true};micromatch.all=(t,r,i)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${o.inspect(t)}"`)}return[].concat(r).every((r=>u(r,i)(t)))};micromatch.capture=(t,r,i)=>{let o=l.isWindows(i);let a=u.makeRe(String(t),{...i,capture:true});let h=a.exec(o?l.toPosixSlashes(r):r);if(h){return h.slice(1).map((t=>t===void 0?"":t))}};micromatch.makeRe=(...t)=>u.makeRe(...t);micromatch.scan=(...t)=>u.scan(...t);micromatch.parse=(t,r)=>{let i=[];for(let o of[].concat(t||[])){for(let t of a(String(o),r)){i.push(u.parse(t,r))}}return i};micromatch.braces=(t,r)=>{if(typeof t!=="string")throw new TypeError("Expected a string");if(r&&r.nobrace===true||!hasBraces(t)){return[t]}return a(t,r)};micromatch.braceExpand=(t,r)=>{if(typeof t!=="string")throw new TypeError("Expected a string");return micromatch.braces(t,{...r,expand:true})};micromatch.hasBraces=hasBraces;t.exports=micromatch},5912:t=>{"use strict";function hasKey(t,r){var i=t;r.slice(0,-1).forEach((function(t){i=i[t]||{}}));var o=r[r.length-1];return o in i}function isNumber(t){if(typeof t==="number"){return true}if(/^0x[0-9a-f]+$/i.test(t)){return true}return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function isConstructorOrProto(t,r){return r==="constructor"&&typeof t[r]==="function"||r==="__proto__"}t.exports=function(t,r){if(!r){r={}}var i={bools:{},strings:{},unknownFn:null};if(typeof r.unknown==="function"){i.unknownFn=r.unknown}if(typeof r.boolean==="boolean"&&r.boolean){i.allBools=true}else{[].concat(r.boolean).filter(Boolean).forEach((function(t){i.bools[t]=true}))}var o={};function aliasIsBoolean(t){return o[t].some((function(t){return i.bools[t]}))}Object.keys(r.alias||{}).forEach((function(t){o[t]=[].concat(r.alias[t]);o[t].forEach((function(r){o[r]=[t].concat(o[t].filter((function(t){return r!==t})))}))}));[].concat(r.string).filter(Boolean).forEach((function(t){i.strings[t]=true;if(o[t]){[].concat(o[t]).forEach((function(t){i.strings[t]=true}))}}));var a=r.default||{};var u={_:[]};function argDefined(t,r){return i.allBools&&/^--[^=]+$/.test(r)||i.strings[t]||i.bools[t]||o[t]}function setKey(t,r,o){var a=t;for(var u=0;u<r.length-1;u++){var l=r[u];if(isConstructorOrProto(a,l)){return}if(a[l]===undefined){a[l]={}}if(a[l]===Object.prototype||a[l]===Number.prototype||a[l]===String.prototype){a[l]={}}if(a[l]===Array.prototype){a[l]=[]}a=a[l]}var h=r[r.length-1];if(isConstructorOrProto(a,h)){return}if(a===Object.prototype||a===Number.prototype||a===String.prototype){a={}}if(a===Array.prototype){a=[]}if(a[h]===undefined||i.bools[h]||typeof a[h]==="boolean"){a[h]=o}else if(Array.isArray(a[h])){a[h].push(o)}else{a[h]=[a[h],o]}}function setArg(t,r,a){if(a&&i.unknownFn&&!argDefined(t,a)){if(i.unknownFn(a)===false){return}}var l=!i.strings[t]&&isNumber(r)?Number(r):r;setKey(u,t.split("."),l);(o[t]||[]).forEach((function(t){setKey(u,t.split("."),l)}))}Object.keys(i.bools).forEach((function(t){setArg(t,a[t]===undefined?false:a[t])}));var l=[];if(t.indexOf("--")!==-1){l=t.slice(t.indexOf("--")+1);t=t.slice(0,t.indexOf("--"))}for(var h=0;h<t.length;h++){var p=t[h];var d;var m;if(/^--.+=/.test(p)){var g=p.match(/^--([^=]+)=([\s\S]*)$/);d=g[1];var y=g[2];if(i.bools[d]){y=y!=="false"}setArg(d,y,p)}else if(/^--no-.+/.test(p)){d=p.match(/^--no-(.+)/)[1];setArg(d,false,p)}else if(/^--.+/.test(p)){d=p.match(/^--(.+)/)[1];m=t[h+1];if(m!==undefined&&!/^(-|--)[^-]/.test(m)&&!i.bools[d]&&!i.allBools&&(o[d]?!aliasIsBoolean(d):true)){setArg(d,m,p);h+=1}else if(/^(true|false)$/.test(m)){setArg(d,m==="true",p);h+=1}else{setArg(d,i.strings[d]?"":true,p)}}else if(/^-[^-]+/.test(p)){var A=p.slice(1,-1).split("");var b=false;for(var v=0;v<A.length;v++){m=p.slice(v+2);if(m==="-"){setArg(A[v],m,p);continue}if(/[A-Za-z]/.test(A[v])&&m[0]==="="){setArg(A[v],m.slice(1),p);b=true;break}if(/[A-Za-z]/.test(A[v])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(m)){setArg(A[v],m,p);b=true;break}if(A[v+1]&&A[v+1].match(/\W/)){setArg(A[v],p.slice(v+2),p);b=true;break}else{setArg(A[v],i.strings[A[v]]?"":true,p)}}d=p.slice(-1)[0];if(!b&&d!=="-"){if(t[h+1]&&!/^(-|--)[^-]/.test(t[h+1])&&!i.bools[d]&&(o[d]?!aliasIsBoolean(d):true)){setArg(d,t[h+1],p);h+=1}else if(t[h+1]&&/^(true|false)$/.test(t[h+1])){setArg(d,t[h+1]==="true",p);h+=1}else{setArg(d,i.strings[d]?"":true,p)}}}else{if(!i.unknownFn||i.unknownFn(p)!==false){u._.push(i.strings._||!isNumber(p)?p:Number(p))}if(r.stopEarly){u._.push.apply(u._,t.slice(h+1));break}}}Object.keys(a).forEach((function(t){if(!hasKey(u,t.split("."))){setKey(u,t.split("."),a[t]);(o[t]||[]).forEach((function(r){setKey(u,r.split("."),a[t])}))}}));if(r["--"]){u["--"]=l.slice()}else{l.forEach((function(t){u._.push(t)}))}return u}},8319:(t,r,i)=>{const o=i(9796).constants||{ZLIB_VERNUM:4736};t.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},o))},7547:(t,r,i)=>{"use strict";const o=i(9491);const a=i(4300).Buffer;const u=i(9796);const l=r.constants=i(8319);const h=i(2164);const p=a.concat;const d=Symbol("_superWrite");class ZlibError extends Error{constructor(t){super("zlib: "+t.message);this.code=t.code;this.errno=t.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+t.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const m=Symbol("opts");const g=Symbol("flushFlag");const y=Symbol("finishFlushFlag");const A=Symbol("fullFlushFlag");const b=Symbol("handle");const v=Symbol("onError");const w=Symbol("sawError");const E=Symbol("level");const _=Symbol("strategy");const S=Symbol("ended");const C=Symbol("_defaultFullFlush");class ZlibBase extends h{constructor(t,r){if(!t||typeof t!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(t);this[w]=false;this[S]=false;this[m]=t;this[g]=t.flush;this[y]=t.finishFlush;try{this[b]=new u[r](t)}catch(t){throw new ZlibError(t)}this[v]=t=>{if(this[w])return;this[w]=true;this.close();this.emit("error",t)};this[b].on("error",(t=>this[v](new ZlibError(t))));this.once("end",(()=>this.close))}close(){if(this[b]){this[b].close();this[b]=null;this.emit("close")}}reset(){if(!this[w]){o(this[b],"zlib binding closed");return this[b].reset()}}flush(t){if(this.ended)return;if(typeof t!=="number")t=this[A];this.write(Object.assign(a.alloc(0),{[g]:t}))}end(t,r,i){if(t)this.write(t,r);this.flush(this[y]);this[S]=true;return super.end(null,null,i)}get ended(){return this[S]}write(t,r,i){if(typeof r==="function")i=r,r="utf8";if(typeof t==="string")t=a.from(t,r);if(this[w])return;o(this[b],"zlib binding closed");const u=this[b]._handle;const l=u.close;u.close=()=>{};const h=this[b].close;this[b].close=()=>{};a.concat=t=>t;let m;try{const r=typeof t[g]==="number"?t[g]:this[g];m=this[b]._processChunk(t,r);a.concat=p}catch(t){a.concat=p;this[v](new ZlibError(t))}finally{if(this[b]){this[b]._handle=u;u.close=l;this[b].close=h;this[b].removeAllListeners("error")}}if(this[b])this[b].on("error",(t=>this[v](new ZlibError(t))));let y;if(m){if(Array.isArray(m)&&m.length>0){y=this[d](a.from(m[0]));for(let t=1;t<m.length;t++){y=this[d](m[t])}}else{y=this[d](a.from(m))}}if(i)i();return y}[d](t){return super.write(t)}}class Zlib extends ZlibBase{constructor(t,r){t=t||{};t.flush=t.flush||l.Z_NO_FLUSH;t.finishFlush=t.finishFlush||l.Z_FINISH;super(t,r);this[A]=l.Z_FULL_FLUSH;this[E]=t.level;this[_]=t.strategy}params(t,r){if(this[w])return;if(!this[b])throw new Error("cannot switch params when binding is closed");if(!this[b].params)throw new Error("not supported in this implementation");if(this[E]!==t||this[_]!==r){this.flush(l.Z_SYNC_FLUSH);o(this[b],"zlib binding closed");const i=this[b].flush;this[b].flush=(t,r)=>{this.flush(t);r()};try{this[b].params(t,r)}finally{this[b].flush=i}if(this[b]){this[E]=t;this[_]=r}}}}class Deflate extends Zlib{constructor(t){super(t,"Deflate")}}class Inflate extends Zlib{constructor(t){super(t,"Inflate")}}const D=Symbol("_portable");class Gzip extends Zlib{constructor(t){super(t,"Gzip");this[D]=t&&!!t.portable}[d](t){if(!this[D])return super[d](t);this[D]=false;t[9]=255;return super[d](t)}}class Gunzip extends Zlib{constructor(t){super(t,"Gunzip")}}class DeflateRaw extends Zlib{constructor(t){super(t,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(t){super(t,"InflateRaw")}}class Unzip extends Zlib{constructor(t){super(t,"Unzip")}}class Brotli extends ZlibBase{constructor(t,r){t=t||{};t.flush=t.flush||l.BROTLI_OPERATION_PROCESS;t.finishFlush=t.finishFlush||l.BROTLI_OPERATION_FINISH;super(t,r);this[A]=l.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(t){super(t,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(t){super(t,"BrotliDecompress")}}r.Deflate=Deflate;r.Inflate=Inflate;r.Gzip=Gzip;r.Gunzip=Gunzip;r.DeflateRaw=DeflateRaw;r.InflateRaw=InflateRaw;r.Unzip=Unzip;if(typeof u.BrotliCompress==="function"){r.BrotliCompress=BrotliCompress;r.BrotliDecompress=BrotliDecompress}else{r.BrotliCompress=r.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},2164:(t,r,i)=>{"use strict";const o=typeof process==="object"&&process?process:{stdout:null,stderr:null};const a=i(2361);const u=i(2781);const l=i(1576).StringDecoder;const h=Symbol("EOF");const p=Symbol("maybeEmitEnd");const d=Symbol("emittedEnd");const m=Symbol("emittingEnd");const g=Symbol("emittedError");const y=Symbol("closed");const A=Symbol("read");const b=Symbol("flush");const v=Symbol("flushChunk");const w=Symbol("encoding");const E=Symbol("decoder");const _=Symbol("flowing");const S=Symbol("paused");const C=Symbol("resume");const D=Symbol("bufferLength");const x=Symbol("bufferPush");const R=Symbol("bufferShift");const O=Symbol("objectMode");const k=Symbol("destroyed");const P=Symbol("emitData");const T=Symbol("emitEnd");const L=Symbol("emitEnd2");const I=Symbol("async");const defer=t=>Promise.resolve().then(t);const M=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const B=M&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const N=M&&Symbol.iterator||Symbol("iterator not implemented");const isEndish=t=>t==="end"||t==="finish"||t==="prefinish";const isArrayBuffer=t=>t instanceof ArrayBuffer||typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const isArrayBufferView=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);class Pipe{constructor(t,r,i){this.src=t;this.dest=r;this.opts=i;this.ondrain=()=>t[C]();r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(t,r,i){super(t,r,i);this.proxyErrors=t=>r.emit("error",t);t.on("error",this.proxyErrors)}}t.exports=class Minipass extends u{constructor(t){super();this[_]=false;this[S]=false;this.pipes=[];this.buffer=[];this[O]=t&&t.objectMode||false;if(this[O])this[w]=null;else this[w]=t&&t.encoding||null;if(this[w]==="buffer")this[w]=null;this[I]=t&&!!t.async||false;this[E]=this[w]?new l(this[w]):null;this[h]=false;this[d]=false;this[m]=false;this[y]=false;this[g]=null;this.writable=true;this.readable=true;this[D]=0;this[k]=false}get bufferLength(){return this[D]}get encoding(){return this[w]}set encoding(t){if(this[O])throw new Error("cannot set encoding in objectMode");if(this[w]&&t!==this[w]&&(this[E]&&this[E].lastNeed||this[D]))throw new Error("cannot change encoding");if(this[w]!==t){this[E]=t?new l(t):null;if(this.buffer.length)this.buffer=this.buffer.map((t=>this[E].write(t)))}this[w]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[O]}set objectMode(t){this[O]=this[O]||!!t}get["async"](){return this[I]}set["async"](t){this[I]=this[I]||!!t}write(t,r,i){if(this[h])throw new Error("write after end");if(this[k]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof r==="function")i=r,r="utf8";if(!r)r="utf8";const o=this[I]?defer:t=>t();if(!this[O]&&!Buffer.isBuffer(t)){if(isArrayBufferView(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(isArrayBuffer(t))t=Buffer.from(t);else if(typeof t!=="string")this.objectMode=true}if(this[O]){if(this.flowing&&this[D]!==0)this[b](true);if(this.flowing)this.emit("data",t);else this[x](t);if(this[D]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(!t.length){if(this[D]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(typeof t==="string"&&!(r===this[w]&&!this[E].lastNeed)){t=Buffer.from(t,r)}if(Buffer.isBuffer(t)&&this[w])t=this[E].write(t);if(this.flowing&&this[D]!==0)this[b](true);if(this.flowing)this.emit("data",t);else this[x](t);if(this[D]!==0)this.emit("readable");if(i)o(i);return this.flowing}read(t){if(this[k])return null;if(this[D]===0||t===0||t>this[D]){this[p]();return null}if(this[O])t=null;if(this.buffer.length>1&&!this[O]){if(this.encoding)this.buffer=[this.buffer.join("")];else this.buffer=[Buffer.concat(this.buffer,this[D])]}const r=this[A](t||null,this.buffer[0]);this[p]();return r}[A](t,r){if(t===r.length||t===null)this[R]();else{this.buffer[0]=r.slice(t);r=r.slice(0,t);this[D]-=t}this.emit("data",r);if(!this.buffer.length&&!this[h])this.emit("drain");return r}end(t,r,i){if(typeof t==="function")i=t,t=null;if(typeof r==="function")i=r,r="utf8";if(t)this.write(t,r);if(i)this.once("end",i);this[h]=true;this.writable=false;if(this.flowing||!this[S])this[p]();return this}[C](){if(this[k])return;this[S]=false;this[_]=true;this.emit("resume");if(this.buffer.length)this[b]();else if(this[h])this[p]();else this.emit("drain")}resume(){return this[C]()}pause(){this[_]=false;this[S]=true}get destroyed(){return this[k]}get flowing(){return this[_]}get paused(){return this[S]}[x](t){if(this[O])this[D]+=1;else this[D]+=t.length;this.buffer.push(t)}[R](){if(this.buffer.length){if(this[O])this[D]-=1;else this[D]-=this.buffer[0].length}return this.buffer.shift()}[b](t){do{}while(this[v](this[R]()));if(!t&&!this.buffer.length&&!this[h])this.emit("drain")}[v](t){return t?(this.emit("data",t),this.flowing):false}pipe(t,r){if(this[k])return;const i=this[d];r=r||{};if(t===o.stdout||t===o.stderr)r.end=false;else r.end=r.end!==false;r.proxyErrors=!!r.proxyErrors;if(i){if(r.end)t.end()}else{this.pipes.push(!r.proxyErrors?new Pipe(this,t,r):new PipeProxyErrors(this,t,r));if(this[I])defer((()=>this[C]()));else this[C]()}return t}unpipe(t){const r=this.pipes.find((r=>r.dest===t));if(r){this.pipes.splice(this.pipes.indexOf(r),1);r.unpipe()}}addListener(t,r){return this.on(t,r)}on(t,r){const i=super.on(t,r);if(t==="data"&&!this.pipes.length&&!this.flowing)this[C]();else if(t==="readable"&&this[D]!==0)super.emit("readable");else if(isEndish(t)&&this[d]){super.emit(t);this.removeAllListeners(t)}else if(t==="error"&&this[g]){if(this[I])defer((()=>r.call(this,this[g])));else r.call(this,this[g])}return i}get emittedEnd(){return this[d]}[p](){if(!this[m]&&!this[d]&&!this[k]&&this.buffer.length===0&&this[h]){this[m]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[y])this.emit("close");this[m]=false}}emit(t,r,...i){if(t!=="error"&&t!=="close"&&t!==k&&this[k])return;else if(t==="data"){return!r?false:this[I]?defer((()=>this[P](r))):this[P](r)}else if(t==="end"){return this[T]()}else if(t==="close"){this[y]=true;if(!this[d]&&!this[k])return;const t=super.emit("close");this.removeAllListeners("close");return t}else if(t==="error"){this[g]=r;const t=super.emit("error",r);this[p]();return t}else if(t==="resume"){const t=super.emit("resume");this[p]();return t}else if(t==="finish"||t==="prefinish"){const r=super.emit(t);this.removeAllListeners(t);return r}const o=super.emit(t,r,...i);this[p]();return o}[P](t){for(const r of this.pipes){if(r.dest.write(t)===false)this.pause()}const r=super.emit("data",t);this[p]();return r}[T](){if(this[d])return;this[d]=true;this.readable=false;if(this[I])defer((()=>this[L]()));else this[L]()}[L](){if(this[E]){const t=this[E].end();if(t){for(const r of this.pipes){r.dest.write(t)}super.emit("data",t)}}for(const t of this.pipes){t.end()}const t=super.emit("end");this.removeAllListeners("end");return t}collect(){const t=[];if(!this[O])t.dataLength=0;const r=this.promise();this.on("data",(r=>{t.push(r);if(!this[O])t.dataLength+=r.length}));return r.then((()=>t))}concat(){return this[O]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((t=>this[O]?Promise.reject(new Error("cannot concat in objectMode")):this[w]?t.join(""):Buffer.concat(t,t.dataLength)))}promise(){return new Promise(((t,r)=>{this.on(k,(()=>r(new Error("stream destroyed"))));this.on("error",(t=>r(t)));this.on("end",(()=>t()))}))}[B](){const next=()=>{const t=this.read();if(t!==null)return Promise.resolve({done:false,value:t});if(this[h])return Promise.resolve({done:true});let r=null;let i=null;const onerr=t=>{this.removeListener("data",ondata);this.removeListener("end",onend);i(t)};const ondata=t=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.pause();r({value:t,done:!!this[h]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);r({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((t,o)=>{i=o;r=t;this.once(k,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next}}[N](){const next=()=>{const t=this.read();const r=t===null;return{value:t,done:r}};return{next:next}}destroy(t){if(this[k]){if(t)this.emit("error",t);else this.emit(k);return this}this[k]=true;this.buffer.length=0;this[D]=0;if(typeof this.close==="function"&&!this[y])this.close();if(t)this.emit("error",t);else this.emit(k);return this}static isStream(t){return!!t&&(t instanceof Minipass||t instanceof u||t instanceof a&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function"))}}},40:t=>{var r=1e3;var i=r*60;var o=i*60;var a=o*24;var u=a*7;var l=a*365.25;t.exports=function(t,r){r=r||{};var i=typeof t;if(i==="string"&&t.length>0){return parse(t)}else if(i==="number"&&isFinite(t)){return r.long?fmtLong(t):fmtShort(t)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function parse(t){t=String(t);if(t.length>100){return}var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!h){return}var p=parseFloat(h[1]);var d=(h[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return p*l;case"weeks":case"week":case"w":return p*u;case"days":case"day":case"d":return p*a;case"hours":case"hour":case"hrs":case"hr":case"h":return p*o;case"minutes":case"minute":case"mins":case"min":case"m":return p*i;case"seconds":case"second":case"secs":case"sec":case"s":return p*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return undefined}}function fmtShort(t){var u=Math.abs(t);if(u>=a){return Math.round(t/a)+"d"}if(u>=o){return Math.round(t/o)+"h"}if(u>=i){return Math.round(t/i)+"m"}if(u>=r){return Math.round(t/r)+"s"}return t+"ms"}function fmtLong(t){var u=Math.abs(t);if(u>=a){return plural(t,u,a,"day")}if(u>=o){return plural(t,u,o,"hour")}if(u>=i){return plural(t,u,i,"minute")}if(u>=r){return plural(t,u,r,"second")}return t+" ms"}function plural(t,r,i,o){var a=r>=i*1.5;return Math.round(t/i)+" "+o+(a?"s":"")}},5440:(t,r,i)=>{"use strict";t.exports=npa;t.exports.resolve=resolve;t.exports.toPurl=toPurl;t.exports.Result=Result;const{URL:o}=i(7310);const a=i(6069);const u=i(7546);const l=global.FAKE_WINDOWS?i(1017).win32:i(1017);const h=i(8593);const{homedir:p}=i(2037);const{log:d}=i(1316);const m=process.platform==="win32"||global.FAKE_WINDOWS;const g=m?/\\|[/]/:/[/]/;const y=/^(?:git[+])?[a-z]+:/i;const A=/^[^@]+@[^:.]+\.[^:]+:.+$/i;const b=/[.](?:tgz|tar.gz|tar)$/i;function npa(t,r){let i;let o;if(typeof t==="object"){if(t instanceof Result&&(!r||r===t.where)){return t}else if(t.name&&t.rawSpec){return npa.resolve(t.name,t.rawSpec,r||t.where)}else{return npa(t.raw,r||t.where)}}const a=t[0]==="@"?t.slice(1).indexOf("@")+1:t.indexOf("@");const u=a>0?t.slice(0,a):t;if(y.test(t)){o=t}else if(A.test(t)){o=`git+ssh://${t}`}else if(u[0]!=="@"&&(g.test(u)||b.test(u))){o=t}else if(a>0){i=u;o=t.slice(a+1)||"*"}else{const r=h(t);if(r.validForOldPackages){i=t;o="*"}else{o=t}}return resolve(i,o,r,t)}const v=m?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function resolve(t,r,i,o){const u=new Result({raw:o,name:t,rawSpec:r,fromArgument:o!=null});if(t){u.setName(t)}if(r&&(v.test(r)||/^file:/i.test(r))){return fromFile(u,i)}else if(r&&/^npm:/i.test(r)){return fromAlias(u,i)}const l=a.fromUrl(r,{noGitPlus:true,noCommittish:true});if(l){return fromHostedGit(u,l)}else if(r&&y.test(r)){return fromURL(u)}else if(r&&(g.test(r)||b.test(r))){return fromFile(u,i)}else{return fromRegistry(u)}}const w="https://registry.npmjs.org";function toPurl(t,r=w){const i=npa(t);if(i.type!=="version"){throw invalidPurlType(i.type,i.raw)}let o="pkg:npm/"+i.name.replace(/^@/,"%40")+"@"+i.rawSpec;if(r!==w){o+="?repository_url="+r}return o}function invalidPackageName(t,r,i){const o=new Error(`Invalid package name "${t}" of package "${i}": ${r.errors.join("; ")}.`);o.code="EINVALIDPACKAGENAME";return o}function invalidTagName(t,r){const i=new Error(`Invalid tag name "${t}" of package "${r}": Tags may not have any characters that encodeURIComponent encodes.`);i.code="EINVALIDTAGNAME";return i}function invalidPurlType(t,r){const i=new Error(`Invalid type "${t}" of package "${r}": Purl can only be generated for "version" types.`);i.code="EINVALIDPURLTYPE";return i}function Result(t){this.type=t.type;this.registry=t.registry;this.where=t.where;if(t.raw==null){this.raw=t.name?t.name+"@"+t.rawSpec:t.rawSpec}else{this.raw=t.raw}this.name=undefined;this.escapedName=undefined;this.scope=undefined;this.rawSpec=t.rawSpec||"";this.saveSpec=t.saveSpec;this.fetchSpec=t.fetchSpec;if(t.name){this.setName(t.name)}this.gitRange=t.gitRange;this.gitCommittish=t.gitCommittish;this.gitSubdir=t.gitSubdir;this.hosted=t.hosted}Result.prototype.setName=function(t){const r=h(t);if(!r.validForOldPackages){throw invalidPackageName(t,r,this.raw)}this.name=t;this.scope=t[0]==="@"?t.slice(0,t.indexOf("/")):undefined;this.escapedName=t.replace("/","%2f");return this};Result.prototype.toString=function(){const t=[];if(this.name!=null&&this.name!==""){t.push(this.name)}const r=this.saveSpec||this.fetchSpec||this.rawSpec;if(r!=null&&r!==""){t.push(r)}return t.length?t.join("@"):this.raw};Result.prototype.toJSON=function(){const t=Object.assign({},this);delete t.hosted;return t};function setGitAttrs(t,r){if(!r){t.gitCommittish=null;return}for(const i of r.split("::")){if(!i.includes(":")){if(t.gitRange){throw new Error("cannot override existing semver range with a committish")}if(t.gitCommittish){throw new Error("cannot override existing committish with a second committish")}t.gitCommittish=i;continue}const[r,o]=i.split(":");if(r==="semver"){if(t.gitCommittish){throw new Error("cannot override existing committish with a semver range")}if(t.gitRange){throw new Error("cannot override existing semver range with a second semver range")}t.gitRange=decodeURIComponent(o);continue}if(r==="path"){if(t.gitSubdir){throw new Error("cannot override existing path with a second path")}t.gitSubdir=`/${o}`;continue}d.warn("npm-package-arg",`ignoring unknown key "${r}"`)}}function fromFile(t,r){if(!r){r=process.cwd()}t.type=b.test(t.rawSpec)?"file":"directory";t.where=r;let i;let a;const u=!/^file:/.test(t.rawSpec)?"file:":"";const h=u+t.rawSpec;let d=h.replace(/^file:/,"");try{a=new o(h,`file://${l.resolve(r)}/`);i=new o(h)}catch(i){const o=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(o,{raw:t.rawSpec,spec:t,where:r,originalError:i})}if(a.host&&a.host!=="localhost"){const u=t.rawSpec.replace(/^file:\/\//,"file:///");a=new o(u,`file://${l.resolve(r)}/`);i=new o(u);d=u.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(d)){const u=t.rawSpec.replace(/^file:\/{1,3}/,"file:");a=new o(u,`file://${l.resolve(r)}/`);i=new o(u);d=u.replace(/^file:/,"")}let g=decodeURIComponent(i.pathname);let y=decodeURIComponent(a.pathname);if(m){g=g.replace(/^\/+([a-z]:\/)/i,"$1");y=y.replace(/^\/+([a-z]:\/)/i,"$1")}if(/^\/~(\/|$)/.test(g)){t.saveSpec=`file:${g.substr(1)}`;y=l.resolve(p(),g.substr(3))}else if(!l.isAbsolute(d)){t.saveSpec=`file:${l.relative(r,y)}`}else{t.saveSpec=`file:${l.resolve(y)}`}t.fetchSpec=l.resolve(r,y);return t}function fromHostedGit(t,r){t.type="git";t.hosted=r;t.saveSpec=r.toString({noGitPlus:false,noCommittish:false});t.fetchSpec=r.getDefaultRepresentation()==="shortcut"?null:r.toString();setGitAttrs(t,r.committish);return t}function unsupportedURLType(t,r){const i=new Error(`Unsupported URL Type "${t}": ${r}`);i.code="EUNSUPPORTEDPROTOCOL";return i}function fromURL(t){let r=t.rawSpec;t.saveSpec=r;if(r.startsWith("git+ssh:")){const i=r.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(i&&!i[1].match(/:[0-9]+\/?.*$/i)){t.type="git";setGitAttrs(t,i[2]);t.fetchSpec=i[1];return t}}else if(r.startsWith("git+file://")){r=r.replace(/\\/g,"/")}const i=new o(r);switch(i.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":t.type="git";setGitAttrs(t,i.hash.slice(1));if(i.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(r)){t.fetchSpec=`git+file://${i.host.toLowerCase()}:${i.pathname}`}else{i.hash="";t.fetchSpec=i.toString()}if(t.fetchSpec.startsWith("git+")){t.fetchSpec=t.fetchSpec.slice(4)}break;case"http:":case"https:":t.type="remote";t.fetchSpec=t.saveSpec;break;default:throw unsupportedURLType(i.protocol,r)}return t}function fromAlias(t,r){const i=npa(t.rawSpec.substr(4),r);if(i.type==="alias"){throw new Error("nested aliases not supported")}if(!i.registry){throw new Error("aliases only work for registry deps")}if(!i.name){throw new Error("aliases must have a name")}t.subSpec=i;t.registry=true;t.type="alias";t.saveSpec=null;t.fetchSpec=null;return t}function fromRegistry(t){t.registry=true;const r=t.rawSpec.trim();t.saveSpec=null;t.fetchSpec=r;const i=u.valid(r,true);const o=u.validRange(r,true);if(i){t.type="version"}else if(o){t.type="range"}else{if(encodeURIComponent(r)!==r){throw invalidTagName(r,t.raw)}t.type="tag"}return t}},1316:t=>{const r=Symbol("proc-log.meta");t.exports={META:r,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...t){return process.emit("output","standard",...t)},error:function(...t){return process.emit("output","error",...t)},buffer:function(...t){return process.emit("output","buffer",...t)},flush:function(...t){return process.emit("output","flush",...t)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...t){return process.emit("log","error",...t)},notice:function(...t){return process.emit("log","notice",...t)},warn:function(...t){return process.emit("log","warn",...t)},info:function(...t){return process.emit("log","info",...t)},verbose:function(...t){return process.emit("log","verbose",...t)},http:function(...t){return process.emit("log","http",...t)},silly:function(...t){return process.emit("log","silly",...t)},timing:function(...t){return process.emit("log","timing",...t)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(t,r){process.emit("time","start",t);function end(){return process.emit("time","end",t)}if(typeof r==="function"){const t=r();if(t&&t.finally){return t.finally(end)}end();return t}return end},end:function(t){return process.emit("time","end",t)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(t){process.emit("input","start");function end(){return process.emit("input","end")}if(typeof t==="function"){const r=t();if(r&&r.finally){return r.finally(end)}end();return r}return end},end:function(){return process.emit("input","end")},read:function(...t){let r,i;const o=new Promise(((t,o)=>{r=t;i=o}));process.emit("input","read",r,i,...t);return o}}}},2651:(t,r,i)=>{"use strict";const o=i(3585);const a=i(9335);const u=i(6067);const l=i(2554);const h=i(6022);const p=i(1205);const d=Symbol("text");const m=Symbol("prefixText");class Ora{constructor(t){if(typeof t==="string"){t={text:t}}this.options=Object.assign({text:"",color:"cyan",stream:process.stderr},t);this.spinner=this.options.spinner;this.color=this.options.color;this.hideCursor=this.options.hideCursor!==false;this.interval=this.options.interval||this.spinner.interval||100;this.stream=this.options.stream;this.id=null;this.isEnabled=typeof this.options.isEnabled==="boolean"?this.options.isEnabled:this.stream&&this.stream.isTTY&&!process.env.CI;this.text=this.options.text;this.prefixText=this.options.prefixText;this.linesToClear=0;this.indent=this.options.indent}get indent(){return this._indent}set indent(t=0){if(!(t>=0&&Number.isInteger(t))){throw new Error("The `indent` option must be an integer from 0 and up")}this._indent=t}get spinner(){return this._spinner}set spinner(t){this.frameIndex=0;if(typeof t==="object"){if(t.frames===undefined){throw new Error("The given spinner must have a `frames` property")}this._spinner=t}else if(process.platform==="win32"){this._spinner=u.line}else if(t===undefined){this._spinner=u.dots}else if(u[t]){this._spinner=u[t]}else{throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`)}}get text(){return this[d]}get prefixText(){return this[m]}get isSpinning(){return this.id!==null}updateLineCount(){const t=this.stream.columns||80;const r=typeof this[m]==="string"?this[m]+"-":"";this.lineCount=h(r+"--"+this[d]).split("\n").reduce(((r,i)=>r+Math.max(1,Math.ceil(p(i)/t))),0)}set text(t){this[d]=t;this.updateLineCount()}set prefixText(t){this[m]=t;this.updateLineCount()}frame(){const{frames:t}=this.spinner;let r=t[this.frameIndex];if(this.color){r=o[this.color](r)}this.frameIndex=++this.frameIndex%t.length;const i=typeof this.prefixText==="string"?this.prefixText+" ":"";const a=typeof this.text==="string"?" "+this.text:"";return i+r+a}clear(){if(!this.isEnabled||!this.stream.isTTY){return this}for(let t=0;t<this.linesToClear;t++){if(t>0){this.stream.moveCursor(0,-1)}this.stream.clearLine();this.stream.cursorTo(this.indent)}this.linesToClear=0;return this}render(){this.clear();this.stream.write(this.frame());this.linesToClear=this.lineCount;return this}start(t){if(t){this.text=t}if(!this.isEnabled){this.stream.write(`- ${this.text}\n`);return this}if(this.isSpinning){return this}if(this.hideCursor){a.hide(this.stream)}this.render();this.id=setInterval(this.render.bind(this),this.interval);return this}stop(){if(!this.isEnabled){return this}clearInterval(this.id);this.id=null;this.frameIndex=0;this.clear();if(this.hideCursor){a.show(this.stream)}return this}succeed(t){return this.stopAndPersist({symbol:l.success,text:t})}fail(t){return this.stopAndPersist({symbol:l.error,text:t})}warn(t){return this.stopAndPersist({symbol:l.warning,text:t})}info(t){return this.stopAndPersist({symbol:l.info,text:t})}stopAndPersist(t={}){const r=t.prefixText||this.prefixText;const i=typeof r==="string"?r+" ":"";const o=t.text||this.text;const a=typeof o==="string"?" "+o:"";this.stop();this.stream.write(`${i}${t.symbol||" "}${a}\n`);return this}}const oraFactory=function(t){return new Ora(t)};t.exports=oraFactory;t.exports["default"]=oraFactory;t.exports.promise=(t,r)=>{if(typeof t.then!=="function"){throw new TypeError("Parameter `action` must be a Promise")}const i=new Ora(r);i.start();t.then((()=>{i.succeed()}),(()=>{i.fail()}));return i}},6334:t=>{"use strict";t.exports=t=>{t=Object.assign({onlyFirst:false},t);const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,t.onlyFirst?undefined:"g")}},4445:(t,r,i)=>{"use strict";t=i.nmd(t);const o=i(2830);const wrapAnsi16=(t,r)=>function(){const i=t.apply(o,arguments);return`[${i+r}m`};const wrapAnsi256=(t,r)=>function(){const i=t.apply(o,arguments);return`[${38+r};5;${i}m`};const wrapAnsi16m=(t,r)=>function(){const i=t.apply(o,arguments);return`[${38+r};2;${i[0]};${i[1]};${i[2]}m`};function assembleStyles(){const t=new Map;const r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.grey=r.color.gray;for(const i of Object.keys(r)){const o=r[i];for(const i of Object.keys(o)){const a=o[i];r[i]={open:`[${a[0]}m`,close:`[${a[1]}m`};o[i]=r[i];t.set(a[0],a[1])}Object.defineProperty(r,i,{value:o,enumerable:false});Object.defineProperty(r,"codes",{value:t,enumerable:false})}const ansi2ansi=t=>t;const rgb2rgb=(t,r,i)=>[t,r,i];r.color.close="";r.bgColor.close="";r.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};r.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};r.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};r.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};r.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};r.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let t of Object.keys(o)){if(typeof o[t]!=="object"){continue}const i=o[t];if(t==="ansi16"){t="ansi"}if("ansi16"in i){r.color.ansi[t]=wrapAnsi16(i.ansi16,0);r.bgColor.ansi[t]=wrapAnsi16(i.ansi16,10)}if("ansi256"in i){r.color.ansi256[t]=wrapAnsi256(i.ansi256,0);r.bgColor.ansi256[t]=wrapAnsi256(i.ansi256,10)}if("rgb"in i){r.color.ansi16m[t]=wrapAnsi16m(i.rgb,0);r.bgColor.ansi16m[t]=wrapAnsi16m(i.rgb,10)}}return r}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},3585:(t,r,i)=>{"use strict";const o=i(789);const a=i(4445);const u=i(5387).stdout;const l=i(9149);const h=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const p=["ansi","ansi","ansi256","ansi16m"];const d=new Set(["gray"]);const m=Object.create(null);function applyOptions(t,r){r=r||{};const i=u?u.level:0;t.level=r.level===undefined?i:r.level;t.enabled="enabled"in r?r.enabled:t.level>0}function Chalk(t){if(!this||!(this instanceof Chalk)||this.template){const r={};applyOptions(r,t);r.template=function(){const t=[].slice.call(arguments);return chalkTag.apply(null,[r.template].concat(t))};Object.setPrototypeOf(r,Chalk.prototype);Object.setPrototypeOf(r.template,r);r.template.constructor=Chalk;return r.template}applyOptions(this,t)}if(h){a.blue.open=""}for(const t of Object.keys(a)){a[t].closeRe=new RegExp(o(a[t].close),"g");m[t]={get(){const r=a[t];return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}}m.visible={get(){return build.call(this,this._styles||[],true,"visible")}};a.color.closeRe=new RegExp(o(a.color.close),"g");for(const t of Object.keys(a.color.ansi)){if(d.has(t)){continue}m[t]={get(){const r=this.level;return function(){const i=a.color[p[r]][t].apply(null,arguments);const o={open:i,close:a.color.close,closeRe:a.color.closeRe};return build.call(this,this._styles?this._styles.concat(o):[o],this._empty,t)}}}}a.bgColor.closeRe=new RegExp(o(a.bgColor.close),"g");for(const t of Object.keys(a.bgColor.ansi)){if(d.has(t)){continue}const r="bg"+t[0].toUpperCase()+t.slice(1);m[r]={get(){const r=this.level;return function(){const i=a.bgColor[p[r]][t].apply(null,arguments);const o={open:i,close:a.bgColor.close,closeRe:a.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(o):[o],this._empty,t)}}}}const g=Object.defineProperties((()=>{}),m);function build(t,r,i){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=t;builder._empty=r;const o=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return o.level},set(t){o.level=t}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return o.enabled},set(t){o.enabled=t}});builder.hasGrey=this.hasGrey||i==="gray"||i==="grey";builder.__proto__=g;return builder}function applyStyle(){const t=arguments;const r=t.length;let i=String(arguments[0]);if(r===0){return""}if(r>1){for(let o=1;o<r;o++){i+=" "+t[o]}}if(!this.enabled||this.level<=0||!i){return this._empty?"":i}const o=a.dim.open;if(h&&this.hasGrey){a.dim.open=""}for(const t of this._styles.slice().reverse()){i=t.open+i.replace(t.closeRe,t.open)+t.close;i=i.replace(/\r?\n/g,`${t.close}$&${t.open}`)}a.dim.open=o;return i}function chalkTag(t,r){if(!Array.isArray(r)){return[].slice.call(arguments,1).join(" ")}const i=[].slice.call(arguments,2);const o=[r.raw[0]];for(let t=1;t<r.length;t++){o.push(String(i[t-1]).replace(/[{}\\]/g,"\\$&"));o.push(String(r.raw[t]))}return l(t,o.join(""))}Object.defineProperties(Chalk.prototype,m);t.exports=Chalk();t.exports.supportsColor=u;t.exports["default"]=t.exports},9149:t=>{"use strict";const r=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const a=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const u=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(t){if(t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}return u.get(t)||t}function parseArguments(t,r){const i=[];const u=r.trim().split(/\s*,\s*/g);let l;for(const r of u){if(!isNaN(r)){i.push(Number(r))}else if(l=r.match(o)){i.push(l[2].replace(a,((t,r,i)=>r?unescape(r):i)))}else{throw new Error(`Invalid Chalk template style argument: ${r} (in style '${t}')`)}}return i}function parseStyle(t){i.lastIndex=0;const r=[];let o;while((o=i.exec(t))!==null){const t=o[1];if(o[2]){const i=parseArguments(t,o[2]);r.push([t].concat(i))}else{r.push([t])}}return r}function buildStyle(t,r){const i={};for(const t of r){for(const r of t.styles){i[r[0]]=t.inverse?null:r.slice(1)}}let o=t;for(const t of Object.keys(i)){if(Array.isArray(i[t])){if(!(t in o)){throw new Error(`Unknown Chalk style: ${t}`)}if(i[t].length>0){o=o[t].apply(o,i[t])}else{o=o[t]}}}return o}t.exports=(t,i)=>{const o=[];const a=[];let u=[];i.replace(r,((r,i,l,h,p,d)=>{if(i){u.push(unescape(i))}else if(h){const r=u.join("");u=[];a.push(o.length===0?r:buildStyle(t,o)(r));o.push({inverse:l,styles:parseStyle(h)})}else if(p){if(o.length===0){throw new Error("Found extraneous } in Chalk template literal")}a.push(buildStyle(t,o)(u.join("")));u=[];o.pop()}else{u.push(d)}}));a.push(u.join(""));if(o.length>0){const t=`Chalk template literal is missing ${o.length} closing bracket${o.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return a.join("")}},9335:(t,r,i)=>{"use strict";const o=i(8664);let a=false;r.show=t=>{const r=t||process.stderr;if(!r.isTTY){return}a=false;r.write("[?25h")};r.hide=t=>{const r=t||process.stderr;if(!r.isTTY){return}o();a=true;r.write("[?25l")};r.toggle=(t,i)=>{if(t!==undefined){a=t}if(a){r.show(i)}else{r.hide(i)}}},789:t=>{"use strict";var r=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if(typeof t!=="string"){throw new TypeError("Expected a string")}return t.replace(r,"\\$&")}},125:t=>{"use strict";t.exports=(t,r)=>{r=r||process.argv;const i=t.startsWith("-")?"":t.length===1?"-":"--";const o=r.indexOf(i+t);const a=r.indexOf("--");return o!==-1&&(a===-1?true:o<a)}},2554:(t,r,i)=>{"use strict";const o=i(3585);const a=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color";const u={info:o.blue("ℹ"),success:o.green("✔"),warning:o.yellow("⚠"),error:o.red("✖")};const l={info:o.blue("i"),success:o.green("√"),warning:o.yellow("‼"),error:o.red("×")};t.exports=a?u:l},4048:t=>{"use strict";t.exports=(t,r)=>{for(const i of Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))}return t}},3527:(t,r,i)=>{"use strict";const o=i(4048);t.exports=(t,r)=>{if(r===true){throw new TypeError("The second argument is now an options object")}if(typeof t!=="function"){throw new TypeError("Expected a function")}r=r||{};let i;let a=false;const u=t.displayName||t.name||"<anonymous>";const onetime=function(){if(a){if(r.throw===true){throw new Error(`Function \`${u}\` can only be called once`)}return i}a=true;i=t.apply(this,arguments);t=null;return i};o(onetime,t);return onetime}},8664:(t,r,i)=>{"use strict";const o=i(3527);const a=i(2028);t.exports=o((()=>{a((()=>{process.stderr.write("[?25h")}),{alwaysLast:true})}))},6022:(t,r,i)=>{"use strict";const o=i(6334);const stripAnsi=t=>typeof t==="string"?t.replace(o(),""):t;t.exports=stripAnsi;t.exports["default"]=stripAnsi},5387:(t,r,i)=>{"use strict";const o=i(2037);const a=i(125);const u=process.env;let l;if(a("no-color")||a("no-colors")||a("color=false")){l=false}else if(a("color")||a("colors")||a("color=true")||a("color=always")){l=true}if("FORCE_COLOR"in u){l=u.FORCE_COLOR.length===0||parseInt(u.FORCE_COLOR,10)!==0}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t){if(l===false){return 0}if(a("color=16m")||a("color=full")||a("color=truecolor")){return 3}if(a("color=256")){return 2}if(t&&!t.isTTY&&l!==true){return 0}const r=l?1:0;if(process.platform==="win32"){const t=o.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in u){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((t=>t in u))||u.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in u){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(u.TEAMCITY_VERSION)?1:0}if(u.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in u){const t=parseInt((u.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(u.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(u.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(u.TERM)){return 1}if("COLORTERM"in u){return 1}if(u.TERM==="dumb"){return r}return r}function getSupportLevel(t){const r=supportsColor(t);return translateLevel(r)}t.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},9397:(t,r,i)=>{let o=process.argv||[],a=process.env;let u=!("NO_COLOR"in a||o.includes("--no-color"))&&("FORCE_COLOR"in a||o.includes("--color")||process.platform==="win32"||require!=null&&i(6224).isatty(1)&&a.TERM!=="dumb"||"CI"in a);let formatter=(t,r,i=t)=>o=>{let a=""+o;let u=a.indexOf(r,t.length);return~u?t+replaceClose(a,r,i,u)+r:t+a+r};let replaceClose=(t,r,i,o)=>{let a="";let u=0;do{a+=t.substring(u,o)+i;u=o+r.length;o=t.indexOf(r,u)}while(~o);return a+t.substring(u)};let createColors=(t=u)=>{let r=t?formatter:()=>String;return{isColorSupported:t,reset:r("",""),bold:r("","",""),dim:r("","",""),italic:r("",""),underline:r("",""),inverse:r("",""),hidden:r("",""),strikethrough:r("",""),black:r("",""),red:r("",""),green:r("",""),yellow:r("",""),blue:r("",""),magenta:r("",""),cyan:r("",""),white:r("",""),gray:r("",""),bgBlack:r("",""),bgRed:r("",""),bgGreen:r("",""),bgYellow:r("",""),bgBlue:r("",""),bgMagenta:r("",""),bgCyan:r("",""),bgWhite:r("","")}};t.exports=createColors();t.exports.createColors=createColors},9138:(t,r,i)=>{"use strict";t.exports=i(4755)},8223:(t,r,i)=>{"use strict";const o=i(1017);const a="\\\\/";const u=`[^${a}]`;const l="\\.";const h="\\+";const p="\\?";const d="\\/";const m="(?=.)";const g="[^/]";const y=`(?:${d}|$)`;const A=`(?:^|${d})`;const b=`${l}{1,2}${y}`;const v=`(?!${l})`;const w=`(?!${A}${b})`;const E=`(?!${l}{0,1}${y})`;const _=`(?!${b})`;const S=`[^.${d}]`;const C=`${g}*?`;const D={DOT_LITERAL:l,PLUS_LITERAL:h,QMARK_LITERAL:p,SLASH_LITERAL:d,ONE_CHAR:m,QMARK:g,END_ANCHOR:y,DOTS_SLASH:b,NO_DOT:v,NO_DOTS:w,NO_DOT_SLASH:E,NO_DOTS_SLASH:_,QMARK_NO_DOT:S,STAR:C,START_ANCHOR:A};const x={...D,SLASH_LITERAL:`[${a}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${l}{1,2}(?:[${a}]|$)`,NO_DOT:`(?!${l})`,NO_DOTS:`(?!(?:^|[${a}])${l}{1,2}(?:[${a}]|$))`,NO_DOT_SLASH:`(?!${l}{0,1}(?:[${a}]|$))`,NO_DOTS_SLASH:`(?!${l}{1,2}(?:[${a}]|$))`,QMARK_NO_DOT:`[^.${a}]`,START_ANCHOR:`(?:^|[${a}])`,END_ANCHOR:`(?:[${a}]|$)`};const R={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:R,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:o.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?x:D}}},1833:(t,r,i)=>{"use strict";const o=i(8223);const a=i(2924);const{MAX_LENGTH:u,POSIX_REGEX_SOURCE:l,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:p,REPLACEMENTS:d}=o;const expandRange=(t,r)=>{if(typeof r.expandRange==="function"){return r.expandRange(...t,r)}t.sort();const i=`[${t.join("-")}]`;try{new RegExp(i)}catch(r){return t.map((t=>a.escapeRegex(t))).join("..")}return i};const syntaxError=(t,r)=>`Missing ${t}: "${r}" - use "\\\\${r}" to match literal characters`;const parse=(t,r)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=d[t]||t;const i={...r};const m=typeof i.maxLength==="number"?Math.min(u,i.maxLength):u;let g=t.length;if(g>m){throw new SyntaxError(`Input length: ${g}, exceeds maximum allowed length: ${m}`)}const y={type:"bos",value:"",output:i.prepend||""};const A=[y];const b=i.capture?"":"?:";const v=a.isWindows(r);const w=o.globChars(v);const E=o.extglobChars(w);const{DOT_LITERAL:_,PLUS_LITERAL:S,SLASH_LITERAL:C,ONE_CHAR:D,DOTS_SLASH:x,NO_DOT:R,NO_DOT_SLASH:O,NO_DOTS_SLASH:k,QMARK:P,QMARK_NO_DOT:T,STAR:L,START_ANCHOR:I}=w;const globstar=t=>`(${b}(?:(?!${I}${t.dot?x:_}).)*?)`;const M=i.dot?"":R;const B=i.dot?P:T;let N=i.bash===true?globstar(i):L;if(i.capture){N=`(${N})`}if(typeof i.noext==="boolean"){i.noextglob=i.noext}const $={input:t,index:-1,start:0,dot:i.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:A};t=a.removePrefix(t,$);g=t.length;const j=[];const H=[];const G=[];let U=y;let W;const eos=()=>$.index===g-1;const z=$.peek=(r=1)=>t[$.index+r];const Y=$.advance=()=>t[++$.index]||"";const remaining=()=>t.slice($.index+1);const consume=(t="",r=0)=>{$.consumed+=t;$.index+=r};const append=t=>{$.output+=t.output!=null?t.output:t.value;consume(t.value)};const negate=()=>{let t=1;while(z()==="!"&&(z(2)!=="("||z(3)==="?")){Y();$.start++;t++}if(t%2===0){return false}$.negated=true;$.start++;return true};const increment=t=>{$[t]++;G.push(t)};const decrement=t=>{$[t]--;G.pop()};const push=t=>{if(U.type==="globstar"){const r=$.braces>0&&(t.type==="comma"||t.type==="brace");const i=t.extglob===true||j.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!r&&!i){$.output=$.output.slice(0,-U.output.length);U.type="star";U.value="*";U.output=N;$.output+=U.output}}if(j.length&&t.type!=="paren"){j[j.length-1].inner+=t.value}if(t.value||t.output)append(t);if(U&&U.type==="text"&&t.type==="text"){U.value+=t.value;U.output=(U.output||"")+t.value;return}t.prev=U;A.push(t);U=t};const extglobOpen=(t,r)=>{const o={...E[r],conditions:1,inner:""};o.prev=U;o.parens=$.parens;o.output=$.output;const a=(i.capture?"(":"")+o.open;increment("parens");push({type:t,value:r,output:$.output?"":D});push({type:"paren",extglob:true,value:Y(),output:a});j.push(o)};const extglobClose=t=>{let o=t.close+(i.capture?")":"");let a;if(t.type==="negate"){let u=N;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){u=globstar(i)}if(u!==N||eos()||/^\)+$/.test(remaining())){o=t.close=`)$))${u}`}if(t.inner.includes("*")&&(a=remaining())&&/^\.[^\\/.]+$/.test(a)){const i=parse(a,{...r,fastpaths:false}).output;o=t.close=`)${i})${u})`}if(t.prev.type==="bos"){$.negatedExtglob=true}}push({type:"paren",extglob:true,value:W,output:o});decrement("parens")};if(i.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let o=false;let u=t.replace(p,((t,r,i,a,u,l)=>{if(a==="\\"){o=true;return t}if(a==="?"){if(r){return r+a+(u?P.repeat(u.length):"")}if(l===0){return B+(u?P.repeat(u.length):"")}return P.repeat(i.length)}if(a==="."){return _.repeat(i.length)}if(a==="*"){if(r){return r+a+(u?N:"")}return N}return r?t:`\\${t}`}));if(o===true){if(i.unescape===true){u=u.replace(/\\/g,"")}else{u=u.replace(/\\+/g,(t=>t.length%2===0?"\\\\":t?"\\":""))}}if(u===t&&i.contains===true){$.output=t;return $}$.output=a.wrapOutput(u,$,r);return $}while(!eos()){W=Y();if(W==="\0"){continue}if(W==="\\"){const t=z();if(t==="/"&&i.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){W+="\\";push({type:"text",value:W});continue}const r=/^\\+/.exec(remaining());let o=0;if(r&&r[0].length>2){o=r[0].length;$.index+=o;if(o%2!==0){W+="\\"}}if(i.unescape===true){W=Y()}else{W+=Y()}if($.brackets===0){push({type:"text",value:W});continue}}if($.brackets>0&&(W!=="]"||U.value==="["||U.value==="[^")){if(i.posix!==false&&W===":"){const t=U.value.slice(1);if(t.includes("[")){U.posix=true;if(t.includes(":")){const t=U.value.lastIndexOf("[");const r=U.value.slice(0,t);const i=U.value.slice(t+2);const o=l[i];if(o){U.value=r+o;$.backtrack=true;Y();if(!y.output&&A.indexOf(U)===1){y.output=D}continue}}}}if(W==="["&&z()!==":"||W==="-"&&z()==="]"){W=`\\${W}`}if(W==="]"&&(U.value==="["||U.value==="[^")){W=`\\${W}`}if(i.posix===true&&W==="!"&&U.value==="["){W="^"}U.value+=W;append({value:W});continue}if($.quotes===1&&W!=='"'){W=a.escapeRegex(W);U.value+=W;append({value:W});continue}if(W==='"'){$.quotes=$.quotes===1?0:1;if(i.keepQuotes===true){push({type:"text",value:W})}continue}if(W==="("){increment("parens");push({type:"paren",value:W});continue}if(W===")"){if($.parens===0&&i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const t=j[j.length-1];if(t&&$.parens===t.parens+1){extglobClose(j.pop());continue}push({type:"paren",value:W,output:$.parens?")":"\\)"});decrement("parens");continue}if(W==="["){if(i.nobracket===true||!remaining().includes("]")){if(i.nobracket!==true&&i.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}W=`\\${W}`}else{increment("brackets")}push({type:"bracket",value:W});continue}if(W==="]"){if(i.nobracket===true||U&&U.type==="bracket"&&U.value.length===1){push({type:"text",value:W,output:`\\${W}`});continue}if($.brackets===0){if(i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:W,output:`\\${W}`});continue}decrement("brackets");const t=U.value.slice(1);if(U.posix!==true&&t[0]==="^"&&!t.includes("/")){W=`/${W}`}U.value+=W;append({value:W});if(i.literalBrackets===false||a.hasRegexChars(t)){continue}const r=a.escapeRegex(U.value);$.output=$.output.slice(0,-U.value.length);if(i.literalBrackets===true){$.output+=r;U.value=r;continue}U.value=`(${b}${r}|${U.value})`;$.output+=U.value;continue}if(W==="{"&&i.nobrace!==true){increment("braces");const t={type:"brace",value:W,output:"(",outputIndex:$.output.length,tokensIndex:$.tokens.length};H.push(t);push(t);continue}if(W==="}"){const t=H[H.length-1];if(i.nobrace===true||!t){push({type:"text",value:W,output:W});continue}let r=")";if(t.dots===true){const t=A.slice();const o=[];for(let r=t.length-1;r>=0;r--){A.pop();if(t[r].type==="brace"){break}if(t[r].type!=="dots"){o.unshift(t[r].value)}}r=expandRange(o,i);$.backtrack=true}if(t.comma!==true&&t.dots!==true){const i=$.output.slice(0,t.outputIndex);const o=$.tokens.slice(t.tokensIndex);t.value=t.output="\\{";W=r="\\}";$.output=i;for(const t of o){$.output+=t.output||t.value}}push({type:"brace",value:W,output:r});decrement("braces");H.pop();continue}if(W==="|"){if(j.length>0){j[j.length-1].conditions++}push({type:"text",value:W});continue}if(W===","){let t=W;const r=H[H.length-1];if(r&&G[G.length-1]==="braces"){r.comma=true;t="|"}push({type:"comma",value:W,output:t});continue}if(W==="/"){if(U.type==="dot"&&$.index===$.start+1){$.start=$.index+1;$.consumed="";$.output="";A.pop();U=y;continue}push({type:"slash",value:W,output:C});continue}if(W==="."){if($.braces>0&&U.type==="dot"){if(U.value===".")U.output=_;const t=H[H.length-1];U.type="dots";U.output+=W;U.value+=W;t.dots=true;continue}if($.braces+$.parens===0&&U.type!=="bos"&&U.type!=="slash"){push({type:"text",value:W,output:_});continue}push({type:"dot",value:W,output:_});continue}if(W==="?"){const t=U&&U.value==="(";if(!t&&i.noextglob!==true&&z()==="("&&z(2)!=="?"){extglobOpen("qmark",W);continue}if(U&&U.type==="paren"){const t=z();let r=W;if(t==="<"&&!a.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(U.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(remaining())){r=`\\${W}`}push({type:"text",value:W,output:r});continue}if(i.dot!==true&&(U.type==="slash"||U.type==="bos")){push({type:"qmark",value:W,output:T});continue}push({type:"qmark",value:W,output:P});continue}if(W==="!"){if(i.noextglob!==true&&z()==="("){if(z(2)!=="?"||!/[!=<:]/.test(z(3))){extglobOpen("negate",W);continue}}if(i.nonegate!==true&&$.index===0){negate();continue}}if(W==="+"){if(i.noextglob!==true&&z()==="("&&z(2)!=="?"){extglobOpen("plus",W);continue}if(U&&U.value==="("||i.regex===false){push({type:"plus",value:W,output:S});continue}if(U&&(U.type==="bracket"||U.type==="paren"||U.type==="brace")||$.parens>0){push({type:"plus",value:W});continue}push({type:"plus",value:S});continue}if(W==="@"){if(i.noextglob!==true&&z()==="("&&z(2)!=="?"){push({type:"at",extglob:true,value:W,output:""});continue}push({type:"text",value:W});continue}if(W!=="*"){if(W==="$"||W==="^"){W=`\\${W}`}const t=h.exec(remaining());if(t){W+=t[0];$.index+=t[0].length}push({type:"text",value:W});continue}if(U&&(U.type==="globstar"||U.star===true)){U.type="star";U.star=true;U.value+=W;U.output=N;$.backtrack=true;$.globstar=true;consume(W);continue}let r=remaining();if(i.noextglob!==true&&/^\([^?]/.test(r)){extglobOpen("star",W);continue}if(U.type==="star"){if(i.noglobstar===true){consume(W);continue}const o=U.prev;const a=o.prev;const u=o.type==="slash"||o.type==="bos";const l=a&&(a.type==="star"||a.type==="globstar");if(i.bash===true&&(!u||r[0]&&r[0]!=="/")){push({type:"star",value:W,output:""});continue}const h=$.braces>0&&(o.type==="comma"||o.type==="brace");const p=j.length&&(o.type==="pipe"||o.type==="paren");if(!u&&o.type!=="paren"&&!h&&!p){push({type:"star",value:W,output:""});continue}while(r.slice(0,3)==="/**"){const i=t[$.index+4];if(i&&i!=="/"){break}r=r.slice(3);consume("/**",3)}if(o.type==="bos"&&eos()){U.type="globstar";U.value+=W;U.output=globstar(i);$.output=U.output;$.globstar=true;consume(W);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&!l&&eos()){$.output=$.output.slice(0,-(o.output+U.output).length);o.output=`(?:${o.output}`;U.type="globstar";U.output=globstar(i)+(i.strictSlashes?")":"|$)");U.value+=W;$.globstar=true;$.output+=o.output+U.output;consume(W);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&r[0]==="/"){const t=r[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(o.output+U.output).length);o.output=`(?:${o.output}`;U.type="globstar";U.output=`${globstar(i)}${C}|${C}${t})`;U.value+=W;$.output+=o.output+U.output;$.globstar=true;consume(W+Y());push({type:"slash",value:"/",output:""});continue}if(o.type==="bos"&&r[0]==="/"){U.type="globstar";U.value+=W;U.output=`(?:^|${C}|${globstar(i)}${C})`;$.output=U.output;$.globstar=true;consume(W+Y());push({type:"slash",value:"/",output:""});continue}$.output=$.output.slice(0,-U.output.length);U.type="globstar";U.output=globstar(i);U.value+=W;$.output+=U.output;$.globstar=true;consume(W);continue}const o={type:"star",value:W,output:N};if(i.bash===true){o.output=".*?";if(U.type==="bos"||U.type==="slash"){o.output=M+o.output}push(o);continue}if(U&&(U.type==="bracket"||U.type==="paren")&&i.regex===true){o.output=W;push(o);continue}if($.index===$.start||U.type==="slash"||U.type==="dot"){if(U.type==="dot"){$.output+=O;U.output+=O}else if(i.dot===true){$.output+=k;U.output+=k}else{$.output+=M;U.output+=M}if(z()!=="*"){$.output+=D;U.output+=D}}push(o)}while($.brackets>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));$.output=a.escapeLast($.output,"[");decrement("brackets")}while($.parens>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));$.output=a.escapeLast($.output,"(");decrement("parens")}while($.braces>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));$.output=a.escapeLast($.output,"{");decrement("braces")}if(i.strictSlashes!==true&&(U.type==="star"||U.type==="bracket")){push({type:"maybe_slash",value:"",output:`${C}?`})}if($.backtrack===true){$.output="";for(const t of $.tokens){$.output+=t.output!=null?t.output:t.value;if(t.suffix){$.output+=t.suffix}}}return $};parse.fastpaths=(t,r)=>{const i={...r};const l=typeof i.maxLength==="number"?Math.min(u,i.maxLength):u;const h=t.length;if(h>l){throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${l}`)}t=d[t]||t;const p=a.isWindows(r);const{DOT_LITERAL:m,SLASH_LITERAL:g,ONE_CHAR:y,DOTS_SLASH:A,NO_DOT:b,NO_DOTS:v,NO_DOTS_SLASH:w,STAR:E,START_ANCHOR:_}=o.globChars(p);const S=i.dot?v:b;const C=i.dot?w:b;const D=i.capture?"":"?:";const x={negated:false,prefix:""};let R=i.bash===true?".*?":E;if(i.capture){R=`(${R})`}const globstar=t=>{if(t.noglobstar===true)return R;return`(${D}(?:(?!${_}${t.dot?A:m}).)*?)`};const create=t=>{switch(t){case"*":return`${S}${y}${R}`;case".*":return`${m}${y}${R}`;case"*.*":return`${S}${R}${m}${y}${R}`;case"*/*":return`${S}${R}${g}${y}${C}${R}`;case"**":return S+globstar(i);case"**/*":return`(?:${S}${globstar(i)}${g})?${C}${y}${R}`;case"**/*.*":return`(?:${S}${globstar(i)}${g})?${C}${R}${m}${y}${R}`;case"**/.*":return`(?:${S}${globstar(i)}${g})?${m}${y}${R}`;default:{const r=/^(.*?)\.(\w+)$/.exec(t);if(!r)return;const i=create(r[1]);if(!i)return;return i+m+r[2]}}};const O=a.removePrefix(t,x);let k=create(O);if(k&&i.strictSlashes!==true){k+=`${g}?`}return k};t.exports=parse},4755:(t,r,i)=>{"use strict";const o=i(1017);const a=i(2017);const u=i(1833);const l=i(2924);const h=i(8223);const isObject=t=>t&&typeof t==="object"&&!Array.isArray(t);const picomatch=(t,r,i=false)=>{if(Array.isArray(t)){const o=t.map((t=>picomatch(t,r,i)));const arrayMatcher=t=>{for(const r of o){const i=r(t);if(i)return i}return false};return arrayMatcher}const o=isObject(t)&&t.tokens&&t.input;if(t===""||typeof t!=="string"&&!o){throw new TypeError("Expected pattern to be a non-empty string")}const a=r||{};const u=l.isWindows(r);const h=o?picomatch.compileRe(t,r):picomatch.makeRe(t,r,false,true);const p=h.state;delete h.state;let isIgnored=()=>false;if(a.ignore){const t={...r,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(a.ignore,t,i)}const matcher=(i,o=false)=>{const{isMatch:l,match:d,output:m}=picomatch.test(i,h,r,{glob:t,posix:u});const g={glob:t,state:p,regex:h,posix:u,input:i,output:m,match:d,isMatch:l};if(typeof a.onResult==="function"){a.onResult(g)}if(l===false){g.isMatch=false;return o?g:false}if(isIgnored(i)){if(typeof a.onIgnore==="function"){a.onIgnore(g)}g.isMatch=false;return o?g:false}if(typeof a.onMatch==="function"){a.onMatch(g)}return o?g:true};if(i){matcher.state=p}return matcher};picomatch.test=(t,r,i,{glob:o,posix:a}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const u=i||{};const h=u.format||(a?l.toPosixSlashes:null);let p=t===o;let d=p&&h?h(t):t;if(p===false){d=h?h(t):t;p=d===o}if(p===false||u.capture===true){if(u.matchBase===true||u.basename===true){p=picomatch.matchBase(t,r,i,a)}else{p=r.exec(d)}}return{isMatch:Boolean(p),match:p,output:d}};picomatch.matchBase=(t,r,i,a=l.isWindows(i))=>{const u=r instanceof RegExp?r:picomatch.makeRe(r,i);return u.test(o.basename(t))};picomatch.isMatch=(t,r,i)=>picomatch(r,i)(t);picomatch.parse=(t,r)=>{if(Array.isArray(t))return t.map((t=>picomatch.parse(t,r)));return u(t,{...r,fastpaths:false})};picomatch.scan=(t,r)=>a(t,r);picomatch.compileRe=(t,r,i=false,o=false)=>{if(i===true){return t.output}const a=r||{};const u=a.contains?"":"^";const l=a.contains?"":"$";let h=`${u}(?:${t.output})${l}`;if(t&&t.negated===true){h=`^(?!${h}).*$`}const p=picomatch.toRegex(h,r);if(o===true){p.state=t}return p};picomatch.makeRe=(t,r={},i=false,o=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}let a={negated:false,fastpaths:true};if(r.fastpaths!==false&&(t[0]==="."||t[0]==="*")){a.output=u.fastpaths(t,r)}if(!a.output){a=u(t,r)}return picomatch.compileRe(a,r,i,o)};picomatch.toRegex=(t,r)=>{try{const i=r||{};return new RegExp(t,i.flags||(i.nocase?"i":""))}catch(t){if(r&&r.debug===true)throw t;return/$^/}};picomatch.constants=h;t.exports=picomatch},2017:(t,r,i)=>{"use strict";const o=i(2924);const{CHAR_ASTERISK:a,CHAR_AT:u,CHAR_BACKWARD_SLASH:l,CHAR_COMMA:h,CHAR_DOT:p,CHAR_EXCLAMATION_MARK:d,CHAR_FORWARD_SLASH:m,CHAR_LEFT_CURLY_BRACE:g,CHAR_LEFT_PARENTHESES:y,CHAR_LEFT_SQUARE_BRACKET:A,CHAR_PLUS:b,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:w,CHAR_RIGHT_PARENTHESES:E,CHAR_RIGHT_SQUARE_BRACKET:_}=i(8223);const isPathSeparator=t=>t===m||t===l;const depth=t=>{if(t.isPrefix!==true){t.depth=t.isGlobstar?Infinity:1}};const scan=(t,r)=>{const i=r||{};const S=t.length-1;const C=i.parts===true||i.scanToEnd===true;const D=[];const x=[];const R=[];let O=t;let k=-1;let P=0;let T=0;let L=false;let I=false;let M=false;let B=false;let N=false;let $=false;let j=false;let H=false;let G=false;let U=false;let W=0;let z;let Y;let V={value:"",depth:0,isGlob:false};const eos=()=>k>=S;const peek=()=>O.charCodeAt(k+1);const advance=()=>{z=Y;return O.charCodeAt(++k)};while(k<S){Y=advance();let t;if(Y===l){j=V.backslashes=true;Y=advance();if(Y===g){$=true}continue}if($===true||Y===g){W++;while(eos()!==true&&(Y=advance())){if(Y===l){j=V.backslashes=true;advance();continue}if(Y===g){W++;continue}if($!==true&&Y===p&&(Y=advance())===p){L=V.isBrace=true;M=V.isGlob=true;U=true;if(C===true){continue}break}if($!==true&&Y===h){L=V.isBrace=true;M=V.isGlob=true;U=true;if(C===true){continue}break}if(Y===w){W--;if(W===0){$=false;L=V.isBrace=true;U=true;break}}}if(C===true){continue}break}if(Y===m){D.push(k);x.push(V);V={value:"",depth:0,isGlob:false};if(U===true)continue;if(z===p&&k===P+1){P+=2;continue}T=k+1;continue}if(i.noext!==true){const t=Y===b||Y===u||Y===a||Y===v||Y===d;if(t===true&&peek()===y){M=V.isGlob=true;B=V.isExtglob=true;U=true;if(Y===d&&k===P){G=true}if(C===true){while(eos()!==true&&(Y=advance())){if(Y===l){j=V.backslashes=true;Y=advance();continue}if(Y===E){M=V.isGlob=true;U=true;break}}continue}break}}if(Y===a){if(z===a)N=V.isGlobstar=true;M=V.isGlob=true;U=true;if(C===true){continue}break}if(Y===v){M=V.isGlob=true;U=true;if(C===true){continue}break}if(Y===A){while(eos()!==true&&(t=advance())){if(t===l){j=V.backslashes=true;advance();continue}if(t===_){I=V.isBracket=true;M=V.isGlob=true;U=true;break}}if(C===true){continue}break}if(i.nonegate!==true&&Y===d&&k===P){H=V.negated=true;P++;continue}if(i.noparen!==true&&Y===y){M=V.isGlob=true;if(C===true){while(eos()!==true&&(Y=advance())){if(Y===y){j=V.backslashes=true;Y=advance();continue}if(Y===E){U=true;break}}continue}break}if(M===true){U=true;if(C===true){continue}break}}if(i.noext===true){B=false;M=false}let Q=O;let K="";let X="";if(P>0){K=O.slice(0,P);O=O.slice(P);T-=P}if(Q&&M===true&&T>0){Q=O.slice(0,T);X=O.slice(T)}else if(M===true){Q="";X=O}else{Q=O}if(Q&&Q!==""&&Q!=="/"&&Q!==O){if(isPathSeparator(Q.charCodeAt(Q.length-1))){Q=Q.slice(0,-1)}}if(i.unescape===true){if(X)X=o.removeBackslashes(X);if(Q&&j===true){Q=o.removeBackslashes(Q)}}const q={prefix:K,input:t,start:P,base:Q,glob:X,isBrace:L,isBracket:I,isGlob:M,isExtglob:B,isGlobstar:N,negated:H,negatedExtglob:G};if(i.tokens===true){q.maxDepth=0;if(!isPathSeparator(Y)){x.push(V)}q.tokens=x}if(i.parts===true||i.tokens===true){let r;for(let o=0;o<D.length;o++){const a=r?r+1:P;const u=D[o];const l=t.slice(a,u);if(i.tokens){if(o===0&&P!==0){x[o].isPrefix=true;x[o].value=K}else{x[o].value=l}depth(x[o]);q.maxDepth+=x[o].depth}if(o!==0||l!==""){R.push(l)}r=u}if(r&&r+1<t.length){const o=t.slice(r+1);R.push(o);if(i.tokens){x[x.length-1].value=o;depth(x[x.length-1]);q.maxDepth+=x[x.length-1].depth}}q.slashes=D;q.parts=R}return q};t.exports=scan},2924:(t,r,i)=>{"use strict";const o=i(1017);const a=process.platform==="win32";const{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:l,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:p}=i(8223);r.isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);r.hasRegexChars=t=>h.test(t);r.isRegexChar=t=>t.length===1&&r.hasRegexChars(t);r.escapeRegex=t=>t.replace(p,"\\$1");r.toPosixSlashes=t=>t.replace(u,"/");r.removeBackslashes=t=>t.replace(l,(t=>t==="\\"?"":t));r.supportsLookbehinds=()=>{const t=process.version.slice(1).split(".").map(Number);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false};r.isWindows=t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return a===true||o.sep==="\\"};r.escapeLast=(t,i,o)=>{const a=t.lastIndexOf(i,o);if(a===-1)return t;if(t[a-1]==="\\")return r.escapeLast(t,i,a-1);return`${t.slice(0,a)}\\${t.slice(a)}`};r.removePrefix=(t,r={})=>{let i=t;if(i.startsWith("./")){i=i.slice(2);r.prefix="./"}return i};r.wrapOutput=(t,r={},i={})=>{const o=i.contains?"":"^";const a=i.contains?"":"$";let u=`${o}(?:${t})${a}`;if(r.negated===true){u=`(?:^(?!${u}).*$)`}return u}},399:t=>{"use strict";class DatePart{constructor({token:t,date:r,parts:i,locales:o}){this.token=t;this.date=r||new Date;this.parts=i||[this];this.locales=o||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,i)=>i>t&&r instanceof DatePart))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,i)=>i>r&&t instanceof DatePart))}toString(){return String(this.date)}}t.exports=DatePart},7967:(t,r,i)=>{"use strict";const o=i(399);const pos=t=>{t=t%10;return t===1?"st":t===2?"nd":t===3?"rd":"th"};class Day extends o{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate();let r=this.date.getDay();return this.token==="DD"?String(t).padStart(2,"0"):this.token==="Do"?t+pos(t):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:t}}t.exports=Day},4102:(t,r,i)=>{"use strict";const o=i(399);class Hours extends o{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();if(/h/.test(this.token))t=t%12||12;return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Hours},7517:(t,r,i)=>{"use strict";t.exports={DatePart:i(399),Meridiem:i(4128),Day:i(7967),Hours:i(4102),Milliseconds:i(6945),Minutes:i(7829),Month:i(8608),Seconds:i(812),Year:i(5227)}},4128:(t,r,i)=>{"use strict";const o=i(399);class Meridiem extends o{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}t.exports=Meridiem},6945:(t,r,i)=>{"use strict";const o=i(399);class Milliseconds extends o{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}t.exports=Milliseconds},7829:(t,r,i)=>{"use strict";const o=i(399);class Minutes extends o{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Minutes},8608:(t,r,i)=>{"use strict";const o=i(399);class Month extends o{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1;this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth();let r=this.token.length;return r===2?String(t+1).padStart(2,"0"):r===3?this.locales.monthsShort[t]:r===4?this.locales.months[t]:String(t+1)}}t.exports=Month},812:(t,r,i)=>{"use strict";const o=i(399);class Seconds extends o{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Seconds},5227:(t,r,i)=>{"use strict";const o=i(399);class Year extends o{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?t.substr(-2):t}}t.exports=Year},935:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var p=h.value}catch(t){i(t);return}if(h.done){r(p)}else{Promise.resolve(p).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(9439);const a=i(5876);const u=i(332),l=u.erase,h=u.cursor;const p=i(2800),d=p.style,m=p.clear,g=p.figures,y=p.wrap,A=p.entriesToDisplay;const getVal=(t,r)=>t[r]&&(t[r].value||t[r].title||t[r]);const getTitle=(t,r)=>t[r]&&(t[r].title||t[r].value||t[r]);const getIndex=(t,r)=>{const i=t.findIndex((t=>t.value===r||t.title===r));return i>-1?i:undefined};class AutocompletePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.suggest=t.suggest;this.choices=t.choices;this.initial=typeof t.initial==="number"?t.initial:getIndex(t.choices,t.initial);this.select=this.initial||t.cursor||0;this.i18n={noMatches:t.noMatches||"no matches found"};this.fallback=t.fallback||this.initial;this.clearFirst=t.clearFirst||false;this.suggestions=[];this.input="";this.limit=t.limit||10;this.cursor=0;this.transform=d.render(t.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=m("",this.out.columns);this.complete(this.render);this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;if(typeof this._fb==="number")t=this.choices[this._fb];else if(typeof this._fb==="string")t={title:this._fb};return t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t;if(this.suggestions.length>0)this.value=getVal(this.suggestions,t);else this.value=this.fallback.value;this.fire()}complete(t){var r=this;return _asyncToGenerator((function*(){const i=r.completing=r.suggest(r.input,r.choices);const o=yield i;if(r.completing!==i)return;r.suggestions=o.map(((t,r,i)=>({title:getTitle(i,r),value:getVal(i,r),description:t.description})));r.completing=false;const a=Math.max(o.length-1,0);r.moveSelect(Math.min(a,r.select));t&&t()}))()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}exit(){if(this.clearFirst&&this.input.length>0){this.reset()}else{this.done=this.exited=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}abort(){this.done=this.aborted=true;this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){let i=this.input.slice(0,this.cursor);let o=this.input.slice(this.cursor);this.input=`${i}${t}${o}`;this.cursor=i.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let t=this.input.slice(0,this.cursor-1);let r=this.input.slice(this.cursor);this.input=`${t}${r}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor);let r=this.input.slice(this.cursor+1);this.input=`${t}${r}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select===0){this.moveSelect(this.suggestions.length-1)}else{this.moveSelect(this.select-1)}this.render()}down(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else{this.moveSelect(this.select+1)}this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1));this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0));this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}renderOption(t,r,i,a){let u;let l=i?g.arrowUp:a?g.arrowDown:" ";let h=r?o.cyan().underline(t.title):t.title;l=(r?o.cyan(g.pointer)+" ":" ")+l;if(t.description){u=` - ${t.description}`;if(l.length+h.length+u.length>=this.out.columns||t.description.split(/\r?\n/).length>1){u="\n"+y(t.description,{margin:3,width:this.out.columns})}}return l+" "+h+o.gray(u||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(m(this.outputText,this.out.columns));super.render();let t=A(this.select,this.choices.length,this.limit),r=t.startIndex,i=t.endIndex;this.outputText=[d.symbol(this.done,this.aborted,this.exited),o.bold(this.msg),d.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const t=this.suggestions.slice(r,i).map(((t,o)=>this.renderOption(t,this.select===o+r,o===0&&r>0,o+r===i-1&&i<this.choices.length))).join("\n");this.outputText+=`\n`+(t||o.gray(this.fallback.title))}this.out.write(l.line+h.to(0)+this.outputText)}}t.exports=AutocompletePrompt},2040:(t,r,i)=>{"use strict";const o=i(9439);const a=i(332),u=a.cursor;const l=i(4047);const h=i(2800),p=h.clear,d=h.style,m=h.figures;class AutocompleteMultiselectPrompt extends l{constructor(t={}){t.overrideRender=true;super(t);this.inputValue="";this.clear=p("",this.out.columns);this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>{if(this.inputValue){if(typeof t.title==="string"){if(t.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof t.value==="string"){if(t.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const r=this.filteredOptions.findIndex((r=>r===t));this.cursor=r<0?0:r;this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t;this.updateFilteredOptions()}_(t,r){if(t===" "){this.handleSpaceToggle()}else{this.handleInputChange(t)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${m.arrowUp}/${m.arrowDown}: Highlight option\n ${m.arrowLeft}/${m.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:o.gray("Enter something to filter")}\n`}renderOption(t,r,i){let a;if(r.disabled)a=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title);else a=t===i?o.cyan().underline(r.title):r.title;return(r.selected?o.green(m.radioOn):m.radioOff)+" "+a}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();let t=[d.symbol(this.done,this.aborted),o.bold(this.msg),d.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+t);this.clear=p(t,this.out.columns)}}t.exports=AutocompleteMultiselectPrompt},5680:(t,r,i)=>{"use strict";const o=i(9439);const a=i(5876);const u=i(2800),l=u.style,h=u.clear;const p=i(332),d=p.erase,m=p.cursor;class ConfirmPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=t.initial;this.initialValue=!!t.initial;this.yesMsg=t.yes||"yes";this.yesOption=t.yesOption||"(Y/n)";this.noMsg=t.no||"no";this.noOption=t.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){if(t.toLowerCase()==="y"){this.value=true;return this.submit()}if(t.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(m.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:o.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(d.line+m.to(0)+this.outputText)}}t.exports=ConfirmPrompt},3031:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var p=h.value}catch(t){i(t);return}if(h.done){r(p)}else{Promise.resolve(p).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(9439);const a=i(5876);const u=i(2800),l=u.style,h=u.clear,p=u.figures;const d=i(332),m=d.erase,g=d.cursor;const y=i(7517),A=y.DatePart,b=y.Meridiem,v=y.Day,w=y.Hours,E=y.Milliseconds,_=y.Minutes,S=y.Month,C=y.Seconds,D=y.Year;const x=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const R={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new v(t),3:t=>new S(t),4:t=>new D(t),5:t=>new b(t),6:t=>new w(t),7:t=>new _(t),8:t=>new C(t),9:t=>new E(t)};const O={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.cursor=0;this.typed="";this.locales=Object.assign(O,t.locales);this._date=t.initial||new Date;this.errorMsg=t.error||"Please Enter A Valid Value";this.validator=t.validate||(()=>true);this.mask=t.mask||"YYYY-MM-DD HH:mm:ss";this.clear=h("",this.out.columns);this.render()}get value(){return this.date}get date(){return this._date}set date(t){if(t)this._date.setTime(t.getTime())}set mask(t){let r;this.parts=[];while(r=x.exec(t)){let t=r.shift();let i=r.findIndex((t=>t!=null));this.parts.push(i in R?R[i]({token:r[i]||t,date:this.date,parts:this.parts,locales:this.locales}):r[i]||t)}let i=this.parts.reduce(((t,r)=>{if(typeof r==="string"&&typeof t[t.length-1]==="string")t[t.length-1]+=r;else t.push(r);return t}),[]);this.parts.splice(0);this.parts.push(...i);this.reset()}moveCursor(t){this.typed="";this.cursor=t;this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof A)));this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r==="string"){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){yield t.validate();if(t.error){t.color="red";t.fire();t.render();return}t.done=true;t.aborted=false;t.fire();t.render();t.out.write("\n");t.close()}))()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let t=this.parts[this.cursor].prev();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}right(){let t=this.parts[this.cursor].next();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof A)));this.render()}_(t){if(/\d/.test(t)){this.typed+=t;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(g.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(false),this.parts.reduce(((t,r,i)=>t.concat(i===this.cursor&&!this.done?o.cyan().underline(r.toString()):r)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((t,r,i)=>t+`\n${i?` `:p.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(m.line+g.to(0)+this.outputText)}}t.exports=DatePrompt},9956:(t,r,i)=>{"use strict";t.exports={TextPrompt:i(5430),SelectPrompt:i(8856),TogglePrompt:i(9692),DatePrompt:i(3031),NumberPrompt:i(8831),MultiselectPrompt:i(4047),AutocompletePrompt:i(935),AutocompleteMultiselectPrompt:i(2040),ConfirmPrompt:i(5680)}},4047:(t,r,i)=>{"use strict";const o=i(9439);const a=i(332),u=a.cursor;const l=i(5876);const h=i(2800),p=h.clear,d=h.figures,m=h.style,g=h.wrap,y=h.entriesToDisplay;class MultiselectPrompt extends l{constructor(t={}){super(t);this.msg=t.message;this.cursor=t.cursor||0;this.scrollIndex=t.cursor||0;this.hint=t.hint||"";this.warn=t.warn||"- This option is disabled -";this.minSelected=t.min;this.showMinError=false;this.maxChoices=t.max;this.instructions=t.instructions;this.optionsPerPage=t.optionsPerPage||10;this.value=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(t.value===undefined?r:t.value),selected:t&&t.selected,disabled:t&&t.disabled}}));this.clear=p("",this.out.columns);if(!t.overrideRender){this.render()}}reset(){this.value.map((t=>!t.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const t=this.value.filter((t=>t.selected));if(this.minSelected&&t.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((r=>r.selected=t));this.render()}_(t,r){if(t===" "){this.handleSpaceToggle()}else if(t==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+` ${d.arrowUp}/${d.arrowDown}: Highlight option\n`+` ${d.arrowLeft}/${d.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(t,r,i,a){const u=(r.selected?o.green(d.radioOn):d.radioOff)+" "+a+" ";let l,h;if(r.disabled){l=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title)}else{l=t===i?o.cyan().underline(r.title):r.title;if(t===i&&r.description){h=` - ${r.description}`;if(u.length+l.length+h.length>=this.out.columns||r.description.split(/\r?\n/).length>1){h="\n"+g(r.description,{margin:u.length,width:this.out.columns})}}}return u+l+o.gray(h||"")}paginateOptions(t){if(t.length===0){return o.red("No matches for this query.")}let r=y(this.cursor,t.length,this.optionsPerPage),i=r.startIndex,a=r.endIndex;let u,l=[];for(let r=i;r<a;r++){if(r===i&&i>0){u=d.arrowUp}else if(r===a-1&&a<t.length){u=d.arrowDown}else{u=" "}l.push(this.renderOption(this.cursor,t[r],r,u))}return"\n"+l.join("\n")}renderOptions(t){if(!this.done){return this.paginateOptions(t)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();let t=[m.symbol(this.done,this.aborted),o.bold(this.msg),m.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.value);this.out.write(this.clear+t);this.clear=p(t,this.out.columns)}}t.exports=MultiselectPrompt},8831:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var p=h.value}catch(t){i(t);return}if(h.done){r(p)}else{Promise.resolve(p).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(9439);const a=i(5876);const u=i(332),l=u.cursor,h=u.erase;const p=i(2800),d=p.style,m=p.figures,g=p.clear,y=p.lines;const A=/[0-9]/;const isDef=t=>t!==undefined;const round=(t,r)=>{let i=Math.pow(10,r);return Math.round(t*i)/i};class NumberPrompt extends a{constructor(t={}){super(t);this.transform=d.render(t.style);this.msg=t.message;this.initial=isDef(t.initial)?t.initial:"";this.float=!!t.float;this.round=t.round||2;this.inc=t.increment||1;this.min=isDef(t.min)?t.min:-Infinity;this.max=isDef(t.max)?t.max:Infinity;this.errorMsg=t.error||`Please Enter A Valid Value`;this.validator=t.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(t){if(!t&&t!==0){this.placeholder=true;this.rendered=o.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(t,this.round)}`);this._value=round(t,this.round)}this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return t===`-`||t===`.`&&this.float||A.test(t)}reset(){this.typed=``;this.value=``;this.fire();this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=t!==``?t:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r===`string`){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){yield t.validate();if(t.error){t.color=`red`;t.fire();t.render();return}let r=t.value;t.value=r!==``?r:t.initial;t.done=true;t.aborted=false;t.error=false;t.fire();t.render();t.out.write(`\n`);t.close()}))()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let t=this.value.toString();if(t.length===0)return this.bell();this.value=this.parse(t=t.slice(0,-1))||``;if(this.value!==""&&this.value<this.min){this.value=this.min}this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(t,r){if(!this.valid(t))return this.bell();const i=Date.now();if(i-this.lastHit>1e3)this.typed=``;this.typed+=t;this.lastHit=i;this.color=`cyan`;if(t===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(l.down(y(this.outputError,this.out.columns)-1)+g(this.outputError,this.out.columns));this.out.write(g(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[d.symbol(this.done,this.aborted),o.bold(this.msg),d.delimiter(this.done),!this.done||!this.done&&!this.placeholder?o[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?` `:m.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(h.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore)}}t.exports=NumberPrompt},5876:(t,r,i)=>{"use strict";const o=i(4521);const a=i(2800),u=a.action;const l=i(2361);const h=i(332),p=h.beep,d=h.cursor;const m=i(9439);class Prompt extends l{constructor(t={}){super();this.firstRender=true;this.in=t.stdin||process.stdin;this.out=t.stdout||process.stdout;this.onRender=(t.onRender||(()=>void 0)).bind(this);const r=o.createInterface({input:this.in,escapeCodeTimeout:50});o.emitKeypressEvents(this.in,r);if(this.in.isTTY)this.in.setRawMode(true);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(t,r)=>{let o=u(r,i);if(o===false){this._&&this._(t,r)}else if(typeof this[o]==="function"){this[o](r)}else{this.bell()}};this.close=()=>{this.out.write(d.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);r.close();this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(p)}render(){this.onRender(m);if(this.firstRender)this.firstRender=false}}t.exports=Prompt},8856:(t,r,i)=>{"use strict";const o=i(9439);const a=i(5876);const u=i(2800),l=u.style,h=u.clear,p=u.figures,d=u.wrap,m=u.entriesToDisplay;const g=i(332),y=g.cursor;class SelectPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.hint=t.hint||"- Use arrow-keys. Return to submit.";this.warn=t.warn||"- This option is disabled";this.cursor=t.initial||0;this.choices=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),value:t&&(t.value===undefined?r:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}}));this.optionsPerPage=t.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=h("",this.out.columns);this.render()}moveCursor(t){this.cursor=t;this.value=this.choices[t].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0){this.moveCursor(this.choices.length-1)}else{this.moveCursor(this.cursor-1)}this.render()}down(){if(this.cursor===this.choices.length-1){this.moveCursor(0)}else{this.moveCursor(this.cursor+1)}this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(t,r){if(t===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(y.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();let t=m(this.cursor,this.choices.length,this.optionsPerPage),r=t.startIndex,i=t.endIndex;this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(false),this.done?this.selection.title:this.selection.disabled?o.yellow(this.warn):o.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let t=r;t<i;t++){let a,u,l="",h=this.choices[t];if(t===r&&r>0){u=p.arrowUp}else if(t===i-1&&i<this.choices.length){u=p.arrowDown}else{u=" "}if(h.disabled){a=this.cursor===t?o.gray().underline(h.title):o.strikethrough().gray(h.title);u=(this.cursor===t?o.bold().gray(p.pointer)+" ":" ")+u}else{a=this.cursor===t?o.cyan().underline(h.title):h.title;u=(this.cursor===t?o.cyan(p.pointer)+" ":" ")+u;if(h.description&&this.cursor===t){l=` - ${h.description}`;if(u.length+a.length+l.length>=this.out.columns||h.description.split(/\r?\n/).length>1){l="\n"+d(h.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${u} ${a}${o.gray(l)}\n`}}this.out.write(this.outputText)}}t.exports=SelectPrompt},5430:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var p=h.value}catch(t){i(t);return}if(h.done){r(p)}else{Promise.resolve(p).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(9439);const a=i(5876);const u=i(332),l=u.erase,h=u.cursor;const p=i(2800),d=p.style,m=p.clear,g=p.lines,y=p.figures;class TextPrompt extends a{constructor(t={}){super(t);this.transform=d.render(t.style);this.scale=this.transform.scale;this.msg=t.message;this.initial=t.initial||``;this.validator=t.validate||(()=>true);this.value=``;this.errorMsg=t.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.clear=m(``,this.out.columns);this.render()}set value(t){if(!t&&this.initial){this.placeholder=true;this.rendered=o.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(t)}this._value=t;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.fire();this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r===`string`){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){t.value=t.value||t.initial;t.cursorOffset=0;t.cursor=t.rendered.length;yield t.validate();if(t.error){t.red=true;t.fire();t.render();return}t.done=true;t.aborted=false;t.fire();t.render();t.out.write("\n");t.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(t){if(this.placeholder)return;this.cursor=this.cursor+t;this.cursorOffset+=t}_(t,r){let i=this.value.slice(0,this.cursor);let o=this.value.slice(this.cursor);this.value=`${i}${t}${o}`;this.red=false;this.cursor=this.placeholder?0:i.length+1;this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1);let r=this.value.slice(this.cursor);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtStart()){this.cursorOffset=0}else{this.cursorOffset++;this.moveCursor(-1)}this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor);let r=this.value.slice(this.cursor+1);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtEnd()){this.cursorOffset=0}else{this.cursorOffset++}this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(h.down(g(this.outputError,this.out.columns)-1)+m(this.outputError,this.out.columns));this.out.write(m(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[d.symbol(this.done,this.aborted),o.bold(this.msg),d.delimiter(this.done),this.red?o.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?" ":y.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(l.line+h.to(0)+this.outputText+h.save+this.outputError+h.restore+h.move(this.cursorOffset,0))}}t.exports=TextPrompt},9692:(t,r,i)=>{"use strict";const o=i(9439);const a=i(5876);const u=i(2800),l=u.style,h=u.clear;const p=i(332),d=p.cursor,m=p.erase;class TogglePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=!!t.initial;this.active=t.active||"on";this.inactive=t.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(t,r){if(t===" "){this.value=!this.value}else if(t==="1"){this.value=true}else if(t==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(d.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(this.done),this.value?this.inactive:o.cyan().underline(this.inactive),o.gray("/"),this.value?o.cyan().underline(this.active):this.active].join(" ");this.out.write(m.line+d.to(0)+this.outputText)}}t.exports=TogglePrompt},6598:(t,r,i)=>{"use strict";function ownKeys(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);if(r){o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))}i.push.apply(i,o)}return i}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){ownKeys(Object(i),true).forEach((function(r){_defineProperty(t,r,i[r])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(i))}else{ownKeys(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}}return t}function _defineProperty(t,r,i){if(r in t){Object.defineProperty(t,r,{value:i,enumerable:true,configurable:true,writable:true})}else{t[r]=i}return t}function _createForOfIteratorHelper(t,r){var i=typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||r&&t&&typeof t.length==="number"){if(i)t=i;var o=0;var a=function F(){};return{s:a,n:function n(){if(o>=t.length)return{done:true};return{done:false,value:t[o++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=true,l=false,h;return{s:function s(){i=i.call(t)},n:function n(){var t=i.next();u=t.done;return t},e:function e(t){l=true;h=t},f:function f(){try{if(!u&&i.return!=null)i.return()}finally{if(l)throw h}}}}function _unsupportedIterableToArray(t,r){if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor)i=t.constructor.name;if(i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(t,r)}function _arrayLikeToArray(t,r){if(r==null||r>t.length)r=t.length;for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var p=h.value}catch(t){i(t);return}if(h.done){r(p)}else{Promise.resolve(p).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(4591);const a=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator((function*(t=[],{onSubmit:r=noop,onCancel:i=noop}={}){const u={};const l=prompt._override||{};t=[].concat(t);let h,p,d,m,g,y;const A=function(){var t=_asyncToGenerator((function*(t,r,i=false){if(!i&&t.validate&&t.validate(r)!==true){return}return t.format?yield t.format(r,u):r}));return function getFormattedAnswer(r,i){return t.apply(this,arguments)}}();var b=_createForOfIteratorHelper(t),v;try{for(b.s();!(v=b.n()).done;){p=v.value;var w=p;m=w.name;g=w.type;if(typeof g==="function"){g=yield g(h,_objectSpread({},u),p);p["type"]=g}if(!g)continue;for(let t in p){if(a.includes(t))continue;let r=p[t];p[t]=typeof r==="function"?yield r(h,_objectSpread({},u),y):r}y=p;if(typeof p.message!=="string"){throw new Error("prompt message is required")}var E=p;m=E.name;g=E.type;if(o[g]===void 0){throw new Error(`prompt type (${g}) is not defined`)}if(l[p.name]!==undefined){h=yield A(p,l[p.name]);if(h!==undefined){u[m]=h;continue}}try{h=prompt._injected?getInjectedAnswer(prompt._injected,p.initial):yield o[g](p);u[m]=h=yield A(p,h,true);d=yield r(p,h,u)}catch(t){d=!(yield i(p,u))}if(d)return u}}catch(t){b.e(t)}finally{b.f()}return u}));return _prompt.apply(this,arguments)}function getInjectedAnswer(t,r){const i=t.shift();if(i instanceof Error){throw i}return i===undefined?r:i}function inject(t){prompt._injected=(prompt._injected||[]).concat(t)}function override(t){prompt._override=Object.assign({},t)}t.exports=Object.assign(prompt,{prompt:prompt,prompts:o,inject:inject,override:override})},4591:(t,r,i)=>{"use strict";const o=r;const a=i(9956);const noop=t=>t;function toPrompt(t,r,i={}){return new Promise(((o,u)=>{const l=new a[t](r);const h=i.onAbort||noop;const p=i.onSubmit||noop;const d=i.onExit||noop;l.on("state",r.onState||noop);l.on("submit",(t=>o(p(t))));l.on("exit",(t=>o(d(t))));l.on("abort",(t=>u(h(t))))}))}o.text=t=>toPrompt("TextPrompt",t);o.password=t=>{t.style="password";return o.text(t)};o.invisible=t=>{t.style="invisible";return o.text(t)};o.number=t=>toPrompt("NumberPrompt",t);o.date=t=>toPrompt("DatePrompt",t);o.confirm=t=>toPrompt("ConfirmPrompt",t);o.list=t=>{const r=t.separator||",";return toPrompt("TextPrompt",t,{onSubmit:t=>t.split(r).map((t=>t.trim()))})};o.toggle=t=>toPrompt("TogglePrompt",t);o.select=t=>toPrompt("SelectPrompt",t);o.multiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("MultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};o.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("AutocompleteMultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(t,r)=>Promise.resolve(r.filter((r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));o.autocomplete=t=>{t.suggest=t.suggest||byTitle;t.choices=[].concat(t.choices||[]);return toPrompt("AutocompletePrompt",t)}},8692:t=>{"use strict";t.exports=(t,r)=>{if(t.meta&&t.name!=="escape")return;if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c")return"abort";if(t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(r){if(t.name==="j")return"down";if(t.name==="k")return"up"}if(t.name==="return")return"submit";if(t.name==="enter")return"submit";if(t.name==="backspace")return"delete";if(t.name==="delete")return"deleteForward";if(t.name==="abort")return"abort";if(t.name==="escape")return"exit";if(t.name==="tab")return"next";if(t.name==="pagedown")return"nextPage";if(t.name==="pageup")return"prevPage";if(t.name==="home")return"home";if(t.name==="end")return"end";if(t.name==="up")return"up";if(t.name==="down")return"down";if(t.name==="right")return"right";if(t.name==="left")return"left";return false}},3513:(t,r,i)=>{"use strict";function _createForOfIteratorHelper(t,r){var i=typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||r&&t&&typeof t.length==="number"){if(i)t=i;var o=0;var a=function F(){};return{s:a,n:function n(){if(o>=t.length)return{done:true};return{done:false,value:t[o++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=true,l=false,h;return{s:function s(){i=i.call(t)},n:function n(){var t=i.next();u=t.done;return t},e:function e(t){l=true;h=t},f:function f(){try{if(!u&&i.return!=null)i.return()}finally{if(l)throw h}}}}function _unsupportedIterableToArray(t,r){if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor)i=t.constructor.name;if(i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(t,r)}function _arrayLikeToArray(t,r){if(r==null||r>t.length)r=t.length;for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}const o=i(8760);const a=i(332),u=a.erase,l=a.cursor;const width=t=>[...o(t)].length;t.exports=function(t,r){if(!r)return u.line+l.to(0);let i=0;const o=t.split(/\r?\n/);var a=_createForOfIteratorHelper(o),h;try{for(a.s();!(h=a.n()).done;){let t=h.value;i+=1+Math.floor(Math.max(width(t)-1,0)/r)}}catch(t){a.e(t)}finally{a.f()}return u.lines(i)}},393:t=>{"use strict";t.exports=(t,r,i)=>{i=i||r;let o=Math.min(r-i,t-Math.floor(i/2));if(o<0)o=0;let a=Math.min(o+i,r);return{startIndex:o,endIndex:a}}},6217:t=>{"use strict";const r={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const i={arrowUp:r.arrowUp,arrowDown:r.arrowDown,arrowLeft:r.arrowLeft,arrowRight:r.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const o=process.platform==="win32"?i:r;t.exports=o},2800:(t,r,i)=>{"use strict";t.exports={action:i(8692),clear:i(3513),style:i(5012),strip:i(8760),figures:i(6217),lines:i(1688),wrap:i(1705),entriesToDisplay:i(393)}},1688:(t,r,i)=>{"use strict";const o=i(8760);t.exports=function(t,r){let i=String(o(t)||"").split(/\r?\n/);if(!r)return i.length;return i.map((t=>Math.ceil(t.length/r))).reduce(((t,r)=>t+r))}},8760:t=>{"use strict";t.exports=t=>{const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const i=new RegExp(r,"g");return typeof t==="string"?t.replace(i,""):t}},5012:(t,r,i)=>{"use strict";const o=i(9439);const a=i(6217);const u=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}});const render=t=>u[t]||u.default;const l=Object.freeze({aborted:o.red(a.cross),done:o.green(a.tick),exited:o.yellow(a.cross),default:o.cyan("?")});const symbol=(t,r,i)=>r?l.aborted:i?l.exited:t?l.done:l.default;const delimiter=t=>o.gray(t?a.ellipsis:a.pointerSmall);const item=(t,r)=>o.gray(t?r?a.pointerSmall:"+":a.line);t.exports={styles:u,render:render,symbols:l,symbol:symbol,delimiter:delimiter,item:item}},1705:t=>{"use strict";t.exports=(t,r={})=>{const i=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"";const o=r.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,r)=>{if(r.length+i.length>=o||t[t.length-1].length+r.length+1<o)t[t.length-1]+=` ${r}`;else t.push(`${i}${r}`);return t}),[i]).join("\n"))).join("\n")}},1112:(t,r,i)=>{function isNodeLT(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let r=0,i=process.versions.node.split(".").map(Number);for(;r<t.length;r++){if(i[r]>t[r])return false;if(t[r]>i[r])return true}return false}t.exports=isNodeLT("8.6.0")?i(6598):i(9590)},8994:t=>{"use strict";class DatePart{constructor({token:t,date:r,parts:i,locales:o}){this.token=t;this.date=r||new Date;this.parts=i||[this];this.locales=o||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,i)=>i>t&&r instanceof DatePart))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,i)=>i>r&&t instanceof DatePart))}toString(){return String(this.date)}}t.exports=DatePart},5513:(t,r,i)=>{"use strict";const o=i(8994);const pos=t=>{t=t%10;return t===1?"st":t===2?"nd":t===3?"rd":"th"};class Day extends o{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate();let r=this.date.getDay();return this.token==="DD"?String(t).padStart(2,"0"):this.token==="Do"?t+pos(t):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:t}}t.exports=Day},9270:(t,r,i)=>{"use strict";const o=i(8994);class Hours extends o{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();if(/h/.test(this.token))t=t%12||12;return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Hours},1190:(t,r,i)=>{"use strict";t.exports={DatePart:i(8994),Meridiem:i(8135),Day:i(5513),Hours:i(9270),Milliseconds:i(2397),Minutes:i(9246),Month:i(5763),Seconds:i(5579),Year:i(4191)}},8135:(t,r,i)=>{"use strict";const o=i(8994);class Meridiem extends o{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}t.exports=Meridiem},2397:(t,r,i)=>{"use strict";const o=i(8994);class Milliseconds extends o{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}t.exports=Milliseconds},9246:(t,r,i)=>{"use strict";const o=i(8994);class Minutes extends o{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Minutes},5763:(t,r,i)=>{"use strict";const o=i(8994);class Month extends o{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1;this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth();let r=this.token.length;return r===2?String(t+1).padStart(2,"0"):r===3?this.locales.monthsShort[t]:r===4?this.locales.months[t]:String(t+1)}}t.exports=Month},5579:(t,r,i)=>{"use strict";const o=i(8994);class Seconds extends o{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Seconds},4191:(t,r,i)=>{"use strict";const o=i(8994);class Year extends o{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?t.substr(-2):t}}t.exports=Year},514:(t,r,i)=>{"use strict";const o=i(9439);const a=i(9126);const{erase:u,cursor:l}=i(332);const{style:h,clear:p,figures:d,wrap:m,entriesToDisplay:g}=i(9807);const getVal=(t,r)=>t[r]&&(t[r].value||t[r].title||t[r]);const getTitle=(t,r)=>t[r]&&(t[r].title||t[r].value||t[r]);const getIndex=(t,r)=>{const i=t.findIndex((t=>t.value===r||t.title===r));return i>-1?i:undefined};class AutocompletePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.suggest=t.suggest;this.choices=t.choices;this.initial=typeof t.initial==="number"?t.initial:getIndex(t.choices,t.initial);this.select=this.initial||t.cursor||0;this.i18n={noMatches:t.noMatches||"no matches found"};this.fallback=t.fallback||this.initial;this.clearFirst=t.clearFirst||false;this.suggestions=[];this.input="";this.limit=t.limit||10;this.cursor=0;this.transform=h.render(t.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=p("",this.out.columns);this.complete(this.render);this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;if(typeof this._fb==="number")t=this.choices[this._fb];else if(typeof this._fb==="string")t={title:this._fb};return t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t;if(this.suggestions.length>0)this.value=getVal(this.suggestions,t);else this.value=this.fallback.value;this.fire()}async complete(t){const r=this.completing=this.suggest(this.input,this.choices);const i=await r;if(this.completing!==r)return;this.suggestions=i.map(((t,r,i)=>({title:getTitle(i,r),value:getVal(i,r),description:t.description})));this.completing=false;const o=Math.max(i.length-1,0);this.moveSelect(Math.min(o,this.select));t&&t()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}exit(){if(this.clearFirst&&this.input.length>0){this.reset()}else{this.done=this.exited=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}abort(){this.done=this.aborted=true;this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){let i=this.input.slice(0,this.cursor);let o=this.input.slice(this.cursor);this.input=`${i}${t}${o}`;this.cursor=i.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let t=this.input.slice(0,this.cursor-1);let r=this.input.slice(this.cursor);this.input=`${t}${r}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor);let r=this.input.slice(this.cursor+1);this.input=`${t}${r}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select===0){this.moveSelect(this.suggestions.length-1)}else{this.moveSelect(this.select-1)}this.render()}down(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else{this.moveSelect(this.select+1)}this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1));this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0));this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}renderOption(t,r,i,a){let u;let l=i?d.arrowUp:a?d.arrowDown:" ";let h=r?o.cyan().underline(t.title):t.title;l=(r?o.cyan(d.pointer)+" ":" ")+l;if(t.description){u=` - ${t.description}`;if(l.length+h.length+u.length>=this.out.columns||t.description.split(/\r?\n/).length>1){u="\n"+m(t.description,{margin:3,width:this.out.columns})}}return l+" "+h+o.gray(u||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(p(this.outputText,this.out.columns));super.render();let{startIndex:t,endIndex:r}=g(this.select,this.choices.length,this.limit);this.outputText=[h.symbol(this.done,this.aborted,this.exited),o.bold(this.msg),h.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const i=this.suggestions.slice(t,r).map(((i,o)=>this.renderOption(i,this.select===o+t,o===0&&t>0,o+t===r-1&&r<this.choices.length))).join("\n");this.outputText+=`\n`+(i||o.gray(this.fallback.title))}this.out.write(u.line+l.to(0)+this.outputText)}}t.exports=AutocompletePrompt},7685:(t,r,i)=>{"use strict";const o=i(9439);const{cursor:a}=i(332);const u=i(92);const{clear:l,style:h,figures:p}=i(9807);class AutocompleteMultiselectPrompt extends u{constructor(t={}){t.overrideRender=true;super(t);this.inputValue="";this.clear=l("",this.out.columns);this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>{if(this.inputValue){if(typeof t.title==="string"){if(t.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof t.value==="string"){if(t.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const r=this.filteredOptions.findIndex((r=>r===t));this.cursor=r<0?0:r;this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t;this.updateFilteredOptions()}_(t,r){if(t===" "){this.handleSpaceToggle()}else{this.handleInputChange(t)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${p.arrowUp}/${p.arrowDown}: Highlight option\n ${p.arrowLeft}/${p.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:o.gray("Enter something to filter")}\n`}renderOption(t,r,i){let a;if(r.disabled)a=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title);else a=t===i?o.cyan().underline(r.title):r.title;return(r.selected?o.green(p.radioOn):p.radioOff)+" "+a}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();let t=[h.symbol(this.done,this.aborted),o.bold(this.msg),h.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+t);this.clear=l(t,this.out.columns)}}t.exports=AutocompleteMultiselectPrompt},3037:(t,r,i)=>{const o=i(9439);const a=i(9126);const{style:u,clear:l}=i(9807);const{erase:h,cursor:p}=i(332);class ConfirmPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=t.initial;this.initialValue=!!t.initial;this.yesMsg=t.yes||"yes";this.yesOption=t.yesOption||"(Y/n)";this.noMsg=t.no||"no";this.noOption=t.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){if(t.toLowerCase()==="y"){this.value=true;return this.submit()}if(t.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(p.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:o.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(h.line+p.to(0)+this.outputText)}}t.exports=ConfirmPrompt},5048:(t,r,i)=>{"use strict";const o=i(9439);const a=i(9126);const{style:u,clear:l,figures:h}=i(9807);const{erase:p,cursor:d}=i(332);const{DatePart:m,Meridiem:g,Day:y,Hours:A,Milliseconds:b,Minutes:v,Month:w,Seconds:E,Year:_}=i(1190);const S=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const C={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new y(t),3:t=>new w(t),4:t=>new _(t),5:t=>new g(t),6:t=>new A(t),7:t=>new v(t),8:t=>new E(t),9:t=>new b(t)};const D={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.cursor=0;this.typed="";this.locales=Object.assign(D,t.locales);this._date=t.initial||new Date;this.errorMsg=t.error||"Please Enter A Valid Value";this.validator=t.validate||(()=>true);this.mask=t.mask||"YYYY-MM-DD HH:mm:ss";this.clear=l("",this.out.columns);this.render()}get value(){return this.date}get date(){return this._date}set date(t){if(t)this._date.setTime(t.getTime())}set mask(t){let r;this.parts=[];while(r=S.exec(t)){let t=r.shift();let i=r.findIndex((t=>t!=null));this.parts.push(i in C?C[i]({token:r[i]||t,date:this.date,parts:this.parts,locales:this.locales}):r[i]||t)}let i=this.parts.reduce(((t,r)=>{if(typeof r==="string"&&typeof t[t.length-1]==="string")t[t.length-1]+=r;else t.push(r);return t}),[]);this.parts.splice(0);this.parts.push(...i);this.reset()}moveCursor(t){this.typed="";this.cursor=t;this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof m)));this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let t=await this.validator(this.value);if(typeof t==="string"){this.errorMsg=t;t=false}this.error=!t}async submit(){await this.validate();if(this.error){this.color="red";this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let t=this.parts[this.cursor].prev();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}right(){let t=this.parts[this.cursor].next();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof m)));this.render()}_(t){if(/\d/.test(t)){this.typed+=t;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(d.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(false),this.parts.reduce(((t,r,i)=>t.concat(i===this.cursor&&!this.done?o.cyan().underline(r.toString()):r)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((t,r,i)=>t+`\n${i?` `:h.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(p.line+d.to(0)+this.outputText)}}t.exports=DatePrompt},6529:(t,r,i)=>{"use strict";t.exports={TextPrompt:i(1551),SelectPrompt:i(6515),TogglePrompt:i(181),DatePrompt:i(5048),NumberPrompt:i(3686),MultiselectPrompt:i(92),AutocompletePrompt:i(514),AutocompleteMultiselectPrompt:i(7685),ConfirmPrompt:i(3037)}},92:(t,r,i)=>{"use strict";const o=i(9439);const{cursor:a}=i(332);const u=i(9126);const{clear:l,figures:h,style:p,wrap:d,entriesToDisplay:m}=i(9807);class MultiselectPrompt extends u{constructor(t={}){super(t);this.msg=t.message;this.cursor=t.cursor||0;this.scrollIndex=t.cursor||0;this.hint=t.hint||"";this.warn=t.warn||"- This option is disabled -";this.minSelected=t.min;this.showMinError=false;this.maxChoices=t.max;this.instructions=t.instructions;this.optionsPerPage=t.optionsPerPage||10;this.value=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(t.value===undefined?r:t.value),selected:t&&t.selected,disabled:t&&t.disabled}}));this.clear=l("",this.out.columns);if(!t.overrideRender){this.render()}}reset(){this.value.map((t=>!t.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const t=this.value.filter((t=>t.selected));if(this.minSelected&&t.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((r=>r.selected=t));this.render()}_(t,r){if(t===" "){this.handleSpaceToggle()}else if(t==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+` ${h.arrowUp}/${h.arrowDown}: Highlight option\n`+` ${h.arrowLeft}/${h.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(t,r,i,a){const u=(r.selected?o.green(h.radioOn):h.radioOff)+" "+a+" ";let l,p;if(r.disabled){l=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title)}else{l=t===i?o.cyan().underline(r.title):r.title;if(t===i&&r.description){p=` - ${r.description}`;if(u.length+l.length+p.length>=this.out.columns||r.description.split(/\r?\n/).length>1){p="\n"+d(r.description,{margin:u.length,width:this.out.columns})}}}return u+l+o.gray(p||"")}paginateOptions(t){if(t.length===0){return o.red("No matches for this query.")}let{startIndex:r,endIndex:i}=m(this.cursor,t.length,this.optionsPerPage);let a,u=[];for(let o=r;o<i;o++){if(o===r&&r>0){a=h.arrowUp}else if(o===i-1&&i<t.length){a=h.arrowDown}else{a=" "}u.push(this.renderOption(this.cursor,t[o],o,a))}return"\n"+u.join("\n")}renderOptions(t){if(!this.done){return this.paginateOptions(t)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();let t=[p.symbol(this.done,this.aborted),o.bold(this.msg),p.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.value);this.out.write(this.clear+t);this.clear=l(t,this.out.columns)}}t.exports=MultiselectPrompt},3686:(t,r,i)=>{const o=i(9439);const a=i(9126);const{cursor:u,erase:l}=i(332);const{style:h,figures:p,clear:d,lines:m}=i(9807);const g=/[0-9]/;const isDef=t=>t!==undefined;const round=(t,r)=>{let i=Math.pow(10,r);return Math.round(t*i)/i};class NumberPrompt extends a{constructor(t={}){super(t);this.transform=h.render(t.style);this.msg=t.message;this.initial=isDef(t.initial)?t.initial:"";this.float=!!t.float;this.round=t.round||2;this.inc=t.increment||1;this.min=isDef(t.min)?t.min:-Infinity;this.max=isDef(t.max)?t.max:Infinity;this.errorMsg=t.error||`Please Enter A Valid Value`;this.validator=t.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(t){if(!t&&t!==0){this.placeholder=true;this.rendered=o.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(t,this.round)}`);this._value=round(t,this.round)}this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return t===`-`||t===`.`&&this.float||g.test(t)}reset(){this.typed=``;this.value=``;this.fire();this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=t!==``?t:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let t=await this.validator(this.value);if(typeof t===`string`){this.errorMsg=t;t=false}this.error=!t}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let t=this.value;this.value=t!==``?t:this.initial;this.done=true;this.aborted=false;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let t=this.value.toString();if(t.length===0)return this.bell();this.value=this.parse(t=t.slice(0,-1))||``;if(this.value!==""&&this.value<this.min){this.value=this.min}this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(t,r){if(!this.valid(t))return this.bell();const i=Date.now();if(i-this.lastHit>1e3)this.typed=``;this.typed+=t;this.lastHit=i;this.color=`cyan`;if(t===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(u.down(m(this.outputError,this.out.columns)-1)+d(this.outputError,this.out.columns));this.out.write(d(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[h.symbol(this.done,this.aborted),o.bold(this.msg),h.delimiter(this.done),!this.done||!this.done&&!this.placeholder?o[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?` `:p.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(l.line+u.to(0)+this.outputText+u.save+this.outputError+u.restore)}}t.exports=NumberPrompt},9126:(t,r,i)=>{"use strict";const o=i(4521);const{action:a}=i(9807);const u=i(2361);const{beep:l,cursor:h}=i(332);const p=i(9439);class Prompt extends u{constructor(t={}){super();this.firstRender=true;this.in=t.stdin||process.stdin;this.out=t.stdout||process.stdout;this.onRender=(t.onRender||(()=>void 0)).bind(this);const r=o.createInterface({input:this.in,escapeCodeTimeout:50});o.emitKeypressEvents(this.in,r);if(this.in.isTTY)this.in.setRawMode(true);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(t,r)=>{let o=a(r,i);if(o===false){this._&&this._(t,r)}else if(typeof this[o]==="function"){this[o](r)}else{this.bell()}};this.close=()=>{this.out.write(h.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);r.close();this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(l)}render(){this.onRender(p);if(this.firstRender)this.firstRender=false}}t.exports=Prompt},6515:(t,r,i)=>{"use strict";const o=i(9439);const a=i(9126);const{style:u,clear:l,figures:h,wrap:p,entriesToDisplay:d}=i(9807);const{cursor:m}=i(332);class SelectPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.hint=t.hint||"- Use arrow-keys. Return to submit.";this.warn=t.warn||"- This option is disabled";this.cursor=t.initial||0;this.choices=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),value:t&&(t.value===undefined?r:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}}));this.optionsPerPage=t.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=l("",this.out.columns);this.render()}moveCursor(t){this.cursor=t;this.value=this.choices[t].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0){this.moveCursor(this.choices.length-1)}else{this.moveCursor(this.cursor-1)}this.render()}down(){if(this.cursor===this.choices.length-1){this.moveCursor(0)}else{this.moveCursor(this.cursor+1)}this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(t,r){if(t===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(m.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();let{startIndex:t,endIndex:r}=d(this.cursor,this.choices.length,this.optionsPerPage);this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(false),this.done?this.selection.title:this.selection.disabled?o.yellow(this.warn):o.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let i=t;i<r;i++){let a,u,l="",d=this.choices[i];if(i===t&&t>0){u=h.arrowUp}else if(i===r-1&&r<this.choices.length){u=h.arrowDown}else{u=" "}if(d.disabled){a=this.cursor===i?o.gray().underline(d.title):o.strikethrough().gray(d.title);u=(this.cursor===i?o.bold().gray(h.pointer)+" ":" ")+u}else{a=this.cursor===i?o.cyan().underline(d.title):d.title;u=(this.cursor===i?o.cyan(h.pointer)+" ":" ")+u;if(d.description&&this.cursor===i){l=` - ${d.description}`;if(u.length+a.length+l.length>=this.out.columns||d.description.split(/\r?\n/).length>1){l="\n"+p(d.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${u} ${a}${o.gray(l)}\n`}}this.out.write(this.outputText)}}t.exports=SelectPrompt},1551:(t,r,i)=>{const o=i(9439);const a=i(9126);const{erase:u,cursor:l}=i(332);const{style:h,clear:p,lines:d,figures:m}=i(9807);class TextPrompt extends a{constructor(t={}){super(t);this.transform=h.render(t.style);this.scale=this.transform.scale;this.msg=t.message;this.initial=t.initial||``;this.validator=t.validate||(()=>true);this.value=``;this.errorMsg=t.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.clear=p(``,this.out.columns);this.render()}set value(t){if(!t&&this.initial){this.placeholder=true;this.rendered=o.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(t)}this._value=t;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.fire();this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let t=await this.validator(this.value);if(typeof t===`string`){this.errorMsg=t;t=false}this.error=!t}async submit(){this.value=this.value||this.initial;this.cursorOffset=0;this.cursor=this.rendered.length;await this.validate();if(this.error){this.red=true;this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(t){if(this.placeholder)return;this.cursor=this.cursor+t;this.cursorOffset+=t}_(t,r){let i=this.value.slice(0,this.cursor);let o=this.value.slice(this.cursor);this.value=`${i}${t}${o}`;this.red=false;this.cursor=this.placeholder?0:i.length+1;this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1);let r=this.value.slice(this.cursor);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtStart()){this.cursorOffset=0}else{this.cursorOffset++;this.moveCursor(-1)}this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor);let r=this.value.slice(this.cursor+1);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtEnd()){this.cursorOffset=0}else{this.cursorOffset++}this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(l.down(d(this.outputError,this.out.columns)-1)+p(this.outputError,this.out.columns));this.out.write(p(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[h.symbol(this.done,this.aborted),o.bold(this.msg),h.delimiter(this.done),this.red?o.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?" ":m.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(u.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore+l.move(this.cursorOffset,0))}}t.exports=TextPrompt},181:(t,r,i)=>{const o=i(9439);const a=i(9126);const{style:u,clear:l}=i(9807);const{cursor:h,erase:p}=i(332);class TogglePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=!!t.initial;this.active=t.active||"on";this.inactive=t.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(t,r){if(t===" "){this.value=!this.value}else if(t==="1"){this.value=true}else if(t==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(this.done),this.value?this.inactive:o.cyan().underline(this.inactive),o.gray("/"),this.value?o.cyan().underline(this.active):this.active].join(" ");this.out.write(p.line+h.to(0)+this.outputText)}}t.exports=TogglePrompt},9590:(t,r,i)=>{"use strict";const o=i(4450);const a=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};async function prompt(t=[],{onSubmit:r=noop,onCancel:i=noop}={}){const u={};const l=prompt._override||{};t=[].concat(t);let h,p,d,m,g,y;const getFormattedAnswer=async(t,r,i=false)=>{if(!i&&t.validate&&t.validate(r)!==true){return}return t.format?await t.format(r,u):r};for(p of t){({name:m,type:g}=p);if(typeof g==="function"){g=await g(h,{...u},p);p["type"]=g}if(!g)continue;for(let t in p){if(a.includes(t))continue;let r=p[t];p[t]=typeof r==="function"?await r(h,{...u},y):r}y=p;if(typeof p.message!=="string"){throw new Error("prompt message is required")}({name:m,type:g}=p);if(o[g]===void 0){throw new Error(`prompt type (${g}) is not defined`)}if(l[p.name]!==undefined){h=await getFormattedAnswer(p,l[p.name]);if(h!==undefined){u[m]=h;continue}}try{h=prompt._injected?getInjectedAnswer(prompt._injected,p.initial):await o[g](p);u[m]=h=await getFormattedAnswer(p,h,true);d=await r(p,h,u)}catch(t){d=!await i(p,u)}if(d)return u}return u}function getInjectedAnswer(t,r){const i=t.shift();if(i instanceof Error){throw i}return i===undefined?r:i}function inject(t){prompt._injected=(prompt._injected||[]).concat(t)}function override(t){prompt._override=Object.assign({},t)}t.exports=Object.assign(prompt,{prompt:prompt,prompts:o,inject:inject,override:override})},4450:(t,r,i)=>{"use strict";const o=r;const a=i(6529);const noop=t=>t;function toPrompt(t,r,i={}){return new Promise(((o,u)=>{const l=new a[t](r);const h=i.onAbort||noop;const p=i.onSubmit||noop;const d=i.onExit||noop;l.on("state",r.onState||noop);l.on("submit",(t=>o(p(t))));l.on("exit",(t=>o(d(t))));l.on("abort",(t=>u(h(t))))}))}o.text=t=>toPrompt("TextPrompt",t);o.password=t=>{t.style="password";return o.text(t)};o.invisible=t=>{t.style="invisible";return o.text(t)};o.number=t=>toPrompt("NumberPrompt",t);o.date=t=>toPrompt("DatePrompt",t);o.confirm=t=>toPrompt("ConfirmPrompt",t);o.list=t=>{const r=t.separator||",";return toPrompt("TextPrompt",t,{onSubmit:t=>t.split(r).map((t=>t.trim()))})};o.toggle=t=>toPrompt("TogglePrompt",t);o.select=t=>toPrompt("SelectPrompt",t);o.multiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("MultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};o.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("AutocompleteMultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(t,r)=>Promise.resolve(r.filter((r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));o.autocomplete=t=>{t.suggest=t.suggest||byTitle;t.choices=[].concat(t.choices||[]);return toPrompt("AutocompletePrompt",t)}},8573:t=>{"use strict";t.exports=(t,r)=>{if(t.meta&&t.name!=="escape")return;if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c")return"abort";if(t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(r){if(t.name==="j")return"down";if(t.name==="k")return"up"}if(t.name==="return")return"submit";if(t.name==="enter")return"submit";if(t.name==="backspace")return"delete";if(t.name==="delete")return"deleteForward";if(t.name==="abort")return"abort";if(t.name==="escape")return"exit";if(t.name==="tab")return"next";if(t.name==="pagedown")return"nextPage";if(t.name==="pageup")return"prevPage";if(t.name==="home")return"home";if(t.name==="end")return"end";if(t.name==="up")return"up";if(t.name==="down")return"down";if(t.name==="right")return"right";if(t.name==="left")return"left";return false}},6747:(t,r,i)=>{"use strict";const o=i(2714);const{erase:a,cursor:u}=i(332);const width=t=>[...o(t)].length;t.exports=function(t,r){if(!r)return a.line+u.to(0);let i=0;const o=t.split(/\r?\n/);for(let t of o){i+=1+Math.floor(Math.max(width(t)-1,0)/r)}return a.lines(i)}},3297:t=>{"use strict";t.exports=(t,r,i)=>{i=i||r;let o=Math.min(r-i,t-Math.floor(i/2));if(o<0)o=0;let a=Math.min(o+i,r);return{startIndex:o,endIndex:a}}},3034:t=>{"use strict";const r={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const i={arrowUp:r.arrowUp,arrowDown:r.arrowDown,arrowLeft:r.arrowLeft,arrowRight:r.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const o=process.platform==="win32"?i:r;t.exports=o},9807:(t,r,i)=>{"use strict";t.exports={action:i(8573),clear:i(6747),style:i(7357),strip:i(2714),figures:i(3034),lines:i(4413),wrap:i(2492),entriesToDisplay:i(3297)}},4413:(t,r,i)=>{"use strict";const o=i(2714);t.exports=function(t,r){let i=String(o(t)||"").split(/\r?\n/);if(!r)return i.length;return i.map((t=>Math.ceil(t.length/r))).reduce(((t,r)=>t+r))}},2714:t=>{"use strict";t.exports=t=>{const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const i=new RegExp(r,"g");return typeof t==="string"?t.replace(i,""):t}},7357:(t,r,i)=>{"use strict";const o=i(9439);const a=i(3034);const u=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}});const render=t=>u[t]||u.default;const l=Object.freeze({aborted:o.red(a.cross),done:o.green(a.tick),exited:o.yellow(a.cross),default:o.cyan("?")});const symbol=(t,r,i)=>r?l.aborted:i?l.exited:t?l.done:l.default;const delimiter=t=>o.gray(t?a.ellipsis:a.pointerSmall);const item=(t,r)=>o.gray(t?r?a.pointerSmall:"+":a.line);t.exports={styles:u,render:render,symbols:l,symbol:symbol,delimiter:delimiter,item:item}},2492:t=>{"use strict";t.exports=(t,r={})=>{const i=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"";const o=r.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,r)=>{if(r.length+i.length>=o||t[t.length-1].length+r.length+1<o)t[t.length-1]+=` ${r}`;else t.push(`${i}${r}`);return t}),[i]).join("\n"))).join("\n")}},3135:t=>{
61
61
  /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
62
- let r;t.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window!=="undefined"?window:global):t=>(r||(r=Promise.resolve())).then(t).catch((t=>setTimeout((()=>{throw t}),0)))},8271:(t,r,i)=>{var o=i(7563);var a=i(1017).join;var u=i(5134);var l="/etc";var h=process.platform==="win32";var p=h?process.env.USERPROFILE:process.env.HOME;t.exports=function(t,r,d,m){if("string"!==typeof t)throw new Error("rc(name): name *must* be string");if(!d)d=i(5912)(process.argv.slice(2));r=("string"===typeof r?o.json(r):r)||{};m=m||o.parse;var g=o.env(t+"_");var y=[r];var A=[];function addConfigFile(t){if(A.indexOf(t)>=0)return;var r=o.file(t);if(r){y.push(m(r));A.push(t)}}if(!h)[a(l,t,"config"),a(l,t+"rc")].forEach(addConfigFile);if(p)[a(p,".config",t,"config"),a(p,".config",t),a(p,"."+t,"config"),a(p,"."+t+"rc")].forEach(addConfigFile);addConfigFile(o.find("."+t+"rc"));if(g.config)addConfigFile(g.config);if(d.config)addConfigFile(d.config);return u.apply(null,y.concat([g,d,A.length?{configs:A,config:A[A.length-1]}:undefined]))}},7563:(t,r,i)=>{"use strict";var o=i(7147);var a=i(1923);var u=i(1017);var l=i(6397);var h=r.parse=function(t){if(/^\s*{/.test(t))return JSON.parse(l(t));return a.parse(t)};var p=r.file=function(){var t=[].slice.call(arguments).filter((function(t){return t!=null}));for(var r in t)if("string"!==typeof t[r])return;var i=u.join.apply(null,t);var a;try{return o.readFileSync(i,"utf-8")}catch(t){return}};var d=r.json=function(){var t=p.apply(null,arguments);return t?h(t):null};var m=r.env=function(t,r){r=r||process.env;var i={};var o=t.length;for(var a in r){if(a.toLowerCase().indexOf(t.toLowerCase())===0){var u=a.substring(o).split("__");var l;while((l=u.indexOf(""))>-1){u.splice(l,1)}var h=i;u.forEach((function _buildSubObj(t,i){if(!t||typeof h!=="object")return;if(i===u.length-1)h[t]=r[a];if(h[t]===undefined)h[t]={};h=h[t]}))}}return i};var g=r.find=function(){var t=u.join.apply(null,[].slice.call(arguments));function find(t,r){var i=u.join(t,r);try{o.statSync(i);return i}catch(i){if(u.dirname(t)!==t)return find(u.dirname(t),r)}}return find(process.cwd(),t)}},6397:t=>{"use strict";var r=1;var i=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(t,r,i){return t.slice(r,i).replace(/\S/g," ")}t.exports=function(t,o){o=o||{};var a;var u;var l=false;var h=false;var p=0;var d="";var m=o.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var g=0;g<t.length;g++){a=t[g];u=t[g+1];if(!h&&a==='"'){var y=t[g-1]==="\\"&&t[g-2]!=="\\";if(!y){l=!l}}if(l){continue}if(!h&&a+u==="//"){d+=t.slice(p,g);p=g;h=r;g++}else if(h===r&&a+u==="\r\n"){g++;h=false;d+=m(t,p,g);p=g;continue}else if(h===r&&a==="\n"){h=false;d+=m(t,p,g);p=g}else if(!h&&a+u==="/*"){d+=t.slice(p,g);p=g;h=i;g++;continue}else if(h===i&&a+u==="*/"){g++;h=false;d+=m(t,p,g+1);p=g+1;continue}}return d+(h?m(t.substr(p)):t.substr(p))}},5855:(t,r,i)=>{const o=i(3118).Buffer;function decodeBase64(t){return o.from(t,"base64").toString("utf8")}function encodeBase64(t){return o.from(t,"utf8").toString("base64")}t.exports={decodeBase64:decodeBase64,encodeBase64:encodeBase64}},1384:(t,r,i)=>{var o=i(7310);var a=i(5855);var u=a.decodeBase64;var l=a.encodeBase64;var h=":_authToken";var p=":username";var d=":_password";t.exports=function(){var t;var r;if(arguments.length>=2){t=arguments[0];r=arguments[1]}else if(typeof arguments[0]==="string"){t=arguments[0]}else{r=arguments[0]}r=r||{};r.npmrc=r.npmrc||i(8271)("npm",{registry:"https://registry.npmjs.org/"});t=t||r.npmrc.registry;return getRegistryAuthInfo(t,r)||getLegacyAuthInfo(r.npmrc)};function getRegistryAuthInfo(t,r){var i=o.parse(t,false,true);var a;while(a!=="/"&&i.pathname!==a){a=i.pathname||"/";var u="//"+i.host+a.replace(/\/$/,"");var l=getAuthInfoForUrl(u,r.npmrc);if(l){return l}if(!r.recursive){return/\/$/.test(t)?undefined:getRegistryAuthInfo(o.resolve(t,"."),r)}i.pathname=o.resolve(normalizePath(a),"..")||"/"}return undefined}function getLegacyAuthInfo(t){if(t._auth){return{token:t._auth,type:"Basic"}}return undefined}function normalizePath(t){return t[t.length-1]==="/"?t:t+"/"}function getAuthInfoForUrl(t,r){var i=getBearerToken(r[t+h]||r[t+"/"+h]);if(i){return i}var o=r[t+p]||r[t+"/"+p];var a=r[t+d]||r[t+"/"+d];var u=getTokenForUsernameAndPassword(o,a);if(u){return u}return undefined}function getBearerToken(t){if(!t){return undefined}var r=t.replace(/^\$\{?([^}]*)\}?$/,(function(t,r){return process.env[r]}));return{token:r,type:"Bearer"}}function getTokenForUsernameAndPassword(t,r){if(!t||!r){return undefined}var i=u(r.replace(/^\$\{?([^}]*)\}?$/,(function(t,r){return process.env[r]})));var o=l(t+":"+i);return{token:o,type:"Basic",password:i,username:t}}},2447:(t,r,i)=>{"use strict";t.exports=function(t){var r=i(8271)("npm",{registry:"https://registry.npmjs.org/"});var o=r[t+":registry"]||r.registry;return o.slice(-1)==="/"?o:o+"/"}},7301:(t,r,i)=>{(()=>{"use strict";var r={610:(t,r,i)=>{const o=i(8750);const a=i(9434);const u=i(5873);const l=i(6477);const braces=(t,r={})=>{let i=[];if(Array.isArray(t)){for(const o of t){const t=braces.create(o,r);if(Array.isArray(t)){i.push(...t)}else{i.push(t)}}}else{i=[].concat(braces.create(t,r))}if(r&&r.expand===true&&r.nodupes===true){i=[...new Set(i)]}return i};braces.parse=(t,r={})=>l(t,r);braces.stringify=(t,r={})=>{if(typeof t==="string"){return o(braces.parse(t,r),r)}return o(t,r)};braces.compile=(t,r={})=>{if(typeof t==="string"){t=braces.parse(t,r)}return a(t,r)};braces.expand=(t,r={})=>{if(typeof t==="string"){t=braces.parse(t,r)}let i=u(t,r);if(r.noempty===true){i=i.filter(Boolean)}if(r.nodupes===true){i=[...new Set(i)]}return i};braces.create=(t,r={})=>{if(t===""||t.length<3){return[t]}return r.expand!==true?braces.compile(t,r):braces.expand(t,r)};t.exports=braces},9434:(t,r,i)=>{const o=i(6330);const a=i(5207);const compile=(t,r={})=>{const walk=(t,i={})=>{const u=a.isInvalidBrace(i);const l=t.invalid===true&&r.escapeInvalid===true;const h=u===true||l===true;const p=r.escapeInvalid===true?"\\":"";let d="";if(t.isOpen===true){return p+t.value}if(t.isClose===true){console.log("node.isClose",p,t.value);return p+t.value}if(t.type==="open"){return h?p+t.value:"("}if(t.type==="close"){return h?p+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":h?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){const i=a.reduce(t.nodes);const u=o(...i,{...r,wrap:false,toRegex:true,strictZeros:true});if(u.length!==0){return i.length>1&&u.length>1?`(${u})`:u}}if(t.nodes){for(const r of t.nodes){d+=walk(r,t)}}return d};return walk(t)};t.exports=compile},8774:t=>{t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},5873:(t,r,i)=>{const o=i(6330);const a=i(8750);const u=i(5207);const append=(t="",r="",i=false)=>{const o=[];t=[].concat(t);r=[].concat(r);if(!r.length)return t;if(!t.length){return i?u.flatten(r).map((t=>`{${t}}`)):r}for(const a of t){if(Array.isArray(a)){for(const t of a){o.push(append(t,r,i))}}else{for(let t of r){if(i===true&&typeof t==="string")t=`{${t}}`;o.push(Array.isArray(t)?append(a,t,i):a+t)}}}return u.flatten(o)};const expand=(t,r={})=>{const i=r.rangeLimit===undefined?1e3:r.rangeLimit;const walk=(t,l={})=>{t.queue=[];let h=l;let p=l.queue;while(h.type!=="brace"&&h.type!=="root"&&h.parent){h=h.parent;p=h.queue}if(t.invalid||t.dollar){p.push(append(p.pop(),a(t,r)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){p.push(append(p.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){const l=u.reduce(t.nodes);if(u.exceedsLimit(...l,r.step,i)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let h=o(...l,r);if(h.length===0){h=a(t,r)}p.push(append(p.pop(),h));t.nodes=[];return}const d=u.encloseBrace(t);let m=t.queue;let g=t;while(g.type!=="brace"&&g.type!=="root"&&g.parent){g=g.parent;m=g.queue}for(let r=0;r<t.nodes.length;r++){const i=t.nodes[r];if(i.type==="comma"&&t.type==="brace"){if(r===1)m.push("");m.push("");continue}if(i.type==="close"){p.push(append(p.pop(),m,d));continue}if(i.value&&i.type!=="open"){m.push(append(m.pop(),i.value));continue}if(i.nodes){walk(i,t)}}return m};return u.flatten(walk(t))};t.exports=expand},6477:(t,r,i)=>{const o=i(8750);const{MAX_LENGTH:a,CHAR_BACKSLASH:u,CHAR_BACKTICK:l,CHAR_COMMA:h,CHAR_DOT:p,CHAR_LEFT_PARENTHESES:d,CHAR_RIGHT_PARENTHESES:m,CHAR_LEFT_CURLY_BRACE:g,CHAR_RIGHT_CURLY_BRACE:y,CHAR_LEFT_SQUARE_BRACKET:A,CHAR_RIGHT_SQUARE_BRACKET:b,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:E,CHAR_NO_BREAK_SPACE:w,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=i(8774);const parse=(t,r={})=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}const i=r||{};const S=typeof i.maxLength==="number"?Math.min(a,i.maxLength):a;if(t.length>S){throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${S})`)}const C={type:"root",input:t,nodes:[]};const D=[C];let x=C;let R=C;let O=0;const k=t.length;let P=0;let T=0;let L;const advance=()=>t[P++];const push=t=>{if(t.type==="text"&&R.type==="dot"){R.type="text"}if(R&&R.type==="text"&&t.type==="text"){R.value+=t.value;return}x.nodes.push(t);t.parent=x;t.prev=R;R=t;return t};push({type:"bos"});while(P<k){x=D[D.length-1];L=advance();if(L===_||L===w){continue}if(L===u){push({type:"text",value:(r.keepEscaping?L:"")+advance()});continue}if(L===b){push({type:"text",value:"\\"+L});continue}if(L===A){O++;let t;while(P<k&&(t=advance())){L+=t;if(t===A){O++;continue}if(t===u){L+=advance();continue}if(t===b){O--;if(O===0){break}}}push({type:"text",value:L});continue}if(L===d){x=push({type:"paren",nodes:[]});D.push(x);push({type:"text",value:L});continue}if(L===m){if(x.type!=="paren"){push({type:"text",value:L});continue}x=D.pop();push({type:"text",value:L});x=D[D.length-1];continue}if(L===v||L===E||L===l){const t=L;let i;if(r.keepQuotes!==true){L=""}while(P<k&&(i=advance())){if(i===u){L+=i+advance();continue}if(i===t){if(r.keepQuotes===true)L+=i;break}L+=i}push({type:"text",value:L});continue}if(L===g){T++;const t=R.value&&R.value.slice(-1)==="$"||x.dollar===true;const r={type:"brace",open:true,close:false,dollar:t,depth:T,commas:0,ranges:0,nodes:[]};x=push(r);D.push(x);push({type:"open",value:L});continue}if(L===y){if(x.type!=="brace"){push({type:"text",value:L});continue}const t="close";x=D.pop();x.close=true;push({type:t,value:L});T--;x=D[D.length-1];continue}if(L===h&&T>0){if(x.ranges>0){x.ranges=0;const t=x.nodes.shift();x.nodes=[t,{type:"text",value:o(x)}]}push({type:"comma",value:L});x.commas++;continue}if(L===p&&T>0&&x.commas===0){const t=x.nodes;if(T===0||t.length===0){push({type:"text",value:L});continue}if(R.type==="dot"){x.range=[];R.value+=L;R.type="range";if(x.nodes.length!==3&&x.nodes.length!==5){x.invalid=true;x.ranges=0;R.type="text";continue}x.ranges++;x.args=[];continue}if(R.type==="range"){t.pop();const r=t[t.length-1];r.value+=R.value+L;R=r;x.ranges--;continue}push({type:"dot",value:L});continue}push({type:"text",value:L})}do{x=D.pop();if(x.type!=="root"){x.nodes.forEach((t=>{if(!t.nodes){if(t.type==="open")t.isOpen=true;if(t.type==="close")t.isClose=true;if(!t.nodes)t.type="text";t.invalid=true}}));const t=D[D.length-1];const r=t.nodes.indexOf(x);t.nodes.splice(r,1,...x.nodes)}}while(D.length>0);push({type:"eos"});return C};t.exports=parse},8750:(t,r,i)=>{const o=i(5207);t.exports=(t,r={})=>{const stringify=(t,i={})=>{const a=r.escapeInvalid&&o.isInvalidBrace(i);const u=t.invalid===true&&r.escapeInvalid===true;let l="";if(t.value){if((a||u)&&o.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(const r of t.nodes){l+=stringify(r)}}return l};return stringify(t)}},5207:(t,r)=>{r.isInteger=t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false};r.find=(t,r)=>t.nodes.find((t=>t.type===r));r.exceedsLimit=(t,i,o=1,a)=>{if(a===false)return false;if(!r.isInteger(t)||!r.isInteger(i))return false;return(Number(i)-Number(t))/Number(o)>=a};r.escapeNode=(t,r=0,i)=>{const o=t.nodes[r];if(!o)return;if(i&&o.type===i||o.type==="open"||o.type==="close"){if(o.escaped!==true){o.value="\\"+o.value;o.escaped=true}}};r.encloseBrace=t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false};r.isInvalidBrace=t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false};r.isOpenOrClose=t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true};r.reduce=t=>t.reduce(((t,r)=>{if(r.type==="text")t.push(r.value);if(r.type==="range")r.type="text";return t}),[]);r.flatten=(...t)=>{const r=[];const flat=t=>{for(let i=0;i<t.length;i++){const o=t[i];if(Array.isArray(o)){flat(o);continue}if(o!==undefined){r.push(o)}}return r};flat(t);return r}},6330:(t,r,i)=>{
62
+ let r;t.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window!=="undefined"?window:global):t=>(r||(r=Promise.resolve())).then(t).catch((t=>setTimeout((()=>{throw t}),0)))},8271:(t,r,i)=>{var o=i(7563);var a=i(1017).join;var u=i(5134);var l="/etc";var h=process.platform==="win32";var p=h?process.env.USERPROFILE:process.env.HOME;t.exports=function(t,r,d,m){if("string"!==typeof t)throw new Error("rc(name): name *must* be string");if(!d)d=i(5912)(process.argv.slice(2));r=("string"===typeof r?o.json(r):r)||{};m=m||o.parse;var g=o.env(t+"_");var y=[r];var A=[];function addConfigFile(t){if(A.indexOf(t)>=0)return;var r=o.file(t);if(r){y.push(m(r));A.push(t)}}if(!h)[a(l,t,"config"),a(l,t+"rc")].forEach(addConfigFile);if(p)[a(p,".config",t,"config"),a(p,".config",t),a(p,"."+t,"config"),a(p,"."+t+"rc")].forEach(addConfigFile);addConfigFile(o.find("."+t+"rc"));if(g.config)addConfigFile(g.config);if(d.config)addConfigFile(d.config);return u.apply(null,y.concat([g,d,A.length?{configs:A,config:A[A.length-1]}:undefined]))}},7563:(t,r,i)=>{"use strict";var o=i(7147);var a=i(1923);var u=i(1017);var l=i(6397);var h=r.parse=function(t){if(/^\s*{/.test(t))return JSON.parse(l(t));return a.parse(t)};var p=r.file=function(){var t=[].slice.call(arguments).filter((function(t){return t!=null}));for(var r in t)if("string"!==typeof t[r])return;var i=u.join.apply(null,t);var a;try{return o.readFileSync(i,"utf-8")}catch(t){return}};var d=r.json=function(){var t=p.apply(null,arguments);return t?h(t):null};var m=r.env=function(t,r){r=r||process.env;var i={};var o=t.length;for(var a in r){if(a.toLowerCase().indexOf(t.toLowerCase())===0){var u=a.substring(o).split("__");var l;while((l=u.indexOf(""))>-1){u.splice(l,1)}var h=i;u.forEach((function _buildSubObj(t,i){if(!t||typeof h!=="object")return;if(i===u.length-1)h[t]=r[a];if(h[t]===undefined)h[t]={};h=h[t]}))}}return i};var g=r.find=function(){var t=u.join.apply(null,[].slice.call(arguments));function find(t,r){var i=u.join(t,r);try{o.statSync(i);return i}catch(i){if(u.dirname(t)!==t)return find(u.dirname(t),r)}}return find(process.cwd(),t)}},6397:t=>{"use strict";var r=1;var i=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(t,r,i){return t.slice(r,i).replace(/\S/g," ")}t.exports=function(t,o){o=o||{};var a;var u;var l=false;var h=false;var p=0;var d="";var m=o.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var g=0;g<t.length;g++){a=t[g];u=t[g+1];if(!h&&a==='"'){var y=t[g-1]==="\\"&&t[g-2]!=="\\";if(!y){l=!l}}if(l){continue}if(!h&&a+u==="//"){d+=t.slice(p,g);p=g;h=r;g++}else if(h===r&&a+u==="\r\n"){g++;h=false;d+=m(t,p,g);p=g;continue}else if(h===r&&a==="\n"){h=false;d+=m(t,p,g);p=g}else if(!h&&a+u==="/*"){d+=t.slice(p,g);p=g;h=i;g++;continue}else if(h===i&&a+u==="*/"){g++;h=false;d+=m(t,p,g+1);p=g+1;continue}}return d+(h?m(t.substr(p)):t.substr(p))}},5855:(t,r,i)=>{const o=i(3118).Buffer;function decodeBase64(t){return o.from(t,"base64").toString("utf8")}function encodeBase64(t){return o.from(t,"utf8").toString("base64")}t.exports={decodeBase64:decodeBase64,encodeBase64:encodeBase64}},1384:(t,r,i)=>{var o=i(7310);var a=i(5855);var u=a.decodeBase64;var l=a.encodeBase64;var h=":_authToken";var p=":username";var d=":_password";t.exports=function(){var t;var r;if(arguments.length>=2){t=arguments[0];r=arguments[1]}else if(typeof arguments[0]==="string"){t=arguments[0]}else{r=arguments[0]}r=r||{};r.npmrc=r.npmrc||i(8271)("npm",{registry:"https://registry.npmjs.org/"});t=t||r.npmrc.registry;return getRegistryAuthInfo(t,r)||getLegacyAuthInfo(r.npmrc)};function getRegistryAuthInfo(t,r){var i=o.parse(t,false,true);var a;while(a!=="/"&&i.pathname!==a){a=i.pathname||"/";var u="//"+i.host+a.replace(/\/$/,"");var l=getAuthInfoForUrl(u,r.npmrc);if(l){return l}if(!r.recursive){return/\/$/.test(t)?undefined:getRegistryAuthInfo(o.resolve(t,"."),r)}i.pathname=o.resolve(normalizePath(a),"..")||"/"}return undefined}function getLegacyAuthInfo(t){if(t._auth){return{token:t._auth,type:"Basic"}}return undefined}function normalizePath(t){return t[t.length-1]==="/"?t:t+"/"}function getAuthInfoForUrl(t,r){var i=getBearerToken(r[t+h]||r[t+"/"+h]);if(i){return i}var o=r[t+p]||r[t+"/"+p];var a=r[t+d]||r[t+"/"+d];var u=getTokenForUsernameAndPassword(o,a);if(u){return u}return undefined}function getBearerToken(t){if(!t){return undefined}var r=t.replace(/^\$\{?([^}]*)\}?$/,(function(t,r){return process.env[r]}));return{token:r,type:"Bearer"}}function getTokenForUsernameAndPassword(t,r){if(!t||!r){return undefined}var i=u(r.replace(/^\$\{?([^}]*)\}?$/,(function(t,r){return process.env[r]})));var o=l(t+":"+i);return{token:o,type:"Basic",password:i,username:t}}},2447:(t,r,i)=>{"use strict";t.exports=function(t){var r=i(8271)("npm",{registry:"https://registry.npmjs.org/"});var o=r[t+":registry"]||r.registry;return o.slice(-1)==="/"?o:o+"/"}},7301:(t,r,i)=>{(()=>{"use strict";var r={610:(t,r,i)=>{const o=i(8750);const a=i(9434);const u=i(5873);const l=i(6477);const braces=(t,r={})=>{let i=[];if(Array.isArray(t)){for(const o of t){const t=braces.create(o,r);if(Array.isArray(t)){i.push(...t)}else{i.push(t)}}}else{i=[].concat(braces.create(t,r))}if(r&&r.expand===true&&r.nodupes===true){i=[...new Set(i)]}return i};braces.parse=(t,r={})=>l(t,r);braces.stringify=(t,r={})=>{if(typeof t==="string"){return o(braces.parse(t,r),r)}return o(t,r)};braces.compile=(t,r={})=>{if(typeof t==="string"){t=braces.parse(t,r)}return a(t,r)};braces.expand=(t,r={})=>{if(typeof t==="string"){t=braces.parse(t,r)}let i=u(t,r);if(r.noempty===true){i=i.filter(Boolean)}if(r.nodupes===true){i=[...new Set(i)]}return i};braces.create=(t,r={})=>{if(t===""||t.length<3){return[t]}return r.expand!==true?braces.compile(t,r):braces.expand(t,r)};t.exports=braces},9434:(t,r,i)=>{const o=i(6330);const a=i(5207);const compile=(t,r={})=>{const walk=(t,i={})=>{const u=a.isInvalidBrace(i);const l=t.invalid===true&&r.escapeInvalid===true;const h=u===true||l===true;const p=r.escapeInvalid===true?"\\":"";let d="";if(t.isOpen===true){return p+t.value}if(t.isClose===true){console.log("node.isClose",p,t.value);return p+t.value}if(t.type==="open"){return h?p+t.value:"("}if(t.type==="close"){return h?p+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":h?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){const i=a.reduce(t.nodes);const u=o(...i,{...r,wrap:false,toRegex:true,strictZeros:true});if(u.length!==0){return i.length>1&&u.length>1?`(${u})`:u}}if(t.nodes){for(const r of t.nodes){d+=walk(r,t)}}return d};return walk(t)};t.exports=compile},8774:t=>{t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},5873:(t,r,i)=>{const o=i(6330);const a=i(8750);const u=i(5207);const append=(t="",r="",i=false)=>{const o=[];t=[].concat(t);r=[].concat(r);if(!r.length)return t;if(!t.length){return i?u.flatten(r).map((t=>`{${t}}`)):r}for(const a of t){if(Array.isArray(a)){for(const t of a){o.push(append(t,r,i))}}else{for(let t of r){if(i===true&&typeof t==="string")t=`{${t}}`;o.push(Array.isArray(t)?append(a,t,i):a+t)}}}return u.flatten(o)};const expand=(t,r={})=>{const i=r.rangeLimit===undefined?1e3:r.rangeLimit;const walk=(t,l={})=>{t.queue=[];let h=l;let p=l.queue;while(h.type!=="brace"&&h.type!=="root"&&h.parent){h=h.parent;p=h.queue}if(t.invalid||t.dollar){p.push(append(p.pop(),a(t,r)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){p.push(append(p.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){const l=u.reduce(t.nodes);if(u.exceedsLimit(...l,r.step,i)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let h=o(...l,r);if(h.length===0){h=a(t,r)}p.push(append(p.pop(),h));t.nodes=[];return}const d=u.encloseBrace(t);let m=t.queue;let g=t;while(g.type!=="brace"&&g.type!=="root"&&g.parent){g=g.parent;m=g.queue}for(let r=0;r<t.nodes.length;r++){const i=t.nodes[r];if(i.type==="comma"&&t.type==="brace"){if(r===1)m.push("");m.push("");continue}if(i.type==="close"){p.push(append(p.pop(),m,d));continue}if(i.value&&i.type!=="open"){m.push(append(m.pop(),i.value));continue}if(i.nodes){walk(i,t)}}return m};return u.flatten(walk(t))};t.exports=expand},6477:(t,r,i)=>{const o=i(8750);const{MAX_LENGTH:a,CHAR_BACKSLASH:u,CHAR_BACKTICK:l,CHAR_COMMA:h,CHAR_DOT:p,CHAR_LEFT_PARENTHESES:d,CHAR_RIGHT_PARENTHESES:m,CHAR_LEFT_CURLY_BRACE:g,CHAR_RIGHT_CURLY_BRACE:y,CHAR_LEFT_SQUARE_BRACKET:A,CHAR_RIGHT_SQUARE_BRACKET:b,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:w,CHAR_NO_BREAK_SPACE:E,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=i(8774);const parse=(t,r={})=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}const i=r||{};const S=typeof i.maxLength==="number"?Math.min(a,i.maxLength):a;if(t.length>S){throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${S})`)}const C={type:"root",input:t,nodes:[]};const D=[C];let x=C;let R=C;let O=0;const k=t.length;let P=0;let T=0;let L;const advance=()=>t[P++];const push=t=>{if(t.type==="text"&&R.type==="dot"){R.type="text"}if(R&&R.type==="text"&&t.type==="text"){R.value+=t.value;return}x.nodes.push(t);t.parent=x;t.prev=R;R=t;return t};push({type:"bos"});while(P<k){x=D[D.length-1];L=advance();if(L===_||L===E){continue}if(L===u){push({type:"text",value:(r.keepEscaping?L:"")+advance()});continue}if(L===b){push({type:"text",value:"\\"+L});continue}if(L===A){O++;let t;while(P<k&&(t=advance())){L+=t;if(t===A){O++;continue}if(t===u){L+=advance();continue}if(t===b){O--;if(O===0){break}}}push({type:"text",value:L});continue}if(L===d){x=push({type:"paren",nodes:[]});D.push(x);push({type:"text",value:L});continue}if(L===m){if(x.type!=="paren"){push({type:"text",value:L});continue}x=D.pop();push({type:"text",value:L});x=D[D.length-1];continue}if(L===v||L===w||L===l){const t=L;let i;if(r.keepQuotes!==true){L=""}while(P<k&&(i=advance())){if(i===u){L+=i+advance();continue}if(i===t){if(r.keepQuotes===true)L+=i;break}L+=i}push({type:"text",value:L});continue}if(L===g){T++;const t=R.value&&R.value.slice(-1)==="$"||x.dollar===true;const r={type:"brace",open:true,close:false,dollar:t,depth:T,commas:0,ranges:0,nodes:[]};x=push(r);D.push(x);push({type:"open",value:L});continue}if(L===y){if(x.type!=="brace"){push({type:"text",value:L});continue}const t="close";x=D.pop();x.close=true;push({type:t,value:L});T--;x=D[D.length-1];continue}if(L===h&&T>0){if(x.ranges>0){x.ranges=0;const t=x.nodes.shift();x.nodes=[t,{type:"text",value:o(x)}]}push({type:"comma",value:L});x.commas++;continue}if(L===p&&T>0&&x.commas===0){const t=x.nodes;if(T===0||t.length===0){push({type:"text",value:L});continue}if(R.type==="dot"){x.range=[];R.value+=L;R.type="range";if(x.nodes.length!==3&&x.nodes.length!==5){x.invalid=true;x.ranges=0;R.type="text";continue}x.ranges++;x.args=[];continue}if(R.type==="range"){t.pop();const r=t[t.length-1];r.value+=R.value+L;R=r;x.ranges--;continue}push({type:"dot",value:L});continue}push({type:"text",value:L})}do{x=D.pop();if(x.type!=="root"){x.nodes.forEach((t=>{if(!t.nodes){if(t.type==="open")t.isOpen=true;if(t.type==="close")t.isClose=true;if(!t.nodes)t.type="text";t.invalid=true}}));const t=D[D.length-1];const r=t.nodes.indexOf(x);t.nodes.splice(r,1,...x.nodes)}}while(D.length>0);push({type:"eos"});return C};t.exports=parse},8750:(t,r,i)=>{const o=i(5207);t.exports=(t,r={})=>{const stringify=(t,i={})=>{const a=r.escapeInvalid&&o.isInvalidBrace(i);const u=t.invalid===true&&r.escapeInvalid===true;let l="";if(t.value){if((a||u)&&o.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(const r of t.nodes){l+=stringify(r)}}return l};return stringify(t)}},5207:(t,r)=>{r.isInteger=t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false};r.find=(t,r)=>t.nodes.find((t=>t.type===r));r.exceedsLimit=(t,i,o=1,a)=>{if(a===false)return false;if(!r.isInteger(t)||!r.isInteger(i))return false;return(Number(i)-Number(t))/Number(o)>=a};r.escapeNode=(t,r=0,i)=>{const o=t.nodes[r];if(!o)return;if(i&&o.type===i||o.type==="open"||o.type==="close"){if(o.escaped!==true){o.value="\\"+o.value;o.escaped=true}}};r.encloseBrace=t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false};r.isInvalidBrace=t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false};r.isOpenOrClose=t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true};r.reduce=t=>t.reduce(((t,r)=>{if(r.type==="text")t.push(r.value);if(r.type==="range")r.type="text";return t}),[]);r.flatten=(...t)=>{const r=[];const flat=t=>{for(let i=0;i<t.length;i++){const o=t[i];if(Array.isArray(o)){flat(o);continue}if(o!==undefined){r.push(o)}}return r};flat(t);return r}},6330:(t,r,i)=>{
63
63
  /*!
64
64
  * fill-range <https://github.com/jonschlinkert/fill-range>
65
65
  *
66
66
  * Copyright (c) 2014-present, Jon Schlinkert.
67
67
  * Licensed under the MIT License.
68
68
  */
69
- const o=i(3837);const a=i(1861);const isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);const transform=t=>r=>t===true?Number(r):String(r);const isValidValue=t=>typeof t==="number"||typeof t==="string"&&t!=="";const isNumber=t=>Number.isInteger(+t);const zeros=t=>{let r=`${t}`;let i=-1;if(r[0]==="-")r=r.slice(1);if(r==="0")return false;while(r[++i]==="0");return i>0};const stringify=(t,r,i)=>{if(typeof t==="string"||typeof r==="string"){return true}return i.stringify===true};const pad=(t,r,i)=>{if(r>0){let i=t[0]==="-"?"-":"";if(i)t=t.slice(1);t=i+t.padStart(i?r-1:r,"0")}if(i===false){return String(t)}return t};const toMaxLen=(t,r)=>{let i=t[0]==="-"?"-":"";if(i){t=t.slice(1);r--}while(t.length<r)t="0"+t;return i?"-"+t:t};const toSequence=(t,r,i)=>{t.negatives.sort(((t,r)=>t<r?-1:t>r?1:0));t.positives.sort(((t,r)=>t<r?-1:t>r?1:0));let o=r.capture?"":"?:";let a="";let u="";let l;if(t.positives.length){a=t.positives.map((t=>toMaxLen(String(t),i))).join("|")}if(t.negatives.length){u=`-(${o}${t.negatives.map((t=>toMaxLen(String(t),i))).join("|")})`}if(a&&u){l=`${a}|${u}`}else{l=a||u}if(r.wrap){return`(${o}${l})`}return l};const toRange=(t,r,i,o)=>{if(i){return a(t,r,{wrap:false,...o})}let u=String.fromCharCode(t);if(t===r)return u;let l=String.fromCharCode(r);return`[${u}-${l}]`};const toRegex=(t,r,i)=>{if(Array.isArray(t)){let r=i.wrap===true;let o=i.capture?"":"?:";return r?`(${o}${t.join("|")})`:t.join("|")}return a(t,r,i)};const rangeError=(...t)=>new RangeError("Invalid range arguments: "+o.inspect(...t));const invalidRange=(t,r,i)=>{if(i.strictRanges===true)throw rangeError([t,r]);return[]};const invalidStep=(t,r)=>{if(r.strictRanges===true){throw new TypeError(`Expected step "${t}" to be a number`)}return[]};const fillNumbers=(t,r,i=1,o={})=>{let a=Number(t);let u=Number(r);if(!Number.isInteger(a)||!Number.isInteger(u)){if(o.strictRanges===true)throw rangeError([t,r]);return[]}if(a===0)a=0;if(u===0)u=0;let l=a>u;let h=String(t);let p=String(r);let d=String(i);i=Math.max(Math.abs(i),1);let m=zeros(h)||zeros(p)||zeros(d);let g=m?Math.max(h.length,p.length,d.length):0;let y=m===false&&stringify(t,r,o)===false;let A=o.transform||transform(y);if(o.toRegex&&i===1){return toRange(toMaxLen(t,g),toMaxLen(r,g),true,o)}let b={negatives:[],positives:[]};let push=t=>b[t<0?"negatives":"positives"].push(Math.abs(t));let v=[];let E=0;while(l?a>=u:a<=u){if(o.toRegex===true&&i>1){push(a)}else{v.push(pad(A(a,E),g,y))}a=l?a-i:a+i;E++}if(o.toRegex===true){return i>1?toSequence(b,o,g):toRegex(v,null,{wrap:false,...o})}return v};const fillLetters=(t,r,i=1,o={})=>{if(!isNumber(t)&&t.length>1||!isNumber(r)&&r.length>1){return invalidRange(t,r,o)}let a=o.transform||(t=>String.fromCharCode(t));let u=`${t}`.charCodeAt(0);let l=`${r}`.charCodeAt(0);let h=u>l;let p=Math.min(u,l);let d=Math.max(u,l);if(o.toRegex&&i===1){return toRange(p,d,false,o)}let m=[];let g=0;while(h?u>=l:u<=l){m.push(a(u,g));u=h?u-i:u+i;g++}if(o.toRegex===true){return toRegex(m,null,{wrap:false,options:o})}return m};const fill=(t,r,i,o={})=>{if(r==null&&isValidValue(t)){return[t]}if(!isValidValue(t)||!isValidValue(r)){return invalidRange(t,r,o)}if(typeof i==="function"){return fill(t,r,1,{transform:i})}if(isObject(i)){return fill(t,r,0,i)}let a={...o};if(a.capture===true)a.wrap=true;i=i||a.step||1;if(!isNumber(i)){if(i!=null&&!isObject(i))return invalidStep(i,a);return fill(t,r,1,i)}if(isNumber(t)&&isNumber(r)){return fillNumbers(t,r,i,a)}return fillLetters(t,r,Math.max(Math.abs(i),1),a)};t.exports=fill},5680:t=>{
69
+ const o=i(3837);const a=i(1861);const isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);const transform=t=>r=>t===true?Number(r):String(r);const isValidValue=t=>typeof t==="number"||typeof t==="string"&&t!=="";const isNumber=t=>Number.isInteger(+t);const zeros=t=>{let r=`${t}`;let i=-1;if(r[0]==="-")r=r.slice(1);if(r==="0")return false;while(r[++i]==="0");return i>0};const stringify=(t,r,i)=>{if(typeof t==="string"||typeof r==="string"){return true}return i.stringify===true};const pad=(t,r,i)=>{if(r>0){let i=t[0]==="-"?"-":"";if(i)t=t.slice(1);t=i+t.padStart(i?r-1:r,"0")}if(i===false){return String(t)}return t};const toMaxLen=(t,r)=>{let i=t[0]==="-"?"-":"";if(i){t=t.slice(1);r--}while(t.length<r)t="0"+t;return i?"-"+t:t};const toSequence=(t,r,i)=>{t.negatives.sort(((t,r)=>t<r?-1:t>r?1:0));t.positives.sort(((t,r)=>t<r?-1:t>r?1:0));let o=r.capture?"":"?:";let a="";let u="";let l;if(t.positives.length){a=t.positives.map((t=>toMaxLen(String(t),i))).join("|")}if(t.negatives.length){u=`-(${o}${t.negatives.map((t=>toMaxLen(String(t),i))).join("|")})`}if(a&&u){l=`${a}|${u}`}else{l=a||u}if(r.wrap){return`(${o}${l})`}return l};const toRange=(t,r,i,o)=>{if(i){return a(t,r,{wrap:false,...o})}let u=String.fromCharCode(t);if(t===r)return u;let l=String.fromCharCode(r);return`[${u}-${l}]`};const toRegex=(t,r,i)=>{if(Array.isArray(t)){let r=i.wrap===true;let o=i.capture?"":"?:";return r?`(${o}${t.join("|")})`:t.join("|")}return a(t,r,i)};const rangeError=(...t)=>new RangeError("Invalid range arguments: "+o.inspect(...t));const invalidRange=(t,r,i)=>{if(i.strictRanges===true)throw rangeError([t,r]);return[]};const invalidStep=(t,r)=>{if(r.strictRanges===true){throw new TypeError(`Expected step "${t}" to be a number`)}return[]};const fillNumbers=(t,r,i=1,o={})=>{let a=Number(t);let u=Number(r);if(!Number.isInteger(a)||!Number.isInteger(u)){if(o.strictRanges===true)throw rangeError([t,r]);return[]}if(a===0)a=0;if(u===0)u=0;let l=a>u;let h=String(t);let p=String(r);let d=String(i);i=Math.max(Math.abs(i),1);let m=zeros(h)||zeros(p)||zeros(d);let g=m?Math.max(h.length,p.length,d.length):0;let y=m===false&&stringify(t,r,o)===false;let A=o.transform||transform(y);if(o.toRegex&&i===1){return toRange(toMaxLen(t,g),toMaxLen(r,g),true,o)}let b={negatives:[],positives:[]};let push=t=>b[t<0?"negatives":"positives"].push(Math.abs(t));let v=[];let w=0;while(l?a>=u:a<=u){if(o.toRegex===true&&i>1){push(a)}else{v.push(pad(A(a,w),g,y))}a=l?a-i:a+i;w++}if(o.toRegex===true){return i>1?toSequence(b,o,g):toRegex(v,null,{wrap:false,...o})}return v};const fillLetters=(t,r,i=1,o={})=>{if(!isNumber(t)&&t.length>1||!isNumber(r)&&r.length>1){return invalidRange(t,r,o)}let a=o.transform||(t=>String.fromCharCode(t));let u=`${t}`.charCodeAt(0);let l=`${r}`.charCodeAt(0);let h=u>l;let p=Math.min(u,l);let d=Math.max(u,l);if(o.toRegex&&i===1){return toRange(p,d,false,o)}let m=[];let g=0;while(h?u>=l:u<=l){m.push(a(u,g));u=h?u-i:u+i;g++}if(o.toRegex===true){return toRegex(m,null,{wrap:false,options:o})}return m};const fill=(t,r,i,o={})=>{if(r==null&&isValidValue(t)){return[t]}if(!isValidValue(t)||!isValidValue(r)){return invalidRange(t,r,o)}if(typeof i==="function"){return fill(t,r,1,{transform:i})}if(isObject(i)){return fill(t,r,0,i)}let a={...o};if(a.capture===true)a.wrap=true;i=i||a.step||1;if(!isNumber(i)){if(i!=null&&!isObject(i))return invalidStep(i,a);return fill(t,r,1,i)}if(isNumber(t)&&isNumber(r)){return fillNumbers(t,r,i,a)}return fillLetters(t,r,Math.max(Math.abs(i),1),a)};t.exports=fill},5680:t=>{
70
70
  /*!
71
71
  * is-number <https://github.com/jonschlinkert/is-number>
72
72
  *
73
73
  * Copyright (c) 2014-present, Jon Schlinkert.
74
74
  * Released under the MIT License.
75
75
  */
76
- t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},1917:(t,r,i)=>{var o=i(1161);var a=i(8866);function renamed(t,r){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. "+"Use yaml."+r+" instead, which is now safe by default.")}}t.exports.Type=i(6073);t.exports.Schema=i(1082);t.exports.FAILSAFE_SCHEMA=i(8562);t.exports.JSON_SCHEMA=i(1035);t.exports.CORE_SCHEMA=i(2011);t.exports.DEFAULT_SCHEMA=i(8759);t.exports.load=o.load;t.exports.loadAll=o.loadAll;t.exports.dump=a.dump;t.exports.YAMLException=i(8179);t.exports.types={binary:i(7900),float:i(2705),map:i(6150),null:i(721),pairs:i(6860),set:i(9548),timestamp:i(9212),bool:i(4993),int:i(1615),merge:i(6104),omap:i(9046),seq:i(7283),str:i(3619)};t.exports.safeLoad=renamed("safeLoad","load");t.exports.safeLoadAll=renamed("safeLoadAll","loadAll");t.exports.safeDump=renamed("safeDump","dump")},6829:t=>{function isNothing(t){return typeof t==="undefined"||t===null}function isObject(t){return typeof t==="object"&&t!==null}function toArray(t){if(Array.isArray(t))return t;else if(isNothing(t))return[];return[t]}function extend(t,r){var i,o,a,u;if(r){u=Object.keys(r);for(i=0,o=u.length;i<o;i+=1){a=u[i];t[a]=r[a]}}return t}function repeat(t,r){var i="",o;for(o=0;o<r;o+=1){i+=t}return i}function isNegativeZero(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}t.exports.isNothing=isNothing;t.exports.isObject=isObject;t.exports.toArray=toArray;t.exports.repeat=repeat;t.exports.isNegativeZero=isNegativeZero;t.exports.extend=extend},8866:(t,r,i)=>{var o=i(6829);var a=i(8179);var u=i(8759);var l=Object.prototype.toString;var h=Object.prototype.hasOwnProperty;var p=65279;var d=9;var m=10;var g=13;var y=32;var A=33;var b=34;var v=35;var E=37;var w=38;var _=39;var S=42;var C=44;var D=45;var x=58;var R=61;var O=62;var k=63;var P=64;var T=91;var L=93;var I=96;var M=123;var B=124;var N=125;var $={};$[0]="\\0";$[7]="\\a";$[8]="\\b";$[9]="\\t";$[10]="\\n";$[11]="\\v";$[12]="\\f";$[13]="\\r";$[27]="\\e";$[34]='\\"';$[92]="\\\\";$[133]="\\N";$[160]="\\_";$[8232]="\\L";$[8233]="\\P";var j=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var H=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(t,r){var i,o,a,u,l,p,d;if(r===null)return{};i={};o=Object.keys(r);for(a=0,u=o.length;a<u;a+=1){l=o[a];p=String(r[l]);if(l.slice(0,2)==="!!"){l="tag:yaml.org,2002:"+l.slice(2)}d=t.compiledTypeMap["fallback"][l];if(d&&h.call(d.styleAliases,p)){p=d.styleAliases[p]}i[l]=p}return i}function encodeHex(t){var r,i,u;r=t.toString(16).toUpperCase();if(t<=255){i="x";u=2}else if(t<=65535){i="u";u=4}else if(t<=4294967295){i="U";u=8}else{throw new a("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+i+o.repeat("0",u-r.length)+r}var G=1,U=2;function State(t){this.schema=t["schema"]||u;this.indent=Math.max(1,t["indent"]||2);this.noArrayIndent=t["noArrayIndent"]||false;this.skipInvalid=t["skipInvalid"]||false;this.flowLevel=o.isNothing(t["flowLevel"])?-1:t["flowLevel"];this.styleMap=compileStyleMap(this.schema,t["styles"]||null);this.sortKeys=t["sortKeys"]||false;this.lineWidth=t["lineWidth"]||80;this.noRefs=t["noRefs"]||false;this.noCompatMode=t["noCompatMode"]||false;this.condenseFlow=t["condenseFlow"]||false;this.quotingType=t["quotingType"]==='"'?U:G;this.forceQuotes=t["forceQuotes"]||false;this.replacer=typeof t["replacer"]==="function"?t["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(t,r){var i=o.repeat(" ",r),a=0,u=-1,l="",h,p=t.length;while(a<p){u=t.indexOf("\n",a);if(u===-1){h=t.slice(a);a=p}else{h=t.slice(a,u+1);a=u+1}if(h.length&&h!=="\n")l+=i;l+=h}return l}function generateNextLine(t,r){return"\n"+o.repeat(" ",t.indent*r)}function testImplicitResolving(t,r){var i,o,a;for(i=0,o=t.implicitTypes.length;i<o;i+=1){a=t.implicitTypes[i];if(a.resolve(r)){return true}}return false}function isWhitespace(t){return t===y||t===d}function isPrintable(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==p||65536<=t&&t<=1114111}function isNsCharOrWhitespace(t){return isPrintable(t)&&t!==p&&t!==g&&t!==m}function isPlainSafe(t,r,i){var o=isNsCharOrWhitespace(t);var a=o&&!isWhitespace(t);return(i?o:o&&t!==C&&t!==T&&t!==L&&t!==M&&t!==N)&&t!==v&&!(r===x&&!a)||isNsCharOrWhitespace(r)&&!isWhitespace(r)&&t===v||r===x&&a}function isPlainSafeFirst(t){return isPrintable(t)&&t!==p&&!isWhitespace(t)&&t!==D&&t!==k&&t!==x&&t!==C&&t!==T&&t!==L&&t!==M&&t!==N&&t!==v&&t!==w&&t!==S&&t!==A&&t!==B&&t!==R&&t!==O&&t!==_&&t!==b&&t!==E&&t!==P&&t!==I}function isPlainSafeLast(t){return!isWhitespace(t)&&t!==x}function codePointAt(t,r){var i=t.charCodeAt(r),o;if(i>=55296&&i<=56319&&r+1<t.length){o=t.charCodeAt(r+1);if(o>=56320&&o<=57343){return(i-55296)*1024+o-56320+65536}}return i}function needIndentIndicator(t){var r=/^\n* /;return r.test(t)}var W=1,z=2,Y=3,V=4,Q=5;function chooseScalarStyle(t,r,i,o,a,u,l,h){var p;var d=0;var g=null;var y=false;var A=false;var b=o!==-1;var v=-1;var E=isPlainSafeFirst(codePointAt(t,0))&&isPlainSafeLast(codePointAt(t,t.length-1));if(r||l){for(p=0;p<t.length;d>=65536?p+=2:p++){d=codePointAt(t,p);if(!isPrintable(d)){return Q}E=E&&isPlainSafe(d,g,h);g=d}}else{for(p=0;p<t.length;d>=65536?p+=2:p++){d=codePointAt(t,p);if(d===m){y=true;if(b){A=A||p-v-1>o&&t[v+1]!==" ";v=p}}else if(!isPrintable(d)){return Q}E=E&&isPlainSafe(d,g,h);g=d}A=A||b&&(p-v-1>o&&t[v+1]!==" ")}if(!y&&!A){if(E&&!l&&!a(t)){return W}return u===U?Q:z}if(i>9&&needIndentIndicator(t)){return Q}if(!l){return A?V:Y}return u===U?Q:z}function writeScalar(t,r,i,o,u){t.dump=function(){if(r.length===0){return t.quotingType===U?'""':"''"}if(!t.noCompatMode){if(j.indexOf(r)!==-1||H.test(r)){return t.quotingType===U?'"'+r+'"':"'"+r+"'"}}var l=t.indent*Math.max(1,i);var h=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-l);var p=o||t.flowLevel>-1&&i>=t.flowLevel;function testAmbiguity(r){return testImplicitResolving(t,r)}switch(chooseScalarStyle(r,p,t.indent,h,testAmbiguity,t.quotingType,t.forceQuotes&&!o,u)){case W:return r;case z:return"'"+r.replace(/'/g,"''")+"'";case Y:return"|"+blockHeader(r,t.indent)+dropEndingNewline(indentString(r,l));case V:return">"+blockHeader(r,t.indent)+dropEndingNewline(indentString(foldString(r,h),l));case Q:return'"'+escapeString(r,h)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function blockHeader(t,r){var i=needIndentIndicator(t)?String(r):"";var o=t[t.length-1]==="\n";var a=o&&(t[t.length-2]==="\n"||t==="\n");var u=a?"+":o?"":"-";return i+u+"\n"}function dropEndingNewline(t){return t[t.length-1]==="\n"?t.slice(0,-1):t}function foldString(t,r){var i=/(\n+)([^\n]*)/g;var o=function(){var o=t.indexOf("\n");o=o!==-1?o:t.length;i.lastIndex=o;return foldLine(t.slice(0,o),r)}();var a=t[0]==="\n"||t[0]===" ";var u;var l;while(l=i.exec(t)){var h=l[1],p=l[2];u=p[0]===" ";o+=h+(!a&&!u&&p!==""?"\n":"")+foldLine(p,r);a=u}return o}function foldLine(t,r){if(t===""||t[0]===" ")return t;var i=/ [^ ]/g;var o;var a=0,u,l=0,h=0;var p="";while(o=i.exec(t)){h=o.index;if(h-a>r){u=l>a?l:h;p+="\n"+t.slice(a,u);a=u+1}l=h}p+="\n";if(t.length-a>r&&l>a){p+=t.slice(a,l)+"\n"+t.slice(l+1)}else{p+=t.slice(a)}return p.slice(1)}function escapeString(t){var r="";var i=0;var o;for(var a=0;a<t.length;i>=65536?a+=2:a++){i=codePointAt(t,a);o=$[i];if(!o&&isPrintable(i)){r+=t[a];if(i>=65536)r+=t[a+1]}else{r+=o||encodeHex(i)}}return r}function writeFlowSequence(t,r,i){var o="",a=t.tag,u,l,h;for(u=0,l=i.length;u<l;u+=1){h=i[u];if(t.replacer){h=t.replacer.call(i,String(u),h)}if(writeNode(t,r,h,false,false)||typeof h==="undefined"&&writeNode(t,r,null,false,false)){if(o!=="")o+=","+(!t.condenseFlow?" ":"");o+=t.dump}}t.tag=a;t.dump="["+o+"]"}function writeBlockSequence(t,r,i,o){var a="",u=t.tag,l,h,p;for(l=0,h=i.length;l<h;l+=1){p=i[l];if(t.replacer){p=t.replacer.call(i,String(l),p)}if(writeNode(t,r+1,p,true,true,false,true)||typeof p==="undefined"&&writeNode(t,r+1,null,true,true,false,true)){if(!o||a!==""){a+=generateNextLine(t,r)}if(t.dump&&m===t.dump.charCodeAt(0)){a+="-"}else{a+="- "}a+=t.dump}}t.tag=u;t.dump=a||"[]"}function writeFlowMapping(t,r,i){var o="",a=t.tag,u=Object.keys(i),l,h,p,d,m;for(l=0,h=u.length;l<h;l+=1){m="";if(o!=="")m+=", ";if(t.condenseFlow)m+='"';p=u[l];d=i[p];if(t.replacer){d=t.replacer.call(i,p,d)}if(!writeNode(t,r,p,false,false)){continue}if(t.dump.length>1024)m+="? ";m+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" ");if(!writeNode(t,r,d,false,false)){continue}m+=t.dump;o+=m}t.tag=a;t.dump="{"+o+"}"}function writeBlockMapping(t,r,i,o){var u="",l=t.tag,h=Object.keys(i),p,d,g,y,A,b;if(t.sortKeys===true){h.sort()}else if(typeof t.sortKeys==="function"){h.sort(t.sortKeys)}else if(t.sortKeys){throw new a("sortKeys must be a boolean or a function")}for(p=0,d=h.length;p<d;p+=1){b="";if(!o||u!==""){b+=generateNextLine(t,r)}g=h[p];y=i[g];if(t.replacer){y=t.replacer.call(i,g,y)}if(!writeNode(t,r+1,g,true,true,true)){continue}A=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024;if(A){if(t.dump&&m===t.dump.charCodeAt(0)){b+="?"}else{b+="? "}}b+=t.dump;if(A){b+=generateNextLine(t,r)}if(!writeNode(t,r+1,y,true,A)){continue}if(t.dump&&m===t.dump.charCodeAt(0)){b+=":"}else{b+=": "}b+=t.dump;u+=b}t.tag=l;t.dump=u||"{}"}function detectType(t,r,i){var o,u,p,d,m,g;u=i?t.explicitTypes:t.implicitTypes;for(p=0,d=u.length;p<d;p+=1){m=u[p];if((m.instanceOf||m.predicate)&&(!m.instanceOf||typeof r==="object"&&r instanceof m.instanceOf)&&(!m.predicate||m.predicate(r))){if(i){if(m.multi&&m.representName){t.tag=m.representName(r)}else{t.tag=m.tag}}else{t.tag="?"}if(m.represent){g=t.styleMap[m.tag]||m.defaultStyle;if(l.call(m.represent)==="[object Function]"){o=m.represent(r,g)}else if(h.call(m.represent,g)){o=m.represent[g](r,g)}else{throw new a("!<"+m.tag+'> tag resolver accepts not "'+g+'" style')}t.dump=o}return true}}return false}function writeNode(t,r,i,o,u,h,p){t.tag=null;t.dump=i;if(!detectType(t,i,false)){detectType(t,i,true)}var d=l.call(t.dump);var m=o;var g;if(o){o=t.flowLevel<0||t.flowLevel>r}var y=d==="[object Object]"||d==="[object Array]",A,b;if(y){A=t.duplicates.indexOf(i);b=A!==-1}if(t.tag!==null&&t.tag!=="?"||b||t.indent!==2&&r>0){u=false}if(b&&t.usedDuplicates[A]){t.dump="*ref_"+A}else{if(y&&b&&!t.usedDuplicates[A]){t.usedDuplicates[A]=true}if(d==="[object Object]"){if(o&&Object.keys(t.dump).length!==0){writeBlockMapping(t,r,t.dump,u);if(b){t.dump="&ref_"+A+t.dump}}else{writeFlowMapping(t,r,t.dump);if(b){t.dump="&ref_"+A+" "+t.dump}}}else if(d==="[object Array]"){if(o&&t.dump.length!==0){if(t.noArrayIndent&&!p&&r>0){writeBlockSequence(t,r-1,t.dump,u)}else{writeBlockSequence(t,r,t.dump,u)}if(b){t.dump="&ref_"+A+t.dump}}else{writeFlowSequence(t,r,t.dump);if(b){t.dump="&ref_"+A+" "+t.dump}}}else if(d==="[object String]"){if(t.tag!=="?"){writeScalar(t,t.dump,r,h,m)}}else if(d==="[object Undefined]"){return false}else{if(t.skipInvalid)return false;throw new a("unacceptable kind of an object to dump "+d)}if(t.tag!==null&&t.tag!=="?"){g=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21");if(t.tag[0]==="!"){g="!"+g}else if(g.slice(0,18)==="tag:yaml.org,2002:"){g="!!"+g.slice(18)}else{g="!<"+g+">"}t.dump=g+" "+t.dump}}return true}function getDuplicateReferences(t,r){var i=[],o=[],a,u;inspectNode(t,i,o);for(a=0,u=o.length;a<u;a+=1){r.duplicates.push(i[o[a]])}r.usedDuplicates=new Array(u)}function inspectNode(t,r,i){var o,a,u;if(t!==null&&typeof t==="object"){a=r.indexOf(t);if(a!==-1){if(i.indexOf(a)===-1){i.push(a)}}else{r.push(t);if(Array.isArray(t)){for(a=0,u=t.length;a<u;a+=1){inspectNode(t[a],r,i)}}else{o=Object.keys(t);for(a=0,u=o.length;a<u;a+=1){inspectNode(t[o[a]],r,i)}}}}}function dump(t,r){r=r||{};var i=new State(r);if(!i.noRefs)getDuplicateReferences(t,i);var o=t;if(i.replacer){o=i.replacer.call({"":o},"",o)}if(writeNode(i,0,o,true,true))return i.dump+"\n";return""}t.exports.dump=dump},8179:t=>{function formatError(t,r){var i="",o=t.reason||"(unknown reason)";if(!t.mark)return o;if(t.mark.name){i+='in "'+t.mark.name+'" '}i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")";if(!r&&t.mark.snippet){i+="\n\n"+t.mark.snippet}return o+" "+i}function YAMLException(t,r){Error.call(this);this.name="YAMLException";this.reason=t;this.mark=r;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(t){return this.name+": "+formatError(this,t)};t.exports=YAMLException},1161:(t,r,i)=>{var o=i(6829);var a=i(8179);var u=i(6975);var l=i(8759);var h=Object.prototype.hasOwnProperty;var p=1;var d=2;var m=3;var g=4;var y=1;var A=2;var b=3;var v=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var E=/[\x85\u2028\u2029]/;var w=/[,\[\]\{\}]/;var _=/^(?:!|!!|![a-z\-]+!)$/i;var S=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(t){return Object.prototype.toString.call(t)}function is_EOL(t){return t===10||t===13}function is_WHITE_SPACE(t){return t===9||t===32}function is_WS_OR_EOL(t){return t===9||t===32||t===10||t===13}function is_FLOW_INDICATOR(t){return t===44||t===91||t===93||t===123||t===125}function fromHexCode(t){var r;if(48<=t&&t<=57){return t-48}r=t|32;if(97<=r&&r<=102){return r-97+10}return-1}function escapedHexLen(t){if(t===120){return 2}if(t===117){return 4}if(t===85){return 8}return 0}function fromDecimalCode(t){if(48<=t&&t<=57){return t-48}return-1}function simpleEscapeSequence(t){return t===48?"\0":t===97?"":t===98?"\b":t===116?"\t":t===9?"\t":t===110?"\n":t===118?"\v":t===102?"\f":t===114?"\r":t===101?"":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function charFromCodepoint(t){if(t<=65535){return String.fromCharCode(t)}return String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var C=new Array(256);var D=new Array(256);for(var x=0;x<256;x++){C[x]=simpleEscapeSequence(x)?1:0;D[x]=simpleEscapeSequence(x)}function State(t,r){this.input=t;this.filename=r["filename"]||null;this.schema=r["schema"]||l;this.onWarning=r["onWarning"]||null;this.legacy=r["legacy"]||false;this.json=r["json"]||false;this.listener=r["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=t.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(t,r){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};i.snippet=u(i);return new a(r,i)}function throwError(t,r){throw generateError(t,r)}function throwWarning(t,r){if(t.onWarning){t.onWarning.call(null,generateError(t,r))}}var R={YAML:function handleYamlDirective(t,r,i){var o,a,u;if(t.version!==null){throwError(t,"duplication of %YAML directive")}if(i.length!==1){throwError(t,"YAML directive accepts exactly one argument")}o=/^([0-9]+)\.([0-9]+)$/.exec(i[0]);if(o===null){throwError(t,"ill-formed argument of the YAML directive")}a=parseInt(o[1],10);u=parseInt(o[2],10);if(a!==1){throwError(t,"unacceptable YAML version of the document")}t.version=i[0];t.checkLineBreaks=u<2;if(u!==1&&u!==2){throwWarning(t,"unsupported YAML version of the document")}},TAG:function handleTagDirective(t,r,i){var o,a;if(i.length!==2){throwError(t,"TAG directive accepts exactly two arguments")}o=i[0];a=i[1];if(!_.test(o)){throwError(t,"ill-formed tag handle (first argument) of the TAG directive")}if(h.call(t.tagMap,o)){throwError(t,'there is a previously declared suffix for "'+o+'" tag handle')}if(!S.test(a)){throwError(t,"ill-formed tag prefix (second argument) of the TAG directive")}try{a=decodeURIComponent(a)}catch(r){throwError(t,"tag prefix is malformed: "+a)}t.tagMap[o]=a}};function captureSegment(t,r,i,o){var a,u,l,h;if(r<i){h=t.input.slice(r,i);if(o){for(a=0,u=h.length;a<u;a+=1){l=h.charCodeAt(a);if(!(l===9||32<=l&&l<=1114111)){throwError(t,"expected valid JSON character")}}}else if(v.test(h)){throwError(t,"the stream contains non-printable characters")}t.result+=h}}function mergeMappings(t,r,i,a){var u,l,p,d;if(!o.isObject(i)){throwError(t,"cannot merge mappings; the provided source object is unacceptable")}u=Object.keys(i);for(p=0,d=u.length;p<d;p+=1){l=u[p];if(!h.call(r,l)){r[l]=i[l];a[l]=true}}}function storeMappingPair(t,r,i,o,a,u,l,p,d){var m,g;if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(m=0,g=a.length;m<g;m+=1){if(Array.isArray(a[m])){throwError(t,"nested arrays are not supported inside keys")}if(typeof a==="object"&&_class(a[m])==="[object Object]"){a[m]="[object Object]"}}}if(typeof a==="object"&&_class(a)==="[object Object]"){a="[object Object]"}a=String(a);if(r===null){r={}}if(o==="tag:yaml.org,2002:merge"){if(Array.isArray(u)){for(m=0,g=u.length;m<g;m+=1){mergeMappings(t,r,u[m],i)}}else{mergeMappings(t,r,u,i)}}else{if(!t.json&&!h.call(i,a)&&h.call(r,a)){t.line=l||t.line;t.lineStart=p||t.lineStart;t.position=d||t.position;throwError(t,"duplicated mapping key")}if(a==="__proto__"){Object.defineProperty(r,a,{configurable:true,enumerable:true,writable:true,value:u})}else{r[a]=u}delete i[a]}return r}function readLineBreak(t){var r;r=t.input.charCodeAt(t.position);if(r===10){t.position++}else if(r===13){t.position++;if(t.input.charCodeAt(t.position)===10){t.position++}}else{throwError(t,"a line break is expected")}t.line+=1;t.lineStart=t.position;t.firstTabInLine=-1}function skipSeparationSpace(t,r,i){var o=0,a=t.input.charCodeAt(t.position);while(a!==0){while(is_WHITE_SPACE(a)){if(a===9&&t.firstTabInLine===-1){t.firstTabInLine=t.position}a=t.input.charCodeAt(++t.position)}if(r&&a===35){do{a=t.input.charCodeAt(++t.position)}while(a!==10&&a!==13&&a!==0)}if(is_EOL(a)){readLineBreak(t);a=t.input.charCodeAt(t.position);o++;t.lineIndent=0;while(a===32){t.lineIndent++;a=t.input.charCodeAt(++t.position)}}else{break}}if(i!==-1&&o!==0&&t.lineIndent<i){throwWarning(t,"deficient indentation")}return o}function testDocumentSeparator(t){var r=t.position,i;i=t.input.charCodeAt(r);if((i===45||i===46)&&i===t.input.charCodeAt(r+1)&&i===t.input.charCodeAt(r+2)){r+=3;i=t.input.charCodeAt(r);if(i===0||is_WS_OR_EOL(i)){return true}}return false}function writeFoldedLines(t,r){if(r===1){t.result+=" "}else if(r>1){t.result+=o.repeat("\n",r-1)}}function readPlainScalar(t,r,i){var o,a,u,l,h,p,d,m,g=t.kind,y=t.result,A;A=t.input.charCodeAt(t.position);if(is_WS_OR_EOL(A)||is_FLOW_INDICATOR(A)||A===35||A===38||A===42||A===33||A===124||A===62||A===39||A===34||A===37||A===64||A===96){return false}if(A===63||A===45){a=t.input.charCodeAt(t.position+1);if(is_WS_OR_EOL(a)||i&&is_FLOW_INDICATOR(a)){return false}}t.kind="scalar";t.result="";u=l=t.position;h=false;while(A!==0){if(A===58){a=t.input.charCodeAt(t.position+1);if(is_WS_OR_EOL(a)||i&&is_FLOW_INDICATOR(a)){break}}else if(A===35){o=t.input.charCodeAt(t.position-1);if(is_WS_OR_EOL(o)){break}}else if(t.position===t.lineStart&&testDocumentSeparator(t)||i&&is_FLOW_INDICATOR(A)){break}else if(is_EOL(A)){p=t.line;d=t.lineStart;m=t.lineIndent;skipSeparationSpace(t,false,-1);if(t.lineIndent>=r){h=true;A=t.input.charCodeAt(t.position);continue}else{t.position=l;t.line=p;t.lineStart=d;t.lineIndent=m;break}}if(h){captureSegment(t,u,l,false);writeFoldedLines(t,t.line-p);u=l=t.position;h=false}if(!is_WHITE_SPACE(A)){l=t.position+1}A=t.input.charCodeAt(++t.position)}captureSegment(t,u,l,false);if(t.result){return true}t.kind=g;t.result=y;return false}function readSingleQuotedScalar(t,r){var i,o,a;i=t.input.charCodeAt(t.position);if(i!==39){return false}t.kind="scalar";t.result="";t.position++;o=a=t.position;while((i=t.input.charCodeAt(t.position))!==0){if(i===39){captureSegment(t,o,t.position,true);i=t.input.charCodeAt(++t.position);if(i===39){o=t.position;t.position++;a=t.position}else{return true}}else if(is_EOL(i)){captureSegment(t,o,a,true);writeFoldedLines(t,skipSeparationSpace(t,false,r));o=a=t.position}else if(t.position===t.lineStart&&testDocumentSeparator(t)){throwError(t,"unexpected end of the document within a single quoted scalar")}else{t.position++;a=t.position}}throwError(t,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(t,r){var i,o,a,u,l,h;h=t.input.charCodeAt(t.position);if(h!==34){return false}t.kind="scalar";t.result="";t.position++;i=o=t.position;while((h=t.input.charCodeAt(t.position))!==0){if(h===34){captureSegment(t,i,t.position,true);t.position++;return true}else if(h===92){captureSegment(t,i,t.position,true);h=t.input.charCodeAt(++t.position);if(is_EOL(h)){skipSeparationSpace(t,false,r)}else if(h<256&&C[h]){t.result+=D[h];t.position++}else if((l=escapedHexLen(h))>0){a=l;u=0;for(;a>0;a--){h=t.input.charCodeAt(++t.position);if((l=fromHexCode(h))>=0){u=(u<<4)+l}else{throwError(t,"expected hexadecimal character")}}t.result+=charFromCodepoint(u);t.position++}else{throwError(t,"unknown escape sequence")}i=o=t.position}else if(is_EOL(h)){captureSegment(t,i,o,true);writeFoldedLines(t,skipSeparationSpace(t,false,r));i=o=t.position}else if(t.position===t.lineStart&&testDocumentSeparator(t)){throwError(t,"unexpected end of the document within a double quoted scalar")}else{t.position++;o=t.position}}throwError(t,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(t,r){var i=true,o,a,u,l=t.tag,h,d=t.anchor,m,g,y,A,b,v=Object.create(null),E,w,_,S;S=t.input.charCodeAt(t.position);if(S===91){g=93;b=false;h=[]}else if(S===123){g=125;b=true;h={}}else{return false}if(t.anchor!==null){t.anchorMap[t.anchor]=h}S=t.input.charCodeAt(++t.position);while(S!==0){skipSeparationSpace(t,true,r);S=t.input.charCodeAt(t.position);if(S===g){t.position++;t.tag=l;t.anchor=d;t.kind=b?"mapping":"sequence";t.result=h;return true}else if(!i){throwError(t,"missed comma between flow collection entries")}else if(S===44){throwError(t,"expected the node content, but found ','")}w=E=_=null;y=A=false;if(S===63){m=t.input.charCodeAt(t.position+1);if(is_WS_OR_EOL(m)){y=A=true;t.position++;skipSeparationSpace(t,true,r)}}o=t.line;a=t.lineStart;u=t.position;composeNode(t,r,p,false,true);w=t.tag;E=t.result;skipSeparationSpace(t,true,r);S=t.input.charCodeAt(t.position);if((A||t.line===o)&&S===58){y=true;S=t.input.charCodeAt(++t.position);skipSeparationSpace(t,true,r);composeNode(t,r,p,false,true);_=t.result}if(b){storeMappingPair(t,h,v,w,E,_,o,a,u)}else if(y){h.push(storeMappingPair(t,null,v,w,E,_,o,a,u))}else{h.push(E)}skipSeparationSpace(t,true,r);S=t.input.charCodeAt(t.position);if(S===44){i=true;S=t.input.charCodeAt(++t.position)}else{i=false}}throwError(t,"unexpected end of the stream within a flow collection")}function readBlockScalar(t,r){var i,a,u=y,l=false,h=false,p=r,d=0,m=false,g,v;v=t.input.charCodeAt(t.position);if(v===124){a=false}else if(v===62){a=true}else{return false}t.kind="scalar";t.result="";while(v!==0){v=t.input.charCodeAt(++t.position);if(v===43||v===45){if(y===u){u=v===43?b:A}else{throwError(t,"repeat of a chomping mode identifier")}}else if((g=fromDecimalCode(v))>=0){if(g===0){throwError(t,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!h){p=r+g-1;h=true}else{throwError(t,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(v)){do{v=t.input.charCodeAt(++t.position)}while(is_WHITE_SPACE(v));if(v===35){do{v=t.input.charCodeAt(++t.position)}while(!is_EOL(v)&&v!==0)}}while(v!==0){readLineBreak(t);t.lineIndent=0;v=t.input.charCodeAt(t.position);while((!h||t.lineIndent<p)&&v===32){t.lineIndent++;v=t.input.charCodeAt(++t.position)}if(!h&&t.lineIndent>p){p=t.lineIndent}if(is_EOL(v)){d++;continue}if(t.lineIndent<p){if(u===b){t.result+=o.repeat("\n",l?1+d:d)}else if(u===y){if(l){t.result+="\n"}}break}if(a){if(is_WHITE_SPACE(v)){m=true;t.result+=o.repeat("\n",l?1+d:d)}else if(m){m=false;t.result+=o.repeat("\n",d+1)}else if(d===0){if(l){t.result+=" "}}else{t.result+=o.repeat("\n",d)}}else{t.result+=o.repeat("\n",l?1+d:d)}l=true;h=true;d=0;i=t.position;while(!is_EOL(v)&&v!==0){v=t.input.charCodeAt(++t.position)}captureSegment(t,i,t.position,false)}return true}function readBlockSequence(t,r){var i,o=t.tag,a=t.anchor,u=[],l,h=false,p;if(t.firstTabInLine!==-1)return false;if(t.anchor!==null){t.anchorMap[t.anchor]=u}p=t.input.charCodeAt(t.position);while(p!==0){if(t.firstTabInLine!==-1){t.position=t.firstTabInLine;throwError(t,"tab characters must not be used in indentation")}if(p!==45){break}l=t.input.charCodeAt(t.position+1);if(!is_WS_OR_EOL(l)){break}h=true;t.position++;if(skipSeparationSpace(t,true,-1)){if(t.lineIndent<=r){u.push(null);p=t.input.charCodeAt(t.position);continue}}i=t.line;composeNode(t,r,m,false,true);u.push(t.result);skipSeparationSpace(t,true,-1);p=t.input.charCodeAt(t.position);if((t.line===i||t.lineIndent>r)&&p!==0){throwError(t,"bad indentation of a sequence entry")}else if(t.lineIndent<r){break}}if(h){t.tag=o;t.anchor=a;t.kind="sequence";t.result=u;return true}return false}function readBlockMapping(t,r,i){var o,a,u,l,h,p,m=t.tag,y=t.anchor,A={},b=Object.create(null),v=null,E=null,w=null,_=false,S=false,C;if(t.firstTabInLine!==-1)return false;if(t.anchor!==null){t.anchorMap[t.anchor]=A}C=t.input.charCodeAt(t.position);while(C!==0){if(!_&&t.firstTabInLine!==-1){t.position=t.firstTabInLine;throwError(t,"tab characters must not be used in indentation")}o=t.input.charCodeAt(t.position+1);u=t.line;if((C===63||C===58)&&is_WS_OR_EOL(o)){if(C===63){if(_){storeMappingPair(t,A,b,v,E,null,l,h,p);v=E=w=null}S=true;_=true;a=true}else if(_){_=false;a=true}else{throwError(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}t.position+=1;C=o}else{l=t.line;h=t.lineStart;p=t.position;if(!composeNode(t,i,d,false,true)){break}if(t.line===u){C=t.input.charCodeAt(t.position);while(is_WHITE_SPACE(C)){C=t.input.charCodeAt(++t.position)}if(C===58){C=t.input.charCodeAt(++t.position);if(!is_WS_OR_EOL(C)){throwError(t,"a whitespace character is expected after the key-value separator within a block mapping")}if(_){storeMappingPair(t,A,b,v,E,null,l,h,p);v=E=w=null}S=true;_=false;a=false;v=t.tag;E=t.result}else if(S){throwError(t,"can not read an implicit mapping pair; a colon is missed")}else{t.tag=m;t.anchor=y;return true}}else if(S){throwError(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{t.tag=m;t.anchor=y;return true}}if(t.line===u||t.lineIndent>r){if(_){l=t.line;h=t.lineStart;p=t.position}if(composeNode(t,r,g,true,a)){if(_){E=t.result}else{w=t.result}}if(!_){storeMappingPair(t,A,b,v,E,w,l,h,p);v=E=w=null}skipSeparationSpace(t,true,-1);C=t.input.charCodeAt(t.position)}if((t.line===u||t.lineIndent>r)&&C!==0){throwError(t,"bad indentation of a mapping entry")}else if(t.lineIndent<r){break}}if(_){storeMappingPair(t,A,b,v,E,null,l,h,p)}if(S){t.tag=m;t.anchor=y;t.kind="mapping";t.result=A}return S}function readTagProperty(t){var r,i=false,o=false,a,u,l;l=t.input.charCodeAt(t.position);if(l!==33)return false;if(t.tag!==null){throwError(t,"duplication of a tag property")}l=t.input.charCodeAt(++t.position);if(l===60){i=true;l=t.input.charCodeAt(++t.position)}else if(l===33){o=true;a="!!";l=t.input.charCodeAt(++t.position)}else{a="!"}r=t.position;if(i){do{l=t.input.charCodeAt(++t.position)}while(l!==0&&l!==62);if(t.position<t.length){u=t.input.slice(r,t.position);l=t.input.charCodeAt(++t.position)}else{throwError(t,"unexpected end of the stream within a verbatim tag")}}else{while(l!==0&&!is_WS_OR_EOL(l)){if(l===33){if(!o){a=t.input.slice(r-1,t.position+1);if(!_.test(a)){throwError(t,"named tag handle cannot contain such characters")}o=true;r=t.position+1}else{throwError(t,"tag suffix cannot contain exclamation marks")}}l=t.input.charCodeAt(++t.position)}u=t.input.slice(r,t.position);if(w.test(u)){throwError(t,"tag suffix cannot contain flow indicator characters")}}if(u&&!S.test(u)){throwError(t,"tag name cannot contain such characters: "+u)}try{u=decodeURIComponent(u)}catch(r){throwError(t,"tag name is malformed: "+u)}if(i){t.tag=u}else if(h.call(t.tagMap,a)){t.tag=t.tagMap[a]+u}else if(a==="!"){t.tag="!"+u}else if(a==="!!"){t.tag="tag:yaml.org,2002:"+u}else{throwError(t,'undeclared tag handle "'+a+'"')}return true}function readAnchorProperty(t){var r,i;i=t.input.charCodeAt(t.position);if(i!==38)return false;if(t.anchor!==null){throwError(t,"duplication of an anchor property")}i=t.input.charCodeAt(++t.position);r=t.position;while(i!==0&&!is_WS_OR_EOL(i)&&!is_FLOW_INDICATOR(i)){i=t.input.charCodeAt(++t.position)}if(t.position===r){throwError(t,"name of an anchor node must contain at least one character")}t.anchor=t.input.slice(r,t.position);return true}function readAlias(t){var r,i,o;o=t.input.charCodeAt(t.position);if(o!==42)return false;o=t.input.charCodeAt(++t.position);r=t.position;while(o!==0&&!is_WS_OR_EOL(o)&&!is_FLOW_INDICATOR(o)){o=t.input.charCodeAt(++t.position)}if(t.position===r){throwError(t,"name of an alias node must contain at least one character")}i=t.input.slice(r,t.position);if(!h.call(t.anchorMap,i)){throwError(t,'unidentified alias "'+i+'"')}t.result=t.anchorMap[i];skipSeparationSpace(t,true,-1);return true}function composeNode(t,r,i,o,a){var u,l,y,A=1,b=false,v=false,E,w,_,S,C,D;if(t.listener!==null){t.listener("open",t)}t.tag=null;t.anchor=null;t.kind=null;t.result=null;u=l=y=g===i||m===i;if(o){if(skipSeparationSpace(t,true,-1)){b=true;if(t.lineIndent>r){A=1}else if(t.lineIndent===r){A=0}else if(t.lineIndent<r){A=-1}}}if(A===1){while(readTagProperty(t)||readAnchorProperty(t)){if(skipSeparationSpace(t,true,-1)){b=true;y=u;if(t.lineIndent>r){A=1}else if(t.lineIndent===r){A=0}else if(t.lineIndent<r){A=-1}}else{y=false}}}if(y){y=b||a}if(A===1||g===i){if(p===i||d===i){C=r}else{C=r+1}D=t.position-t.lineStart;if(A===1){if(y&&(readBlockSequence(t,D)||readBlockMapping(t,D,C))||readFlowCollection(t,C)){v=true}else{if(l&&readBlockScalar(t,C)||readSingleQuotedScalar(t,C)||readDoubleQuotedScalar(t,C)){v=true}else if(readAlias(t)){v=true;if(t.tag!==null||t.anchor!==null){throwError(t,"alias node should not have any properties")}}else if(readPlainScalar(t,C,p===i)){v=true;if(t.tag===null){t.tag="?"}}if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}}else if(A===0){v=y&&readBlockSequence(t,D)}}if(t.tag===null){if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}else if(t.tag==="?"){if(t.result!==null&&t.kind!=="scalar"){throwError(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"')}for(E=0,w=t.implicitTypes.length;E<w;E+=1){S=t.implicitTypes[E];if(S.resolve(t.result)){t.result=S.construct(t.result);t.tag=S.tag;if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}break}}}else if(t.tag!=="!"){if(h.call(t.typeMap[t.kind||"fallback"],t.tag)){S=t.typeMap[t.kind||"fallback"][t.tag]}else{S=null;_=t.typeMap.multi[t.kind||"fallback"];for(E=0,w=_.length;E<w;E+=1){if(t.tag.slice(0,_[E].tag.length)===_[E].tag){S=_[E];break}}}if(!S){throwError(t,"unknown tag !<"+t.tag+">")}if(t.result!==null&&S.kind!==t.kind){throwError(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+S.kind+'", not "'+t.kind+'"')}if(!S.resolve(t.result,t.tag)){throwError(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}else{t.result=S.construct(t.result,t.tag);if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}}if(t.listener!==null){t.listener("close",t)}return t.tag!==null||t.anchor!==null||v}function readDocument(t){var r=t.position,i,o,a,u=false,l;t.version=null;t.checkLineBreaks=t.legacy;t.tagMap=Object.create(null);t.anchorMap=Object.create(null);while((l=t.input.charCodeAt(t.position))!==0){skipSeparationSpace(t,true,-1);l=t.input.charCodeAt(t.position);if(t.lineIndent>0||l!==37){break}u=true;l=t.input.charCodeAt(++t.position);i=t.position;while(l!==0&&!is_WS_OR_EOL(l)){l=t.input.charCodeAt(++t.position)}o=t.input.slice(i,t.position);a=[];if(o.length<1){throwError(t,"directive name must not be less than one character in length")}while(l!==0){while(is_WHITE_SPACE(l)){l=t.input.charCodeAt(++t.position)}if(l===35){do{l=t.input.charCodeAt(++t.position)}while(l!==0&&!is_EOL(l));break}if(is_EOL(l))break;i=t.position;while(l!==0&&!is_WS_OR_EOL(l)){l=t.input.charCodeAt(++t.position)}a.push(t.input.slice(i,t.position))}if(l!==0)readLineBreak(t);if(h.call(R,o)){R[o](t,o,a)}else{throwWarning(t,'unknown document directive "'+o+'"')}}skipSeparationSpace(t,true,-1);if(t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45){t.position+=3;skipSeparationSpace(t,true,-1)}else if(u){throwError(t,"directives end mark is expected")}composeNode(t,t.lineIndent-1,g,false,true);skipSeparationSpace(t,true,-1);if(t.checkLineBreaks&&E.test(t.input.slice(r,t.position))){throwWarning(t,"non-ASCII line breaks are interpreted as content")}t.documents.push(t.result);if(t.position===t.lineStart&&testDocumentSeparator(t)){if(t.input.charCodeAt(t.position)===46){t.position+=3;skipSeparationSpace(t,true,-1)}return}if(t.position<t.length-1){throwError(t,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(t,r){t=String(t);r=r||{};if(t.length!==0){if(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13){t+="\n"}if(t.charCodeAt(0)===65279){t=t.slice(1)}}var i=new State(t,r);var o=t.indexOf("\0");if(o!==-1){i.position=o;throwError(i,"null byte is not allowed in input")}i.input+="\0";while(i.input.charCodeAt(i.position)===32){i.lineIndent+=1;i.position+=1}while(i.position<i.length-1){readDocument(i)}return i.documents}function loadAll(t,r,i){if(r!==null&&typeof r==="object"&&typeof i==="undefined"){i=r;r=null}var o=loadDocuments(t,i);if(typeof r!=="function"){return o}for(var a=0,u=o.length;a<u;a+=1){r(o[a])}}function load(t,r){var i=loadDocuments(t,r);if(i.length===0){return undefined}else if(i.length===1){return i[0]}throw new a("expected a single document in the stream, but found more")}t.exports.loadAll=loadAll;t.exports.load=load},1082:(t,r,i)=>{var o=i(8179);var a=i(6073);function compileList(t,r){var i=[];t[r].forEach((function(t){var r=i.length;i.forEach((function(i,o){if(i.tag===t.tag&&i.kind===t.kind&&i.multi===t.multi){r=o}}));i[r]=t}));return i}function compileMap(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,i;function collectType(r){if(r.multi){t.multi[r.kind].push(r);t.multi["fallback"].push(r)}else{t[r.kind][r.tag]=t["fallback"][r.tag]=r}}for(r=0,i=arguments.length;r<i;r+=1){arguments[r].forEach(collectType)}return t}function Schema(t){return this.extend(t)}Schema.prototype.extend=function extend(t){var r=[];var i=[];if(t instanceof a){i.push(t)}else if(Array.isArray(t)){i=i.concat(t)}else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit))){if(t.implicit)r=r.concat(t.implicit);if(t.explicit)i=i.concat(t.explicit)}else{throw new o("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}r.forEach((function(t){if(!(t instanceof a)){throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(t.loadKind&&t.loadKind!=="scalar"){throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(t.multi){throw new o("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));i.forEach((function(t){if(!(t instanceof a)){throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var u=Object.create(Schema.prototype);u.implicit=(this.implicit||[]).concat(r);u.explicit=(this.explicit||[]).concat(i);u.compiledImplicit=compileList(u,"implicit");u.compiledExplicit=compileList(u,"explicit");u.compiledTypeMap=compileMap(u.compiledImplicit,u.compiledExplicit);return u};t.exports=Schema},2011:(t,r,i)=>{t.exports=i(1035)},8759:(t,r,i)=>{t.exports=i(2011).extend({implicit:[i(9212),i(6104)],explicit:[i(7900),i(9046),i(6860),i(9548)]})},8562:(t,r,i)=>{var o=i(1082);t.exports=new o({explicit:[i(3619),i(7283),i(6150)]})},1035:(t,r,i)=>{t.exports=i(8562).extend({implicit:[i(721),i(4993),i(1615),i(2705)]})},6975:(t,r,i)=>{var o=i(6829);function getLine(t,r,i,o,a){var u="";var l="";var h=Math.floor(a/2)-1;if(o-r>h){u=" ... ";r=o-h+u.length}if(i-o>h){l=" ...";i=o+h-l.length}return{str:u+t.slice(r,i).replace(/\t/g,"→")+l,pos:o-r+u.length}}function padStart(t,r){return o.repeat(" ",r-t.length)+t}function makeSnippet(t,r){r=Object.create(r||null);if(!t.buffer)return null;if(!r.maxLength)r.maxLength=79;if(typeof r.indent!=="number")r.indent=1;if(typeof r.linesBefore!=="number")r.linesBefore=3;if(typeof r.linesAfter!=="number")r.linesAfter=2;var i=/\r?\n|\r|\0/g;var a=[0];var u=[];var l;var h=-1;while(l=i.exec(t.buffer)){u.push(l.index);a.push(l.index+l[0].length);if(t.position<=l.index&&h<0){h=a.length-2}}if(h<0)h=a.length-1;var p="",d,m;var g=Math.min(t.line+r.linesAfter,u.length).toString().length;var y=r.maxLength-(r.indent+g+3);for(d=1;d<=r.linesBefore;d++){if(h-d<0)break;m=getLine(t.buffer,a[h-d],u[h-d],t.position-(a[h]-a[h-d]),y);p=o.repeat(" ",r.indent)+padStart((t.line-d+1).toString(),g)+" | "+m.str+"\n"+p}m=getLine(t.buffer,a[h],u[h],t.position,y);p+=o.repeat(" ",r.indent)+padStart((t.line+1).toString(),g)+" | "+m.str+"\n";p+=o.repeat("-",r.indent+g+3+m.pos)+"^"+"\n";for(d=1;d<=r.linesAfter;d++){if(h+d>=u.length)break;m=getLine(t.buffer,a[h+d],u[h+d],t.position-(a[h]-a[h+d]),y);p+=o.repeat(" ",r.indent)+padStart((t.line+d+1).toString(),g)+" | "+m.str+"\n"}return p.replace(/\n$/,"")}t.exports=makeSnippet},6073:(t,r,i)=>{var o=i(8179);var a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var u=["scalar","sequence","mapping"];function compileStyleAliases(t){var r={};if(t!==null){Object.keys(t).forEach((function(i){t[i].forEach((function(t){r[String(t)]=i}))}))}return r}function Type(t,r){r=r||{};Object.keys(r).forEach((function(r){if(a.indexOf(r)===-1){throw new o('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}}));this.options=r;this.tag=t;this.kind=r["kind"]||null;this.resolve=r["resolve"]||function(){return true};this.construct=r["construct"]||function(t){return t};this.instanceOf=r["instanceOf"]||null;this.predicate=r["predicate"]||null;this.represent=r["represent"]||null;this.representName=r["representName"]||null;this.defaultStyle=r["defaultStyle"]||null;this.multi=r["multi"]||false;this.styleAliases=compileStyleAliases(r["styleAliases"]||null);if(u.indexOf(this.kind)===-1){throw new o('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}}t.exports=Type},7900:(t,r,i)=>{var o=i(6073);var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(t){if(t===null)return false;var r,i,o=0,u=t.length,l=a;for(i=0;i<u;i++){r=l.indexOf(t.charAt(i));if(r>64)continue;if(r<0)return false;o+=6}return o%8===0}function constructYamlBinary(t){var r,i,o=t.replace(/[\r\n=]/g,""),u=o.length,l=a,h=0,p=[];for(r=0;r<u;r++){if(r%4===0&&r){p.push(h>>16&255);p.push(h>>8&255);p.push(h&255)}h=h<<6|l.indexOf(o.charAt(r))}i=u%4*6;if(i===0){p.push(h>>16&255);p.push(h>>8&255);p.push(h&255)}else if(i===18){p.push(h>>10&255);p.push(h>>2&255)}else if(i===12){p.push(h>>4&255)}return new Uint8Array(p)}function representYamlBinary(t){var r="",i=0,o,u,l=t.length,h=a;for(o=0;o<l;o++){if(o%3===0&&o){r+=h[i>>18&63];r+=h[i>>12&63];r+=h[i>>6&63];r+=h[i&63]}i=(i<<8)+t[o]}u=l%3;if(u===0){r+=h[i>>18&63];r+=h[i>>12&63];r+=h[i>>6&63];r+=h[i&63]}else if(u===2){r+=h[i>>10&63];r+=h[i>>4&63];r+=h[i<<2&63];r+=h[64]}else if(u===1){r+=h[i>>2&63];r+=h[i<<4&63];r+=h[64];r+=h[64]}return r}function isBinary(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}t.exports=new o("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(t,r,i)=>{var o=i(6073);function resolveYamlBoolean(t){if(t===null)return false;var r=t.length;return r===4&&(t==="true"||t==="True"||t==="TRUE")||r===5&&(t==="false"||t==="False"||t==="FALSE")}function constructYamlBoolean(t){return t==="true"||t==="True"||t==="TRUE"}function isBoolean(t){return Object.prototype.toString.call(t)==="[object Boolean]"}t.exports=new o("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})},2705:(t,r,i)=>{var o=i(6829);var a=i(6073);var u=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(t){if(t===null)return false;if(!u.test(t)||t[t.length-1]==="_"){return false}return true}function constructYamlFloat(t){var r,i;r=t.replace(/_/g,"").toLowerCase();i=r[0]==="-"?-1:1;if("+-".indexOf(r[0])>=0){r=r.slice(1)}if(r===".inf"){return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(r===".nan"){return NaN}return i*parseFloat(r,10)}var l=/^[-+]?[0-9]+e/;function representYamlFloat(t,r){var i;if(isNaN(t)){switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===t){switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===t){switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(o.isNegativeZero(t)){return"-0.0"}i=t.toString(10);return l.test(i)?i.replace("e",".e"):i}function isFloat(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||o.isNegativeZero(t))}t.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},1615:(t,r,i)=>{var o=i(6829);var a=i(6073);function isHexCode(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function isOctCode(t){return 48<=t&&t<=55}function isDecCode(t){return 48<=t&&t<=57}function resolveYamlInteger(t){if(t===null)return false;var r=t.length,i=0,o=false,a;if(!r)return false;a=t[i];if(a==="-"||a==="+"){a=t[++i]}if(a==="0"){if(i+1===r)return true;a=t[++i];if(a==="b"){i++;for(;i<r;i++){a=t[i];if(a==="_")continue;if(a!=="0"&&a!=="1")return false;o=true}return o&&a!=="_"}if(a==="x"){i++;for(;i<r;i++){a=t[i];if(a==="_")continue;if(!isHexCode(t.charCodeAt(i)))return false;o=true}return o&&a!=="_"}if(a==="o"){i++;for(;i<r;i++){a=t[i];if(a==="_")continue;if(!isOctCode(t.charCodeAt(i)))return false;o=true}return o&&a!=="_"}}if(a==="_")return false;for(;i<r;i++){a=t[i];if(a==="_")continue;if(!isDecCode(t.charCodeAt(i))){return false}o=true}if(!o||a==="_")return false;return true}function constructYamlInteger(t){var r=t,i=1,o;if(r.indexOf("_")!==-1){r=r.replace(/_/g,"")}o=r[0];if(o==="-"||o==="+"){if(o==="-")i=-1;r=r.slice(1);o=r[0]}if(r==="0")return 0;if(o==="0"){if(r[1]==="b")return i*parseInt(r.slice(2),2);if(r[1]==="x")return i*parseInt(r.slice(2),16);if(r[1]==="o")return i*parseInt(r.slice(2),8)}return i*parseInt(r,10)}function isInteger(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1===0&&!o.isNegativeZero(t))}t.exports=new a("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(t,r,i)=>{var o=i(6073);t.exports=new o("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}})},6104:(t,r,i)=>{var o=i(6073);function resolveYamlMerge(t){return t==="<<"||t===null}t.exports=new o("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(t,r,i)=>{var o=i(6073);function resolveYamlNull(t){if(t===null)return true;var r=t.length;return r===1&&t==="~"||r===4&&(t==="null"||t==="Null"||t==="NULL")}function constructYamlNull(){return null}function isNull(t){return t===null}t.exports=new o("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},9046:(t,r,i)=>{var o=i(6073);var a=Object.prototype.hasOwnProperty;var u=Object.prototype.toString;function resolveYamlOmap(t){if(t===null)return true;var r=[],i,o,l,h,p,d=t;for(i=0,o=d.length;i<o;i+=1){l=d[i];p=false;if(u.call(l)!=="[object Object]")return false;for(h in l){if(a.call(l,h)){if(!p)p=true;else return false}}if(!p)return false;if(r.indexOf(h)===-1)r.push(h);else return false}return true}function constructYamlOmap(t){return t!==null?t:[]}t.exports=new o("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},6860:(t,r,i)=>{var o=i(6073);var a=Object.prototype.toString;function resolveYamlPairs(t){if(t===null)return true;var r,i,o,u,l,h=t;l=new Array(h.length);for(r=0,i=h.length;r<i;r+=1){o=h[r];if(a.call(o)!=="[object Object]")return false;u=Object.keys(o);if(u.length!==1)return false;l[r]=[u[0],o[u[0]]]}return true}function constructYamlPairs(t){if(t===null)return[];var r,i,o,a,u,l=t;u=new Array(l.length);for(r=0,i=l.length;r<i;r+=1){o=l[r];a=Object.keys(o);u[r]=[a[0],o[a[0]]]}return u}t.exports=new o("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},7283:(t,r,i)=>{var o=i(6073);t.exports=new o("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}})},9548:(t,r,i)=>{var o=i(6073);var a=Object.prototype.hasOwnProperty;function resolveYamlSet(t){if(t===null)return true;var r,i=t;for(r in i){if(a.call(i,r)){if(i[r]!==null)return false}}return true}function constructYamlSet(t){return t!==null?t:{}}t.exports=new o("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(t,r,i)=>{var o=i(6073);t.exports=new o("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}})},9212:(t,r,i)=>{var o=i(6073);var a=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var u=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(t){if(t===null)return false;if(a.exec(t)!==null)return true;if(u.exec(t)!==null)return true;return false}function constructYamlTimestamp(t){var r,i,o,l,h,p,d,m=0,g=null,y,A,b;r=a.exec(t);if(r===null)r=u.exec(t);if(r===null)throw new Error("Date resolve error");i=+r[1];o=+r[2]-1;l=+r[3];if(!r[4]){return new Date(Date.UTC(i,o,l))}h=+r[4];p=+r[5];d=+r[6];if(r[7]){m=r[7].slice(0,3);while(m.length<3){m+="0"}m=+m}if(r[9]){y=+r[10];A=+(r[11]||0);g=(y*60+A)*6e4;if(r[9]==="-")g=-g}b=new Date(Date.UTC(i,o,l,h,p,d,m));if(g)b.setTime(b.getTime()-g);return b}function representYamlTimestamp(t){return t.toISOString()}t.exports=new o("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},6228:(t,r,i)=>{const o=i(3837);const a=i(610);const u=i(8569);const l=i(479);const isEmptyString=t=>t===""||t==="./";const micromatch=(t,r,i)=>{r=[].concat(r);t=[].concat(t);let o=new Set;let a=new Set;let l=new Set;let h=0;let onResult=t=>{l.add(t.output);if(i&&i.onResult){i.onResult(t)}};for(let l=0;l<r.length;l++){let p=u(String(r[l]),{...i,onResult:onResult},true);let d=p.state.negated||p.state.negatedExtglob;if(d)h++;for(let r of t){let t=p(r,true);let i=d?!t.isMatch:t.isMatch;if(!i)continue;if(d){o.add(t.output)}else{o.delete(t.output);a.add(t.output)}}}let p=h===r.length?[...l]:[...a];let d=p.filter((t=>!o.has(t)));if(i&&d.length===0){if(i.failglob===true){throw new Error(`No matches found for "${r.join(", ")}"`)}if(i.nonull===true||i.nullglob===true){return i.unescape?r.map((t=>t.replace(/\\/g,""))):r}}return d};micromatch.match=micromatch;micromatch.matcher=(t,r)=>u(t,r);micromatch.isMatch=(t,r,i)=>u(r,i)(t);micromatch.any=micromatch.isMatch;micromatch.not=(t,r,i={})=>{r=[].concat(r).map(String);let o=new Set;let a=[];let onResult=t=>{if(i.onResult)i.onResult(t);a.push(t.output)};let u=new Set(micromatch(t,r,{...i,onResult:onResult}));for(let t of a){if(!u.has(t)){o.add(t)}}return[...o]};micromatch.contains=(t,r,i)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${o.inspect(t)}"`)}if(Array.isArray(r)){return r.some((r=>micromatch.contains(t,r,i)))}if(typeof r==="string"){if(isEmptyString(t)||isEmptyString(r)){return false}if(t.includes(r)||t.startsWith("./")&&t.slice(2).includes(r)){return true}}return micromatch.isMatch(t,r,{...i,contains:true})};micromatch.matchKeys=(t,r,i)=>{if(!l.isObject(t)){throw new TypeError("Expected the first argument to be an object")}let o=micromatch(Object.keys(t),r,i);let a={};for(let r of o)a[r]=t[r];return a};micromatch.some=(t,r,i)=>{let o=[].concat(t);for(let t of[].concat(r)){let r=u(String(t),i);if(o.some((t=>r(t)))){return true}}return false};micromatch.every=(t,r,i)=>{let o=[].concat(t);for(let t of[].concat(r)){let r=u(String(t),i);if(!o.every((t=>r(t)))){return false}}return true};micromatch.all=(t,r,i)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${o.inspect(t)}"`)}return[].concat(r).every((r=>u(r,i)(t)))};micromatch.capture=(t,r,i)=>{let o=l.isWindows(i);let a=u.makeRe(String(t),{...i,capture:true});let h=a.exec(o?l.toPosixSlashes(r):r);if(h){return h.slice(1).map((t=>t===void 0?"":t))}};micromatch.makeRe=(...t)=>u.makeRe(...t);micromatch.scan=(...t)=>u.scan(...t);micromatch.parse=(t,r)=>{let i=[];for(let o of[].concat(t||[])){for(let t of a(String(o),r)){i.push(u.parse(t,r))}}return i};micromatch.braces=(t,r)=>{if(typeof t!=="string")throw new TypeError("Expected a string");if(r&&r.nobrace===true||!/\{.*\}/.test(t)){return[t]}return a(t,r)};micromatch.braceExpand=(t,r)=>{if(typeof t!=="string")throw new TypeError("Expected a string");return micromatch.braces(t,{...r,expand:true})};t.exports=micromatch},8569:(t,r,i)=>{t.exports=i(3322)},6099:(t,r,i)=>{const o=i(1017);const a="\\\\/";const u=`[^${a}]`;const l="\\.";const h="\\+";const p="\\?";const d="\\/";const m="(?=.)";const g="[^/]";const y=`(?:${d}|$)`;const A=`(?:^|${d})`;const b=`${l}{1,2}${y}`;const v=`(?!${l})`;const E=`(?!${A}${b})`;const w=`(?!${l}{0,1}${y})`;const _=`(?!${b})`;const S=`[^.${d}]`;const C=`${g}*?`;const D={DOT_LITERAL:l,PLUS_LITERAL:h,QMARK_LITERAL:p,SLASH_LITERAL:d,ONE_CHAR:m,QMARK:g,END_ANCHOR:y,DOTS_SLASH:b,NO_DOT:v,NO_DOTS:E,NO_DOT_SLASH:w,NO_DOTS_SLASH:_,QMARK_NO_DOT:S,STAR:C,START_ANCHOR:A};const x={...D,SLASH_LITERAL:`[${a}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${l}{1,2}(?:[${a}]|$)`,NO_DOT:`(?!${l})`,NO_DOTS:`(?!(?:^|[${a}])${l}{1,2}(?:[${a}]|$))`,NO_DOT_SLASH:`(?!${l}{0,1}(?:[${a}]|$))`,NO_DOTS_SLASH:`(?!${l}{1,2}(?:[${a}]|$))`,QMARK_NO_DOT:`[^.${a}]`,START_ANCHOR:`(?:^|[${a}])`,END_ANCHOR:`(?:[${a}]|$)`};const R={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:R,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:o.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?x:D}}},2139:(t,r,i)=>{const o=i(6099);const a=i(479);const{MAX_LENGTH:u,POSIX_REGEX_SOURCE:l,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:p,REPLACEMENTS:d}=o;const expandRange=(t,r)=>{if(typeof r.expandRange==="function"){return r.expandRange(...t,r)}t.sort();const i=`[${t.join("-")}]`;try{new RegExp(i)}catch(r){return t.map((t=>a.escapeRegex(t))).join("..")}return i};const syntaxError=(t,r)=>`Missing ${t}: "${r}" - use "\\\\${r}" to match literal characters`;const parse=(t,r)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=d[t]||t;const i={...r};const m=typeof i.maxLength==="number"?Math.min(u,i.maxLength):u;let g=t.length;if(g>m){throw new SyntaxError(`Input length: ${g}, exceeds maximum allowed length: ${m}`)}const y={type:"bos",value:"",output:i.prepend||""};const A=[y];const b=i.capture?"":"?:";const v=a.isWindows(r);const E=o.globChars(v);const w=o.extglobChars(E);const{DOT_LITERAL:_,PLUS_LITERAL:S,SLASH_LITERAL:C,ONE_CHAR:D,DOTS_SLASH:x,NO_DOT:R,NO_DOT_SLASH:O,NO_DOTS_SLASH:k,QMARK:P,QMARK_NO_DOT:T,STAR:L,START_ANCHOR:I}=E;const globstar=t=>`(${b}(?:(?!${I}${t.dot?x:_}).)*?)`;const M=i.dot?"":R;const B=i.dot?P:T;let N=i.bash===true?globstar(i):L;if(i.capture){N=`(${N})`}if(typeof i.noext==="boolean"){i.noextglob=i.noext}const $={input:t,index:-1,start:0,dot:i.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:A};t=a.removePrefix(t,$);g=t.length;const j=[];const H=[];const G=[];let U=y;let W;const eos=()=>$.index===g-1;const z=$.peek=(r=1)=>t[$.index+r];const Y=$.advance=()=>t[++$.index]||"";const remaining=()=>t.slice($.index+1);const consume=(t="",r=0)=>{$.consumed+=t;$.index+=r};const append=t=>{$.output+=t.output!=null?t.output:t.value;consume(t.value)};const negate=()=>{let t=1;while(z()==="!"&&(z(2)!=="("||z(3)==="?")){Y();$.start++;t++}if(t%2===0){return false}$.negated=true;$.start++;return true};const increment=t=>{$[t]++;G.push(t)};const decrement=t=>{$[t]--;G.pop()};const push=t=>{if(U.type==="globstar"){const r=$.braces>0&&(t.type==="comma"||t.type==="brace");const i=t.extglob===true||j.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!r&&!i){$.output=$.output.slice(0,-U.output.length);U.type="star";U.value="*";U.output=N;$.output+=U.output}}if(j.length&&t.type!=="paren"){j[j.length-1].inner+=t.value}if(t.value||t.output)append(t);if(U&&U.type==="text"&&t.type==="text"){U.value+=t.value;U.output=(U.output||"")+t.value;return}t.prev=U;A.push(t);U=t};const extglobOpen=(t,r)=>{const o={...w[r],conditions:1,inner:""};o.prev=U;o.parens=$.parens;o.output=$.output;const a=(i.capture?"(":"")+o.open;increment("parens");push({type:t,value:r,output:$.output?"":D});push({type:"paren",extglob:true,value:Y(),output:a});j.push(o)};const extglobClose=t=>{let o=t.close+(i.capture?")":"");let a;if(t.type==="negate"){let u=N;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){u=globstar(i)}if(u!==N||eos()||/^\)+$/.test(remaining())){o=t.close=`)$))${u}`}if(t.inner.includes("*")&&(a=remaining())&&/^\.[^\\/.]+$/.test(a)){const i=parse(a,{...r,fastpaths:false}).output;o=t.close=`)${i})${u})`}if(t.prev.type==="bos"){$.negatedExtglob=true}}push({type:"paren",extglob:true,value:W,output:o});decrement("parens")};if(i.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let o=false;let u=t.replace(p,((t,r,i,a,u,l)=>{if(a==="\\"){o=true;return t}if(a==="?"){if(r){return r+a+(u?P.repeat(u.length):"")}if(l===0){return B+(u?P.repeat(u.length):"")}return P.repeat(i.length)}if(a==="."){return _.repeat(i.length)}if(a==="*"){if(r){return r+a+(u?N:"")}return N}return r?t:`\\${t}`}));if(o===true){if(i.unescape===true){u=u.replace(/\\/g,"")}else{u=u.replace(/\\+/g,(t=>t.length%2===0?"\\\\":t?"\\":""))}}if(u===t&&i.contains===true){$.output=t;return $}$.output=a.wrapOutput(u,$,r);return $}while(!eos()){W=Y();if(W==="\0"){continue}if(W==="\\"){const t=z();if(t==="/"&&i.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){W+="\\";push({type:"text",value:W});continue}const r=/^\\+/.exec(remaining());let o=0;if(r&&r[0].length>2){o=r[0].length;$.index+=o;if(o%2!==0){W+="\\"}}if(i.unescape===true){W=Y()}else{W+=Y()}if($.brackets===0){push({type:"text",value:W});continue}}if($.brackets>0&&(W!=="]"||U.value==="["||U.value==="[^")){if(i.posix!==false&&W===":"){const t=U.value.slice(1);if(t.includes("[")){U.posix=true;if(t.includes(":")){const t=U.value.lastIndexOf("[");const r=U.value.slice(0,t);const i=U.value.slice(t+2);const o=l[i];if(o){U.value=r+o;$.backtrack=true;Y();if(!y.output&&A.indexOf(U)===1){y.output=D}continue}}}}if(W==="["&&z()!==":"||W==="-"&&z()==="]"){W=`\\${W}`}if(W==="]"&&(U.value==="["||U.value==="[^")){W=`\\${W}`}if(i.posix===true&&W==="!"&&U.value==="["){W="^"}U.value+=W;append({value:W});continue}if($.quotes===1&&W!=='"'){W=a.escapeRegex(W);U.value+=W;append({value:W});continue}if(W==='"'){$.quotes=$.quotes===1?0:1;if(i.keepQuotes===true){push({type:"text",value:W})}continue}if(W==="("){increment("parens");push({type:"paren",value:W});continue}if(W===")"){if($.parens===0&&i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const t=j[j.length-1];if(t&&$.parens===t.parens+1){extglobClose(j.pop());continue}push({type:"paren",value:W,output:$.parens?")":"\\)"});decrement("parens");continue}if(W==="["){if(i.nobracket===true||!remaining().includes("]")){if(i.nobracket!==true&&i.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}W=`\\${W}`}else{increment("brackets")}push({type:"bracket",value:W});continue}if(W==="]"){if(i.nobracket===true||U&&U.type==="bracket"&&U.value.length===1){push({type:"text",value:W,output:`\\${W}`});continue}if($.brackets===0){if(i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:W,output:`\\${W}`});continue}decrement("brackets");const t=U.value.slice(1);if(U.posix!==true&&t[0]==="^"&&!t.includes("/")){W=`/${W}`}U.value+=W;append({value:W});if(i.literalBrackets===false||a.hasRegexChars(t)){continue}const r=a.escapeRegex(U.value);$.output=$.output.slice(0,-U.value.length);if(i.literalBrackets===true){$.output+=r;U.value=r;continue}U.value=`(${b}${r}|${U.value})`;$.output+=U.value;continue}if(W==="{"&&i.nobrace!==true){increment("braces");const t={type:"brace",value:W,output:"(",outputIndex:$.output.length,tokensIndex:$.tokens.length};H.push(t);push(t);continue}if(W==="}"){const t=H[H.length-1];if(i.nobrace===true||!t){push({type:"text",value:W,output:W});continue}let r=")";if(t.dots===true){const t=A.slice();const o=[];for(let r=t.length-1;r>=0;r--){A.pop();if(t[r].type==="brace"){break}if(t[r].type!=="dots"){o.unshift(t[r].value)}}r=expandRange(o,i);$.backtrack=true}if(t.comma!==true&&t.dots!==true){const i=$.output.slice(0,t.outputIndex);const o=$.tokens.slice(t.tokensIndex);t.value=t.output="\\{";W=r="\\}";$.output=i;for(const t of o){$.output+=t.output||t.value}}push({type:"brace",value:W,output:r});decrement("braces");H.pop();continue}if(W==="|"){if(j.length>0){j[j.length-1].conditions++}push({type:"text",value:W});continue}if(W===","){let t=W;const r=H[H.length-1];if(r&&G[G.length-1]==="braces"){r.comma=true;t="|"}push({type:"comma",value:W,output:t});continue}if(W==="/"){if(U.type==="dot"&&$.index===$.start+1){$.start=$.index+1;$.consumed="";$.output="";A.pop();U=y;continue}push({type:"slash",value:W,output:C});continue}if(W==="."){if($.braces>0&&U.type==="dot"){if(U.value===".")U.output=_;const t=H[H.length-1];U.type="dots";U.output+=W;U.value+=W;t.dots=true;continue}if($.braces+$.parens===0&&U.type!=="bos"&&U.type!=="slash"){push({type:"text",value:W,output:_});continue}push({type:"dot",value:W,output:_});continue}if(W==="?"){const t=U&&U.value==="(";if(!t&&i.noextglob!==true&&z()==="("&&z(2)!=="?"){extglobOpen("qmark",W);continue}if(U&&U.type==="paren"){const t=z();let r=W;if(t==="<"&&!a.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(U.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(remaining())){r=`\\${W}`}push({type:"text",value:W,output:r});continue}if(i.dot!==true&&(U.type==="slash"||U.type==="bos")){push({type:"qmark",value:W,output:T});continue}push({type:"qmark",value:W,output:P});continue}if(W==="!"){if(i.noextglob!==true&&z()==="("){if(z(2)!=="?"||!/[!=<:]/.test(z(3))){extglobOpen("negate",W);continue}}if(i.nonegate!==true&&$.index===0){negate();continue}}if(W==="+"){if(i.noextglob!==true&&z()==="("&&z(2)!=="?"){extglobOpen("plus",W);continue}if(U&&U.value==="("||i.regex===false){push({type:"plus",value:W,output:S});continue}if(U&&(U.type==="bracket"||U.type==="paren"||U.type==="brace")||$.parens>0){push({type:"plus",value:W});continue}push({type:"plus",value:S});continue}if(W==="@"){if(i.noextglob!==true&&z()==="("&&z(2)!=="?"){push({type:"at",extglob:true,value:W,output:""});continue}push({type:"text",value:W});continue}if(W!=="*"){if(W==="$"||W==="^"){W=`\\${W}`}const t=h.exec(remaining());if(t){W+=t[0];$.index+=t[0].length}push({type:"text",value:W});continue}if(U&&(U.type==="globstar"||U.star===true)){U.type="star";U.star=true;U.value+=W;U.output=N;$.backtrack=true;$.globstar=true;consume(W);continue}let r=remaining();if(i.noextglob!==true&&/^\([^?]/.test(r)){extglobOpen("star",W);continue}if(U.type==="star"){if(i.noglobstar===true){consume(W);continue}const o=U.prev;const a=o.prev;const u=o.type==="slash"||o.type==="bos";const l=a&&(a.type==="star"||a.type==="globstar");if(i.bash===true&&(!u||r[0]&&r[0]!=="/")){push({type:"star",value:W,output:""});continue}const h=$.braces>0&&(o.type==="comma"||o.type==="brace");const p=j.length&&(o.type==="pipe"||o.type==="paren");if(!u&&o.type!=="paren"&&!h&&!p){push({type:"star",value:W,output:""});continue}while(r.slice(0,3)==="/**"){const i=t[$.index+4];if(i&&i!=="/"){break}r=r.slice(3);consume("/**",3)}if(o.type==="bos"&&eos()){U.type="globstar";U.value+=W;U.output=globstar(i);$.output=U.output;$.globstar=true;consume(W);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&!l&&eos()){$.output=$.output.slice(0,-(o.output+U.output).length);o.output=`(?:${o.output}`;U.type="globstar";U.output=globstar(i)+(i.strictSlashes?")":"|$)");U.value+=W;$.globstar=true;$.output+=o.output+U.output;consume(W);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&r[0]==="/"){const t=r[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(o.output+U.output).length);o.output=`(?:${o.output}`;U.type="globstar";U.output=`${globstar(i)}${C}|${C}${t})`;U.value+=W;$.output+=o.output+U.output;$.globstar=true;consume(W+Y());push({type:"slash",value:"/",output:""});continue}if(o.type==="bos"&&r[0]==="/"){U.type="globstar";U.value+=W;U.output=`(?:^|${C}|${globstar(i)}${C})`;$.output=U.output;$.globstar=true;consume(W+Y());push({type:"slash",value:"/",output:""});continue}$.output=$.output.slice(0,-U.output.length);U.type="globstar";U.output=globstar(i);U.value+=W;$.output+=U.output;$.globstar=true;consume(W);continue}const o={type:"star",value:W,output:N};if(i.bash===true){o.output=".*?";if(U.type==="bos"||U.type==="slash"){o.output=M+o.output}push(o);continue}if(U&&(U.type==="bracket"||U.type==="paren")&&i.regex===true){o.output=W;push(o);continue}if($.index===$.start||U.type==="slash"||U.type==="dot"){if(U.type==="dot"){$.output+=O;U.output+=O}else if(i.dot===true){$.output+=k;U.output+=k}else{$.output+=M;U.output+=M}if(z()!=="*"){$.output+=D;U.output+=D}}push(o)}while($.brackets>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));$.output=a.escapeLast($.output,"[");decrement("brackets")}while($.parens>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));$.output=a.escapeLast($.output,"(");decrement("parens")}while($.braces>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));$.output=a.escapeLast($.output,"{");decrement("braces")}if(i.strictSlashes!==true&&(U.type==="star"||U.type==="bracket")){push({type:"maybe_slash",value:"",output:`${C}?`})}if($.backtrack===true){$.output="";for(const t of $.tokens){$.output+=t.output!=null?t.output:t.value;if(t.suffix){$.output+=t.suffix}}}return $};parse.fastpaths=(t,r)=>{const i={...r};const l=typeof i.maxLength==="number"?Math.min(u,i.maxLength):u;const h=t.length;if(h>l){throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${l}`)}t=d[t]||t;const p=a.isWindows(r);const{DOT_LITERAL:m,SLASH_LITERAL:g,ONE_CHAR:y,DOTS_SLASH:A,NO_DOT:b,NO_DOTS:v,NO_DOTS_SLASH:E,STAR:w,START_ANCHOR:_}=o.globChars(p);const S=i.dot?v:b;const C=i.dot?E:b;const D=i.capture?"":"?:";const x={negated:false,prefix:""};let R=i.bash===true?".*?":w;if(i.capture){R=`(${R})`}const globstar=t=>{if(t.noglobstar===true)return R;return`(${D}(?:(?!${_}${t.dot?A:m}).)*?)`};const create=t=>{switch(t){case"*":return`${S}${y}${R}`;case".*":return`${m}${y}${R}`;case"*.*":return`${S}${R}${m}${y}${R}`;case"*/*":return`${S}${R}${g}${y}${C}${R}`;case"**":return S+globstar(i);case"**/*":return`(?:${S}${globstar(i)}${g})?${C}${y}${R}`;case"**/*.*":return`(?:${S}${globstar(i)}${g})?${C}${R}${m}${y}${R}`;case"**/.*":return`(?:${S}${globstar(i)}${g})?${m}${y}${R}`;default:{const r=/^(.*?)\.(\w+)$/.exec(t);if(!r)return;const i=create(r[1]);if(!i)return;return i+m+r[2]}}};const O=a.removePrefix(t,x);let k=create(O);if(k&&i.strictSlashes!==true){k+=`${g}?`}return k};t.exports=parse},3322:(t,r,i)=>{const o=i(1017);const a=i(2429);const u=i(2139);const l=i(479);const h=i(6099);const isObject=t=>t&&typeof t==="object"&&!Array.isArray(t);const picomatch=(t,r,i=false)=>{if(Array.isArray(t)){const o=t.map((t=>picomatch(t,r,i)));const arrayMatcher=t=>{for(const r of o){const i=r(t);if(i)return i}return false};return arrayMatcher}const o=isObject(t)&&t.tokens&&t.input;if(t===""||typeof t!=="string"&&!o){throw new TypeError("Expected pattern to be a non-empty string")}const a=r||{};const u=l.isWindows(r);const h=o?picomatch.compileRe(t,r):picomatch.makeRe(t,r,false,true);const p=h.state;delete h.state;let isIgnored=()=>false;if(a.ignore){const t={...r,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(a.ignore,t,i)}const matcher=(i,o=false)=>{const{isMatch:l,match:d,output:m}=picomatch.test(i,h,r,{glob:t,posix:u});const g={glob:t,state:p,regex:h,posix:u,input:i,output:m,match:d,isMatch:l};if(typeof a.onResult==="function"){a.onResult(g)}if(l===false){g.isMatch=false;return o?g:false}if(isIgnored(i)){if(typeof a.onIgnore==="function"){a.onIgnore(g)}g.isMatch=false;return o?g:false}if(typeof a.onMatch==="function"){a.onMatch(g)}return o?g:true};if(i){matcher.state=p}return matcher};picomatch.test=(t,r,i,{glob:o,posix:a}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const u=i||{};const h=u.format||(a?l.toPosixSlashes:null);let p=t===o;let d=p&&h?h(t):t;if(p===false){d=h?h(t):t;p=d===o}if(p===false||u.capture===true){if(u.matchBase===true||u.basename===true){p=picomatch.matchBase(t,r,i,a)}else{p=r.exec(d)}}return{isMatch:Boolean(p),match:p,output:d}};picomatch.matchBase=(t,r,i,a=l.isWindows(i))=>{const u=r instanceof RegExp?r:picomatch.makeRe(r,i);return u.test(o.basename(t))};picomatch.isMatch=(t,r,i)=>picomatch(r,i)(t);picomatch.parse=(t,r)=>{if(Array.isArray(t))return t.map((t=>picomatch.parse(t,r)));return u(t,{...r,fastpaths:false})};picomatch.scan=(t,r)=>a(t,r);picomatch.compileRe=(t,r,i=false,o=false)=>{if(i===true){return t.output}const a=r||{};const u=a.contains?"":"^";const l=a.contains?"":"$";let h=`${u}(?:${t.output})${l}`;if(t&&t.negated===true){h=`^(?!${h}).*$`}const p=picomatch.toRegex(h,r);if(o===true){p.state=t}return p};picomatch.makeRe=(t,r={},i=false,o=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}let a={negated:false,fastpaths:true};if(r.fastpaths!==false&&(t[0]==="."||t[0]==="*")){a.output=u.fastpaths(t,r)}if(!a.output){a=u(t,r)}return picomatch.compileRe(a,r,i,o)};picomatch.toRegex=(t,r)=>{try{const i=r||{};return new RegExp(t,i.flags||(i.nocase?"i":""))}catch(t){if(r&&r.debug===true)throw t;return/$^/}};picomatch.constants=h;t.exports=picomatch},2429:(t,r,i)=>{const o=i(479);const{CHAR_ASTERISK:a,CHAR_AT:u,CHAR_BACKWARD_SLASH:l,CHAR_COMMA:h,CHAR_DOT:p,CHAR_EXCLAMATION_MARK:d,CHAR_FORWARD_SLASH:m,CHAR_LEFT_CURLY_BRACE:g,CHAR_LEFT_PARENTHESES:y,CHAR_LEFT_SQUARE_BRACKET:A,CHAR_PLUS:b,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:E,CHAR_RIGHT_PARENTHESES:w,CHAR_RIGHT_SQUARE_BRACKET:_}=i(6099);const isPathSeparator=t=>t===m||t===l;const depth=t=>{if(t.isPrefix!==true){t.depth=t.isGlobstar?Infinity:1}};const scan=(t,r)=>{const i=r||{};const S=t.length-1;const C=i.parts===true||i.scanToEnd===true;const D=[];const x=[];const R=[];let O=t;let k=-1;let P=0;let T=0;let L=false;let I=false;let M=false;let B=false;let N=false;let $=false;let j=false;let H=false;let G=false;let U=false;let W=0;let z;let Y;let V={value:"",depth:0,isGlob:false};const eos=()=>k>=S;const peek=()=>O.charCodeAt(k+1);const advance=()=>{z=Y;return O.charCodeAt(++k)};while(k<S){Y=advance();let t;if(Y===l){j=V.backslashes=true;Y=advance();if(Y===g){$=true}continue}if($===true||Y===g){W++;while(eos()!==true&&(Y=advance())){if(Y===l){j=V.backslashes=true;advance();continue}if(Y===g){W++;continue}if($!==true&&Y===p&&(Y=advance())===p){L=V.isBrace=true;M=V.isGlob=true;U=true;if(C===true){continue}break}if($!==true&&Y===h){L=V.isBrace=true;M=V.isGlob=true;U=true;if(C===true){continue}break}if(Y===E){W--;if(W===0){$=false;L=V.isBrace=true;U=true;break}}}if(C===true){continue}break}if(Y===m){D.push(k);x.push(V);V={value:"",depth:0,isGlob:false};if(U===true)continue;if(z===p&&k===P+1){P+=2;continue}T=k+1;continue}if(i.noext!==true){const t=Y===b||Y===u||Y===a||Y===v||Y===d;if(t===true&&peek()===y){M=V.isGlob=true;B=V.isExtglob=true;U=true;if(Y===d&&k===P){G=true}if(C===true){while(eos()!==true&&(Y=advance())){if(Y===l){j=V.backslashes=true;Y=advance();continue}if(Y===w){M=V.isGlob=true;U=true;break}}continue}break}}if(Y===a){if(z===a)N=V.isGlobstar=true;M=V.isGlob=true;U=true;if(C===true){continue}break}if(Y===v){M=V.isGlob=true;U=true;if(C===true){continue}break}if(Y===A){while(eos()!==true&&(t=advance())){if(t===l){j=V.backslashes=true;advance();continue}if(t===_){I=V.isBracket=true;M=V.isGlob=true;U=true;break}}if(C===true){continue}break}if(i.nonegate!==true&&Y===d&&k===P){H=V.negated=true;P++;continue}if(i.noparen!==true&&Y===y){M=V.isGlob=true;if(C===true){while(eos()!==true&&(Y=advance())){if(Y===y){j=V.backslashes=true;Y=advance();continue}if(Y===w){U=true;break}}continue}break}if(M===true){U=true;if(C===true){continue}break}}if(i.noext===true){B=false;M=false}let Q=O;let K="";let X="";if(P>0){K=O.slice(0,P);O=O.slice(P);T-=P}if(Q&&M===true&&T>0){Q=O.slice(0,T);X=O.slice(T)}else if(M===true){Q="";X=O}else{Q=O}if(Q&&Q!==""&&Q!=="/"&&Q!==O){if(isPathSeparator(Q.charCodeAt(Q.length-1))){Q=Q.slice(0,-1)}}if(i.unescape===true){if(X)X=o.removeBackslashes(X);if(Q&&j===true){Q=o.removeBackslashes(Q)}}const q={prefix:K,input:t,start:P,base:Q,glob:X,isBrace:L,isBracket:I,isGlob:M,isExtglob:B,isGlobstar:N,negated:H,negatedExtglob:G};if(i.tokens===true){q.maxDepth=0;if(!isPathSeparator(Y)){x.push(V)}q.tokens=x}if(i.parts===true||i.tokens===true){let r;for(let o=0;o<D.length;o++){const a=r?r+1:P;const u=D[o];const l=t.slice(a,u);if(i.tokens){if(o===0&&P!==0){x[o].isPrefix=true;x[o].value=K}else{x[o].value=l}depth(x[o]);q.maxDepth+=x[o].depth}if(o!==0||l!==""){R.push(l)}r=u}if(r&&r+1<t.length){const o=t.slice(r+1);R.push(o);if(i.tokens){x[x.length-1].value=o;depth(x[x.length-1]);q.maxDepth+=x[x.length-1].depth}}q.slashes=D;q.parts=R}return q};t.exports=scan},479:(t,r,i)=>{const o=i(1017);const a=process.platform==="win32";const{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:l,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:p}=i(6099);r.isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);r.hasRegexChars=t=>h.test(t);r.isRegexChar=t=>t.length===1&&r.hasRegexChars(t);r.escapeRegex=t=>t.replace(p,"\\$1");r.toPosixSlashes=t=>t.replace(u,"/");r.removeBackslashes=t=>t.replace(l,(t=>t==="\\"?"":t));r.supportsLookbehinds=()=>{const t=process.version.slice(1).split(".").map(Number);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false};r.isWindows=t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return a===true||o.sep==="\\"};r.escapeLast=(t,i,o)=>{const a=t.lastIndexOf(i,o);if(a===-1)return t;if(t[a-1]==="\\")return r.escapeLast(t,i,a-1);return`${t.slice(0,a)}\\${t.slice(a)}`};r.removePrefix=(t,r={})=>{let i=t;if(i.startsWith("./")){i=i.slice(2);r.prefix="./"}return i};r.wrapOutput=(t,r={},i={})=>{const o=i.contains?"":"^";const a=i.contains?"":"$";let u=`${o}(?:${t})${a}`;if(r.negated===true){u=`(?:^(?!${u}).*$)`}return u}},1861:(t,r,i)=>{
76
+ t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},1917:(t,r,i)=>{var o=i(1161);var a=i(8866);function renamed(t,r){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. "+"Use yaml."+r+" instead, which is now safe by default.")}}t.exports.Type=i(6073);t.exports.Schema=i(1082);t.exports.FAILSAFE_SCHEMA=i(8562);t.exports.JSON_SCHEMA=i(1035);t.exports.CORE_SCHEMA=i(2011);t.exports.DEFAULT_SCHEMA=i(8759);t.exports.load=o.load;t.exports.loadAll=o.loadAll;t.exports.dump=a.dump;t.exports.YAMLException=i(8179);t.exports.types={binary:i(7900),float:i(2705),map:i(6150),null:i(721),pairs:i(6860),set:i(9548),timestamp:i(9212),bool:i(4993),int:i(1615),merge:i(6104),omap:i(9046),seq:i(7283),str:i(3619)};t.exports.safeLoad=renamed("safeLoad","load");t.exports.safeLoadAll=renamed("safeLoadAll","loadAll");t.exports.safeDump=renamed("safeDump","dump")},6829:t=>{function isNothing(t){return typeof t==="undefined"||t===null}function isObject(t){return typeof t==="object"&&t!==null}function toArray(t){if(Array.isArray(t))return t;else if(isNothing(t))return[];return[t]}function extend(t,r){var i,o,a,u;if(r){u=Object.keys(r);for(i=0,o=u.length;i<o;i+=1){a=u[i];t[a]=r[a]}}return t}function repeat(t,r){var i="",o;for(o=0;o<r;o+=1){i+=t}return i}function isNegativeZero(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}t.exports.isNothing=isNothing;t.exports.isObject=isObject;t.exports.toArray=toArray;t.exports.repeat=repeat;t.exports.isNegativeZero=isNegativeZero;t.exports.extend=extend},8866:(t,r,i)=>{var o=i(6829);var a=i(8179);var u=i(8759);var l=Object.prototype.toString;var h=Object.prototype.hasOwnProperty;var p=65279;var d=9;var m=10;var g=13;var y=32;var A=33;var b=34;var v=35;var w=37;var E=38;var _=39;var S=42;var C=44;var D=45;var x=58;var R=61;var O=62;var k=63;var P=64;var T=91;var L=93;var I=96;var M=123;var B=124;var N=125;var $={};$[0]="\\0";$[7]="\\a";$[8]="\\b";$[9]="\\t";$[10]="\\n";$[11]="\\v";$[12]="\\f";$[13]="\\r";$[27]="\\e";$[34]='\\"';$[92]="\\\\";$[133]="\\N";$[160]="\\_";$[8232]="\\L";$[8233]="\\P";var j=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var H=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(t,r){var i,o,a,u,l,p,d;if(r===null)return{};i={};o=Object.keys(r);for(a=0,u=o.length;a<u;a+=1){l=o[a];p=String(r[l]);if(l.slice(0,2)==="!!"){l="tag:yaml.org,2002:"+l.slice(2)}d=t.compiledTypeMap["fallback"][l];if(d&&h.call(d.styleAliases,p)){p=d.styleAliases[p]}i[l]=p}return i}function encodeHex(t){var r,i,u;r=t.toString(16).toUpperCase();if(t<=255){i="x";u=2}else if(t<=65535){i="u";u=4}else if(t<=4294967295){i="U";u=8}else{throw new a("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+i+o.repeat("0",u-r.length)+r}var G=1,U=2;function State(t){this.schema=t["schema"]||u;this.indent=Math.max(1,t["indent"]||2);this.noArrayIndent=t["noArrayIndent"]||false;this.skipInvalid=t["skipInvalid"]||false;this.flowLevel=o.isNothing(t["flowLevel"])?-1:t["flowLevel"];this.styleMap=compileStyleMap(this.schema,t["styles"]||null);this.sortKeys=t["sortKeys"]||false;this.lineWidth=t["lineWidth"]||80;this.noRefs=t["noRefs"]||false;this.noCompatMode=t["noCompatMode"]||false;this.condenseFlow=t["condenseFlow"]||false;this.quotingType=t["quotingType"]==='"'?U:G;this.forceQuotes=t["forceQuotes"]||false;this.replacer=typeof t["replacer"]==="function"?t["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(t,r){var i=o.repeat(" ",r),a=0,u=-1,l="",h,p=t.length;while(a<p){u=t.indexOf("\n",a);if(u===-1){h=t.slice(a);a=p}else{h=t.slice(a,u+1);a=u+1}if(h.length&&h!=="\n")l+=i;l+=h}return l}function generateNextLine(t,r){return"\n"+o.repeat(" ",t.indent*r)}function testImplicitResolving(t,r){var i,o,a;for(i=0,o=t.implicitTypes.length;i<o;i+=1){a=t.implicitTypes[i];if(a.resolve(r)){return true}}return false}function isWhitespace(t){return t===y||t===d}function isPrintable(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==p||65536<=t&&t<=1114111}function isNsCharOrWhitespace(t){return isPrintable(t)&&t!==p&&t!==g&&t!==m}function isPlainSafe(t,r,i){var o=isNsCharOrWhitespace(t);var a=o&&!isWhitespace(t);return(i?o:o&&t!==C&&t!==T&&t!==L&&t!==M&&t!==N)&&t!==v&&!(r===x&&!a)||isNsCharOrWhitespace(r)&&!isWhitespace(r)&&t===v||r===x&&a}function isPlainSafeFirst(t){return isPrintable(t)&&t!==p&&!isWhitespace(t)&&t!==D&&t!==k&&t!==x&&t!==C&&t!==T&&t!==L&&t!==M&&t!==N&&t!==v&&t!==E&&t!==S&&t!==A&&t!==B&&t!==R&&t!==O&&t!==_&&t!==b&&t!==w&&t!==P&&t!==I}function isPlainSafeLast(t){return!isWhitespace(t)&&t!==x}function codePointAt(t,r){var i=t.charCodeAt(r),o;if(i>=55296&&i<=56319&&r+1<t.length){o=t.charCodeAt(r+1);if(o>=56320&&o<=57343){return(i-55296)*1024+o-56320+65536}}return i}function needIndentIndicator(t){var r=/^\n* /;return r.test(t)}var W=1,z=2,Y=3,V=4,Q=5;function chooseScalarStyle(t,r,i,o,a,u,l,h){var p;var d=0;var g=null;var y=false;var A=false;var b=o!==-1;var v=-1;var w=isPlainSafeFirst(codePointAt(t,0))&&isPlainSafeLast(codePointAt(t,t.length-1));if(r||l){for(p=0;p<t.length;d>=65536?p+=2:p++){d=codePointAt(t,p);if(!isPrintable(d)){return Q}w=w&&isPlainSafe(d,g,h);g=d}}else{for(p=0;p<t.length;d>=65536?p+=2:p++){d=codePointAt(t,p);if(d===m){y=true;if(b){A=A||p-v-1>o&&t[v+1]!==" ";v=p}}else if(!isPrintable(d)){return Q}w=w&&isPlainSafe(d,g,h);g=d}A=A||b&&(p-v-1>o&&t[v+1]!==" ")}if(!y&&!A){if(w&&!l&&!a(t)){return W}return u===U?Q:z}if(i>9&&needIndentIndicator(t)){return Q}if(!l){return A?V:Y}return u===U?Q:z}function writeScalar(t,r,i,o,u){t.dump=function(){if(r.length===0){return t.quotingType===U?'""':"''"}if(!t.noCompatMode){if(j.indexOf(r)!==-1||H.test(r)){return t.quotingType===U?'"'+r+'"':"'"+r+"'"}}var l=t.indent*Math.max(1,i);var h=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-l);var p=o||t.flowLevel>-1&&i>=t.flowLevel;function testAmbiguity(r){return testImplicitResolving(t,r)}switch(chooseScalarStyle(r,p,t.indent,h,testAmbiguity,t.quotingType,t.forceQuotes&&!o,u)){case W:return r;case z:return"'"+r.replace(/'/g,"''")+"'";case Y:return"|"+blockHeader(r,t.indent)+dropEndingNewline(indentString(r,l));case V:return">"+blockHeader(r,t.indent)+dropEndingNewline(indentString(foldString(r,h),l));case Q:return'"'+escapeString(r,h)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function blockHeader(t,r){var i=needIndentIndicator(t)?String(r):"";var o=t[t.length-1]==="\n";var a=o&&(t[t.length-2]==="\n"||t==="\n");var u=a?"+":o?"":"-";return i+u+"\n"}function dropEndingNewline(t){return t[t.length-1]==="\n"?t.slice(0,-1):t}function foldString(t,r){var i=/(\n+)([^\n]*)/g;var o=function(){var o=t.indexOf("\n");o=o!==-1?o:t.length;i.lastIndex=o;return foldLine(t.slice(0,o),r)}();var a=t[0]==="\n"||t[0]===" ";var u;var l;while(l=i.exec(t)){var h=l[1],p=l[2];u=p[0]===" ";o+=h+(!a&&!u&&p!==""?"\n":"")+foldLine(p,r);a=u}return o}function foldLine(t,r){if(t===""||t[0]===" ")return t;var i=/ [^ ]/g;var o;var a=0,u,l=0,h=0;var p="";while(o=i.exec(t)){h=o.index;if(h-a>r){u=l>a?l:h;p+="\n"+t.slice(a,u);a=u+1}l=h}p+="\n";if(t.length-a>r&&l>a){p+=t.slice(a,l)+"\n"+t.slice(l+1)}else{p+=t.slice(a)}return p.slice(1)}function escapeString(t){var r="";var i=0;var o;for(var a=0;a<t.length;i>=65536?a+=2:a++){i=codePointAt(t,a);o=$[i];if(!o&&isPrintable(i)){r+=t[a];if(i>=65536)r+=t[a+1]}else{r+=o||encodeHex(i)}}return r}function writeFlowSequence(t,r,i){var o="",a=t.tag,u,l,h;for(u=0,l=i.length;u<l;u+=1){h=i[u];if(t.replacer){h=t.replacer.call(i,String(u),h)}if(writeNode(t,r,h,false,false)||typeof h==="undefined"&&writeNode(t,r,null,false,false)){if(o!=="")o+=","+(!t.condenseFlow?" ":"");o+=t.dump}}t.tag=a;t.dump="["+o+"]"}function writeBlockSequence(t,r,i,o){var a="",u=t.tag,l,h,p;for(l=0,h=i.length;l<h;l+=1){p=i[l];if(t.replacer){p=t.replacer.call(i,String(l),p)}if(writeNode(t,r+1,p,true,true,false,true)||typeof p==="undefined"&&writeNode(t,r+1,null,true,true,false,true)){if(!o||a!==""){a+=generateNextLine(t,r)}if(t.dump&&m===t.dump.charCodeAt(0)){a+="-"}else{a+="- "}a+=t.dump}}t.tag=u;t.dump=a||"[]"}function writeFlowMapping(t,r,i){var o="",a=t.tag,u=Object.keys(i),l,h,p,d,m;for(l=0,h=u.length;l<h;l+=1){m="";if(o!=="")m+=", ";if(t.condenseFlow)m+='"';p=u[l];d=i[p];if(t.replacer){d=t.replacer.call(i,p,d)}if(!writeNode(t,r,p,false,false)){continue}if(t.dump.length>1024)m+="? ";m+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" ");if(!writeNode(t,r,d,false,false)){continue}m+=t.dump;o+=m}t.tag=a;t.dump="{"+o+"}"}function writeBlockMapping(t,r,i,o){var u="",l=t.tag,h=Object.keys(i),p,d,g,y,A,b;if(t.sortKeys===true){h.sort()}else if(typeof t.sortKeys==="function"){h.sort(t.sortKeys)}else if(t.sortKeys){throw new a("sortKeys must be a boolean or a function")}for(p=0,d=h.length;p<d;p+=1){b="";if(!o||u!==""){b+=generateNextLine(t,r)}g=h[p];y=i[g];if(t.replacer){y=t.replacer.call(i,g,y)}if(!writeNode(t,r+1,g,true,true,true)){continue}A=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024;if(A){if(t.dump&&m===t.dump.charCodeAt(0)){b+="?"}else{b+="? "}}b+=t.dump;if(A){b+=generateNextLine(t,r)}if(!writeNode(t,r+1,y,true,A)){continue}if(t.dump&&m===t.dump.charCodeAt(0)){b+=":"}else{b+=": "}b+=t.dump;u+=b}t.tag=l;t.dump=u||"{}"}function detectType(t,r,i){var o,u,p,d,m,g;u=i?t.explicitTypes:t.implicitTypes;for(p=0,d=u.length;p<d;p+=1){m=u[p];if((m.instanceOf||m.predicate)&&(!m.instanceOf||typeof r==="object"&&r instanceof m.instanceOf)&&(!m.predicate||m.predicate(r))){if(i){if(m.multi&&m.representName){t.tag=m.representName(r)}else{t.tag=m.tag}}else{t.tag="?"}if(m.represent){g=t.styleMap[m.tag]||m.defaultStyle;if(l.call(m.represent)==="[object Function]"){o=m.represent(r,g)}else if(h.call(m.represent,g)){o=m.represent[g](r,g)}else{throw new a("!<"+m.tag+'> tag resolver accepts not "'+g+'" style')}t.dump=o}return true}}return false}function writeNode(t,r,i,o,u,h,p){t.tag=null;t.dump=i;if(!detectType(t,i,false)){detectType(t,i,true)}var d=l.call(t.dump);var m=o;var g;if(o){o=t.flowLevel<0||t.flowLevel>r}var y=d==="[object Object]"||d==="[object Array]",A,b;if(y){A=t.duplicates.indexOf(i);b=A!==-1}if(t.tag!==null&&t.tag!=="?"||b||t.indent!==2&&r>0){u=false}if(b&&t.usedDuplicates[A]){t.dump="*ref_"+A}else{if(y&&b&&!t.usedDuplicates[A]){t.usedDuplicates[A]=true}if(d==="[object Object]"){if(o&&Object.keys(t.dump).length!==0){writeBlockMapping(t,r,t.dump,u);if(b){t.dump="&ref_"+A+t.dump}}else{writeFlowMapping(t,r,t.dump);if(b){t.dump="&ref_"+A+" "+t.dump}}}else if(d==="[object Array]"){if(o&&t.dump.length!==0){if(t.noArrayIndent&&!p&&r>0){writeBlockSequence(t,r-1,t.dump,u)}else{writeBlockSequence(t,r,t.dump,u)}if(b){t.dump="&ref_"+A+t.dump}}else{writeFlowSequence(t,r,t.dump);if(b){t.dump="&ref_"+A+" "+t.dump}}}else if(d==="[object String]"){if(t.tag!=="?"){writeScalar(t,t.dump,r,h,m)}}else if(d==="[object Undefined]"){return false}else{if(t.skipInvalid)return false;throw new a("unacceptable kind of an object to dump "+d)}if(t.tag!==null&&t.tag!=="?"){g=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21");if(t.tag[0]==="!"){g="!"+g}else if(g.slice(0,18)==="tag:yaml.org,2002:"){g="!!"+g.slice(18)}else{g="!<"+g+">"}t.dump=g+" "+t.dump}}return true}function getDuplicateReferences(t,r){var i=[],o=[],a,u;inspectNode(t,i,o);for(a=0,u=o.length;a<u;a+=1){r.duplicates.push(i[o[a]])}r.usedDuplicates=new Array(u)}function inspectNode(t,r,i){var o,a,u;if(t!==null&&typeof t==="object"){a=r.indexOf(t);if(a!==-1){if(i.indexOf(a)===-1){i.push(a)}}else{r.push(t);if(Array.isArray(t)){for(a=0,u=t.length;a<u;a+=1){inspectNode(t[a],r,i)}}else{o=Object.keys(t);for(a=0,u=o.length;a<u;a+=1){inspectNode(t[o[a]],r,i)}}}}}function dump(t,r){r=r||{};var i=new State(r);if(!i.noRefs)getDuplicateReferences(t,i);var o=t;if(i.replacer){o=i.replacer.call({"":o},"",o)}if(writeNode(i,0,o,true,true))return i.dump+"\n";return""}t.exports.dump=dump},8179:t=>{function formatError(t,r){var i="",o=t.reason||"(unknown reason)";if(!t.mark)return o;if(t.mark.name){i+='in "'+t.mark.name+'" '}i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")";if(!r&&t.mark.snippet){i+="\n\n"+t.mark.snippet}return o+" "+i}function YAMLException(t,r){Error.call(this);this.name="YAMLException";this.reason=t;this.mark=r;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(t){return this.name+": "+formatError(this,t)};t.exports=YAMLException},1161:(t,r,i)=>{var o=i(6829);var a=i(8179);var u=i(6975);var l=i(8759);var h=Object.prototype.hasOwnProperty;var p=1;var d=2;var m=3;var g=4;var y=1;var A=2;var b=3;var v=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var w=/[\x85\u2028\u2029]/;var E=/[,\[\]\{\}]/;var _=/^(?:!|!!|![a-z\-]+!)$/i;var S=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(t){return Object.prototype.toString.call(t)}function is_EOL(t){return t===10||t===13}function is_WHITE_SPACE(t){return t===9||t===32}function is_WS_OR_EOL(t){return t===9||t===32||t===10||t===13}function is_FLOW_INDICATOR(t){return t===44||t===91||t===93||t===123||t===125}function fromHexCode(t){var r;if(48<=t&&t<=57){return t-48}r=t|32;if(97<=r&&r<=102){return r-97+10}return-1}function escapedHexLen(t){if(t===120){return 2}if(t===117){return 4}if(t===85){return 8}return 0}function fromDecimalCode(t){if(48<=t&&t<=57){return t-48}return-1}function simpleEscapeSequence(t){return t===48?"\0":t===97?"":t===98?"\b":t===116?"\t":t===9?"\t":t===110?"\n":t===118?"\v":t===102?"\f":t===114?"\r":t===101?"":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function charFromCodepoint(t){if(t<=65535){return String.fromCharCode(t)}return String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var C=new Array(256);var D=new Array(256);for(var x=0;x<256;x++){C[x]=simpleEscapeSequence(x)?1:0;D[x]=simpleEscapeSequence(x)}function State(t,r){this.input=t;this.filename=r["filename"]||null;this.schema=r["schema"]||l;this.onWarning=r["onWarning"]||null;this.legacy=r["legacy"]||false;this.json=r["json"]||false;this.listener=r["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=t.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(t,r){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};i.snippet=u(i);return new a(r,i)}function throwError(t,r){throw generateError(t,r)}function throwWarning(t,r){if(t.onWarning){t.onWarning.call(null,generateError(t,r))}}var R={YAML:function handleYamlDirective(t,r,i){var o,a,u;if(t.version!==null){throwError(t,"duplication of %YAML directive")}if(i.length!==1){throwError(t,"YAML directive accepts exactly one argument")}o=/^([0-9]+)\.([0-9]+)$/.exec(i[0]);if(o===null){throwError(t,"ill-formed argument of the YAML directive")}a=parseInt(o[1],10);u=parseInt(o[2],10);if(a!==1){throwError(t,"unacceptable YAML version of the document")}t.version=i[0];t.checkLineBreaks=u<2;if(u!==1&&u!==2){throwWarning(t,"unsupported YAML version of the document")}},TAG:function handleTagDirective(t,r,i){var o,a;if(i.length!==2){throwError(t,"TAG directive accepts exactly two arguments")}o=i[0];a=i[1];if(!_.test(o)){throwError(t,"ill-formed tag handle (first argument) of the TAG directive")}if(h.call(t.tagMap,o)){throwError(t,'there is a previously declared suffix for "'+o+'" tag handle')}if(!S.test(a)){throwError(t,"ill-formed tag prefix (second argument) of the TAG directive")}try{a=decodeURIComponent(a)}catch(r){throwError(t,"tag prefix is malformed: "+a)}t.tagMap[o]=a}};function captureSegment(t,r,i,o){var a,u,l,h;if(r<i){h=t.input.slice(r,i);if(o){for(a=0,u=h.length;a<u;a+=1){l=h.charCodeAt(a);if(!(l===9||32<=l&&l<=1114111)){throwError(t,"expected valid JSON character")}}}else if(v.test(h)){throwError(t,"the stream contains non-printable characters")}t.result+=h}}function mergeMappings(t,r,i,a){var u,l,p,d;if(!o.isObject(i)){throwError(t,"cannot merge mappings; the provided source object is unacceptable")}u=Object.keys(i);for(p=0,d=u.length;p<d;p+=1){l=u[p];if(!h.call(r,l)){r[l]=i[l];a[l]=true}}}function storeMappingPair(t,r,i,o,a,u,l,p,d){var m,g;if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(m=0,g=a.length;m<g;m+=1){if(Array.isArray(a[m])){throwError(t,"nested arrays are not supported inside keys")}if(typeof a==="object"&&_class(a[m])==="[object Object]"){a[m]="[object Object]"}}}if(typeof a==="object"&&_class(a)==="[object Object]"){a="[object Object]"}a=String(a);if(r===null){r={}}if(o==="tag:yaml.org,2002:merge"){if(Array.isArray(u)){for(m=0,g=u.length;m<g;m+=1){mergeMappings(t,r,u[m],i)}}else{mergeMappings(t,r,u,i)}}else{if(!t.json&&!h.call(i,a)&&h.call(r,a)){t.line=l||t.line;t.lineStart=p||t.lineStart;t.position=d||t.position;throwError(t,"duplicated mapping key")}if(a==="__proto__"){Object.defineProperty(r,a,{configurable:true,enumerable:true,writable:true,value:u})}else{r[a]=u}delete i[a]}return r}function readLineBreak(t){var r;r=t.input.charCodeAt(t.position);if(r===10){t.position++}else if(r===13){t.position++;if(t.input.charCodeAt(t.position)===10){t.position++}}else{throwError(t,"a line break is expected")}t.line+=1;t.lineStart=t.position;t.firstTabInLine=-1}function skipSeparationSpace(t,r,i){var o=0,a=t.input.charCodeAt(t.position);while(a!==0){while(is_WHITE_SPACE(a)){if(a===9&&t.firstTabInLine===-1){t.firstTabInLine=t.position}a=t.input.charCodeAt(++t.position)}if(r&&a===35){do{a=t.input.charCodeAt(++t.position)}while(a!==10&&a!==13&&a!==0)}if(is_EOL(a)){readLineBreak(t);a=t.input.charCodeAt(t.position);o++;t.lineIndent=0;while(a===32){t.lineIndent++;a=t.input.charCodeAt(++t.position)}}else{break}}if(i!==-1&&o!==0&&t.lineIndent<i){throwWarning(t,"deficient indentation")}return o}function testDocumentSeparator(t){var r=t.position,i;i=t.input.charCodeAt(r);if((i===45||i===46)&&i===t.input.charCodeAt(r+1)&&i===t.input.charCodeAt(r+2)){r+=3;i=t.input.charCodeAt(r);if(i===0||is_WS_OR_EOL(i)){return true}}return false}function writeFoldedLines(t,r){if(r===1){t.result+=" "}else if(r>1){t.result+=o.repeat("\n",r-1)}}function readPlainScalar(t,r,i){var o,a,u,l,h,p,d,m,g=t.kind,y=t.result,A;A=t.input.charCodeAt(t.position);if(is_WS_OR_EOL(A)||is_FLOW_INDICATOR(A)||A===35||A===38||A===42||A===33||A===124||A===62||A===39||A===34||A===37||A===64||A===96){return false}if(A===63||A===45){a=t.input.charCodeAt(t.position+1);if(is_WS_OR_EOL(a)||i&&is_FLOW_INDICATOR(a)){return false}}t.kind="scalar";t.result="";u=l=t.position;h=false;while(A!==0){if(A===58){a=t.input.charCodeAt(t.position+1);if(is_WS_OR_EOL(a)||i&&is_FLOW_INDICATOR(a)){break}}else if(A===35){o=t.input.charCodeAt(t.position-1);if(is_WS_OR_EOL(o)){break}}else if(t.position===t.lineStart&&testDocumentSeparator(t)||i&&is_FLOW_INDICATOR(A)){break}else if(is_EOL(A)){p=t.line;d=t.lineStart;m=t.lineIndent;skipSeparationSpace(t,false,-1);if(t.lineIndent>=r){h=true;A=t.input.charCodeAt(t.position);continue}else{t.position=l;t.line=p;t.lineStart=d;t.lineIndent=m;break}}if(h){captureSegment(t,u,l,false);writeFoldedLines(t,t.line-p);u=l=t.position;h=false}if(!is_WHITE_SPACE(A)){l=t.position+1}A=t.input.charCodeAt(++t.position)}captureSegment(t,u,l,false);if(t.result){return true}t.kind=g;t.result=y;return false}function readSingleQuotedScalar(t,r){var i,o,a;i=t.input.charCodeAt(t.position);if(i!==39){return false}t.kind="scalar";t.result="";t.position++;o=a=t.position;while((i=t.input.charCodeAt(t.position))!==0){if(i===39){captureSegment(t,o,t.position,true);i=t.input.charCodeAt(++t.position);if(i===39){o=t.position;t.position++;a=t.position}else{return true}}else if(is_EOL(i)){captureSegment(t,o,a,true);writeFoldedLines(t,skipSeparationSpace(t,false,r));o=a=t.position}else if(t.position===t.lineStart&&testDocumentSeparator(t)){throwError(t,"unexpected end of the document within a single quoted scalar")}else{t.position++;a=t.position}}throwError(t,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(t,r){var i,o,a,u,l,h;h=t.input.charCodeAt(t.position);if(h!==34){return false}t.kind="scalar";t.result="";t.position++;i=o=t.position;while((h=t.input.charCodeAt(t.position))!==0){if(h===34){captureSegment(t,i,t.position,true);t.position++;return true}else if(h===92){captureSegment(t,i,t.position,true);h=t.input.charCodeAt(++t.position);if(is_EOL(h)){skipSeparationSpace(t,false,r)}else if(h<256&&C[h]){t.result+=D[h];t.position++}else if((l=escapedHexLen(h))>0){a=l;u=0;for(;a>0;a--){h=t.input.charCodeAt(++t.position);if((l=fromHexCode(h))>=0){u=(u<<4)+l}else{throwError(t,"expected hexadecimal character")}}t.result+=charFromCodepoint(u);t.position++}else{throwError(t,"unknown escape sequence")}i=o=t.position}else if(is_EOL(h)){captureSegment(t,i,o,true);writeFoldedLines(t,skipSeparationSpace(t,false,r));i=o=t.position}else if(t.position===t.lineStart&&testDocumentSeparator(t)){throwError(t,"unexpected end of the document within a double quoted scalar")}else{t.position++;o=t.position}}throwError(t,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(t,r){var i=true,o,a,u,l=t.tag,h,d=t.anchor,m,g,y,A,b,v=Object.create(null),w,E,_,S;S=t.input.charCodeAt(t.position);if(S===91){g=93;b=false;h=[]}else if(S===123){g=125;b=true;h={}}else{return false}if(t.anchor!==null){t.anchorMap[t.anchor]=h}S=t.input.charCodeAt(++t.position);while(S!==0){skipSeparationSpace(t,true,r);S=t.input.charCodeAt(t.position);if(S===g){t.position++;t.tag=l;t.anchor=d;t.kind=b?"mapping":"sequence";t.result=h;return true}else if(!i){throwError(t,"missed comma between flow collection entries")}else if(S===44){throwError(t,"expected the node content, but found ','")}E=w=_=null;y=A=false;if(S===63){m=t.input.charCodeAt(t.position+1);if(is_WS_OR_EOL(m)){y=A=true;t.position++;skipSeparationSpace(t,true,r)}}o=t.line;a=t.lineStart;u=t.position;composeNode(t,r,p,false,true);E=t.tag;w=t.result;skipSeparationSpace(t,true,r);S=t.input.charCodeAt(t.position);if((A||t.line===o)&&S===58){y=true;S=t.input.charCodeAt(++t.position);skipSeparationSpace(t,true,r);composeNode(t,r,p,false,true);_=t.result}if(b){storeMappingPair(t,h,v,E,w,_,o,a,u)}else if(y){h.push(storeMappingPair(t,null,v,E,w,_,o,a,u))}else{h.push(w)}skipSeparationSpace(t,true,r);S=t.input.charCodeAt(t.position);if(S===44){i=true;S=t.input.charCodeAt(++t.position)}else{i=false}}throwError(t,"unexpected end of the stream within a flow collection")}function readBlockScalar(t,r){var i,a,u=y,l=false,h=false,p=r,d=0,m=false,g,v;v=t.input.charCodeAt(t.position);if(v===124){a=false}else if(v===62){a=true}else{return false}t.kind="scalar";t.result="";while(v!==0){v=t.input.charCodeAt(++t.position);if(v===43||v===45){if(y===u){u=v===43?b:A}else{throwError(t,"repeat of a chomping mode identifier")}}else if((g=fromDecimalCode(v))>=0){if(g===0){throwError(t,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!h){p=r+g-1;h=true}else{throwError(t,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(v)){do{v=t.input.charCodeAt(++t.position)}while(is_WHITE_SPACE(v));if(v===35){do{v=t.input.charCodeAt(++t.position)}while(!is_EOL(v)&&v!==0)}}while(v!==0){readLineBreak(t);t.lineIndent=0;v=t.input.charCodeAt(t.position);while((!h||t.lineIndent<p)&&v===32){t.lineIndent++;v=t.input.charCodeAt(++t.position)}if(!h&&t.lineIndent>p){p=t.lineIndent}if(is_EOL(v)){d++;continue}if(t.lineIndent<p){if(u===b){t.result+=o.repeat("\n",l?1+d:d)}else if(u===y){if(l){t.result+="\n"}}break}if(a){if(is_WHITE_SPACE(v)){m=true;t.result+=o.repeat("\n",l?1+d:d)}else if(m){m=false;t.result+=o.repeat("\n",d+1)}else if(d===0){if(l){t.result+=" "}}else{t.result+=o.repeat("\n",d)}}else{t.result+=o.repeat("\n",l?1+d:d)}l=true;h=true;d=0;i=t.position;while(!is_EOL(v)&&v!==0){v=t.input.charCodeAt(++t.position)}captureSegment(t,i,t.position,false)}return true}function readBlockSequence(t,r){var i,o=t.tag,a=t.anchor,u=[],l,h=false,p;if(t.firstTabInLine!==-1)return false;if(t.anchor!==null){t.anchorMap[t.anchor]=u}p=t.input.charCodeAt(t.position);while(p!==0){if(t.firstTabInLine!==-1){t.position=t.firstTabInLine;throwError(t,"tab characters must not be used in indentation")}if(p!==45){break}l=t.input.charCodeAt(t.position+1);if(!is_WS_OR_EOL(l)){break}h=true;t.position++;if(skipSeparationSpace(t,true,-1)){if(t.lineIndent<=r){u.push(null);p=t.input.charCodeAt(t.position);continue}}i=t.line;composeNode(t,r,m,false,true);u.push(t.result);skipSeparationSpace(t,true,-1);p=t.input.charCodeAt(t.position);if((t.line===i||t.lineIndent>r)&&p!==0){throwError(t,"bad indentation of a sequence entry")}else if(t.lineIndent<r){break}}if(h){t.tag=o;t.anchor=a;t.kind="sequence";t.result=u;return true}return false}function readBlockMapping(t,r,i){var o,a,u,l,h,p,m=t.tag,y=t.anchor,A={},b=Object.create(null),v=null,w=null,E=null,_=false,S=false,C;if(t.firstTabInLine!==-1)return false;if(t.anchor!==null){t.anchorMap[t.anchor]=A}C=t.input.charCodeAt(t.position);while(C!==0){if(!_&&t.firstTabInLine!==-1){t.position=t.firstTabInLine;throwError(t,"tab characters must not be used in indentation")}o=t.input.charCodeAt(t.position+1);u=t.line;if((C===63||C===58)&&is_WS_OR_EOL(o)){if(C===63){if(_){storeMappingPair(t,A,b,v,w,null,l,h,p);v=w=E=null}S=true;_=true;a=true}else if(_){_=false;a=true}else{throwError(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}t.position+=1;C=o}else{l=t.line;h=t.lineStart;p=t.position;if(!composeNode(t,i,d,false,true)){break}if(t.line===u){C=t.input.charCodeAt(t.position);while(is_WHITE_SPACE(C)){C=t.input.charCodeAt(++t.position)}if(C===58){C=t.input.charCodeAt(++t.position);if(!is_WS_OR_EOL(C)){throwError(t,"a whitespace character is expected after the key-value separator within a block mapping")}if(_){storeMappingPair(t,A,b,v,w,null,l,h,p);v=w=E=null}S=true;_=false;a=false;v=t.tag;w=t.result}else if(S){throwError(t,"can not read an implicit mapping pair; a colon is missed")}else{t.tag=m;t.anchor=y;return true}}else if(S){throwError(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{t.tag=m;t.anchor=y;return true}}if(t.line===u||t.lineIndent>r){if(_){l=t.line;h=t.lineStart;p=t.position}if(composeNode(t,r,g,true,a)){if(_){w=t.result}else{E=t.result}}if(!_){storeMappingPair(t,A,b,v,w,E,l,h,p);v=w=E=null}skipSeparationSpace(t,true,-1);C=t.input.charCodeAt(t.position)}if((t.line===u||t.lineIndent>r)&&C!==0){throwError(t,"bad indentation of a mapping entry")}else if(t.lineIndent<r){break}}if(_){storeMappingPair(t,A,b,v,w,null,l,h,p)}if(S){t.tag=m;t.anchor=y;t.kind="mapping";t.result=A}return S}function readTagProperty(t){var r,i=false,o=false,a,u,l;l=t.input.charCodeAt(t.position);if(l!==33)return false;if(t.tag!==null){throwError(t,"duplication of a tag property")}l=t.input.charCodeAt(++t.position);if(l===60){i=true;l=t.input.charCodeAt(++t.position)}else if(l===33){o=true;a="!!";l=t.input.charCodeAt(++t.position)}else{a="!"}r=t.position;if(i){do{l=t.input.charCodeAt(++t.position)}while(l!==0&&l!==62);if(t.position<t.length){u=t.input.slice(r,t.position);l=t.input.charCodeAt(++t.position)}else{throwError(t,"unexpected end of the stream within a verbatim tag")}}else{while(l!==0&&!is_WS_OR_EOL(l)){if(l===33){if(!o){a=t.input.slice(r-1,t.position+1);if(!_.test(a)){throwError(t,"named tag handle cannot contain such characters")}o=true;r=t.position+1}else{throwError(t,"tag suffix cannot contain exclamation marks")}}l=t.input.charCodeAt(++t.position)}u=t.input.slice(r,t.position);if(E.test(u)){throwError(t,"tag suffix cannot contain flow indicator characters")}}if(u&&!S.test(u)){throwError(t,"tag name cannot contain such characters: "+u)}try{u=decodeURIComponent(u)}catch(r){throwError(t,"tag name is malformed: "+u)}if(i){t.tag=u}else if(h.call(t.tagMap,a)){t.tag=t.tagMap[a]+u}else if(a==="!"){t.tag="!"+u}else if(a==="!!"){t.tag="tag:yaml.org,2002:"+u}else{throwError(t,'undeclared tag handle "'+a+'"')}return true}function readAnchorProperty(t){var r,i;i=t.input.charCodeAt(t.position);if(i!==38)return false;if(t.anchor!==null){throwError(t,"duplication of an anchor property")}i=t.input.charCodeAt(++t.position);r=t.position;while(i!==0&&!is_WS_OR_EOL(i)&&!is_FLOW_INDICATOR(i)){i=t.input.charCodeAt(++t.position)}if(t.position===r){throwError(t,"name of an anchor node must contain at least one character")}t.anchor=t.input.slice(r,t.position);return true}function readAlias(t){var r,i,o;o=t.input.charCodeAt(t.position);if(o!==42)return false;o=t.input.charCodeAt(++t.position);r=t.position;while(o!==0&&!is_WS_OR_EOL(o)&&!is_FLOW_INDICATOR(o)){o=t.input.charCodeAt(++t.position)}if(t.position===r){throwError(t,"name of an alias node must contain at least one character")}i=t.input.slice(r,t.position);if(!h.call(t.anchorMap,i)){throwError(t,'unidentified alias "'+i+'"')}t.result=t.anchorMap[i];skipSeparationSpace(t,true,-1);return true}function composeNode(t,r,i,o,a){var u,l,y,A=1,b=false,v=false,w,E,_,S,C,D;if(t.listener!==null){t.listener("open",t)}t.tag=null;t.anchor=null;t.kind=null;t.result=null;u=l=y=g===i||m===i;if(o){if(skipSeparationSpace(t,true,-1)){b=true;if(t.lineIndent>r){A=1}else if(t.lineIndent===r){A=0}else if(t.lineIndent<r){A=-1}}}if(A===1){while(readTagProperty(t)||readAnchorProperty(t)){if(skipSeparationSpace(t,true,-1)){b=true;y=u;if(t.lineIndent>r){A=1}else if(t.lineIndent===r){A=0}else if(t.lineIndent<r){A=-1}}else{y=false}}}if(y){y=b||a}if(A===1||g===i){if(p===i||d===i){C=r}else{C=r+1}D=t.position-t.lineStart;if(A===1){if(y&&(readBlockSequence(t,D)||readBlockMapping(t,D,C))||readFlowCollection(t,C)){v=true}else{if(l&&readBlockScalar(t,C)||readSingleQuotedScalar(t,C)||readDoubleQuotedScalar(t,C)){v=true}else if(readAlias(t)){v=true;if(t.tag!==null||t.anchor!==null){throwError(t,"alias node should not have any properties")}}else if(readPlainScalar(t,C,p===i)){v=true;if(t.tag===null){t.tag="?"}}if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}}else if(A===0){v=y&&readBlockSequence(t,D)}}if(t.tag===null){if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}else if(t.tag==="?"){if(t.result!==null&&t.kind!=="scalar"){throwError(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"')}for(w=0,E=t.implicitTypes.length;w<E;w+=1){S=t.implicitTypes[w];if(S.resolve(t.result)){t.result=S.construct(t.result);t.tag=S.tag;if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}break}}}else if(t.tag!=="!"){if(h.call(t.typeMap[t.kind||"fallback"],t.tag)){S=t.typeMap[t.kind||"fallback"][t.tag]}else{S=null;_=t.typeMap.multi[t.kind||"fallback"];for(w=0,E=_.length;w<E;w+=1){if(t.tag.slice(0,_[w].tag.length)===_[w].tag){S=_[w];break}}}if(!S){throwError(t,"unknown tag !<"+t.tag+">")}if(t.result!==null&&S.kind!==t.kind){throwError(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+S.kind+'", not "'+t.kind+'"')}if(!S.resolve(t.result,t.tag)){throwError(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}else{t.result=S.construct(t.result,t.tag);if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}}if(t.listener!==null){t.listener("close",t)}return t.tag!==null||t.anchor!==null||v}function readDocument(t){var r=t.position,i,o,a,u=false,l;t.version=null;t.checkLineBreaks=t.legacy;t.tagMap=Object.create(null);t.anchorMap=Object.create(null);while((l=t.input.charCodeAt(t.position))!==0){skipSeparationSpace(t,true,-1);l=t.input.charCodeAt(t.position);if(t.lineIndent>0||l!==37){break}u=true;l=t.input.charCodeAt(++t.position);i=t.position;while(l!==0&&!is_WS_OR_EOL(l)){l=t.input.charCodeAt(++t.position)}o=t.input.slice(i,t.position);a=[];if(o.length<1){throwError(t,"directive name must not be less than one character in length")}while(l!==0){while(is_WHITE_SPACE(l)){l=t.input.charCodeAt(++t.position)}if(l===35){do{l=t.input.charCodeAt(++t.position)}while(l!==0&&!is_EOL(l));break}if(is_EOL(l))break;i=t.position;while(l!==0&&!is_WS_OR_EOL(l)){l=t.input.charCodeAt(++t.position)}a.push(t.input.slice(i,t.position))}if(l!==0)readLineBreak(t);if(h.call(R,o)){R[o](t,o,a)}else{throwWarning(t,'unknown document directive "'+o+'"')}}skipSeparationSpace(t,true,-1);if(t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45){t.position+=3;skipSeparationSpace(t,true,-1)}else if(u){throwError(t,"directives end mark is expected")}composeNode(t,t.lineIndent-1,g,false,true);skipSeparationSpace(t,true,-1);if(t.checkLineBreaks&&w.test(t.input.slice(r,t.position))){throwWarning(t,"non-ASCII line breaks are interpreted as content")}t.documents.push(t.result);if(t.position===t.lineStart&&testDocumentSeparator(t)){if(t.input.charCodeAt(t.position)===46){t.position+=3;skipSeparationSpace(t,true,-1)}return}if(t.position<t.length-1){throwError(t,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(t,r){t=String(t);r=r||{};if(t.length!==0){if(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13){t+="\n"}if(t.charCodeAt(0)===65279){t=t.slice(1)}}var i=new State(t,r);var o=t.indexOf("\0");if(o!==-1){i.position=o;throwError(i,"null byte is not allowed in input")}i.input+="\0";while(i.input.charCodeAt(i.position)===32){i.lineIndent+=1;i.position+=1}while(i.position<i.length-1){readDocument(i)}return i.documents}function loadAll(t,r,i){if(r!==null&&typeof r==="object"&&typeof i==="undefined"){i=r;r=null}var o=loadDocuments(t,i);if(typeof r!=="function"){return o}for(var a=0,u=o.length;a<u;a+=1){r(o[a])}}function load(t,r){var i=loadDocuments(t,r);if(i.length===0){return undefined}else if(i.length===1){return i[0]}throw new a("expected a single document in the stream, but found more")}t.exports.loadAll=loadAll;t.exports.load=load},1082:(t,r,i)=>{var o=i(8179);var a=i(6073);function compileList(t,r){var i=[];t[r].forEach((function(t){var r=i.length;i.forEach((function(i,o){if(i.tag===t.tag&&i.kind===t.kind&&i.multi===t.multi){r=o}}));i[r]=t}));return i}function compileMap(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,i;function collectType(r){if(r.multi){t.multi[r.kind].push(r);t.multi["fallback"].push(r)}else{t[r.kind][r.tag]=t["fallback"][r.tag]=r}}for(r=0,i=arguments.length;r<i;r+=1){arguments[r].forEach(collectType)}return t}function Schema(t){return this.extend(t)}Schema.prototype.extend=function extend(t){var r=[];var i=[];if(t instanceof a){i.push(t)}else if(Array.isArray(t)){i=i.concat(t)}else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit))){if(t.implicit)r=r.concat(t.implicit);if(t.explicit)i=i.concat(t.explicit)}else{throw new o("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}r.forEach((function(t){if(!(t instanceof a)){throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(t.loadKind&&t.loadKind!=="scalar"){throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(t.multi){throw new o("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));i.forEach((function(t){if(!(t instanceof a)){throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var u=Object.create(Schema.prototype);u.implicit=(this.implicit||[]).concat(r);u.explicit=(this.explicit||[]).concat(i);u.compiledImplicit=compileList(u,"implicit");u.compiledExplicit=compileList(u,"explicit");u.compiledTypeMap=compileMap(u.compiledImplicit,u.compiledExplicit);return u};t.exports=Schema},2011:(t,r,i)=>{t.exports=i(1035)},8759:(t,r,i)=>{t.exports=i(2011).extend({implicit:[i(9212),i(6104)],explicit:[i(7900),i(9046),i(6860),i(9548)]})},8562:(t,r,i)=>{var o=i(1082);t.exports=new o({explicit:[i(3619),i(7283),i(6150)]})},1035:(t,r,i)=>{t.exports=i(8562).extend({implicit:[i(721),i(4993),i(1615),i(2705)]})},6975:(t,r,i)=>{var o=i(6829);function getLine(t,r,i,o,a){var u="";var l="";var h=Math.floor(a/2)-1;if(o-r>h){u=" ... ";r=o-h+u.length}if(i-o>h){l=" ...";i=o+h-l.length}return{str:u+t.slice(r,i).replace(/\t/g,"→")+l,pos:o-r+u.length}}function padStart(t,r){return o.repeat(" ",r-t.length)+t}function makeSnippet(t,r){r=Object.create(r||null);if(!t.buffer)return null;if(!r.maxLength)r.maxLength=79;if(typeof r.indent!=="number")r.indent=1;if(typeof r.linesBefore!=="number")r.linesBefore=3;if(typeof r.linesAfter!=="number")r.linesAfter=2;var i=/\r?\n|\r|\0/g;var a=[0];var u=[];var l;var h=-1;while(l=i.exec(t.buffer)){u.push(l.index);a.push(l.index+l[0].length);if(t.position<=l.index&&h<0){h=a.length-2}}if(h<0)h=a.length-1;var p="",d,m;var g=Math.min(t.line+r.linesAfter,u.length).toString().length;var y=r.maxLength-(r.indent+g+3);for(d=1;d<=r.linesBefore;d++){if(h-d<0)break;m=getLine(t.buffer,a[h-d],u[h-d],t.position-(a[h]-a[h-d]),y);p=o.repeat(" ",r.indent)+padStart((t.line-d+1).toString(),g)+" | "+m.str+"\n"+p}m=getLine(t.buffer,a[h],u[h],t.position,y);p+=o.repeat(" ",r.indent)+padStart((t.line+1).toString(),g)+" | "+m.str+"\n";p+=o.repeat("-",r.indent+g+3+m.pos)+"^"+"\n";for(d=1;d<=r.linesAfter;d++){if(h+d>=u.length)break;m=getLine(t.buffer,a[h+d],u[h+d],t.position-(a[h]-a[h+d]),y);p+=o.repeat(" ",r.indent)+padStart((t.line+d+1).toString(),g)+" | "+m.str+"\n"}return p.replace(/\n$/,"")}t.exports=makeSnippet},6073:(t,r,i)=>{var o=i(8179);var a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var u=["scalar","sequence","mapping"];function compileStyleAliases(t){var r={};if(t!==null){Object.keys(t).forEach((function(i){t[i].forEach((function(t){r[String(t)]=i}))}))}return r}function Type(t,r){r=r||{};Object.keys(r).forEach((function(r){if(a.indexOf(r)===-1){throw new o('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}}));this.options=r;this.tag=t;this.kind=r["kind"]||null;this.resolve=r["resolve"]||function(){return true};this.construct=r["construct"]||function(t){return t};this.instanceOf=r["instanceOf"]||null;this.predicate=r["predicate"]||null;this.represent=r["represent"]||null;this.representName=r["representName"]||null;this.defaultStyle=r["defaultStyle"]||null;this.multi=r["multi"]||false;this.styleAliases=compileStyleAliases(r["styleAliases"]||null);if(u.indexOf(this.kind)===-1){throw new o('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}}t.exports=Type},7900:(t,r,i)=>{var o=i(6073);var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(t){if(t===null)return false;var r,i,o=0,u=t.length,l=a;for(i=0;i<u;i++){r=l.indexOf(t.charAt(i));if(r>64)continue;if(r<0)return false;o+=6}return o%8===0}function constructYamlBinary(t){var r,i,o=t.replace(/[\r\n=]/g,""),u=o.length,l=a,h=0,p=[];for(r=0;r<u;r++){if(r%4===0&&r){p.push(h>>16&255);p.push(h>>8&255);p.push(h&255)}h=h<<6|l.indexOf(o.charAt(r))}i=u%4*6;if(i===0){p.push(h>>16&255);p.push(h>>8&255);p.push(h&255)}else if(i===18){p.push(h>>10&255);p.push(h>>2&255)}else if(i===12){p.push(h>>4&255)}return new Uint8Array(p)}function representYamlBinary(t){var r="",i=0,o,u,l=t.length,h=a;for(o=0;o<l;o++){if(o%3===0&&o){r+=h[i>>18&63];r+=h[i>>12&63];r+=h[i>>6&63];r+=h[i&63]}i=(i<<8)+t[o]}u=l%3;if(u===0){r+=h[i>>18&63];r+=h[i>>12&63];r+=h[i>>6&63];r+=h[i&63]}else if(u===2){r+=h[i>>10&63];r+=h[i>>4&63];r+=h[i<<2&63];r+=h[64]}else if(u===1){r+=h[i>>2&63];r+=h[i<<4&63];r+=h[64];r+=h[64]}return r}function isBinary(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}t.exports=new o("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(t,r,i)=>{var o=i(6073);function resolveYamlBoolean(t){if(t===null)return false;var r=t.length;return r===4&&(t==="true"||t==="True"||t==="TRUE")||r===5&&(t==="false"||t==="False"||t==="FALSE")}function constructYamlBoolean(t){return t==="true"||t==="True"||t==="TRUE"}function isBoolean(t){return Object.prototype.toString.call(t)==="[object Boolean]"}t.exports=new o("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})},2705:(t,r,i)=>{var o=i(6829);var a=i(6073);var u=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(t){if(t===null)return false;if(!u.test(t)||t[t.length-1]==="_"){return false}return true}function constructYamlFloat(t){var r,i;r=t.replace(/_/g,"").toLowerCase();i=r[0]==="-"?-1:1;if("+-".indexOf(r[0])>=0){r=r.slice(1)}if(r===".inf"){return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(r===".nan"){return NaN}return i*parseFloat(r,10)}var l=/^[-+]?[0-9]+e/;function representYamlFloat(t,r){var i;if(isNaN(t)){switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===t){switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===t){switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(o.isNegativeZero(t)){return"-0.0"}i=t.toString(10);return l.test(i)?i.replace("e",".e"):i}function isFloat(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||o.isNegativeZero(t))}t.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},1615:(t,r,i)=>{var o=i(6829);var a=i(6073);function isHexCode(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function isOctCode(t){return 48<=t&&t<=55}function isDecCode(t){return 48<=t&&t<=57}function resolveYamlInteger(t){if(t===null)return false;var r=t.length,i=0,o=false,a;if(!r)return false;a=t[i];if(a==="-"||a==="+"){a=t[++i]}if(a==="0"){if(i+1===r)return true;a=t[++i];if(a==="b"){i++;for(;i<r;i++){a=t[i];if(a==="_")continue;if(a!=="0"&&a!=="1")return false;o=true}return o&&a!=="_"}if(a==="x"){i++;for(;i<r;i++){a=t[i];if(a==="_")continue;if(!isHexCode(t.charCodeAt(i)))return false;o=true}return o&&a!=="_"}if(a==="o"){i++;for(;i<r;i++){a=t[i];if(a==="_")continue;if(!isOctCode(t.charCodeAt(i)))return false;o=true}return o&&a!=="_"}}if(a==="_")return false;for(;i<r;i++){a=t[i];if(a==="_")continue;if(!isDecCode(t.charCodeAt(i))){return false}o=true}if(!o||a==="_")return false;return true}function constructYamlInteger(t){var r=t,i=1,o;if(r.indexOf("_")!==-1){r=r.replace(/_/g,"")}o=r[0];if(o==="-"||o==="+"){if(o==="-")i=-1;r=r.slice(1);o=r[0]}if(r==="0")return 0;if(o==="0"){if(r[1]==="b")return i*parseInt(r.slice(2),2);if(r[1]==="x")return i*parseInt(r.slice(2),16);if(r[1]==="o")return i*parseInt(r.slice(2),8)}return i*parseInt(r,10)}function isInteger(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1===0&&!o.isNegativeZero(t))}t.exports=new a("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(t,r,i)=>{var o=i(6073);t.exports=new o("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}})},6104:(t,r,i)=>{var o=i(6073);function resolveYamlMerge(t){return t==="<<"||t===null}t.exports=new o("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(t,r,i)=>{var o=i(6073);function resolveYamlNull(t){if(t===null)return true;var r=t.length;return r===1&&t==="~"||r===4&&(t==="null"||t==="Null"||t==="NULL")}function constructYamlNull(){return null}function isNull(t){return t===null}t.exports=new o("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},9046:(t,r,i)=>{var o=i(6073);var a=Object.prototype.hasOwnProperty;var u=Object.prototype.toString;function resolveYamlOmap(t){if(t===null)return true;var r=[],i,o,l,h,p,d=t;for(i=0,o=d.length;i<o;i+=1){l=d[i];p=false;if(u.call(l)!=="[object Object]")return false;for(h in l){if(a.call(l,h)){if(!p)p=true;else return false}}if(!p)return false;if(r.indexOf(h)===-1)r.push(h);else return false}return true}function constructYamlOmap(t){return t!==null?t:[]}t.exports=new o("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},6860:(t,r,i)=>{var o=i(6073);var a=Object.prototype.toString;function resolveYamlPairs(t){if(t===null)return true;var r,i,o,u,l,h=t;l=new Array(h.length);for(r=0,i=h.length;r<i;r+=1){o=h[r];if(a.call(o)!=="[object Object]")return false;u=Object.keys(o);if(u.length!==1)return false;l[r]=[u[0],o[u[0]]]}return true}function constructYamlPairs(t){if(t===null)return[];var r,i,o,a,u,l=t;u=new Array(l.length);for(r=0,i=l.length;r<i;r+=1){o=l[r];a=Object.keys(o);u[r]=[a[0],o[a[0]]]}return u}t.exports=new o("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},7283:(t,r,i)=>{var o=i(6073);t.exports=new o("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}})},9548:(t,r,i)=>{var o=i(6073);var a=Object.prototype.hasOwnProperty;function resolveYamlSet(t){if(t===null)return true;var r,i=t;for(r in i){if(a.call(i,r)){if(i[r]!==null)return false}}return true}function constructYamlSet(t){return t!==null?t:{}}t.exports=new o("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(t,r,i)=>{var o=i(6073);t.exports=new o("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}})},9212:(t,r,i)=>{var o=i(6073);var a=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var u=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(t){if(t===null)return false;if(a.exec(t)!==null)return true;if(u.exec(t)!==null)return true;return false}function constructYamlTimestamp(t){var r,i,o,l,h,p,d,m=0,g=null,y,A,b;r=a.exec(t);if(r===null)r=u.exec(t);if(r===null)throw new Error("Date resolve error");i=+r[1];o=+r[2]-1;l=+r[3];if(!r[4]){return new Date(Date.UTC(i,o,l))}h=+r[4];p=+r[5];d=+r[6];if(r[7]){m=r[7].slice(0,3);while(m.length<3){m+="0"}m=+m}if(r[9]){y=+r[10];A=+(r[11]||0);g=(y*60+A)*6e4;if(r[9]==="-")g=-g}b=new Date(Date.UTC(i,o,l,h,p,d,m));if(g)b.setTime(b.getTime()-g);return b}function representYamlTimestamp(t){return t.toISOString()}t.exports=new o("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},6228:(t,r,i)=>{const o=i(3837);const a=i(610);const u=i(8569);const l=i(479);const isEmptyString=t=>t===""||t==="./";const micromatch=(t,r,i)=>{r=[].concat(r);t=[].concat(t);let o=new Set;let a=new Set;let l=new Set;let h=0;let onResult=t=>{l.add(t.output);if(i&&i.onResult){i.onResult(t)}};for(let l=0;l<r.length;l++){let p=u(String(r[l]),{...i,onResult:onResult},true);let d=p.state.negated||p.state.negatedExtglob;if(d)h++;for(let r of t){let t=p(r,true);let i=d?!t.isMatch:t.isMatch;if(!i)continue;if(d){o.add(t.output)}else{o.delete(t.output);a.add(t.output)}}}let p=h===r.length?[...l]:[...a];let d=p.filter((t=>!o.has(t)));if(i&&d.length===0){if(i.failglob===true){throw new Error(`No matches found for "${r.join(", ")}"`)}if(i.nonull===true||i.nullglob===true){return i.unescape?r.map((t=>t.replace(/\\/g,""))):r}}return d};micromatch.match=micromatch;micromatch.matcher=(t,r)=>u(t,r);micromatch.isMatch=(t,r,i)=>u(r,i)(t);micromatch.any=micromatch.isMatch;micromatch.not=(t,r,i={})=>{r=[].concat(r).map(String);let o=new Set;let a=[];let onResult=t=>{if(i.onResult)i.onResult(t);a.push(t.output)};let u=new Set(micromatch(t,r,{...i,onResult:onResult}));for(let t of a){if(!u.has(t)){o.add(t)}}return[...o]};micromatch.contains=(t,r,i)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${o.inspect(t)}"`)}if(Array.isArray(r)){return r.some((r=>micromatch.contains(t,r,i)))}if(typeof r==="string"){if(isEmptyString(t)||isEmptyString(r)){return false}if(t.includes(r)||t.startsWith("./")&&t.slice(2).includes(r)){return true}}return micromatch.isMatch(t,r,{...i,contains:true})};micromatch.matchKeys=(t,r,i)=>{if(!l.isObject(t)){throw new TypeError("Expected the first argument to be an object")}let o=micromatch(Object.keys(t),r,i);let a={};for(let r of o)a[r]=t[r];return a};micromatch.some=(t,r,i)=>{let o=[].concat(t);for(let t of[].concat(r)){let r=u(String(t),i);if(o.some((t=>r(t)))){return true}}return false};micromatch.every=(t,r,i)=>{let o=[].concat(t);for(let t of[].concat(r)){let r=u(String(t),i);if(!o.every((t=>r(t)))){return false}}return true};micromatch.all=(t,r,i)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${o.inspect(t)}"`)}return[].concat(r).every((r=>u(r,i)(t)))};micromatch.capture=(t,r,i)=>{let o=l.isWindows(i);let a=u.makeRe(String(t),{...i,capture:true});let h=a.exec(o?l.toPosixSlashes(r):r);if(h){return h.slice(1).map((t=>t===void 0?"":t))}};micromatch.makeRe=(...t)=>u.makeRe(...t);micromatch.scan=(...t)=>u.scan(...t);micromatch.parse=(t,r)=>{let i=[];for(let o of[].concat(t||[])){for(let t of a(String(o),r)){i.push(u.parse(t,r))}}return i};micromatch.braces=(t,r)=>{if(typeof t!=="string")throw new TypeError("Expected a string");if(r&&r.nobrace===true||!/\{.*\}/.test(t)){return[t]}return a(t,r)};micromatch.braceExpand=(t,r)=>{if(typeof t!=="string")throw new TypeError("Expected a string");return micromatch.braces(t,{...r,expand:true})};t.exports=micromatch},8569:(t,r,i)=>{t.exports=i(3322)},6099:(t,r,i)=>{const o=i(1017);const a="\\\\/";const u=`[^${a}]`;const l="\\.";const h="\\+";const p="\\?";const d="\\/";const m="(?=.)";const g="[^/]";const y=`(?:${d}|$)`;const A=`(?:^|${d})`;const b=`${l}{1,2}${y}`;const v=`(?!${l})`;const w=`(?!${A}${b})`;const E=`(?!${l}{0,1}${y})`;const _=`(?!${b})`;const S=`[^.${d}]`;const C=`${g}*?`;const D={DOT_LITERAL:l,PLUS_LITERAL:h,QMARK_LITERAL:p,SLASH_LITERAL:d,ONE_CHAR:m,QMARK:g,END_ANCHOR:y,DOTS_SLASH:b,NO_DOT:v,NO_DOTS:w,NO_DOT_SLASH:E,NO_DOTS_SLASH:_,QMARK_NO_DOT:S,STAR:C,START_ANCHOR:A};const x={...D,SLASH_LITERAL:`[${a}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${l}{1,2}(?:[${a}]|$)`,NO_DOT:`(?!${l})`,NO_DOTS:`(?!(?:^|[${a}])${l}{1,2}(?:[${a}]|$))`,NO_DOT_SLASH:`(?!${l}{0,1}(?:[${a}]|$))`,NO_DOTS_SLASH:`(?!${l}{1,2}(?:[${a}]|$))`,QMARK_NO_DOT:`[^.${a}]`,START_ANCHOR:`(?:^|[${a}])`,END_ANCHOR:`(?:[${a}]|$)`};const R={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:R,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:o.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?x:D}}},2139:(t,r,i)=>{const o=i(6099);const a=i(479);const{MAX_LENGTH:u,POSIX_REGEX_SOURCE:l,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:p,REPLACEMENTS:d}=o;const expandRange=(t,r)=>{if(typeof r.expandRange==="function"){return r.expandRange(...t,r)}t.sort();const i=`[${t.join("-")}]`;try{new RegExp(i)}catch(r){return t.map((t=>a.escapeRegex(t))).join("..")}return i};const syntaxError=(t,r)=>`Missing ${t}: "${r}" - use "\\\\${r}" to match literal characters`;const parse=(t,r)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=d[t]||t;const i={...r};const m=typeof i.maxLength==="number"?Math.min(u,i.maxLength):u;let g=t.length;if(g>m){throw new SyntaxError(`Input length: ${g}, exceeds maximum allowed length: ${m}`)}const y={type:"bos",value:"",output:i.prepend||""};const A=[y];const b=i.capture?"":"?:";const v=a.isWindows(r);const w=o.globChars(v);const E=o.extglobChars(w);const{DOT_LITERAL:_,PLUS_LITERAL:S,SLASH_LITERAL:C,ONE_CHAR:D,DOTS_SLASH:x,NO_DOT:R,NO_DOT_SLASH:O,NO_DOTS_SLASH:k,QMARK:P,QMARK_NO_DOT:T,STAR:L,START_ANCHOR:I}=w;const globstar=t=>`(${b}(?:(?!${I}${t.dot?x:_}).)*?)`;const M=i.dot?"":R;const B=i.dot?P:T;let N=i.bash===true?globstar(i):L;if(i.capture){N=`(${N})`}if(typeof i.noext==="boolean"){i.noextglob=i.noext}const $={input:t,index:-1,start:0,dot:i.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:A};t=a.removePrefix(t,$);g=t.length;const j=[];const H=[];const G=[];let U=y;let W;const eos=()=>$.index===g-1;const z=$.peek=(r=1)=>t[$.index+r];const Y=$.advance=()=>t[++$.index]||"";const remaining=()=>t.slice($.index+1);const consume=(t="",r=0)=>{$.consumed+=t;$.index+=r};const append=t=>{$.output+=t.output!=null?t.output:t.value;consume(t.value)};const negate=()=>{let t=1;while(z()==="!"&&(z(2)!=="("||z(3)==="?")){Y();$.start++;t++}if(t%2===0){return false}$.negated=true;$.start++;return true};const increment=t=>{$[t]++;G.push(t)};const decrement=t=>{$[t]--;G.pop()};const push=t=>{if(U.type==="globstar"){const r=$.braces>0&&(t.type==="comma"||t.type==="brace");const i=t.extglob===true||j.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!r&&!i){$.output=$.output.slice(0,-U.output.length);U.type="star";U.value="*";U.output=N;$.output+=U.output}}if(j.length&&t.type!=="paren"){j[j.length-1].inner+=t.value}if(t.value||t.output)append(t);if(U&&U.type==="text"&&t.type==="text"){U.value+=t.value;U.output=(U.output||"")+t.value;return}t.prev=U;A.push(t);U=t};const extglobOpen=(t,r)=>{const o={...E[r],conditions:1,inner:""};o.prev=U;o.parens=$.parens;o.output=$.output;const a=(i.capture?"(":"")+o.open;increment("parens");push({type:t,value:r,output:$.output?"":D});push({type:"paren",extglob:true,value:Y(),output:a});j.push(o)};const extglobClose=t=>{let o=t.close+(i.capture?")":"");let a;if(t.type==="negate"){let u=N;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){u=globstar(i)}if(u!==N||eos()||/^\)+$/.test(remaining())){o=t.close=`)$))${u}`}if(t.inner.includes("*")&&(a=remaining())&&/^\.[^\\/.]+$/.test(a)){const i=parse(a,{...r,fastpaths:false}).output;o=t.close=`)${i})${u})`}if(t.prev.type==="bos"){$.negatedExtglob=true}}push({type:"paren",extglob:true,value:W,output:o});decrement("parens")};if(i.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let o=false;let u=t.replace(p,((t,r,i,a,u,l)=>{if(a==="\\"){o=true;return t}if(a==="?"){if(r){return r+a+(u?P.repeat(u.length):"")}if(l===0){return B+(u?P.repeat(u.length):"")}return P.repeat(i.length)}if(a==="."){return _.repeat(i.length)}if(a==="*"){if(r){return r+a+(u?N:"")}return N}return r?t:`\\${t}`}));if(o===true){if(i.unescape===true){u=u.replace(/\\/g,"")}else{u=u.replace(/\\+/g,(t=>t.length%2===0?"\\\\":t?"\\":""))}}if(u===t&&i.contains===true){$.output=t;return $}$.output=a.wrapOutput(u,$,r);return $}while(!eos()){W=Y();if(W==="\0"){continue}if(W==="\\"){const t=z();if(t==="/"&&i.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){W+="\\";push({type:"text",value:W});continue}const r=/^\\+/.exec(remaining());let o=0;if(r&&r[0].length>2){o=r[0].length;$.index+=o;if(o%2!==0){W+="\\"}}if(i.unescape===true){W=Y()}else{W+=Y()}if($.brackets===0){push({type:"text",value:W});continue}}if($.brackets>0&&(W!=="]"||U.value==="["||U.value==="[^")){if(i.posix!==false&&W===":"){const t=U.value.slice(1);if(t.includes("[")){U.posix=true;if(t.includes(":")){const t=U.value.lastIndexOf("[");const r=U.value.slice(0,t);const i=U.value.slice(t+2);const o=l[i];if(o){U.value=r+o;$.backtrack=true;Y();if(!y.output&&A.indexOf(U)===1){y.output=D}continue}}}}if(W==="["&&z()!==":"||W==="-"&&z()==="]"){W=`\\${W}`}if(W==="]"&&(U.value==="["||U.value==="[^")){W=`\\${W}`}if(i.posix===true&&W==="!"&&U.value==="["){W="^"}U.value+=W;append({value:W});continue}if($.quotes===1&&W!=='"'){W=a.escapeRegex(W);U.value+=W;append({value:W});continue}if(W==='"'){$.quotes=$.quotes===1?0:1;if(i.keepQuotes===true){push({type:"text",value:W})}continue}if(W==="("){increment("parens");push({type:"paren",value:W});continue}if(W===")"){if($.parens===0&&i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const t=j[j.length-1];if(t&&$.parens===t.parens+1){extglobClose(j.pop());continue}push({type:"paren",value:W,output:$.parens?")":"\\)"});decrement("parens");continue}if(W==="["){if(i.nobracket===true||!remaining().includes("]")){if(i.nobracket!==true&&i.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}W=`\\${W}`}else{increment("brackets")}push({type:"bracket",value:W});continue}if(W==="]"){if(i.nobracket===true||U&&U.type==="bracket"&&U.value.length===1){push({type:"text",value:W,output:`\\${W}`});continue}if($.brackets===0){if(i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:W,output:`\\${W}`});continue}decrement("brackets");const t=U.value.slice(1);if(U.posix!==true&&t[0]==="^"&&!t.includes("/")){W=`/${W}`}U.value+=W;append({value:W});if(i.literalBrackets===false||a.hasRegexChars(t)){continue}const r=a.escapeRegex(U.value);$.output=$.output.slice(0,-U.value.length);if(i.literalBrackets===true){$.output+=r;U.value=r;continue}U.value=`(${b}${r}|${U.value})`;$.output+=U.value;continue}if(W==="{"&&i.nobrace!==true){increment("braces");const t={type:"brace",value:W,output:"(",outputIndex:$.output.length,tokensIndex:$.tokens.length};H.push(t);push(t);continue}if(W==="}"){const t=H[H.length-1];if(i.nobrace===true||!t){push({type:"text",value:W,output:W});continue}let r=")";if(t.dots===true){const t=A.slice();const o=[];for(let r=t.length-1;r>=0;r--){A.pop();if(t[r].type==="brace"){break}if(t[r].type!=="dots"){o.unshift(t[r].value)}}r=expandRange(o,i);$.backtrack=true}if(t.comma!==true&&t.dots!==true){const i=$.output.slice(0,t.outputIndex);const o=$.tokens.slice(t.tokensIndex);t.value=t.output="\\{";W=r="\\}";$.output=i;for(const t of o){$.output+=t.output||t.value}}push({type:"brace",value:W,output:r});decrement("braces");H.pop();continue}if(W==="|"){if(j.length>0){j[j.length-1].conditions++}push({type:"text",value:W});continue}if(W===","){let t=W;const r=H[H.length-1];if(r&&G[G.length-1]==="braces"){r.comma=true;t="|"}push({type:"comma",value:W,output:t});continue}if(W==="/"){if(U.type==="dot"&&$.index===$.start+1){$.start=$.index+1;$.consumed="";$.output="";A.pop();U=y;continue}push({type:"slash",value:W,output:C});continue}if(W==="."){if($.braces>0&&U.type==="dot"){if(U.value===".")U.output=_;const t=H[H.length-1];U.type="dots";U.output+=W;U.value+=W;t.dots=true;continue}if($.braces+$.parens===0&&U.type!=="bos"&&U.type!=="slash"){push({type:"text",value:W,output:_});continue}push({type:"dot",value:W,output:_});continue}if(W==="?"){const t=U&&U.value==="(";if(!t&&i.noextglob!==true&&z()==="("&&z(2)!=="?"){extglobOpen("qmark",W);continue}if(U&&U.type==="paren"){const t=z();let r=W;if(t==="<"&&!a.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(U.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(remaining())){r=`\\${W}`}push({type:"text",value:W,output:r});continue}if(i.dot!==true&&(U.type==="slash"||U.type==="bos")){push({type:"qmark",value:W,output:T});continue}push({type:"qmark",value:W,output:P});continue}if(W==="!"){if(i.noextglob!==true&&z()==="("){if(z(2)!=="?"||!/[!=<:]/.test(z(3))){extglobOpen("negate",W);continue}}if(i.nonegate!==true&&$.index===0){negate();continue}}if(W==="+"){if(i.noextglob!==true&&z()==="("&&z(2)!=="?"){extglobOpen("plus",W);continue}if(U&&U.value==="("||i.regex===false){push({type:"plus",value:W,output:S});continue}if(U&&(U.type==="bracket"||U.type==="paren"||U.type==="brace")||$.parens>0){push({type:"plus",value:W});continue}push({type:"plus",value:S});continue}if(W==="@"){if(i.noextglob!==true&&z()==="("&&z(2)!=="?"){push({type:"at",extglob:true,value:W,output:""});continue}push({type:"text",value:W});continue}if(W!=="*"){if(W==="$"||W==="^"){W=`\\${W}`}const t=h.exec(remaining());if(t){W+=t[0];$.index+=t[0].length}push({type:"text",value:W});continue}if(U&&(U.type==="globstar"||U.star===true)){U.type="star";U.star=true;U.value+=W;U.output=N;$.backtrack=true;$.globstar=true;consume(W);continue}let r=remaining();if(i.noextglob!==true&&/^\([^?]/.test(r)){extglobOpen("star",W);continue}if(U.type==="star"){if(i.noglobstar===true){consume(W);continue}const o=U.prev;const a=o.prev;const u=o.type==="slash"||o.type==="bos";const l=a&&(a.type==="star"||a.type==="globstar");if(i.bash===true&&(!u||r[0]&&r[0]!=="/")){push({type:"star",value:W,output:""});continue}const h=$.braces>0&&(o.type==="comma"||o.type==="brace");const p=j.length&&(o.type==="pipe"||o.type==="paren");if(!u&&o.type!=="paren"&&!h&&!p){push({type:"star",value:W,output:""});continue}while(r.slice(0,3)==="/**"){const i=t[$.index+4];if(i&&i!=="/"){break}r=r.slice(3);consume("/**",3)}if(o.type==="bos"&&eos()){U.type="globstar";U.value+=W;U.output=globstar(i);$.output=U.output;$.globstar=true;consume(W);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&!l&&eos()){$.output=$.output.slice(0,-(o.output+U.output).length);o.output=`(?:${o.output}`;U.type="globstar";U.output=globstar(i)+(i.strictSlashes?")":"|$)");U.value+=W;$.globstar=true;$.output+=o.output+U.output;consume(W);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&r[0]==="/"){const t=r[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(o.output+U.output).length);o.output=`(?:${o.output}`;U.type="globstar";U.output=`${globstar(i)}${C}|${C}${t})`;U.value+=W;$.output+=o.output+U.output;$.globstar=true;consume(W+Y());push({type:"slash",value:"/",output:""});continue}if(o.type==="bos"&&r[0]==="/"){U.type="globstar";U.value+=W;U.output=`(?:^|${C}|${globstar(i)}${C})`;$.output=U.output;$.globstar=true;consume(W+Y());push({type:"slash",value:"/",output:""});continue}$.output=$.output.slice(0,-U.output.length);U.type="globstar";U.output=globstar(i);U.value+=W;$.output+=U.output;$.globstar=true;consume(W);continue}const o={type:"star",value:W,output:N};if(i.bash===true){o.output=".*?";if(U.type==="bos"||U.type==="slash"){o.output=M+o.output}push(o);continue}if(U&&(U.type==="bracket"||U.type==="paren")&&i.regex===true){o.output=W;push(o);continue}if($.index===$.start||U.type==="slash"||U.type==="dot"){if(U.type==="dot"){$.output+=O;U.output+=O}else if(i.dot===true){$.output+=k;U.output+=k}else{$.output+=M;U.output+=M}if(z()!=="*"){$.output+=D;U.output+=D}}push(o)}while($.brackets>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));$.output=a.escapeLast($.output,"[");decrement("brackets")}while($.parens>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));$.output=a.escapeLast($.output,"(");decrement("parens")}while($.braces>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));$.output=a.escapeLast($.output,"{");decrement("braces")}if(i.strictSlashes!==true&&(U.type==="star"||U.type==="bracket")){push({type:"maybe_slash",value:"",output:`${C}?`})}if($.backtrack===true){$.output="";for(const t of $.tokens){$.output+=t.output!=null?t.output:t.value;if(t.suffix){$.output+=t.suffix}}}return $};parse.fastpaths=(t,r)=>{const i={...r};const l=typeof i.maxLength==="number"?Math.min(u,i.maxLength):u;const h=t.length;if(h>l){throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${l}`)}t=d[t]||t;const p=a.isWindows(r);const{DOT_LITERAL:m,SLASH_LITERAL:g,ONE_CHAR:y,DOTS_SLASH:A,NO_DOT:b,NO_DOTS:v,NO_DOTS_SLASH:w,STAR:E,START_ANCHOR:_}=o.globChars(p);const S=i.dot?v:b;const C=i.dot?w:b;const D=i.capture?"":"?:";const x={negated:false,prefix:""};let R=i.bash===true?".*?":E;if(i.capture){R=`(${R})`}const globstar=t=>{if(t.noglobstar===true)return R;return`(${D}(?:(?!${_}${t.dot?A:m}).)*?)`};const create=t=>{switch(t){case"*":return`${S}${y}${R}`;case".*":return`${m}${y}${R}`;case"*.*":return`${S}${R}${m}${y}${R}`;case"*/*":return`${S}${R}${g}${y}${C}${R}`;case"**":return S+globstar(i);case"**/*":return`(?:${S}${globstar(i)}${g})?${C}${y}${R}`;case"**/*.*":return`(?:${S}${globstar(i)}${g})?${C}${R}${m}${y}${R}`;case"**/.*":return`(?:${S}${globstar(i)}${g})?${m}${y}${R}`;default:{const r=/^(.*?)\.(\w+)$/.exec(t);if(!r)return;const i=create(r[1]);if(!i)return;return i+m+r[2]}}};const O=a.removePrefix(t,x);let k=create(O);if(k&&i.strictSlashes!==true){k+=`${g}?`}return k};t.exports=parse},3322:(t,r,i)=>{const o=i(1017);const a=i(2429);const u=i(2139);const l=i(479);const h=i(6099);const isObject=t=>t&&typeof t==="object"&&!Array.isArray(t);const picomatch=(t,r,i=false)=>{if(Array.isArray(t)){const o=t.map((t=>picomatch(t,r,i)));const arrayMatcher=t=>{for(const r of o){const i=r(t);if(i)return i}return false};return arrayMatcher}const o=isObject(t)&&t.tokens&&t.input;if(t===""||typeof t!=="string"&&!o){throw new TypeError("Expected pattern to be a non-empty string")}const a=r||{};const u=l.isWindows(r);const h=o?picomatch.compileRe(t,r):picomatch.makeRe(t,r,false,true);const p=h.state;delete h.state;let isIgnored=()=>false;if(a.ignore){const t={...r,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(a.ignore,t,i)}const matcher=(i,o=false)=>{const{isMatch:l,match:d,output:m}=picomatch.test(i,h,r,{glob:t,posix:u});const g={glob:t,state:p,regex:h,posix:u,input:i,output:m,match:d,isMatch:l};if(typeof a.onResult==="function"){a.onResult(g)}if(l===false){g.isMatch=false;return o?g:false}if(isIgnored(i)){if(typeof a.onIgnore==="function"){a.onIgnore(g)}g.isMatch=false;return o?g:false}if(typeof a.onMatch==="function"){a.onMatch(g)}return o?g:true};if(i){matcher.state=p}return matcher};picomatch.test=(t,r,i,{glob:o,posix:a}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const u=i||{};const h=u.format||(a?l.toPosixSlashes:null);let p=t===o;let d=p&&h?h(t):t;if(p===false){d=h?h(t):t;p=d===o}if(p===false||u.capture===true){if(u.matchBase===true||u.basename===true){p=picomatch.matchBase(t,r,i,a)}else{p=r.exec(d)}}return{isMatch:Boolean(p),match:p,output:d}};picomatch.matchBase=(t,r,i,a=l.isWindows(i))=>{const u=r instanceof RegExp?r:picomatch.makeRe(r,i);return u.test(o.basename(t))};picomatch.isMatch=(t,r,i)=>picomatch(r,i)(t);picomatch.parse=(t,r)=>{if(Array.isArray(t))return t.map((t=>picomatch.parse(t,r)));return u(t,{...r,fastpaths:false})};picomatch.scan=(t,r)=>a(t,r);picomatch.compileRe=(t,r,i=false,o=false)=>{if(i===true){return t.output}const a=r||{};const u=a.contains?"":"^";const l=a.contains?"":"$";let h=`${u}(?:${t.output})${l}`;if(t&&t.negated===true){h=`^(?!${h}).*$`}const p=picomatch.toRegex(h,r);if(o===true){p.state=t}return p};picomatch.makeRe=(t,r={},i=false,o=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}let a={negated:false,fastpaths:true};if(r.fastpaths!==false&&(t[0]==="."||t[0]==="*")){a.output=u.fastpaths(t,r)}if(!a.output){a=u(t,r)}return picomatch.compileRe(a,r,i,o)};picomatch.toRegex=(t,r)=>{try{const i=r||{};return new RegExp(t,i.flags||(i.nocase?"i":""))}catch(t){if(r&&r.debug===true)throw t;return/$^/}};picomatch.constants=h;t.exports=picomatch},2429:(t,r,i)=>{const o=i(479);const{CHAR_ASTERISK:a,CHAR_AT:u,CHAR_BACKWARD_SLASH:l,CHAR_COMMA:h,CHAR_DOT:p,CHAR_EXCLAMATION_MARK:d,CHAR_FORWARD_SLASH:m,CHAR_LEFT_CURLY_BRACE:g,CHAR_LEFT_PARENTHESES:y,CHAR_LEFT_SQUARE_BRACKET:A,CHAR_PLUS:b,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:w,CHAR_RIGHT_PARENTHESES:E,CHAR_RIGHT_SQUARE_BRACKET:_}=i(6099);const isPathSeparator=t=>t===m||t===l;const depth=t=>{if(t.isPrefix!==true){t.depth=t.isGlobstar?Infinity:1}};const scan=(t,r)=>{const i=r||{};const S=t.length-1;const C=i.parts===true||i.scanToEnd===true;const D=[];const x=[];const R=[];let O=t;let k=-1;let P=0;let T=0;let L=false;let I=false;let M=false;let B=false;let N=false;let $=false;let j=false;let H=false;let G=false;let U=false;let W=0;let z;let Y;let V={value:"",depth:0,isGlob:false};const eos=()=>k>=S;const peek=()=>O.charCodeAt(k+1);const advance=()=>{z=Y;return O.charCodeAt(++k)};while(k<S){Y=advance();let t;if(Y===l){j=V.backslashes=true;Y=advance();if(Y===g){$=true}continue}if($===true||Y===g){W++;while(eos()!==true&&(Y=advance())){if(Y===l){j=V.backslashes=true;advance();continue}if(Y===g){W++;continue}if($!==true&&Y===p&&(Y=advance())===p){L=V.isBrace=true;M=V.isGlob=true;U=true;if(C===true){continue}break}if($!==true&&Y===h){L=V.isBrace=true;M=V.isGlob=true;U=true;if(C===true){continue}break}if(Y===w){W--;if(W===0){$=false;L=V.isBrace=true;U=true;break}}}if(C===true){continue}break}if(Y===m){D.push(k);x.push(V);V={value:"",depth:0,isGlob:false};if(U===true)continue;if(z===p&&k===P+1){P+=2;continue}T=k+1;continue}if(i.noext!==true){const t=Y===b||Y===u||Y===a||Y===v||Y===d;if(t===true&&peek()===y){M=V.isGlob=true;B=V.isExtglob=true;U=true;if(Y===d&&k===P){G=true}if(C===true){while(eos()!==true&&(Y=advance())){if(Y===l){j=V.backslashes=true;Y=advance();continue}if(Y===E){M=V.isGlob=true;U=true;break}}continue}break}}if(Y===a){if(z===a)N=V.isGlobstar=true;M=V.isGlob=true;U=true;if(C===true){continue}break}if(Y===v){M=V.isGlob=true;U=true;if(C===true){continue}break}if(Y===A){while(eos()!==true&&(t=advance())){if(t===l){j=V.backslashes=true;advance();continue}if(t===_){I=V.isBracket=true;M=V.isGlob=true;U=true;break}}if(C===true){continue}break}if(i.nonegate!==true&&Y===d&&k===P){H=V.negated=true;P++;continue}if(i.noparen!==true&&Y===y){M=V.isGlob=true;if(C===true){while(eos()!==true&&(Y=advance())){if(Y===y){j=V.backslashes=true;Y=advance();continue}if(Y===E){U=true;break}}continue}break}if(M===true){U=true;if(C===true){continue}break}}if(i.noext===true){B=false;M=false}let Q=O;let K="";let X="";if(P>0){K=O.slice(0,P);O=O.slice(P);T-=P}if(Q&&M===true&&T>0){Q=O.slice(0,T);X=O.slice(T)}else if(M===true){Q="";X=O}else{Q=O}if(Q&&Q!==""&&Q!=="/"&&Q!==O){if(isPathSeparator(Q.charCodeAt(Q.length-1))){Q=Q.slice(0,-1)}}if(i.unescape===true){if(X)X=o.removeBackslashes(X);if(Q&&j===true){Q=o.removeBackslashes(Q)}}const q={prefix:K,input:t,start:P,base:Q,glob:X,isBrace:L,isBracket:I,isGlob:M,isExtglob:B,isGlobstar:N,negated:H,negatedExtglob:G};if(i.tokens===true){q.maxDepth=0;if(!isPathSeparator(Y)){x.push(V)}q.tokens=x}if(i.parts===true||i.tokens===true){let r;for(let o=0;o<D.length;o++){const a=r?r+1:P;const u=D[o];const l=t.slice(a,u);if(i.tokens){if(o===0&&P!==0){x[o].isPrefix=true;x[o].value=K}else{x[o].value=l}depth(x[o]);q.maxDepth+=x[o].depth}if(o!==0||l!==""){R.push(l)}r=u}if(r&&r+1<t.length){const o=t.slice(r+1);R.push(o);if(i.tokens){x[x.length-1].value=o;depth(x[x.length-1]);q.maxDepth+=x[x.length-1].depth}}q.slashes=D;q.parts=R}return q};t.exports=scan},479:(t,r,i)=>{const o=i(1017);const a=process.platform==="win32";const{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:l,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:p}=i(6099);r.isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);r.hasRegexChars=t=>h.test(t);r.isRegexChar=t=>t.length===1&&r.hasRegexChars(t);r.escapeRegex=t=>t.replace(p,"\\$1");r.toPosixSlashes=t=>t.replace(u,"/");r.removeBackslashes=t=>t.replace(l,(t=>t==="\\"?"":t));r.supportsLookbehinds=()=>{const t=process.version.slice(1).split(".").map(Number);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false};r.isWindows=t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return a===true||o.sep==="\\"};r.escapeLast=(t,i,o)=>{const a=t.lastIndexOf(i,o);if(a===-1)return t;if(t[a-1]==="\\")return r.escapeLast(t,i,a-1);return`${t.slice(0,a)}\\${t.slice(a)}`};r.removePrefix=(t,r={})=>{let i=t;if(i.startsWith("./")){i=i.slice(2);r.prefix="./"}return i};r.wrapOutput=(t,r={},i={})=>{const o=i.contains?"":"^";const a=i.contains?"":"$";let u=`${o}(?:${t})${a}`;if(r.negated===true){u=`(?:^(?!${u}).*$)`}return u}},1861:(t,r,i)=>{
77
77
  /*!
78
78
  * to-regex-range <https://github.com/micromatch/to-regex-range>
79
79
  *
@@ -84,7 +84,7 @@ const o=i(5680);const toRegexRange=(t,r,i)=>{if(o(t)===false){throw new TypeErro
84
84
  /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
85
85
  t.exports=runParallel;const o=i(3135);function runParallel(t,r){let i,a,u;let l=true;if(Array.isArray(t)){i=[];a=t.length}else{u=Object.keys(t);i={};a=u.length}function done(t){function end(){if(r)r(t,i);r=null}if(l)o(end);else end()}function each(t,r,o){i[t]=o;if(--a===0||r){done(r)}}if(!a){done(null)}else if(u){u.forEach((function(r){t[r]((function(t,i){each(r,t,i)}))}))}else{t.forEach((function(t,r){t((function(t,i){each(r,t,i)}))}))}l=false}},3118:(t,r,i)=>{
86
86
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
87
- var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){t.exports=o}else{copyProps(o,r);r.Buffer=SafeBuffer}function SafeBuffer(t,r,i){return a(t,r,i)}SafeBuffer.prototype=Object.create(a.prototype);copyProps(a,SafeBuffer);SafeBuffer.from=function(t,r,i){if(typeof t==="number"){throw new TypeError("Argument must not be a number")}return a(t,r,i)};SafeBuffer.alloc=function(t,r,i){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}var o=a(t);if(r!==undefined){if(typeof i==="string"){o.fill(r,i)}else{o.fill(r)}}else{o.fill(0)}return o};SafeBuffer.allocUnsafe=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return a(t)};SafeBuffer.allocUnsafeSlow=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return o.SlowBuffer(t)}},1790:(t,r,i)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(t,r){r=a(r);if(t instanceof Comparator){if(t.loose===!!r.loose){return t}else{t=t.value}}t=t.trim().split(/\s+/).join(" ");p("comparator",t,r);this.options=r;this.loose=!!r.loose;this.parse(t);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}p("comp",this)}parse(t){const r=this.options.loose?u[l.COMPARATORLOOSE]:u[l.COMPARATOR];const i=t.match(r);if(!i){throw new TypeError(`Invalid comparator: ${t}`)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=o}else{this.semver=new d(i[2],this.options.loose)}}toString(){return this.value}test(t){p("Comparator.test",t,this.options.loose);if(this.semver===o||t===o){return true}if(typeof t==="string"){try{t=new d(t,this.options)}catch(t){return false}}return h(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new m(t.value,r).test(this.value)}else if(t.operator===""){if(t.value===""){return true}return new m(this.value,r).test(t.semver)}r=a(r);if(r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")){return false}if(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&t.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&t.operator.startsWith("<")){return true}if(this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")){return true}if(h(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")){return true}if(h(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")){return true}return false}}t.exports=Comparator;const a=i(6772);const{safeRe:u,t:l}=i(4063);const h=i(8801);const p=i(3619);const d=i(1490);const m=i(5287)},5287:(t,r,i)=>{const o=/\s+/g;class Range{constructor(t,r){r=l(r);if(t instanceof Range){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{return new Range(t.raw,r)}}if(t instanceof h){this.raw=t.value;this.set=[[t]];this.formatted=undefined;return this}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=t.trim().replace(o," ");this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const t=this.set[0];this.set=this.set.filter((t=>!isNullSet(t[0])));if(this.set.length===0){this.set=[t]}else if(this.set.length>1){for(const t of this.set){if(t.length===1&&isAny(t[0])){this.set=[t];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let t=0;t<this.set.length;t++){if(t>0){this.formatted+="||"}const r=this.set[t];for(let t=0;t<r.length;t++){if(t>0){this.formatted+=" "}this.formatted+=r[t].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){const r=(this.options.includePrerelease&&v)|(this.options.loose&&E);const i=r+":"+t;const o=u.get(i);if(o){return o}const a=this.options.loose;const l=a?m[g.HYPHENRANGELOOSE]:m[g.HYPHENRANGE];t=t.replace(l,hyphenReplace(this.options.includePrerelease));p("hyphen replace",t);t=t.replace(m[g.COMPARATORTRIM],y);p("comparator trim",t);t=t.replace(m[g.TILDETRIM],A);p("tilde trim",t);t=t.replace(m[g.CARETTRIM],b);p("caret trim",t);let d=t.split(" ").map((t=>parseComparator(t,this.options))).join(" ").split(/\s+/).map((t=>replaceGTE0(t,this.options)));if(a){d=d.filter((t=>{p("loose invalid filter",t,this.options);return!!t.match(m[g.COMPARATORLOOSE])}))}p("range list",d);const w=new Map;const _=d.map((t=>new h(t,this.options)));for(const t of _){if(isNullSet(t)){return[t]}w.set(t.value,t)}if(w.size>1&&w.has("")){w.delete("")}const S=[...w.values()];u.set(i,S);return S}intersects(t,r){if(!(t instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((i=>isSatisfiable(i,r)&&t.set.some((t=>isSatisfiable(t,r)&&i.every((i=>t.every((t=>i.intersects(t,r)))))))))}test(t){if(!t){return false}if(typeof t==="string"){try{t=new d(t,this.options)}catch(t){return false}}for(let r=0;r<this.set.length;r++){if(testSet(this.set[r],t,this.options)){return true}}return false}}t.exports=Range;const a=i(1191);const u=new a;const l=i(6772);const h=i(1790);const p=i(3619);const d=i(1490);const{safeRe:m,t:g,comparatorTrimReplace:y,tildeTrimReplace:A,caretTrimReplace:b}=i(4063);const{FLAG_INCLUDE_PRERELEASE:v,FLAG_LOOSE:E}=i(9073);const isNullSet=t=>t.value==="<0.0.0-0";const isAny=t=>t.value==="";const isSatisfiable=(t,r)=>{let i=true;const o=t.slice();let a=o.pop();while(i&&o.length){i=o.every((t=>a.intersects(t,r)));a=o.pop()}return i};const parseComparator=(t,r)=>{p("comp",t,r);t=replaceCarets(t,r);p("caret",t);t=replaceTildes(t,r);p("tildes",t);t=replaceXRanges(t,r);p("xrange",t);t=replaceStars(t,r);p("stars",t);return t};const isX=t=>!t||t.toLowerCase()==="x"||t==="*";const replaceTildes=(t,r)=>t.trim().split(/\s+/).map((t=>replaceTilde(t,r))).join(" ");const replaceTilde=(t,r)=>{const i=r.loose?m[g.TILDELOOSE]:m[g.TILDE];return t.replace(i,((r,i,o,a,u)=>{p("tilde",t,r,i,o,a,u);let l;if(isX(i)){l=""}else if(isX(o)){l=`>=${i}.0.0 <${+i+1}.0.0-0`}else if(isX(a)){l=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`}else if(u){p("replaceTilde pr",u);l=`>=${i}.${o}.${a}-${u} <${i}.${+o+1}.0-0`}else{l=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`}p("tilde return",l);return l}))};const replaceCarets=(t,r)=>t.trim().split(/\s+/).map((t=>replaceCaret(t,r))).join(" ");const replaceCaret=(t,r)=>{p("caret",t,r);const i=r.loose?m[g.CARETLOOSE]:m[g.CARET];const o=r.includePrerelease?"-0":"";return t.replace(i,((r,i,a,u,l)=>{p("caret",t,r,i,a,u,l);let h;if(isX(i)){h=""}else if(isX(a)){h=`>=${i}.0.0${o} <${+i+1}.0.0-0`}else if(isX(u)){if(i==="0"){h=`>=${i}.${a}.0${o} <${i}.${+a+1}.0-0`}else{h=`>=${i}.${a}.0${o} <${+i+1}.0.0-0`}}else if(l){p("replaceCaret pr",l);if(i==="0"){if(a==="0"){h=`>=${i}.${a}.${u}-${l} <${i}.${a}.${+u+1}-0`}else{h=`>=${i}.${a}.${u}-${l} <${i}.${+a+1}.0-0`}}else{h=`>=${i}.${a}.${u}-${l} <${+i+1}.0.0-0`}}else{p("no pr");if(i==="0"){if(a==="0"){h=`>=${i}.${a}.${u}${o} <${i}.${a}.${+u+1}-0`}else{h=`>=${i}.${a}.${u}${o} <${i}.${+a+1}.0-0`}}else{h=`>=${i}.${a}.${u} <${+i+1}.0.0-0`}}p("caret return",h);return h}))};const replaceXRanges=(t,r)=>{p("replaceXRanges",t,r);return t.split(/\s+/).map((t=>replaceXRange(t,r))).join(" ")};const replaceXRange=(t,r)=>{t=t.trim();const i=r.loose?m[g.XRANGELOOSE]:m[g.XRANGE];return t.replace(i,((i,o,a,u,l,h)=>{p("xRange",t,i,o,a,u,l,h);const d=isX(a);const m=d||isX(u);const g=m||isX(l);const y=g;if(o==="="&&y){o=""}h=r.includePrerelease?"-0":"";if(d){if(o===">"||o==="<"){i="<0.0.0-0"}else{i="*"}}else if(o&&y){if(m){u=0}l=0;if(o===">"){o=">=";if(m){a=+a+1;u=0;l=0}else{u=+u+1;l=0}}else if(o==="<="){o="<";if(m){a=+a+1}else{u=+u+1}}if(o==="<"){h="-0"}i=`${o+a}.${u}.${l}${h}`}else if(m){i=`>=${a}.0.0${h} <${+a+1}.0.0-0`}else if(g){i=`>=${a}.${u}.0${h} <${a}.${+u+1}.0-0`}p("xRange return",i);return i}))};const replaceStars=(t,r)=>{p("replaceStars",t,r);return t.trim().replace(m[g.STAR],"")};const replaceGTE0=(t,r)=>{p("replaceGTE0",t,r);return t.trim().replace(m[r.includePrerelease?g.GTE0PRE:g.GTE0],"")};const hyphenReplace=t=>(r,i,o,a,u,l,h,p,d,m,g,y)=>{if(isX(o)){i=""}else if(isX(a)){i=`>=${o}.0.0${t?"-0":""}`}else if(isX(u)){i=`>=${o}.${a}.0${t?"-0":""}`}else if(l){i=`>=${i}`}else{i=`>=${i}${t?"-0":""}`}if(isX(d)){p=""}else if(isX(m)){p=`<${+d+1}.0.0-0`}else if(isX(g)){p=`<${d}.${+m+1}.0-0`}else if(y){p=`<=${d}.${m}.${g}-${y}`}else if(t){p=`<${d}.${m}.${+g+1}-0`}else{p=`<=${p}`}return`${i} ${p}`.trim()};const testSet=(t,r,i)=>{for(let i=0;i<t.length;i++){if(!t[i].test(r)){return false}}if(r.prerelease.length&&!i.includePrerelease){for(let i=0;i<t.length;i++){p(t[i].semver);if(t[i].semver===h.ANY){continue}if(t[i].semver.prerelease.length>0){const o=t[i].semver;if(o.major===r.major&&o.minor===r.minor&&o.patch===r.patch){return true}}}return false}return true}},1490:(t,r,i)=>{const o=i(3619);const{MAX_LENGTH:a,MAX_SAFE_INTEGER:u}=i(9073);const{safeRe:l,t:h}=i(4063);const p=i(6772);const{compareIdentifiers:d}=i(8587);class SemVer{constructor(t,r){r=p(r);if(t instanceof SemVer){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{t=t.version}}else if(typeof t!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`)}if(t.length>a){throw new TypeError(`version is longer than ${a} characters`)}o("SemVer",t,r);this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;const i=t.trim().match(r.loose?l[h.LOOSE]:l[h.FULL]);if(!i){throw new TypeError(`Invalid Version: ${t}`)}this.raw=t;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>u||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>u||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>u||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const r=+t;if(r>=0&&r<u){return r}}return t}))}this.build=i[5]?i[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(t){o("SemVer.compare",this.version,this.options,t);if(!(t instanceof SemVer)){if(typeof t==="string"&&t===this.version){return 0}t=new SemVer(t,this.options)}if(t.version===this.version){return 0}return this.compareMain(t)||this.comparePre(t)}compareMain(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}return d(this.major,t.major)||d(this.minor,t.minor)||d(this.patch,t.patch)}comparePre(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}if(this.prerelease.length&&!t.prerelease.length){return-1}else if(!this.prerelease.length&&t.prerelease.length){return 1}else if(!this.prerelease.length&&!t.prerelease.length){return 0}let r=0;do{const i=this.prerelease[r];const a=t.prerelease[r];o("prerelease compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return d(i,a)}}while(++r)}compareBuild(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}let r=0;do{const i=this.build[r];const a=t.build[r];o("build compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return d(i,a)}}while(++r)}inc(t,r,i){switch(t){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0;this.inc("patch",r,i);this.inc("pre",r,i);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",r,i)}this.inc("pre",r,i);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const t=Number(i)?1:0;if(!r&&i===false){throw new Error("invalid increment argument: identifier is empty")}if(this.prerelease.length===0){this.prerelease=[t]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(r===this.prerelease.join(".")&&i===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(t)}}if(r){let o=[r,t];if(i===false){o=[r]}if(d(this.prerelease[0],r)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${t}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}t.exports=SemVer},7876:(t,r,i)=>{const o=i(8257);const clean=(t,r)=>{const i=o(t.trim().replace(/^[=v]+/,""),r);return i?i.version:null};t.exports=clean},8801:(t,r,i)=>{const o=i(1561);const a=i(8671);const u=i(3473);const l=i(2967);const h=i(6762);const p=i(973);const cmp=(t,r,i,d)=>{switch(r){case"===":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t===i;case"!==":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t!==i;case"":case"=":case"==":return o(t,i,d);case"!=":return a(t,i,d);case">":return u(t,i,d);case">=":return l(t,i,d);case"<":return h(t,i,d);case"<=":return p(t,i,d);default:throw new TypeError(`Invalid operator: ${r}`)}};t.exports=cmp},6899:(t,r,i)=>{const o=i(1490);const a=i(8257);const{safeRe:u,t:l}=i(4063);const coerce=(t,r)=>{if(t instanceof o){return t}if(typeof t==="number"){t=String(t)}if(typeof t!=="string"){return null}r=r||{};let i=null;if(!r.rtl){i=t.match(r.includePrerelease?u[l.COERCEFULL]:u[l.COERCE])}else{const o=r.includePrerelease?u[l.COERCERTLFULL]:u[l.COERCERTL];let a;while((a=o.exec(t))&&(!i||i.index+i[0].length!==t.length)){if(!i||a.index+a[0].length!==i.index+i[0].length){i=a}o.lastIndex=a.index+a[1].length+a[2].length}o.lastIndex=-1}if(i===null){return null}const h=i[2];const p=i[3]||"0";const d=i[4]||"0";const m=r.includePrerelease&&i[5]?`-${i[5]}`:"";const g=r.includePrerelease&&i[6]?`+${i[6]}`:"";return a(`${h}.${p}.${d}${m}${g}`,r)};t.exports=coerce},7375:(t,r,i)=>{const o=i(1490);const compareBuild=(t,r,i)=>{const a=new o(t,i);const u=new o(r,i);return a.compare(u)||a.compareBuild(u)};t.exports=compareBuild},8186:(t,r,i)=>{const o=i(4905);const compareLoose=(t,r)=>o(t,r,true);t.exports=compareLoose},4905:(t,r,i)=>{const o=i(1490);const compare=(t,r,i)=>new o(t,i).compare(new o(r,i));t.exports=compare},3272:(t,r,i)=>{const o=i(8257);const diff=(t,r)=>{const i=o(t,null,true);const a=o(r,null,true);const u=i.compare(a);if(u===0){return null}const l=u>0;const h=l?i:a;const p=l?a:i;const d=!!h.prerelease.length;const m=!!p.prerelease.length;if(m&&!d){if(!p.patch&&!p.minor){return"major"}if(h.patch){return"patch"}if(h.minor){return"minor"}return"major"}const g=d?"pre":"";if(i.major!==a.major){return g+"major"}if(i.minor!==a.minor){return g+"minor"}if(i.patch!==a.patch){return g+"patch"}return"prerelease"};t.exports=diff},1561:(t,r,i)=>{const o=i(4905);const eq=(t,r,i)=>o(t,r,i)===0;t.exports=eq},3473:(t,r,i)=>{const o=i(4905);const gt=(t,r,i)=>o(t,r,i)>0;t.exports=gt},2967:(t,r,i)=>{const o=i(4905);const gte=(t,r,i)=>o(t,r,i)>=0;t.exports=gte},5009:(t,r,i)=>{const o=i(1490);const inc=(t,r,i,a,u)=>{if(typeof i==="string"){u=a;a=i;i=undefined}try{return new o(t instanceof o?t.version:t,i).inc(r,a,u).version}catch(t){return null}};t.exports=inc},6762:(t,r,i)=>{const o=i(4905);const lt=(t,r,i)=>o(t,r,i)<0;t.exports=lt},973:(t,r,i)=>{const o=i(4905);const lte=(t,r,i)=>o(t,r,i)<=0;t.exports=lte},9799:(t,r,i)=>{const o=i(1490);const major=(t,r)=>new o(t,r).major;t.exports=major},7600:(t,r,i)=>{const o=i(1490);const minor=(t,r)=>new o(t,r).minor;t.exports=minor},8671:(t,r,i)=>{const o=i(4905);const neq=(t,r,i)=>o(t,r,i)!==0;t.exports=neq},8257:(t,r,i)=>{const o=i(1490);const parse=(t,r,i=false)=>{if(t instanceof o){return t}try{return new o(t,r)}catch(t){if(!i){return null}throw t}};t.exports=parse},2112:(t,r,i)=>{const o=i(1490);const patch=(t,r)=>new o(t,r).patch;t.exports=patch},5094:(t,r,i)=>{const o=i(8257);const prerelease=(t,r)=>{const i=o(t,r);return i&&i.prerelease.length?i.prerelease:null};t.exports=prerelease},6110:(t,r,i)=>{const o=i(4905);const rcompare=(t,r,i)=>o(r,t,i);t.exports=rcompare},4550:(t,r,i)=>{const o=i(7375);const rsort=(t,r)=>t.sort(((t,i)=>o(i,t,r)));t.exports=rsort},1495:(t,r,i)=>{const o=i(5287);const satisfies=(t,r,i)=>{try{r=new o(r,i)}catch(t){return false}return r.test(t)};t.exports=satisfies},6034:(t,r,i)=>{const o=i(7375);const sort=(t,r)=>t.sort(((t,i)=>o(t,i,r)));t.exports=sort},3863:(t,r,i)=>{const o=i(8257);const valid=(t,r)=>{const i=o(t,r);return i?i.version:null};t.exports=valid},7546:(t,r,i)=>{const o=i(4063);const a=i(9073);const u=i(1490);const l=i(8587);const h=i(8257);const p=i(3863);const d=i(7876);const m=i(5009);const g=i(3272);const y=i(9799);const A=i(7600);const b=i(2112);const v=i(5094);const E=i(4905);const w=i(6110);const _=i(8186);const S=i(7375);const C=i(6034);const D=i(4550);const x=i(3473);const R=i(6762);const O=i(1561);const k=i(8671);const P=i(2967);const T=i(973);const L=i(8801);const I=i(6899);const M=i(1790);const B=i(5287);const N=i(1495);const $=i(1976);const j=i(1706);const H=i(7095);const G=i(507);const U=i(8029);const W=i(7714);const z=i(9104);const Y=i(5072);const V=i(9057);const Q=i(9550);const K=i(8693);t.exports={parse:h,valid:p,clean:d,inc:m,diff:g,major:y,minor:A,patch:b,prerelease:v,compare:E,rcompare:w,compareLoose:_,compareBuild:S,sort:C,rsort:D,gt:x,lt:R,eq:O,neq:k,gte:P,lte:T,cmp:L,coerce:I,Comparator:M,Range:B,satisfies:N,toComparators:$,maxSatisfying:j,minSatisfying:H,minVersion:G,validRange:U,outside:W,gtr:z,ltr:Y,intersects:V,simplifyRange:Q,subset:K,SemVer:u,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:l.compareIdentifiers,rcompareIdentifiers:l.rcompareIdentifiers}},9073:t=>{const r="2.0.0";const i=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const a=16;const u=i-6;const l=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:i,MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:u,MAX_SAFE_INTEGER:o,RELEASE_TYPES:l,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},3619:t=>{const r=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=r},8587:t=>{const r=/^[0-9]+$/;const compareIdentifiers=(t,i)=>{const o=r.test(t);const a=r.test(i);if(o&&a){t=+t;i=+i}return t===i?0:o&&!a?-1:a&&!o?1:t<i?-1:1};const rcompareIdentifiers=(t,r)=>compareIdentifiers(r,t);t.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1191:t=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(t){const r=this.map.get(t);if(r===undefined){return undefined}else{this.map.delete(t);this.map.set(t,r);return r}}delete(t){return this.map.delete(t)}set(t,r){const i=this.delete(t);if(!i&&r!==undefined){if(this.map.size>=this.max){const t=this.map.keys().next().value;this.delete(t)}this.map.set(t,r)}return this}}t.exports=LRUCache},6772:t=>{const r=Object.freeze({loose:true});const i=Object.freeze({});const parseOptions=t=>{if(!t){return i}if(typeof t!=="object"){return r}return t};t.exports=parseOptions},4063:(t,r,i)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:u}=i(9073);const l=i(3619);r=t.exports={};const h=r.re=[];const p=r.safeRe=[];const d=r.src=[];const m=r.t={};let g=0;const y="[a-zA-Z0-9-]";const A=[["\\s",1],["\\d",u],[y,a]];const makeSafeRegex=t=>{for(const[r,i]of A){t=t.split(`${r}*`).join(`${r}{0,${i}}`).split(`${r}+`).join(`${r}{1,${i}}`)}return t};const createToken=(t,r,i)=>{const o=makeSafeRegex(r);const a=g++;l(t,a,r);m[t]=a;d[a]=r;h[a]=new RegExp(r,i?"g":undefined);p[a]=new RegExp(o,i?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`);createToken("MAINVERSION",`(${d[m.NUMERICIDENTIFIER]})\\.`+`(${d[m.NUMERICIDENTIFIER]})\\.`+`(${d[m.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${d[m.NUMERICIDENTIFIERLOOSE]})\\.`+`(${d[m.NUMERICIDENTIFIERLOOSE]})\\.`+`(${d[m.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${d[m.NUMERICIDENTIFIER]}|${d[m.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${d[m.NUMERICIDENTIFIERLOOSE]}|${d[m.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${d[m.PRERELEASEIDENTIFIER]}(?:\\.${d[m.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${d[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[m.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${y}+`);createToken("BUILD",`(?:\\+(${d[m.BUILDIDENTIFIER]}(?:\\.${d[m.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${d[m.MAINVERSION]}${d[m.PRERELEASE]}?${d[m.BUILD]}?`);createToken("FULL",`^${d[m.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${d[m.MAINVERSIONLOOSE]}${d[m.PRERELEASELOOSE]}?${d[m.BUILD]}?`);createToken("LOOSE",`^${d[m.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${d[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${d[m.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${d[m.XRANGEIDENTIFIER]})`+`(?:\\.(${d[m.XRANGEIDENTIFIER]})`+`(?:\\.(${d[m.XRANGEIDENTIFIER]})`+`(?:${d[m.PRERELEASE]})?${d[m.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${d[m.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${d[m.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${d[m.XRANGEIDENTIFIERLOOSE]})`+`(?:${d[m.PRERELEASELOOSE]})?${d[m.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${d[m.GTLT]}\\s*${d[m.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${d[m.GTLT]}\\s*${d[m.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${d[m.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",d[m.COERCEPLAIN]+`(?:${d[m.PRERELEASE]})?`+`(?:${d[m.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",d[m.COERCE],true);createToken("COERCERTLFULL",d[m.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${d[m.LONETILDE]}\\s+`,true);r.tildeTrimReplace="$1~";createToken("TILDE",`^${d[m.LONETILDE]}${d[m.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${d[m.LONETILDE]}${d[m.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${d[m.LONECARET]}\\s+`,true);r.caretTrimReplace="$1^";createToken("CARET",`^${d[m.LONECARET]}${d[m.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${d[m.LONECARET]}${d[m.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${d[m.GTLT]}\\s*(${d[m.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${d[m.GTLT]}\\s*(${d[m.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${d[m.GTLT]}\\s*(${d[m.LOOSEPLAIN]}|${d[m.XRANGEPLAIN]})`,true);r.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${d[m.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${d[m.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${d[m.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${d[m.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9104:(t,r,i)=>{const o=i(7714);const gtr=(t,r,i)=>o(t,r,">",i);t.exports=gtr},9057:(t,r,i)=>{const o=i(5287);const intersects=(t,r,i)=>{t=new o(t,i);r=new o(r,i);return t.intersects(r,i)};t.exports=intersects},5072:(t,r,i)=>{const o=i(7714);const ltr=(t,r,i)=>o(t,r,"<",i);t.exports=ltr},1706:(t,r,i)=>{const o=i(1490);const a=i(5287);const maxSatisfying=(t,r,i)=>{let u=null;let l=null;let h=null;try{h=new a(r,i)}catch(t){return null}t.forEach((t=>{if(h.test(t)){if(!u||l.compare(t)===-1){u=t;l=new o(u,i)}}}));return u};t.exports=maxSatisfying},7095:(t,r,i)=>{const o=i(1490);const a=i(5287);const minSatisfying=(t,r,i)=>{let u=null;let l=null;let h=null;try{h=new a(r,i)}catch(t){return null}t.forEach((t=>{if(h.test(t)){if(!u||l.compare(t)===1){u=t;l=new o(u,i)}}}));return u};t.exports=minSatisfying},507:(t,r,i)=>{const o=i(1490);const a=i(5287);const u=i(3473);const minVersion=(t,r)=>{t=new a(t,r);let i=new o("0.0.0");if(t.test(i)){return i}i=new o("0.0.0-0");if(t.test(i)){return i}i=null;for(let r=0;r<t.set.length;++r){const a=t.set[r];let l=null;a.forEach((t=>{const r=new o(t.semver.version);switch(t.operator){case">":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!l||u(r,l)){l=r}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}}));if(l&&(!i||u(i,l))){i=l}}if(i&&t.test(i)){return i}return null};t.exports=minVersion},7714:(t,r,i)=>{const o=i(1490);const a=i(1790);const{ANY:u}=a;const l=i(5287);const h=i(1495);const p=i(3473);const d=i(6762);const m=i(973);const g=i(2967);const outside=(t,r,i,y)=>{t=new o(t,y);r=new l(r,y);let A,b,v,E,w;switch(i){case">":A=p;b=m;v=d;E=">";w=">=";break;case"<":A=d;b=g;v=p;E="<";w="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(h(t,r,y)){return false}for(let i=0;i<r.set.length;++i){const o=r.set[i];let l=null;let h=null;o.forEach((t=>{if(t.semver===u){t=new a(">=0.0.0")}l=l||t;h=h||t;if(A(t.semver,l.semver,y)){l=t}else if(v(t.semver,h.semver,y)){h=t}}));if(l.operator===E||l.operator===w){return false}if((!h.operator||h.operator===E)&&b(t,h.semver)){return false}else if(h.operator===w&&v(t,h.semver)){return false}}return true};t.exports=outside},9550:(t,r,i)=>{const o=i(1495);const a=i(4905);t.exports=(t,r,i)=>{const u=[];let l=null;let h=null;const p=t.sort(((t,r)=>a(t,r,i)));for(const t of p){const a=o(t,r,i);if(a){h=t;if(!l){l=t}}else{if(h){u.push([l,h])}h=null;l=null}}if(l){u.push([l,null])}const d=[];for(const[t,r]of u){if(t===r){d.push(t)}else if(!r&&t===p[0]){d.push("*")}else if(!r){d.push(`>=${t}`)}else if(t===p[0]){d.push(`<=${r}`)}else{d.push(`${t} - ${r}`)}}const m=d.join(" || ");const g=typeof r.raw==="string"?r.raw:String(r);return m.length<g.length?m:r}},8693:(t,r,i)=>{const o=i(5287);const a=i(1790);const{ANY:u}=a;const l=i(1495);const h=i(4905);const subset=(t,r,i={})=>{if(t===r){return true}t=new o(t,i);r=new o(r,i);let a=false;e:for(const o of t.set){for(const t of r.set){const r=simpleSubset(o,t,i);a=a||r!==null;if(r){continue e}}if(a){return false}}return true};const p=[new a(">=0.0.0-0")];const d=[new a(">=0.0.0")];const simpleSubset=(t,r,i)=>{if(t===r){return true}if(t.length===1&&t[0].semver===u){if(r.length===1&&r[0].semver===u){return true}else if(i.includePrerelease){t=p}else{t=d}}if(r.length===1&&r[0].semver===u){if(i.includePrerelease){return true}else{r=d}}const o=new Set;let a,m;for(const r of t){if(r.operator===">"||r.operator===">="){a=higherGT(a,r,i)}else if(r.operator==="<"||r.operator==="<="){m=lowerLT(m,r,i)}else{o.add(r.semver)}}if(o.size>1){return null}let g;if(a&&m){g=h(a.semver,m.semver,i);if(g>0){return null}else if(g===0&&(a.operator!==">="||m.operator!=="<=")){return null}}for(const t of o){if(a&&!l(t,String(a),i)){return null}if(m&&!l(t,String(m),i)){return null}for(const o of r){if(!l(t,String(o),i)){return false}}return true}let y,A;let b,v;let E=m&&!i.includePrerelease&&m.semver.prerelease.length?m.semver:false;let w=a&&!i.includePrerelease&&a.semver.prerelease.length?a.semver:false;if(E&&E.prerelease.length===1&&m.operator==="<"&&E.prerelease[0]===0){E=false}for(const t of r){v=v||t.operator===">"||t.operator===">=";b=b||t.operator==="<"||t.operator==="<=";if(a){if(w){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===w.major&&t.semver.minor===w.minor&&t.semver.patch===w.patch){w=false}}if(t.operator===">"||t.operator===">="){y=higherGT(a,t,i);if(y===t&&y!==a){return false}}else if(a.operator===">="&&!l(a.semver,String(t),i)){return false}}if(m){if(E){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===E.major&&t.semver.minor===E.minor&&t.semver.patch===E.patch){E=false}}if(t.operator==="<"||t.operator==="<="){A=lowerLT(m,t,i);if(A===t&&A!==m){return false}}else if(m.operator==="<="&&!l(m.semver,String(t),i)){return false}}if(!t.operator&&(m||a)&&g!==0){return false}}if(a&&b&&!m&&g!==0){return false}if(m&&v&&!a&&g!==0){return false}if(w||E){return false}return true};const higherGT=(t,r,i)=>{if(!t){return r}const o=h(t.semver,r.semver,i);return o>0?t:o<0?r:r.operator===">"&&t.operator===">="?r:t};const lowerLT=(t,r,i)=>{if(!t){return r}const o=h(t.semver,r.semver,i);return o<0?t:o>0?r:r.operator==="<"&&t.operator==="<="?r:t};t.exports=subset},1976:(t,r,i)=>{const o=i(5287);const toComparators=(t,r)=>new o(t,r).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")));t.exports=toComparators},8029:(t,r,i)=>{const o=i(5287);const validRange=(t,r)=>{try{return new o(t,r).range||"*"}catch(t){return null}};t.exports=validRange},2028:(t,r,i)=>{var o=global.process;const processOk=function(t){return t&&typeof t==="object"&&typeof t.removeListener==="function"&&typeof t.emit==="function"&&typeof t.reallyExit==="function"&&typeof t.listeners==="function"&&typeof t.kill==="function"&&typeof t.pid==="number"&&typeof t.on==="function"};if(!processOk(o)){t.exports=function(){return function(){}}}else{var a=i(9491);var u=i(19);var l=/^win/i.test(o.platform);var h=i(2361);if(typeof h!=="function"){h=h.EventEmitter}var p;if(o.__signal_exit_emitter__){p=o.__signal_exit_emitter__}else{p=o.__signal_exit_emitter__=new h;p.count=0;p.emitted={}}if(!p.infinite){p.setMaxListeners(Infinity);p.infinite=true}t.exports=function(t,r){if(!processOk(global.process)){return function(){}}a.equal(typeof t,"function","a callback must be provided for exit handler");if(y===false){A()}var i="exit";if(r&&r.alwaysLast){i="afterexit"}var remove=function(){p.removeListener(i,t);if(p.listeners("exit").length===0&&p.listeners("afterexit").length===0){d()}};p.on(i,t);return remove};var d=function unload(){if(!y||!processOk(global.process)){return}y=false;u.forEach((function(t){try{o.removeListener(t,g[t])}catch(t){}}));o.emit=E;o.reallyExit=b;p.count-=1};t.exports.unload=d;var m=function emit(t,r,i){if(p.emitted[t]){return}p.emitted[t]=true;p.emit(t,r,i)};var g={};u.forEach((function(t){g[t]=function listener(){if(!processOk(global.process)){return}var r=o.listeners(t);if(r.length===p.count){d();m("exit",null,t);m("afterexit",null,t);if(l&&t==="SIGHUP"){t="SIGINT"}o.kill(o.pid,t)}}}));t.exports.signals=function(){return u};var y=false;var A=function load(){if(y||!processOk(global.process)){return}y=true;p.count+=1;u=u.filter((function(t){try{o.on(t,g[t]);return true}catch(t){return false}}));o.emit=w;o.reallyExit=v};t.exports.load=A;var b=o.reallyExit;var v=function processReallyExit(t){if(!processOk(global.process)){return}o.exitCode=t||0;m("exit",o.exitCode,null);m("afterexit",o.exitCode,null);b.call(o,o.exitCode)};var E=o.emit;var w=function processEmit(t,r){if(t==="exit"&&processOk(global.process)){if(r!==undefined){o.exitCode=r}var i=E.apply(this,arguments);m("exit",o.exitCode,null);m("afterexit",o.exitCode,null);return i}else{return E.apply(this,arguments)}}}},19:t=>{t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},332:t=>{"use strict";const r="";const i=`${r}[`;const o="";const a={to(t,r){if(!r)return`${i}${t+1}G`;return`${i}${r+1};${t+1}H`},move(t,r){let o="";if(t<0)o+=`${i}${-t}D`;else if(t>0)o+=`${i}${t}C`;if(r<0)o+=`${i}${-r}A`;else if(r>0)o+=`${i}${r}B`;return o},up:(t=1)=>`${i}${t}A`,down:(t=1)=>`${i}${t}B`,forward:(t=1)=>`${i}${t}C`,backward:(t=1)=>`${i}${t}D`,nextLine:(t=1)=>`${i}E`.repeat(t),prevLine:(t=1)=>`${i}F`.repeat(t),left:`${i}G`,hide:`${i}?25l`,show:`${i}?25h`,save:`${r}7`,restore:`${r}8`};const u={up:(t=1)=>`${i}S`.repeat(t),down:(t=1)=>`${i}T`.repeat(t)};const l={screen:`${i}2J`,up:(t=1)=>`${i}1J`.repeat(t),down:(t=1)=>`${i}J`.repeat(t),line:`${i}2K`,lineEnd:`${i}K`,lineStart:`${i}1K`,lines(t){let r="";for(let i=0;i<t;i++)r+=this.line+(i<t-1?a.up():"");if(t)r+=a.left;return r}};t.exports={cursor:a,scroll:u,erase:l,beep:o}},5667:(t,r,i)=>{var o={child:i(2081),crypto:i(6113),fs:i(7147),os:i(2037),path:i(1017),process:process,util:i(3837)};function Attempt(t,r){var i=o.process.platform;if(i==="darwin")return Mac(t,r);if(i==="linux")return Linux(t,r);if(i==="win32")return Windows(t,r);r(new Error("Platform not yet supported."))}function EscapeDoubleQuotes(t){if(typeof t!=="string")throw new Error("Expected a string.");return t.replace(/"/g,'\\"')}function Exec(){if(arguments.length<1||arguments.length>3){throw new Error("Wrong number of arguments.")}var t=arguments[0];var r={};var end=function(){};if(typeof t!=="string"){throw new Error("Command should be a string.")}if(arguments.length===2){if(o.util.isObject(arguments[1])){r=arguments[1]}else if(o.util.isFunction(arguments[1])){end=arguments[1]}else{throw new Error("Expected options or callback.")}}else if(arguments.length===3){if(o.util.isObject(arguments[1])){r=arguments[1]}else{throw new Error("Expected options to be an object.")}if(o.util.isFunction(arguments[2])){end=arguments[2]}else{throw new Error("Expected callback to be a function.")}}if(/^sudo/i.test(t)){return end(new Error('Command should not be prefixed with "sudo".'))}if(typeof r.name==="undefined"){var i=o.process.title;if(ValidName(i)){r.name=i}else{return end(new Error("process.title cannot be used as a valid name."))}}else if(!ValidName(r.name)){var a="";a+="options.name must be alphanumeric only ";a+="(spaces are allowed) and <= 70 characters.";return end(new Error(a))}if(typeof r.icns!=="undefined"){if(typeof r.icns!=="string"){return end(new Error("options.icns must be a string if provided."))}else if(r.icns.trim().length===0){return end(new Error("options.icns must not be empty if provided."))}}if(typeof r.env!=="undefined"){if(typeof r.env!=="object"){return end(new Error("options.env must be an object if provided."))}else if(Object.keys(r.env).length===0){return end(new Error("options.env must not be empty if provided."))}else{for(var u in r.env){var l=r.env[u];if(typeof u!=="string"||typeof l!=="string"){return end(new Error("options.env environment variables must be strings."))}if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(u)){return end(new Error("options.env has an invalid environment variable name: "+JSON.stringify(u)))}if(/[\r\n]/.test(l)){return end(new Error("options.env has an invalid environment variable value: "+JSON.stringify(l)))}}}}var h=o.process.platform;if(h!=="darwin"&&h!=="linux"&&h!=="win32"){return end(new Error("Platform not yet supported."))}var p={command:t,options:r,uuid:undefined,path:undefined};Attempt(p,end)}function Linux(t,r){LinuxBinary(t,(function(i,a){if(i)return r(i);var p=[];p.push('cd "'+EscapeDoubleQuotes(o.process.cwd())+'";');for(var d in t.options.env){var m=t.options.env[d];p.push("export "+d+'="'+EscapeDoubleQuotes(m)+'";')}p.push('"'+EscapeDoubleQuotes(a)+'"');if(/kdesudo/i.test(a)){p.push("--comment",'"'+t.options.name+" wants to make changes. "+'Enter your password to allow this."');p.push("-d");p.push("--")}else if(/pkexec/i.test(a)){p.push("--disable-internal-agent")}var g="SUDOPROMPT\n";p.push('/bin/bash -c "echo '+EscapeDoubleQuotes(g.trim())+"; "+EscapeDoubleQuotes(t.command)+'"');p=p.join(" ");o.child.exec(p,{encoding:"utf-8",maxBuffer:h},(function(t,i,o){var a=i&&i.slice(0,g.length)===g;if(a)i=i.slice(g.length);if(t&&!a){if(/No authentication agent found/.test(o)){t.message=l}else{t.message=u}}r(t,i,o)}))}))}function LinuxBinary(t,r){var i=0;var a=["/usr/bin/kdesudo","/usr/bin/pkexec"];function test(){if(i===a.length){return r(new Error("Unable to find pkexec or kdesudo."))}var t=a[i++];o.fs.stat(t,(function(i){if(i){if(i.code==="ENOTDIR")return test();if(i.code==="ENOENT")return test();r(i)}else{r(undefined,t)}}))}test()}function Mac(t,r){var i=o.os.tmpdir();if(!i)return r(new Error("os.tmpdir() not defined."));var a=o.process.env.USER;if(!a)return r(new Error("env['USER'] not defined."));UUID(t,(function(a,u){if(a)return r(a);t.uuid=u;t.path=o.path.join(i,t.uuid,t.options.name+".app");function end(i,a,u){Remove(o.path.dirname(t.path),(function(t){if(i)return r(i);if(t)return r(t);r(undefined,a,u)}))}MacApplet(t,(function(r,i,o){if(r)return end(r,i,o);MacIcon(t,(function(r){if(r)return end(r);MacPropertyList(t,(function(r,i,o){if(r)return end(r,i,o);MacCommand(t,(function(r){if(r)return end(r);MacOpen(t,(function(r,i,o){if(r)return end(r,i,o);MacResult(t,end)}))}))}))}))}))}))}function MacApplet(t,r){var i=o.path.dirname(t.path);o.fs.mkdir(i,(function(u){if(u)return r(u);var l=o.path.join(i,"sudo-prompt-applet.zip");o.fs.writeFile(l,a,"base64",(function(i){if(i)return r(i);var a=[];a.push("/usr/bin/unzip");a.push("-o");a.push('"'+EscapeDoubleQuotes(l)+'"');a.push('-d "'+EscapeDoubleQuotes(t.path)+'"');a=a.join(" ");o.child.exec(a,{encoding:"utf-8"},r)}))}))}function MacCommand(t,r){var i=o.path.join(t.path,"Contents","MacOS","sudo-prompt-command");var a=[];a.push('cd "'+EscapeDoubleQuotes(o.process.cwd())+'"');for(var u in t.options.env){var l=t.options.env[u];a.push("export "+u+'="'+EscapeDoubleQuotes(l)+'"')}a.push(t.command);a=a.join("\n");o.fs.writeFile(i,a,"utf-8",r)}function MacIcon(t,r){if(!t.options.icns)return r();o.fs.readFile(t.options.icns,(function(i,a){if(i)return r(i);var u=o.path.join(t.path,"Contents","Resources","applet.icns");o.fs.writeFile(u,a,r)}))}function MacOpen(t,r){var i=o.path.join(t.path,"Contents","MacOS","applet");var a={cwd:o.path.dirname(i),encoding:"utf-8"};o.child.exec("./"+o.path.basename(i),a,r)}function MacPropertyList(t,r){var i=o.path.join(t.path,"Contents","Info.plist");var a=EscapeDoubleQuotes(i);var u=EscapeDoubleQuotes("CFBundleName");var l=t.options.name+" Password Prompt";if(/'/.test(l)){return r(new Error("Value should not contain single quotes."))}var h=[];h.push("/usr/bin/defaults");h.push("write");h.push('"'+a+'"');h.push('"'+u+'"');h.push("'"+l+"'");h=h.join(" ");o.child.exec(h,{encoding:"utf-8"},r)}function MacResult(t,r){var i=o.path.join(t.path,"Contents","MacOS");o.fs.readFile(o.path.join(i,"code"),"utf-8",(function(a,l){if(a){if(a.code==="ENOENT")return r(new Error(u));r(a)}else{o.fs.readFile(o.path.join(i,"stdout"),"utf-8",(function(a,u){if(a)return r(a);o.fs.readFile(o.path.join(i,"stderr"),"utf-8",(function(i,o){if(i)return r(i);l=parseInt(l.trim(),10);if(l===0){r(undefined,u,o)}else{i=new Error("Command failed: "+t.command+"\n"+o);i.code=l;r(i,u,o)}}))}))}}))}function Remove(t,r){if(typeof t!=="string"||!t.trim()){return r(new Error("Argument path not defined."))}var i=[];if(o.process.platform==="win32"){if(/"/.test(t)){return r(new Error("Argument path cannot contain double-quotes."))}i.push('rmdir /s /q "'+t+'"')}else{i.push("/bin/rm");i.push("-rf");i.push('"'+EscapeDoubleQuotes(o.path.normalize(t))+'"')}i=i.join(" ");o.child.exec(i,{encoding:"utf-8"},r)}function UUID(t,r){o.crypto.randomBytes(256,(function(i,a){if(i)a=Date.now()+""+Math.random();var u=o.crypto.createHash("SHA256");u.update("sudo-prompt-3");u.update(t.options.name);u.update(t.command);u.update(a);var l=u.digest("hex").slice(-32);if(!l||typeof l!=="string"||l.length!==32){return r(new Error("Expected a valid UUID."))}r(undefined,l)}))}function ValidName(t){if(!/^[a-z0-9 ]+$/i.test(t))return false;if(t.trim().length===0)return false;if(t.length>70)return false;return true}function Windows(t,r){var i=o.os.tmpdir();if(!i)return r(new Error("os.tmpdir() not defined."));UUID(t,(function(a,u){if(a)return r(a);t.uuid=u;t.path=o.path.join(i,t.uuid);if(/"/.test(t.path)){return r(new Error("instance.path cannot contain double-quotes."))}t.pathElevate=o.path.join(t.path,"elevate.vbs");t.pathExecute=o.path.join(t.path,"execute.bat");t.pathCommand=o.path.join(t.path,"command.bat");t.pathStdout=o.path.join(t.path,"stdout");t.pathStderr=o.path.join(t.path,"stderr");t.pathStatus=o.path.join(t.path,"status");o.fs.mkdir(t.path,(function(i){if(i)return r(i);function end(i,o,a){Remove(t.path,(function(t){if(i)return r(i);if(t)return r(t);r(undefined,o,a)}))}WindowsWriteExecuteScript(t,(function(r){if(r)return end(r);WindowsWriteCommandScript(t,(function(r){if(r)return end(r);WindowsElevate(t,(function(r,i,o){if(r)return end(r,i,o);WindowsWaitForStatus(t,(function(r){if(r)return end(r);WindowsResult(t,end)}))}))}))}))}))}))}function WindowsElevate(t,r){var i=[];i.push("powershell.exe");i.push("Start-Process");i.push("-FilePath");i.push("\"'"+t.pathExecute.replace(/'/g,"`'")+"'\"");i.push("-WindowStyle hidden");i.push("-Verb runAs");i=i.join(" ");var a=o.child.exec(i,{encoding:"utf-8"},(function(t,i,o){if(t)return r(new Error(u),i,o);r()}));a.stdin.end()}function WindowsResult(t,r){o.fs.readFile(t.pathStatus,"utf-8",(function(i,a){if(i)return r(i);o.fs.readFile(t.pathStdout,"utf-8",(function(i,u){if(i)return r(i);o.fs.readFile(t.pathStderr,"utf-8",(function(i,o){if(i)return r(i);a=parseInt(a.trim(),10);if(a===0){r(undefined,u,o)}else{i=new Error("Command failed: "+t.command+"\r\n"+o);i.code=a;r(i,u,o)}}))}))}))}function WindowsWaitForStatus(t,r){o.fs.stat(t.pathStatus,(function(i,a){if(i&&i.code==="ENOENT"||a.size<2){setTimeout((function(){o.fs.stat(t.pathStdout,(function(i){if(i)return r(new Error(u));WindowsWaitForStatus(t,r)}))}),1e3)}else if(i){r(i)}else{r()}}))}function WindowsWriteCommandScript(t,r){var i=o.process.cwd();if(/"/.test(i)){return r(new Error("process.cwd() cannot contain double-quotes."))}var a=[];a.push("@echo off");a.push("chcp 65001>nul");a.push('cd /d "'+i+'"');for(var u in t.options.env){var l=t.options.env[u];a.push("set "+u+"="+l.replace(/([<>\\|&^])/g,"^$1"))}a.push(t.command);a=a.join("\r\n");o.fs.writeFile(t.pathCommand,a,"utf-8",r)}function WindowsWriteElevateScript(t,r){}function WindowsWriteExecuteScript(t,r){var i=[];i.push("@echo off");i.push('call "'+t.pathCommand+'"'+' > "'+t.pathStdout+'" 2> "'+t.pathStderr+'"');i.push('(echo %ERRORLEVEL%) > "'+t.pathStatus+'"');i=i.join("\r\n");o.fs.writeFile(t.pathExecute,i,"utf-8",r)}t.exports.exec=Exec;var a="UEsDBAoAAAAAAO1YcEcAAAAAAAAAAAAAAAAJABwAQ29udGVudHMvVVQJAAPNnElWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACgeXBHlHaGqKEBAAC+AwAAEwAcAENvbnRlbnRzL0luZm8ucGxpc3RVVAkAA1zWSVYtkRBXdXgLAAEE9QEAAAQUAAAAfZNRb5swFIWfl1/BeA9OpSmqJkqVBCJFop1VyKQ9Ta59S6wa27NNCfv1M0naJWTsEXO+c8+9vo7v97UI3sBYruRdeBPNwgAkVYzL6i7cluvpbXifTOLP6bdV+QNngRbcugBvl/lmFYRThBZaC0AoLdMA55uiDLwHQtljGIQ75/RXhNq2jUiviqiqe6FF2CgNxnW5N5t6IGKOhb7M0f0ijj9lnLpk8il+hS5ZrZeNZAIWQqj2ge+B5YoSwX8T5xEbo17ktc40gIZQCm8glK5BuieovP5Dbp3xHSeZrHyCXYxO3wM+2wNtHHkWMAQP/bkxbkOVXPMxKuK0Dz6CMh+Wv3AwQ9gPM7INU1NtVK3Ha8sXlfoB+m6J6b4fRzv0mkezMf6R1Fe5MbG2VYYF+L+lMaGvpIKy01cOC4zzMazYKeNOQYuDYkjfjMcteCWJa8w/Zi2ugubFA5e8buqisw7qU81ltzB0xx3QC5/TFh7J/e385/zL+7+/wWbR/LwIOl/dvHiCXw03YFfEPJ9dwsWu5sV2kwnod3QoeLeL0eGdJJM/UEsDBAoAAAAAAHSBjkgAAAAAAAAAAAAAAAAPABwAQ29udGVudHMvTWFjT1MvVVQJAAMbpQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACABVHBdH7Dk4KTIIAADIYQAAFQAcAENvbnRlbnRzL01hY09TL2FwcGxldFVUCQADMiPZVVOlD1d1eAsAAQT1AQAABBQAAADtnG9sHEcVwGfti7M1/rONLNVtXHqpzsipis+pHOSWFOzEm25at3XrJI2ozbK+W/suuds79vaSuCKSpaOIxRy1+NSPRPAhlWj7AVRaQCWpTRz+CEo+RSKCCho4K67kVhUyAeV4b3fWt17fXZqKFgHvp8zO3/dmdmfPmtl5L7+8/uPXGWMNELZCaGRMgmjHIlxaBCibdcoGsewCljGCIAiCIAiCIAiCIP7r+M21d67zjb/zEaAdwr1bGHuWMQH2/2wAgqqODj0kf0F+8nGfoFRbJ8p9U0C5g/KRgwEZqZLGfrfwwJx+LP2kVWkelD9zJ2NfBr1nWt2xrhNisxWZ3Ex6MpNSc1Z+soqOO+5i7JMYt7vj9BC5jiZXBwirCT2V1c0qOgZAxwMYt9cbRyxnmUljusa9mKBjGON2tgG/PlXNGyeSRlxNGlOZKjpeBR0KxsFx+MB7VJy5GB46OOSrCLPKfEjrH3/gFry+4zOpuH8sm+VF5srW6ltVjZQ3HVnL3KRDDLsflMSADpyDyjuR0urp6AAdHRgHdOD9iOs6Ypl0OmPUupeecOW19OsQAmn3tzBy4LFH5OED3jz0MbYouM8D460BOdTXCaEF6tsgLkF8GeJPQBj16Rb4PTf5xl2NH4J8a5Vy1N3F3OcZzefMaCo5GeVTuJ2P4cUf/aH5qbbP73/utpfeevdbLzwfYfy+Q80woGan/1E+ljo/703g77IaOJY479t5rqFLDag9OjaTs/R0dCQ5aWrmTHS/qaX1ExnzWC66L2PqY7p5PBnTc71TXnn0sG7mkhkjFx3a0IL30e/rQxB+EXL68J4BBLe73r298DySk5tlGPtJY1BmOhZTc727PBH2Ke+ZhF35nTyP80oQBEEQBPFRcJTZVwpvrxZWpLmJkN0VKT4q2iORUGFBOPfnBuFX9nhELOG67f1D9pWxpw4XVrrmTklz+ZY5Wfwurm/t3ffi9cE+uM41vYbbj2fP5kNXt9sXiopwVRj6xhPlr160mttfuVi4Fs2vXv2rfc5u7UeZfxQ+y4pPh/JrpyUUBjmrofzmadGXKf0eui7KK/ZwJLQUiuRAe+mLUFQ+tFKUV3npd7AU9ytz8iqIiXYoUnoBsqdxDbXk3CXcRov9lYhoW5EQjBxb4NoSY9iQsvn5+QSuusrduAybL3eHIIIbLqyIS9CHlY3loB8rldVKuLfyOsE1+a6zhUVxYsFp3Amqz8tr7Lz8dza1JF8TmC3/syivYVtcfxcWOycWQDvuLcrdnc61y7mGnWsErgmsXDbK5TKkscnypJvGhsuH3TQ2X37YTaPQ8ucw7W6t1LR2TFfjekqb0SGTiedTOmz0klZSSyWf0U01pqVSufXGmThsjs20OpU3Yrjuxbnu4u+GP8b1LO6PcX2L4Q6+v8Q07u9aQFLy71Ckt54TIfjfNdzfDkMYhTAOIXHXh39vCYIgCIIgCIIgCIL4z3Nm+84/Ci1Nn8b0ryHsgbBX1rbgOXD7LZJzNtrC0/gFqYOn8csQ/GONguQchPXzcvy+9CBzvk84HxkO+tJH3bRz5Fb0pb/nS3/fl/6BL/2aL43faLzz3Wbmju8W5p6pttaoR9THjgyZ0zEeH2eqqmbNzLShpXVIpxOqflKP5S1dTehaXDeZqhvHk2bGYOo+LZXal0lnM4ZuWMPJXFazYgmmPp7VjWF9SsunrPVa1HpMn0lPm2r8hGZO3aea+nQyZ+mmmtNjFp5i4oG0lTChE+eDj2pm8lbSgDFoln4yCRp00zQyEDmZtBZLbGxnanHzgWh092d29e/uv+/f+DIQBEEQBEEQBEEQ/7P81rX/FxoZm/Xs/5UmtP8PO/W3M9fGvKoPAEfYXLQJ1HOpmk+AJx80OOb5m/URGG9z9c378rVs9F15tPXP1dS3wvVtC+Q9/H4DFX21fQcY9zvo9eXrj6++D0Af1zfqy9eyx3f16QnVMayufr+zXN+sL99YRx/O69er+RdIgXkNxJv9DfBTDIxLPa6Zudr6enz5euO6ke9Bj7TRzr0noK+JbczfyA9hgOvr9OX98t57XNFX3ydhlOsL+2T8+oK/ucrvNOCfEHbbXhAqeebLB/0V7oYp7+Pt8PsZWnl1+urRpAn7SUCcYBX/hkth95kd2cFYllX3bxB4+xCrzcCO6v4PbXzo1fwbEM/H4ds/f/nCgZH+8k+j0vNPv7Jlz7qPQ1PFx+FVPoZ76ozj42K87YP9/cT7xuf9UfpSeP0MsJvzp0A8/4g3w+78ef4R+F4QBEEQBPH/w1Gm2FeUwturytwpUSnmJfta4Q3h3J8aFeE9xf7d1ZBSOCcqhftZ/m+YKuG6wV4qaQzdGED0Z2jJ/zpa9ZcegjIF7fkVaIBrt11nJxYOOepXpPPyKjsvvytOLcnvCWxJfh87V+xTa0rx1Kpj0a8UFqWJhXL3fgHt9xXn+rCz7Bop3rkTEkNj5e7bIZ7HNRZb/ku5XE6g58HyZUzdj6mLjh1/Pbt7XMt5dvfvtLl1Fbv7BtbhrtyEPW6V038H1yE88yQTTkqC1LJVnIeaCNe7dr3sEPEe6lCb9LWGfa3efvNG8pe5fF8NeW8g3n7jCI+/xOOEVH19KvF9oudHH2n/YOtYgiAIgiAIgiAIgiA+fm69mx3aO8bYtkHn/xlwDq8nkwaavz9h9swzc+DWwRrm71A5CJVVjeChTtk26Fqwu0fxQjUL+9vqHVV/KC53OUd+bJxVfBkw7/gzCO5pr3dOK/g+WUQDeZlV/A2QRwJ5THjn1/xcd9BfhlT1KbgpVwLn+W2amGr2//8CUEsDBBQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABwAQ29udGVudHMvTWFjT1Mvc3Vkby1wcm9tcHQtc2NyaXB0VVQJAAOJkBBXipAQV3V4CwABBPUBAAAEFAAAAI1SO08cMRDu91cMHIKGxUB5xSGEUqTlFKWMvPYca+EXnjGXy6/PeNcg0qVay+PvObs5U5OLatI0DxvYIwNVm4BdQGIdMhxSkauJ8K1i7FOjvSdwB2A+/WJnXpEJdEGwjvTk0W6HhTW8WldgzKDedVF2Ug2tLn7svz3DDpTFdxWr93C/u7wbVKWyoDhVM/8XZAOPOXvcm+IyXxGcizeaUca0XJ1D0CfQnlEysE2VwbuII0br4gvdCMF37m9IoC39+oxTO2EpS8oZJdtRS0aIKY5/sCQoyLVEMMki6Ghl0BGN9SeuICkPIctXDHDDSB9oGEQi1yZWUAda8EZnIcR/eIOOVao+9TrbkpYFjLmkkHk0KYSGvdt12/e71cP6Hs2c4OJBemtsYusplVX+GLHQ7DKkQ098/ZF38dLEpRCeNUMlMW90BIseeQkWtuu2qKmIyDHCuqFuo1N11Ud/1Cf6CHb7Sfxld2ATklQoUGEDActfZ5326WU74G/HcDv8BVBLAwQKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAcAENvbnRlbnRzL1BrZ0luZm9VVAkAA82cSVYqkRBXdXgLAAEE9QEAAAQUAAAAQVBQTGFwbHRQSwMECgAAAAAAm3lwRwAAAAAAAAAAAAAAABMAHABDb250ZW50cy9SZXNvdXJjZXMvVVQJAANW1klWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACAeXBHfrnysfYGAAAf3AAAHgAcAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUCQADH9ZJVnGlD1d1eAsAAQT1AQAABBQAAADt3Xk81Hkcx/Hvb5yVo5bGsVlKbcpRRqFlGZGS5JikRBIdI0OZttMZloqiYwrVjD1UqJaUokTRubG72bZVjqR1VZNjp2XEGo9H+9gt+9h/9tHx8H7N4/fw5MHjYeaPz+P7+P7x/bL9griEPNBm+001J0S+ZbvL/NmKwzWHE0IUHebYuRFCEckjL9v/xSvk2EpCpBXZtrYuDra2Oi4hwSvZgSsIMU9MdPdePcZd1aqQu0p3fDkrcFrs+mPWihMU9y6clp5XEFFdbRrEczCtGtfkL3pWfvBGublJ4ct051kuocYtaaqll/IjdfR+V75vlTdl//AJVZU6elZ5f0S7NO3MaE2xMElhF+TUrHgW2nFYeGTrs/OrhDJN5zMX8ZJVKXrqSUM1Rj03bnf85/pJMXECNdl0D1ctfe/j82imziM2nllSa3t5q8+vP1f38k/k22uN1lmnvfz0b8dGxO+mnh91v7WB2tKdrG3d4vmJaHlTvjGzdMqWcw/9frnCtQpPZK9sMKi/Ey/jzgqIPzBy9/dlf9griI2/u+sjcApozWx6/NXytC+qBTlrhb69fE7J6tgOzpWjFSl8qxihr5dYf/qExoeupY6Ze/j2PfL1azhhZ8fU3eelJY+ylk16UJN6KmOU0M4r+75cZhH/mxNndowNb4wx7TCoN4yvMGu8ySq5l5W5t+xQyYbS/Ome7e0W0sXbC5aktl0LEXNYR9obH7dMT721dbNdT/eFzXNEYSH8GU+bQ5s6YniGcj3fHtgXPbo0Oj4i3d5G1Fjfm/Ng7kgpjQDNxw4RRnu+Vloy5ZE3J6OpwlFBzaxS25He2h3lJuizO70zJPLUYtks14RE5yrD8y2tXa5l5Wqh/NBY06yoiCLF08Nk9A5Ojbs43GmR1Ch/PaZsLf3e6uPRSrIM1ROqGjt80leqfdxYbNn+WV7K7ZKiy/t6r1/3ie46V5432T/Oahs9V7NnVzb9zoq2rFgvPxXrcAMzmvWnGjof/RpdsZThIEpex6DGbd5h6STaOyZXxV/YfW9u4KyllmZ3X15IMHHLSJtVPSOvULCsz2TyPC/WL9kGSme/1L01SSzjfbHnqk+OV7OBmevZeo3DBR7lXT5drT0MkX5PwDd1EQ0ebfkh1zy/L8ydd+VJ4CLuRndNjuwj+vMfU8q2l2l1rGtr8FC2D+fdSGk81eltuTjYSMk++4BMd0DXQo35iXbZndGdcXkGFyeG6b28evF22M2w22HlYSXetGSLW4cfFT00WqvN9bkqCujQ9KzdSt+snr+qmbcme+5Y3cDRn9BDLps+dPVltE9UkPeb6XovineiVUznTznyuZaSn/ZvR8VeRUYLqe3iHFqnU6+7+4LmtfsmaS0MdjIvslFJGG/rn7DPdMGLcx4d6eP2Oz92Y49kWbBUjudU2ijHnc7YIODQxD1aPx8PynVr+cmvJoy2+M5nQa2Kt0dvdPxp73LNU6aTeaktTfHH1L+8Pm/XalZcFcfzYxlhTefuzjRGobLKEqPZh8QKxUXWbU/ERvW78ghvTGTUNd0g9YqbcjUy5h0xVbn3S7SS54SOqKt88UR0qZuxKfxlZfODUm52o2HkGTOLw5dqhevvWjH7ssiqxAhKwA91d1nWG9w/GJIc7GwWbKKe/mAsGRqXBb87P10jH8/0LY6kpGQV1KcuAwAAeCt4LiVFWRJKs4DJ6p9GxGHWfLuTM5dt61/pzCCE7vLmSodGJM/ASqdzU2U3VjpY6WClg5XOICudUaI3VjocuWCsdAAAAAAAAAAAAAAAAD5o1Gmr054TSoqWxPvnfrLxVEIc29/cT5YmkmdgPzlCSz8a+8nYT8Z+MvaTB9lPZpJX+8lRktFyRdDF0m6IdcF2MgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8ddD8G5oJkUuQnAXwnvxLAAAAADDkEFURRckVE6rIv+Tb1078MiZEetubJ34RHckzcOIXd8uWTpz4hRO/cOIXTvwa5MQvoidZ5S8a9h8nfl1QVhipQ6jyyWeuvTaBGP3D5fwgE4gpeQYmUCZ7XQ0mECYQJhAm0GATyOfVmYOU4sAdNi+cOUpm/9cdNv2Di8kkFN3mYOtrg8sE14xicGFwYXDhmlEAAD5w/Os1o8bTcM0oVjpY6WClg2tGAQAAAAAAAAAAAAAAgL/wb9eMBpow+r817yN/fwnJf33P5g78nWofEZNXD3u95GdSkh3o135/aL2i3vl/gHf/7t59oDlnDSHS8gQhNGQL8uWs6P+iwPYLDuIOzARqyM+E9QOfA3PIfw4IIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhND70J9QSwMEFAAAAAgA7VhwR/dYplZAAAAAagEAAB4AHABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAkAA82cSVZTpQ9XdXgLAAEE9QEAAAQUAAAAY2BgZGBgYFQBEiDsxjDygJQDPlkmEIEaRpJAQg8kLAMML8bi5OIqIFuouKA4A0jLMTD8/w+S5AdrB7PlBIAEAFBLAwQKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1VUCQADzZxJVi2REFd1eAsAAQT1AQAABBQAAABQSwMEFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAHABDb250ZW50cy9SZXNvdXJjZXMvZGVzY3JpcHRpb24ucnRmZC9UWFQucnRmVVQJAAPNnElWU6UPV3V4CwABBPUBAAAEFAAAACWJOw6AIBAFe08DCBVX2QbWhZgQ1vCpCHcXtHkzkzegtCDB5Xp/g0+UyihARnb70kL/UbvffYpjQODcmk9zKXListxCoUsZA7EQ5S0+dVq085gvUEsDBAoAAAAAAIeBjkgAAAAAAAAAAAAAAAAbABwAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQJAAM9pQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACAAJgI5ICl5liTUBAADMAQAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUCQADcaIPV1OlD1d1eAsAAQT1AQAABBQAAAB9UMtOAkEQrNldd9dhH3Dz6NGYiPIJHjTxLCZeF9iDcXEJC0RvfoI/4sEfIvoHPEQEhbIHvOok01U16emu7vOkaF2dXu7XqrUTcyMATkxCwYKthCAUbmciAQ8O11yFcGBfbF/4jR24WmCvWjwUeXqfNutn13XyEeYYHkqKam+kghdJGfUCvwIfB6jiGAX6aCHHETroCrYFe6IKNEXfGOXChc0v7HKpBRzdSFrtELvbumKVC80F/FIjzwe9bj91uZRuXJuwAiLjNi7DlsxPaJSUAMrCFOeac3GfpINennQ6d/0sA4z7JxzKiVCCV+YHAs74LuuIONUi//4RIoC63czrIbYQS3PFicWJcTMTv1JHmocmROLJ45gjzfHvXJqjf7ZZ4RT+61uaBbDipGh2ZanBcjh8/gFQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAACQAYAAAAAAAAABAA7UEAAAAAQ29udGVudHMvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAoHlwR5R2hqihAQAAvgMAABMAGAAAAAAAAQAAAKSBQwAAAENvbnRlbnRzL0luZm8ucGxpc3RVVAUAA1zWSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAAB0gY5IAAAAAAAAAAAAAAAADwAYAAAAAAAAABAA7UExAgAAQ29udGVudHMvTWFjT1MvVVQFAAMbpQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAVRwXR+w5OCkyCAAAyGEAABUAGAAAAAAAAAAAAO2BegIAAENvbnRlbnRzL01hY09TL2FwcGxldFVUBQADMiPZVXV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABgAAAAAAAEAAADtgfsKAABDb250ZW50cy9NYWNPUy9zdWRvLXByb21wdC1zY3JpcHRVVAUAA4mQEFd1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAYAAAAAAABAAAApIHTDAAAQ29udGVudHMvUGtnSW5mb1VUBQADzZxJVnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJt5cEcAAAAAAAAAAAAAAAATABgAAAAAAAAAEADtQSUNAABDb250ZW50cy9SZXNvdXJjZXMvVVQFAANW1klWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAgHlwR3658rH2BgAAH9wAAB4AGAAAAAAAAAAAAKSBcg0AAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUBQADH9ZJVnV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAO1YcEf3WKZWQAAAAGoBAAAeABgAAAAAAAAAAACkgcAUAABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAYAAAAAAAAABAA7UFYFQAAQ29udGVudHMvUmVzb3VyY2VzL2Rlc2NyaXB0aW9uLnJ0ZmQvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAGAAAAAAAAQAAAKSBthUAAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1RYVC5ydGZVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAACHgY5IAAAAAAAAAAAAAAAAGwAYAAAAAAAAABAA7UFuFgAAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQFAAM9pQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgACYCOSApeZYk1AQAAzAEAACQAGAAAAAAAAAAAAKSBwxYAAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUBQADcaIPV3V4CwABBPUBAAAEFAAAAFBLBQYAAAAADQANANwEAABWGAAAAAA=";var u="User did not grant permission.";var l="No polkit authentication agent found.";var h=134217728},395:(t,r,i)=>{"use strict";const o=i(2037);const a=i(6224);const u=i(6738);const{env:l}=process;let h;if(u("no-color")||u("no-colors")||u("color=false")||u("color=never")){h=0}else if(u("color")||u("colors")||u("color=true")||u("color=always")){h=1}if("FORCE_COLOR"in l){if(l.FORCE_COLOR==="true"){h=1}else if(l.FORCE_COLOR==="false"){h=0}else{h=l.FORCE_COLOR.length===0?1:Math.min(parseInt(l.FORCE_COLOR,10),3)}}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t,r){if(h===0){return 0}if(u("color=16m")||u("color=full")||u("color=truecolor")){return 3}if(u("color=256")){return 2}if(t&&!r&&h===undefined){return 0}const i=h||0;if(l.TERM==="dumb"){return i}if(process.platform==="win32"){const t=o.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in l){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in l))||l.CI_NAME==="codeship"){return 1}return i}if("TEAMCITY_VERSION"in l){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0}if(l.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in l){const t=parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(l.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)){return 1}if("COLORTERM"in l){return 1}return i}function getSupportLevel(t){const r=supportsColor(t,t&&t.isTTY);return translateLevel(r)}t.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,a.isatty(1))),stderr:translateLevel(supportsColor(true,a.isatty(2)))}},8089:(t,r,i)=>{"use strict";r.c=r.create=i(9748);r.r=r.replace=i(6133);r.t=r.list=i(9405);r.u=r.update=i(4437);r.x=r.extract=i(4330);r.Pack=i(5873);r.Unpack=i(1634);r.Parse=i(6474);r.ReadEntry=i(2332);r.WriteEntry=i(2435);r.Header=i(1815);r.Pax=i(3179);r.types=i(2500)},9748:(t,r,i)=>{"use strict";const o=i(4976);const a=i(5873);const u=i(3597);const l=i(9405);const h=i(1017);t.exports=(t,r,i)=>{if(typeof r==="function"){i=r}if(Array.isArray(t)){r=t,t={}}if(!r||!Array.isArray(r)||!r.length){throw new TypeError("no files or directories specified")}r=Array.from(r);const a=o(t);if(a.sync&&typeof i==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!a.file&&typeof i==="function"){throw new TypeError("callback only supported with file option")}return a.file&&a.sync?createFileSync(a,r):a.file?createFile(a,r,i):a.sync?createSync(a,r):create(a,r)};const createFileSync=(t,r)=>{const i=new a.Sync(t);const o=new u.WriteStreamSync(t.file,{mode:t.mode||438});i.pipe(o);addFilesSync(i,r)};const createFile=(t,r,i)=>{const o=new a(t);const l=new u.WriteStream(t.file,{mode:t.mode||438});o.pipe(l);const h=new Promise(((t,r)=>{l.on("error",r);l.on("close",t);o.on("error",r)}));addFilesAsync(o,r);return i?h.then(i,i):h};const addFilesSync=(t,r)=>{r.forEach((r=>{if(r.charAt(0)==="@"){l({file:h.resolve(t.cwd,r.slice(1)),sync:true,noResume:true,onentry:r=>t.add(r)})}else{t.add(r)}}));t.end()};const addFilesAsync=(t,r)=>{while(r.length){const i=r.shift();if(i.charAt(0)==="@"){return l({file:h.resolve(t.cwd,i.slice(1)),noResume:true,onentry:r=>t.add(r)}).then((i=>addFilesAsync(t,r)))}else{t.add(i)}}t.end()};const createSync=(t,r)=>{const i=new a.Sync(t);addFilesSync(i,r);return i};const create=(t,r)=>{const i=new a(t);addFilesAsync(i,r);return i}},4330:(t,r,i)=>{"use strict";const o=i(4976);const a=i(1634);const u=i(7147);const l=i(3597);const h=i(1017);const p=i(422);t.exports=(t,r,i)=>{if(typeof t==="function"){i=t,r=null,t={}}else if(Array.isArray(t)){r=t,t={}}if(typeof r==="function"){i=r,r=null}if(!r){r=[]}else{r=Array.from(r)}const a=o(t);if(a.sync&&typeof i==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!a.file&&typeof i==="function"){throw new TypeError("callback only supported with file option")}if(r.length){filesFilter(a,r)}return a.file&&a.sync?extractFileSync(a):a.file?extractFile(a,i):a.sync?extractSync(a):extract(a)};const filesFilter=(t,r)=>{const i=new Map(r.map((t=>[p(t),true])));const o=t.filter;const mapHas=(t,r)=>{const o=r||h.parse(t).root||".";const a=t===o?false:i.has(t)?i.get(t):mapHas(h.dirname(t),o);i.set(t,a);return a};t.filter=o?(t,r)=>o(t,r)&&mapHas(p(t)):t=>mapHas(p(t))};const extractFileSync=t=>{const r=new a.Sync(t);const i=t.file;const o=u.statSync(i);const h=t.maxReadSize||16*1024*1024;const p=new l.ReadStreamSync(i,{readSize:h,size:o.size});p.pipe(r)};const extractFile=(t,r)=>{const i=new a(t);const o=t.maxReadSize||16*1024*1024;const h=t.file;const p=new Promise(((t,r)=>{i.on("error",r);i.on("close",t);u.stat(h,((t,a)=>{if(t){r(t)}else{const t=new l.ReadStream(h,{readSize:o,size:a.size});t.on("error",r);t.pipe(i)}}))}));return r?p.then(r,r):p};const extractSync=t=>new a.Sync(t);const extract=t=>new a(t)},5868:(t,r,i)=>{const o=process.env.__FAKE_PLATFORM__||process.platform;const a=o==="win32";const u=global.__FAKE_TESTING_FS__||i(7147);const{O_CREAT:l,O_TRUNC:h,O_WRONLY:p,UV_FS_O_FILEMAP:d=0}=u.constants;const m=a&&!!d;const g=512*1024;const y=d|h|l|p;t.exports=!m?()=>"w":t=>t<g?y:"w"},1815:(t,r,i)=>{"use strict";const o=i(2500);const a=i(1017).posix;const u=i(9939);const l=Symbol("slurp");const h=Symbol("type");class Header{constructor(t,r,i,o){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[h]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(Buffer.isBuffer(t)){this.decode(t,r||0,i,o)}else if(t){this.set(t)}}decode(t,r,i,o){if(!r){r=0}if(!t||!(t.length>=r+512)){throw new Error("need 512 bytes for header")}this.path=decString(t,r,100);this.mode=decNumber(t,r+100,8);this.uid=decNumber(t,r+108,8);this.gid=decNumber(t,r+116,8);this.size=decNumber(t,r+124,12);this.mtime=decDate(t,r+136,12);this.cksum=decNumber(t,r+148,12);this[l](i);this[l](o,true);this[h]=decString(t,r+156,1);if(this[h]===""){this[h]="0"}if(this[h]==="0"&&this.path.slice(-1)==="/"){this[h]="5"}if(this[h]==="5"){this.size=0}this.linkpath=decString(t,r+157,100);if(t.slice(r+257,r+265).toString()==="ustar\x0000"){this.uname=decString(t,r+265,32);this.gname=decString(t,r+297,32);this.devmaj=decNumber(t,r+329,8);this.devmin=decNumber(t,r+337,8);if(t[r+475]!==0){const i=decString(t,r+345,155);this.path=i+"/"+this.path}else{const i=decString(t,r+345,130);if(i){this.path=i+"/"+this.path}this.atime=decDate(t,r+476,12);this.ctime=decDate(t,r+488,12)}}let a=8*32;for(let i=r;i<r+148;i++){a+=t[i]}for(let i=r+156;i<r+512;i++){a+=t[i]}this.cksumValid=a===this.cksum;if(this.cksum===null&&a===8*32){this.nullBlock=true}}[l](t,r){for(const i in t){if(t[i]!==null&&t[i]!==undefined&&!(r&&i==="path")){this[i]=t[i]}}}encode(t,r){if(!t){t=this.block=Buffer.alloc(512);r=0}if(!r){r=0}if(!(t.length>=r+512)){throw new Error("need 512 bytes for header")}const i=this.ctime||this.atime?130:155;const o=splitPrefix(this.path||"",i);const a=o[0];const u=o[1];this.needPax=o[2];this.needPax=encString(t,r,100,a)||this.needPax;this.needPax=encNumber(t,r+100,8,this.mode)||this.needPax;this.needPax=encNumber(t,r+108,8,this.uid)||this.needPax;this.needPax=encNumber(t,r+116,8,this.gid)||this.needPax;this.needPax=encNumber(t,r+124,12,this.size)||this.needPax;this.needPax=encDate(t,r+136,12,this.mtime)||this.needPax;t[r+156]=this[h].charCodeAt(0);this.needPax=encString(t,r+157,100,this.linkpath)||this.needPax;t.write("ustar\x0000",r+257,8);this.needPax=encString(t,r+265,32,this.uname)||this.needPax;this.needPax=encString(t,r+297,32,this.gname)||this.needPax;this.needPax=encNumber(t,r+329,8,this.devmaj)||this.needPax;this.needPax=encNumber(t,r+337,8,this.devmin)||this.needPax;this.needPax=encString(t,r+345,i,u)||this.needPax;if(t[r+475]!==0){this.needPax=encString(t,r+345,155,u)||this.needPax}else{this.needPax=encString(t,r+345,130,u)||this.needPax;this.needPax=encDate(t,r+476,12,this.atime)||this.needPax;this.needPax=encDate(t,r+488,12,this.ctime)||this.needPax}let l=8*32;for(let i=r;i<r+148;i++){l+=t[i]}for(let i=r+156;i<r+512;i++){l+=t[i]}this.cksum=l;encNumber(t,r+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(t){for(const r in t){if(t[r]!==null&&t[r]!==undefined){this[r]=t[r]}}}get type(){return o.name.get(this[h])||this[h]}get typeKey(){return this[h]}set type(t){if(o.code.has(t)){this[h]=o.code.get(t)}else{this[h]=t}}}const splitPrefix=(t,r)=>{const i=100;let o=t;let u="";let l;const h=a.parse(t).root||".";if(Buffer.byteLength(o)<i){l=[o,u,false]}else{u=a.dirname(o);o=a.basename(o);do{if(Buffer.byteLength(o)<=i&&Buffer.byteLength(u)<=r){l=[o,u,false]}else if(Buffer.byteLength(o)>i&&Buffer.byteLength(u)<=r){l=[o.slice(0,i-1),u,true]}else{o=a.join(a.basename(u),o);u=a.dirname(u)}}while(u!==h&&!l);if(!l){l=[t.slice(0,i-1),"",true]}}return l};const decString=(t,r,i)=>t.slice(r,r+i).toString("utf8").replace(/\0.*/,"");const decDate=(t,r,i)=>numToDate(decNumber(t,r,i));const numToDate=t=>t===null?null:new Date(t*1e3);const decNumber=(t,r,i)=>t[r]&128?u.parse(t.slice(r,r+i)):decSmallNumber(t,r,i);const nanNull=t=>isNaN(t)?null:t;const decSmallNumber=(t,r,i)=>nanNull(parseInt(t.slice(r,r+i).toString("utf8").replace(/\0.*$/,"").trim(),8));const p={12:8589934591,8:2097151};const encNumber=(t,r,i,o)=>o===null?false:o>p[i]||o<0?(u.encode(o,t.slice(r,r+i)),true):(encSmallNumber(t,r,i,o),false);const encSmallNumber=(t,r,i,o)=>t.write(octalString(o,i),r,i,"ascii");const octalString=(t,r)=>padOctal(Math.floor(t).toString(8),r);const padOctal=(t,r)=>(t.length===r-1?t:new Array(r-t.length-1).join("0")+t+" ")+"\0";const encDate=(t,r,i,o)=>o===null?false:encNumber(t,r,i,o.getTime()/1e3);const d=new Array(156).join("\0");const encString=(t,r,i,o)=>o===null?false:(t.write(o+d,r,i,"utf8"),o.length!==Buffer.byteLength(o)||o.length>i);t.exports=Header},4976:t=>{"use strict";const r=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);t.exports=t=>t?Object.keys(t).map((i=>[r.has(i)?r.get(i):i,t[i]])).reduce(((t,r)=>(t[r[0]]=r[1],t)),Object.create(null)):{}},9939:t=>{"use strict";const encode=(t,r)=>{if(!Number.isSafeInteger(t)){throw Error("cannot encode number outside of javascript safe integer range")}else if(t<0){encodeNegative(t,r)}else{encodePositive(t,r)}return r};const encodePositive=(t,r)=>{r[0]=128;for(var i=r.length;i>1;i--){r[i-1]=t&255;t=Math.floor(t/256)}};const encodeNegative=(t,r)=>{r[0]=255;var i=false;t=t*-1;for(var o=r.length;o>1;o--){var a=t&255;t=Math.floor(t/256);if(i){r[o-1]=onesComp(a)}else if(a===0){r[o-1]=0}else{i=true;r[o-1]=twosComp(a)}}};const parse=t=>{const r=t[0];const i=r===128?pos(t.slice(1,t.length)):r===255?twos(t):null;if(i===null){throw Error("invalid base256 encoding")}if(!Number.isSafeInteger(i)){throw Error("parsed number outside of javascript safe integer range")}return i};const twos=t=>{var r=t.length;var i=0;var o=false;for(var a=r-1;a>-1;a--){var u=t[a];var l;if(o){l=onesComp(u)}else if(u===0){l=u}else{o=true;l=twosComp(u)}if(l!==0){i-=l*Math.pow(256,r-a-1)}}return i};const pos=t=>{var r=t.length;var i=0;for(var o=r-1;o>-1;o--){var a=t[o];if(a!==0){i+=a*Math.pow(256,r-o-1)}}return i};const onesComp=t=>(255^t)&255;const twosComp=t=>(255^t)+1&255;t.exports={encode:encode,parse:parse}},9405:(t,r,i)=>{"use strict";const o=i(4976);const a=i(6474);const u=i(7147);const l=i(3597);const h=i(1017);const p=i(422);t.exports=(t,r,i)=>{if(typeof t==="function"){i=t,r=null,t={}}else if(Array.isArray(t)){r=t,t={}}if(typeof r==="function"){i=r,r=null}if(!r){r=[]}else{r=Array.from(r)}const a=o(t);if(a.sync&&typeof i==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!a.file&&typeof i==="function"){throw new TypeError("callback only supported with file option")}if(r.length){filesFilter(a,r)}if(!a.noResume){onentryFunction(a)}return a.file&&a.sync?listFileSync(a):a.file?listFile(a,i):list(a)};const onentryFunction=t=>{const r=t.onentry;t.onentry=r?t=>{r(t);t.resume()}:t=>t.resume()};const filesFilter=(t,r)=>{const i=new Map(r.map((t=>[p(t),true])));const o=t.filter;const mapHas=(t,r)=>{const o=r||h.parse(t).root||".";const a=t===o?false:i.has(t)?i.get(t):mapHas(h.dirname(t),o);i.set(t,a);return a};t.filter=o?(t,r)=>o(t,r)&&mapHas(p(t)):t=>mapHas(p(t))};const listFileSync=t=>{const r=list(t);const i=t.file;let o=true;let a;try{const l=u.statSync(i);const h=t.maxReadSize||16*1024*1024;if(l.size<h){r.end(u.readFileSync(i))}else{let t=0;const o=Buffer.allocUnsafe(h);a=u.openSync(i,"r");while(t<l.size){const i=u.readSync(a,o,0,h,t);t+=i;r.write(o.slice(0,i))}r.end()}o=false}finally{if(o&&a){try{u.closeSync(a)}catch(t){}}}};const listFile=(t,r)=>{const i=new a(t);const o=t.maxReadSize||16*1024*1024;const h=t.file;const p=new Promise(((t,r)=>{i.on("error",r);i.on("end",t);u.stat(h,((t,a)=>{if(t){r(t)}else{const t=new l.ReadStream(h,{readSize:o,size:a.size});t.on("error",r);t.pipe(i)}}))}));return r?p.then(r,r):p};const list=t=>new a(t)},6790:(t,r,i)=>{"use strict";const o=i(4184);const a=i(7147);const u=i(1017);const l=i(5649);const h=i(5536);class SymlinkError extends Error{constructor(t,r){super("Cannot extract through symbolic link");this.path=r;this.symlink=t}get name(){return"SylinkError"}}class CwdError extends Error{constructor(t,r){super(r+": Cannot cd into '"+t+"'");this.path=t;this.code=r}get name(){return"CwdError"}}const cGet=(t,r)=>t.get(h(r));const cSet=(t,r,i)=>t.set(h(r),i);const checkCwd=(t,r)=>{a.stat(t,((i,o)=>{if(i||!o.isDirectory()){i=new CwdError(t,i&&i.code||"ENOTDIR")}r(i)}))};t.exports=(t,r,i)=>{t=h(t);const p=r.umask;const d=r.mode|448;const m=(d&p)!==0;const g=r.uid;const y=r.gid;const A=typeof g==="number"&&typeof y==="number"&&(g!==r.processUid||y!==r.processGid);const b=r.preserve;const v=r.unlink;const E=r.cache;const w=h(r.cwd);const done=(r,o)=>{if(r){i(r)}else{cSet(E,t,true);if(o&&A){l(o,g,y,(t=>done(t)))}else if(m){a.chmod(t,d,i)}else{i()}}};if(E&&cGet(E,t)===true){return done()}if(t===w){return checkCwd(t,done)}if(b){return o(t,{mode:d}).then((t=>done(null,t)),done)}const _=h(u.relative(w,t));const S=_.split("/");mkdir_(w,S,d,E,v,w,null,done)};const mkdir_=(t,r,i,o,l,p,d,m)=>{if(!r.length){return m(null,d)}const g=r.shift();const y=h(u.resolve(t+"/"+g));if(cGet(o,y)){return mkdir_(y,r,i,o,l,p,d,m)}a.mkdir(y,i,onmkdir(y,r,i,o,l,p,d,m))};const onmkdir=(t,r,i,o,u,l,p,d)=>m=>{if(m){a.lstat(t,((g,y)=>{if(g){g.path=g.path&&h(g.path);d(g)}else if(y.isDirectory()){mkdir_(t,r,i,o,u,l,p,d)}else if(u){a.unlink(t,(h=>{if(h){return d(h)}a.mkdir(t,i,onmkdir(t,r,i,o,u,l,p,d))}))}else if(y.isSymbolicLink()){return d(new SymlinkError(t,t+"/"+r.join("/")))}else{d(m)}}))}else{p=p||t;mkdir_(t,r,i,o,u,l,p,d)}};const checkCwdSync=t=>{let r=false;let i="ENOTDIR";try{r=a.statSync(t).isDirectory()}catch(t){i=t.code}finally{if(!r){throw new CwdError(t,i)}}};t.exports.sync=(t,r)=>{t=h(t);const i=r.umask;const p=r.mode|448;const d=(p&i)!==0;const m=r.uid;const g=r.gid;const y=typeof m==="number"&&typeof g==="number"&&(m!==r.processUid||g!==r.processGid);const A=r.preserve;const b=r.unlink;const v=r.cache;const E=h(r.cwd);const done=r=>{cSet(v,t,true);if(r&&y){l.sync(r,m,g)}if(d){a.chmodSync(t,p)}};if(v&&cGet(v,t)===true){return done()}if(t===E){checkCwdSync(E);return done()}if(A){return done(o.sync(t,p))}const w=h(u.relative(E,t));const _=w.split("/");let S=null;for(let t=_.shift(),r=E;t&&(r+="/"+t);t=_.shift()){r=h(u.resolve(r));if(cGet(v,r)){continue}try{a.mkdirSync(r,p);S=S||r;cSet(v,r,true)}catch(t){const i=a.lstatSync(r);if(i.isDirectory()){cSet(v,r,true);continue}else if(b){a.unlinkSync(r);a.mkdirSync(r,p);S=S||r;cSet(v,r,true);continue}else if(i.isSymbolicLink()){return new SymlinkError(r,r+"/"+_.join("/"))}}}return done(S)}},2701:t=>{"use strict";t.exports=(t,r,i)=>{t&=4095;if(i){t=(t|384)&~18}if(r){if(t&256){t|=64}if(t&32){t|=8}if(t&4){t|=1}}return t}},4462:t=>{const r=Object.create(null);const{hasOwnProperty:i}=Object.prototype;t.exports=t=>{if(!i.call(r,t)){r[t]=t.normalize("NFD")}return r[t]}},5536:t=>{const r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;t.exports=r!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")},5873:(t,r,i)=>{"use strict";class PackJob{constructor(t,r){this.path=t||"./";this.absolute=r;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const{Minipass:o}=i(6047);const a=i(7547);const u=i(2332);const l=i(2435);const h=l.Sync;const p=l.Tar;const d=i(4461);const m=Buffer.alloc(1024);const g=Symbol("onStat");const y=Symbol("ended");const A=Symbol("queue");const b=Symbol("current");const v=Symbol("process");const E=Symbol("processing");const w=Symbol("processJob");const _=Symbol("jobs");const S=Symbol("jobDone");const C=Symbol("addFSEntry");const D=Symbol("addTarEntry");const x=Symbol("stat");const R=Symbol("readdir");const O=Symbol("onreaddir");const k=Symbol("pipe");const P=Symbol("entry");const T=Symbol("entryOpt");const L=Symbol("writeEntryClass");const I=Symbol("write");const M=Symbol("ondrain");const B=i(7147);const N=i(1017);const $=i(4239);const j=i(5536);const H=$(class Pack extends o{constructor(t){super(t);t=t||Object.create(null);this.opt=t;this.file=t.file||"";this.cwd=t.cwd||process.cwd();this.maxReadSize=t.maxReadSize;this.preservePaths=!!t.preservePaths;this.strict=!!t.strict;this.noPax=!!t.noPax;this.prefix=j(t.prefix||"");this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.readdirCache=t.readdirCache||new Map;this[L]=l;if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}this.portable=!!t.portable;this.zip=null;if(t.gzip||t.brotli){if(t.gzip&&t.brotli){throw new TypeError("gzip and brotli are mutually exclusive")}if(t.gzip){if(typeof t.gzip!=="object"){t.gzip={}}if(this.portable){t.gzip.portable=true}this.zip=new a.Gzip(t.gzip)}if(t.brotli){if(typeof t.brotli!=="object"){t.brotli={}}this.zip=new a.BrotliCompress(t.brotli)}this.zip.on("data",(t=>super.write(t)));this.zip.on("end",(t=>super.end()));this.zip.on("drain",(t=>this[M]()));this.on("resume",(t=>this.zip.resume()))}else{this.on("drain",this[M])}this.noDirRecurse=!!t.noDirRecurse;this.follow=!!t.follow;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;this.filter=typeof t.filter==="function"?t.filter:t=>true;this[A]=new d;this[_]=0;this.jobs=+t.jobs||4;this[E]=false;this[y]=false}[I](t){return super.write(t)}add(t){this.write(t);return this}end(t){if(t){this.write(t)}this[y]=true;this[v]();return this}write(t){if(this[y]){throw new Error("write after end")}if(t instanceof u){this[D](t)}else{this[C](t)}return this.flowing}[D](t){const r=j(N.resolve(this.cwd,t.path));if(!this.filter(t.path,t)){t.resume()}else{const i=new PackJob(t.path,r,false);i.entry=new p(t,this[T](i));i.entry.on("end",(t=>this[S](i)));this[_]+=1;this[A].push(i)}this[v]()}[C](t){const r=j(N.resolve(this.cwd,t));this[A].push(new PackJob(t,r));this[v]()}[x](t){t.pending=true;this[_]+=1;const r=this.follow?"stat":"lstat";B[r](t.absolute,((r,i)=>{t.pending=false;this[_]-=1;if(r){this.emit("error",r)}else{this[g](t,i)}}))}[g](t,r){this.statCache.set(t.absolute,r);t.stat=r;if(!this.filter(t.path,r)){t.ignore=true}this[v]()}[R](t){t.pending=true;this[_]+=1;B.readdir(t.absolute,((r,i)=>{t.pending=false;this[_]-=1;if(r){return this.emit("error",r)}this[O](t,i)}))}[O](t,r){this.readdirCache.set(t.absolute,r);t.readdir=r;this[v]()}[v](){if(this[E]){return}this[E]=true;for(let t=this[A].head;t!==null&&this[_]<this.jobs;t=t.next){this[w](t.value);if(t.value.ignore){const r=t.next;this[A].removeNode(t);t.next=r}}this[E]=false;if(this[y]&&!this[A].length&&this[_]===0){if(this.zip){this.zip.end(m)}else{super.write(m);super.end()}}}get[b](){return this[A]&&this[A].head&&this[A].head.value}[S](t){this[A].shift();this[_]-=1;this[v]()}[w](t){if(t.pending){return}if(t.entry){if(t===this[b]&&!t.piped){this[k](t)}return}if(!t.stat){if(this.statCache.has(t.absolute)){this[g](t,this.statCache.get(t.absolute))}else{this[x](t)}}if(!t.stat){return}if(t.ignore){return}if(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir){if(this.readdirCache.has(t.absolute)){this[O](t,this.readdirCache.get(t.absolute))}else{this[R](t)}if(!t.readdir){return}}t.entry=this[P](t);if(!t.entry){t.ignore=true;return}if(t===this[b]&&!t.piped){this[k](t)}}[T](t){return{onwarn:(t,r,i)=>this.warn(t,r,i),noPax:this.noPax,cwd:this.cwd,absolute:t.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[P](t){this[_]+=1;try{return new this[L](t.path,this[T](t)).on("end",(()=>this[S](t))).on("error",(t=>this.emit("error",t)))}catch(t){this.emit("error",t)}}[M](){if(this[b]&&this[b].entry){this[b].entry.resume()}}[k](t){t.piped=true;if(t.readdir){t.readdir.forEach((r=>{const i=t.path;const o=i==="./"?"":i.replace(/\/*$/,"/");this[C](o+r)}))}const r=t.entry;const i=this.zip;if(i){r.on("data",(t=>{if(!i.write(t)){r.pause()}}))}else{r.on("data",(t=>{if(!super.write(t)){r.pause()}}))}}pause(){if(this.zip){this.zip.pause()}return super.pause()}});class PackSync extends H{constructor(t){super(t);this[L]=h}pause(){}resume(){}[x](t){const r=this.follow?"statSync":"lstatSync";this[g](t,B[r](t.absolute))}[R](t,r){this[O](t,B.readdirSync(t.absolute))}[k](t){const r=t.entry;const i=this.zip;if(t.readdir){t.readdir.forEach((r=>{const i=t.path;const o=i==="./"?"":i.replace(/\/*$/,"/");this[C](o+r)}))}if(i){r.on("data",(t=>{i.write(t)}))}else{r.on("data",(t=>{super[I](t)}))}}}H.Sync=PackSync;t.exports=H},6474:(t,r,i)=>{"use strict";const o=i(4239);const a=i(1815);const u=i(2361);const l=i(4461);const h=1024*1024;const p=i(2332);const d=i(3179);const m=i(7547);const{nextTick:g}=i(7282);const y=Buffer.from([31,139]);const A=Symbol("state");const b=Symbol("writeEntry");const v=Symbol("readEntry");const E=Symbol("nextEntry");const w=Symbol("processEntry");const _=Symbol("extendedHeader");const S=Symbol("globalExtendedHeader");const C=Symbol("meta");const D=Symbol("emitMeta");const x=Symbol("buffer");const R=Symbol("queue");const O=Symbol("ended");const k=Symbol("emittedEnd");const P=Symbol("emit");const T=Symbol("unzip");const L=Symbol("consumeChunk");const I=Symbol("consumeChunkSub");const M=Symbol("consumeBody");const B=Symbol("consumeMeta");const N=Symbol("consumeHeader");const $=Symbol("consuming");const j=Symbol("bufferConcat");const H=Symbol("maybeEnd");const G=Symbol("writing");const U=Symbol("aborted");const W=Symbol("onDone");const z=Symbol("sawValidEntry");const Y=Symbol("sawNullBlock");const V=Symbol("sawEOF");const Q=Symbol("closeStream");const noop=t=>true;t.exports=o(class Parser extends u{constructor(t){t=t||{};super(t);this.file=t.file||"";this[z]=null;this.on(W,(t=>{if(this[A]==="begin"||this[z]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}}));if(t.ondone){this.on(W,t.ondone)}else{this.on(W,(t=>{this.emit("prefinish");this.emit("finish");this.emit("end")}))}this.strict=!!t.strict;this.maxMetaEntrySize=t.maxMetaEntrySize||h;this.filter=typeof t.filter==="function"?t.filter:noop;const r=t.file&&(t.file.endsWith(".tar.br")||t.file.endsWith(".tbr"));this.brotli=!t.gzip&&t.brotli!==undefined?t.brotli:r?undefined:false;this.writable=true;this.readable=false;this[R]=new l;this[x]=null;this[v]=null;this[b]=null;this[A]="begin";this[C]="";this[_]=null;this[S]=null;this[O]=false;this[T]=null;this[U]=false;this[Y]=false;this[V]=false;this.on("end",(()=>this[Q]()));if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}if(typeof t.onentry==="function"){this.on("entry",t.onentry)}}[N](t,r){if(this[z]===null){this[z]=false}let i;try{i=new a(t,r,this[_],this[S])}catch(t){return this.warn("TAR_ENTRY_INVALID",t)}if(i.nullBlock){if(this[Y]){this[V]=true;if(this[A]==="begin"){this[A]="header"}this[P]("eof")}else{this[Y]=true;this[P]("nullBlock")}}else{this[Y]=false;if(!i.cksumValid){this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i})}else if(!i.path){this.warn("TAR_ENTRY_INVALID","path is required",{header:i})}else{const t=i.type;if(/^(Symbolic)?Link$/.test(t)&&!i.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i})}else if(!/^(Symbolic)?Link$/.test(t)&&i.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i})}else{const t=this[b]=new p(i,this[_],this[S]);if(!this[z]){if(t.remain){const onend=()=>{if(!t.invalid){this[z]=true}};t.on("end",onend)}else{this[z]=true}}if(t.meta){if(t.size>this.maxMetaEntrySize){t.ignore=true;this[P]("ignoredEntry",t);this[A]="ignore";t.resume()}else if(t.size>0){this[C]="";t.on("data",(t=>this[C]+=t));this[A]="meta"}}else{this[_]=null;t.ignore=t.ignore||!this.filter(t.path,t);if(t.ignore){this[P]("ignoredEntry",t);this[A]=t.remain?"ignore":"header";t.resume()}else{if(t.remain){this[A]="body"}else{this[A]="header";t.end()}if(!this[v]){this[R].push(t);this[E]()}else{this[R].push(t)}}}}}}}[Q](){g((()=>this.emit("close")))}[w](t){let r=true;if(!t){this[v]=null;r=false}else if(Array.isArray(t)){this.emit.apply(this,t)}else{this[v]=t;this.emit("entry",t);if(!t.emittedEnd){t.on("end",(t=>this[E]()));r=false}}return r}[E](){do{}while(this[w](this[R].shift()));if(!this[R].length){const t=this[v];const r=!t||t.flowing||t.size===t.remain;if(r){if(!this[G]){this.emit("drain")}}else{t.once("drain",(t=>this.emit("drain")))}}}[M](t,r){const i=this[b];const o=i.blockRemain;const a=o>=t.length&&r===0?t:t.slice(r,r+o);i.write(a);if(!i.blockRemain){this[A]="header";this[b]=null;i.end()}return a.length}[B](t,r){const i=this[b];const o=this[M](t,r);if(!this[b]){this[D](i)}return o}[P](t,r,i){if(!this[R].length&&!this[v]){this.emit(t,r,i)}else{this[R].push([t,r,i])}}[D](t){this[P]("meta",this[C]);switch(t.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=d.parse(this[C],this[_],false);break;case"GlobalExtendedHeader":this[S]=d.parse(this[C],this[S],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null);this[_].path=this[C].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null);this[_].linkpath=this[C].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[U]=true;this.emit("abort",t);this.warn("TAR_ABORT",t,{recoverable:false})}write(t){if(this[U]){return}const r=this[T]===null||this.brotli===undefined&&this[T]===false;if(r&&t){if(this[x]){t=Buffer.concat([this[x],t]);this[x]=null}if(t.length<y.length){this[x]=t;return true}for(let r=0;this[T]===null&&r<y.length;r++){if(t[r]!==y[r]){this[T]=false}}const r=this.brotli===undefined;if(this[T]===false&&r){if(t.length<512){if(this[O]){this.brotli=true}else{this[x]=t;return true}}else{try{new a(t.slice(0,512));this.brotli=false}catch(t){this.brotli=true}}}if(this[T]===null||this[T]===false&&this.brotli){const r=this[O];this[O]=false;this[T]=this[T]===null?new m.Unzip:new m.BrotliDecompress;this[T].on("data",(t=>this[L](t)));this[T].on("error",(t=>this.abort(t)));this[T].on("end",(t=>{this[O]=true;this[L]()}));this[G]=true;const i=this[T][r?"end":"write"](t);this[G]=false;return i}}this[G]=true;if(this[T]){this[T].write(t)}else{this[L](t)}this[G]=false;const i=this[R].length?false:this[v]?this[v].flowing:true;if(!i&&!this[R].length){this[v].once("drain",(t=>this.emit("drain")))}return i}[j](t){if(t&&!this[U]){this[x]=this[x]?Buffer.concat([this[x],t]):t}}[H](){if(this[O]&&!this[k]&&!this[U]&&!this[$]){this[k]=true;const t=this[b];if(t&&t.blockRemain){const r=this[x]?this[x].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t});if(this[x]){t.write(this[x])}t.end()}this[P](W)}}[L](t){if(this[$]){this[j](t)}else if(!t&&!this[x]){this[H]()}else{this[$]=true;if(this[x]){this[j](t);const r=this[x];this[x]=null;this[I](r)}else{this[I](t)}while(this[x]&&this[x].length>=512&&!this[U]&&!this[V]){const t=this[x];this[x]=null;this[I](t)}this[$]=false}if(!this[x]||this[O]){this[H]()}}[I](t){let r=0;const i=t.length;while(r+512<=i&&!this[U]&&!this[V]){switch(this[A]){case"begin":case"header":this[N](t,r);r+=512;break;case"ignore":case"body":r+=this[M](t,r);break;case"meta":r+=this[B](t,r);break;default:throw new Error("invalid state: "+this[A])}}if(r<i){if(this[x]){this[x]=Buffer.concat([t.slice(r),this[x]])}else{this[x]=t.slice(r)}}}end(t){if(!this[U]){if(this[T]){this[T].end(t)}else{this[O]=true;if(this.brotli===undefined)t=t||Buffer.alloc(0);this.write(t)}}}})},1891:(t,r,i)=>{const o=i(9491);const a=i(4462);const u=i(422);const{join:l}=i(1017);const h=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const p=h==="win32";t.exports=()=>{const t=new Map;const r=new Map;const getDirs=t=>{const r=t.split("/").slice(0,-1).reduce(((t,r)=>{if(t.length){r=l(t[t.length-1],r)}t.push(r||"/");return t}),[]);return r};const i=new Set;const getQueues=i=>{const o=r.get(i);if(!o){throw new Error("function does not have any path reservations")}return{paths:o.paths.map((r=>t.get(r))),dirs:[...o.dirs].map((r=>t.get(r)))}};const check=t=>{const{paths:r,dirs:i}=getQueues(t);return r.every((r=>r[0]===t))&&i.every((r=>r[0]instanceof Set&&r[0].has(t)))};const run=t=>{if(i.has(t)||!check(t)){return false}i.add(t);t((()=>clear(t)));return true};const clear=a=>{if(!i.has(a)){return false}const{paths:u,dirs:l}=r.get(a);const h=new Set;u.forEach((r=>{const i=t.get(r);o.equal(i[0],a);if(i.length===1){t.delete(r)}else{i.shift();if(typeof i[0]==="function"){h.add(i[0])}else{i[0].forEach((t=>h.add(t)))}}}));l.forEach((r=>{const i=t.get(r);o(i[0]instanceof Set);if(i[0].size===1&&i.length===1){t.delete(r)}else if(i[0].size===1){i.shift();h.add(i[0])}else{i[0].delete(a)}}));i.delete(a);h.forEach((t=>run(t)));return true};const reserve=(i,o)=>{i=p?["win32 parallelization disabled"]:i.map((t=>u(l(a(t))).toLowerCase()));const h=new Set(i.map((t=>getDirs(t))).reduce(((t,r)=>t.concat(r))));r.set(o,{dirs:h,paths:i});i.forEach((r=>{const i=t.get(r);if(!i){t.set(r,[o])}else{i.push(o)}}));h.forEach((r=>{const i=t.get(r);if(!i){t.set(r,[new Set([o])])}else if(i[i.length-1]instanceof Set){i[i.length-1].add(o)}else{i.push(new Set([o]))}}));return run(o)};return{check:check,reserve:reserve}}},3179:(t,r,i)=>{"use strict";const o=i(1815);const a=i(1017);class Pax{constructor(t,r){this.atime=t.atime||null;this.charset=t.charset||null;this.comment=t.comment||null;this.ctime=t.ctime||null;this.gid=t.gid||null;this.gname=t.gname||null;this.linkpath=t.linkpath||null;this.mtime=t.mtime||null;this.path=t.path||null;this.size=t.size||null;this.uid=t.uid||null;this.uname=t.uname||null;this.dev=t.dev||null;this.ino=t.ino||null;this.nlink=t.nlink||null;this.global=r||false}encode(){const t=this.encodeBody();if(t===""){return null}const r=Buffer.byteLength(t);const i=512*Math.ceil(1+r/512);const u=Buffer.allocUnsafe(i);for(let t=0;t<512;t++){u[t]=0}new o({path:("PaxHeader/"+a.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(u);u.write(t,512,r,"utf8");for(let t=r+512;t<u.length;t++){u[t]=0}return u}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(t){if(this[t]===null||this[t]===undefined){return""}const r=this[t]instanceof Date?this[t].getTime()/1e3:this[t];const i=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+r+"\n";const o=Buffer.byteLength(i);let a=Math.floor(Math.log(o)/Math.log(10))+1;if(o+a>=Math.pow(10,a)){a+=1}const u=a+o;return u+i}}Pax.parse=(t,r,i)=>new Pax(merge(parseKV(t),r),i);const merge=(t,r)=>r?Object.keys(t).reduce(((r,i)=>(r[i]=t[i],r)),r):t;const parseKV=t=>t.replace(/\n$/,"").split("\n").reduce(parseKVLine,Object.create(null));const parseKVLine=(t,r)=>{const i=parseInt(r,10);if(i!==Buffer.byteLength(r)+1){return t}r=r.slice((i+" ").length);const o=r.split("=");const a=o.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!a){return t}const u=o.join("=");t[a]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(a)?new Date(u*1e3):/^[0-9]+$/.test(u)?+u:u;return t};t.exports=Pax},2332:(t,r,i)=>{"use strict";const{Minipass:o}=i(6047);const a=i(5536);const u=Symbol("slurp");t.exports=class ReadEntry extends o{constructor(t,r,i){super();this.pause();this.extended=r;this.globalExtended=i;this.header=t;this.startBlockSize=512*Math.ceil(t.size/512);this.blockRemain=this.startBlockSize;this.remain=t.size;this.type=t.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=a(t.path);this.mode=t.mode;if(this.mode){this.mode=this.mode&4095}this.uid=t.uid;this.gid=t.gid;this.uname=t.uname;this.gname=t.gname;this.size=t.size;this.mtime=t.mtime;this.atime=t.atime;this.ctime=t.ctime;this.linkpath=a(t.linkpath);this.uname=t.uname;this.gname=t.gname;if(r){this[u](r)}if(i){this[u](i,true)}}write(t){const r=t.length;if(r>this.blockRemain){throw new Error("writing more to entry than is appropriate")}const i=this.remain;const o=this.blockRemain;this.remain=Math.max(0,i-r);this.blockRemain=Math.max(0,o-r);if(this.ignore){return true}if(i>=r){return super.write(t)}return super.write(t.slice(0,i))}[u](t,r){for(const i in t){if(t[i]!==null&&t[i]!==undefined&&!(r&&i==="path")){this[i]=i==="path"||i==="linkpath"?a(t[i]):t[i]}}}}},6133:(t,r,i)=>{"use strict";const o=i(4976);const a=i(5873);const u=i(7147);const l=i(3597);const h=i(9405);const p=i(1017);const d=i(1815);t.exports=(t,r,i)=>{const a=o(t);if(!a.file){throw new TypeError("file is required")}if(a.gzip||a.brotli||a.file.endsWith(".br")||a.file.endsWith(".tbr")){throw new TypeError("cannot append to compressed archives")}if(!r||!Array.isArray(r)||!r.length){throw new TypeError("no files or directories specified")}r=Array.from(r);return a.sync?replaceSync(a,r):replace(a,r,i)};const replaceSync=(t,r)=>{const i=new a.Sync(t);let o=true;let l;let h;try{try{l=u.openSync(t.file,"r+")}catch(r){if(r.code==="ENOENT"){l=u.openSync(t.file,"w+")}else{throw r}}const a=u.fstatSync(l);const p=Buffer.alloc(512);e:for(h=0;h<a.size;h+=512){for(let t=0,r=0;t<512;t+=r){r=u.readSync(l,p,t,p.length-t,h+t);if(h===0&&p[0]===31&&p[1]===139){throw new Error("cannot append to compressed archives")}if(!r){break e}}const r=new d(p);if(!r.cksumValid){break}const i=512*Math.ceil(r.size/512);if(h+i+512>a.size){break}h+=i;if(t.mtimeCache){t.mtimeCache.set(r.path,r.mtime)}}o=false;streamSync(t,i,h,l,r)}finally{if(o){try{u.closeSync(l)}catch(t){}}}};const streamSync=(t,r,i,o,a)=>{const u=new l.WriteStreamSync(t.file,{fd:o,start:i});r.pipe(u);addFilesSync(r,a)};const replace=(t,r,i)=>{r=Array.from(r);const o=new a(t);const getPos=(r,i,o)=>{const cb=(t,i)=>{if(t){u.close(r,(r=>o(t)))}else{o(null,i)}};let a=0;if(i===0){return cb(null,0)}let l=0;const h=Buffer.alloc(512);const onread=(o,p)=>{if(o){return cb(o)}l+=p;if(l<512&&p){return u.read(r,h,l,h.length-l,a+l,onread)}if(a===0&&h[0]===31&&h[1]===139){return cb(new Error("cannot append to compressed archives"))}if(l<512){return cb(null,a)}const m=new d(h);if(!m.cksumValid){return cb(null,a)}const g=512*Math.ceil(m.size/512);if(a+g+512>i){return cb(null,a)}a+=g+512;if(a>=i){return cb(null,a)}if(t.mtimeCache){t.mtimeCache.set(m.path,m.mtime)}l=0;u.read(r,h,0,512,a,onread)};u.read(r,h,0,512,a,onread)};const h=new Promise(((i,a)=>{o.on("error",a);let h="r+";const onopen=(p,d)=>{if(p&&p.code==="ENOENT"&&h==="r+"){h="w+";return u.open(t.file,h,onopen)}if(p){return a(p)}u.fstat(d,((h,p)=>{if(h){return u.close(d,(()=>a(h)))}getPos(d,p.size,((u,h)=>{if(u){return a(u)}const p=new l.WriteStream(t.file,{fd:d,start:h});o.pipe(p);p.on("error",a);p.on("close",i);addFilesAsync(o,r)}))}))};u.open(t.file,h,onopen)}));return i?h.then(i,i):h};const addFilesSync=(t,r)=>{r.forEach((r=>{if(r.charAt(0)==="@"){h({file:p.resolve(t.cwd,r.slice(1)),sync:true,noResume:true,onentry:r=>t.add(r)})}else{t.add(r)}}));t.end()};const addFilesAsync=(t,r)=>{while(r.length){const i=r.shift();if(i.charAt(0)==="@"){return h({file:p.resolve(t.cwd,i.slice(1)),noResume:true,onentry:r=>t.add(r)}).then((i=>addFilesAsync(t,r)))}else{t.add(i)}}t.end()}},8047:(t,r,i)=>{const{isAbsolute:o,parse:a}=i(1017).win32;t.exports=t=>{let r="";let i=a(t);while(o(t)||i.root){const o=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":i.root;t=t.slice(o.length);r+=o;i=a(t)}return[r,t]}},422:t=>{t.exports=t=>{let r=t.length-1;let i=-1;while(r>-1&&t.charAt(r)==="/"){i=r;r--}return i===-1?t:t.slice(0,i)}},2500:(t,r)=>{"use strict";r.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);r.code=new Map(Array.from(r.name).map((t=>[t[1],t[0]])))},1634:(t,r,i)=>{"use strict";const o=i(9491);const a=i(6474);const u=i(7147);const l=i(3597);const h=i(1017);const p=i(6790);const d=i(4465);const m=i(1891);const g=i(8047);const y=i(5536);const A=i(422);const b=i(4462);const v=Symbol("onEntry");const E=Symbol("checkFs");const w=Symbol("checkFs2");const _=Symbol("pruneCache");const S=Symbol("isReusable");const C=Symbol("makeFs");const D=Symbol("file");const x=Symbol("directory");const R=Symbol("link");const O=Symbol("symlink");const k=Symbol("hardlink");const P=Symbol("unsupported");const T=Symbol("checkPath");const L=Symbol("mkdir");const I=Symbol("onError");const M=Symbol("pending");const B=Symbol("pend");const N=Symbol("unpend");const $=Symbol("ended");const j=Symbol("maybeClose");const H=Symbol("skip");const G=Symbol("doChown");const U=Symbol("uid");const W=Symbol("gid");const z=Symbol("checkedCwd");const Y=i(6113);const V=i(5868);const Q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const K=Q==="win32";const X=1024;const unlinkFile=(t,r)=>{if(!K){return u.unlink(t,r)}const i=t+".DELETE."+Y.randomBytes(16).toString("hex");u.rename(t,i,(t=>{if(t){return r(t)}u.unlink(i,r)}))};const unlinkFileSync=t=>{if(!K){return u.unlinkSync(t)}const r=t+".DELETE."+Y.randomBytes(16).toString("hex");u.renameSync(t,r);u.unlinkSync(r)};const uint32=(t,r,i)=>t===t>>>0?t:r===r>>>0?r:i;const cacheKeyNormalize=t=>A(y(b(t))).toLowerCase();const pruneCache=(t,r)=>{r=cacheKeyNormalize(r);for(const i of t.keys()){const o=cacheKeyNormalize(i);if(o===r||o.indexOf(r+"/")===0){t.delete(i)}}};const dropCache=t=>{for(const r of t.keys()){t.delete(r)}};class Unpack extends a{constructor(t){if(!t){t={}}t.ondone=t=>{this[$]=true;this[j]()};super(t);this[z]=false;this.reservations=m();this.transform=typeof t.transform==="function"?t.transform:null;this.writable=true;this.readable=false;this[M]=0;this[$]=false;this.dirCache=t.dirCache||new Map;if(typeof t.uid==="number"||typeof t.gid==="number"){if(typeof t.uid!=="number"||typeof t.gid!=="number"){throw new TypeError("cannot set owner without number uid and gid")}if(t.preserveOwner){throw new TypeError("cannot preserve owner in archive and also set owner explicitly")}this.uid=t.uid;this.gid=t.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(t.preserveOwner===undefined&&typeof t.uid!=="number"){this.preserveOwner=process.getuid&&process.getuid()===0}else{this.preserveOwner=!!t.preserveOwner}this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.maxDepth=typeof t.maxDepth==="number"?t.maxDepth:X;this.forceChown=t.forceChown===true;this.win32=!!t.win32||K;this.newer=!!t.newer;this.keep=!!t.keep;this.noMtime=!!t.noMtime;this.preservePaths=!!t.preservePaths;this.unlink=!!t.unlink;this.cwd=y(h.resolve(t.cwd||process.cwd()));this.strip=+t.strip||0;this.processUmask=t.noChmod?0:process.umask();this.umask=typeof t.umask==="number"?t.umask:this.processUmask;this.dmode=t.dmode||511&~this.umask;this.fmode=t.fmode||438&~this.umask;this.on("entry",(t=>this[v](t)))}warn(t,r,i={}){if(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT"){i.recoverable=false}return super.warn(t,r,i)}[j](){if(this[$]&&this[M]===0){this.emit("prefinish");this.emit("finish");this.emit("end")}}[T](t){const r=y(t.path);const i=r.split("/");if(this.strip){if(i.length<this.strip){return false}if(t.type==="Link"){const r=y(t.linkpath).split("/");if(r.length>=this.strip){t.linkpath=r.slice(this.strip).join("/")}else{return false}}i.splice(0,this.strip);t.path=i.join("/")}if(isFinite(this.maxDepth)&&i.length>this.maxDepth){this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:t,path:r,depth:i.length,maxDepth:this.maxDepth});return false}if(!this.preservePaths){if(i.includes("..")||K&&/^[a-z]:\.\.$/i.test(i[0])){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:t,path:r});return false}const[o,a]=g(r);if(o){t.path=a;this.warn("TAR_ENTRY_INFO",`stripping ${o} from absolute path`,{entry:t,path:r})}}if(h.isAbsolute(t.path)){t.absolute=y(h.resolve(t.path))}else{t.absolute=y(h.resolve(this.cwd,t.path))}if(!this.preservePaths&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd){this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:y(t.path),resolvedPath:t.absolute,cwd:this.cwd});return false}if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir"){return false}if(this.win32){const{root:r}=h.win32.parse(t.absolute);t.absolute=r+d.encode(t.absolute.slice(r.length));const{root:i}=h.win32.parse(t.path);t.path=i+d.encode(t.path.slice(i.length))}return true}[v](t){if(!this[T](t)){return t.resume()}o.equal(typeof t.absolute,"string");switch(t.type){case"Directory":case"GNUDumpDir":if(t.mode){t.mode=t.mode|448}case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[E](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[P](t)}}[I](t,r){if(t.name==="CwdError"){this.emit("error",t)}else{this.warn("TAR_ENTRY_ERROR",t,{entry:r});this[N]();r.resume()}}[L](t,r,i){p(y(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[G](t){return this.forceChown||this.preserveOwner&&(typeof t.uid==="number"&&t.uid!==this.processUid||typeof t.gid==="number"&&t.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[U](t){return uint32(this.uid,t.uid,this.processUid)}[W](t){return uint32(this.gid,t.gid,this.processGid)}[D](t,r){const i=t.mode&4095||this.fmode;const o=new l.WriteStream(t.absolute,{flags:V(t.size),mode:i,autoClose:false});o.on("error",(i=>{if(o.fd){u.close(o.fd,(()=>{}))}o.write=()=>true;this[I](i,t);r()}));let a=1;const done=i=>{if(i){if(o.fd){u.close(o.fd,(()=>{}))}this[I](i,t);r();return}if(--a===0){u.close(o.fd,(i=>{if(i){this[I](i,t)}else{this[N]()}r()}))}};o.on("finish",(r=>{const i=t.absolute;const l=o.fd;if(t.mtime&&!this.noMtime){a++;const r=t.atime||new Date;const o=t.mtime;u.futimes(l,r,o,(t=>t?u.utimes(i,r,o,(r=>done(r&&t))):done()))}if(this[G](t)){a++;const r=this[U](t);const o=this[W](t);u.fchown(l,r,o,(t=>t?u.chown(i,r,o,(r=>done(r&&t))):done()))}done()}));const h=this.transform?this.transform(t)||t:t;if(h!==t){h.on("error",(i=>{this[I](i,t);r()}));t.pipe(h)}h.pipe(o)}[x](t,r){const i=t.mode&4095||this.dmode;this[L](t.absolute,i,(i=>{if(i){this[I](i,t);r();return}let o=1;const done=i=>{if(--o===0){r();this[N]();t.resume()}};if(t.mtime&&!this.noMtime){o++;u.utimes(t.absolute,t.atime||new Date,t.mtime,done)}if(this[G](t)){o++;u.chown(t.absolute,this[U](t),this[W](t),done)}done()}))}[P](t){t.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t});t.resume()}[O](t,r){this[R](t,t.linkpath,"symlink",r)}[k](t,r){const i=y(h.resolve(this.cwd,t.linkpath));this[R](t,i,"link",r)}[B](){this[M]++}[N](){this[M]--;this[j]()}[H](t){this[N]();t.resume()}[S](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!K}[E](t){this[B]();const r=[t.path];if(t.linkpath){r.push(t.linkpath)}this.reservations.reserve(r,(r=>this[w](t,r)))}[_](t){if(t.type==="SymbolicLink"){dropCache(this.dirCache)}else if(t.type!=="Directory"){pruneCache(this.dirCache,t.absolute)}}[w](t,r){this[_](t);const done=i=>{this[_](t);r(i)};const checkCwd=()=>{this[L](this.cwd,this.dmode,(r=>{if(r){this[I](r,t);done();return}this[z]=true;start()}))};const start=()=>{if(t.absolute!==this.cwd){const r=y(h.dirname(t.absolute));if(r!==this.cwd){return this[L](r,this.dmode,(r=>{if(r){this[I](r,t);done();return}afterMakeParent()}))}}afterMakeParent()};const afterMakeParent=()=>{u.lstat(t.absolute,((r,i)=>{if(i&&(this.keep||this.newer&&i.mtime>t.mtime)){this[H](t);done();return}if(r||this[S](t,i)){return this[C](null,t,done)}if(i.isDirectory()){if(t.type==="Directory"){const r=!this.noChmod&&t.mode&&(i.mode&4095)!==t.mode;const afterChmod=r=>this[C](r,t,done);if(!r){return afterChmod()}return u.chmod(t.absolute,t.mode,afterChmod)}if(t.absolute!==this.cwd){return u.rmdir(t.absolute,(r=>this[C](r,t,done)))}}if(t.absolute===this.cwd){return this[C](null,t,done)}unlinkFile(t.absolute,(r=>this[C](r,t,done)))}))};if(this[z]){start()}else{checkCwd()}}[C](t,r,i){if(t){this[I](t,r);i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[D](r,i);case"Link":return this[k](r,i);case"SymbolicLink":return this[O](r,i);case"Directory":case"GNUDumpDir":return this[x](r,i)}}[R](t,r,i,o){u[i](r,t.absolute,(r=>{if(r){this[I](r,t)}else{this[N]();t.resume()}o()}))}}const callSync=t=>{try{return[null,t()]}catch(t){return[t,null]}};class UnpackSync extends Unpack{[C](t,r){return super[C](t,r,(()=>{}))}[E](t){this[_](t);if(!this[z]){const r=this[L](this.cwd,this.dmode);if(r){return this[I](r,t)}this[z]=true}if(t.absolute!==this.cwd){const r=y(h.dirname(t.absolute));if(r!==this.cwd){const i=this[L](r,this.dmode);if(i){return this[I](i,t)}}}const[r,i]=callSync((()=>u.lstatSync(t.absolute)));if(i&&(this.keep||this.newer&&i.mtime>t.mtime)){return this[H](t)}if(r||this[S](t,i)){return this[C](null,t)}if(i.isDirectory()){if(t.type==="Directory"){const r=!this.noChmod&&t.mode&&(i.mode&4095)!==t.mode;const[o]=r?callSync((()=>{u.chmodSync(t.absolute,t.mode)})):[];return this[C](o,t)}const[r]=callSync((()=>u.rmdirSync(t.absolute)));this[C](r,t)}const[o]=t.absolute===this.cwd?[]:callSync((()=>unlinkFileSync(t.absolute)));this[C](o,t)}[D](t,r){const i=t.mode&4095||this.fmode;const oner=i=>{let a;try{u.closeSync(o)}catch(t){a=t}if(i||a){this[I](i||a,t)}r()};let o;try{o=u.openSync(t.absolute,V(t.size),i)}catch(t){return oner(t)}const a=this.transform?this.transform(t)||t:t;if(a!==t){a.on("error",(r=>this[I](r,t)));t.pipe(a)}a.on("data",(t=>{try{u.writeSync(o,t,0,t.length)}catch(t){oner(t)}}));a.on("end",(r=>{let i=null;if(t.mtime&&!this.noMtime){const r=t.atime||new Date;const a=t.mtime;try{u.futimesSync(o,r,a)}catch(o){try{u.utimesSync(t.absolute,r,a)}catch(t){i=o}}}if(this[G](t)){const r=this[U](t);const a=this[W](t);try{u.fchownSync(o,r,a)}catch(o){try{u.chownSync(t.absolute,r,a)}catch(t){i=i||o}}}oner(i)}))}[x](t,r){const i=t.mode&4095||this.dmode;const o=this[L](t.absolute,i);if(o){this[I](o,t);r();return}if(t.mtime&&!this.noMtime){try{u.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch(o){}}if(this[G](t)){try{u.chownSync(t.absolute,this[U](t),this[W](t))}catch(o){}}r();t.resume()}[L](t,r){try{return p.sync(y(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(t){return t}}[R](t,r,i,o){try{u[i+"Sync"](r,t.absolute);o();t.resume()}catch(r){return this[I](r,t)}}}Unpack.Sync=UnpackSync;t.exports=Unpack},4437:(t,r,i)=>{"use strict";const o=i(4976);const a=i(6133);t.exports=(t,r,i)=>{const u=o(t);if(!u.file){throw new TypeError("file is required")}if(u.gzip||u.brotli||u.file.endsWith(".br")||u.file.endsWith(".tbr")){throw new TypeError("cannot append to compressed archives")}if(!r||!Array.isArray(r)||!r.length){throw new TypeError("no files or directories specified")}r=Array.from(r);mtimeFilter(u);return a(u,r,i)};const mtimeFilter=t=>{const r=t.filter;if(!t.mtimeCache){t.mtimeCache=new Map}t.filter=r?(i,o)=>r(i,o)&&!(t.mtimeCache.get(i)>o.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}},4239:t=>{"use strict";t.exports=t=>class extends t{warn(t,r,i={}){if(this.file){i.file=this.file}if(this.cwd){i.cwd=this.cwd}i.code=r instanceof Error&&r.code||t;i.tarCode=t;if(!this.strict&&i.recoverable!==false){if(r instanceof Error){i=Object.assign(r,i);r=r.message}this.emit("warn",i.tarCode,r,i)}else if(r instanceof Error){this.emit("error",Object.assign(r,i))}else{this.emit("error",Object.assign(new Error(`${t}: ${r}`),i))}}}},4465:t=>{"use strict";const r=["|","<",">","?",":"];const i=r.map((t=>String.fromCharCode(61440+t.charCodeAt(0))));const o=new Map(r.map(((t,r)=>[t,i[r]])));const a=new Map(i.map(((t,i)=>[t,r[i]])));t.exports={encode:t=>r.reduce(((t,r)=>t.split(r).join(o.get(r))),t),decode:t=>i.reduce(((t,r)=>t.split(r).join(a.get(r))),t)}},2435:(t,r,i)=>{"use strict";const{Minipass:o}=i(6047);const a=i(3179);const u=i(1815);const l=i(7147);const h=i(1017);const p=i(5536);const d=i(422);const prefixPath=(t,r)=>{if(!r){return p(t)}t=p(t).replace(/^\.(\/|$)/,"");return d(r)+"/"+t};const m=16*1024*1024;const g=Symbol("process");const y=Symbol("file");const A=Symbol("directory");const b=Symbol("symlink");const v=Symbol("hardlink");const E=Symbol("header");const w=Symbol("read");const _=Symbol("lstat");const S=Symbol("onlstat");const C=Symbol("onread");const D=Symbol("onreadlink");const x=Symbol("openfile");const R=Symbol("onopenfile");const O=Symbol("close");const k=Symbol("mode");const P=Symbol("awaitDrain");const T=Symbol("ondrain");const L=Symbol("prefix");const I=Symbol("hadError");const M=i(4239);const B=i(4465);const N=i(8047);const $=i(2701);const j=M(class WriteEntry extends o{constructor(t,r){r=r||{};super(r);if(typeof t!=="string"){throw new TypeError("path is required")}this.path=p(t);this.portable=!!r.portable;this.myuid=process.getuid&&process.getuid()||0;this.myuser=process.env.USER||"";this.maxReadSize=r.maxReadSize||m;this.linkCache=r.linkCache||new Map;this.statCache=r.statCache||new Map;this.preservePaths=!!r.preservePaths;this.cwd=p(r.cwd||process.cwd());this.strict=!!r.strict;this.noPax=!!r.noPax;this.noMtime=!!r.noMtime;this.mtime=r.mtime||null;this.prefix=r.prefix?p(r.prefix):null;this.fd=null;this.blockLen=null;this.blockRemain=null;this.buf=null;this.offset=null;this.length=null;this.pos=null;this.remain=null;if(typeof r.onwarn==="function"){this.on("warn",r.onwarn)}let i=false;if(!this.preservePaths){const[t,r]=N(this.path);if(t){this.path=r;i=t}}this.win32=!!r.win32||process.platform==="win32";if(this.win32){this.path=B.decode(this.path.replace(/\\/g,"/"));t=t.replace(/\\/g,"/")}this.absolute=p(r.absolute||h.resolve(this.cwd,t));if(this.path===""){this.path="./"}if(i){this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path})}if(this.statCache.has(this.absolute)){this[S](this.statCache.get(this.absolute))}else{this[_]()}}emit(t,...r){if(t==="error"){this[I]=true}return super.emit(t,...r)}[_](){l.lstat(this.absolute,((t,r)=>{if(t){return this.emit("error",t)}this[S](r)}))}[S](t){this.statCache.set(this.absolute,t);this.stat=t;if(!t.isFile()){t.size=0}this.type=getType(t);this.emit("stat",t);this[g]()}[g](){switch(this.type){case"File":return this[y]();case"Directory":return this[A]();case"SymbolicLink":return this[b]();default:return this.end()}}[k](t){return $(t,this.type==="Directory",this.portable)}[L](t){return prefixPath(t,this.prefix)}[E](){if(this.type==="Directory"&&this.portable){this.noMtime=true}this.header=new u({path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,mode:this[k](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax){super.write(new a({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode())}super.write(this.header.block)}[A](){if(this.path.slice(-1)!=="/"){this.path+="/"}this.stat.size=0;this[E]();this.end()}[b](){l.readlink(this.absolute,((t,r)=>{if(t){return this.emit("error",t)}this[D](r)}))}[D](t){this.linkpath=p(t);this[E]();this.end()}[v](t){this.type="Link";this.linkpath=p(h.relative(this.cwd,t));this.stat.size=0;this[E]();this.end()}[y](){if(this.stat.nlink>1){const t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){const r=this.linkCache.get(t);if(r.indexOf(this.cwd)===0){return this[v](r)}}this.linkCache.set(t,this.absolute)}this[E]();if(this.stat.size===0){return this.end()}this[x]()}[x](){l.open(this.absolute,"r",((t,r)=>{if(t){return this.emit("error",t)}this[R](r)}))}[R](t){this.fd=t;if(this[I]){return this[O]()}this.blockLen=512*Math.ceil(this.stat.size/512);this.blockRemain=this.blockLen;const r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r);this.offset=0;this.pos=0;this.remain=this.stat.size;this.length=this.buf.length;this[w]()}[w](){const{fd:t,buf:r,offset:i,length:o,pos:a}=this;l.read(t,r,i,o,a,((t,r)=>{if(t){return this[O]((()=>this.emit("error",t)))}this[C](r)}))}[O](t){l.close(this.fd,t)}[C](t){if(t<=0&&this.remain>0){const t=new Error("encountered unexpected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[O]((()=>this.emit("error",t)))}if(t>this.remain){const t=new Error("did not encounter expected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[O]((()=>this.emit("error",t)))}if(t===this.remain){for(let r=t;r<this.length&&t<this.blockRemain;r++){this.buf[r+this.offset]=0;t++;this.remain++}}const r=this.offset===0&&t===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+t);const i=this.write(r);if(!i){this[P]((()=>this[T]()))}else{this[T]()}}[P](t){this.once("drain",t)}write(t){if(this.blockRemain<t.length){const t=new Error("writing more data than expected");t.path=this.absolute;return this.emit("error",t)}this.remain-=t.length;this.blockRemain-=t.length;this.pos+=t.length;this.offset+=t.length;return super.write(t)}[T](){if(!this.remain){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}return this[O]((t=>t?this.emit("error",t):this.end()))}if(this.offset>=this.length){this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length));this.offset=0}this.length=this.buf.length-this.offset;this[w]()}});class WriteEntrySync extends j{[_](){this[S](l.lstatSync(this.absolute))}[b](){this[D](l.readlinkSync(this.absolute))}[x](){this[R](l.openSync(this.absolute,"r"))}[w](){let t=true;try{const{fd:r,buf:i,offset:o,length:a,pos:u}=this;const h=l.readSync(r,i,o,a,u);this[C](h);t=false}finally{if(t){try{this[O]((()=>{}))}catch(t){}}}}[P](t){t()}[O](t){l.closeSync(this.fd);t()}}const H=M(class WriteEntryTar extends o{constructor(t,r){r=r||{};super(r);this.preservePaths=!!r.preservePaths;this.portable=!!r.portable;this.strict=!!r.strict;this.noPax=!!r.noPax;this.noMtime=!!r.noMtime;this.readEntry=t;this.type=t.type;if(this.type==="Directory"&&this.portable){this.noMtime=true}this.prefix=r.prefix||null;this.path=p(t.path);this.mode=this[k](t.mode);this.uid=this.portable?null:t.uid;this.gid=this.portable?null:t.gid;this.uname=this.portable?null:t.uname;this.gname=this.portable?null:t.gname;this.size=t.size;this.mtime=this.noMtime?null:r.mtime||t.mtime;this.atime=this.portable?null:t.atime;this.ctime=this.portable?null:t.ctime;this.linkpath=p(t.linkpath);if(typeof r.onwarn==="function"){this.on("warn",r.onwarn)}let i=false;if(!this.preservePaths){const[t,r]=N(this.path);if(t){this.path=r;i=t}}this.remain=t.size;this.blockRemain=t.startBlockSize;this.header=new u({path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(i){this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path})}if(this.header.encode()&&!this.noPax){super.write(new a({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode())}super.write(this.header.block);t.pipe(this)}[L](t){return prefixPath(t,this.prefix)}[k](t){return $(t,this.type==="Directory",this.portable)}write(t){const r=t.length;if(r>this.blockRemain){throw new Error("writing more to entry than is appropriate")}this.blockRemain-=r;return super.write(t)}end(){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}return super.end()}});j.Sync=WriteEntrySync;j.Tar=H;const getType=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";t.exports=j},5649:(t,r,i)=>{"use strict";const o=i(7147);const a=i(1017);const u=o.lchown?"lchown":"chown";const l=o.lchownSync?"lchownSync":"chownSync";const h=o.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const lchownSync=(t,r,i)=>{try{return o[l](t,r,i)}catch(t){if(t.code!=="ENOENT")throw t}};const chownSync=(t,r,i)=>{try{return o.chownSync(t,r,i)}catch(t){if(t.code!=="ENOENT")throw t}};const p=h?(t,r,i,a)=>u=>{if(!u||u.code!=="EISDIR")a(u);else o.chown(t,r,i,a)}:(t,r,i,o)=>o;const d=h?(t,r,i)=>{try{return lchownSync(t,r,i)}catch(o){if(o.code!=="EISDIR")throw o;chownSync(t,r,i)}}:(t,r,i)=>lchownSync(t,r,i);const m=process.version;let readdir=(t,r,i)=>o.readdir(t,r,i);let readdirSync=(t,r)=>o.readdirSync(t,r);if(/^v4\./.test(m))readdir=(t,r,i)=>o.readdir(t,i);const chown=(t,r,i,a)=>{o[u](t,r,i,p(t,r,i,(t=>{a(t&&t.code!=="ENOENT"?t:null)})))};const chownrKid=(t,r,i,u,l)=>{if(typeof r==="string")return o.lstat(a.resolve(t,r),((o,a)=>{if(o)return l(o.code!=="ENOENT"?o:null);a.name=r;chownrKid(t,a,i,u,l)}));if(r.isDirectory()){chownr(a.resolve(t,r.name),i,u,(o=>{if(o)return l(o);const h=a.resolve(t,r.name);chown(h,i,u,l)}))}else{const o=a.resolve(t,r.name);chown(o,i,u,l)}};const chownr=(t,r,i,o)=>{readdir(t,{withFileTypes:true},((a,u)=>{if(a){if(a.code==="ENOENT")return o();else if(a.code!=="ENOTDIR"&&a.code!=="ENOTSUP")return o(a)}if(a||!u.length)return chown(t,r,i,o);let l=u.length;let h=null;const then=a=>{if(h)return;if(a)return o(h=a);if(--l===0)return chown(t,r,i,o)};u.forEach((o=>chownrKid(t,o,r,i,then)))}))};const chownrKidSync=(t,r,i,u)=>{if(typeof r==="string"){try{const i=o.lstatSync(a.resolve(t,r));i.name=r;r=i}catch(t){if(t.code==="ENOENT")return;else throw t}}if(r.isDirectory())chownrSync(a.resolve(t,r.name),i,u);d(a.resolve(t,r.name),i,u)};const chownrSync=(t,r,i)=>{let o;try{o=readdirSync(t,{withFileTypes:true})}catch(o){if(o.code==="ENOENT")return;else if(o.code==="ENOTDIR"||o.code==="ENOTSUP")return d(t,r,i);else throw o}if(o&&o.length)o.forEach((o=>chownrKidSync(t,o,r,i)));return d(t,r,i)};t.exports=chownr;chownr.sync=chownrSync},6047:(t,r,i)=>{"use strict";const o=typeof process==="object"&&process?process:{stdout:null,stderr:null};const a=i(2361);const u=i(2781);const l=i(1576);const h=l.StringDecoder;const p=Symbol("EOF");const d=Symbol("maybeEmitEnd");const m=Symbol("emittedEnd");const g=Symbol("emittingEnd");const y=Symbol("emittedError");const A=Symbol("closed");const b=Symbol("read");const v=Symbol("flush");const E=Symbol("flushChunk");const w=Symbol("encoding");const _=Symbol("decoder");const S=Symbol("flowing");const C=Symbol("paused");const D=Symbol("resume");const x=Symbol("buffer");const R=Symbol("pipes");const O=Symbol("bufferLength");const k=Symbol("bufferPush");const P=Symbol("bufferShift");const T=Symbol("objectMode");const L=Symbol("destroyed");const I=Symbol("error");const M=Symbol("emitData");const B=Symbol("emitEnd");const N=Symbol("emitEnd2");const $=Symbol("async");const j=Symbol("abort");const H=Symbol("aborted");const G=Symbol("signal");const defer=t=>Promise.resolve().then(t);const U=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const W=U&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const z=U&&Symbol.iterator||Symbol("iterator not implemented");const isEndish=t=>t==="end"||t==="finish"||t==="prefinish";const isArrayBuffer=t=>t instanceof ArrayBuffer||typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const isArrayBufferView=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);class Pipe{constructor(t,r,i){this.src=t;this.dest=r;this.opts=i;this.ondrain=()=>t[D]();r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(t,r,i){super(t,r,i);this.proxyErrors=t=>r.emit("error",t);t.on("error",this.proxyErrors)}}class Minipass extends u{constructor(t){super();this[S]=false;this[C]=false;this[R]=[];this[x]=[];this[T]=t&&t.objectMode||false;if(this[T])this[w]=null;else this[w]=t&&t.encoding||null;if(this[w]==="buffer")this[w]=null;this[$]=t&&!!t.async||false;this[_]=this[w]?new h(this[w]):null;this[p]=false;this[m]=false;this[g]=false;this[A]=false;this[y]=null;this.writable=true;this.readable=true;this[O]=0;this[L]=false;if(t&&t.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[x]})}if(t&&t.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[R]})}this[G]=t&&t.signal;this[H]=false;if(this[G]){this[G].addEventListener("abort",(()=>this[j]()));if(this[G].aborted){this[j]()}}}get bufferLength(){return this[O]}get encoding(){return this[w]}set encoding(t){if(this[T])throw new Error("cannot set encoding in objectMode");if(this[w]&&t!==this[w]&&(this[_]&&this[_].lastNeed||this[O]))throw new Error("cannot change encoding");if(this[w]!==t){this[_]=t?new h(t):null;if(this[x].length)this[x]=this[x].map((t=>this[_].write(t)))}this[w]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[T]}set objectMode(t){this[T]=this[T]||!!t}get["async"](){return this[$]}set["async"](t){this[$]=this[$]||!!t}[j](){this[H]=true;this.emit("abort",this[G].reason);this.destroy(this[G].reason)}get aborted(){return this[H]}set aborted(t){}write(t,r,i){if(this[H])return false;if(this[p])throw new Error("write after end");if(this[L]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof r==="function")i=r,r="utf8";if(!r)r="utf8";const o=this[$]?defer:t=>t();if(!this[T]&&!Buffer.isBuffer(t)){if(isArrayBufferView(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(isArrayBuffer(t))t=Buffer.from(t);else if(typeof t!=="string")this.objectMode=true}if(this[T]){if(this.flowing&&this[O]!==0)this[v](true);if(this.flowing)this.emit("data",t);else this[k](t);if(this[O]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(!t.length){if(this[O]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(typeof t==="string"&&!(r===this[w]&&!this[_].lastNeed)){t=Buffer.from(t,r)}if(Buffer.isBuffer(t)&&this[w])t=this[_].write(t);if(this.flowing&&this[O]!==0)this[v](true);if(this.flowing)this.emit("data",t);else this[k](t);if(this[O]!==0)this.emit("readable");if(i)o(i);return this.flowing}read(t){if(this[L])return null;if(this[O]===0||t===0||t>this[O]){this[d]();return null}if(this[T])t=null;if(this[x].length>1&&!this[T]){if(this.encoding)this[x]=[this[x].join("")];else this[x]=[Buffer.concat(this[x],this[O])]}const r=this[b](t||null,this[x][0]);this[d]();return r}[b](t,r){if(t===r.length||t===null)this[P]();else{this[x][0]=r.slice(t);r=r.slice(0,t);this[O]-=t}this.emit("data",r);if(!this[x].length&&!this[p])this.emit("drain");return r}end(t,r,i){if(typeof t==="function")i=t,t=null;if(typeof r==="function")i=r,r="utf8";if(t)this.write(t,r);if(i)this.once("end",i);this[p]=true;this.writable=false;if(this.flowing||!this[C])this[d]();return this}[D](){if(this[L])return;this[C]=false;this[S]=true;this.emit("resume");if(this[x].length)this[v]();else if(this[p])this[d]();else this.emit("drain")}resume(){return this[D]()}pause(){this[S]=false;this[C]=true}get destroyed(){return this[L]}get flowing(){return this[S]}get paused(){return this[C]}[k](t){if(this[T])this[O]+=1;else this[O]+=t.length;this[x].push(t)}[P](){if(this[T])this[O]-=1;else this[O]-=this[x][0].length;return this[x].shift()}[v](t){do{}while(this[E](this[P]())&&this[x].length);if(!t&&!this[x].length&&!this[p])this.emit("drain")}[E](t){this.emit("data",t);return this.flowing}pipe(t,r){if(this[L])return;const i=this[m];r=r||{};if(t===o.stdout||t===o.stderr)r.end=false;else r.end=r.end!==false;r.proxyErrors=!!r.proxyErrors;if(i){if(r.end)t.end()}else{this[R].push(!r.proxyErrors?new Pipe(this,t,r):new PipeProxyErrors(this,t,r));if(this[$])defer((()=>this[D]()));else this[D]()}return t}unpipe(t){const r=this[R].find((r=>r.dest===t));if(r){this[R].splice(this[R].indexOf(r),1);r.unpipe()}}addListener(t,r){return this.on(t,r)}on(t,r){const i=super.on(t,r);if(t==="data"&&!this[R].length&&!this.flowing)this[D]();else if(t==="readable"&&this[O]!==0)super.emit("readable");else if(isEndish(t)&&this[m]){super.emit(t);this.removeAllListeners(t)}else if(t==="error"&&this[y]){if(this[$])defer((()=>r.call(this,this[y])));else r.call(this,this[y])}return i}get emittedEnd(){return this[m]}[d](){if(!this[g]&&!this[m]&&!this[L]&&this[x].length===0&&this[p]){this[g]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[A])this.emit("close");this[g]=false}}emit(t,r,...i){if(t!=="error"&&t!=="close"&&t!==L&&this[L])return;else if(t==="data"){return!this[T]&&!r?false:this[$]?defer((()=>this[M](r))):this[M](r)}else if(t==="end"){return this[B]()}else if(t==="close"){this[A]=true;if(!this[m]&&!this[L])return;const t=super.emit("close");this.removeAllListeners("close");return t}else if(t==="error"){this[y]=r;super.emit(I,r);const t=!this[G]||this.listeners("error").length?super.emit("error",r):false;this[d]();return t}else if(t==="resume"){const t=super.emit("resume");this[d]();return t}else if(t==="finish"||t==="prefinish"){const r=super.emit(t);this.removeAllListeners(t);return r}const o=super.emit(t,r,...i);this[d]();return o}[M](t){for(const r of this[R]){if(r.dest.write(t)===false)this.pause()}const r=super.emit("data",t);this[d]();return r}[B](){if(this[m])return;this[m]=true;this.readable=false;if(this[$])defer((()=>this[N]()));else this[N]()}[N](){if(this[_]){const t=this[_].end();if(t){for(const r of this[R]){r.dest.write(t)}super.emit("data",t)}}for(const t of this[R]){t.end()}const t=super.emit("end");this.removeAllListeners("end");return t}collect(){const t=[];if(!this[T])t.dataLength=0;const r=this.promise();this.on("data",(r=>{t.push(r);if(!this[T])t.dataLength+=r.length}));return r.then((()=>t))}concat(){return this[T]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((t=>this[T]?Promise.reject(new Error("cannot concat in objectMode")):this[w]?t.join(""):Buffer.concat(t,t.dataLength)))}promise(){return new Promise(((t,r)=>{this.on(L,(()=>r(new Error("stream destroyed"))));this.on("error",(t=>r(t)));this.on("end",(()=>t()))}))}[W](){let t=false;const stop=()=>{this.pause();t=true;return Promise.resolve({done:true})};const next=()=>{if(t)return stop();const r=this.read();if(r!==null)return Promise.resolve({done:false,value:r});if(this[p])return stop();let i=null;let o=null;const onerr=t=>{this.removeListener("data",ondata);this.removeListener("end",onend);this.removeListener(L,ondestroy);stop();o(t)};const ondata=t=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.removeListener(L,ondestroy);this.pause();i({value:t,done:!!this[p]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);this.removeListener(L,ondestroy);stop();i({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((t,r)=>{o=r;i=t;this.once(L,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[W](){return this}}}[z](){let t=false;const stop=()=>{this.pause();this.removeListener(I,stop);this.removeListener(L,stop);this.removeListener("end",stop);t=true;return{done:true}};const next=()=>{if(t)return stop();const r=this.read();return r===null?stop():{value:r}};this.once("end",stop);this.once(I,stop);this.once(L,stop);return{next:next,throw:stop,return:stop,[z](){return this}}}destroy(t){if(this[L]){if(t)this.emit("error",t);else this.emit(L);return this}this[L]=true;this[x].length=0;this[O]=0;if(typeof this.close==="function"&&!this[A])this.close();if(t)this.emit("error",t);else this.emit(L);return this}static isStream(t){return!!t&&(t instanceof Minipass||t instanceof u||t instanceof a&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function"))}}r.Minipass=Minipass},4184:(t,r,i)=>{const o=i(9320);const a=i(5467);const{mkdirpNative:u,mkdirpNativeSync:l}=i(5625);const{mkdirpManual:h,mkdirpManualSync:p}=i(5124);const{useNative:d,useNativeSync:m}=i(628);const mkdirp=(t,r)=>{t=a(t);r=o(r);return d(r)?u(t,r):h(t,r)};const mkdirpSync=(t,r)=>{t=a(t);r=o(r);return m(r)?l(t,r):p(t,r)};mkdirp.sync=mkdirpSync;mkdirp.native=(t,r)=>u(a(t),o(r));mkdirp.manual=(t,r)=>h(a(t),o(r));mkdirp.nativeSync=(t,r)=>l(a(t),o(r));mkdirp.manualSync=(t,r)=>p(a(t),o(r));t.exports=mkdirp},9731:(t,r,i)=>{const{dirname:o}=i(1017);const findMade=(t,r,i=undefined)=>{if(i===r)return Promise.resolve();return t.statAsync(r).then((t=>t.isDirectory()?i:undefined),(i=>i.code==="ENOENT"?findMade(t,o(r),r):undefined))};const findMadeSync=(t,r,i=undefined)=>{if(i===r)return undefined;try{return t.statSync(r).isDirectory()?i:undefined}catch(i){return i.code==="ENOENT"?findMadeSync(t,o(r),r):undefined}};t.exports={findMade:findMade,findMadeSync:findMadeSync}},5124:(t,r,i)=>{const{dirname:o}=i(1017);const mkdirpManual=(t,r,i)=>{r.recursive=false;const a=o(t);if(a===t){return r.mkdirAsync(t,r).catch((t=>{if(t.code!=="EISDIR")throw t}))}return r.mkdirAsync(t,r).then((()=>i||t),(o=>{if(o.code==="ENOENT")return mkdirpManual(a,r).then((i=>mkdirpManual(t,r,i)));if(o.code!=="EEXIST"&&o.code!=="EROFS")throw o;return r.statAsync(t).then((t=>{if(t.isDirectory())return i;else throw o}),(()=>{throw o}))}))};const mkdirpManualSync=(t,r,i)=>{const a=o(t);r.recursive=false;if(a===t){try{return r.mkdirSync(t,r)}catch(t){if(t.code!=="EISDIR")throw t;else return}}try{r.mkdirSync(t,r);return i||t}catch(o){if(o.code==="ENOENT")return mkdirpManualSync(t,r,mkdirpManualSync(a,r,i));if(o.code!=="EEXIST"&&o.code!=="EROFS")throw o;try{if(!r.statSync(t).isDirectory())throw o}catch(t){throw o}}};t.exports={mkdirpManual:mkdirpManual,mkdirpManualSync:mkdirpManualSync}},5625:(t,r,i)=>{const{dirname:o}=i(1017);const{findMade:a,findMadeSync:u}=i(9731);const{mkdirpManual:l,mkdirpManualSync:h}=i(5124);const mkdirpNative=(t,r)=>{r.recursive=true;const i=o(t);if(i===t)return r.mkdirAsync(t,r);return a(r,t).then((i=>r.mkdirAsync(t,r).then((()=>i)).catch((i=>{if(i.code==="ENOENT")return l(t,r);else throw i}))))};const mkdirpNativeSync=(t,r)=>{r.recursive=true;const i=o(t);if(i===t)return r.mkdirSync(t,r);const a=u(r,t);try{r.mkdirSync(t,r);return a}catch(i){if(i.code==="ENOENT")return h(t,r);else throw i}};t.exports={mkdirpNative:mkdirpNative,mkdirpNativeSync:mkdirpNativeSync}},9320:(t,r,i)=>{const{promisify:o}=i(3837);const a=i(7147);const optsArg=t=>{if(!t)t={mode:511,fs:a};else if(typeof t==="object")t={mode:511,fs:a,...t};else if(typeof t==="number")t={mode:t,fs:a};else if(typeof t==="string")t={mode:parseInt(t,8),fs:a};else throw new TypeError("invalid options argument");t.mkdir=t.mkdir||t.fs.mkdir||a.mkdir;t.mkdirAsync=o(t.mkdir);t.stat=t.stat||t.fs.stat||a.stat;t.statAsync=o(t.stat);t.statSync=t.statSync||t.fs.statSync||a.statSync;t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||a.mkdirSync;return t};t.exports=optsArg},5467:(t,r,i)=>{const o=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:a,parse:u}=i(1017);const pathArg=t=>{if(/\0/.test(t)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"})}t=a(t);if(o==="win32"){const r=/[*|"<>?:]/;const{root:i}=u(t);if(r.test(t.substr(i.length))){throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}}return t};t.exports=pathArg},628:(t,r,i)=>{const o=i(7147);const a=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const u=a.replace(/^v/,"").split(".");const l=+u[0]>10||+u[0]===10&&+u[1]>=12;const h=!l?()=>false:t=>t.mkdir===o.mkdir;const p=!l?()=>false:t=>t.mkdirSync===o.mkdirSync;t.exports={useNative:h,useNativeSync:p}},887:(t,r,i)=>{"use strict";
87
+ var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){t.exports=o}else{copyProps(o,r);r.Buffer=SafeBuffer}function SafeBuffer(t,r,i){return a(t,r,i)}SafeBuffer.prototype=Object.create(a.prototype);copyProps(a,SafeBuffer);SafeBuffer.from=function(t,r,i){if(typeof t==="number"){throw new TypeError("Argument must not be a number")}return a(t,r,i)};SafeBuffer.alloc=function(t,r,i){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}var o=a(t);if(r!==undefined){if(typeof i==="string"){o.fill(r,i)}else{o.fill(r)}}else{o.fill(0)}return o};SafeBuffer.allocUnsafe=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return a(t)};SafeBuffer.allocUnsafeSlow=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return o.SlowBuffer(t)}},1790:(t,r,i)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(t,r){r=a(r);if(t instanceof Comparator){if(t.loose===!!r.loose){return t}else{t=t.value}}t=t.trim().split(/\s+/).join(" ");p("comparator",t,r);this.options=r;this.loose=!!r.loose;this.parse(t);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}p("comp",this)}parse(t){const r=this.options.loose?u[l.COMPARATORLOOSE]:u[l.COMPARATOR];const i=t.match(r);if(!i){throw new TypeError(`Invalid comparator: ${t}`)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=o}else{this.semver=new d(i[2],this.options.loose)}}toString(){return this.value}test(t){p("Comparator.test",t,this.options.loose);if(this.semver===o||t===o){return true}if(typeof t==="string"){try{t=new d(t,this.options)}catch(t){return false}}return h(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new m(t.value,r).test(this.value)}else if(t.operator===""){if(t.value===""){return true}return new m(this.value,r).test(t.semver)}r=a(r);if(r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")){return false}if(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&t.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&t.operator.startsWith("<")){return true}if(this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")){return true}if(h(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")){return true}if(h(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")){return true}return false}}t.exports=Comparator;const a=i(6772);const{safeRe:u,t:l}=i(4063);const h=i(8801);const p=i(3619);const d=i(1490);const m=i(5287)},5287:(t,r,i)=>{const o=/\s+/g;class Range{constructor(t,r){r=l(r);if(t instanceof Range){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{return new Range(t.raw,r)}}if(t instanceof h){this.raw=t.value;this.set=[[t]];this.formatted=undefined;return this}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=t.trim().replace(o," ");this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const t=this.set[0];this.set=this.set.filter((t=>!isNullSet(t[0])));if(this.set.length===0){this.set=[t]}else if(this.set.length>1){for(const t of this.set){if(t.length===1&&isAny(t[0])){this.set=[t];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let t=0;t<this.set.length;t++){if(t>0){this.formatted+="||"}const r=this.set[t];for(let t=0;t<r.length;t++){if(t>0){this.formatted+=" "}this.formatted+=r[t].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){const r=(this.options.includePrerelease&&v)|(this.options.loose&&w);const i=r+":"+t;const o=u.get(i);if(o){return o}const a=this.options.loose;const l=a?m[g.HYPHENRANGELOOSE]:m[g.HYPHENRANGE];t=t.replace(l,hyphenReplace(this.options.includePrerelease));p("hyphen replace",t);t=t.replace(m[g.COMPARATORTRIM],y);p("comparator trim",t);t=t.replace(m[g.TILDETRIM],A);p("tilde trim",t);t=t.replace(m[g.CARETTRIM],b);p("caret trim",t);let d=t.split(" ").map((t=>parseComparator(t,this.options))).join(" ").split(/\s+/).map((t=>replaceGTE0(t,this.options)));if(a){d=d.filter((t=>{p("loose invalid filter",t,this.options);return!!t.match(m[g.COMPARATORLOOSE])}))}p("range list",d);const E=new Map;const _=d.map((t=>new h(t,this.options)));for(const t of _){if(isNullSet(t)){return[t]}E.set(t.value,t)}if(E.size>1&&E.has("")){E.delete("")}const S=[...E.values()];u.set(i,S);return S}intersects(t,r){if(!(t instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((i=>isSatisfiable(i,r)&&t.set.some((t=>isSatisfiable(t,r)&&i.every((i=>t.every((t=>i.intersects(t,r)))))))))}test(t){if(!t){return false}if(typeof t==="string"){try{t=new d(t,this.options)}catch(t){return false}}for(let r=0;r<this.set.length;r++){if(testSet(this.set[r],t,this.options)){return true}}return false}}t.exports=Range;const a=i(1191);const u=new a;const l=i(6772);const h=i(1790);const p=i(3619);const d=i(1490);const{safeRe:m,t:g,comparatorTrimReplace:y,tildeTrimReplace:A,caretTrimReplace:b}=i(4063);const{FLAG_INCLUDE_PRERELEASE:v,FLAG_LOOSE:w}=i(9073);const isNullSet=t=>t.value==="<0.0.0-0";const isAny=t=>t.value==="";const isSatisfiable=(t,r)=>{let i=true;const o=t.slice();let a=o.pop();while(i&&o.length){i=o.every((t=>a.intersects(t,r)));a=o.pop()}return i};const parseComparator=(t,r)=>{p("comp",t,r);t=replaceCarets(t,r);p("caret",t);t=replaceTildes(t,r);p("tildes",t);t=replaceXRanges(t,r);p("xrange",t);t=replaceStars(t,r);p("stars",t);return t};const isX=t=>!t||t.toLowerCase()==="x"||t==="*";const replaceTildes=(t,r)=>t.trim().split(/\s+/).map((t=>replaceTilde(t,r))).join(" ");const replaceTilde=(t,r)=>{const i=r.loose?m[g.TILDELOOSE]:m[g.TILDE];return t.replace(i,((r,i,o,a,u)=>{p("tilde",t,r,i,o,a,u);let l;if(isX(i)){l=""}else if(isX(o)){l=`>=${i}.0.0 <${+i+1}.0.0-0`}else if(isX(a)){l=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`}else if(u){p("replaceTilde pr",u);l=`>=${i}.${o}.${a}-${u} <${i}.${+o+1}.0-0`}else{l=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`}p("tilde return",l);return l}))};const replaceCarets=(t,r)=>t.trim().split(/\s+/).map((t=>replaceCaret(t,r))).join(" ");const replaceCaret=(t,r)=>{p("caret",t,r);const i=r.loose?m[g.CARETLOOSE]:m[g.CARET];const o=r.includePrerelease?"-0":"";return t.replace(i,((r,i,a,u,l)=>{p("caret",t,r,i,a,u,l);let h;if(isX(i)){h=""}else if(isX(a)){h=`>=${i}.0.0${o} <${+i+1}.0.0-0`}else if(isX(u)){if(i==="0"){h=`>=${i}.${a}.0${o} <${i}.${+a+1}.0-0`}else{h=`>=${i}.${a}.0${o} <${+i+1}.0.0-0`}}else if(l){p("replaceCaret pr",l);if(i==="0"){if(a==="0"){h=`>=${i}.${a}.${u}-${l} <${i}.${a}.${+u+1}-0`}else{h=`>=${i}.${a}.${u}-${l} <${i}.${+a+1}.0-0`}}else{h=`>=${i}.${a}.${u}-${l} <${+i+1}.0.0-0`}}else{p("no pr");if(i==="0"){if(a==="0"){h=`>=${i}.${a}.${u}${o} <${i}.${a}.${+u+1}-0`}else{h=`>=${i}.${a}.${u}${o} <${i}.${+a+1}.0-0`}}else{h=`>=${i}.${a}.${u} <${+i+1}.0.0-0`}}p("caret return",h);return h}))};const replaceXRanges=(t,r)=>{p("replaceXRanges",t,r);return t.split(/\s+/).map((t=>replaceXRange(t,r))).join(" ")};const replaceXRange=(t,r)=>{t=t.trim();const i=r.loose?m[g.XRANGELOOSE]:m[g.XRANGE];return t.replace(i,((i,o,a,u,l,h)=>{p("xRange",t,i,o,a,u,l,h);const d=isX(a);const m=d||isX(u);const g=m||isX(l);const y=g;if(o==="="&&y){o=""}h=r.includePrerelease?"-0":"";if(d){if(o===">"||o==="<"){i="<0.0.0-0"}else{i="*"}}else if(o&&y){if(m){u=0}l=0;if(o===">"){o=">=";if(m){a=+a+1;u=0;l=0}else{u=+u+1;l=0}}else if(o==="<="){o="<";if(m){a=+a+1}else{u=+u+1}}if(o==="<"){h="-0"}i=`${o+a}.${u}.${l}${h}`}else if(m){i=`>=${a}.0.0${h} <${+a+1}.0.0-0`}else if(g){i=`>=${a}.${u}.0${h} <${a}.${+u+1}.0-0`}p("xRange return",i);return i}))};const replaceStars=(t,r)=>{p("replaceStars",t,r);return t.trim().replace(m[g.STAR],"")};const replaceGTE0=(t,r)=>{p("replaceGTE0",t,r);return t.trim().replace(m[r.includePrerelease?g.GTE0PRE:g.GTE0],"")};const hyphenReplace=t=>(r,i,o,a,u,l,h,p,d,m,g,y)=>{if(isX(o)){i=""}else if(isX(a)){i=`>=${o}.0.0${t?"-0":""}`}else if(isX(u)){i=`>=${o}.${a}.0${t?"-0":""}`}else if(l){i=`>=${i}`}else{i=`>=${i}${t?"-0":""}`}if(isX(d)){p=""}else if(isX(m)){p=`<${+d+1}.0.0-0`}else if(isX(g)){p=`<${d}.${+m+1}.0-0`}else if(y){p=`<=${d}.${m}.${g}-${y}`}else if(t){p=`<${d}.${m}.${+g+1}-0`}else{p=`<=${p}`}return`${i} ${p}`.trim()};const testSet=(t,r,i)=>{for(let i=0;i<t.length;i++){if(!t[i].test(r)){return false}}if(r.prerelease.length&&!i.includePrerelease){for(let i=0;i<t.length;i++){p(t[i].semver);if(t[i].semver===h.ANY){continue}if(t[i].semver.prerelease.length>0){const o=t[i].semver;if(o.major===r.major&&o.minor===r.minor&&o.patch===r.patch){return true}}}return false}return true}},1490:(t,r,i)=>{const o=i(3619);const{MAX_LENGTH:a,MAX_SAFE_INTEGER:u}=i(9073);const{safeRe:l,t:h}=i(4063);const p=i(6772);const{compareIdentifiers:d}=i(8587);class SemVer{constructor(t,r){r=p(r);if(t instanceof SemVer){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{t=t.version}}else if(typeof t!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`)}if(t.length>a){throw new TypeError(`version is longer than ${a} characters`)}o("SemVer",t,r);this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;const i=t.trim().match(r.loose?l[h.LOOSE]:l[h.FULL]);if(!i){throw new TypeError(`Invalid Version: ${t}`)}this.raw=t;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>u||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>u||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>u||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const r=+t;if(r>=0&&r<u){return r}}return t}))}this.build=i[5]?i[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(t){o("SemVer.compare",this.version,this.options,t);if(!(t instanceof SemVer)){if(typeof t==="string"&&t===this.version){return 0}t=new SemVer(t,this.options)}if(t.version===this.version){return 0}return this.compareMain(t)||this.comparePre(t)}compareMain(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}return d(this.major,t.major)||d(this.minor,t.minor)||d(this.patch,t.patch)}comparePre(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}if(this.prerelease.length&&!t.prerelease.length){return-1}else if(!this.prerelease.length&&t.prerelease.length){return 1}else if(!this.prerelease.length&&!t.prerelease.length){return 0}let r=0;do{const i=this.prerelease[r];const a=t.prerelease[r];o("prerelease compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return d(i,a)}}while(++r)}compareBuild(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}let r=0;do{const i=this.build[r];const a=t.build[r];o("build compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return d(i,a)}}while(++r)}inc(t,r,i){switch(t){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0;this.inc("patch",r,i);this.inc("pre",r,i);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",r,i)}this.inc("pre",r,i);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const t=Number(i)?1:0;if(!r&&i===false){throw new Error("invalid increment argument: identifier is empty")}if(this.prerelease.length===0){this.prerelease=[t]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(r===this.prerelease.join(".")&&i===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(t)}}if(r){let o=[r,t];if(i===false){o=[r]}if(d(this.prerelease[0],r)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${t}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}t.exports=SemVer},7876:(t,r,i)=>{const o=i(8257);const clean=(t,r)=>{const i=o(t.trim().replace(/^[=v]+/,""),r);return i?i.version:null};t.exports=clean},8801:(t,r,i)=>{const o=i(1561);const a=i(8671);const u=i(3473);const l=i(2967);const h=i(6762);const p=i(973);const cmp=(t,r,i,d)=>{switch(r){case"===":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t===i;case"!==":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t!==i;case"":case"=":case"==":return o(t,i,d);case"!=":return a(t,i,d);case">":return u(t,i,d);case">=":return l(t,i,d);case"<":return h(t,i,d);case"<=":return p(t,i,d);default:throw new TypeError(`Invalid operator: ${r}`)}};t.exports=cmp},6899:(t,r,i)=>{const o=i(1490);const a=i(8257);const{safeRe:u,t:l}=i(4063);const coerce=(t,r)=>{if(t instanceof o){return t}if(typeof t==="number"){t=String(t)}if(typeof t!=="string"){return null}r=r||{};let i=null;if(!r.rtl){i=t.match(r.includePrerelease?u[l.COERCEFULL]:u[l.COERCE])}else{const o=r.includePrerelease?u[l.COERCERTLFULL]:u[l.COERCERTL];let a;while((a=o.exec(t))&&(!i||i.index+i[0].length!==t.length)){if(!i||a.index+a[0].length!==i.index+i[0].length){i=a}o.lastIndex=a.index+a[1].length+a[2].length}o.lastIndex=-1}if(i===null){return null}const h=i[2];const p=i[3]||"0";const d=i[4]||"0";const m=r.includePrerelease&&i[5]?`-${i[5]}`:"";const g=r.includePrerelease&&i[6]?`+${i[6]}`:"";return a(`${h}.${p}.${d}${m}${g}`,r)};t.exports=coerce},7375:(t,r,i)=>{const o=i(1490);const compareBuild=(t,r,i)=>{const a=new o(t,i);const u=new o(r,i);return a.compare(u)||a.compareBuild(u)};t.exports=compareBuild},8186:(t,r,i)=>{const o=i(4905);const compareLoose=(t,r)=>o(t,r,true);t.exports=compareLoose},4905:(t,r,i)=>{const o=i(1490);const compare=(t,r,i)=>new o(t,i).compare(new o(r,i));t.exports=compare},3272:(t,r,i)=>{const o=i(8257);const diff=(t,r)=>{const i=o(t,null,true);const a=o(r,null,true);const u=i.compare(a);if(u===0){return null}const l=u>0;const h=l?i:a;const p=l?a:i;const d=!!h.prerelease.length;const m=!!p.prerelease.length;if(m&&!d){if(!p.patch&&!p.minor){return"major"}if(h.patch){return"patch"}if(h.minor){return"minor"}return"major"}const g=d?"pre":"";if(i.major!==a.major){return g+"major"}if(i.minor!==a.minor){return g+"minor"}if(i.patch!==a.patch){return g+"patch"}return"prerelease"};t.exports=diff},1561:(t,r,i)=>{const o=i(4905);const eq=(t,r,i)=>o(t,r,i)===0;t.exports=eq},3473:(t,r,i)=>{const o=i(4905);const gt=(t,r,i)=>o(t,r,i)>0;t.exports=gt},2967:(t,r,i)=>{const o=i(4905);const gte=(t,r,i)=>o(t,r,i)>=0;t.exports=gte},5009:(t,r,i)=>{const o=i(1490);const inc=(t,r,i,a,u)=>{if(typeof i==="string"){u=a;a=i;i=undefined}try{return new o(t instanceof o?t.version:t,i).inc(r,a,u).version}catch(t){return null}};t.exports=inc},6762:(t,r,i)=>{const o=i(4905);const lt=(t,r,i)=>o(t,r,i)<0;t.exports=lt},973:(t,r,i)=>{const o=i(4905);const lte=(t,r,i)=>o(t,r,i)<=0;t.exports=lte},9799:(t,r,i)=>{const o=i(1490);const major=(t,r)=>new o(t,r).major;t.exports=major},7600:(t,r,i)=>{const o=i(1490);const minor=(t,r)=>new o(t,r).minor;t.exports=minor},8671:(t,r,i)=>{const o=i(4905);const neq=(t,r,i)=>o(t,r,i)!==0;t.exports=neq},8257:(t,r,i)=>{const o=i(1490);const parse=(t,r,i=false)=>{if(t instanceof o){return t}try{return new o(t,r)}catch(t){if(!i){return null}throw t}};t.exports=parse},2112:(t,r,i)=>{const o=i(1490);const patch=(t,r)=>new o(t,r).patch;t.exports=patch},5094:(t,r,i)=>{const o=i(8257);const prerelease=(t,r)=>{const i=o(t,r);return i&&i.prerelease.length?i.prerelease:null};t.exports=prerelease},6110:(t,r,i)=>{const o=i(4905);const rcompare=(t,r,i)=>o(r,t,i);t.exports=rcompare},4550:(t,r,i)=>{const o=i(7375);const rsort=(t,r)=>t.sort(((t,i)=>o(i,t,r)));t.exports=rsort},1495:(t,r,i)=>{const o=i(5287);const satisfies=(t,r,i)=>{try{r=new o(r,i)}catch(t){return false}return r.test(t)};t.exports=satisfies},6034:(t,r,i)=>{const o=i(7375);const sort=(t,r)=>t.sort(((t,i)=>o(t,i,r)));t.exports=sort},3863:(t,r,i)=>{const o=i(8257);const valid=(t,r)=>{const i=o(t,r);return i?i.version:null};t.exports=valid},7546:(t,r,i)=>{const o=i(4063);const a=i(9073);const u=i(1490);const l=i(8587);const h=i(8257);const p=i(3863);const d=i(7876);const m=i(5009);const g=i(3272);const y=i(9799);const A=i(7600);const b=i(2112);const v=i(5094);const w=i(4905);const E=i(6110);const _=i(8186);const S=i(7375);const C=i(6034);const D=i(4550);const x=i(3473);const R=i(6762);const O=i(1561);const k=i(8671);const P=i(2967);const T=i(973);const L=i(8801);const I=i(6899);const M=i(1790);const B=i(5287);const N=i(1495);const $=i(1976);const j=i(1706);const H=i(7095);const G=i(507);const U=i(8029);const W=i(7714);const z=i(9104);const Y=i(5072);const V=i(9057);const Q=i(9550);const K=i(8693);t.exports={parse:h,valid:p,clean:d,inc:m,diff:g,major:y,minor:A,patch:b,prerelease:v,compare:w,rcompare:E,compareLoose:_,compareBuild:S,sort:C,rsort:D,gt:x,lt:R,eq:O,neq:k,gte:P,lte:T,cmp:L,coerce:I,Comparator:M,Range:B,satisfies:N,toComparators:$,maxSatisfying:j,minSatisfying:H,minVersion:G,validRange:U,outside:W,gtr:z,ltr:Y,intersects:V,simplifyRange:Q,subset:K,SemVer:u,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:l.compareIdentifiers,rcompareIdentifiers:l.rcompareIdentifiers}},9073:t=>{const r="2.0.0";const i=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const a=16;const u=i-6;const l=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:i,MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:u,MAX_SAFE_INTEGER:o,RELEASE_TYPES:l,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},3619:t=>{const r=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=r},8587:t=>{const r=/^[0-9]+$/;const compareIdentifiers=(t,i)=>{const o=r.test(t);const a=r.test(i);if(o&&a){t=+t;i=+i}return t===i?0:o&&!a?-1:a&&!o?1:t<i?-1:1};const rcompareIdentifiers=(t,r)=>compareIdentifiers(r,t);t.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1191:t=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(t){const r=this.map.get(t);if(r===undefined){return undefined}else{this.map.delete(t);this.map.set(t,r);return r}}delete(t){return this.map.delete(t)}set(t,r){const i=this.delete(t);if(!i&&r!==undefined){if(this.map.size>=this.max){const t=this.map.keys().next().value;this.delete(t)}this.map.set(t,r)}return this}}t.exports=LRUCache},6772:t=>{const r=Object.freeze({loose:true});const i=Object.freeze({});const parseOptions=t=>{if(!t){return i}if(typeof t!=="object"){return r}return t};t.exports=parseOptions},4063:(t,r,i)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:u}=i(9073);const l=i(3619);r=t.exports={};const h=r.re=[];const p=r.safeRe=[];const d=r.src=[];const m=r.t={};let g=0;const y="[a-zA-Z0-9-]";const A=[["\\s",1],["\\d",u],[y,a]];const makeSafeRegex=t=>{for(const[r,i]of A){t=t.split(`${r}*`).join(`${r}{0,${i}}`).split(`${r}+`).join(`${r}{1,${i}}`)}return t};const createToken=(t,r,i)=>{const o=makeSafeRegex(r);const a=g++;l(t,a,r);m[t]=a;d[a]=r;h[a]=new RegExp(r,i?"g":undefined);p[a]=new RegExp(o,i?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`);createToken("MAINVERSION",`(${d[m.NUMERICIDENTIFIER]})\\.`+`(${d[m.NUMERICIDENTIFIER]})\\.`+`(${d[m.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${d[m.NUMERICIDENTIFIERLOOSE]})\\.`+`(${d[m.NUMERICIDENTIFIERLOOSE]})\\.`+`(${d[m.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${d[m.NUMERICIDENTIFIER]}|${d[m.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${d[m.NUMERICIDENTIFIERLOOSE]}|${d[m.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${d[m.PRERELEASEIDENTIFIER]}(?:\\.${d[m.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${d[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[m.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${y}+`);createToken("BUILD",`(?:\\+(${d[m.BUILDIDENTIFIER]}(?:\\.${d[m.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${d[m.MAINVERSION]}${d[m.PRERELEASE]}?${d[m.BUILD]}?`);createToken("FULL",`^${d[m.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${d[m.MAINVERSIONLOOSE]}${d[m.PRERELEASELOOSE]}?${d[m.BUILD]}?`);createToken("LOOSE",`^${d[m.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${d[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${d[m.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${d[m.XRANGEIDENTIFIER]})`+`(?:\\.(${d[m.XRANGEIDENTIFIER]})`+`(?:\\.(${d[m.XRANGEIDENTIFIER]})`+`(?:${d[m.PRERELEASE]})?${d[m.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${d[m.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${d[m.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${d[m.XRANGEIDENTIFIERLOOSE]})`+`(?:${d[m.PRERELEASELOOSE]})?${d[m.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${d[m.GTLT]}\\s*${d[m.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${d[m.GTLT]}\\s*${d[m.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${d[m.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",d[m.COERCEPLAIN]+`(?:${d[m.PRERELEASE]})?`+`(?:${d[m.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",d[m.COERCE],true);createToken("COERCERTLFULL",d[m.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${d[m.LONETILDE]}\\s+`,true);r.tildeTrimReplace="$1~";createToken("TILDE",`^${d[m.LONETILDE]}${d[m.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${d[m.LONETILDE]}${d[m.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${d[m.LONECARET]}\\s+`,true);r.caretTrimReplace="$1^";createToken("CARET",`^${d[m.LONECARET]}${d[m.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${d[m.LONECARET]}${d[m.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${d[m.GTLT]}\\s*(${d[m.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${d[m.GTLT]}\\s*(${d[m.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${d[m.GTLT]}\\s*(${d[m.LOOSEPLAIN]}|${d[m.XRANGEPLAIN]})`,true);r.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${d[m.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${d[m.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${d[m.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${d[m.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9104:(t,r,i)=>{const o=i(7714);const gtr=(t,r,i)=>o(t,r,">",i);t.exports=gtr},9057:(t,r,i)=>{const o=i(5287);const intersects=(t,r,i)=>{t=new o(t,i);r=new o(r,i);return t.intersects(r,i)};t.exports=intersects},5072:(t,r,i)=>{const o=i(7714);const ltr=(t,r,i)=>o(t,r,"<",i);t.exports=ltr},1706:(t,r,i)=>{const o=i(1490);const a=i(5287);const maxSatisfying=(t,r,i)=>{let u=null;let l=null;let h=null;try{h=new a(r,i)}catch(t){return null}t.forEach((t=>{if(h.test(t)){if(!u||l.compare(t)===-1){u=t;l=new o(u,i)}}}));return u};t.exports=maxSatisfying},7095:(t,r,i)=>{const o=i(1490);const a=i(5287);const minSatisfying=(t,r,i)=>{let u=null;let l=null;let h=null;try{h=new a(r,i)}catch(t){return null}t.forEach((t=>{if(h.test(t)){if(!u||l.compare(t)===1){u=t;l=new o(u,i)}}}));return u};t.exports=minSatisfying},507:(t,r,i)=>{const o=i(1490);const a=i(5287);const u=i(3473);const minVersion=(t,r)=>{t=new a(t,r);let i=new o("0.0.0");if(t.test(i)){return i}i=new o("0.0.0-0");if(t.test(i)){return i}i=null;for(let r=0;r<t.set.length;++r){const a=t.set[r];let l=null;a.forEach((t=>{const r=new o(t.semver.version);switch(t.operator){case">":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!l||u(r,l)){l=r}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}}));if(l&&(!i||u(i,l))){i=l}}if(i&&t.test(i)){return i}return null};t.exports=minVersion},7714:(t,r,i)=>{const o=i(1490);const a=i(1790);const{ANY:u}=a;const l=i(5287);const h=i(1495);const p=i(3473);const d=i(6762);const m=i(973);const g=i(2967);const outside=(t,r,i,y)=>{t=new o(t,y);r=new l(r,y);let A,b,v,w,E;switch(i){case">":A=p;b=m;v=d;w=">";E=">=";break;case"<":A=d;b=g;v=p;w="<";E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(h(t,r,y)){return false}for(let i=0;i<r.set.length;++i){const o=r.set[i];let l=null;let h=null;o.forEach((t=>{if(t.semver===u){t=new a(">=0.0.0")}l=l||t;h=h||t;if(A(t.semver,l.semver,y)){l=t}else if(v(t.semver,h.semver,y)){h=t}}));if(l.operator===w||l.operator===E){return false}if((!h.operator||h.operator===w)&&b(t,h.semver)){return false}else if(h.operator===E&&v(t,h.semver)){return false}}return true};t.exports=outside},9550:(t,r,i)=>{const o=i(1495);const a=i(4905);t.exports=(t,r,i)=>{const u=[];let l=null;let h=null;const p=t.sort(((t,r)=>a(t,r,i)));for(const t of p){const a=o(t,r,i);if(a){h=t;if(!l){l=t}}else{if(h){u.push([l,h])}h=null;l=null}}if(l){u.push([l,null])}const d=[];for(const[t,r]of u){if(t===r){d.push(t)}else if(!r&&t===p[0]){d.push("*")}else if(!r){d.push(`>=${t}`)}else if(t===p[0]){d.push(`<=${r}`)}else{d.push(`${t} - ${r}`)}}const m=d.join(" || ");const g=typeof r.raw==="string"?r.raw:String(r);return m.length<g.length?m:r}},8693:(t,r,i)=>{const o=i(5287);const a=i(1790);const{ANY:u}=a;const l=i(1495);const h=i(4905);const subset=(t,r,i={})=>{if(t===r){return true}t=new o(t,i);r=new o(r,i);let a=false;e:for(const o of t.set){for(const t of r.set){const r=simpleSubset(o,t,i);a=a||r!==null;if(r){continue e}}if(a){return false}}return true};const p=[new a(">=0.0.0-0")];const d=[new a(">=0.0.0")];const simpleSubset=(t,r,i)=>{if(t===r){return true}if(t.length===1&&t[0].semver===u){if(r.length===1&&r[0].semver===u){return true}else if(i.includePrerelease){t=p}else{t=d}}if(r.length===1&&r[0].semver===u){if(i.includePrerelease){return true}else{r=d}}const o=new Set;let a,m;for(const r of t){if(r.operator===">"||r.operator===">="){a=higherGT(a,r,i)}else if(r.operator==="<"||r.operator==="<="){m=lowerLT(m,r,i)}else{o.add(r.semver)}}if(o.size>1){return null}let g;if(a&&m){g=h(a.semver,m.semver,i);if(g>0){return null}else if(g===0&&(a.operator!==">="||m.operator!=="<=")){return null}}for(const t of o){if(a&&!l(t,String(a),i)){return null}if(m&&!l(t,String(m),i)){return null}for(const o of r){if(!l(t,String(o),i)){return false}}return true}let y,A;let b,v;let w=m&&!i.includePrerelease&&m.semver.prerelease.length?m.semver:false;let E=a&&!i.includePrerelease&&a.semver.prerelease.length?a.semver:false;if(w&&w.prerelease.length===1&&m.operator==="<"&&w.prerelease[0]===0){w=false}for(const t of r){v=v||t.operator===">"||t.operator===">=";b=b||t.operator==="<"||t.operator==="<=";if(a){if(E){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===E.major&&t.semver.minor===E.minor&&t.semver.patch===E.patch){E=false}}if(t.operator===">"||t.operator===">="){y=higherGT(a,t,i);if(y===t&&y!==a){return false}}else if(a.operator===">="&&!l(a.semver,String(t),i)){return false}}if(m){if(w){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===w.major&&t.semver.minor===w.minor&&t.semver.patch===w.patch){w=false}}if(t.operator==="<"||t.operator==="<="){A=lowerLT(m,t,i);if(A===t&&A!==m){return false}}else if(m.operator==="<="&&!l(m.semver,String(t),i)){return false}}if(!t.operator&&(m||a)&&g!==0){return false}}if(a&&b&&!m&&g!==0){return false}if(m&&v&&!a&&g!==0){return false}if(E||w){return false}return true};const higherGT=(t,r,i)=>{if(!t){return r}const o=h(t.semver,r.semver,i);return o>0?t:o<0?r:r.operator===">"&&t.operator===">="?r:t};const lowerLT=(t,r,i)=>{if(!t){return r}const o=h(t.semver,r.semver,i);return o<0?t:o>0?r:r.operator==="<"&&t.operator==="<="?r:t};t.exports=subset},1976:(t,r,i)=>{const o=i(5287);const toComparators=(t,r)=>new o(t,r).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")));t.exports=toComparators},8029:(t,r,i)=>{const o=i(5287);const validRange=(t,r)=>{try{return new o(t,r).range||"*"}catch(t){return null}};t.exports=validRange},2028:(t,r,i)=>{var o=global.process;const processOk=function(t){return t&&typeof t==="object"&&typeof t.removeListener==="function"&&typeof t.emit==="function"&&typeof t.reallyExit==="function"&&typeof t.listeners==="function"&&typeof t.kill==="function"&&typeof t.pid==="number"&&typeof t.on==="function"};if(!processOk(o)){t.exports=function(){return function(){}}}else{var a=i(9491);var u=i(19);var l=/^win/i.test(o.platform);var h=i(2361);if(typeof h!=="function"){h=h.EventEmitter}var p;if(o.__signal_exit_emitter__){p=o.__signal_exit_emitter__}else{p=o.__signal_exit_emitter__=new h;p.count=0;p.emitted={}}if(!p.infinite){p.setMaxListeners(Infinity);p.infinite=true}t.exports=function(t,r){if(!processOk(global.process)){return function(){}}a.equal(typeof t,"function","a callback must be provided for exit handler");if(y===false){A()}var i="exit";if(r&&r.alwaysLast){i="afterexit"}var remove=function(){p.removeListener(i,t);if(p.listeners("exit").length===0&&p.listeners("afterexit").length===0){d()}};p.on(i,t);return remove};var d=function unload(){if(!y||!processOk(global.process)){return}y=false;u.forEach((function(t){try{o.removeListener(t,g[t])}catch(t){}}));o.emit=w;o.reallyExit=b;p.count-=1};t.exports.unload=d;var m=function emit(t,r,i){if(p.emitted[t]){return}p.emitted[t]=true;p.emit(t,r,i)};var g={};u.forEach((function(t){g[t]=function listener(){if(!processOk(global.process)){return}var r=o.listeners(t);if(r.length===p.count){d();m("exit",null,t);m("afterexit",null,t);if(l&&t==="SIGHUP"){t="SIGINT"}o.kill(o.pid,t)}}}));t.exports.signals=function(){return u};var y=false;var A=function load(){if(y||!processOk(global.process)){return}y=true;p.count+=1;u=u.filter((function(t){try{o.on(t,g[t]);return true}catch(t){return false}}));o.emit=E;o.reallyExit=v};t.exports.load=A;var b=o.reallyExit;var v=function processReallyExit(t){if(!processOk(global.process)){return}o.exitCode=t||0;m("exit",o.exitCode,null);m("afterexit",o.exitCode,null);b.call(o,o.exitCode)};var w=o.emit;var E=function processEmit(t,r){if(t==="exit"&&processOk(global.process)){if(r!==undefined){o.exitCode=r}var i=w.apply(this,arguments);m("exit",o.exitCode,null);m("afterexit",o.exitCode,null);return i}else{return w.apply(this,arguments)}}}},19:t=>{t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},332:t=>{"use strict";const r="";const i=`${r}[`;const o="";const a={to(t,r){if(!r)return`${i}${t+1}G`;return`${i}${r+1};${t+1}H`},move(t,r){let o="";if(t<0)o+=`${i}${-t}D`;else if(t>0)o+=`${i}${t}C`;if(r<0)o+=`${i}${-r}A`;else if(r>0)o+=`${i}${r}B`;return o},up:(t=1)=>`${i}${t}A`,down:(t=1)=>`${i}${t}B`,forward:(t=1)=>`${i}${t}C`,backward:(t=1)=>`${i}${t}D`,nextLine:(t=1)=>`${i}E`.repeat(t),prevLine:(t=1)=>`${i}F`.repeat(t),left:`${i}G`,hide:`${i}?25l`,show:`${i}?25h`,save:`${r}7`,restore:`${r}8`};const u={up:(t=1)=>`${i}S`.repeat(t),down:(t=1)=>`${i}T`.repeat(t)};const l={screen:`${i}2J`,up:(t=1)=>`${i}1J`.repeat(t),down:(t=1)=>`${i}J`.repeat(t),line:`${i}2K`,lineEnd:`${i}K`,lineStart:`${i}1K`,lines(t){let r="";for(let i=0;i<t;i++)r+=this.line+(i<t-1?a.up():"");if(t)r+=a.left;return r}};t.exports={cursor:a,scroll:u,erase:l,beep:o}},5667:(t,r,i)=>{var o={child:i(2081),crypto:i(6113),fs:i(7147),os:i(2037),path:i(1017),process:process,util:i(3837)};function Attempt(t,r){var i=o.process.platform;if(i==="darwin")return Mac(t,r);if(i==="linux")return Linux(t,r);if(i==="win32")return Windows(t,r);r(new Error("Platform not yet supported."))}function EscapeDoubleQuotes(t){if(typeof t!=="string")throw new Error("Expected a string.");return t.replace(/"/g,'\\"')}function Exec(){if(arguments.length<1||arguments.length>3){throw new Error("Wrong number of arguments.")}var t=arguments[0];var r={};var end=function(){};if(typeof t!=="string"){throw new Error("Command should be a string.")}if(arguments.length===2){if(o.util.isObject(arguments[1])){r=arguments[1]}else if(o.util.isFunction(arguments[1])){end=arguments[1]}else{throw new Error("Expected options or callback.")}}else if(arguments.length===3){if(o.util.isObject(arguments[1])){r=arguments[1]}else{throw new Error("Expected options to be an object.")}if(o.util.isFunction(arguments[2])){end=arguments[2]}else{throw new Error("Expected callback to be a function.")}}if(/^sudo/i.test(t)){return end(new Error('Command should not be prefixed with "sudo".'))}if(typeof r.name==="undefined"){var i=o.process.title;if(ValidName(i)){r.name=i}else{return end(new Error("process.title cannot be used as a valid name."))}}else if(!ValidName(r.name)){var a="";a+="options.name must be alphanumeric only ";a+="(spaces are allowed) and <= 70 characters.";return end(new Error(a))}if(typeof r.icns!=="undefined"){if(typeof r.icns!=="string"){return end(new Error("options.icns must be a string if provided."))}else if(r.icns.trim().length===0){return end(new Error("options.icns must not be empty if provided."))}}if(typeof r.env!=="undefined"){if(typeof r.env!=="object"){return end(new Error("options.env must be an object if provided."))}else if(Object.keys(r.env).length===0){return end(new Error("options.env must not be empty if provided."))}else{for(var u in r.env){var l=r.env[u];if(typeof u!=="string"||typeof l!=="string"){return end(new Error("options.env environment variables must be strings."))}if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(u)){return end(new Error("options.env has an invalid environment variable name: "+JSON.stringify(u)))}if(/[\r\n]/.test(l)){return end(new Error("options.env has an invalid environment variable value: "+JSON.stringify(l)))}}}}var h=o.process.platform;if(h!=="darwin"&&h!=="linux"&&h!=="win32"){return end(new Error("Platform not yet supported."))}var p={command:t,options:r,uuid:undefined,path:undefined};Attempt(p,end)}function Linux(t,r){LinuxBinary(t,(function(i,a){if(i)return r(i);var p=[];p.push('cd "'+EscapeDoubleQuotes(o.process.cwd())+'";');for(var d in t.options.env){var m=t.options.env[d];p.push("export "+d+'="'+EscapeDoubleQuotes(m)+'";')}p.push('"'+EscapeDoubleQuotes(a)+'"');if(/kdesudo/i.test(a)){p.push("--comment",'"'+t.options.name+" wants to make changes. "+'Enter your password to allow this."');p.push("-d");p.push("--")}else if(/pkexec/i.test(a)){p.push("--disable-internal-agent")}var g="SUDOPROMPT\n";p.push('/bin/bash -c "echo '+EscapeDoubleQuotes(g.trim())+"; "+EscapeDoubleQuotes(t.command)+'"');p=p.join(" ");o.child.exec(p,{encoding:"utf-8",maxBuffer:h},(function(t,i,o){var a=i&&i.slice(0,g.length)===g;if(a)i=i.slice(g.length);if(t&&!a){if(/No authentication agent found/.test(o)){t.message=l}else{t.message=u}}r(t,i,o)}))}))}function LinuxBinary(t,r){var i=0;var a=["/usr/bin/kdesudo","/usr/bin/pkexec"];function test(){if(i===a.length){return r(new Error("Unable to find pkexec or kdesudo."))}var t=a[i++];o.fs.stat(t,(function(i){if(i){if(i.code==="ENOTDIR")return test();if(i.code==="ENOENT")return test();r(i)}else{r(undefined,t)}}))}test()}function Mac(t,r){var i=o.os.tmpdir();if(!i)return r(new Error("os.tmpdir() not defined."));var a=o.process.env.USER;if(!a)return r(new Error("env['USER'] not defined."));UUID(t,(function(a,u){if(a)return r(a);t.uuid=u;t.path=o.path.join(i,t.uuid,t.options.name+".app");function end(i,a,u){Remove(o.path.dirname(t.path),(function(t){if(i)return r(i);if(t)return r(t);r(undefined,a,u)}))}MacApplet(t,(function(r,i,o){if(r)return end(r,i,o);MacIcon(t,(function(r){if(r)return end(r);MacPropertyList(t,(function(r,i,o){if(r)return end(r,i,o);MacCommand(t,(function(r){if(r)return end(r);MacOpen(t,(function(r,i,o){if(r)return end(r,i,o);MacResult(t,end)}))}))}))}))}))}))}function MacApplet(t,r){var i=o.path.dirname(t.path);o.fs.mkdir(i,(function(u){if(u)return r(u);var l=o.path.join(i,"sudo-prompt-applet.zip");o.fs.writeFile(l,a,"base64",(function(i){if(i)return r(i);var a=[];a.push("/usr/bin/unzip");a.push("-o");a.push('"'+EscapeDoubleQuotes(l)+'"');a.push('-d "'+EscapeDoubleQuotes(t.path)+'"');a=a.join(" ");o.child.exec(a,{encoding:"utf-8"},r)}))}))}function MacCommand(t,r){var i=o.path.join(t.path,"Contents","MacOS","sudo-prompt-command");var a=[];a.push('cd "'+EscapeDoubleQuotes(o.process.cwd())+'"');for(var u in t.options.env){var l=t.options.env[u];a.push("export "+u+'="'+EscapeDoubleQuotes(l)+'"')}a.push(t.command);a=a.join("\n");o.fs.writeFile(i,a,"utf-8",r)}function MacIcon(t,r){if(!t.options.icns)return r();o.fs.readFile(t.options.icns,(function(i,a){if(i)return r(i);var u=o.path.join(t.path,"Contents","Resources","applet.icns");o.fs.writeFile(u,a,r)}))}function MacOpen(t,r){var i=o.path.join(t.path,"Contents","MacOS","applet");var a={cwd:o.path.dirname(i),encoding:"utf-8"};o.child.exec("./"+o.path.basename(i),a,r)}function MacPropertyList(t,r){var i=o.path.join(t.path,"Contents","Info.plist");var a=EscapeDoubleQuotes(i);var u=EscapeDoubleQuotes("CFBundleName");var l=t.options.name+" Password Prompt";if(/'/.test(l)){return r(new Error("Value should not contain single quotes."))}var h=[];h.push("/usr/bin/defaults");h.push("write");h.push('"'+a+'"');h.push('"'+u+'"');h.push("'"+l+"'");h=h.join(" ");o.child.exec(h,{encoding:"utf-8"},r)}function MacResult(t,r){var i=o.path.join(t.path,"Contents","MacOS");o.fs.readFile(o.path.join(i,"code"),"utf-8",(function(a,l){if(a){if(a.code==="ENOENT")return r(new Error(u));r(a)}else{o.fs.readFile(o.path.join(i,"stdout"),"utf-8",(function(a,u){if(a)return r(a);o.fs.readFile(o.path.join(i,"stderr"),"utf-8",(function(i,o){if(i)return r(i);l=parseInt(l.trim(),10);if(l===0){r(undefined,u,o)}else{i=new Error("Command failed: "+t.command+"\n"+o);i.code=l;r(i,u,o)}}))}))}}))}function Remove(t,r){if(typeof t!=="string"||!t.trim()){return r(new Error("Argument path not defined."))}var i=[];if(o.process.platform==="win32"){if(/"/.test(t)){return r(new Error("Argument path cannot contain double-quotes."))}i.push('rmdir /s /q "'+t+'"')}else{i.push("/bin/rm");i.push("-rf");i.push('"'+EscapeDoubleQuotes(o.path.normalize(t))+'"')}i=i.join(" ");o.child.exec(i,{encoding:"utf-8"},r)}function UUID(t,r){o.crypto.randomBytes(256,(function(i,a){if(i)a=Date.now()+""+Math.random();var u=o.crypto.createHash("SHA256");u.update("sudo-prompt-3");u.update(t.options.name);u.update(t.command);u.update(a);var l=u.digest("hex").slice(-32);if(!l||typeof l!=="string"||l.length!==32){return r(new Error("Expected a valid UUID."))}r(undefined,l)}))}function ValidName(t){if(!/^[a-z0-9 ]+$/i.test(t))return false;if(t.trim().length===0)return false;if(t.length>70)return false;return true}function Windows(t,r){var i=o.os.tmpdir();if(!i)return r(new Error("os.tmpdir() not defined."));UUID(t,(function(a,u){if(a)return r(a);t.uuid=u;t.path=o.path.join(i,t.uuid);if(/"/.test(t.path)){return r(new Error("instance.path cannot contain double-quotes."))}t.pathElevate=o.path.join(t.path,"elevate.vbs");t.pathExecute=o.path.join(t.path,"execute.bat");t.pathCommand=o.path.join(t.path,"command.bat");t.pathStdout=o.path.join(t.path,"stdout");t.pathStderr=o.path.join(t.path,"stderr");t.pathStatus=o.path.join(t.path,"status");o.fs.mkdir(t.path,(function(i){if(i)return r(i);function end(i,o,a){Remove(t.path,(function(t){if(i)return r(i);if(t)return r(t);r(undefined,o,a)}))}WindowsWriteExecuteScript(t,(function(r){if(r)return end(r);WindowsWriteCommandScript(t,(function(r){if(r)return end(r);WindowsElevate(t,(function(r,i,o){if(r)return end(r,i,o);WindowsWaitForStatus(t,(function(r){if(r)return end(r);WindowsResult(t,end)}))}))}))}))}))}))}function WindowsElevate(t,r){var i=[];i.push("powershell.exe");i.push("Start-Process");i.push("-FilePath");i.push("\"'"+t.pathExecute.replace(/'/g,"`'")+"'\"");i.push("-WindowStyle hidden");i.push("-Verb runAs");i=i.join(" ");var a=o.child.exec(i,{encoding:"utf-8"},(function(t,i,o){if(t)return r(new Error(u),i,o);r()}));a.stdin.end()}function WindowsResult(t,r){o.fs.readFile(t.pathStatus,"utf-8",(function(i,a){if(i)return r(i);o.fs.readFile(t.pathStdout,"utf-8",(function(i,u){if(i)return r(i);o.fs.readFile(t.pathStderr,"utf-8",(function(i,o){if(i)return r(i);a=parseInt(a.trim(),10);if(a===0){r(undefined,u,o)}else{i=new Error("Command failed: "+t.command+"\r\n"+o);i.code=a;r(i,u,o)}}))}))}))}function WindowsWaitForStatus(t,r){o.fs.stat(t.pathStatus,(function(i,a){if(i&&i.code==="ENOENT"||a.size<2){setTimeout((function(){o.fs.stat(t.pathStdout,(function(i){if(i)return r(new Error(u));WindowsWaitForStatus(t,r)}))}),1e3)}else if(i){r(i)}else{r()}}))}function WindowsWriteCommandScript(t,r){var i=o.process.cwd();if(/"/.test(i)){return r(new Error("process.cwd() cannot contain double-quotes."))}var a=[];a.push("@echo off");a.push("chcp 65001>nul");a.push('cd /d "'+i+'"');for(var u in t.options.env){var l=t.options.env[u];a.push("set "+u+"="+l.replace(/([<>\\|&^])/g,"^$1"))}a.push(t.command);a=a.join("\r\n");o.fs.writeFile(t.pathCommand,a,"utf-8",r)}function WindowsWriteElevateScript(t,r){}function WindowsWriteExecuteScript(t,r){var i=[];i.push("@echo off");i.push('call "'+t.pathCommand+'"'+' > "'+t.pathStdout+'" 2> "'+t.pathStderr+'"');i.push('(echo %ERRORLEVEL%) > "'+t.pathStatus+'"');i=i.join("\r\n");o.fs.writeFile(t.pathExecute,i,"utf-8",r)}t.exports.exec=Exec;var a="UEsDBAoAAAAAAO1YcEcAAAAAAAAAAAAAAAAJABwAQ29udGVudHMvVVQJAAPNnElWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACgeXBHlHaGqKEBAAC+AwAAEwAcAENvbnRlbnRzL0luZm8ucGxpc3RVVAkAA1zWSVYtkRBXdXgLAAEE9QEAAAQUAAAAfZNRb5swFIWfl1/BeA9OpSmqJkqVBCJFop1VyKQ9Ta59S6wa27NNCfv1M0naJWTsEXO+c8+9vo7v97UI3sBYruRdeBPNwgAkVYzL6i7cluvpbXifTOLP6bdV+QNngRbcugBvl/lmFYRThBZaC0AoLdMA55uiDLwHQtljGIQ75/RXhNq2jUiviqiqe6FF2CgNxnW5N5t6IGKOhb7M0f0ijj9lnLpk8il+hS5ZrZeNZAIWQqj2ge+B5YoSwX8T5xEbo17ktc40gIZQCm8glK5BuieovP5Dbp3xHSeZrHyCXYxO3wM+2wNtHHkWMAQP/bkxbkOVXPMxKuK0Dz6CMh+Wv3AwQ9gPM7INU1NtVK3Ha8sXlfoB+m6J6b4fRzv0mkezMf6R1Fe5MbG2VYYF+L+lMaGvpIKy01cOC4zzMazYKeNOQYuDYkjfjMcteCWJa8w/Zi2ugubFA5e8buqisw7qU81ltzB0xx3QC5/TFh7J/e385/zL+7+/wWbR/LwIOl/dvHiCXw03YFfEPJ9dwsWu5sV2kwnod3QoeLeL0eGdJJM/UEsDBAoAAAAAAHSBjkgAAAAAAAAAAAAAAAAPABwAQ29udGVudHMvTWFjT1MvVVQJAAMbpQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACABVHBdH7Dk4KTIIAADIYQAAFQAcAENvbnRlbnRzL01hY09TL2FwcGxldFVUCQADMiPZVVOlD1d1eAsAAQT1AQAABBQAAADtnG9sHEcVwGfti7M1/rONLNVtXHqpzsipis+pHOSWFOzEm25at3XrJI2ozbK+W/suuds79vaSuCKSpaOIxRy1+NSPRPAhlWj7AVRaQCWpTRz+CEo+RSKCCho4K67kVhUyAeV4b3fWt17fXZqKFgHvp8zO3/dmdmfPmtl5L7+8/uPXGWMNELZCaGRMgmjHIlxaBCibdcoGsewCljGCIAiCIAiCIAiCIP7r+M21d67zjb/zEaAdwr1bGHuWMQH2/2wAgqqODj0kf0F+8nGfoFRbJ8p9U0C5g/KRgwEZqZLGfrfwwJx+LP2kVWkelD9zJ2NfBr1nWt2xrhNisxWZ3Ex6MpNSc1Z+soqOO+5i7JMYt7vj9BC5jiZXBwirCT2V1c0qOgZAxwMYt9cbRyxnmUljusa9mKBjGON2tgG/PlXNGyeSRlxNGlOZKjpeBR0KxsFx+MB7VJy5GB46OOSrCLPKfEjrH3/gFry+4zOpuH8sm+VF5srW6ltVjZQ3HVnL3KRDDLsflMSADpyDyjuR0urp6AAdHRgHdOD9iOs6Ypl0OmPUupeecOW19OsQAmn3tzBy4LFH5OED3jz0MbYouM8D460BOdTXCaEF6tsgLkF8GeJPQBj16Rb4PTf5xl2NH4J8a5Vy1N3F3OcZzefMaCo5GeVTuJ2P4cUf/aH5qbbP73/utpfeevdbLzwfYfy+Q80woGan/1E+ljo/703g77IaOJY479t5rqFLDag9OjaTs/R0dCQ5aWrmTHS/qaX1ExnzWC66L2PqY7p5PBnTc71TXnn0sG7mkhkjFx3a0IL30e/rQxB+EXL68J4BBLe73r298DySk5tlGPtJY1BmOhZTc727PBH2Ke+ZhF35nTyP80oQBEEQBPFRcJTZVwpvrxZWpLmJkN0VKT4q2iORUGFBOPfnBuFX9nhELOG67f1D9pWxpw4XVrrmTklz+ZY5Wfwurm/t3ffi9cE+uM41vYbbj2fP5kNXt9sXiopwVRj6xhPlr160mttfuVi4Fs2vXv2rfc5u7UeZfxQ+y4pPh/JrpyUUBjmrofzmadGXKf0eui7KK/ZwJLQUiuRAe+mLUFQ+tFKUV3npd7AU9ytz8iqIiXYoUnoBsqdxDbXk3CXcRov9lYhoW5EQjBxb4NoSY9iQsvn5+QSuusrduAybL3eHIIIbLqyIS9CHlY3loB8rldVKuLfyOsE1+a6zhUVxYsFp3Amqz8tr7Lz8dza1JF8TmC3/syivYVtcfxcWOycWQDvuLcrdnc61y7mGnWsErgmsXDbK5TKkscnypJvGhsuH3TQ2X37YTaPQ8ucw7W6t1LR2TFfjekqb0SGTiedTOmz0klZSSyWf0U01pqVSufXGmThsjs20OpU3Yrjuxbnu4u+GP8b1LO6PcX2L4Q6+v8Q07u9aQFLy71Ckt54TIfjfNdzfDkMYhTAOIXHXh39vCYIgCIIgCIIgCIL4z3Nm+84/Ci1Nn8b0ryHsgbBX1rbgOXD7LZJzNtrC0/gFqYOn8csQ/GONguQchPXzcvy+9CBzvk84HxkO+tJH3bRz5Fb0pb/nS3/fl/6BL/2aL43faLzz3Wbmju8W5p6pttaoR9THjgyZ0zEeH2eqqmbNzLShpXVIpxOqflKP5S1dTehaXDeZqhvHk2bGYOo+LZXal0lnM4ZuWMPJXFazYgmmPp7VjWF9SsunrPVa1HpMn0lPm2r8hGZO3aea+nQyZ+mmmtNjFp5i4oG0lTChE+eDj2pm8lbSgDFoln4yCRp00zQyEDmZtBZLbGxnanHzgWh092d29e/uv+/f+DIQBEEQBEEQBEEQ/7P81rX/FxoZm/Xs/5UmtP8PO/W3M9fGvKoPAEfYXLQJ1HOpmk+AJx80OOb5m/URGG9z9c378rVs9F15tPXP1dS3wvVtC+Q9/H4DFX21fQcY9zvo9eXrj6++D0Af1zfqy9eyx3f16QnVMayufr+zXN+sL99YRx/O69er+RdIgXkNxJv9DfBTDIxLPa6Zudr6enz5euO6ke9Bj7TRzr0noK+JbczfyA9hgOvr9OX98t57XNFX3ydhlOsL+2T8+oK/ucrvNOCfEHbbXhAqeebLB/0V7oYp7+Pt8PsZWnl1+urRpAn7SUCcYBX/hkth95kd2cFYllX3bxB4+xCrzcCO6v4PbXzo1fwbEM/H4ds/f/nCgZH+8k+j0vNPv7Jlz7qPQ1PFx+FVPoZ76ozj42K87YP9/cT7xuf9UfpSeP0MsJvzp0A8/4g3w+78ef4R+F4QBEEQBPH/w1Gm2FeUwturytwpUSnmJfta4Q3h3J8aFeE9xf7d1ZBSOCcqhftZ/m+YKuG6wV4qaQzdGED0Z2jJ/zpa9ZcegjIF7fkVaIBrt11nJxYOOepXpPPyKjsvvytOLcnvCWxJfh87V+xTa0rx1Kpj0a8UFqWJhXL3fgHt9xXn+rCz7Bop3rkTEkNj5e7bIZ7HNRZb/ku5XE6g58HyZUzdj6mLjh1/Pbt7XMt5dvfvtLl1Fbv7BtbhrtyEPW6V038H1yE88yQTTkqC1LJVnIeaCNe7dr3sEPEe6lCb9LWGfa3efvNG8pe5fF8NeW8g3n7jCI+/xOOEVH19KvF9oudHH2n/YOtYgiAIgiAIgiAIgiA+fm69mx3aO8bYtkHn/xlwDq8nkwaavz9h9swzc+DWwRrm71A5CJVVjeChTtk26Fqwu0fxQjUL+9vqHVV/KC53OUd+bJxVfBkw7/gzCO5pr3dOK/g+WUQDeZlV/A2QRwJ5THjn1/xcd9BfhlT1KbgpVwLn+W2amGr2//8CUEsDBBQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABwAQ29udGVudHMvTWFjT1Mvc3Vkby1wcm9tcHQtc2NyaXB0VVQJAAOJkBBXipAQV3V4CwABBPUBAAAEFAAAAI1SO08cMRDu91cMHIKGxUB5xSGEUqTlFKWMvPYca+EXnjGXy6/PeNcg0qVay+PvObs5U5OLatI0DxvYIwNVm4BdQGIdMhxSkauJ8K1i7FOjvSdwB2A+/WJnXpEJdEGwjvTk0W6HhTW8WldgzKDedVF2Ug2tLn7svz3DDpTFdxWr93C/u7wbVKWyoDhVM/8XZAOPOXvcm+IyXxGcizeaUca0XJ1D0CfQnlEysE2VwbuII0br4gvdCMF37m9IoC39+oxTO2EpS8oZJdtRS0aIKY5/sCQoyLVEMMki6Ghl0BGN9SeuICkPIctXDHDDSB9oGEQi1yZWUAda8EZnIcR/eIOOVao+9TrbkpYFjLmkkHk0KYSGvdt12/e71cP6Hs2c4OJBemtsYusplVX+GLHQ7DKkQ098/ZF38dLEpRCeNUMlMW90BIseeQkWtuu2qKmIyDHCuqFuo1N11Ud/1Cf6CHb7Sfxld2ATklQoUGEDActfZ5326WU74G/HcDv8BVBLAwQKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAcAENvbnRlbnRzL1BrZ0luZm9VVAkAA82cSVYqkRBXdXgLAAEE9QEAAAQUAAAAQVBQTGFwbHRQSwMECgAAAAAAm3lwRwAAAAAAAAAAAAAAABMAHABDb250ZW50cy9SZXNvdXJjZXMvVVQJAANW1klWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACAeXBHfrnysfYGAAAf3AAAHgAcAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUCQADH9ZJVnGlD1d1eAsAAQT1AQAABBQAAADt3Xk81Hkcx/Hvb5yVo5bGsVlKbcpRRqFlGZGS5JikRBIdI0OZttMZloqiYwrVjD1UqJaUokTRubG72bZVjqR1VZNjp2XEGo9H+9gt+9h/9tHx8H7N4/fw5MHjYeaPz+P7+P7x/bL9griEPNBm+001J0S+ZbvL/NmKwzWHE0IUHebYuRFCEckjL9v/xSvk2EpCpBXZtrYuDra2Oi4hwSvZgSsIMU9MdPdePcZd1aqQu0p3fDkrcFrs+mPWihMU9y6clp5XEFFdbRrEczCtGtfkL3pWfvBGublJ4ct051kuocYtaaqll/IjdfR+V75vlTdl//AJVZU6elZ5f0S7NO3MaE2xMElhF+TUrHgW2nFYeGTrs/OrhDJN5zMX8ZJVKXrqSUM1Rj03bnf85/pJMXECNdl0D1ctfe/j82imziM2nllSa3t5q8+vP1f38k/k22uN1lmnvfz0b8dGxO+mnh91v7WB2tKdrG3d4vmJaHlTvjGzdMqWcw/9frnCtQpPZK9sMKi/Ey/jzgqIPzBy9/dlf9griI2/u+sjcApozWx6/NXytC+qBTlrhb69fE7J6tgOzpWjFSl8qxihr5dYf/qExoeupY6Ze/j2PfL1azhhZ8fU3eelJY+ylk16UJN6KmOU0M4r+75cZhH/mxNndowNb4wx7TCoN4yvMGu8ySq5l5W5t+xQyYbS/Ome7e0W0sXbC5aktl0LEXNYR9obH7dMT721dbNdT/eFzXNEYSH8GU+bQ5s6YniGcj3fHtgXPbo0Oj4i3d5G1Fjfm/Ng7kgpjQDNxw4RRnu+Vloy5ZE3J6OpwlFBzaxS25He2h3lJuizO70zJPLUYtks14RE5yrD8y2tXa5l5Wqh/NBY06yoiCLF08Nk9A5Ojbs43GmR1Ch/PaZsLf3e6uPRSrIM1ROqGjt80leqfdxYbNn+WV7K7ZKiy/t6r1/3ie46V5432T/Oahs9V7NnVzb9zoq2rFgvPxXrcAMzmvWnGjof/RpdsZThIEpex6DGbd5h6STaOyZXxV/YfW9u4KyllmZ3X15IMHHLSJtVPSOvULCsz2TyPC/WL9kGSme/1L01SSzjfbHnqk+OV7OBmevZeo3DBR7lXT5drT0MkX5PwDd1EQ0ebfkh1zy/L8ydd+VJ4CLuRndNjuwj+vMfU8q2l2l1rGtr8FC2D+fdSGk81eltuTjYSMk++4BMd0DXQo35iXbZndGdcXkGFyeG6b28evF22M2w22HlYSXetGSLW4cfFT00WqvN9bkqCujQ9KzdSt+snr+qmbcme+5Y3cDRn9BDLps+dPVltE9UkPeb6XovineiVUznTznyuZaSn/ZvR8VeRUYLqe3iHFqnU6+7+4LmtfsmaS0MdjIvslFJGG/rn7DPdMGLcx4d6eP2Oz92Y49kWbBUjudU2ijHnc7YIODQxD1aPx8PynVr+cmvJoy2+M5nQa2Kt0dvdPxp73LNU6aTeaktTfHH1L+8Pm/XalZcFcfzYxlhTefuzjRGobLKEqPZh8QKxUXWbU/ERvW78ghvTGTUNd0g9YqbcjUy5h0xVbn3S7SS54SOqKt88UR0qZuxKfxlZfODUm52o2HkGTOLw5dqhevvWjH7ssiqxAhKwA91d1nWG9w/GJIc7GwWbKKe/mAsGRqXBb87P10jH8/0LY6kpGQV1KcuAwAAeCt4LiVFWRJKs4DJ6p9GxGHWfLuTM5dt61/pzCCE7vLmSodGJM/ASqdzU2U3VjpY6WClg5XOICudUaI3VjocuWCsdAAAAAAAAAAAAAAAAD5o1Gmr054TSoqWxPvnfrLxVEIc29/cT5YmkmdgPzlCSz8a+8nYT8Z+MvaTB9lPZpJX+8lRktFyRdDF0m6IdcF2MgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8ddD8G5oJkUuQnAXwnvxLAAAAADDkEFURRckVE6rIv+Tb1078MiZEetubJ34RHckzcOIXd8uWTpz4hRO/cOIXTvwa5MQvoidZ5S8a9h8nfl1QVhipQ6jyyWeuvTaBGP3D5fwgE4gpeQYmUCZ7XQ0mECYQJhAm0GATyOfVmYOU4sAdNi+cOUpm/9cdNv2Di8kkFN3mYOtrg8sE14xicGFwYXDhmlEAAD5w/Os1o8bTcM0oVjpY6WClg2tGAQAAAAAAAAAAAAAAgL/wb9eMBpow+r817yN/fwnJf33P5g78nWofEZNXD3u95GdSkh3o135/aL2i3vl/gHf/7t59oDlnDSHS8gQhNGQL8uWs6P+iwPYLDuIOzARqyM+E9QOfA3PIfw4IIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhND70J9QSwMEFAAAAAgA7VhwR/dYplZAAAAAagEAAB4AHABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAkAA82cSVZTpQ9XdXgLAAEE9QEAAAQUAAAAY2BgZGBgYFQBEiDsxjDygJQDPlkmEIEaRpJAQg8kLAMML8bi5OIqIFuouKA4A0jLMTD8/w+S5AdrB7PlBIAEAFBLAwQKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1VUCQADzZxJVi2REFd1eAsAAQT1AQAABBQAAABQSwMEFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAHABDb250ZW50cy9SZXNvdXJjZXMvZGVzY3JpcHRpb24ucnRmZC9UWFQucnRmVVQJAAPNnElWU6UPV3V4CwABBPUBAAAEFAAAACWJOw6AIBAFe08DCBVX2QbWhZgQ1vCpCHcXtHkzkzegtCDB5Xp/g0+UyihARnb70kL/UbvffYpjQODcmk9zKXListxCoUsZA7EQ5S0+dVq085gvUEsDBAoAAAAAAIeBjkgAAAAAAAAAAAAAAAAbABwAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQJAAM9pQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACAAJgI5ICl5liTUBAADMAQAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUCQADcaIPV1OlD1d1eAsAAQT1AQAABBQAAAB9UMtOAkEQrNldd9dhH3Dz6NGYiPIJHjTxLCZeF9iDcXEJC0RvfoI/4sEfIvoHPEQEhbIHvOok01U16emu7vOkaF2dXu7XqrUTcyMATkxCwYKthCAUbmciAQ8O11yFcGBfbF/4jR24WmCvWjwUeXqfNutn13XyEeYYHkqKam+kghdJGfUCvwIfB6jiGAX6aCHHETroCrYFe6IKNEXfGOXChc0v7HKpBRzdSFrtELvbumKVC80F/FIjzwe9bj91uZRuXJuwAiLjNi7DlsxPaJSUAMrCFOeac3GfpINennQ6d/0sA4z7JxzKiVCCV+YHAs74LuuIONUi//4RIoC63czrIbYQS3PFicWJcTMTv1JHmocmROLJ45gjzfHvXJqjf7ZZ4RT+61uaBbDipGh2ZanBcjh8/gFQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAACQAYAAAAAAAAABAA7UEAAAAAQ29udGVudHMvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAoHlwR5R2hqihAQAAvgMAABMAGAAAAAAAAQAAAKSBQwAAAENvbnRlbnRzL0luZm8ucGxpc3RVVAUAA1zWSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAAB0gY5IAAAAAAAAAAAAAAAADwAYAAAAAAAAABAA7UExAgAAQ29udGVudHMvTWFjT1MvVVQFAAMbpQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAVRwXR+w5OCkyCAAAyGEAABUAGAAAAAAAAAAAAO2BegIAAENvbnRlbnRzL01hY09TL2FwcGxldFVUBQADMiPZVXV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABgAAAAAAAEAAADtgfsKAABDb250ZW50cy9NYWNPUy9zdWRvLXByb21wdC1zY3JpcHRVVAUAA4mQEFd1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAYAAAAAAABAAAApIHTDAAAQ29udGVudHMvUGtnSW5mb1VUBQADzZxJVnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJt5cEcAAAAAAAAAAAAAAAATABgAAAAAAAAAEADtQSUNAABDb250ZW50cy9SZXNvdXJjZXMvVVQFAANW1klWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAgHlwR3658rH2BgAAH9wAAB4AGAAAAAAAAAAAAKSBcg0AAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUBQADH9ZJVnV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAO1YcEf3WKZWQAAAAGoBAAAeABgAAAAAAAAAAACkgcAUAABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAYAAAAAAAAABAA7UFYFQAAQ29udGVudHMvUmVzb3VyY2VzL2Rlc2NyaXB0aW9uLnJ0ZmQvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAGAAAAAAAAQAAAKSBthUAAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1RYVC5ydGZVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAACHgY5IAAAAAAAAAAAAAAAAGwAYAAAAAAAAABAA7UFuFgAAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQFAAM9pQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgACYCOSApeZYk1AQAAzAEAACQAGAAAAAAAAAAAAKSBwxYAAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUBQADcaIPV3V4CwABBPUBAAAEFAAAAFBLBQYAAAAADQANANwEAABWGAAAAAA=";var u="User did not grant permission.";var l="No polkit authentication agent found.";var h=134217728},395:(t,r,i)=>{"use strict";const o=i(2037);const a=i(6224);const u=i(6738);const{env:l}=process;let h;if(u("no-color")||u("no-colors")||u("color=false")||u("color=never")){h=0}else if(u("color")||u("colors")||u("color=true")||u("color=always")){h=1}if("FORCE_COLOR"in l){if(l.FORCE_COLOR==="true"){h=1}else if(l.FORCE_COLOR==="false"){h=0}else{h=l.FORCE_COLOR.length===0?1:Math.min(parseInt(l.FORCE_COLOR,10),3)}}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t,r){if(h===0){return 0}if(u("color=16m")||u("color=full")||u("color=truecolor")){return 3}if(u("color=256")){return 2}if(t&&!r&&h===undefined){return 0}const i=h||0;if(l.TERM==="dumb"){return i}if(process.platform==="win32"){const t=o.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in l){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in l))||l.CI_NAME==="codeship"){return 1}return i}if("TEAMCITY_VERSION"in l){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0}if(l.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in l){const t=parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(l.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)){return 1}if("COLORTERM"in l){return 1}return i}function getSupportLevel(t){const r=supportsColor(t,t&&t.isTTY);return translateLevel(r)}t.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,a.isatty(1))),stderr:translateLevel(supportsColor(true,a.isatty(2)))}},8089:(t,r,i)=>{"use strict";r.c=r.create=i(9748);r.r=r.replace=i(6133);r.t=r.list=i(9405);r.u=r.update=i(4437);r.x=r.extract=i(4330);r.Pack=i(5873);r.Unpack=i(1634);r.Parse=i(6474);r.ReadEntry=i(2332);r.WriteEntry=i(2435);r.Header=i(1815);r.Pax=i(3179);r.types=i(2500)},9748:(t,r,i)=>{"use strict";const o=i(4976);const a=i(5873);const u=i(3597);const l=i(9405);const h=i(1017);t.exports=(t,r,i)=>{if(typeof r==="function"){i=r}if(Array.isArray(t)){r=t,t={}}if(!r||!Array.isArray(r)||!r.length){throw new TypeError("no files or directories specified")}r=Array.from(r);const a=o(t);if(a.sync&&typeof i==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!a.file&&typeof i==="function"){throw new TypeError("callback only supported with file option")}return a.file&&a.sync?createFileSync(a,r):a.file?createFile(a,r,i):a.sync?createSync(a,r):create(a,r)};const createFileSync=(t,r)=>{const i=new a.Sync(t);const o=new u.WriteStreamSync(t.file,{mode:t.mode||438});i.pipe(o);addFilesSync(i,r)};const createFile=(t,r,i)=>{const o=new a(t);const l=new u.WriteStream(t.file,{mode:t.mode||438});o.pipe(l);const h=new Promise(((t,r)=>{l.on("error",r);l.on("close",t);o.on("error",r)}));addFilesAsync(o,r);return i?h.then(i,i):h};const addFilesSync=(t,r)=>{r.forEach((r=>{if(r.charAt(0)==="@"){l({file:h.resolve(t.cwd,r.slice(1)),sync:true,noResume:true,onentry:r=>t.add(r)})}else{t.add(r)}}));t.end()};const addFilesAsync=(t,r)=>{while(r.length){const i=r.shift();if(i.charAt(0)==="@"){return l({file:h.resolve(t.cwd,i.slice(1)),noResume:true,onentry:r=>t.add(r)}).then((i=>addFilesAsync(t,r)))}else{t.add(i)}}t.end()};const createSync=(t,r)=>{const i=new a.Sync(t);addFilesSync(i,r);return i};const create=(t,r)=>{const i=new a(t);addFilesAsync(i,r);return i}},4330:(t,r,i)=>{"use strict";const o=i(4976);const a=i(1634);const u=i(7147);const l=i(3597);const h=i(1017);const p=i(422);t.exports=(t,r,i)=>{if(typeof t==="function"){i=t,r=null,t={}}else if(Array.isArray(t)){r=t,t={}}if(typeof r==="function"){i=r,r=null}if(!r){r=[]}else{r=Array.from(r)}const a=o(t);if(a.sync&&typeof i==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!a.file&&typeof i==="function"){throw new TypeError("callback only supported with file option")}if(r.length){filesFilter(a,r)}return a.file&&a.sync?extractFileSync(a):a.file?extractFile(a,i):a.sync?extractSync(a):extract(a)};const filesFilter=(t,r)=>{const i=new Map(r.map((t=>[p(t),true])));const o=t.filter;const mapHas=(t,r)=>{const o=r||h.parse(t).root||".";const a=t===o?false:i.has(t)?i.get(t):mapHas(h.dirname(t),o);i.set(t,a);return a};t.filter=o?(t,r)=>o(t,r)&&mapHas(p(t)):t=>mapHas(p(t))};const extractFileSync=t=>{const r=new a.Sync(t);const i=t.file;const o=u.statSync(i);const h=t.maxReadSize||16*1024*1024;const p=new l.ReadStreamSync(i,{readSize:h,size:o.size});p.pipe(r)};const extractFile=(t,r)=>{const i=new a(t);const o=t.maxReadSize||16*1024*1024;const h=t.file;const p=new Promise(((t,r)=>{i.on("error",r);i.on("close",t);u.stat(h,((t,a)=>{if(t){r(t)}else{const t=new l.ReadStream(h,{readSize:o,size:a.size});t.on("error",r);t.pipe(i)}}))}));return r?p.then(r,r):p};const extractSync=t=>new a.Sync(t);const extract=t=>new a(t)},5868:(t,r,i)=>{const o=process.env.__FAKE_PLATFORM__||process.platform;const a=o==="win32";const u=global.__FAKE_TESTING_FS__||i(7147);const{O_CREAT:l,O_TRUNC:h,O_WRONLY:p,UV_FS_O_FILEMAP:d=0}=u.constants;const m=a&&!!d;const g=512*1024;const y=d|h|l|p;t.exports=!m?()=>"w":t=>t<g?y:"w"},1815:(t,r,i)=>{"use strict";const o=i(2500);const a=i(1017).posix;const u=i(9939);const l=Symbol("slurp");const h=Symbol("type");class Header{constructor(t,r,i,o){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[h]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(Buffer.isBuffer(t)){this.decode(t,r||0,i,o)}else if(t){this.set(t)}}decode(t,r,i,o){if(!r){r=0}if(!t||!(t.length>=r+512)){throw new Error("need 512 bytes for header")}this.path=decString(t,r,100);this.mode=decNumber(t,r+100,8);this.uid=decNumber(t,r+108,8);this.gid=decNumber(t,r+116,8);this.size=decNumber(t,r+124,12);this.mtime=decDate(t,r+136,12);this.cksum=decNumber(t,r+148,12);this[l](i);this[l](o,true);this[h]=decString(t,r+156,1);if(this[h]===""){this[h]="0"}if(this[h]==="0"&&this.path.slice(-1)==="/"){this[h]="5"}if(this[h]==="5"){this.size=0}this.linkpath=decString(t,r+157,100);if(t.slice(r+257,r+265).toString()==="ustar\x0000"){this.uname=decString(t,r+265,32);this.gname=decString(t,r+297,32);this.devmaj=decNumber(t,r+329,8);this.devmin=decNumber(t,r+337,8);if(t[r+475]!==0){const i=decString(t,r+345,155);this.path=i+"/"+this.path}else{const i=decString(t,r+345,130);if(i){this.path=i+"/"+this.path}this.atime=decDate(t,r+476,12);this.ctime=decDate(t,r+488,12)}}let a=8*32;for(let i=r;i<r+148;i++){a+=t[i]}for(let i=r+156;i<r+512;i++){a+=t[i]}this.cksumValid=a===this.cksum;if(this.cksum===null&&a===8*32){this.nullBlock=true}}[l](t,r){for(const i in t){if(t[i]!==null&&t[i]!==undefined&&!(r&&i==="path")){this[i]=t[i]}}}encode(t,r){if(!t){t=this.block=Buffer.alloc(512);r=0}if(!r){r=0}if(!(t.length>=r+512)){throw new Error("need 512 bytes for header")}const i=this.ctime||this.atime?130:155;const o=splitPrefix(this.path||"",i);const a=o[0];const u=o[1];this.needPax=o[2];this.needPax=encString(t,r,100,a)||this.needPax;this.needPax=encNumber(t,r+100,8,this.mode)||this.needPax;this.needPax=encNumber(t,r+108,8,this.uid)||this.needPax;this.needPax=encNumber(t,r+116,8,this.gid)||this.needPax;this.needPax=encNumber(t,r+124,12,this.size)||this.needPax;this.needPax=encDate(t,r+136,12,this.mtime)||this.needPax;t[r+156]=this[h].charCodeAt(0);this.needPax=encString(t,r+157,100,this.linkpath)||this.needPax;t.write("ustar\x0000",r+257,8);this.needPax=encString(t,r+265,32,this.uname)||this.needPax;this.needPax=encString(t,r+297,32,this.gname)||this.needPax;this.needPax=encNumber(t,r+329,8,this.devmaj)||this.needPax;this.needPax=encNumber(t,r+337,8,this.devmin)||this.needPax;this.needPax=encString(t,r+345,i,u)||this.needPax;if(t[r+475]!==0){this.needPax=encString(t,r+345,155,u)||this.needPax}else{this.needPax=encString(t,r+345,130,u)||this.needPax;this.needPax=encDate(t,r+476,12,this.atime)||this.needPax;this.needPax=encDate(t,r+488,12,this.ctime)||this.needPax}let l=8*32;for(let i=r;i<r+148;i++){l+=t[i]}for(let i=r+156;i<r+512;i++){l+=t[i]}this.cksum=l;encNumber(t,r+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(t){for(const r in t){if(t[r]!==null&&t[r]!==undefined){this[r]=t[r]}}}get type(){return o.name.get(this[h])||this[h]}get typeKey(){return this[h]}set type(t){if(o.code.has(t)){this[h]=o.code.get(t)}else{this[h]=t}}}const splitPrefix=(t,r)=>{const i=100;let o=t;let u="";let l;const h=a.parse(t).root||".";if(Buffer.byteLength(o)<i){l=[o,u,false]}else{u=a.dirname(o);o=a.basename(o);do{if(Buffer.byteLength(o)<=i&&Buffer.byteLength(u)<=r){l=[o,u,false]}else if(Buffer.byteLength(o)>i&&Buffer.byteLength(u)<=r){l=[o.slice(0,i-1),u,true]}else{o=a.join(a.basename(u),o);u=a.dirname(u)}}while(u!==h&&!l);if(!l){l=[t.slice(0,i-1),"",true]}}return l};const decString=(t,r,i)=>t.slice(r,r+i).toString("utf8").replace(/\0.*/,"");const decDate=(t,r,i)=>numToDate(decNumber(t,r,i));const numToDate=t=>t===null?null:new Date(t*1e3);const decNumber=(t,r,i)=>t[r]&128?u.parse(t.slice(r,r+i)):decSmallNumber(t,r,i);const nanNull=t=>isNaN(t)?null:t;const decSmallNumber=(t,r,i)=>nanNull(parseInt(t.slice(r,r+i).toString("utf8").replace(/\0.*$/,"").trim(),8));const p={12:8589934591,8:2097151};const encNumber=(t,r,i,o)=>o===null?false:o>p[i]||o<0?(u.encode(o,t.slice(r,r+i)),true):(encSmallNumber(t,r,i,o),false);const encSmallNumber=(t,r,i,o)=>t.write(octalString(o,i),r,i,"ascii");const octalString=(t,r)=>padOctal(Math.floor(t).toString(8),r);const padOctal=(t,r)=>(t.length===r-1?t:new Array(r-t.length-1).join("0")+t+" ")+"\0";const encDate=(t,r,i,o)=>o===null?false:encNumber(t,r,i,o.getTime()/1e3);const d=new Array(156).join("\0");const encString=(t,r,i,o)=>o===null?false:(t.write(o+d,r,i,"utf8"),o.length!==Buffer.byteLength(o)||o.length>i);t.exports=Header},4976:t=>{"use strict";const r=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);t.exports=t=>t?Object.keys(t).map((i=>[r.has(i)?r.get(i):i,t[i]])).reduce(((t,r)=>(t[r[0]]=r[1],t)),Object.create(null)):{}},9939:t=>{"use strict";const encode=(t,r)=>{if(!Number.isSafeInteger(t)){throw Error("cannot encode number outside of javascript safe integer range")}else if(t<0){encodeNegative(t,r)}else{encodePositive(t,r)}return r};const encodePositive=(t,r)=>{r[0]=128;for(var i=r.length;i>1;i--){r[i-1]=t&255;t=Math.floor(t/256)}};const encodeNegative=(t,r)=>{r[0]=255;var i=false;t=t*-1;for(var o=r.length;o>1;o--){var a=t&255;t=Math.floor(t/256);if(i){r[o-1]=onesComp(a)}else if(a===0){r[o-1]=0}else{i=true;r[o-1]=twosComp(a)}}};const parse=t=>{const r=t[0];const i=r===128?pos(t.slice(1,t.length)):r===255?twos(t):null;if(i===null){throw Error("invalid base256 encoding")}if(!Number.isSafeInteger(i)){throw Error("parsed number outside of javascript safe integer range")}return i};const twos=t=>{var r=t.length;var i=0;var o=false;for(var a=r-1;a>-1;a--){var u=t[a];var l;if(o){l=onesComp(u)}else if(u===0){l=u}else{o=true;l=twosComp(u)}if(l!==0){i-=l*Math.pow(256,r-a-1)}}return i};const pos=t=>{var r=t.length;var i=0;for(var o=r-1;o>-1;o--){var a=t[o];if(a!==0){i+=a*Math.pow(256,r-o-1)}}return i};const onesComp=t=>(255^t)&255;const twosComp=t=>(255^t)+1&255;t.exports={encode:encode,parse:parse}},9405:(t,r,i)=>{"use strict";const o=i(4976);const a=i(6474);const u=i(7147);const l=i(3597);const h=i(1017);const p=i(422);t.exports=(t,r,i)=>{if(typeof t==="function"){i=t,r=null,t={}}else if(Array.isArray(t)){r=t,t={}}if(typeof r==="function"){i=r,r=null}if(!r){r=[]}else{r=Array.from(r)}const a=o(t);if(a.sync&&typeof i==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!a.file&&typeof i==="function"){throw new TypeError("callback only supported with file option")}if(r.length){filesFilter(a,r)}if(!a.noResume){onentryFunction(a)}return a.file&&a.sync?listFileSync(a):a.file?listFile(a,i):list(a)};const onentryFunction=t=>{const r=t.onentry;t.onentry=r?t=>{r(t);t.resume()}:t=>t.resume()};const filesFilter=(t,r)=>{const i=new Map(r.map((t=>[p(t),true])));const o=t.filter;const mapHas=(t,r)=>{const o=r||h.parse(t).root||".";const a=t===o?false:i.has(t)?i.get(t):mapHas(h.dirname(t),o);i.set(t,a);return a};t.filter=o?(t,r)=>o(t,r)&&mapHas(p(t)):t=>mapHas(p(t))};const listFileSync=t=>{const r=list(t);const i=t.file;let o=true;let a;try{const l=u.statSync(i);const h=t.maxReadSize||16*1024*1024;if(l.size<h){r.end(u.readFileSync(i))}else{let t=0;const o=Buffer.allocUnsafe(h);a=u.openSync(i,"r");while(t<l.size){const i=u.readSync(a,o,0,h,t);t+=i;r.write(o.slice(0,i))}r.end()}o=false}finally{if(o&&a){try{u.closeSync(a)}catch(t){}}}};const listFile=(t,r)=>{const i=new a(t);const o=t.maxReadSize||16*1024*1024;const h=t.file;const p=new Promise(((t,r)=>{i.on("error",r);i.on("end",t);u.stat(h,((t,a)=>{if(t){r(t)}else{const t=new l.ReadStream(h,{readSize:o,size:a.size});t.on("error",r);t.pipe(i)}}))}));return r?p.then(r,r):p};const list=t=>new a(t)},6790:(t,r,i)=>{"use strict";const o=i(4184);const a=i(7147);const u=i(1017);const l=i(5649);const h=i(5536);class SymlinkError extends Error{constructor(t,r){super("Cannot extract through symbolic link");this.path=r;this.symlink=t}get name(){return"SylinkError"}}class CwdError extends Error{constructor(t,r){super(r+": Cannot cd into '"+t+"'");this.path=t;this.code=r}get name(){return"CwdError"}}const cGet=(t,r)=>t.get(h(r));const cSet=(t,r,i)=>t.set(h(r),i);const checkCwd=(t,r)=>{a.stat(t,((i,o)=>{if(i||!o.isDirectory()){i=new CwdError(t,i&&i.code||"ENOTDIR")}r(i)}))};t.exports=(t,r,i)=>{t=h(t);const p=r.umask;const d=r.mode|448;const m=(d&p)!==0;const g=r.uid;const y=r.gid;const A=typeof g==="number"&&typeof y==="number"&&(g!==r.processUid||y!==r.processGid);const b=r.preserve;const v=r.unlink;const w=r.cache;const E=h(r.cwd);const done=(r,o)=>{if(r){i(r)}else{cSet(w,t,true);if(o&&A){l(o,g,y,(t=>done(t)))}else if(m){a.chmod(t,d,i)}else{i()}}};if(w&&cGet(w,t)===true){return done()}if(t===E){return checkCwd(t,done)}if(b){return o(t,{mode:d}).then((t=>done(null,t)),done)}const _=h(u.relative(E,t));const S=_.split("/");mkdir_(E,S,d,w,v,E,null,done)};const mkdir_=(t,r,i,o,l,p,d,m)=>{if(!r.length){return m(null,d)}const g=r.shift();const y=h(u.resolve(t+"/"+g));if(cGet(o,y)){return mkdir_(y,r,i,o,l,p,d,m)}a.mkdir(y,i,onmkdir(y,r,i,o,l,p,d,m))};const onmkdir=(t,r,i,o,u,l,p,d)=>m=>{if(m){a.lstat(t,((g,y)=>{if(g){g.path=g.path&&h(g.path);d(g)}else if(y.isDirectory()){mkdir_(t,r,i,o,u,l,p,d)}else if(u){a.unlink(t,(h=>{if(h){return d(h)}a.mkdir(t,i,onmkdir(t,r,i,o,u,l,p,d))}))}else if(y.isSymbolicLink()){return d(new SymlinkError(t,t+"/"+r.join("/")))}else{d(m)}}))}else{p=p||t;mkdir_(t,r,i,o,u,l,p,d)}};const checkCwdSync=t=>{let r=false;let i="ENOTDIR";try{r=a.statSync(t).isDirectory()}catch(t){i=t.code}finally{if(!r){throw new CwdError(t,i)}}};t.exports.sync=(t,r)=>{t=h(t);const i=r.umask;const p=r.mode|448;const d=(p&i)!==0;const m=r.uid;const g=r.gid;const y=typeof m==="number"&&typeof g==="number"&&(m!==r.processUid||g!==r.processGid);const A=r.preserve;const b=r.unlink;const v=r.cache;const w=h(r.cwd);const done=r=>{cSet(v,t,true);if(r&&y){l.sync(r,m,g)}if(d){a.chmodSync(t,p)}};if(v&&cGet(v,t)===true){return done()}if(t===w){checkCwdSync(w);return done()}if(A){return done(o.sync(t,p))}const E=h(u.relative(w,t));const _=E.split("/");let S=null;for(let t=_.shift(),r=w;t&&(r+="/"+t);t=_.shift()){r=h(u.resolve(r));if(cGet(v,r)){continue}try{a.mkdirSync(r,p);S=S||r;cSet(v,r,true)}catch(t){const i=a.lstatSync(r);if(i.isDirectory()){cSet(v,r,true);continue}else if(b){a.unlinkSync(r);a.mkdirSync(r,p);S=S||r;cSet(v,r,true);continue}else if(i.isSymbolicLink()){return new SymlinkError(r,r+"/"+_.join("/"))}}}return done(S)}},2701:t=>{"use strict";t.exports=(t,r,i)=>{t&=4095;if(i){t=(t|384)&~18}if(r){if(t&256){t|=64}if(t&32){t|=8}if(t&4){t|=1}}return t}},4462:t=>{const r=Object.create(null);const{hasOwnProperty:i}=Object.prototype;t.exports=t=>{if(!i.call(r,t)){r[t]=t.normalize("NFD")}return r[t]}},5536:t=>{const r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;t.exports=r!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")},5873:(t,r,i)=>{"use strict";class PackJob{constructor(t,r){this.path=t||"./";this.absolute=r;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const{Minipass:o}=i(6047);const a=i(7547);const u=i(2332);const l=i(2435);const h=l.Sync;const p=l.Tar;const d=i(4461);const m=Buffer.alloc(1024);const g=Symbol("onStat");const y=Symbol("ended");const A=Symbol("queue");const b=Symbol("current");const v=Symbol("process");const w=Symbol("processing");const E=Symbol("processJob");const _=Symbol("jobs");const S=Symbol("jobDone");const C=Symbol("addFSEntry");const D=Symbol("addTarEntry");const x=Symbol("stat");const R=Symbol("readdir");const O=Symbol("onreaddir");const k=Symbol("pipe");const P=Symbol("entry");const T=Symbol("entryOpt");const L=Symbol("writeEntryClass");const I=Symbol("write");const M=Symbol("ondrain");const B=i(7147);const N=i(1017);const $=i(4239);const j=i(5536);const H=$(class Pack extends o{constructor(t){super(t);t=t||Object.create(null);this.opt=t;this.file=t.file||"";this.cwd=t.cwd||process.cwd();this.maxReadSize=t.maxReadSize;this.preservePaths=!!t.preservePaths;this.strict=!!t.strict;this.noPax=!!t.noPax;this.prefix=j(t.prefix||"");this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.readdirCache=t.readdirCache||new Map;this[L]=l;if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}this.portable=!!t.portable;this.zip=null;if(t.gzip||t.brotli){if(t.gzip&&t.brotli){throw new TypeError("gzip and brotli are mutually exclusive")}if(t.gzip){if(typeof t.gzip!=="object"){t.gzip={}}if(this.portable){t.gzip.portable=true}this.zip=new a.Gzip(t.gzip)}if(t.brotli){if(typeof t.brotli!=="object"){t.brotli={}}this.zip=new a.BrotliCompress(t.brotli)}this.zip.on("data",(t=>super.write(t)));this.zip.on("end",(t=>super.end()));this.zip.on("drain",(t=>this[M]()));this.on("resume",(t=>this.zip.resume()))}else{this.on("drain",this[M])}this.noDirRecurse=!!t.noDirRecurse;this.follow=!!t.follow;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;this.filter=typeof t.filter==="function"?t.filter:t=>true;this[A]=new d;this[_]=0;this.jobs=+t.jobs||4;this[w]=false;this[y]=false}[I](t){return super.write(t)}add(t){this.write(t);return this}end(t){if(t){this.write(t)}this[y]=true;this[v]();return this}write(t){if(this[y]){throw new Error("write after end")}if(t instanceof u){this[D](t)}else{this[C](t)}return this.flowing}[D](t){const r=j(N.resolve(this.cwd,t.path));if(!this.filter(t.path,t)){t.resume()}else{const i=new PackJob(t.path,r,false);i.entry=new p(t,this[T](i));i.entry.on("end",(t=>this[S](i)));this[_]+=1;this[A].push(i)}this[v]()}[C](t){const r=j(N.resolve(this.cwd,t));this[A].push(new PackJob(t,r));this[v]()}[x](t){t.pending=true;this[_]+=1;const r=this.follow?"stat":"lstat";B[r](t.absolute,((r,i)=>{t.pending=false;this[_]-=1;if(r){this.emit("error",r)}else{this[g](t,i)}}))}[g](t,r){this.statCache.set(t.absolute,r);t.stat=r;if(!this.filter(t.path,r)){t.ignore=true}this[v]()}[R](t){t.pending=true;this[_]+=1;B.readdir(t.absolute,((r,i)=>{t.pending=false;this[_]-=1;if(r){return this.emit("error",r)}this[O](t,i)}))}[O](t,r){this.readdirCache.set(t.absolute,r);t.readdir=r;this[v]()}[v](){if(this[w]){return}this[w]=true;for(let t=this[A].head;t!==null&&this[_]<this.jobs;t=t.next){this[E](t.value);if(t.value.ignore){const r=t.next;this[A].removeNode(t);t.next=r}}this[w]=false;if(this[y]&&!this[A].length&&this[_]===0){if(this.zip){this.zip.end(m)}else{super.write(m);super.end()}}}get[b](){return this[A]&&this[A].head&&this[A].head.value}[S](t){this[A].shift();this[_]-=1;this[v]()}[E](t){if(t.pending){return}if(t.entry){if(t===this[b]&&!t.piped){this[k](t)}return}if(!t.stat){if(this.statCache.has(t.absolute)){this[g](t,this.statCache.get(t.absolute))}else{this[x](t)}}if(!t.stat){return}if(t.ignore){return}if(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir){if(this.readdirCache.has(t.absolute)){this[O](t,this.readdirCache.get(t.absolute))}else{this[R](t)}if(!t.readdir){return}}t.entry=this[P](t);if(!t.entry){t.ignore=true;return}if(t===this[b]&&!t.piped){this[k](t)}}[T](t){return{onwarn:(t,r,i)=>this.warn(t,r,i),noPax:this.noPax,cwd:this.cwd,absolute:t.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[P](t){this[_]+=1;try{return new this[L](t.path,this[T](t)).on("end",(()=>this[S](t))).on("error",(t=>this.emit("error",t)))}catch(t){this.emit("error",t)}}[M](){if(this[b]&&this[b].entry){this[b].entry.resume()}}[k](t){t.piped=true;if(t.readdir){t.readdir.forEach((r=>{const i=t.path;const o=i==="./"?"":i.replace(/\/*$/,"/");this[C](o+r)}))}const r=t.entry;const i=this.zip;if(i){r.on("data",(t=>{if(!i.write(t)){r.pause()}}))}else{r.on("data",(t=>{if(!super.write(t)){r.pause()}}))}}pause(){if(this.zip){this.zip.pause()}return super.pause()}});class PackSync extends H{constructor(t){super(t);this[L]=h}pause(){}resume(){}[x](t){const r=this.follow?"statSync":"lstatSync";this[g](t,B[r](t.absolute))}[R](t,r){this[O](t,B.readdirSync(t.absolute))}[k](t){const r=t.entry;const i=this.zip;if(t.readdir){t.readdir.forEach((r=>{const i=t.path;const o=i==="./"?"":i.replace(/\/*$/,"/");this[C](o+r)}))}if(i){r.on("data",(t=>{i.write(t)}))}else{r.on("data",(t=>{super[I](t)}))}}}H.Sync=PackSync;t.exports=H},6474:(t,r,i)=>{"use strict";const o=i(4239);const a=i(1815);const u=i(2361);const l=i(4461);const h=1024*1024;const p=i(2332);const d=i(3179);const m=i(7547);const{nextTick:g}=i(7282);const y=Buffer.from([31,139]);const A=Symbol("state");const b=Symbol("writeEntry");const v=Symbol("readEntry");const w=Symbol("nextEntry");const E=Symbol("processEntry");const _=Symbol("extendedHeader");const S=Symbol("globalExtendedHeader");const C=Symbol("meta");const D=Symbol("emitMeta");const x=Symbol("buffer");const R=Symbol("queue");const O=Symbol("ended");const k=Symbol("emittedEnd");const P=Symbol("emit");const T=Symbol("unzip");const L=Symbol("consumeChunk");const I=Symbol("consumeChunkSub");const M=Symbol("consumeBody");const B=Symbol("consumeMeta");const N=Symbol("consumeHeader");const $=Symbol("consuming");const j=Symbol("bufferConcat");const H=Symbol("maybeEnd");const G=Symbol("writing");const U=Symbol("aborted");const W=Symbol("onDone");const z=Symbol("sawValidEntry");const Y=Symbol("sawNullBlock");const V=Symbol("sawEOF");const Q=Symbol("closeStream");const noop=t=>true;t.exports=o(class Parser extends u{constructor(t){t=t||{};super(t);this.file=t.file||"";this[z]=null;this.on(W,(t=>{if(this[A]==="begin"||this[z]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}}));if(t.ondone){this.on(W,t.ondone)}else{this.on(W,(t=>{this.emit("prefinish");this.emit("finish");this.emit("end")}))}this.strict=!!t.strict;this.maxMetaEntrySize=t.maxMetaEntrySize||h;this.filter=typeof t.filter==="function"?t.filter:noop;const r=t.file&&(t.file.endsWith(".tar.br")||t.file.endsWith(".tbr"));this.brotli=!t.gzip&&t.brotli!==undefined?t.brotli:r?undefined:false;this.writable=true;this.readable=false;this[R]=new l;this[x]=null;this[v]=null;this[b]=null;this[A]="begin";this[C]="";this[_]=null;this[S]=null;this[O]=false;this[T]=null;this[U]=false;this[Y]=false;this[V]=false;this.on("end",(()=>this[Q]()));if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}if(typeof t.onentry==="function"){this.on("entry",t.onentry)}}[N](t,r){if(this[z]===null){this[z]=false}let i;try{i=new a(t,r,this[_],this[S])}catch(t){return this.warn("TAR_ENTRY_INVALID",t)}if(i.nullBlock){if(this[Y]){this[V]=true;if(this[A]==="begin"){this[A]="header"}this[P]("eof")}else{this[Y]=true;this[P]("nullBlock")}}else{this[Y]=false;if(!i.cksumValid){this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i})}else if(!i.path){this.warn("TAR_ENTRY_INVALID","path is required",{header:i})}else{const t=i.type;if(/^(Symbolic)?Link$/.test(t)&&!i.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i})}else if(!/^(Symbolic)?Link$/.test(t)&&i.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i})}else{const t=this[b]=new p(i,this[_],this[S]);if(!this[z]){if(t.remain){const onend=()=>{if(!t.invalid){this[z]=true}};t.on("end",onend)}else{this[z]=true}}if(t.meta){if(t.size>this.maxMetaEntrySize){t.ignore=true;this[P]("ignoredEntry",t);this[A]="ignore";t.resume()}else if(t.size>0){this[C]="";t.on("data",(t=>this[C]+=t));this[A]="meta"}}else{this[_]=null;t.ignore=t.ignore||!this.filter(t.path,t);if(t.ignore){this[P]("ignoredEntry",t);this[A]=t.remain?"ignore":"header";t.resume()}else{if(t.remain){this[A]="body"}else{this[A]="header";t.end()}if(!this[v]){this[R].push(t);this[w]()}else{this[R].push(t)}}}}}}}[Q](){g((()=>this.emit("close")))}[E](t){let r=true;if(!t){this[v]=null;r=false}else if(Array.isArray(t)){this.emit.apply(this,t)}else{this[v]=t;this.emit("entry",t);if(!t.emittedEnd){t.on("end",(t=>this[w]()));r=false}}return r}[w](){do{}while(this[E](this[R].shift()));if(!this[R].length){const t=this[v];const r=!t||t.flowing||t.size===t.remain;if(r){if(!this[G]){this.emit("drain")}}else{t.once("drain",(t=>this.emit("drain")))}}}[M](t,r){const i=this[b];const o=i.blockRemain;const a=o>=t.length&&r===0?t:t.slice(r,r+o);i.write(a);if(!i.blockRemain){this[A]="header";this[b]=null;i.end()}return a.length}[B](t,r){const i=this[b];const o=this[M](t,r);if(!this[b]){this[D](i)}return o}[P](t,r,i){if(!this[R].length&&!this[v]){this.emit(t,r,i)}else{this[R].push([t,r,i])}}[D](t){this[P]("meta",this[C]);switch(t.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=d.parse(this[C],this[_],false);break;case"GlobalExtendedHeader":this[S]=d.parse(this[C],this[S],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null);this[_].path=this[C].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null);this[_].linkpath=this[C].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[U]=true;this.emit("abort",t);this.warn("TAR_ABORT",t,{recoverable:false})}write(t){if(this[U]){return}const r=this[T]===null||this.brotli===undefined&&this[T]===false;if(r&&t){if(this[x]){t=Buffer.concat([this[x],t]);this[x]=null}if(t.length<y.length){this[x]=t;return true}for(let r=0;this[T]===null&&r<y.length;r++){if(t[r]!==y[r]){this[T]=false}}const r=this.brotli===undefined;if(this[T]===false&&r){if(t.length<512){if(this[O]){this.brotli=true}else{this[x]=t;return true}}else{try{new a(t.slice(0,512));this.brotli=false}catch(t){this.brotli=true}}}if(this[T]===null||this[T]===false&&this.brotli){const r=this[O];this[O]=false;this[T]=this[T]===null?new m.Unzip:new m.BrotliDecompress;this[T].on("data",(t=>this[L](t)));this[T].on("error",(t=>this.abort(t)));this[T].on("end",(t=>{this[O]=true;this[L]()}));this[G]=true;const i=this[T][r?"end":"write"](t);this[G]=false;return i}}this[G]=true;if(this[T]){this[T].write(t)}else{this[L](t)}this[G]=false;const i=this[R].length?false:this[v]?this[v].flowing:true;if(!i&&!this[R].length){this[v].once("drain",(t=>this.emit("drain")))}return i}[j](t){if(t&&!this[U]){this[x]=this[x]?Buffer.concat([this[x],t]):t}}[H](){if(this[O]&&!this[k]&&!this[U]&&!this[$]){this[k]=true;const t=this[b];if(t&&t.blockRemain){const r=this[x]?this[x].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t});if(this[x]){t.write(this[x])}t.end()}this[P](W)}}[L](t){if(this[$]){this[j](t)}else if(!t&&!this[x]){this[H]()}else{this[$]=true;if(this[x]){this[j](t);const r=this[x];this[x]=null;this[I](r)}else{this[I](t)}while(this[x]&&this[x].length>=512&&!this[U]&&!this[V]){const t=this[x];this[x]=null;this[I](t)}this[$]=false}if(!this[x]||this[O]){this[H]()}}[I](t){let r=0;const i=t.length;while(r+512<=i&&!this[U]&&!this[V]){switch(this[A]){case"begin":case"header":this[N](t,r);r+=512;break;case"ignore":case"body":r+=this[M](t,r);break;case"meta":r+=this[B](t,r);break;default:throw new Error("invalid state: "+this[A])}}if(r<i){if(this[x]){this[x]=Buffer.concat([t.slice(r),this[x]])}else{this[x]=t.slice(r)}}}end(t){if(!this[U]){if(this[T]){this[T].end(t)}else{this[O]=true;if(this.brotli===undefined)t=t||Buffer.alloc(0);this.write(t)}}}})},1891:(t,r,i)=>{const o=i(9491);const a=i(4462);const u=i(422);const{join:l}=i(1017);const h=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const p=h==="win32";t.exports=()=>{const t=new Map;const r=new Map;const getDirs=t=>{const r=t.split("/").slice(0,-1).reduce(((t,r)=>{if(t.length){r=l(t[t.length-1],r)}t.push(r||"/");return t}),[]);return r};const i=new Set;const getQueues=i=>{const o=r.get(i);if(!o){throw new Error("function does not have any path reservations")}return{paths:o.paths.map((r=>t.get(r))),dirs:[...o.dirs].map((r=>t.get(r)))}};const check=t=>{const{paths:r,dirs:i}=getQueues(t);return r.every((r=>r[0]===t))&&i.every((r=>r[0]instanceof Set&&r[0].has(t)))};const run=t=>{if(i.has(t)||!check(t)){return false}i.add(t);t((()=>clear(t)));return true};const clear=a=>{if(!i.has(a)){return false}const{paths:u,dirs:l}=r.get(a);const h=new Set;u.forEach((r=>{const i=t.get(r);o.equal(i[0],a);if(i.length===1){t.delete(r)}else{i.shift();if(typeof i[0]==="function"){h.add(i[0])}else{i[0].forEach((t=>h.add(t)))}}}));l.forEach((r=>{const i=t.get(r);o(i[0]instanceof Set);if(i[0].size===1&&i.length===1){t.delete(r)}else if(i[0].size===1){i.shift();h.add(i[0])}else{i[0].delete(a)}}));i.delete(a);h.forEach((t=>run(t)));return true};const reserve=(i,o)=>{i=p?["win32 parallelization disabled"]:i.map((t=>u(l(a(t))).toLowerCase()));const h=new Set(i.map((t=>getDirs(t))).reduce(((t,r)=>t.concat(r))));r.set(o,{dirs:h,paths:i});i.forEach((r=>{const i=t.get(r);if(!i){t.set(r,[o])}else{i.push(o)}}));h.forEach((r=>{const i=t.get(r);if(!i){t.set(r,[new Set([o])])}else if(i[i.length-1]instanceof Set){i[i.length-1].add(o)}else{i.push(new Set([o]))}}));return run(o)};return{check:check,reserve:reserve}}},3179:(t,r,i)=>{"use strict";const o=i(1815);const a=i(1017);class Pax{constructor(t,r){this.atime=t.atime||null;this.charset=t.charset||null;this.comment=t.comment||null;this.ctime=t.ctime||null;this.gid=t.gid||null;this.gname=t.gname||null;this.linkpath=t.linkpath||null;this.mtime=t.mtime||null;this.path=t.path||null;this.size=t.size||null;this.uid=t.uid||null;this.uname=t.uname||null;this.dev=t.dev||null;this.ino=t.ino||null;this.nlink=t.nlink||null;this.global=r||false}encode(){const t=this.encodeBody();if(t===""){return null}const r=Buffer.byteLength(t);const i=512*Math.ceil(1+r/512);const u=Buffer.allocUnsafe(i);for(let t=0;t<512;t++){u[t]=0}new o({path:("PaxHeader/"+a.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(u);u.write(t,512,r,"utf8");for(let t=r+512;t<u.length;t++){u[t]=0}return u}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(t){if(this[t]===null||this[t]===undefined){return""}const r=this[t]instanceof Date?this[t].getTime()/1e3:this[t];const i=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+r+"\n";const o=Buffer.byteLength(i);let a=Math.floor(Math.log(o)/Math.log(10))+1;if(o+a>=Math.pow(10,a)){a+=1}const u=a+o;return u+i}}Pax.parse=(t,r,i)=>new Pax(merge(parseKV(t),r),i);const merge=(t,r)=>r?Object.keys(t).reduce(((r,i)=>(r[i]=t[i],r)),r):t;const parseKV=t=>t.replace(/\n$/,"").split("\n").reduce(parseKVLine,Object.create(null));const parseKVLine=(t,r)=>{const i=parseInt(r,10);if(i!==Buffer.byteLength(r)+1){return t}r=r.slice((i+" ").length);const o=r.split("=");const a=o.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!a){return t}const u=o.join("=");t[a]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(a)?new Date(u*1e3):/^[0-9]+$/.test(u)?+u:u;return t};t.exports=Pax},2332:(t,r,i)=>{"use strict";const{Minipass:o}=i(6047);const a=i(5536);const u=Symbol("slurp");t.exports=class ReadEntry extends o{constructor(t,r,i){super();this.pause();this.extended=r;this.globalExtended=i;this.header=t;this.startBlockSize=512*Math.ceil(t.size/512);this.blockRemain=this.startBlockSize;this.remain=t.size;this.type=t.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=a(t.path);this.mode=t.mode;if(this.mode){this.mode=this.mode&4095}this.uid=t.uid;this.gid=t.gid;this.uname=t.uname;this.gname=t.gname;this.size=t.size;this.mtime=t.mtime;this.atime=t.atime;this.ctime=t.ctime;this.linkpath=a(t.linkpath);this.uname=t.uname;this.gname=t.gname;if(r){this[u](r)}if(i){this[u](i,true)}}write(t){const r=t.length;if(r>this.blockRemain){throw new Error("writing more to entry than is appropriate")}const i=this.remain;const o=this.blockRemain;this.remain=Math.max(0,i-r);this.blockRemain=Math.max(0,o-r);if(this.ignore){return true}if(i>=r){return super.write(t)}return super.write(t.slice(0,i))}[u](t,r){for(const i in t){if(t[i]!==null&&t[i]!==undefined&&!(r&&i==="path")){this[i]=i==="path"||i==="linkpath"?a(t[i]):t[i]}}}}},6133:(t,r,i)=>{"use strict";const o=i(4976);const a=i(5873);const u=i(7147);const l=i(3597);const h=i(9405);const p=i(1017);const d=i(1815);t.exports=(t,r,i)=>{const a=o(t);if(!a.file){throw new TypeError("file is required")}if(a.gzip||a.brotli||a.file.endsWith(".br")||a.file.endsWith(".tbr")){throw new TypeError("cannot append to compressed archives")}if(!r||!Array.isArray(r)||!r.length){throw new TypeError("no files or directories specified")}r=Array.from(r);return a.sync?replaceSync(a,r):replace(a,r,i)};const replaceSync=(t,r)=>{const i=new a.Sync(t);let o=true;let l;let h;try{try{l=u.openSync(t.file,"r+")}catch(r){if(r.code==="ENOENT"){l=u.openSync(t.file,"w+")}else{throw r}}const a=u.fstatSync(l);const p=Buffer.alloc(512);e:for(h=0;h<a.size;h+=512){for(let t=0,r=0;t<512;t+=r){r=u.readSync(l,p,t,p.length-t,h+t);if(h===0&&p[0]===31&&p[1]===139){throw new Error("cannot append to compressed archives")}if(!r){break e}}const r=new d(p);if(!r.cksumValid){break}const i=512*Math.ceil(r.size/512);if(h+i+512>a.size){break}h+=i;if(t.mtimeCache){t.mtimeCache.set(r.path,r.mtime)}}o=false;streamSync(t,i,h,l,r)}finally{if(o){try{u.closeSync(l)}catch(t){}}}};const streamSync=(t,r,i,o,a)=>{const u=new l.WriteStreamSync(t.file,{fd:o,start:i});r.pipe(u);addFilesSync(r,a)};const replace=(t,r,i)=>{r=Array.from(r);const o=new a(t);const getPos=(r,i,o)=>{const cb=(t,i)=>{if(t){u.close(r,(r=>o(t)))}else{o(null,i)}};let a=0;if(i===0){return cb(null,0)}let l=0;const h=Buffer.alloc(512);const onread=(o,p)=>{if(o){return cb(o)}l+=p;if(l<512&&p){return u.read(r,h,l,h.length-l,a+l,onread)}if(a===0&&h[0]===31&&h[1]===139){return cb(new Error("cannot append to compressed archives"))}if(l<512){return cb(null,a)}const m=new d(h);if(!m.cksumValid){return cb(null,a)}const g=512*Math.ceil(m.size/512);if(a+g+512>i){return cb(null,a)}a+=g+512;if(a>=i){return cb(null,a)}if(t.mtimeCache){t.mtimeCache.set(m.path,m.mtime)}l=0;u.read(r,h,0,512,a,onread)};u.read(r,h,0,512,a,onread)};const h=new Promise(((i,a)=>{o.on("error",a);let h="r+";const onopen=(p,d)=>{if(p&&p.code==="ENOENT"&&h==="r+"){h="w+";return u.open(t.file,h,onopen)}if(p){return a(p)}u.fstat(d,((h,p)=>{if(h){return u.close(d,(()=>a(h)))}getPos(d,p.size,((u,h)=>{if(u){return a(u)}const p=new l.WriteStream(t.file,{fd:d,start:h});o.pipe(p);p.on("error",a);p.on("close",i);addFilesAsync(o,r)}))}))};u.open(t.file,h,onopen)}));return i?h.then(i,i):h};const addFilesSync=(t,r)=>{r.forEach((r=>{if(r.charAt(0)==="@"){h({file:p.resolve(t.cwd,r.slice(1)),sync:true,noResume:true,onentry:r=>t.add(r)})}else{t.add(r)}}));t.end()};const addFilesAsync=(t,r)=>{while(r.length){const i=r.shift();if(i.charAt(0)==="@"){return h({file:p.resolve(t.cwd,i.slice(1)),noResume:true,onentry:r=>t.add(r)}).then((i=>addFilesAsync(t,r)))}else{t.add(i)}}t.end()}},8047:(t,r,i)=>{const{isAbsolute:o,parse:a}=i(1017).win32;t.exports=t=>{let r="";let i=a(t);while(o(t)||i.root){const o=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":i.root;t=t.slice(o.length);r+=o;i=a(t)}return[r,t]}},422:t=>{t.exports=t=>{let r=t.length-1;let i=-1;while(r>-1&&t.charAt(r)==="/"){i=r;r--}return i===-1?t:t.slice(0,i)}},2500:(t,r)=>{"use strict";r.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);r.code=new Map(Array.from(r.name).map((t=>[t[1],t[0]])))},1634:(t,r,i)=>{"use strict";const o=i(9491);const a=i(6474);const u=i(7147);const l=i(3597);const h=i(1017);const p=i(6790);const d=i(4465);const m=i(1891);const g=i(8047);const y=i(5536);const A=i(422);const b=i(4462);const v=Symbol("onEntry");const w=Symbol("checkFs");const E=Symbol("checkFs2");const _=Symbol("pruneCache");const S=Symbol("isReusable");const C=Symbol("makeFs");const D=Symbol("file");const x=Symbol("directory");const R=Symbol("link");const O=Symbol("symlink");const k=Symbol("hardlink");const P=Symbol("unsupported");const T=Symbol("checkPath");const L=Symbol("mkdir");const I=Symbol("onError");const M=Symbol("pending");const B=Symbol("pend");const N=Symbol("unpend");const $=Symbol("ended");const j=Symbol("maybeClose");const H=Symbol("skip");const G=Symbol("doChown");const U=Symbol("uid");const W=Symbol("gid");const z=Symbol("checkedCwd");const Y=i(6113);const V=i(5868);const Q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const K=Q==="win32";const X=1024;const unlinkFile=(t,r)=>{if(!K){return u.unlink(t,r)}const i=t+".DELETE."+Y.randomBytes(16).toString("hex");u.rename(t,i,(t=>{if(t){return r(t)}u.unlink(i,r)}))};const unlinkFileSync=t=>{if(!K){return u.unlinkSync(t)}const r=t+".DELETE."+Y.randomBytes(16).toString("hex");u.renameSync(t,r);u.unlinkSync(r)};const uint32=(t,r,i)=>t===t>>>0?t:r===r>>>0?r:i;const cacheKeyNormalize=t=>A(y(b(t))).toLowerCase();const pruneCache=(t,r)=>{r=cacheKeyNormalize(r);for(const i of t.keys()){const o=cacheKeyNormalize(i);if(o===r||o.indexOf(r+"/")===0){t.delete(i)}}};const dropCache=t=>{for(const r of t.keys()){t.delete(r)}};class Unpack extends a{constructor(t){if(!t){t={}}t.ondone=t=>{this[$]=true;this[j]()};super(t);this[z]=false;this.reservations=m();this.transform=typeof t.transform==="function"?t.transform:null;this.writable=true;this.readable=false;this[M]=0;this[$]=false;this.dirCache=t.dirCache||new Map;if(typeof t.uid==="number"||typeof t.gid==="number"){if(typeof t.uid!=="number"||typeof t.gid!=="number"){throw new TypeError("cannot set owner without number uid and gid")}if(t.preserveOwner){throw new TypeError("cannot preserve owner in archive and also set owner explicitly")}this.uid=t.uid;this.gid=t.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(t.preserveOwner===undefined&&typeof t.uid!=="number"){this.preserveOwner=process.getuid&&process.getuid()===0}else{this.preserveOwner=!!t.preserveOwner}this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.maxDepth=typeof t.maxDepth==="number"?t.maxDepth:X;this.forceChown=t.forceChown===true;this.win32=!!t.win32||K;this.newer=!!t.newer;this.keep=!!t.keep;this.noMtime=!!t.noMtime;this.preservePaths=!!t.preservePaths;this.unlink=!!t.unlink;this.cwd=y(h.resolve(t.cwd||process.cwd()));this.strip=+t.strip||0;this.processUmask=t.noChmod?0:process.umask();this.umask=typeof t.umask==="number"?t.umask:this.processUmask;this.dmode=t.dmode||511&~this.umask;this.fmode=t.fmode||438&~this.umask;this.on("entry",(t=>this[v](t)))}warn(t,r,i={}){if(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT"){i.recoverable=false}return super.warn(t,r,i)}[j](){if(this[$]&&this[M]===0){this.emit("prefinish");this.emit("finish");this.emit("end")}}[T](t){const r=y(t.path);const i=r.split("/");if(this.strip){if(i.length<this.strip){return false}if(t.type==="Link"){const r=y(t.linkpath).split("/");if(r.length>=this.strip){t.linkpath=r.slice(this.strip).join("/")}else{return false}}i.splice(0,this.strip);t.path=i.join("/")}if(isFinite(this.maxDepth)&&i.length>this.maxDepth){this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:t,path:r,depth:i.length,maxDepth:this.maxDepth});return false}if(!this.preservePaths){if(i.includes("..")||K&&/^[a-z]:\.\.$/i.test(i[0])){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:t,path:r});return false}const[o,a]=g(r);if(o){t.path=a;this.warn("TAR_ENTRY_INFO",`stripping ${o} from absolute path`,{entry:t,path:r})}}if(h.isAbsolute(t.path)){t.absolute=y(h.resolve(t.path))}else{t.absolute=y(h.resolve(this.cwd,t.path))}if(!this.preservePaths&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd){this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:y(t.path),resolvedPath:t.absolute,cwd:this.cwd});return false}if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir"){return false}if(this.win32){const{root:r}=h.win32.parse(t.absolute);t.absolute=r+d.encode(t.absolute.slice(r.length));const{root:i}=h.win32.parse(t.path);t.path=i+d.encode(t.path.slice(i.length))}return true}[v](t){if(!this[T](t)){return t.resume()}o.equal(typeof t.absolute,"string");switch(t.type){case"Directory":case"GNUDumpDir":if(t.mode){t.mode=t.mode|448}case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[w](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[P](t)}}[I](t,r){if(t.name==="CwdError"){this.emit("error",t)}else{this.warn("TAR_ENTRY_ERROR",t,{entry:r});this[N]();r.resume()}}[L](t,r,i){p(y(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[G](t){return this.forceChown||this.preserveOwner&&(typeof t.uid==="number"&&t.uid!==this.processUid||typeof t.gid==="number"&&t.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[U](t){return uint32(this.uid,t.uid,this.processUid)}[W](t){return uint32(this.gid,t.gid,this.processGid)}[D](t,r){const i=t.mode&4095||this.fmode;const o=new l.WriteStream(t.absolute,{flags:V(t.size),mode:i,autoClose:false});o.on("error",(i=>{if(o.fd){u.close(o.fd,(()=>{}))}o.write=()=>true;this[I](i,t);r()}));let a=1;const done=i=>{if(i){if(o.fd){u.close(o.fd,(()=>{}))}this[I](i,t);r();return}if(--a===0){u.close(o.fd,(i=>{if(i){this[I](i,t)}else{this[N]()}r()}))}};o.on("finish",(r=>{const i=t.absolute;const l=o.fd;if(t.mtime&&!this.noMtime){a++;const r=t.atime||new Date;const o=t.mtime;u.futimes(l,r,o,(t=>t?u.utimes(i,r,o,(r=>done(r&&t))):done()))}if(this[G](t)){a++;const r=this[U](t);const o=this[W](t);u.fchown(l,r,o,(t=>t?u.chown(i,r,o,(r=>done(r&&t))):done()))}done()}));const h=this.transform?this.transform(t)||t:t;if(h!==t){h.on("error",(i=>{this[I](i,t);r()}));t.pipe(h)}h.pipe(o)}[x](t,r){const i=t.mode&4095||this.dmode;this[L](t.absolute,i,(i=>{if(i){this[I](i,t);r();return}let o=1;const done=i=>{if(--o===0){r();this[N]();t.resume()}};if(t.mtime&&!this.noMtime){o++;u.utimes(t.absolute,t.atime||new Date,t.mtime,done)}if(this[G](t)){o++;u.chown(t.absolute,this[U](t),this[W](t),done)}done()}))}[P](t){t.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t});t.resume()}[O](t,r){this[R](t,t.linkpath,"symlink",r)}[k](t,r){const i=y(h.resolve(this.cwd,t.linkpath));this[R](t,i,"link",r)}[B](){this[M]++}[N](){this[M]--;this[j]()}[H](t){this[N]();t.resume()}[S](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!K}[w](t){this[B]();const r=[t.path];if(t.linkpath){r.push(t.linkpath)}this.reservations.reserve(r,(r=>this[E](t,r)))}[_](t){if(t.type==="SymbolicLink"){dropCache(this.dirCache)}else if(t.type!=="Directory"){pruneCache(this.dirCache,t.absolute)}}[E](t,r){this[_](t);const done=i=>{this[_](t);r(i)};const checkCwd=()=>{this[L](this.cwd,this.dmode,(r=>{if(r){this[I](r,t);done();return}this[z]=true;start()}))};const start=()=>{if(t.absolute!==this.cwd){const r=y(h.dirname(t.absolute));if(r!==this.cwd){return this[L](r,this.dmode,(r=>{if(r){this[I](r,t);done();return}afterMakeParent()}))}}afterMakeParent()};const afterMakeParent=()=>{u.lstat(t.absolute,((r,i)=>{if(i&&(this.keep||this.newer&&i.mtime>t.mtime)){this[H](t);done();return}if(r||this[S](t,i)){return this[C](null,t,done)}if(i.isDirectory()){if(t.type==="Directory"){const r=!this.noChmod&&t.mode&&(i.mode&4095)!==t.mode;const afterChmod=r=>this[C](r,t,done);if(!r){return afterChmod()}return u.chmod(t.absolute,t.mode,afterChmod)}if(t.absolute!==this.cwd){return u.rmdir(t.absolute,(r=>this[C](r,t,done)))}}if(t.absolute===this.cwd){return this[C](null,t,done)}unlinkFile(t.absolute,(r=>this[C](r,t,done)))}))};if(this[z]){start()}else{checkCwd()}}[C](t,r,i){if(t){this[I](t,r);i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[D](r,i);case"Link":return this[k](r,i);case"SymbolicLink":return this[O](r,i);case"Directory":case"GNUDumpDir":return this[x](r,i)}}[R](t,r,i,o){u[i](r,t.absolute,(r=>{if(r){this[I](r,t)}else{this[N]();t.resume()}o()}))}}const callSync=t=>{try{return[null,t()]}catch(t){return[t,null]}};class UnpackSync extends Unpack{[C](t,r){return super[C](t,r,(()=>{}))}[w](t){this[_](t);if(!this[z]){const r=this[L](this.cwd,this.dmode);if(r){return this[I](r,t)}this[z]=true}if(t.absolute!==this.cwd){const r=y(h.dirname(t.absolute));if(r!==this.cwd){const i=this[L](r,this.dmode);if(i){return this[I](i,t)}}}const[r,i]=callSync((()=>u.lstatSync(t.absolute)));if(i&&(this.keep||this.newer&&i.mtime>t.mtime)){return this[H](t)}if(r||this[S](t,i)){return this[C](null,t)}if(i.isDirectory()){if(t.type==="Directory"){const r=!this.noChmod&&t.mode&&(i.mode&4095)!==t.mode;const[o]=r?callSync((()=>{u.chmodSync(t.absolute,t.mode)})):[];return this[C](o,t)}const[r]=callSync((()=>u.rmdirSync(t.absolute)));this[C](r,t)}const[o]=t.absolute===this.cwd?[]:callSync((()=>unlinkFileSync(t.absolute)));this[C](o,t)}[D](t,r){const i=t.mode&4095||this.fmode;const oner=i=>{let a;try{u.closeSync(o)}catch(t){a=t}if(i||a){this[I](i||a,t)}r()};let o;try{o=u.openSync(t.absolute,V(t.size),i)}catch(t){return oner(t)}const a=this.transform?this.transform(t)||t:t;if(a!==t){a.on("error",(r=>this[I](r,t)));t.pipe(a)}a.on("data",(t=>{try{u.writeSync(o,t,0,t.length)}catch(t){oner(t)}}));a.on("end",(r=>{let i=null;if(t.mtime&&!this.noMtime){const r=t.atime||new Date;const a=t.mtime;try{u.futimesSync(o,r,a)}catch(o){try{u.utimesSync(t.absolute,r,a)}catch(t){i=o}}}if(this[G](t)){const r=this[U](t);const a=this[W](t);try{u.fchownSync(o,r,a)}catch(o){try{u.chownSync(t.absolute,r,a)}catch(t){i=i||o}}}oner(i)}))}[x](t,r){const i=t.mode&4095||this.dmode;const o=this[L](t.absolute,i);if(o){this[I](o,t);r();return}if(t.mtime&&!this.noMtime){try{u.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch(o){}}if(this[G](t)){try{u.chownSync(t.absolute,this[U](t),this[W](t))}catch(o){}}r();t.resume()}[L](t,r){try{return p.sync(y(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(t){return t}}[R](t,r,i,o){try{u[i+"Sync"](r,t.absolute);o();t.resume()}catch(r){return this[I](r,t)}}}Unpack.Sync=UnpackSync;t.exports=Unpack},4437:(t,r,i)=>{"use strict";const o=i(4976);const a=i(6133);t.exports=(t,r,i)=>{const u=o(t);if(!u.file){throw new TypeError("file is required")}if(u.gzip||u.brotli||u.file.endsWith(".br")||u.file.endsWith(".tbr")){throw new TypeError("cannot append to compressed archives")}if(!r||!Array.isArray(r)||!r.length){throw new TypeError("no files or directories specified")}r=Array.from(r);mtimeFilter(u);return a(u,r,i)};const mtimeFilter=t=>{const r=t.filter;if(!t.mtimeCache){t.mtimeCache=new Map}t.filter=r?(i,o)=>r(i,o)&&!(t.mtimeCache.get(i)>o.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}},4239:t=>{"use strict";t.exports=t=>class extends t{warn(t,r,i={}){if(this.file){i.file=this.file}if(this.cwd){i.cwd=this.cwd}i.code=r instanceof Error&&r.code||t;i.tarCode=t;if(!this.strict&&i.recoverable!==false){if(r instanceof Error){i=Object.assign(r,i);r=r.message}this.emit("warn",i.tarCode,r,i)}else if(r instanceof Error){this.emit("error",Object.assign(r,i))}else{this.emit("error",Object.assign(new Error(`${t}: ${r}`),i))}}}},4465:t=>{"use strict";const r=["|","<",">","?",":"];const i=r.map((t=>String.fromCharCode(61440+t.charCodeAt(0))));const o=new Map(r.map(((t,r)=>[t,i[r]])));const a=new Map(i.map(((t,i)=>[t,r[i]])));t.exports={encode:t=>r.reduce(((t,r)=>t.split(r).join(o.get(r))),t),decode:t=>i.reduce(((t,r)=>t.split(r).join(a.get(r))),t)}},2435:(t,r,i)=>{"use strict";const{Minipass:o}=i(6047);const a=i(3179);const u=i(1815);const l=i(7147);const h=i(1017);const p=i(5536);const d=i(422);const prefixPath=(t,r)=>{if(!r){return p(t)}t=p(t).replace(/^\.(\/|$)/,"");return d(r)+"/"+t};const m=16*1024*1024;const g=Symbol("process");const y=Symbol("file");const A=Symbol("directory");const b=Symbol("symlink");const v=Symbol("hardlink");const w=Symbol("header");const E=Symbol("read");const _=Symbol("lstat");const S=Symbol("onlstat");const C=Symbol("onread");const D=Symbol("onreadlink");const x=Symbol("openfile");const R=Symbol("onopenfile");const O=Symbol("close");const k=Symbol("mode");const P=Symbol("awaitDrain");const T=Symbol("ondrain");const L=Symbol("prefix");const I=Symbol("hadError");const M=i(4239);const B=i(4465);const N=i(8047);const $=i(2701);const j=M(class WriteEntry extends o{constructor(t,r){r=r||{};super(r);if(typeof t!=="string"){throw new TypeError("path is required")}this.path=p(t);this.portable=!!r.portable;this.myuid=process.getuid&&process.getuid()||0;this.myuser=process.env.USER||"";this.maxReadSize=r.maxReadSize||m;this.linkCache=r.linkCache||new Map;this.statCache=r.statCache||new Map;this.preservePaths=!!r.preservePaths;this.cwd=p(r.cwd||process.cwd());this.strict=!!r.strict;this.noPax=!!r.noPax;this.noMtime=!!r.noMtime;this.mtime=r.mtime||null;this.prefix=r.prefix?p(r.prefix):null;this.fd=null;this.blockLen=null;this.blockRemain=null;this.buf=null;this.offset=null;this.length=null;this.pos=null;this.remain=null;if(typeof r.onwarn==="function"){this.on("warn",r.onwarn)}let i=false;if(!this.preservePaths){const[t,r]=N(this.path);if(t){this.path=r;i=t}}this.win32=!!r.win32||process.platform==="win32";if(this.win32){this.path=B.decode(this.path.replace(/\\/g,"/"));t=t.replace(/\\/g,"/")}this.absolute=p(r.absolute||h.resolve(this.cwd,t));if(this.path===""){this.path="./"}if(i){this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path})}if(this.statCache.has(this.absolute)){this[S](this.statCache.get(this.absolute))}else{this[_]()}}emit(t,...r){if(t==="error"){this[I]=true}return super.emit(t,...r)}[_](){l.lstat(this.absolute,((t,r)=>{if(t){return this.emit("error",t)}this[S](r)}))}[S](t){this.statCache.set(this.absolute,t);this.stat=t;if(!t.isFile()){t.size=0}this.type=getType(t);this.emit("stat",t);this[g]()}[g](){switch(this.type){case"File":return this[y]();case"Directory":return this[A]();case"SymbolicLink":return this[b]();default:return this.end()}}[k](t){return $(t,this.type==="Directory",this.portable)}[L](t){return prefixPath(t,this.prefix)}[w](){if(this.type==="Directory"&&this.portable){this.noMtime=true}this.header=new u({path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,mode:this[k](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax){super.write(new a({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode())}super.write(this.header.block)}[A](){if(this.path.slice(-1)!=="/"){this.path+="/"}this.stat.size=0;this[w]();this.end()}[b](){l.readlink(this.absolute,((t,r)=>{if(t){return this.emit("error",t)}this[D](r)}))}[D](t){this.linkpath=p(t);this[w]();this.end()}[v](t){this.type="Link";this.linkpath=p(h.relative(this.cwd,t));this.stat.size=0;this[w]();this.end()}[y](){if(this.stat.nlink>1){const t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){const r=this.linkCache.get(t);if(r.indexOf(this.cwd)===0){return this[v](r)}}this.linkCache.set(t,this.absolute)}this[w]();if(this.stat.size===0){return this.end()}this[x]()}[x](){l.open(this.absolute,"r",((t,r)=>{if(t){return this.emit("error",t)}this[R](r)}))}[R](t){this.fd=t;if(this[I]){return this[O]()}this.blockLen=512*Math.ceil(this.stat.size/512);this.blockRemain=this.blockLen;const r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r);this.offset=0;this.pos=0;this.remain=this.stat.size;this.length=this.buf.length;this[E]()}[E](){const{fd:t,buf:r,offset:i,length:o,pos:a}=this;l.read(t,r,i,o,a,((t,r)=>{if(t){return this[O]((()=>this.emit("error",t)))}this[C](r)}))}[O](t){l.close(this.fd,t)}[C](t){if(t<=0&&this.remain>0){const t=new Error("encountered unexpected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[O]((()=>this.emit("error",t)))}if(t>this.remain){const t=new Error("did not encounter expected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[O]((()=>this.emit("error",t)))}if(t===this.remain){for(let r=t;r<this.length&&t<this.blockRemain;r++){this.buf[r+this.offset]=0;t++;this.remain++}}const r=this.offset===0&&t===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+t);const i=this.write(r);if(!i){this[P]((()=>this[T]()))}else{this[T]()}}[P](t){this.once("drain",t)}write(t){if(this.blockRemain<t.length){const t=new Error("writing more data than expected");t.path=this.absolute;return this.emit("error",t)}this.remain-=t.length;this.blockRemain-=t.length;this.pos+=t.length;this.offset+=t.length;return super.write(t)}[T](){if(!this.remain){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}return this[O]((t=>t?this.emit("error",t):this.end()))}if(this.offset>=this.length){this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length));this.offset=0}this.length=this.buf.length-this.offset;this[E]()}});class WriteEntrySync extends j{[_](){this[S](l.lstatSync(this.absolute))}[b](){this[D](l.readlinkSync(this.absolute))}[x](){this[R](l.openSync(this.absolute,"r"))}[E](){let t=true;try{const{fd:r,buf:i,offset:o,length:a,pos:u}=this;const h=l.readSync(r,i,o,a,u);this[C](h);t=false}finally{if(t){try{this[O]((()=>{}))}catch(t){}}}}[P](t){t()}[O](t){l.closeSync(this.fd);t()}}const H=M(class WriteEntryTar extends o{constructor(t,r){r=r||{};super(r);this.preservePaths=!!r.preservePaths;this.portable=!!r.portable;this.strict=!!r.strict;this.noPax=!!r.noPax;this.noMtime=!!r.noMtime;this.readEntry=t;this.type=t.type;if(this.type==="Directory"&&this.portable){this.noMtime=true}this.prefix=r.prefix||null;this.path=p(t.path);this.mode=this[k](t.mode);this.uid=this.portable?null:t.uid;this.gid=this.portable?null:t.gid;this.uname=this.portable?null:t.uname;this.gname=this.portable?null:t.gname;this.size=t.size;this.mtime=this.noMtime?null:r.mtime||t.mtime;this.atime=this.portable?null:t.atime;this.ctime=this.portable?null:t.ctime;this.linkpath=p(t.linkpath);if(typeof r.onwarn==="function"){this.on("warn",r.onwarn)}let i=false;if(!this.preservePaths){const[t,r]=N(this.path);if(t){this.path=r;i=t}}this.remain=t.size;this.blockRemain=t.startBlockSize;this.header=new u({path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(i){this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path})}if(this.header.encode()&&!this.noPax){super.write(new a({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode())}super.write(this.header.block);t.pipe(this)}[L](t){return prefixPath(t,this.prefix)}[k](t){return $(t,this.type==="Directory",this.portable)}write(t){const r=t.length;if(r>this.blockRemain){throw new Error("writing more to entry than is appropriate")}this.blockRemain-=r;return super.write(t)}end(){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}return super.end()}});j.Sync=WriteEntrySync;j.Tar=H;const getType=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";t.exports=j},5649:(t,r,i)=>{"use strict";const o=i(7147);const a=i(1017);const u=o.lchown?"lchown":"chown";const l=o.lchownSync?"lchownSync":"chownSync";const h=o.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const lchownSync=(t,r,i)=>{try{return o[l](t,r,i)}catch(t){if(t.code!=="ENOENT")throw t}};const chownSync=(t,r,i)=>{try{return o.chownSync(t,r,i)}catch(t){if(t.code!=="ENOENT")throw t}};const p=h?(t,r,i,a)=>u=>{if(!u||u.code!=="EISDIR")a(u);else o.chown(t,r,i,a)}:(t,r,i,o)=>o;const d=h?(t,r,i)=>{try{return lchownSync(t,r,i)}catch(o){if(o.code!=="EISDIR")throw o;chownSync(t,r,i)}}:(t,r,i)=>lchownSync(t,r,i);const m=process.version;let readdir=(t,r,i)=>o.readdir(t,r,i);let readdirSync=(t,r)=>o.readdirSync(t,r);if(/^v4\./.test(m))readdir=(t,r,i)=>o.readdir(t,i);const chown=(t,r,i,a)=>{o[u](t,r,i,p(t,r,i,(t=>{a(t&&t.code!=="ENOENT"?t:null)})))};const chownrKid=(t,r,i,u,l)=>{if(typeof r==="string")return o.lstat(a.resolve(t,r),((o,a)=>{if(o)return l(o.code!=="ENOENT"?o:null);a.name=r;chownrKid(t,a,i,u,l)}));if(r.isDirectory()){chownr(a.resolve(t,r.name),i,u,(o=>{if(o)return l(o);const h=a.resolve(t,r.name);chown(h,i,u,l)}))}else{const o=a.resolve(t,r.name);chown(o,i,u,l)}};const chownr=(t,r,i,o)=>{readdir(t,{withFileTypes:true},((a,u)=>{if(a){if(a.code==="ENOENT")return o();else if(a.code!=="ENOTDIR"&&a.code!=="ENOTSUP")return o(a)}if(a||!u.length)return chown(t,r,i,o);let l=u.length;let h=null;const then=a=>{if(h)return;if(a)return o(h=a);if(--l===0)return chown(t,r,i,o)};u.forEach((o=>chownrKid(t,o,r,i,then)))}))};const chownrKidSync=(t,r,i,u)=>{if(typeof r==="string"){try{const i=o.lstatSync(a.resolve(t,r));i.name=r;r=i}catch(t){if(t.code==="ENOENT")return;else throw t}}if(r.isDirectory())chownrSync(a.resolve(t,r.name),i,u);d(a.resolve(t,r.name),i,u)};const chownrSync=(t,r,i)=>{let o;try{o=readdirSync(t,{withFileTypes:true})}catch(o){if(o.code==="ENOENT")return;else if(o.code==="ENOTDIR"||o.code==="ENOTSUP")return d(t,r,i);else throw o}if(o&&o.length)o.forEach((o=>chownrKidSync(t,o,r,i)));return d(t,r,i)};t.exports=chownr;chownr.sync=chownrSync},6047:(t,r,i)=>{"use strict";const o=typeof process==="object"&&process?process:{stdout:null,stderr:null};const a=i(2361);const u=i(2781);const l=i(1576);const h=l.StringDecoder;const p=Symbol("EOF");const d=Symbol("maybeEmitEnd");const m=Symbol("emittedEnd");const g=Symbol("emittingEnd");const y=Symbol("emittedError");const A=Symbol("closed");const b=Symbol("read");const v=Symbol("flush");const w=Symbol("flushChunk");const E=Symbol("encoding");const _=Symbol("decoder");const S=Symbol("flowing");const C=Symbol("paused");const D=Symbol("resume");const x=Symbol("buffer");const R=Symbol("pipes");const O=Symbol("bufferLength");const k=Symbol("bufferPush");const P=Symbol("bufferShift");const T=Symbol("objectMode");const L=Symbol("destroyed");const I=Symbol("error");const M=Symbol("emitData");const B=Symbol("emitEnd");const N=Symbol("emitEnd2");const $=Symbol("async");const j=Symbol("abort");const H=Symbol("aborted");const G=Symbol("signal");const defer=t=>Promise.resolve().then(t);const U=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const W=U&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const z=U&&Symbol.iterator||Symbol("iterator not implemented");const isEndish=t=>t==="end"||t==="finish"||t==="prefinish";const isArrayBuffer=t=>t instanceof ArrayBuffer||typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const isArrayBufferView=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);class Pipe{constructor(t,r,i){this.src=t;this.dest=r;this.opts=i;this.ondrain=()=>t[D]();r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(t,r,i){super(t,r,i);this.proxyErrors=t=>r.emit("error",t);t.on("error",this.proxyErrors)}}class Minipass extends u{constructor(t){super();this[S]=false;this[C]=false;this[R]=[];this[x]=[];this[T]=t&&t.objectMode||false;if(this[T])this[E]=null;else this[E]=t&&t.encoding||null;if(this[E]==="buffer")this[E]=null;this[$]=t&&!!t.async||false;this[_]=this[E]?new h(this[E]):null;this[p]=false;this[m]=false;this[g]=false;this[A]=false;this[y]=null;this.writable=true;this.readable=true;this[O]=0;this[L]=false;if(t&&t.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[x]})}if(t&&t.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[R]})}this[G]=t&&t.signal;this[H]=false;if(this[G]){this[G].addEventListener("abort",(()=>this[j]()));if(this[G].aborted){this[j]()}}}get bufferLength(){return this[O]}get encoding(){return this[E]}set encoding(t){if(this[T])throw new Error("cannot set encoding in objectMode");if(this[E]&&t!==this[E]&&(this[_]&&this[_].lastNeed||this[O]))throw new Error("cannot change encoding");if(this[E]!==t){this[_]=t?new h(t):null;if(this[x].length)this[x]=this[x].map((t=>this[_].write(t)))}this[E]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[T]}set objectMode(t){this[T]=this[T]||!!t}get["async"](){return this[$]}set["async"](t){this[$]=this[$]||!!t}[j](){this[H]=true;this.emit("abort",this[G].reason);this.destroy(this[G].reason)}get aborted(){return this[H]}set aborted(t){}write(t,r,i){if(this[H])return false;if(this[p])throw new Error("write after end");if(this[L]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof r==="function")i=r,r="utf8";if(!r)r="utf8";const o=this[$]?defer:t=>t();if(!this[T]&&!Buffer.isBuffer(t)){if(isArrayBufferView(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(isArrayBuffer(t))t=Buffer.from(t);else if(typeof t!=="string")this.objectMode=true}if(this[T]){if(this.flowing&&this[O]!==0)this[v](true);if(this.flowing)this.emit("data",t);else this[k](t);if(this[O]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(!t.length){if(this[O]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(typeof t==="string"&&!(r===this[E]&&!this[_].lastNeed)){t=Buffer.from(t,r)}if(Buffer.isBuffer(t)&&this[E])t=this[_].write(t);if(this.flowing&&this[O]!==0)this[v](true);if(this.flowing)this.emit("data",t);else this[k](t);if(this[O]!==0)this.emit("readable");if(i)o(i);return this.flowing}read(t){if(this[L])return null;if(this[O]===0||t===0||t>this[O]){this[d]();return null}if(this[T])t=null;if(this[x].length>1&&!this[T]){if(this.encoding)this[x]=[this[x].join("")];else this[x]=[Buffer.concat(this[x],this[O])]}const r=this[b](t||null,this[x][0]);this[d]();return r}[b](t,r){if(t===r.length||t===null)this[P]();else{this[x][0]=r.slice(t);r=r.slice(0,t);this[O]-=t}this.emit("data",r);if(!this[x].length&&!this[p])this.emit("drain");return r}end(t,r,i){if(typeof t==="function")i=t,t=null;if(typeof r==="function")i=r,r="utf8";if(t)this.write(t,r);if(i)this.once("end",i);this[p]=true;this.writable=false;if(this.flowing||!this[C])this[d]();return this}[D](){if(this[L])return;this[C]=false;this[S]=true;this.emit("resume");if(this[x].length)this[v]();else if(this[p])this[d]();else this.emit("drain")}resume(){return this[D]()}pause(){this[S]=false;this[C]=true}get destroyed(){return this[L]}get flowing(){return this[S]}get paused(){return this[C]}[k](t){if(this[T])this[O]+=1;else this[O]+=t.length;this[x].push(t)}[P](){if(this[T])this[O]-=1;else this[O]-=this[x][0].length;return this[x].shift()}[v](t){do{}while(this[w](this[P]())&&this[x].length);if(!t&&!this[x].length&&!this[p])this.emit("drain")}[w](t){this.emit("data",t);return this.flowing}pipe(t,r){if(this[L])return;const i=this[m];r=r||{};if(t===o.stdout||t===o.stderr)r.end=false;else r.end=r.end!==false;r.proxyErrors=!!r.proxyErrors;if(i){if(r.end)t.end()}else{this[R].push(!r.proxyErrors?new Pipe(this,t,r):new PipeProxyErrors(this,t,r));if(this[$])defer((()=>this[D]()));else this[D]()}return t}unpipe(t){const r=this[R].find((r=>r.dest===t));if(r){this[R].splice(this[R].indexOf(r),1);r.unpipe()}}addListener(t,r){return this.on(t,r)}on(t,r){const i=super.on(t,r);if(t==="data"&&!this[R].length&&!this.flowing)this[D]();else if(t==="readable"&&this[O]!==0)super.emit("readable");else if(isEndish(t)&&this[m]){super.emit(t);this.removeAllListeners(t)}else if(t==="error"&&this[y]){if(this[$])defer((()=>r.call(this,this[y])));else r.call(this,this[y])}return i}get emittedEnd(){return this[m]}[d](){if(!this[g]&&!this[m]&&!this[L]&&this[x].length===0&&this[p]){this[g]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[A])this.emit("close");this[g]=false}}emit(t,r,...i){if(t!=="error"&&t!=="close"&&t!==L&&this[L])return;else if(t==="data"){return!this[T]&&!r?false:this[$]?defer((()=>this[M](r))):this[M](r)}else if(t==="end"){return this[B]()}else if(t==="close"){this[A]=true;if(!this[m]&&!this[L])return;const t=super.emit("close");this.removeAllListeners("close");return t}else if(t==="error"){this[y]=r;super.emit(I,r);const t=!this[G]||this.listeners("error").length?super.emit("error",r):false;this[d]();return t}else if(t==="resume"){const t=super.emit("resume");this[d]();return t}else if(t==="finish"||t==="prefinish"){const r=super.emit(t);this.removeAllListeners(t);return r}const o=super.emit(t,r,...i);this[d]();return o}[M](t){for(const r of this[R]){if(r.dest.write(t)===false)this.pause()}const r=super.emit("data",t);this[d]();return r}[B](){if(this[m])return;this[m]=true;this.readable=false;if(this[$])defer((()=>this[N]()));else this[N]()}[N](){if(this[_]){const t=this[_].end();if(t){for(const r of this[R]){r.dest.write(t)}super.emit("data",t)}}for(const t of this[R]){t.end()}const t=super.emit("end");this.removeAllListeners("end");return t}collect(){const t=[];if(!this[T])t.dataLength=0;const r=this.promise();this.on("data",(r=>{t.push(r);if(!this[T])t.dataLength+=r.length}));return r.then((()=>t))}concat(){return this[T]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((t=>this[T]?Promise.reject(new Error("cannot concat in objectMode")):this[E]?t.join(""):Buffer.concat(t,t.dataLength)))}promise(){return new Promise(((t,r)=>{this.on(L,(()=>r(new Error("stream destroyed"))));this.on("error",(t=>r(t)));this.on("end",(()=>t()))}))}[W](){let t=false;const stop=()=>{this.pause();t=true;return Promise.resolve({done:true})};const next=()=>{if(t)return stop();const r=this.read();if(r!==null)return Promise.resolve({done:false,value:r});if(this[p])return stop();let i=null;let o=null;const onerr=t=>{this.removeListener("data",ondata);this.removeListener("end",onend);this.removeListener(L,ondestroy);stop();o(t)};const ondata=t=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.removeListener(L,ondestroy);this.pause();i({value:t,done:!!this[p]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);this.removeListener(L,ondestroy);stop();i({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((t,r)=>{o=r;i=t;this.once(L,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[W](){return this}}}[z](){let t=false;const stop=()=>{this.pause();this.removeListener(I,stop);this.removeListener(L,stop);this.removeListener("end",stop);t=true;return{done:true}};const next=()=>{if(t)return stop();const r=this.read();return r===null?stop():{value:r}};this.once("end",stop);this.once(I,stop);this.once(L,stop);return{next:next,throw:stop,return:stop,[z](){return this}}}destroy(t){if(this[L]){if(t)this.emit("error",t);else this.emit(L);return this}this[L]=true;this[x].length=0;this[O]=0;if(typeof this.close==="function"&&!this[A])this.close();if(t)this.emit("error",t);else this.emit(L);return this}static isStream(t){return!!t&&(t instanceof Minipass||t instanceof u||t instanceof a&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function"))}}r.Minipass=Minipass},4184:(t,r,i)=>{const o=i(9320);const a=i(5467);const{mkdirpNative:u,mkdirpNativeSync:l}=i(5625);const{mkdirpManual:h,mkdirpManualSync:p}=i(5124);const{useNative:d,useNativeSync:m}=i(628);const mkdirp=(t,r)=>{t=a(t);r=o(r);return d(r)?u(t,r):h(t,r)};const mkdirpSync=(t,r)=>{t=a(t);r=o(r);return m(r)?l(t,r):p(t,r)};mkdirp.sync=mkdirpSync;mkdirp.native=(t,r)=>u(a(t),o(r));mkdirp.manual=(t,r)=>h(a(t),o(r));mkdirp.nativeSync=(t,r)=>l(a(t),o(r));mkdirp.manualSync=(t,r)=>p(a(t),o(r));t.exports=mkdirp},9731:(t,r,i)=>{const{dirname:o}=i(1017);const findMade=(t,r,i=undefined)=>{if(i===r)return Promise.resolve();return t.statAsync(r).then((t=>t.isDirectory()?i:undefined),(i=>i.code==="ENOENT"?findMade(t,o(r),r):undefined))};const findMadeSync=(t,r,i=undefined)=>{if(i===r)return undefined;try{return t.statSync(r).isDirectory()?i:undefined}catch(i){return i.code==="ENOENT"?findMadeSync(t,o(r),r):undefined}};t.exports={findMade:findMade,findMadeSync:findMadeSync}},5124:(t,r,i)=>{const{dirname:o}=i(1017);const mkdirpManual=(t,r,i)=>{r.recursive=false;const a=o(t);if(a===t){return r.mkdirAsync(t,r).catch((t=>{if(t.code!=="EISDIR")throw t}))}return r.mkdirAsync(t,r).then((()=>i||t),(o=>{if(o.code==="ENOENT")return mkdirpManual(a,r).then((i=>mkdirpManual(t,r,i)));if(o.code!=="EEXIST"&&o.code!=="EROFS")throw o;return r.statAsync(t).then((t=>{if(t.isDirectory())return i;else throw o}),(()=>{throw o}))}))};const mkdirpManualSync=(t,r,i)=>{const a=o(t);r.recursive=false;if(a===t){try{return r.mkdirSync(t,r)}catch(t){if(t.code!=="EISDIR")throw t;else return}}try{r.mkdirSync(t,r);return i||t}catch(o){if(o.code==="ENOENT")return mkdirpManualSync(t,r,mkdirpManualSync(a,r,i));if(o.code!=="EEXIST"&&o.code!=="EROFS")throw o;try{if(!r.statSync(t).isDirectory())throw o}catch(t){throw o}}};t.exports={mkdirpManual:mkdirpManual,mkdirpManualSync:mkdirpManualSync}},5625:(t,r,i)=>{const{dirname:o}=i(1017);const{findMade:a,findMadeSync:u}=i(9731);const{mkdirpManual:l,mkdirpManualSync:h}=i(5124);const mkdirpNative=(t,r)=>{r.recursive=true;const i=o(t);if(i===t)return r.mkdirAsync(t,r);return a(r,t).then((i=>r.mkdirAsync(t,r).then((()=>i)).catch((i=>{if(i.code==="ENOENT")return l(t,r);else throw i}))))};const mkdirpNativeSync=(t,r)=>{r.recursive=true;const i=o(t);if(i===t)return r.mkdirSync(t,r);const a=u(r,t);try{r.mkdirSync(t,r);return a}catch(i){if(i.code==="ENOENT")return h(t,r);else throw i}};t.exports={mkdirpNative:mkdirpNative,mkdirpNativeSync:mkdirpNativeSync}},9320:(t,r,i)=>{const{promisify:o}=i(3837);const a=i(7147);const optsArg=t=>{if(!t)t={mode:511,fs:a};else if(typeof t==="object")t={mode:511,fs:a,...t};else if(typeof t==="number")t={mode:t,fs:a};else if(typeof t==="string")t={mode:parseInt(t,8),fs:a};else throw new TypeError("invalid options argument");t.mkdir=t.mkdir||t.fs.mkdir||a.mkdir;t.mkdirAsync=o(t.mkdir);t.stat=t.stat||t.fs.stat||a.stat;t.statAsync=o(t.stat);t.statSync=t.statSync||t.fs.statSync||a.statSync;t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||a.mkdirSync;return t};t.exports=optsArg},5467:(t,r,i)=>{const o=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:a,parse:u}=i(1017);const pathArg=t=>{if(/\0/.test(t)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"})}t=a(t);if(o==="win32"){const r=/[*|"<>?:]/;const{root:i}=u(t);if(r.test(t.substr(i.length))){throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}}return t};t.exports=pathArg},628:(t,r,i)=>{const o=i(7147);const a=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const u=a.replace(/^v/,"").split(".");const l=+u[0]>10||+u[0]===10&&+u[1]>=12;const h=!l?()=>false:t=>t.mkdir===o.mkdir;const p=!l?()=>false:t=>t.mkdirSync===o.mkdirSync;t.exports={useNative:h,useNativeSync:p}},887:(t,r,i)=>{"use strict";
88
88
  /*!
89
89
  * to-regex-range <https://github.com/micromatch/to-regex-range>
90
90
  *
@@ -96,7 +96,7 @@ var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}
96
96
  *
97
97
  * Copyright (c) 2014-present, Jon Schlinkert.
98
98
  * Released under the MIT License.
99
- */t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},5418:(t,r,i)=>{const{URL:o}=i(7310);const{join:a}=i(1017);const u=i(7147);const{promisify:l}=i(3837);const{tmpdir:h}=i(2037);const p=i(2447);const d=l(u.writeFile);const m=l(u.mkdir);const g=l(u.readFile);const compareVersions=(t,r)=>t.localeCompare(r,"en-US",{numeric:true});const encode=t=>encodeURIComponent(t).replace(/^%40/,"@");const getFile=async(t,r)=>{const i=h();const o=a(i,"update-check");if(!u.existsSync(o)){await m(o)}let l=`${t.name}-${r}.json`;if(t.scope){l=`${t.scope}-${l}`}return a(o,l)};const evaluateCache=async(t,r,i)=>{if(u.existsSync(t)){const o=await g(t,"utf8");const{lastUpdate:a,latest:u}=JSON.parse(o);const l=a+i;if(l>r){return{shouldCheck:false,latest:u}}}return{shouldCheck:true,latest:null}};const updateCache=async(t,r,i)=>{const o=JSON.stringify({latest:r,lastUpdate:i});await d(t,o,"utf8")};const loadPackage=(t,r)=>new Promise(((o,a)=>{const u={host:t.hostname,path:t.pathname,port:t.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(r){u.headers.authorization=`${r.type} ${r.token}`}const{get:l}=i(t.protocol==="https:"?5687:3685);l(u,(t=>{const{statusCode:r}=t;if(r!==200){const i=new Error(`Request failed with code ${r}`);i.code=r;a(i);t.resume();return}let i="";t.setEncoding("utf8");t.on("data",(t=>{i+=t}));t.on("end",(()=>{try{const t=JSON.parse(i);o(t)}catch(t){a(t)}}))})).on("error",a).on("timeout",a)}));const getMostRecent=async({full:t,scope:r},a)=>{const u=p(r);const l=new o(t,u);let h=null;try{h=await loadPackage(l)}catch(t){if(t.code&&String(t.code).startsWith(4)){const t=i(1384);const r=t(u,{recursive:true});h=await loadPackage(l,r)}else{throw t}}const d=h["dist-tags"][a];if(!d){throw new Error(`Distribution tag ${a} is not available`)}return d};const y={interval:36e5,distTag:"latest"};const getDetails=t=>{const r={full:encode(t)};if(t.includes("/")){const i=t.split("/");r.scope=i[0];r.name=i[1]}else{r.scope=null;r.name=t}return r};t.exports=async(t,r)=>{if(typeof t!=="object"){throw new Error("The first parameter should be your package.json file content")}const i=getDetails(t.name);const o=Date.now();const{distTag:a,interval:u}=Object.assign({},y,r);const l=await getFile(i,a);let h=null;let p=true;({shouldCheck:p,latest:h}=await evaluateCache(l,o,u));if(p){h=await getMostRecent(i,a);await updateCache(l,h,o)}const d=compareVersions(t.version,h);if(d===-1){return{latest:h,fromCache:!p}}return null}},8593:(t,r,i)=>{"use strict";const{builtinModules:o}=i(8188);var a=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var u=["node_modules","favicon.ico"];function validate(t){var r=[];var i=[];if(t===null){i.push("name cannot be null");return done(r,i)}if(t===undefined){i.push("name cannot be undefined");return done(r,i)}if(typeof t!=="string"){i.push("name must be a string");return done(r,i)}if(!t.length){i.push("name length must be greater than zero")}if(t.match(/^\./)){i.push("name cannot start with a period")}if(t.match(/^_/)){i.push("name cannot start with an underscore")}if(t.trim()!==t){i.push("name cannot contain leading or trailing spaces")}u.forEach((function(r){if(t.toLowerCase()===r){i.push(r+" is a blacklisted name")}}));if(o.includes(t.toLowerCase())){r.push(t+" is a core module name")}if(t.length>214){r.push("name can no longer contain more than 214 characters")}if(t.toLowerCase()!==t){r.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(t.split("/").slice(-1)[0])){r.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(t)!==t){var l=t.match(a);if(l){var h=l[1];var p=l[2];if(encodeURIComponent(h)===h&&encodeURIComponent(p)===p){return done(r,i)}}i.push("name can only contain URL-friendly characters")}return done(r,i)}var done=function(t,r){var i={validForNewPackages:r.length===0&&t.length===0,validForOldPackages:r.length===0,warnings:t,errors:r};if(!i.warnings.length){delete i.warnings}if(!i.errors.length){delete i.errors}return i};t.exports=validate},5523:t=>{t.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]},1205:(t,r,i)=>{"use strict";var o=i(6420);var a=i(5523);var u={nul:0,control:0};t.exports=function wcwidth(t){return wcswidth(t,u)};t.exports.config=function(t){t=o(t||{},u);return function wcwidth(r){return wcswidth(r,t)}};function wcswidth(t,r){if(typeof t!=="string")return wcwidth(t,r);var i=0;for(var o=0;o<t.length;o++){var a=wcwidth(t.charCodeAt(o),r);if(a<0)return-1;i+=a}return i}function wcwidth(t,r){if(t===0)return r.nul;if(t<32||t>=127&&t<160)return r.control;if(bisearch(t))return 0;return 1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function bisearch(t){var r=0;var i=a.length-1;var o;if(t<a[0][0]||t>a[i][1])return false;while(i>=r){o=Math.floor((r+i)/2);if(t>a[o][1])r=o+1;else if(t<a[o][0])i=o-1;else return true}return false}},460:(t,r,i)=>{"use strict";t.exports=writeFile;t.exports.sync=writeFileSync;t.exports._getTmpname=getTmpname;t.exports._cleanupOnExit=cleanupOnExit;var o=i(552);var a=i(5091);var u=i(2028);var l=i(1017);var h={};var p=function getId(){try{var t=i(1267);return t.threadId}catch(t){return 0}}();var d=0;function getTmpname(t){return t+"."+a(__filename).hash(String(process.pid)).hash(String(p)).hash(String(++d)).result()}function cleanupOnExit(t){return function(){try{o.unlinkSync(typeof t==="function"?t():t)}catch(t){}}}function writeFile(t,r,i,a){if(i){if(i instanceof Function){a=i;i={}}else if(typeof i==="string"){i={encoding:i}}}else{i={}}var p=i.Promise||global.Promise;var d;var m;var g;var y=u(cleanupOnExit((()=>g)));var A=l.resolve(t);new p((function serializeSameFile(t){if(!h[A])h[A]=[];h[A].push(t);if(h[A].length===1)t()})).then((function getRealPath(){return new p((function(r){o.realpath(t,(function(i,o){d=o||t;g=getTmpname(d);r()}))}))})).then((function stat(){return new p((function stat(t){if(i.mode&&i.chown)t();else{o.stat(d,(function(r,o){if(r||!o)t();else{i=Object.assign({},i);if(i.mode==null){i.mode=o.mode}if(i.chown==null&&process.getuid){i.chown={uid:o.uid,gid:o.gid}}t()}}))}}))})).then((function thenWriteFile(){return new p((function(t,r){o.open(g,"w",i.mode,(function(i,o){m=o;if(i)r(i);else t()}))}))})).then((function write(){return new p((function(t,a){if(Buffer.isBuffer(r)){o.write(m,r,0,r.length,0,(function(r){if(r)a(r);else t()}))}else if(r!=null){o.write(m,String(r),0,String(i.encoding||"utf8"),(function(r){if(r)a(r);else t()}))}else t()}))})).then((function syncAndClose(){return new p((function(t,r){if(i.fsync!==false){o.fsync(m,(function(i){if(i)o.close(m,(()=>r(i)));else o.close(m,t)}))}else{o.close(m,t)}}))})).then((function chown(){m=null;if(i.chown){return new p((function(t,r){o.chown(g,i.chown.uid,i.chown.gid,(function(i){if(i)r(i);else t()}))}))}})).then((function chmod(){if(i.mode){return new p((function(t,r){o.chmod(g,i.mode,(function(i){if(i)r(i);else t()}))}))}})).then((function rename(){return new p((function(t,r){o.rename(g,d,(function(i){if(i)r(i);else t()}))}))})).then((function success(){y();a()}),(function fail(t){return new p((t=>m?o.close(m,t):t())).then((()=>{y();o.unlink(g,(function(){a(t)}))}))})).then((function checkQueue(){h[A].shift();if(h[A].length>0){h[A][0]()}else delete h[A]}))}function writeFileSync(t,r,i){if(typeof i==="string")i={encoding:i};else if(!i)i={};try{t=o.realpathSync(t)}catch(t){}var a=getTmpname(t);if(!i.mode||!i.chown){try{var l=o.statSync(t);i=Object.assign({},i);if(!i.mode){i.mode=l.mode}if(!i.chown&&process.getuid){i.chown={uid:l.uid,gid:l.gid}}}catch(t){}}var h;var p=cleanupOnExit(a);var d=u(p);try{h=o.openSync(a,"w",i.mode);if(Buffer.isBuffer(r)){o.writeSync(h,r,0,r.length,0)}else if(r!=null){o.writeSync(h,String(r),0,String(i.encoding||"utf8"))}if(i.fsync!==false){o.fsyncSync(h)}o.closeSync(h);if(i.chown)o.chownSync(a,i.chown.uid,i.chown.gid);if(i.mode)o.chmodSync(a,i.mode);o.renameSync(a,t);d()}catch(t){if(h){try{o.closeSync(h)}catch(t){}}d();p();throw t}}},1389:t=>{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next){yield t.value}}}},4461:(t,r,i)=>{"use strict";t.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(t){var r=this;if(!(r instanceof Yallist)){r=new Yallist}r.tail=null;r.head=null;r.length=0;if(t&&typeof t.forEach==="function"){t.forEach((function(t){r.push(t)}))}else if(arguments.length>0){for(var i=0,o=arguments.length;i<o;i++){r.push(arguments[i])}}return r}Yallist.prototype.removeNode=function(t){if(t.list!==this){throw new Error("removing node which does not belong to this list")}var r=t.next;var i=t.prev;if(r){r.prev=i}if(i){i.next=r}if(t===this.head){this.head=r}if(t===this.tail){this.tail=i}t.list.length--;t.next=null;t.prev=null;t.list=null;return r};Yallist.prototype.unshiftNode=function(t){if(t===this.head){return}if(t.list){t.list.removeNode(t)}var r=this.head;t.list=this;t.next=r;if(r){r.prev=t}this.head=t;if(!this.tail){this.tail=t}this.length++};Yallist.prototype.pushNode=function(t){if(t===this.tail){return}if(t.list){t.list.removeNode(t)}var r=this.tail;t.list=this;t.prev=r;if(r){r.next=t}this.tail=t;if(!this.head){this.head=t}this.length++};Yallist.prototype.push=function(){for(var t=0,r=arguments.length;t<r;t++){push(this,arguments[t])}return this.length};Yallist.prototype.unshift=function(){for(var t=0,r=arguments.length;t<r;t++){unshift(this,arguments[t])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var t=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return t};Yallist.prototype.shift=function(){if(!this.head){return undefined}var t=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return t};Yallist.prototype.forEach=function(t,r){r=r||this;for(var i=this.head,o=0;i!==null;o++){t.call(r,i.value,o,this);i=i.next}};Yallist.prototype.forEachReverse=function(t,r){r=r||this;for(var i=this.tail,o=this.length-1;i!==null;o--){t.call(r,i.value,o,this);i=i.prev}};Yallist.prototype.get=function(t){for(var r=0,i=this.head;i!==null&&r<t;r++){i=i.next}if(r===t&&i!==null){return i.value}};Yallist.prototype.getReverse=function(t){for(var r=0,i=this.tail;i!==null&&r<t;r++){i=i.prev}if(r===t&&i!==null){return i.value}};Yallist.prototype.map=function(t,r){r=r||this;var i=new Yallist;for(var o=this.head;o!==null;){i.push(t.call(r,o.value,this));o=o.next}return i};Yallist.prototype.mapReverse=function(t,r){r=r||this;var i=new Yallist;for(var o=this.tail;o!==null;){i.push(t.call(r,o.value,this));o=o.prev}return i};Yallist.prototype.reduce=function(t,r){var i;var o=this.head;if(arguments.length>1){i=r}else if(this.head){o=this.head.next;i=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=0;o!==null;a++){i=t(i,o.value,a);o=o.next}return i};Yallist.prototype.reduceReverse=function(t,r){var i;var o=this.tail;if(arguments.length>1){i=r}else if(this.tail){o=this.tail.prev;i=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=this.length-1;o!==null;a--){i=t(i,o.value,a);o=o.prev}return i};Yallist.prototype.toArray=function(){var t=new Array(this.length);for(var r=0,i=this.head;i!==null;r++){t[r]=i.value;i=i.next}return t};Yallist.prototype.toArrayReverse=function(){var t=new Array(this.length);for(var r=0,i=this.tail;i!==null;r++){t[r]=i.value;i=i.prev}return t};Yallist.prototype.slice=function(t,r){r=r||this.length;if(r<0){r+=this.length}t=t||0;if(t<0){t+=this.length}var i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}for(var o=0,a=this.head;a!==null&&o<t;o++){a=a.next}for(;a!==null&&o<r;o++,a=a.next){i.push(a.value)}return i};Yallist.prototype.sliceReverse=function(t,r){r=r||this.length;if(r<0){r+=this.length}t=t||0;if(t<0){t+=this.length}var i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}for(var o=this.length,a=this.tail;a!==null&&o>r;o--){a=a.prev}for(;a!==null&&o>t;o--,a=a.prev){i.push(a.value)}return i};Yallist.prototype.splice=function(t,r,...i){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}for(var o=0,a=this.head;a!==null&&o<t;o++){a=a.next}var u=[];for(var o=0;a&&o<r;o++){u.push(a.value);a=this.removeNode(a)}if(a===null){a=this.tail}if(a!==this.head&&a!==this.tail){a=a.prev}for(var o=0;o<i.length;o++){a=insert(this,a,i[o])}return u};Yallist.prototype.reverse=function(){var t=this.head;var r=this.tail;for(var i=t;i!==null;i=i.prev){var o=i.prev;i.prev=i.next;i.next=o}this.head=r;this.tail=t;return this};function insert(t,r,i){var o=r===t.head?new Node(i,null,r,t):new Node(i,r,r.next,t);if(o.next===null){t.tail=o}if(o.prev===null){t.head=o}t.length++;return o}function push(t,r){t.tail=new Node(r,t.tail,null,t);if(!t.head){t.head=t.tail}t.length++}function unshift(t,r){t.head=new Node(r,null,t.head,t);if(!t.tail){t.tail=t.head}t.length++}function Node(t,r,i,o){if(!(this instanceof Node)){return new Node(t,r,i,o)}this.list=o;this.value=t;if(r){r.next=this;this.prev=r}else{this.prev=null}if(i){i.prev=this;this.next=i}else{this.next=null}}try{i(1389)(Yallist)}catch(t){}},6282:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const h=i(6779);const p=l(i(5130));const d=l(i(7561));const m=l(i(9411));const g=i(7261);const y=l(i(460));const A=u(i(1486));const b=(0,g.promisify)(y.default);const v={badJsonDefault:undefined,jsonParseErrorDefault:undefined,cantReadFileDefault:undefined,ensureDir:false,default:undefined,json5:false,space:2,addNewLineAtEOF:true};class JsonFile{file;options;static read=read;static readAsync=readAsync;static parseJsonString=parseJsonString;static write=write;static writeAsync=writeAsync;static get=getSync;static getAsync=getAsync;static set=setSync;static setAsync=setAsync;static merge=merge;static mergeAsync=mergeAsync;static deleteKey=deleteKey;static deleteKeyAsync=deleteKeyAsync;static deleteKeys=deleteKeys;static deleteKeysAsync=deleteKeysAsync;static rewrite=rewrite;static rewriteAsync=rewriteAsync;constructor(t,r={}){this.file=t;this.options=r}read(t){return read(this.file,this._getOptions(t))}async readAsync(t){return readAsync(this.file,this._getOptions(t))}write(t,r){return write(this.file,t,this._getOptions(r))}async writeAsync(t,r){return writeAsync(this.file,t,this._getOptions(r))}parseJsonString(t,r){return parseJsonString(t,r)}get(t,r,i){return getSync(this.file,t,r,this._getOptions(i))}async getAsync(t,r,i){return getAsync(this.file,t,r,this._getOptions(i))}set(t,r,i){return setSync(this.file,t,r,this._getOptions(i))}async setAsync(t,r,i){return setAsync(this.file,t,r,this._getOptions(i))}async merge(t,r){return merge(this.file,t,this._getOptions(r))}async mergeAsync(t,r){return mergeAsync(this.file,t,this._getOptions(r))}deleteKey(t,r){return deleteKey(this.file,t,this._getOptions(r))}async deleteKeyAsync(t,r){return deleteKeyAsync(this.file,t,this._getOptions(r))}deleteKeys(t,r){return deleteKeys(this.file,t,this._getOptions(r))}async deleteKeysAsync(t,r){return deleteKeysAsync(this.file,t,this._getOptions(r))}rewrite(t){return rewrite(this.file,this._getOptions(t))}async rewriteAsync(t){return rewriteAsync(this.file,this._getOptions(t))}_getOptions(t){return{...this.options,...t}}}r["default"]=JsonFile;function read(t,r){let i;try{i=d.default.readFileSync(t,"utf8")}catch(o){assertEmptyJsonString(i,t);const a=cantReadFileDefault(r);if(a===undefined){throw new A.default(`Can't read JSON file: ${t}`,o,o.code,t)}else{return a}}return parseJsonString(i,r,t)}async function readAsync(t,r){let i;try{i=await d.default.promises.readFile(t,"utf8")}catch(o){assertEmptyJsonString(i,t);const a=cantReadFileDefault(r);if(a===undefined){throw new A.default(`Can't read JSON file: ${t}`,o,o.code)}else{return a}}return parseJsonString(i,r)}function parseJsonString(t,r,i){assertEmptyJsonString(t,i);try{if(_getOption(r,"json5")){return p.default.parse(t)}else{return JSON.parse(t)}}catch(o){const a=jsonParseErrorDefault(r);if(a===undefined){const r=locationFromSyntaxError(o,t);if(r){const i=(0,h.codeFrameColumns)(t,{start:r});o.codeFrame=i;o.message+=`\n${i}`}throw new A.default(`Error parsing JSON: ${t}`,o,"EJSONPARSE",i)}else{return a}}}function getSync(t,r,i,o){const a=read(t,o);if(r in a){return a[r]}if(i===undefined){throw new A.default(`No value at key path "${String(r)}" in JSON object from: ${t}`)}return i}async function getAsync(t,r,i,o){const a=await readAsync(t,o);if(r in a){return a[r]}if(i===undefined){throw new A.default(`No value at key path "${String(r)}" in JSON object from: ${t}`)}return i}function write(t,r,i){if(i?.ensureDir){d.default.mkdirSync(m.default.dirname(t),{recursive:true})}const o=_getOption(i,"space");const a=_getOption(i,"json5");const u=_getOption(i,"addNewLineAtEOF");let l;try{if(a){l=p.default.stringify(r,null,o)}else{l=JSON.stringify(r,null,o)}}catch(r){throw new A.default(`Couldn't JSON.stringify object for file: ${t}`,r)}const h=u?`${l}\n`:l;y.default.sync(t,h,{});return r}async function writeAsync(t,r,i){if(i?.ensureDir){await d.default.promises.mkdir(m.default.dirname(t),{recursive:true})}const o=_getOption(i,"space");const a=_getOption(i,"json5");const u=_getOption(i,"addNewLineAtEOF");let l;try{if(a){l=p.default.stringify(r,null,o)}else{l=JSON.stringify(r,null,o)}}catch(r){throw new A.default(`Couldn't JSON.stringify object for file: ${t}`,r)}const h=u?`${l}\n`:l;await b(t,h,{});return r}function setSync(t,r,i,o){const a=read(t,o);return write(t,{...a,[r]:i},o)}async function setAsync(t,r,i,o){const a=await readAsync(t,o);return writeAsync(t,{...a,[r]:i},o)}async function mergeAsync(t,r,i){const o=await readAsync(t,i);if(Array.isArray(r)){Object.assign(o,...r)}else{Object.assign(o,r)}return writeAsync(t,o,i)}function merge(t,r,i){const o=read(t,i);if(Array.isArray(r)){Object.assign(o,...r)}else{Object.assign(o,r)}return write(t,o,i)}async function deleteKeyAsync(t,r,i){return deleteKeysAsync(t,[r],i)}function deleteKey(t,r,i){return deleteKeys(t,[r],i)}async function deleteKeysAsync(t,r,i){const o=await readAsync(t,i);let a=false;for(let t=0;t<r.length;t++){const i=r[t];if(o.hasOwnProperty(i)){delete o[i];a=true}}if(a){return writeAsync(t,o,i)}return o}function deleteKeys(t,r,i){const o=read(t,i);let a=false;for(let t=0;t<r.length;t++){const i=r[t];if(o.hasOwnProperty(i)){delete o[i];a=true}}if(a){return write(t,o,i)}return o}async function rewriteAsync(t,r){const i=await readAsync(t,r);return writeAsync(t,i,r)}function rewrite(t,r){return write(t,read(t,r),r)}function jsonParseErrorDefault(t={}){if(t.jsonParseErrorDefault===undefined){return t.default}else{return t.jsonParseErrorDefault}}function cantReadFileDefault(t={}){if(t.cantReadFileDefault===undefined){return t.default}else{return t.cantReadFileDefault}}function _getOption(t,r){if(t){if(t[r]!==undefined){return t[r]}}return v[r]}function locationFromSyntaxError(t,r){if("lineNumber"in t&&"columnNumber"in t){return{line:t.lineNumber,column:t.columnNumber}}const i=/at position (\d+)/.exec(t.message);if(i){const t=parseInt(i[1],10);const o=r.slice(0,t+1).split("\n");return{line:o.length,column:o[o.length-1].length}}return null}function assertEmptyJsonString(t,r){if(t?.trim()===""){throw new A.EmptyJsonFileError(r)}}},1486:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.EmptyJsonFileError=void 0;class JsonFileError extends Error{cause;code;fileName;isJsonFileError;constructor(t,r,i,o){let a=t;if(o){a+=`\n${r?"├":"└"}─ File: ${o}`}if(r){a+=`\n└─ Cause: ${r.name}: ${r.message}`}super(a);this.name=this.constructor.name;this.cause=r;this.code=i;this.fileName=o;this.isJsonFileError=true}}r["default"]=JsonFileError;class EmptyJsonFileError extends JsonFileError{constructor(t){super(`Cannot parse an empty JSON string`,undefined,"EJSONEMPTY",t)}}r.EmptyJsonFileError=EmptyJsonFileError},6779:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.codeFrameColumns=codeFrameColumns;r["default"]=_default;var o=_interopRequireWildcard(i(932));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var t=new WeakMap;_getRequireWildcardCache=function(){return t};return t}function _interopRequireWildcard(t){if(t&&t.__esModule){return t}if(t===null||typeof t!=="object"&&typeof t!=="function"){return{default:t}}var r=_getRequireWildcardCache();if(r&&r.has(t)){return r.get(t)}var i={};var o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t){if(Object.prototype.hasOwnProperty.call(t,a)){var u=o?Object.getOwnPropertyDescriptor(t,a):null;if(u&&(u.get||u.set)){Object.defineProperty(i,a,u)}else{i[a]=t[a]}}}i.default=t;if(r){r.set(t,i)}return i}let a=false;function getDefs(t){return{gutter:t.grey,marker:t.red.bold,message:t.red.bold}}const u=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(t,r,i){const o=Object.assign({column:0,line:-1},t.start);const a=Object.assign({},o,t.end);const{linesAbove:u=2,linesBelow:l=3}=i||{};const h=o.line;const p=o.column;const d=a.line;const m=a.column;let g=Math.max(h-(u+1),0);let y=Math.min(r.length,d+l);if(h===-1){g=0}if(d===-1){y=r.length}const A=d-h;const b={};if(A){for(let t=0;t<=A;t++){const i=t+h;if(!p){b[i]=true}else if(t===0){const t=r[i-1].length;b[i]=[p,t-p+1]}else if(t===A){b[i]=[0,m]}else{const o=r[i-t].length;b[i]=[0,o]}}}else{if(p===m){if(p){b[h]=[p,0]}else{b[h]=true}}else{b[h]=[p,m-p]}}return{start:g,end:y,markerLines:b}}function codeFrameColumns(t,r,i={}){const a=(i.highlightCode||i.forceColor)&&(0,o.shouldHighlight)(i);const l=(0,o.getChalk)(i);const h=getDefs(l);const maybeHighlight=(t,r)=>a?t(r):r;const p=t.split(u);const{start:d,end:m,markerLines:g}=getMarkerLines(r,p,i);const y=r.start&&typeof r.start.column==="number";const A=String(m).length;const b=a?(0,o.default)(t,i):t;let v=b.split(u).slice(d,m).map(((t,r)=>{const o=d+1+r;const a=` ${o}`.slice(-A);const u=` ${a} | `;const l=g[o];const p=!g[o+1];if(l){let r="";if(Array.isArray(l)){const o=t.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," ");const a=l[1]||1;r=["\n ",maybeHighlight(h.gutter,u.replace(/\d/g," ")),o,maybeHighlight(h.marker,"^").repeat(a)].join("");if(p&&i.message){r+=" "+maybeHighlight(h.message,i.message)}}return[maybeHighlight(h.marker,">"),maybeHighlight(h.gutter,u),t,r].join("")}else{return` ${maybeHighlight(h.gutter,u)}${t}`}})).join("\n");if(i.message&&!y){v=`${" ".repeat(A+1)}${i.message}\n${v}`}if(a){return l.reset(v)}else{return v}}function _default(t,r,i,o={}){if(!a){a=true;const t="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(t,"DeprecationWarning")}else{const r=new Error(t);r.name="DeprecationWarning";console.warn(new Error(t))}}i=Math.max(i,0);const u={start:{column:i,line:r}};return codeFrameColumns(t,u,o)}},5997:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true})},7496:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__exportStar||function(t,r){for(var i in t)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i))o(r,t,i)};Object.defineProperty(r,"__esModule",{value:true});r.isYarnOfflineAsync=void 0;a(i(5997),r);a(i(1574),r);a(i(1178),r);a(i(6125),r);a(i(57),r);a(i(6805),r);a(i(3746),r);var u=i(822);Object.defineProperty(r,"isYarnOfflineAsync",{enumerable:true,get:function(){return u.isYarnOfflineAsync}})},1574:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getImprovedPodInstallError=r.getPodRepoUpdateMessage=r.getPodUpdateMessage=r.CocoaPodsPackageManager=r.extractMissingDependencyError=r.CocoaPodsError=void 0;const a=o(i(5642));const u=o(i(8746));const l=i(7147);const h=o(i(2037));const p=o(i(1017));const d=i(6418);class CocoaPodsError extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=true;constructor(t,r,i){super(i?`${t}\n└─ Cause: ${i.message}`:t);this.code=r;this.cause=i}}r.CocoaPodsError=CocoaPodsError;function extractMissingDependencyError(t){const r=t.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(r){return[r[1],r[2]]}return null}r.extractMissingDependencyError=extractMissingDependencyError;class CocoaPodsPackageManager{options;silent;static getPodProjectRoot(t){if(CocoaPodsPackageManager.isUsingPods(t))return t;const r=p.default.join(t,"ios");if(CocoaPodsPackageManager.isUsingPods(r))return r;const i=p.default.join(t,"macos");if(CocoaPodsPackageManager.isUsingPods(i))return i;return null}static isUsingPods(t){return(0,l.existsSync)(p.default.join(t,"Podfile"))}static async gemInstallCLIAsync(t=false,r={stdio:"inherit"}){const i=["install","cocoapods","--no-document"];try{await(0,a.default)("gem",i,r)}catch(o){if(t){throw new CocoaPodsError("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",o)}await(0,d.spawnSudoAsync)(["gem",...i],r)}}static async brewLinkCLIAsync(t={stdio:"inherit"}){await(0,a.default)("brew",["link","cocoapods"],t)}static async brewInstallCLIAsync(t={stdio:"inherit"}){await(0,a.default)("brew",["install","cocoapods"],t)}static async installCLIAsync({nonInteractive:t=false,spawnOptions:r={stdio:"inherit"}}){if(!r){r={stdio:"inherit"}}const i=!!r.ignoreStdio;try{!i&&console.log(`› Attempting to install CocoaPods CLI with Gem`);await CocoaPodsPackageManager.gemInstallCLIAsync(t,r);!i&&console.log(`› Successfully installed CocoaPods CLI with Gem`);return true}catch(t){if(!i){console.log(u.default.yellow(`› Failed to install CocoaPods CLI with Gem`));console.log(u.default.red(t.stderr??t.message));console.log(`› Attempting to install CocoaPods CLI with Homebrew`)}try{await CocoaPodsPackageManager.brewInstallCLIAsync(r);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(r)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(r);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(r)){throw new CocoaPodsError("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",t)}}catch(t){throw new CocoaPodsError("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",t)}}!i&&console.log(`› Successfully installed CocoaPods CLI with Homebrew`);return true}catch(t){!i&&console.warn(u.default.yellow(`› Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`));throw new CocoaPodsError(`Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`,"NO_CLI",t)}}}static isAvailable(t,r){if(process.platform!=="darwin"){!r&&console.log(u.default.red("CocoaPods is only supported on macOS machines"));return false}if(!CocoaPodsPackageManager.isUsingPods(t)){!r&&console.log(u.default.yellow("CocoaPods is not supported in this project"));return false}return true}static async isCLIInstalledAsync(t={stdio:"inherit"}){try{await(0,a.default)("pod",["--version"],t);return true}catch{return false}}constructor({cwd:t,silent:r}){this.silent=!!r;this.options={cwd:t,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:t}={}){await this._installAsync({spinner:t})}isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options)}installCLIAsync(){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:true,spawnOptions:this.options})}async handleInstallErrorAsync({error:t,shouldUpdate:r=true,updatedPackages:i=[],spinner:o}){if(!t.output){throw t}if(!r){throw getImprovedPodInstallError(t,{cwd:this.options.cwd})}const a=t.output.join(h.default.EOL).trim();const{updatePackage:l,shouldUpdateRepo:p}=getPodUpdateMessage(a);if(!l||i.includes(l)){return await this._installAsync({spinner:o,shouldRepoUpdate:true,shouldUpdate:false,updatedPackages:i})}i.push(l);return await this.runInstallTypeCommandAsync(["update",l,p?"":"--no-repo-update"].filter(Boolean),{formatWarning(){const t=`Failed to update ${u.default.bold(l)}. Attempting to update the repo instead.`;return t},spinner:o,updatedPackages:i})}async _installAsync({shouldRepoUpdate:t,...r}={}){return await this.runInstallTypeCommandAsync(["install",t?"--repo-update":""].filter(Boolean),{formatWarning(t){return getPodRepoUpdateMessage(t.output.join(h.default.EOL).trim()).message},...r})}async runInstallTypeCommandAsync(t,{formatWarning:r,...i}={}){try{return await this._runAsync(t)}catch(t){if(r){const o=r(t);if(i.spinner){i.spinner.text=u.default.bold(o)}if(!this.silent){console.warn(u.default.yellow(o))}}return await this.handleInstallErrorAsync({error:t,...i})}}async addWithParametersAsync(t,r){throw new Error("Unimplemented")}addAsync(t=[]){throw new Error("Unimplemented")}addDevAsync(t=[]){throw new Error("Unimplemented")}addGlobalAsync(t=[]){throw new Error("Unimplemented")}removeAsync(t=[]){throw new Error("Unimplemented")}removeDevAsync(t=[]){throw new Error("Unimplemented")}removeGlobalAsync(t=[]){throw new Error("Unimplemented")}async versionAsync(){const{stdout:t}=await(0,a.default)("pod",["--version"],this.options);return t.trim()}async configAsync(t){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async uninstallAsync(){throw new Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync(["repo","update"])}catch(t){t.message=t.message||(t.stderr??t.stdout);throw new CocoaPodsError("The command `pod install --repo-update` failed","COMMAND_FAILED",t)}}async _runAsync(t){if(!this.silent){console.log(`> pod ${t.join(" ")}`)}const r=(0,a.default)("pod",[...t,"--ansi"],{...this.options,stdio:"pipe"});if(!this.silent){if(r.child.stdout){r.child.stdout.pipe(process.stdout)}}return await r}}r.CocoaPodsPackageManager=CocoaPodsPackageManager;function shouldPodRepoUpdate(t){const r=t;const i=r.includes("pod repo update")||r.includes("--no-repo-update");return i}function getPodUpdateMessage(t){const r=t.match(/run ['"`]pod update ([\w-_\d/]+)( --no-repo-update)?['"`] to apply changes/);return{updatePackage:r?.[1]??null,shouldUpdateRepo:!r?.[2]}}r.getPodUpdateMessage=getPodUpdateMessage;function getPodRepoUpdateMessage(t){const r=extractMissingDependencyError(t);const i=getPodUpdateMessage(t);let o;if(r){o=`Couldn't install: ${r[1]} » ${u.default.underline(r[0])}.`}else if(i?.updatePackage){o=`Couldn't install: ${i?.updatePackage}.`}else{o=`Couldn't install Pods.`}o+=` Updating the Pods project and trying again...`;return{message:o,...i}}r.getPodRepoUpdateMessage=getPodRepoUpdateMessage;function getImprovedPodInstallError(t,{cwd:r=process.cwd()}){const i=t.output.join(h.default.EOL).trim();if(t.stdout.match(/No [`'"]Podfile[`'"] found in the project directory/)){t.message=`No Podfile found in directory: ${r}. Ensure CocoaPods is setup any try again.`}else if(shouldPodRepoUpdate(i)){const r=extractMissingDependencyError(i);let o;if(r){o=`Couldn't install: ${r[1]} » ${u.default.underline(r[0])}`}else{o=`This is often due to native package versions mismatching`}let a;if(r?.[0]){if(r[0].match(/^(?:@?expo|@?react)(-|\/)/)){a=`Ensure the node module "${r[0]}" is installed in your project, then run 'npx pod-install' to try again.`}else{a=`Ensure the CocoaPod "${r[0]}" is installed in your project, then run 'npx pod-install' to try again.`}}else{a=`Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.`}t.message=`${o}. ${a}`;if(t.stdout){const r=t.stdout.split(h.default.EOL);const i=r.findIndex((t=>t.startsWith("[!]")));if(i!==-1){const o=r.slice(i).join(h.default.EOL);t.message+=`\n\n${u.default.gray(o)}`}}return new CocoaPodsError("Command `pod install --repo-update` failed.","COMMAND_FAILED",t)}else{let r=t.stderr.trim();const i=t.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(i){if(t.message?.match(/pod exited with non-zero code: 1/)){t.message=""}r=null}t.message=[i,t.message,r].filter(Boolean).join("\n")}return new CocoaPodsError("Command `pod install` failed.","COMMAND_FAILED",t)}r.getImprovedPodInstallError=getImprovedPodInstallError},1729:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.BasePackageManager=void 0;const a=o(i(5642));const u=o(i(9491));const l=o(i(7147));const h=o(i(1017));class BasePackageManager{silent;log;options;constructor({silent:t,log:r,env:i=process.env,...o}={}){this.silent=!!t;this.log=r??(!t?console.log:undefined);this.options={stdio:t?undefined:"inherit",...o,env:{...this.getDefaultEnvironment(),...i}}}getDefaultEnvironment(){return{ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}}ensureCwdDefined(t){const r=this.options.cwd?.toString();const i=this.constructor.name;const o=t?`.${t}`:"";(0,u.default)(r,`cwd is required for ${i}${o}`);return r}runAsync(t,r={}){this.log?.(`> ${this.name} ${t.join(" ")}`);return(0,a.default)(this.bin,t,{...this.options,...r})}runBinAsync(t,r={}){this.log?.(`> ${this.name} ${t.join(" ")}`);return(0,a.default)(this.bin,t,{...this.options,...r})}async versionAsync(){const{stdout:t}=await this.runAsync(["--version"],{stdio:undefined});return t.trim()}async getConfigAsync(t){const{stdout:r}=await this.runAsync(["config","get",t]);return r.trim()}async removeLockfileAsync(){const t=this.ensureCwdDefined("removeLockFile");const r=h.default.join(t,this.lockFile);await l.default.promises.rm(r,{force:true})}installAsync(t=[]){return this.runAsync(["install",...t])}async uninstallAsync(){const t=this.ensureCwdDefined("uninstallAsync");const r=h.default.join(t,"node_modules");await l.default.promises.rm(r,{force:true,recursive:true})}}r.BasePackageManager=BasePackageManager},6805:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.BunPackageManager=void 0;const o=i(1729);const a=i(3746);class BunPackageManager extends o.BasePackageManager{name="bun";bin="bun";lockFile=a.BUN_LOCK_FILE;workspaceRoot(){const t=(0,a.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new BunPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){return this.runAsync(["install",...t])}addAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add",...t])}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--dev",...t])}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--global",...t])}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove",...t])}removeGlobalAsync(t){return this.runAsync(["remove","--global",...t])}}r.BunPackageManager=BunPackageManager},1178:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.NpmPackageManager=void 0;const a=o(i(6282));const u=o(i(5642));const l=o(i(5440));const h=o(i(1017));const p=i(1729);const d=i(3746);const m=i(6418);class NpmPackageManager extends p.BasePackageManager{name="npm";bin="npm";lockFile=d.NPM_LOCK_FILE;workspaceRoot(){const t=(0,d.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new NpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}addAsync(t=[]){if(!t.length){return this.installAsync()}const{flags:r,versioned:i,unversioned:o}=this.parsePackageSpecs(t);return(0,m.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(i,"dependencies")),(()=>!o.length?this.runAsync(["install",...r]):this.runAsync(["install","--save",...r,...o.map((t=>t.raw))])))}addDevAsync(t=[]){if(!t.length){return this.installAsync()}const{flags:r,versioned:i,unversioned:o}=this.parsePackageSpecs(t);return(0,m.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(i,"devDependencies")),(()=>!o.length?this.runAsync(["install",...r]):this.runAsync(["install","--save-dev",...r,...o.map((t=>t.raw))])))}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["install","--global",...t])}removeAsync(t){return this.runAsync(["uninstall",...t])}removeDevAsync(t){return this.runAsync(["uninstall","--save-dev",...t])}removeGlobalAsync(t){return this.runAsync(["uninstall","--global",...t])}runBinAsync(t,r={}){this.log?.(`> npx ${t.join(" ")}`);return(0,u.default)("npx",t,{...this.options,...r})}parsePackageSpecs(t){const r={flags:[],versioned:[],unversioned:[]};t.map((t=>{if(t.trim().startsWith("-")){r.flags.push(t);return null}return(0,l.default)(t)})).forEach((t=>{const i=!!t&&t.rawSpec!==""&&t.rawSpec!=="*";if(t&&i&&t.type!=="tag"){r.versioned.push(t)}else if(t){r.unversioned.push(t)}}));return r}async updatePackageFileAsync(t,r){if(!t.length){return}const i=h.default.join(this.options.cwd?.toString()||".","package.json");const o=await a.default.readAsync(i);t.forEach((t=>{o[r]=o[r]||{};o[r][t.name]=t.rawSpec}));await a.default.writeAsync(i,o,{json5:false})}}r.NpmPackageManager=NpmPackageManager},6125:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.PnpmPackageManager=void 0;const a=i(1729);const u=o(i(1966));const l=i(3746);class PnpmPackageManager extends a.BasePackageManager{name="pnpm";bin="pnpm";lockFile=l.PNPM_LOCK_FILE;workspaceRoot(){const t=(0,l.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new PnpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){if(u.default.CI&&!t.join(" ").includes("frozen-lockfile")){t.unshift("--no-frozen-lockfile")}return this.runAsync(["install",...t])}addAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add",...t])}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--save-dev",...t])}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--global",...t])}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove","--save-dev",...t])}removeGlobalAsync(t){return this.runAsync(["remove","--global",...t])}}r.PnpmPackageManager=PnpmPackageManager},57:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.YarnPackageManager=void 0;const o=i(1729);const a=i(3746);const u=i(6418);const l=i(822);class YarnPackageManager extends o.BasePackageManager{name="yarn";bin="yarnpkg";lockFile=a.YARN_LOCK_FILE;async withOfflineFlagAsync(t){return await(0,l.isYarnOfflineAsync)()?[...t,"--offline"]:t}workspaceRoot(){const t=(0,a.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new YarnPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["install"])),(r=>this.runAsync([...r,...t])))}addAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add",...t])),(t=>this.runAsync(t)))}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add","--dev",...t])),(t=>this.runAsync(t)))}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["global","add",...t])),(t=>this.runAsync(t)))}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove",...t])}removeGlobalAsync(t){return this.runAsync(["global","remove",...t])}}r.YarnPackageManager=YarnPackageManager},1966:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class Env{get CI(){const{CI:t}=process.env;return t?.toLowerCase()==="true"||t==="1"}}r["default"]=new Env},3746:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.createForProject=r.resolvePackageManager=r.RESOLUTION_ORDER=r.BUN_LOCK_FILE=r.PNPM_LOCK_FILE=r.YARN_LOCK_FILE=r.NPM_LOCK_FILE=r.resolveWorkspaceRoot=void 0;const a=o(i(7147));const u=o(i(1017));const l=i(7301);const h=i(6805);const p=i(1178);const d=i(6125);const m=i(57);var g=i(7301);Object.defineProperty(r,"resolveWorkspaceRoot",{enumerable:true,get:function(){return g.resolveWorkspaceRoot}});r.NPM_LOCK_FILE="package-lock.json";r.YARN_LOCK_FILE="yarn.lock";r.PNPM_LOCK_FILE="pnpm-lock.yaml";r.BUN_LOCK_FILE="bun.lockb";r.RESOLUTION_ORDER=["bun","yarn","npm","pnpm"];function resolvePackageManager(t,i){const o=(0,l.resolveWorkspaceRoot)(t)??t;const h={npm:r.NPM_LOCK_FILE,pnpm:r.PNPM_LOCK_FILE,yarn:r.YARN_LOCK_FILE,bun:r.BUN_LOCK_FILE};if(i){if(a.default.existsSync(u.default.join(o,h[i]))){return i}return null}for(const t of r.RESOLUTION_ORDER){if(a.default.existsSync(u.default.join(o,h[t]))){return t}}return null}r.resolvePackageManager=resolvePackageManager;function createForProject(t,r={}){if(r.npm){return new p.NpmPackageManager({cwd:t,...r})}else if(r.yarn){return new m.YarnPackageManager({cwd:t,...r})}else if(r.pnpm){return new d.PnpmPackageManager({cwd:t,...r})}else if(r.bun){return new h.BunPackageManager({cwd:t,...r})}switch(resolvePackageManager(t)){case"npm":return new p.NpmPackageManager({cwd:t,...r});case"pnpm":return new d.PnpmPackageManager({cwd:t,...r});case"yarn":return new m.YarnPackageManager({cwd:t,...r});case"bun":return new h.BunPackageManager({cwd:t,...r});default:return new p.NpmPackageManager({cwd:t,...r})}}r.createForProject=createForProject},6418:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.spawnSudoAsync=r.createPendingSpawnAsync=void 0;const a=o(i(5642));const u=o(i(5667));function createPendingSpawnAsync(t,r){let i;const o=new Promise(((t,r)=>{i=t}));const a=new Promise(((o,a)=>{t().then((t=>{const u=r(t);i(u.child);u.then(o).catch(a)})).catch((t=>{i(null);a(t)}))}));a.child=o;return a}r.createPendingSpawnAsync=createPendingSpawnAsync;async function spawnSudoAsync(t,r){if(process.platform==="win32"){return new Promise(((r,i)=>{u.default.exec(t.join(" "),{name:"pod install"},(t=>{if(t){i(t)}r()}))}))}else{console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation");await(0,a.default)("sudo",t,r)}}r.spawnSudoAsync=spawnSudoAsync},822:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getNpmProxy=r.isYarnOfflineAsync=void 0;const a=i(2081);const u=o(i(9523));const l=o(i(7310));async function isYarnOfflineAsync(){if(await isUrlAvailableAsync("registry.yarnpkg.com")){return false}const t=getNpmProxy();if(!t){return true}const{hostname:r}=l.default.parse(t);if(!r){return true}return!await isUrlAvailableAsync(r)}r.isYarnOfflineAsync=isYarnOfflineAsync;function getNpmProxy(){if(process.env.https_proxy){return process.env.https_proxy??null}try{const t=(0,a.execSync)("npm config get https-proxy").toString().trim();return t!=="null"?t:null}catch{return null}}r.getNpmProxy=getNpmProxy;function isUrlAvailableAsync(t){return new Promise((r=>{u.default.lookup(t,(t=>{r(!t)}))}))}},6055:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.sanitizeScriptsAsync=r.downloadAndExtractExampleAsync=r.promptExamplesAsync=r.ensureExampleExists=void 0;const a=o(i(6282));const u=o(i(8746));const l=o(i(7147));const h=o(i(1017));const p=o(i(1112));const d=i(2781);const m=o(i(8089));const g=i(3837);const y=i(1947);const A=i(6581);const b=i(7943);const v=i(9544);const E=i(7984)("expo:init:template");const w=(0,g.promisify)(d.Stream.pipeline);async function listExamplesAsync(){const t=await(0,v.fetch)("https://api.github.com/repos/expo/examples/contents");if(!t.ok){throw new Error("Unexpected GitHub API response: https://github.com/expo/examples")}const r=await t.json();return r.filter((t=>t.type==="dir"&&!t.name.startsWith(".")))}async function hasExampleAsync(t){const r=await(0,v.fetch)(`https://api.github.com/repos/expo/examples/contents/${encodeURIComponent(t)}/package.json`);if(r.status===404||r.ok){return r.ok}throw new Error(`Unexpected GitHub API response: ${r.status} - ${r.statusText}`)}async function ensureExampleExists(t){if(!await hasExampleAsync(t)){throw new Error(`Example "${t}" does not exist, see https://github.com/expo/examples`)}}r.ensureExampleExists=ensureExampleExists;async function promptExamplesAsync(){if(b.env.CI){throw new Error("Cannot prompt for examples in CI")}const t=await listExamplesAsync();const{answer:r}=await(0,p.default)({type:"select",name:"answer",message:"Choose an example:",choices:t.map((t=>({title:t.name,value:t.path})))});if(!r){console.log();console.log((0,u.default)`Please specify the example, example: {cyan --example with-router}`);console.log();process.exit(1)}return r}r.promptExamplesAsync=promptExamplesAsync;async function downloadAndExtractExampleAsync(t,r){const i=h.default.basename(t);const o=await(0,v.fetch)("https://codeload.github.com/expo/examples/tar.gz/master");if(!o.ok){E(`Failed to fetch the examples code, received status "${o.status}"`);throw new Error("Failed to fetch the examples code from https://github.com/expo/examples")}if(!o.body){E(`Failed to fetch the examples code, Github responded without content, received status "${o.status}"`);throw new Error("Failed to fetch the examples code from https://github.com/expo/examples")}await w(d.Readable.fromWeb(o.body),m.default.extract({cwd:t,onentry:(0,A.createEntryResolver)(i),strip:2},[`examples-master/${r}`]));const a=await(0,y.getTemplateFilesToRenameAsync)({cwd:t});await(0,y.renameTemplateAppNameAsync)({cwd:t,files:a,name:i});await(0,y.sanitizeTemplateAsync)(t);await sanitizeScriptsAsync(t)}r.downloadAndExtractExampleAsync=downloadAndExtractExampleAsync;function exampleHasNativeCode(t){return[h.default.join(t,"android"),h.default.join(t,"ios")].some((t=>l.default.existsSync(t)))}async function sanitizeScriptsAsync(t){const r=exampleHasNativeCode(t)?{start:"expo start --dev-client",android:"expo run:android",ios:"expo run:ios",web:"expo start --web"}:{start:"expo start",android:"expo start --android",ios:"expo start --ios",web:"expo start --web"};const i=new a.default(h.default.join(t,"package.json"));const o=await i.readAsync();const u=o.scripts??{};o.scripts={...r,...u};await i.writeAsync(o)}r.sanitizeScriptsAsync=sanitizeScriptsAsync},1947:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.logNewSection=r.installPodsAsync=r.logProjectReady=r.validateName=r.sanitizeTemplateAsync=r.renameTemplateAppNameAsync=r.getTemplateFilesToRenameAsync=r.defaultRenameConfig=r.extractAndPrepareTemplateAppAsync=r.resolvePackageModuleId=r.isFolderNameForbidden=void 0;const h=l(i(6282));const p=u(i(7496));const d=l(i(8746));const m=i(3909);const g=l(i(7147));const y=l(i(2651));const A=l(i(1017));const b=i(6581);const v=i(3744);const E=i(1805);const w=i(7943);const _=i(292);const S=i(7240);const C=i(7984)("expo:init:template");const D=process.platform==="darwin";const x=["react-native","react","react-dom","react-native-web","expo","expo-router"];function isFolderNameForbidden(t){return x.includes(t)}r.isFolderNameForbidden=isFolderNameForbidden;function deepMerge(t,r){if(typeof t!=="object"){return r}if(Array.isArray(t)&&Array.isArray(r)){return t.concat(r)}Object.keys(r).forEach((i=>{if(typeof r[i]==="object"&&r[i]!==null){t[i]=deepMerge(t[i],r[i])}else{t[i]=r[i]}}));return t}function coerceUrl(t){try{return new URL(t)}catch(r){if(!/^(https?:\/\/)/.test(t)){return new URL(`https://${t}`)}throw r}}function resolvePackageModuleId(t){if(/^(https?:\/\/)?github\.com\//.test(t)){try{const r=coerceUrl(t);C("Resolved moduleId to repository path:",t);return{type:"repository",uri:r}}catch{throw new Error(`Invalid URL: "${t}" provided`)}}if(t?.startsWith("file:")||t?.startsWith(".")||t?.startsWith(A.default.sep)){if(t?.startsWith("file:")){t=t.substring(5)}C(`Resolved moduleId to file path:`,t);return{type:"file",uri:A.default.resolve(t)}}C(`Resolved moduleId to NPM package:`,t);return{type:"npm",uri:t}}r.resolvePackageModuleId=resolvePackageModuleId;async function extractAndPrepareTemplateAppAsync(t,{npmPackage:r}){const i=A.default.basename(t);C(`Extracting template app (pkg: ${r}, projectName: ${i})`);const{type:o,uri:a}=resolvePackageModuleId(r||"expo-template-default");if(o==="repository"){await(0,_.downloadAndExtractGitHubRepositoryAsync)(a,{cwd:t,name:i})}else{const r=o==="file"?a:(0,S.getResolvedTemplateName)((0,S.applyBetaTag)(a));await(0,S.downloadAndExtractNpmModuleAsync)(r,{cwd:t,name:i,disableCache:o==="file"})}try{const r=await getTemplateFilesToRenameAsync({cwd:t});await renameTemplateAppNameAsync({cwd:t,files:r,name:i})}catch(t){v.Log.error("Error renaming app name in template");throw t}await sanitizeTemplateAsync(t);return t}r.extractAndPrepareTemplateAppAsync=extractAndPrepareTemplateAppAsync;function escapeXMLCharacters(t){const r=t.replace("&","&amp;");const i=r.replace("<","&lt;");const o=i.replace(">","&gt;");const a=o.replace('"','\\"');return a.replace("'","\\'")}r.defaultRenameConfig=["!**/node_modules","app.json","android/**/*.gradle","android/app/BUCK","android/app/src/**/*.java","android/app/src/**/*.kt","android/app/src/**/*.xml","ios/Podfile","ios/**/*.xcodeproj/project.pbxproj","ios/**/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme"];async function getTemplateFilesToRenameAsync({cwd:t,renameConfig:i}){let o=i??r.defaultRenameConfig;o=o.map((t=>t.split(/(?<!\\)#/,2)[0].trim())).filter((t=>t!==""));return await(0,m.glob)(o,{cwd:t,baseNameMatch:true,dot:true,followSymbolicLinks:false})}r.getTemplateFilesToRenameAsync=getTemplateFilesToRenameAsync;async function renameTemplateAppNameAsync({cwd:t,name:r,files:i}){C(`Got files to transform: ${JSON.stringify(i)}`);await Promise.all(i.map((async i=>{const o=A.default.resolve(t,i);let a;try{a=await g.default.promises.readFile(o,{encoding:"utf-8"})}catch(t){throw new Error(`Failed to read template file: "${o}". Was it removed mid-operation?`,{cause:t})}C(`Renaming app name in file: ${o}`);const u=[".xml",".plist"].includes(A.default.extname(i))?escapeXMLCharacters(r):r;try{const t=a.replace(/Hello App Display Name/g,u).replace(/HelloWorld/g,(0,b.sanitizedName)(u)).replace(/helloworld/g,(0,b.sanitizedName)(u.toLowerCase()));if(t===a){return}await g.default.promises.writeFile(o,t)}catch(t){throw new Error(`Failed to overwrite template file: "${o}". Was it removed mid-operation?`,{cause:t})}})))}r.renameTemplateAppNameAsync=renameTemplateAppNameAsync;async function sanitizeTemplateAsync(t){const r=A.default.basename(t);C(`Sanitizing template or example app (projectName: ${r})`);const i=A.default.join(__dirname,"../template/gitignore");const o=A.default.join(t,".gitignore");if(!g.default.existsSync(o)){await g.default.promises.copyFile(i,o)}const a={name:r,slug:r};const u=new h.default(A.default.join(t,"app.json"),{default:{}});const l=await u.readAsync();const p=deepMerge(l,"expo"in l?{expo:a}:a);await u.writeAsync(p);C(`Created app.json:\n%O`,p);const d=new h.default(A.default.join(t,"package.json"));const m=await d.readAsync();const y="name"in p?p.name:p.expo.name;m.name=(0,S.applyKnownNpmPackageNameRules)(y)||"app";m.version="1.0.0";m.private=true;delete m.description;delete m.tags;delete m.repository;if(m.license==="0BSD"){delete m.license}await d.writeAsync(m)}r.sanitizeTemplateAsync=sanitizeTemplateAsync;function validateName(t){if(typeof t!=="string"||t===""){return"The project name can not be empty."}if(!/^[a-z0-9@.\-_]+$/i.test(t)){return"The project name can only contain URL-friendly characters."}return true}r.validateName=validateName;function logProjectReady({cdPath:t,packageManager:r}){console.log(d.default.bold(`✅ Your project is ready!`));console.log();if(t){console.log(`To run your project, navigate to the directory and run one of the following ${r} commands.`);console.log();console.log(`- ${d.default.bold("cd "+t)}`)}else{console.log(`To run your project, run one of the following ${r} commands.`);console.log()}console.log(`- ${d.default.bold((0,E.formatRunCommand)(r,"android"))}`);let i="";if(!D){i=" # you need to use macOS to build the iOS project - use the Expo app if you need to do iOS development without a Mac"}console.log(`- ${d.default.bold((0,E.formatRunCommand)(r,"ios"))}${i}`);console.log(`- ${d.default.bold((0,E.formatRunCommand)(r,"web"))}`)}r.logProjectReady=logProjectReady;async function installPodsAsync(t){let r=logNewSection("Installing CocoaPods.");if(process.platform!=="darwin"){r.succeed("Skipped installing CocoaPods because operating system is not macOS.");return false}const i=new p.CocoaPodsPackageManager({cwd:A.default.join(t,"ios"),silent:!w.env.EXPO_DEBUG});if(!await i.isCLIInstalledAsync()){try{r.text="CocoaPods CLI not found in your $PATH, installing it now.";r.render();await i.installCLIAsync();r.succeed("Installed CocoaPods CLI");r=logNewSection("Running `pod install` in the `ios` directory.")}catch(t){r.stopAndPersist({symbol:"⚠️ ",text:d.default.red("Unable to install the CocoaPods CLI. Continuing with initializing the project, you can install CocoaPods afterwards.")});if(t.message){v.Log.error(`- ${t.message}`)}return false}}try{await i.installAsync();r.succeed("Installed pods and initialized Xcode workspace.");return true}catch(t){r.stopAndPersist({symbol:"⚠️ ",text:d.default.red("Something went wrong running `pod install` in the `ios` directory. Continuing with initializing the project, you can debug this afterwards.")});if(t.message){v.Log.error(`- ${t.message}`)}return false}}r.installPodsAsync=installPodsAsync;function logNewSection(t){const r=w.env.CI||w.env.EXPO_DEBUG;const i=(0,y.default)({text:d.default.bold(t),isEnabled:!r,stream:r?process.stdout:process.stderr});i.start();return i}r.logNewSection=logNewSection},9436:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const h=l(i(8746));const p=i(9247);const d=i(5733);const m=i(3744);const g=i(1805);const y=i(3490);const A=i(7984)("expo:init:cli");async function run(){const t=process.argv.slice(2)??[];const r={"--yes":Boolean,"--no-install":Boolean,"--help":Boolean,"--version":Boolean,"-y":"--yes","-h":"--help","-v":"--version"};const o=(0,y.assertWithOptionsArgs)(r,{argv:t,permissive:true});if(o["--version"]){m.Log.exit(i(4147).version,0)}if(o["--help"]){const t=p.CLI_NAME.replace("create-","");(0,y.printHelp)(`Creates a new Expo project`,(0,h.default)`npx ${p.CLI_NAME} {cyan <path>} [options]`,[`-y, --yes Use the default options for creating a project`,` --no-install Skip installing npm packages or CocoaPods`,(0,h.default)`-t, --template {gray [pkg]} NPM template to use: default, blank, blank-typescript, tabs, bare-minimum. Default: default`,(0,h.default)`-e, --example {gray [name]} Example name from {underline https://github.com/expo/examples}.`,`-v, --version Version number`,`-h, --help Usage info`].join("\n"),(0,h.default)`
99
+ */t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},5418:(t,r,i)=>{const{URL:o}=i(7310);const{join:a}=i(1017);const u=i(7147);const{promisify:l}=i(3837);const{tmpdir:h}=i(2037);const p=i(2447);const d=l(u.writeFile);const m=l(u.mkdir);const g=l(u.readFile);const compareVersions=(t,r)=>t.localeCompare(r,"en-US",{numeric:true});const encode=t=>encodeURIComponent(t).replace(/^%40/,"@");const getFile=async(t,r)=>{const i=h();const o=a(i,"update-check");if(!u.existsSync(o)){await m(o)}let l=`${t.name}-${r}.json`;if(t.scope){l=`${t.scope}-${l}`}return a(o,l)};const evaluateCache=async(t,r,i)=>{if(u.existsSync(t)){const o=await g(t,"utf8");const{lastUpdate:a,latest:u}=JSON.parse(o);const l=a+i;if(l>r){return{shouldCheck:false,latest:u}}}return{shouldCheck:true,latest:null}};const updateCache=async(t,r,i)=>{const o=JSON.stringify({latest:r,lastUpdate:i});await d(t,o,"utf8")};const loadPackage=(t,r)=>new Promise(((o,a)=>{const u={host:t.hostname,path:t.pathname,port:t.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(r){u.headers.authorization=`${r.type} ${r.token}`}const{get:l}=i(t.protocol==="https:"?5687:3685);l(u,(t=>{const{statusCode:r}=t;if(r!==200){const i=new Error(`Request failed with code ${r}`);i.code=r;a(i);t.resume();return}let i="";t.setEncoding("utf8");t.on("data",(t=>{i+=t}));t.on("end",(()=>{try{const t=JSON.parse(i);o(t)}catch(t){a(t)}}))})).on("error",a).on("timeout",a)}));const getMostRecent=async({full:t,scope:r},a)=>{const u=p(r);const l=new o(t,u);let h=null;try{h=await loadPackage(l)}catch(t){if(t.code&&String(t.code).startsWith(4)){const t=i(1384);const r=t(u,{recursive:true});h=await loadPackage(l,r)}else{throw t}}const d=h["dist-tags"][a];if(!d){throw new Error(`Distribution tag ${a} is not available`)}return d};const y={interval:36e5,distTag:"latest"};const getDetails=t=>{const r={full:encode(t)};if(t.includes("/")){const i=t.split("/");r.scope=i[0];r.name=i[1]}else{r.scope=null;r.name=t}return r};t.exports=async(t,r)=>{if(typeof t!=="object"){throw new Error("The first parameter should be your package.json file content")}const i=getDetails(t.name);const o=Date.now();const{distTag:a,interval:u}=Object.assign({},y,r);const l=await getFile(i,a);let h=null;let p=true;({shouldCheck:p,latest:h}=await evaluateCache(l,o,u));if(p){h=await getMostRecent(i,a);await updateCache(l,h,o)}const d=compareVersions(t.version,h);if(d===-1){return{latest:h,fromCache:!p}}return null}},8593:(t,r,i)=>{"use strict";const{builtinModules:o}=i(8188);var a=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var u=["node_modules","favicon.ico"];function validate(t){var r=[];var i=[];if(t===null){i.push("name cannot be null");return done(r,i)}if(t===undefined){i.push("name cannot be undefined");return done(r,i)}if(typeof t!=="string"){i.push("name must be a string");return done(r,i)}if(!t.length){i.push("name length must be greater than zero")}if(t.match(/^\./)){i.push("name cannot start with a period")}if(t.match(/^_/)){i.push("name cannot start with an underscore")}if(t.trim()!==t){i.push("name cannot contain leading or trailing spaces")}u.forEach((function(r){if(t.toLowerCase()===r){i.push(r+" is a blacklisted name")}}));if(o.includes(t.toLowerCase())){r.push(t+" is a core module name")}if(t.length>214){r.push("name can no longer contain more than 214 characters")}if(t.toLowerCase()!==t){r.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(t.split("/").slice(-1)[0])){r.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(t)!==t){var l=t.match(a);if(l){var h=l[1];var p=l[2];if(encodeURIComponent(h)===h&&encodeURIComponent(p)===p){return done(r,i)}}i.push("name can only contain URL-friendly characters")}return done(r,i)}var done=function(t,r){var i={validForNewPackages:r.length===0&&t.length===0,validForOldPackages:r.length===0,warnings:t,errors:r};if(!i.warnings.length){delete i.warnings}if(!i.errors.length){delete i.errors}return i};t.exports=validate},5523:t=>{t.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]},1205:(t,r,i)=>{"use strict";var o=i(6420);var a=i(5523);var u={nul:0,control:0};t.exports=function wcwidth(t){return wcswidth(t,u)};t.exports.config=function(t){t=o(t||{},u);return function wcwidth(r){return wcswidth(r,t)}};function wcswidth(t,r){if(typeof t!=="string")return wcwidth(t,r);var i=0;for(var o=0;o<t.length;o++){var a=wcwidth(t.charCodeAt(o),r);if(a<0)return-1;i+=a}return i}function wcwidth(t,r){if(t===0)return r.nul;if(t<32||t>=127&&t<160)return r.control;if(bisearch(t))return 0;return 1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function bisearch(t){var r=0;var i=a.length-1;var o;if(t<a[0][0]||t>a[i][1])return false;while(i>=r){o=Math.floor((r+i)/2);if(t>a[o][1])r=o+1;else if(t<a[o][0])i=o-1;else return true}return false}},460:(t,r,i)=>{"use strict";t.exports=writeFile;t.exports.sync=writeFileSync;t.exports._getTmpname=getTmpname;t.exports._cleanupOnExit=cleanupOnExit;var o=i(552);var a=i(5091);var u=i(2028);var l=i(1017);var h={};var p=function getId(){try{var t=i(1267);return t.threadId}catch(t){return 0}}();var d=0;function getTmpname(t){return t+"."+a(__filename).hash(String(process.pid)).hash(String(p)).hash(String(++d)).result()}function cleanupOnExit(t){return function(){try{o.unlinkSync(typeof t==="function"?t():t)}catch(t){}}}function writeFile(t,r,i,a){if(i){if(i instanceof Function){a=i;i={}}else if(typeof i==="string"){i={encoding:i}}}else{i={}}var p=i.Promise||global.Promise;var d;var m;var g;var y=u(cleanupOnExit((()=>g)));var A=l.resolve(t);new p((function serializeSameFile(t){if(!h[A])h[A]=[];h[A].push(t);if(h[A].length===1)t()})).then((function getRealPath(){return new p((function(r){o.realpath(t,(function(i,o){d=o||t;g=getTmpname(d);r()}))}))})).then((function stat(){return new p((function stat(t){if(i.mode&&i.chown)t();else{o.stat(d,(function(r,o){if(r||!o)t();else{i=Object.assign({},i);if(i.mode==null){i.mode=o.mode}if(i.chown==null&&process.getuid){i.chown={uid:o.uid,gid:o.gid}}t()}}))}}))})).then((function thenWriteFile(){return new p((function(t,r){o.open(g,"w",i.mode,(function(i,o){m=o;if(i)r(i);else t()}))}))})).then((function write(){return new p((function(t,a){if(Buffer.isBuffer(r)){o.write(m,r,0,r.length,0,(function(r){if(r)a(r);else t()}))}else if(r!=null){o.write(m,String(r),0,String(i.encoding||"utf8"),(function(r){if(r)a(r);else t()}))}else t()}))})).then((function syncAndClose(){return new p((function(t,r){if(i.fsync!==false){o.fsync(m,(function(i){if(i)o.close(m,(()=>r(i)));else o.close(m,t)}))}else{o.close(m,t)}}))})).then((function chown(){m=null;if(i.chown){return new p((function(t,r){o.chown(g,i.chown.uid,i.chown.gid,(function(i){if(i)r(i);else t()}))}))}})).then((function chmod(){if(i.mode){return new p((function(t,r){o.chmod(g,i.mode,(function(i){if(i)r(i);else t()}))}))}})).then((function rename(){return new p((function(t,r){o.rename(g,d,(function(i){if(i)r(i);else t()}))}))})).then((function success(){y();a()}),(function fail(t){return new p((t=>m?o.close(m,t):t())).then((()=>{y();o.unlink(g,(function(){a(t)}))}))})).then((function checkQueue(){h[A].shift();if(h[A].length>0){h[A][0]()}else delete h[A]}))}function writeFileSync(t,r,i){if(typeof i==="string")i={encoding:i};else if(!i)i={};try{t=o.realpathSync(t)}catch(t){}var a=getTmpname(t);if(!i.mode||!i.chown){try{var l=o.statSync(t);i=Object.assign({},i);if(!i.mode){i.mode=l.mode}if(!i.chown&&process.getuid){i.chown={uid:l.uid,gid:l.gid}}}catch(t){}}var h;var p=cleanupOnExit(a);var d=u(p);try{h=o.openSync(a,"w",i.mode);if(Buffer.isBuffer(r)){o.writeSync(h,r,0,r.length,0)}else if(r!=null){o.writeSync(h,String(r),0,String(i.encoding||"utf8"))}if(i.fsync!==false){o.fsyncSync(h)}o.closeSync(h);if(i.chown)o.chownSync(a,i.chown.uid,i.chown.gid);if(i.mode)o.chmodSync(a,i.mode);o.renameSync(a,t);d()}catch(t){if(h){try{o.closeSync(h)}catch(t){}}d();p();throw t}}},1389:t=>{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next){yield t.value}}}},4461:(t,r,i)=>{"use strict";t.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(t){var r=this;if(!(r instanceof Yallist)){r=new Yallist}r.tail=null;r.head=null;r.length=0;if(t&&typeof t.forEach==="function"){t.forEach((function(t){r.push(t)}))}else if(arguments.length>0){for(var i=0,o=arguments.length;i<o;i++){r.push(arguments[i])}}return r}Yallist.prototype.removeNode=function(t){if(t.list!==this){throw new Error("removing node which does not belong to this list")}var r=t.next;var i=t.prev;if(r){r.prev=i}if(i){i.next=r}if(t===this.head){this.head=r}if(t===this.tail){this.tail=i}t.list.length--;t.next=null;t.prev=null;t.list=null;return r};Yallist.prototype.unshiftNode=function(t){if(t===this.head){return}if(t.list){t.list.removeNode(t)}var r=this.head;t.list=this;t.next=r;if(r){r.prev=t}this.head=t;if(!this.tail){this.tail=t}this.length++};Yallist.prototype.pushNode=function(t){if(t===this.tail){return}if(t.list){t.list.removeNode(t)}var r=this.tail;t.list=this;t.prev=r;if(r){r.next=t}this.tail=t;if(!this.head){this.head=t}this.length++};Yallist.prototype.push=function(){for(var t=0,r=arguments.length;t<r;t++){push(this,arguments[t])}return this.length};Yallist.prototype.unshift=function(){for(var t=0,r=arguments.length;t<r;t++){unshift(this,arguments[t])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var t=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return t};Yallist.prototype.shift=function(){if(!this.head){return undefined}var t=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return t};Yallist.prototype.forEach=function(t,r){r=r||this;for(var i=this.head,o=0;i!==null;o++){t.call(r,i.value,o,this);i=i.next}};Yallist.prototype.forEachReverse=function(t,r){r=r||this;for(var i=this.tail,o=this.length-1;i!==null;o--){t.call(r,i.value,o,this);i=i.prev}};Yallist.prototype.get=function(t){for(var r=0,i=this.head;i!==null&&r<t;r++){i=i.next}if(r===t&&i!==null){return i.value}};Yallist.prototype.getReverse=function(t){for(var r=0,i=this.tail;i!==null&&r<t;r++){i=i.prev}if(r===t&&i!==null){return i.value}};Yallist.prototype.map=function(t,r){r=r||this;var i=new Yallist;for(var o=this.head;o!==null;){i.push(t.call(r,o.value,this));o=o.next}return i};Yallist.prototype.mapReverse=function(t,r){r=r||this;var i=new Yallist;for(var o=this.tail;o!==null;){i.push(t.call(r,o.value,this));o=o.prev}return i};Yallist.prototype.reduce=function(t,r){var i;var o=this.head;if(arguments.length>1){i=r}else if(this.head){o=this.head.next;i=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=0;o!==null;a++){i=t(i,o.value,a);o=o.next}return i};Yallist.prototype.reduceReverse=function(t,r){var i;var o=this.tail;if(arguments.length>1){i=r}else if(this.tail){o=this.tail.prev;i=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=this.length-1;o!==null;a--){i=t(i,o.value,a);o=o.prev}return i};Yallist.prototype.toArray=function(){var t=new Array(this.length);for(var r=0,i=this.head;i!==null;r++){t[r]=i.value;i=i.next}return t};Yallist.prototype.toArrayReverse=function(){var t=new Array(this.length);for(var r=0,i=this.tail;i!==null;r++){t[r]=i.value;i=i.prev}return t};Yallist.prototype.slice=function(t,r){r=r||this.length;if(r<0){r+=this.length}t=t||0;if(t<0){t+=this.length}var i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}for(var o=0,a=this.head;a!==null&&o<t;o++){a=a.next}for(;a!==null&&o<r;o++,a=a.next){i.push(a.value)}return i};Yallist.prototype.sliceReverse=function(t,r){r=r||this.length;if(r<0){r+=this.length}t=t||0;if(t<0){t+=this.length}var i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}for(var o=this.length,a=this.tail;a!==null&&o>r;o--){a=a.prev}for(;a!==null&&o>t;o--,a=a.prev){i.push(a.value)}return i};Yallist.prototype.splice=function(t,r,...i){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}for(var o=0,a=this.head;a!==null&&o<t;o++){a=a.next}var u=[];for(var o=0;a&&o<r;o++){u.push(a.value);a=this.removeNode(a)}if(a===null){a=this.tail}if(a!==this.head&&a!==this.tail){a=a.prev}for(var o=0;o<i.length;o++){a=insert(this,a,i[o])}return u};Yallist.prototype.reverse=function(){var t=this.head;var r=this.tail;for(var i=t;i!==null;i=i.prev){var o=i.prev;i.prev=i.next;i.next=o}this.head=r;this.tail=t;return this};function insert(t,r,i){var o=r===t.head?new Node(i,null,r,t):new Node(i,r,r.next,t);if(o.next===null){t.tail=o}if(o.prev===null){t.head=o}t.length++;return o}function push(t,r){t.tail=new Node(r,t.tail,null,t);if(!t.head){t.head=t.tail}t.length++}function unshift(t,r){t.head=new Node(r,null,t.head,t);if(!t.tail){t.tail=t.head}t.length++}function Node(t,r,i,o){if(!(this instanceof Node)){return new Node(t,r,i,o)}this.list=o;this.value=t;if(r){r.next=this;this.prev=r}else{this.prev=null}if(i){i.prev=this;this.next=i}else{this.next=null}}try{i(1389)(Yallist)}catch(t){}},6282:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const h=i(6779);const p=l(i(5130));const d=l(i(7561));const m=l(i(9411));const g=i(7261);const y=l(i(460));const A=u(i(1486));const b=(0,g.promisify)(y.default);const v={badJsonDefault:undefined,jsonParseErrorDefault:undefined,cantReadFileDefault:undefined,ensureDir:false,default:undefined,json5:false,space:2,addNewLineAtEOF:true};class JsonFile{file;options;static read=read;static readAsync=readAsync;static parseJsonString=parseJsonString;static write=write;static writeAsync=writeAsync;static get=getSync;static getAsync=getAsync;static set=setSync;static setAsync=setAsync;static merge=merge;static mergeAsync=mergeAsync;static deleteKey=deleteKey;static deleteKeyAsync=deleteKeyAsync;static deleteKeys=deleteKeys;static deleteKeysAsync=deleteKeysAsync;static rewrite=rewrite;static rewriteAsync=rewriteAsync;constructor(t,r={}){this.file=t;this.options=r}read(t){return read(this.file,this._getOptions(t))}async readAsync(t){return readAsync(this.file,this._getOptions(t))}write(t,r){return write(this.file,t,this._getOptions(r))}async writeAsync(t,r){return writeAsync(this.file,t,this._getOptions(r))}parseJsonString(t,r){return parseJsonString(t,r)}get(t,r,i){return getSync(this.file,t,r,this._getOptions(i))}async getAsync(t,r,i){return getAsync(this.file,t,r,this._getOptions(i))}set(t,r,i){return setSync(this.file,t,r,this._getOptions(i))}async setAsync(t,r,i){return setAsync(this.file,t,r,this._getOptions(i))}async merge(t,r){return merge(this.file,t,this._getOptions(r))}async mergeAsync(t,r){return mergeAsync(this.file,t,this._getOptions(r))}deleteKey(t,r){return deleteKey(this.file,t,this._getOptions(r))}async deleteKeyAsync(t,r){return deleteKeyAsync(this.file,t,this._getOptions(r))}deleteKeys(t,r){return deleteKeys(this.file,t,this._getOptions(r))}async deleteKeysAsync(t,r){return deleteKeysAsync(this.file,t,this._getOptions(r))}rewrite(t){return rewrite(this.file,this._getOptions(t))}async rewriteAsync(t){return rewriteAsync(this.file,this._getOptions(t))}_getOptions(t){return{...this.options,...t}}}r["default"]=JsonFile;function read(t,r){let i;try{i=d.default.readFileSync(t,"utf8")}catch(o){assertEmptyJsonString(i,t);const a=cantReadFileDefault(r);if(a===undefined){throw new A.default(`Can't read JSON file: ${t}`,o,o.code,t)}else{return a}}return parseJsonString(i,r,t)}async function readAsync(t,r){let i;try{i=await d.default.promises.readFile(t,"utf8")}catch(o){assertEmptyJsonString(i,t);const a=cantReadFileDefault(r);if(a===undefined){throw new A.default(`Can't read JSON file: ${t}`,o,o.code)}else{return a}}return parseJsonString(i,r)}function parseJsonString(t,r,i){assertEmptyJsonString(t,i);try{if(_getOption(r,"json5")){return p.default.parse(t)}else{return JSON.parse(t)}}catch(o){const a=jsonParseErrorDefault(r);if(a===undefined){const r=locationFromSyntaxError(o,t);if(r){const i=(0,h.codeFrameColumns)(t,{start:r});o.codeFrame=i;o.message+=`\n${i}`}throw new A.default(`Error parsing JSON: ${t}`,o,"EJSONPARSE",i)}else{return a}}}function getSync(t,r,i,o){const a=read(t,o);if(r in a){return a[r]}if(i===undefined){throw new A.default(`No value at key path "${String(r)}" in JSON object from: ${t}`)}return i}async function getAsync(t,r,i,o){const a=await readAsync(t,o);if(r in a){return a[r]}if(i===undefined){throw new A.default(`No value at key path "${String(r)}" in JSON object from: ${t}`)}return i}function write(t,r,i){if(i?.ensureDir){d.default.mkdirSync(m.default.dirname(t),{recursive:true})}const o=_getOption(i,"space");const a=_getOption(i,"json5");const u=_getOption(i,"addNewLineAtEOF");let l;try{if(a){l=p.default.stringify(r,null,o)}else{l=JSON.stringify(r,null,o)}}catch(r){throw new A.default(`Couldn't JSON.stringify object for file: ${t}`,r)}const h=u?`${l}\n`:l;y.default.sync(t,h,{});return r}async function writeAsync(t,r,i){if(i?.ensureDir){await d.default.promises.mkdir(m.default.dirname(t),{recursive:true})}const o=_getOption(i,"space");const a=_getOption(i,"json5");const u=_getOption(i,"addNewLineAtEOF");let l;try{if(a){l=p.default.stringify(r,null,o)}else{l=JSON.stringify(r,null,o)}}catch(r){throw new A.default(`Couldn't JSON.stringify object for file: ${t}`,r)}const h=u?`${l}\n`:l;await b(t,h,{});return r}function setSync(t,r,i,o){const a=read(t,o);return write(t,{...a,[r]:i},o)}async function setAsync(t,r,i,o){const a=await readAsync(t,o);return writeAsync(t,{...a,[r]:i},o)}async function mergeAsync(t,r,i){const o=await readAsync(t,i);if(Array.isArray(r)){Object.assign(o,...r)}else{Object.assign(o,r)}return writeAsync(t,o,i)}function merge(t,r,i){const o=read(t,i);if(Array.isArray(r)){Object.assign(o,...r)}else{Object.assign(o,r)}return write(t,o,i)}async function deleteKeyAsync(t,r,i){return deleteKeysAsync(t,[r],i)}function deleteKey(t,r,i){return deleteKeys(t,[r],i)}async function deleteKeysAsync(t,r,i){const o=await readAsync(t,i);let a=false;for(let t=0;t<r.length;t++){const i=r[t];if(o.hasOwnProperty(i)){delete o[i];a=true}}if(a){return writeAsync(t,o,i)}return o}function deleteKeys(t,r,i){const o=read(t,i);let a=false;for(let t=0;t<r.length;t++){const i=r[t];if(o.hasOwnProperty(i)){delete o[i];a=true}}if(a){return write(t,o,i)}return o}async function rewriteAsync(t,r){const i=await readAsync(t,r);return writeAsync(t,i,r)}function rewrite(t,r){return write(t,read(t,r),r)}function jsonParseErrorDefault(t={}){if(t.jsonParseErrorDefault===undefined){return t.default}else{return t.jsonParseErrorDefault}}function cantReadFileDefault(t={}){if(t.cantReadFileDefault===undefined){return t.default}else{return t.cantReadFileDefault}}function _getOption(t,r){if(t){if(t[r]!==undefined){return t[r]}}return v[r]}function locationFromSyntaxError(t,r){if("lineNumber"in t&&"columnNumber"in t){return{line:t.lineNumber,column:t.columnNumber}}const i=/at position (\d+)/.exec(t.message);if(i){const t=parseInt(i[1],10);const o=r.slice(0,t+1).split("\n");return{line:o.length,column:o[o.length-1].length}}return null}function assertEmptyJsonString(t,r){if(t?.trim()===""){throw new A.EmptyJsonFileError(r)}}},1486:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.EmptyJsonFileError=void 0;class JsonFileError extends Error{cause;code;fileName;isJsonFileError;constructor(t,r,i,o){let a=t;if(o){a+=`\n${r?"├":"└"}─ File: ${o}`}if(r){a+=`\n└─ Cause: ${r.name}: ${r.message}`}super(a);this.name=this.constructor.name;this.cause=r;this.code=i;this.fileName=o;this.isJsonFileError=true}}r["default"]=JsonFileError;class EmptyJsonFileError extends JsonFileError{constructor(t){super(`Cannot parse an empty JSON string`,undefined,"EJSONEMPTY",t)}}r.EmptyJsonFileError=EmptyJsonFileError},6779:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.codeFrameColumns=codeFrameColumns;r["default"]=_default;var o=_interopRequireWildcard(i(932));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var t=new WeakMap;_getRequireWildcardCache=function(){return t};return t}function _interopRequireWildcard(t){if(t&&t.__esModule){return t}if(t===null||typeof t!=="object"&&typeof t!=="function"){return{default:t}}var r=_getRequireWildcardCache();if(r&&r.has(t)){return r.get(t)}var i={};var o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t){if(Object.prototype.hasOwnProperty.call(t,a)){var u=o?Object.getOwnPropertyDescriptor(t,a):null;if(u&&(u.get||u.set)){Object.defineProperty(i,a,u)}else{i[a]=t[a]}}}i.default=t;if(r){r.set(t,i)}return i}let a=false;function getDefs(t){return{gutter:t.grey,marker:t.red.bold,message:t.red.bold}}const u=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(t,r,i){const o=Object.assign({column:0,line:-1},t.start);const a=Object.assign({},o,t.end);const{linesAbove:u=2,linesBelow:l=3}=i||{};const h=o.line;const p=o.column;const d=a.line;const m=a.column;let g=Math.max(h-(u+1),0);let y=Math.min(r.length,d+l);if(h===-1){g=0}if(d===-1){y=r.length}const A=d-h;const b={};if(A){for(let t=0;t<=A;t++){const i=t+h;if(!p){b[i]=true}else if(t===0){const t=r[i-1].length;b[i]=[p,t-p+1]}else if(t===A){b[i]=[0,m]}else{const o=r[i-t].length;b[i]=[0,o]}}}else{if(p===m){if(p){b[h]=[p,0]}else{b[h]=true}}else{b[h]=[p,m-p]}}return{start:g,end:y,markerLines:b}}function codeFrameColumns(t,r,i={}){const a=(i.highlightCode||i.forceColor)&&(0,o.shouldHighlight)(i);const l=(0,o.getChalk)(i);const h=getDefs(l);const maybeHighlight=(t,r)=>a?t(r):r;const p=t.split(u);const{start:d,end:m,markerLines:g}=getMarkerLines(r,p,i);const y=r.start&&typeof r.start.column==="number";const A=String(m).length;const b=a?(0,o.default)(t,i):t;let v=b.split(u).slice(d,m).map(((t,r)=>{const o=d+1+r;const a=` ${o}`.slice(-A);const u=` ${a} | `;const l=g[o];const p=!g[o+1];if(l){let r="";if(Array.isArray(l)){const o=t.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," ");const a=l[1]||1;r=["\n ",maybeHighlight(h.gutter,u.replace(/\d/g," ")),o,maybeHighlight(h.marker,"^").repeat(a)].join("");if(p&&i.message){r+=" "+maybeHighlight(h.message,i.message)}}return[maybeHighlight(h.marker,">"),maybeHighlight(h.gutter,u),t,r].join("")}else{return` ${maybeHighlight(h.gutter,u)}${t}`}})).join("\n");if(i.message&&!y){v=`${" ".repeat(A+1)}${i.message}\n${v}`}if(a){return l.reset(v)}else{return v}}function _default(t,r,i,o={}){if(!a){a=true;const t="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(t,"DeprecationWarning")}else{const r=new Error(t);r.name="DeprecationWarning";console.warn(new Error(t))}}i=Math.max(i,0);const u={start:{column:i,line:r}};return codeFrameColumns(t,u,o)}},5997:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true})},7496:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__exportStar||function(t,r){for(var i in t)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i))o(r,t,i)};Object.defineProperty(r,"__esModule",{value:true});r.isYarnOfflineAsync=void 0;a(i(5997),r);a(i(1574),r);a(i(1178),r);a(i(6125),r);a(i(57),r);a(i(6805),r);a(i(3746),r);var u=i(822);Object.defineProperty(r,"isYarnOfflineAsync",{enumerable:true,get:function(){return u.isYarnOfflineAsync}})},1574:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getImprovedPodInstallError=r.getPodRepoUpdateMessage=r.getPodUpdateMessage=r.CocoaPodsPackageManager=r.extractMissingDependencyError=r.CocoaPodsError=void 0;const a=o(i(5642));const u=o(i(8746));const l=i(7147);const h=o(i(2037));const p=o(i(1017));const d=i(6418);class CocoaPodsError extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=true;constructor(t,r,i){super(i?`${t}\n└─ Cause: ${i.message}`:t);this.code=r;this.cause=i}}r.CocoaPodsError=CocoaPodsError;function extractMissingDependencyError(t){const r=t.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(r){return[r[1],r[2]]}return null}r.extractMissingDependencyError=extractMissingDependencyError;class CocoaPodsPackageManager{options;silent;static getPodProjectRoot(t){if(CocoaPodsPackageManager.isUsingPods(t))return t;const r=p.default.join(t,"ios");if(CocoaPodsPackageManager.isUsingPods(r))return r;const i=p.default.join(t,"macos");if(CocoaPodsPackageManager.isUsingPods(i))return i;return null}static isUsingPods(t){return(0,l.existsSync)(p.default.join(t,"Podfile"))}static async gemInstallCLIAsync(t=false,r={stdio:"inherit"}){const i=["install","cocoapods","--no-document"];try{await(0,a.default)("gem",i,r)}catch(o){if(t){throw new CocoaPodsError("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",o)}await(0,d.spawnSudoAsync)(["gem",...i],r)}}static async brewLinkCLIAsync(t={stdio:"inherit"}){await(0,a.default)("brew",["link","cocoapods"],t)}static async brewInstallCLIAsync(t={stdio:"inherit"}){await(0,a.default)("brew",["install","cocoapods"],t)}static async installCLIAsync({nonInteractive:t=false,spawnOptions:r={stdio:"inherit"}}){if(!r){r={stdio:"inherit"}}const i=!!r.ignoreStdio;try{!i&&console.log(`› Attempting to install CocoaPods CLI with Gem`);await CocoaPodsPackageManager.gemInstallCLIAsync(t,r);!i&&console.log(`› Successfully installed CocoaPods CLI with Gem`);return true}catch(t){if(!i){console.log(u.default.yellow(`› Failed to install CocoaPods CLI with Gem`));console.log(u.default.red(t.stderr??t.message));console.log(`› Attempting to install CocoaPods CLI with Homebrew`)}try{await CocoaPodsPackageManager.brewInstallCLIAsync(r);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(r)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(r);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(r)){throw new CocoaPodsError("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",t)}}catch(t){throw new CocoaPodsError("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",t)}}!i&&console.log(`› Successfully installed CocoaPods CLI with Homebrew`);return true}catch(t){!i&&console.warn(u.default.yellow(`› Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`));throw new CocoaPodsError(`Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`,"NO_CLI",t)}}}static isAvailable(t,r){if(process.platform!=="darwin"){!r&&console.log(u.default.red("CocoaPods is only supported on macOS machines"));return false}if(!CocoaPodsPackageManager.isUsingPods(t)){!r&&console.log(u.default.yellow("CocoaPods is not supported in this project"));return false}return true}static async isCLIInstalledAsync(t={stdio:"inherit"}){try{await(0,a.default)("pod",["--version"],t);return true}catch{return false}}constructor({cwd:t,silent:r}){this.silent=!!r;this.options={cwd:t,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:t}={}){await this._installAsync({spinner:t})}isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options)}installCLIAsync(){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:true,spawnOptions:this.options})}async handleInstallErrorAsync({error:t,shouldUpdate:r=true,updatedPackages:i=[],spinner:o}){if(!t.output){throw t}if(!r){throw getImprovedPodInstallError(t,{cwd:this.options.cwd})}const a=t.output.join(h.default.EOL).trim();const{updatePackage:l,shouldUpdateRepo:p}=getPodUpdateMessage(a);if(!l||i.includes(l)){return await this._installAsync({spinner:o,shouldRepoUpdate:true,shouldUpdate:false,updatedPackages:i})}i.push(l);return await this.runInstallTypeCommandAsync(["update",l,p?"":"--no-repo-update"].filter(Boolean),{formatWarning(){const t=`Failed to update ${u.default.bold(l)}. Attempting to update the repo instead.`;return t},spinner:o,updatedPackages:i})}async _installAsync({shouldRepoUpdate:t,...r}={}){return await this.runInstallTypeCommandAsync(["install",t?"--repo-update":""].filter(Boolean),{formatWarning(t){return getPodRepoUpdateMessage(t.output.join(h.default.EOL).trim()).message},...r})}async runInstallTypeCommandAsync(t,{formatWarning:r,...i}={}){try{return await this._runAsync(t)}catch(t){if(r){const o=r(t);if(i.spinner){i.spinner.text=u.default.bold(o)}if(!this.silent){console.warn(u.default.yellow(o))}}return await this.handleInstallErrorAsync({error:t,...i})}}async addWithParametersAsync(t,r){throw new Error("Unimplemented")}addAsync(t=[]){throw new Error("Unimplemented")}addDevAsync(t=[]){throw new Error("Unimplemented")}addGlobalAsync(t=[]){throw new Error("Unimplemented")}removeAsync(t=[]){throw new Error("Unimplemented")}removeDevAsync(t=[]){throw new Error("Unimplemented")}removeGlobalAsync(t=[]){throw new Error("Unimplemented")}async versionAsync(){const{stdout:t}=await(0,a.default)("pod",["--version"],this.options);return t.trim()}async configAsync(t){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async uninstallAsync(){throw new Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync(["repo","update"])}catch(t){t.message=t.message||(t.stderr??t.stdout);throw new CocoaPodsError("The command `pod install --repo-update` failed","COMMAND_FAILED",t)}}async _runAsync(t){if(!this.silent){console.log(`> pod ${t.join(" ")}`)}const r=(0,a.default)("pod",[...t,"--ansi"],{...this.options,stdio:"pipe"});if(!this.silent){if(r.child.stdout){r.child.stdout.pipe(process.stdout)}}return await r}}r.CocoaPodsPackageManager=CocoaPodsPackageManager;function shouldPodRepoUpdate(t){const r=t;const i=r.includes("pod repo update")||r.includes("--no-repo-update");return i}function getPodUpdateMessage(t){const r=t.match(/run ['"`]pod update ([\w-_\d/]+)( --no-repo-update)?['"`] to apply changes/);return{updatePackage:r?.[1]??null,shouldUpdateRepo:!r?.[2]}}r.getPodUpdateMessage=getPodUpdateMessage;function getPodRepoUpdateMessage(t){const r=extractMissingDependencyError(t);const i=getPodUpdateMessage(t);let o;if(r){o=`Couldn't install: ${r[1]} » ${u.default.underline(r[0])}.`}else if(i?.updatePackage){o=`Couldn't install: ${i?.updatePackage}.`}else{o=`Couldn't install Pods.`}o+=` Updating the Pods project and trying again...`;return{message:o,...i}}r.getPodRepoUpdateMessage=getPodRepoUpdateMessage;function getImprovedPodInstallError(t,{cwd:r=process.cwd()}){const i=t.output.join(h.default.EOL).trim();if(t.stdout.match(/No [`'"]Podfile[`'"] found in the project directory/)){t.message=`No Podfile found in directory: ${r}. Ensure CocoaPods is setup any try again.`}else if(shouldPodRepoUpdate(i)){const r=extractMissingDependencyError(i);let o;if(r){o=`Couldn't install: ${r[1]} » ${u.default.underline(r[0])}`}else{o=`This is often due to native package versions mismatching`}let a;if(r?.[0]){if(r[0].match(/^(?:@?expo|@?react)(-|\/)/)){a=`Ensure the node module "${r[0]}" is installed in your project, then run 'npx pod-install' to try again.`}else{a=`Ensure the CocoaPod "${r[0]}" is installed in your project, then run 'npx pod-install' to try again.`}}else{a=`Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.`}t.message=`${o}. ${a}`;if(t.stdout){const r=t.stdout.split(h.default.EOL);const i=r.findIndex((t=>t.startsWith("[!]")));if(i!==-1){const o=r.slice(i).join(h.default.EOL);t.message+=`\n\n${u.default.gray(o)}`}}return new CocoaPodsError("Command `pod install --repo-update` failed.","COMMAND_FAILED",t)}else{let r=t.stderr.trim();const i=t.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(i){if(t.message?.match(/pod exited with non-zero code: 1/)){t.message=""}r=null}t.message=[i,t.message,r].filter(Boolean).join("\n")}return new CocoaPodsError("Command `pod install` failed.","COMMAND_FAILED",t)}r.getImprovedPodInstallError=getImprovedPodInstallError},1729:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.BasePackageManager=void 0;const a=o(i(5642));const u=o(i(9491));const l=o(i(7147));const h=o(i(1017));class BasePackageManager{silent;log;options;constructor({silent:t,log:r,env:i=process.env,...o}={}){this.silent=!!t;this.log=r??(!t?console.log:undefined);this.options={stdio:t?undefined:"inherit",...o,env:{...this.getDefaultEnvironment(),...i}}}getDefaultEnvironment(){return{ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}}ensureCwdDefined(t){const r=this.options.cwd?.toString();const i=this.constructor.name;const o=t?`.${t}`:"";(0,u.default)(r,`cwd is required for ${i}${o}`);return r}runAsync(t,r={}){this.log?.(`> ${this.name} ${t.join(" ")}`);return(0,a.default)(this.bin,t,{...this.options,...r})}runBinAsync(t,r={}){this.log?.(`> ${this.name} ${t.join(" ")}`);return(0,a.default)(this.bin,t,{...this.options,...r})}async versionAsync(){const{stdout:t}=await this.runAsync(["--version"],{stdio:undefined});return t.trim()}async getConfigAsync(t){const{stdout:r}=await this.runAsync(["config","get",t]);return r.trim()}async removeLockfileAsync(){const t=this.ensureCwdDefined("removeLockFile");const r=h.default.join(t,this.lockFile);await l.default.promises.rm(r,{force:true})}installAsync(t=[]){return this.runAsync(["install",...t])}async uninstallAsync(){const t=this.ensureCwdDefined("uninstallAsync");const r=h.default.join(t,"node_modules");await l.default.promises.rm(r,{force:true,recursive:true})}}r.BasePackageManager=BasePackageManager},6805:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.BunPackageManager=void 0;const o=i(1729);const a=i(3746);class BunPackageManager extends o.BasePackageManager{name="bun";bin="bun";lockFile=a.BUN_LOCK_FILE;workspaceRoot(){const t=(0,a.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new BunPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){return this.runAsync(["install",...t])}addAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add",...t])}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--dev",...t])}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--global",...t])}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove",...t])}removeGlobalAsync(t){return this.runAsync(["remove","--global",...t])}}r.BunPackageManager=BunPackageManager},1178:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.NpmPackageManager=void 0;const a=o(i(6282));const u=o(i(5642));const l=o(i(5440));const h=o(i(1017));const p=i(1729);const d=i(3746);const m=i(6418);class NpmPackageManager extends p.BasePackageManager{name="npm";bin="npm";lockFile=d.NPM_LOCK_FILE;workspaceRoot(){const t=(0,d.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new NpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}addAsync(t=[]){if(!t.length){return this.installAsync()}const{flags:r,versioned:i,unversioned:o}=this.parsePackageSpecs(t);return(0,m.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(i,"dependencies")),(()=>!o.length?this.runAsync(["install",...r]):this.runAsync(["install","--save",...r,...o.map((t=>t.raw))])))}addDevAsync(t=[]){if(!t.length){return this.installAsync()}const{flags:r,versioned:i,unversioned:o}=this.parsePackageSpecs(t);return(0,m.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(i,"devDependencies")),(()=>!o.length?this.runAsync(["install",...r]):this.runAsync(["install","--save-dev",...r,...o.map((t=>t.raw))])))}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["install","--global",...t])}removeAsync(t){return this.runAsync(["uninstall",...t])}removeDevAsync(t){return this.runAsync(["uninstall","--save-dev",...t])}removeGlobalAsync(t){return this.runAsync(["uninstall","--global",...t])}runBinAsync(t,r={}){this.log?.(`> npx ${t.join(" ")}`);return(0,u.default)("npx",t,{...this.options,...r})}parsePackageSpecs(t){const r={flags:[],versioned:[],unversioned:[]};t.map((t=>{if(t.trim().startsWith("-")){r.flags.push(t);return null}return(0,l.default)(t)})).forEach((t=>{const i=!!t&&t.rawSpec!==""&&t.rawSpec!=="*";if(t&&i&&t.type!=="tag"){r.versioned.push(t)}else if(t){r.unversioned.push(t)}}));return r}async updatePackageFileAsync(t,r){if(!t.length){return}const i=h.default.join(this.options.cwd?.toString()||".","package.json");const o=await a.default.readAsync(i);t.forEach((t=>{o[r]=o[r]||{};o[r][t.name]=t.rawSpec}));await a.default.writeAsync(i,o,{json5:false})}}r.NpmPackageManager=NpmPackageManager},6125:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.PnpmPackageManager=void 0;const a=i(1729);const u=o(i(1966));const l=i(3746);class PnpmPackageManager extends a.BasePackageManager{name="pnpm";bin="pnpm";lockFile=l.PNPM_LOCK_FILE;workspaceRoot(){const t=(0,l.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new PnpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){if(u.default.CI&&!t.join(" ").includes("frozen-lockfile")){t.unshift("--no-frozen-lockfile")}return this.runAsync(["install",...t])}addAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add",...t])}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--save-dev",...t])}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--global",...t])}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove","--save-dev",...t])}removeGlobalAsync(t){return this.runAsync(["remove","--global",...t])}}r.PnpmPackageManager=PnpmPackageManager},57:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.YarnPackageManager=void 0;const o=i(1729);const a=i(3746);const u=i(6418);const l=i(822);class YarnPackageManager extends o.BasePackageManager{name="yarn";bin="yarnpkg";lockFile=a.YARN_LOCK_FILE;async withOfflineFlagAsync(t){return await(0,l.isYarnOfflineAsync)()?[...t,"--offline"]:t}workspaceRoot(){const t=(0,a.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new YarnPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["install"])),(r=>this.runAsync([...r,...t])))}addAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add",...t])),(t=>this.runAsync(t)))}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add","--dev",...t])),(t=>this.runAsync(t)))}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["global","add",...t])),(t=>this.runAsync(t)))}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove",...t])}removeGlobalAsync(t){return this.runAsync(["global","remove",...t])}}r.YarnPackageManager=YarnPackageManager},1966:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class Env{get CI(){const{CI:t}=process.env;return t?.toLowerCase()==="true"||t==="1"}}r["default"]=new Env},3746:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.createForProject=r.resolvePackageManager=r.RESOLUTION_ORDER=r.BUN_LOCK_FILE=r.PNPM_LOCK_FILE=r.YARN_LOCK_FILE=r.NPM_LOCK_FILE=r.resolveWorkspaceRoot=void 0;const a=o(i(7147));const u=o(i(1017));const l=i(7301);const h=i(6805);const p=i(1178);const d=i(6125);const m=i(57);var g=i(7301);Object.defineProperty(r,"resolveWorkspaceRoot",{enumerable:true,get:function(){return g.resolveWorkspaceRoot}});r.NPM_LOCK_FILE="package-lock.json";r.YARN_LOCK_FILE="yarn.lock";r.PNPM_LOCK_FILE="pnpm-lock.yaml";r.BUN_LOCK_FILE="bun.lockb";r.RESOLUTION_ORDER=["bun","yarn","npm","pnpm"];function resolvePackageManager(t,i){const o=(0,l.resolveWorkspaceRoot)(t)??t;const h={npm:r.NPM_LOCK_FILE,pnpm:r.PNPM_LOCK_FILE,yarn:r.YARN_LOCK_FILE,bun:r.BUN_LOCK_FILE};if(i){if(a.default.existsSync(u.default.join(o,h[i]))){return i}return null}for(const t of r.RESOLUTION_ORDER){if(a.default.existsSync(u.default.join(o,h[t]))){return t}}return null}r.resolvePackageManager=resolvePackageManager;function createForProject(t,r={}){if(r.npm){return new p.NpmPackageManager({cwd:t,...r})}else if(r.yarn){return new m.YarnPackageManager({cwd:t,...r})}else if(r.pnpm){return new d.PnpmPackageManager({cwd:t,...r})}else if(r.bun){return new h.BunPackageManager({cwd:t,...r})}switch(resolvePackageManager(t)){case"npm":return new p.NpmPackageManager({cwd:t,...r});case"pnpm":return new d.PnpmPackageManager({cwd:t,...r});case"yarn":return new m.YarnPackageManager({cwd:t,...r});case"bun":return new h.BunPackageManager({cwd:t,...r});default:return new p.NpmPackageManager({cwd:t,...r})}}r.createForProject=createForProject},6418:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.spawnSudoAsync=r.createPendingSpawnAsync=void 0;const a=o(i(5642));const u=o(i(5667));function createPendingSpawnAsync(t,r){let i;const o=new Promise(((t,r)=>{i=t}));const a=new Promise(((o,a)=>{t().then((t=>{const u=r(t);i(u.child);u.then(o).catch(a)})).catch((t=>{i(null);a(t)}))}));a.child=o;return a}r.createPendingSpawnAsync=createPendingSpawnAsync;async function spawnSudoAsync(t,r){if(process.platform==="win32"){return new Promise(((r,i)=>{u.default.exec(t.join(" "),{name:"pod install"},(t=>{if(t){i(t)}r()}))}))}else{console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation");await(0,a.default)("sudo",t,r)}}r.spawnSudoAsync=spawnSudoAsync},822:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getNpmProxy=r.isYarnOfflineAsync=void 0;const a=i(2081);const u=o(i(9523));const l=o(i(7310));async function isYarnOfflineAsync(){if(await isUrlAvailableAsync("registry.yarnpkg.com")){return false}const t=getNpmProxy();if(!t){return true}const{hostname:r}=l.default.parse(t);if(!r){return true}return!await isUrlAvailableAsync(r)}r.isYarnOfflineAsync=isYarnOfflineAsync;function getNpmProxy(){if(process.env.https_proxy){return process.env.https_proxy??null}try{const t=(0,a.execSync)("npm config get https-proxy").toString().trim();return t!=="null"?t:null}catch{return null}}r.getNpmProxy=getNpmProxy;function isUrlAvailableAsync(t){return new Promise((r=>{u.default.lookup(t,(t=>{r(!t)}))}))}},6055:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.sanitizeScriptsAsync=r.downloadAndExtractExampleAsync=r.promptExamplesAsync=r.ensureExampleExists=void 0;const a=o(i(6282));const u=o(i(8746));const l=o(i(7147));const h=o(i(1017));const p=o(i(1112));const d=i(2781);const m=o(i(8089));const g=i(3837);const y=i(1947);const A=i(6581);const b=i(7943);const v=i(9544);const w=i(7984)("expo:init:template");const E=(0,g.promisify)(d.Stream.pipeline);async function listExamplesAsync(){const t=await(0,v.fetch)("https://api.github.com/repos/expo/examples/contents");if(!t.ok){throw new Error("Unexpected GitHub API response: https://github.com/expo/examples")}const r=await t.json();return r.filter((t=>t.type==="dir"&&!t.name.startsWith(".")))}async function hasExampleAsync(t){const r=await(0,v.fetch)(`https://api.github.com/repos/expo/examples/contents/${encodeURIComponent(t)}/package.json`);if(r.status===404||r.ok){return r.ok}throw new Error(`Unexpected GitHub API response: ${r.status} - ${r.statusText}`)}async function ensureExampleExists(t){if(!await hasExampleAsync(t)){throw new Error(`Example "${t}" does not exist, see https://github.com/expo/examples`)}}r.ensureExampleExists=ensureExampleExists;async function promptExamplesAsync(){if(b.env.CI){throw new Error("Cannot prompt for examples in CI")}const t=await listExamplesAsync();const{answer:r}=await(0,p.default)({type:"select",name:"answer",message:"Choose an example:",choices:t.map((t=>({title:t.name,value:t.path})))});if(!r){console.log();console.log((0,u.default)`Please specify the example, example: {cyan --example with-router}`);console.log();process.exit(1)}return r}r.promptExamplesAsync=promptExamplesAsync;async function downloadAndExtractExampleAsync(t,r){const i=h.default.basename(t);const o=await(0,v.fetch)("https://codeload.github.com/expo/examples/tar.gz/master");if(!o.ok){w(`Failed to fetch the examples code, received status "${o.status}"`);throw new Error("Failed to fetch the examples code from https://github.com/expo/examples")}if(!o.body){w(`Failed to fetch the examples code, Github responded without content, received status "${o.status}"`);throw new Error("Failed to fetch the examples code from https://github.com/expo/examples")}await E(d.Readable.fromWeb(o.body),m.default.extract({cwd:t,onentry:(0,A.createEntryResolver)(i),strip:2},[`examples-master/${r}`]));const a=await(0,y.getTemplateFilesToRenameAsync)({cwd:t});await(0,y.renameTemplateAppNameAsync)({cwd:t,files:a,name:i});await(0,y.sanitizeTemplateAsync)(t);await sanitizeScriptsAsync(t)}r.downloadAndExtractExampleAsync=downloadAndExtractExampleAsync;function exampleHasNativeCode(t){return[h.default.join(t,"android"),h.default.join(t,"ios")].some((t=>l.default.existsSync(t)))}async function sanitizeScriptsAsync(t){const r=exampleHasNativeCode(t)?{start:"expo start --dev-client",android:"expo run:android",ios:"expo run:ios",web:"expo start --web"}:{start:"expo start",android:"expo start --android",ios:"expo start --ios",web:"expo start --web"};const i=new a.default(h.default.join(t,"package.json"));const o=await i.readAsync();const u=o.scripts??{};o.scripts={...r,...u};await i.writeAsync(o)}r.sanitizeScriptsAsync=sanitizeScriptsAsync},1947:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.logNewSection=r.installPodsAsync=r.logProjectReady=r.validateName=r.sanitizeTemplateAsync=r.renameTemplateAppNameAsync=r.getTemplateFilesToRenameAsync=r.defaultRenameConfig=r.extractAndPrepareTemplateAppAsync=r.resolvePackageModuleId=r.isFolderNameForbidden=void 0;const h=l(i(6282));const p=u(i(7496));const d=l(i(8746));const m=i(3909);const g=l(i(7147));const y=l(i(2651));const A=l(i(1017));const b=i(6581);const v=i(3744);const w=i(1805);const E=i(7943);const _=i(292);const S=i(7240);const C=i(7984)("expo:init:template");const D=process.platform==="darwin";const x=["react-native","react","react-dom","react-native-web","expo","expo-router"];function isFolderNameForbidden(t){return x.includes(t)}r.isFolderNameForbidden=isFolderNameForbidden;function deepMerge(t,r){if(typeof t!=="object"){return r}if(Array.isArray(t)&&Array.isArray(r)){return t.concat(r)}Object.keys(r).forEach((i=>{if(typeof r[i]==="object"&&r[i]!==null){t[i]=deepMerge(t[i],r[i])}else{t[i]=r[i]}}));return t}function coerceUrl(t){try{return new URL(t)}catch(r){if(!/^(https?:\/\/)/.test(t)){return new URL(`https://${t}`)}throw r}}function resolvePackageModuleId(t){if(/^(https?:\/\/)?github\.com\//.test(t)){try{const r=coerceUrl(t);C("Resolved moduleId to repository path:",t);return{type:"repository",uri:r}}catch{throw new Error(`Invalid URL: "${t}" provided`)}}if(t?.startsWith("file:")||t?.startsWith(".")||t?.startsWith(A.default.sep)){if(t?.startsWith("file:")){t=t.substring(5)}C(`Resolved moduleId to file path:`,t);return{type:"file",uri:A.default.resolve(t)}}C(`Resolved moduleId to NPM package:`,t);return{type:"npm",uri:t}}r.resolvePackageModuleId=resolvePackageModuleId;async function extractAndPrepareTemplateAppAsync(t,{npmPackage:r}){const i=A.default.basename(t);C(`Extracting template app (pkg: ${r}, projectName: ${i})`);const{type:o,uri:a}=resolvePackageModuleId(r||"expo-template-default");if(o==="repository"){await(0,_.downloadAndExtractGitHubRepositoryAsync)(a,{cwd:t,name:i})}else{const r=o==="file"?a:(0,S.getResolvedTemplateName)((0,S.applyBetaTag)(a));await(0,S.downloadAndExtractNpmModuleAsync)(r,{cwd:t,name:i,disableCache:o==="file"})}try{const r=await getTemplateFilesToRenameAsync({cwd:t});await renameTemplateAppNameAsync({cwd:t,files:r,name:i})}catch(t){v.Log.error("Error renaming app name in template");throw t}await sanitizeTemplateAsync(t);return t}r.extractAndPrepareTemplateAppAsync=extractAndPrepareTemplateAppAsync;function escapeXMLCharacters(t){const r=t.replace("&","&amp;");const i=r.replace("<","&lt;");const o=i.replace(">","&gt;");const a=o.replace('"','\\"');return a.replace("'","\\'")}r.defaultRenameConfig=["!**/node_modules","app.json","android/**/*.gradle","android/app/BUCK","android/app/src/**/*.java","android/app/src/**/*.kt","android/app/src/**/*.xml","ios/Podfile","ios/**/*.xcodeproj/project.pbxproj","ios/**/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme","ios/**/*.xcworkspace/contents.xcworkspacedata","macos/Podfile","macos/**/*.xcodeproj/project.pbxproj","macos/**/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme","macos/**/*.xcworkspace/contents.xcworkspacedata"];async function getTemplateFilesToRenameAsync({cwd:t,renameConfig:i}){let o=i??r.defaultRenameConfig;o=o.map((t=>t.split(/(?<!\\)#/,2)[0].trim())).filter((t=>t!==""));return await(0,m.glob)(o,{cwd:t,baseNameMatch:true,dot:true,followSymbolicLinks:false})}r.getTemplateFilesToRenameAsync=getTemplateFilesToRenameAsync;async function renameTemplateAppNameAsync({cwd:t,name:r,files:i}){C(`Got files to transform: ${JSON.stringify(i)}`);await Promise.all(i.map((async i=>{const o=A.default.resolve(t,i);let a;try{a=await g.default.promises.readFile(o,{encoding:"utf-8"})}catch(t){throw new Error(`Failed to read template file: "${o}". Was it removed mid-operation?`,{cause:t})}C(`Renaming app name in file: ${o}`);const u=[".xml",".plist"].includes(A.default.extname(i))?escapeXMLCharacters(r):r;try{const t=a.replace(/Hello App Display Name/g,u).replace(/HelloWorld/g,(0,b.sanitizedName)(u)).replace(/helloworld/g,(0,b.sanitizedName)(u.toLowerCase()));if(t===a){return}await g.default.promises.writeFile(o,t)}catch(t){throw new Error(`Failed to overwrite template file: "${o}". Was it removed mid-operation?`,{cause:t})}})))}r.renameTemplateAppNameAsync=renameTemplateAppNameAsync;async function sanitizeTemplateAsync(t){const r=A.default.basename(t);C(`Sanitizing template or example app (projectName: ${r})`);const i=A.default.join(__dirname,"../template/gitignore");const o=A.default.join(t,".gitignore");if(!g.default.existsSync(o)){await g.default.promises.copyFile(i,o)}const a={name:r,slug:r};const u=new h.default(A.default.join(t,"app.json"),{default:{}});const l=await u.readAsync();const p=deepMerge(l,"expo"in l?{expo:a}:a);await u.writeAsync(p);C(`Created app.json:\n%O`,p);const d=new h.default(A.default.join(t,"package.json"));const m=await d.readAsync();const y="name"in p?p.name:p.expo.name;m.name=(0,S.applyKnownNpmPackageNameRules)(y)||"app";m.version="1.0.0";m.private=true;delete m.description;delete m.tags;delete m.repository;if(m.license==="0BSD"){delete m.license}await d.writeAsync(m)}r.sanitizeTemplateAsync=sanitizeTemplateAsync;function validateName(t){if(typeof t!=="string"||t===""){return"The project name can not be empty."}if(!/^[a-z0-9@.\-_]+$/i.test(t)){return"The project name can only contain URL-friendly characters."}return true}r.validateName=validateName;function logProjectReady({cdPath:t,packageManager:r}){console.log(d.default.bold(`✅ Your project is ready!`));console.log();if(t){console.log(`To run your project, navigate to the directory and run one of the following ${r} commands.`);console.log();console.log(`- ${d.default.bold("cd "+t)}`)}else{console.log(`To run your project, run one of the following ${r} commands.`);console.log()}console.log(`- ${d.default.bold((0,w.formatRunCommand)(r,"android"))}`);let i="";if(!D){i=" # you need to use macOS to build the iOS project - use the Expo app if you need to do iOS development without a Mac"}console.log(`- ${d.default.bold((0,w.formatRunCommand)(r,"ios"))}${i}`);console.log(`- ${d.default.bold((0,w.formatRunCommand)(r,"web"))}`)}r.logProjectReady=logProjectReady;async function installPodsAsync(t){let r=logNewSection("Installing CocoaPods.");if(process.platform!=="darwin"){r.succeed("Skipped installing CocoaPods because operating system is not macOS.");return false}const i=new p.CocoaPodsPackageManager({cwd:A.default.join(t,"ios"),silent:!E.env.EXPO_DEBUG});if(!await i.isCLIInstalledAsync()){try{r.text="CocoaPods CLI not found in your $PATH, installing it now.";r.render();await i.installCLIAsync();r.succeed("Installed CocoaPods CLI");r=logNewSection("Running `pod install` in the `ios` directory.")}catch(t){r.stopAndPersist({symbol:"⚠️ ",text:d.default.red("Unable to install the CocoaPods CLI. Continuing with initializing the project, you can install CocoaPods afterwards.")});if(t.message){v.Log.error(`- ${t.message}`)}return false}}try{await i.installAsync();r.succeed("Installed pods and initialized Xcode workspace.");return true}catch(t){r.stopAndPersist({symbol:"⚠️ ",text:d.default.red("Something went wrong running `pod install` in the `ios` directory. Continuing with initializing the project, you can debug this afterwards.")});if(t.message){v.Log.error(`- ${t.message}`)}return false}}r.installPodsAsync=installPodsAsync;function logNewSection(t){const r=E.env.CI||E.env.EXPO_DEBUG;const i=(0,y.default)({text:d.default.bold(t),isEnabled:!r,stream:r?process.stdout:process.stderr});i.start();return i}r.logNewSection=logNewSection},9436:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const h=l(i(8746));const p=i(9247);const d=i(5733);const m=i(3744);const g=i(1805);const y=i(3490);const A=i(7984)("expo:init:cli");async function run(){const t=process.argv.slice(2)??[];const r={"--yes":Boolean,"--no-install":Boolean,"--help":Boolean,"--version":Boolean,"-y":"--yes","-h":"--help","-v":"--version"};const o=(0,y.assertWithOptionsArgs)(r,{argv:t,permissive:true});if(o["--version"]){m.Log.exit(i(4147).version,0)}if(o["--help"]){const t=p.CLI_NAME.replace("create-","");(0,y.printHelp)(`Creates a new Expo project`,(0,h.default)`npx ${p.CLI_NAME} {cyan <path>} [options]`,[`-y, --yes Use the default options for creating a project`,` --no-install Skip installing npm packages or CocoaPods`,(0,h.default)`-t, --template {gray [pkg]} NPM template to use: default, blank, blank-typescript, tabs, bare-minimum. Default: default`,(0,h.default)`-e, --example {gray [name]} Example name from {underline https://github.com/expo/examples}.`,`-v, --version Version number`,`-h, --help Usage info`].join("\n"),(0,h.default)`
100
100
  {gray To choose a template pass in the {bold --template} arg:}
101
101
 
102
102
  {gray $} ${(0,g.formatSelfCommand)()} {cyan --template}
@@ -113,7 +113,7 @@ var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}
113
113
  {bold yarn:} {cyan yarn create ${t}}
114
114
  {bold pnpm:} {cyan pnpm create ${t}}
115
115
  {bold bun:} {cyan bun create ${t}}
116
- `)}const{AnalyticsEventPhases:a,AnalyticsEventTypes:l,flushAsync:b,track:v}=await Promise.resolve().then((()=>u(i(4575))));try{const h=await(0,y.resolveStringOrBooleanArgsAsync)(t,r,{"--template":Boolean,"--example":Boolean,"-t":"--template","-e":"--example"});A(`Default args:\n%O`,o);A(`Parsed:\n%O`,h);const{createAsync:p}=await Promise.resolve().then((()=>u(i(1961))));await p(h.projectRoot,{yes:!!o["--yes"],template:h.args["--template"],example:h.args["--example"],install:!o["--no-install"]});v({event:l.CREATE_EXPO_APP,properties:{phase:a.SUCCESS}});await b()}catch(t){if(!(t instanceof d.ExitError)){m.Log.exception(t)}v({event:l.CREATE_EXPO_APP,properties:{phase:a.FAIL,message:t.cause}});await b().finally((()=>{process.exit(t.code||1)}))}finally{const t=await(await Promise.resolve().then((()=>u(i(5897))))).default;await t()}}run()},9247:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.CLI_NAME=void 0;r.CLI_NAME=i(4147).name},1961:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.logNodeInstallWarning=r.createAsync=void 0;const h=l(i(8746));const p=l(i(7147));const d=l(i(1017));const m=i(6055);const g=u(i(1947));const y=i(755);const A=i(3744);const b=i(1805);const v=i(9561);const E=i(4575);const w=i(424);const _=i(8429);const S=i(7984)("expo:init:create");async function resolveProjectRootArgAsync(t,{yes:r}){if(!t&&r){const t=d.default.resolve(process.cwd());const r=d.default.basename(t);(0,v.assertValidName)(r);(0,v.assertFolderEmpty)(t,r);return t}else{return await(0,v.resolveProjectRootAsync)(t)}}async function setupDependenciesAsync(t,r){const i=r.install;const o=(0,b.resolvePackageManager)();await configureNodeDependenciesAsync(t,o);let a=false;const u=await p.default.existsSync(d.default.join(t,"ios"));if(i){await installNodeDependenciesAsync(t,o);if(u){a=await installCocoaPodsAsync(t)}}const l=getChangeDirectoryPath(t);console.log();g.logProjectReady({cdPath:l,packageManager:o});if(!i){logNodeInstallWarning(l,o,u&&!a)}}async function createAsync(t,r){if(r.example&&r.template){throw new Error("Cannot use both --example and --template")}if(r.example){return await createExampleAsync(t,r)}return await createTemplateAsync(t,r)}r.createAsync=createAsync;async function createTemplateAsync(t,r){let i=null;if(r.template===true){i=await(0,y.promptTemplateAsync)()}else{i=r.template??null;console.log((0,h.default)`Creating an Expo project using the {cyan ${i??"default"}} template.\n`);if(!i){console.log((0,h.default)`{gray To choose from all available templates pass in the --template arg:}`);console.log((0,h.default)` {gray $} ${(0,b.formatSelfCommand)()} {cyan --template}\n`);console.log((0,h.default)`{gray To choose from all available examples pass in the --example arg:}`);console.log((0,h.default)` {gray $} ${(0,b.formatSelfCommand)()} {cyan --example}\n`)}}const o=await resolveProjectRootArgAsync(t,r);await p.default.promises.mkdir(o,{recursive:true});await(0,E.initializeAnalyticsIdentityAsync)();(0,E.identify)();(0,E.track)({event:E.AnalyticsEventTypes.CREATE_EXPO_APP,properties:{phase:E.AnalyticsEventPhases.ATTEMPT,template:i}});await(0,_.withSectionLog)((()=>g.extractAndPrepareTemplateAppAsync(o,{npmPackage:i})),{pending:h.default.bold("Locating project files."),success:"Downloaded and extracted project files.",error:t=>`Something went wrong in downloading and extracting the project files: ${t.message}`});await setupDependenciesAsync(o,r);try{await(0,w.initGitRepoAsync)(o)}catch(t){S(`Error initializing git: %O`,t)}}async function createExampleAsync(t,r){let i="";if(r.example===true){i=await(0,m.promptExamplesAsync)()}else if(r.example){i=r.example;console.log((0,h.default)`Creating an Expo project using the {cyan ${i}} example.\n`)}await(0,m.ensureExampleExists)(i);const o=await resolveProjectRootArgAsync(t,r);await p.default.promises.mkdir(o,{recursive:true});await(0,E.initializeAnalyticsIdentityAsync)();(0,E.identify)();(0,E.track)({event:E.AnalyticsEventTypes.CREATE_EXPO_APP,properties:{phase:E.AnalyticsEventPhases.ATTEMPT,example:i}});await(0,_.withSectionLog)((()=>(0,m.downloadAndExtractExampleAsync)(o,i)),{pending:h.default.bold("Locating example files..."),success:"Downloaded and extracted example files.",error:t=>`Something went wrong in downloading and extracting the example files: ${t.message}`});await setupDependenciesAsync(o,r);try{await(0,w.initGitRepoAsync)(o)}catch(t){S(`Error initializing git: %O`,t)}}function getChangeDirectoryPath(t){const r=d.default.relative(process.cwd(),t);if(r.length<=t.length){return r}return t}async function configureNodeDependenciesAsync(t,r){try{await(0,b.configurePackageManager)(t,r,{silent:false})}catch(t){S(`Error configuring package manager: %O`,t);A.Log.error(`Something went wrong configuring the package manager. Check your ${r} logs. Continuing to create the app.`);A.Log.exception(t)}}async function installNodeDependenciesAsync(t,r){try{await(0,b.installDependenciesAsync)(t,r,{silent:false})}catch(t){S(`Error installing node modules: %O`,t);A.Log.error(`Something went wrong installing JavaScript dependencies. Check your ${r} logs. Continuing to create the app.`);A.Log.exception(t)}}async function installCocoaPodsAsync(t){let r=false;try{r=await g.installPodsAsync(t)}catch(t){S(`Error installing CocoaPods: %O`,t)}return r}function logNodeInstallWarning(t,r,i){console.log(`\n⚠️ Before running your app, make sure you have modules installed:\n`);console.log(` cd ${t||"."}${d.default.sep}`);console.log(` ${r} install`);if(i&&process.platform==="darwin"){console.log(` npx pod-install`)}console.log()}r.logNodeInstallWarning=logNodeInstallWarning},6581:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.createGlobFilter=r.createEntryResolver=r.sanitizedName=void 0;const a=o(i(1017));const u=o(i(9138));const l=i(7984)("expo:init:fileTransform");function sanitizedName(t){return t.replace(/[\W_]+/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}r.sanitizedName=sanitizedName;function createEntryResolver(t){return r=>{if(t){r.path=r.path.replace(/HelloWorld/g,r.path.includes("android")?sanitizedName(t.toLowerCase()):sanitizedName(t)).replace(/helloworld/g,sanitizedName(t).toLowerCase())}if(r.type&&/^file$/i.test(r.type)&&a.default.basename(r.path)==="gitignore"){r.path=r.path.replace(/gitignore$/,".gitignore")}}}r.createEntryResolver=createEntryResolver;function createGlobFilter(t,r){const i=(0,u.default)(t,r);l("filter: created for pattern %s (%s)",t);return t=>{const r=i(t);l("filter: %s - %s",r?"include":"exclude",t);return r}}r.createGlobFilter=createGlobFilter},5733:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ExitError=void 0;class ExitError extends Error{cause;code;constructor(t,r){super(t instanceof Error?t.message:t);this.cause=t;this.code=r}}r.ExitError=ExitError},2855:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const a=o(i(7984));const u=i(7945);const l=i(9247);process.title=l.CLI_NAME;if((0,u.boolish)("EXPO_DEBUG",false)){a.default.enable("expo:init:*")}else if(a.default.enabled("expo:init:")){process.env.EXPO_DEBUG="1"}i(9436)},755:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.promptTemplateAsync=r.ALIASES=r.LEGACY_TEMPLATES=void 0;const a=o(i(8746));const u=o(i(1112));const l=i(7943);r.LEGACY_TEMPLATES=[{title:"Default",value:"expo-template-default",description:"includes tools recommended for most app developers"},{title:"Blank",value:"expo-template-blank",description:"a minimal app as clean as an empty canvas"},{title:"Blank (TypeScript)",value:"expo-template-blank-typescript",description:"blank app with TypeScript enabled"},{title:"Navigation (TypeScript)",value:"expo-template-tabs",description:"File-based routing with TypeScript enabled"},{title:"Blank (Bare)",value:"expo-template-bare-minimum",description:"blank app with the native code exposed (expo prebuild)"}];r.ALIASES=r.LEGACY_TEMPLATES.map((({value:t})=>t));async function promptTemplateAsync(){if(l.env.CI){throw new Error("Cannot prompt for template in CI")}const{answer:t}=await(0,u.default)({type:"select",name:"answer",message:"Choose a template:",choices:r.LEGACY_TEMPLATES});if(!t){console.log();console.log((0,a.default)`Please specify the template, example: {cyan --template expo-template-blank}`);console.log();process.exit(1)}return t}r.promptTemplateAsync=promptTemplateAsync},3744:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.Log=r.exit=r.log=r.exception=r.error=void 0;const a=o(i(8746));const u=i(5733);function error(...t){console.error(...t)}r.error=error;function exception(t){const{env:r}=i(7943);error(a.default.red(t.toString())+(r.EXPO_DEBUG?"\n"+a.default.gray(t.stack):""))}r.exception=exception;function log(...t){console.log(...t)}r.log=log;function exit(t,r=1){if(t instanceof Error){exception(t)}else if(t){if(r===0){log(t)}else{error(t)}}if(r!==0){throw new u.ExitError(t,r)}process.exit(r)}r.exit=exit;r.Log={error:error,exception:exception,log:log,exit:exit}},2126:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getStateJsonPath=r.dotExpoHomeDirectory=void 0;const a=o(i(2037));const u=o(i(1017));function dotExpoHomeDirectory(){const t=a.default.homedir();if(!t){throw new Error("Can't determine your home directory; make sure your $HOME environment variable is set.")}let r;if(process.env.EXPO_STAGING){r=u.default.join(t,".expo-staging")}else if(process.env.EXPO_LOCAL){r=u.default.join(t,".expo-local")}else{r=u.default.join(t,".expo")}return r}r.dotExpoHomeDirectory=dotExpoHomeDirectory;const getStateJsonPath=()=>u.default.join(dotExpoHomeDirectory(),"state.json");r.getStateJsonPath=getStateJsonPath},1805:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};Object.defineProperty(r,"__esModule",{value:true});r.configurePackageManager=r.installDependenciesAsync=r.formatSelfCommand=r.formatRunCommand=r.isPackageManagerAvailable=r.resolvePackageManager=void 0;const l=u(i(7496));const h=i(2081);const p=i(9247);const d=i(7984)("expo:init:resolvePackageManager");function resolvePackageManager(){const t=process.env.npm_config_user_agent;d("npm_config_user_agent:",t);if(t?.startsWith("yarn")){return"yarn"}else if(t?.startsWith("pnpm")){return"pnpm"}else if(t?.startsWith("bun")){return"bun"}else if(t?.startsWith("npm")){return"npm"}if(isPackageManagerAvailable("yarn")){return"yarn"}else if(isPackageManagerAvailable("pnpm")){return"pnpm"}else if(isPackageManagerAvailable("bun")){return"bun"}return"npm"}r.resolvePackageManager=resolvePackageManager;function isPackageManagerAvailable(t){try{(0,h.execSync)(`${t} --version`,{stdio:"ignore"});return true}catch{}return false}r.isPackageManagerAvailable=isPackageManagerAvailable;function formatRunCommand(t,r){switch(t){case"pnpm":return`pnpm run ${r}`;case"yarn":return`yarn ${r}`;case"bun":return`bun run ${r}`;case"npm":default:return`npm run ${r}`}}r.formatRunCommand=formatRunCommand;function formatSelfCommand(){const t=resolvePackageManager();switch(t){case"pnpm":return`pnpx ${p.CLI_NAME}`;case"bun":return`bunx ${p.CLI_NAME}`;case"yarn":case"npm":default:return`npx ${p.CLI_NAME}`}}r.formatSelfCommand=formatSelfCommand;function createPackageManager(t,r){switch(t){case"yarn":return new l.YarnPackageManager(r);case"pnpm":return new l.PnpmPackageManager(r);case"bun":return new l.BunPackageManager(r);case"npm":default:return new l.NpmPackageManager(r)}}async function installDependenciesAsync(t,r,i={silent:false}){await createPackageManager(r,{cwd:t,silent:i.silent}).installAsync()}r.installDependenciesAsync=installDependenciesAsync;async function configurePackageManager(t,r,i={silent:false}){const o=createPackageManager(r,{cwd:t,...i});switch(o.name){case"pnpm":await o.runAsync(["config","--location","project","set","node-linker","hoisted"]);break;case"yarn":{const t=await o.versionAsync();const r=parseInt(t.split(".")[0],10);if(r>=2){await o.runAsync(["config","set","nodeLinker","node-modules"])}break}}}r.configurePackageManager=configurePackageManager},9561:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.resolveProjectRootAsync=r.assertFolderEmpty=r.assertValidName=void 0;const h=l(i(8746));const p=l(i(7147));const d=l(i(1017));const m=l(i(1112));const g=u(i(1947));const y=i(3744);const A=i(1805);const b=i(6462);function assertValidName(t){const r=g.validateName(t);if(typeof r==="string"){y.Log.exit((0,h.default)`{red Cannot create an app named {bold "${t}"}. ${r}}`,1)}const i=g.isFolderNameForbidden(t);if(i){y.Log.exit((0,h.default)`{red Cannot create an app named {bold "${t}"} because it would conflict with a dependency of the same name.}`,1)}}r.assertValidName=assertValidName;function assertFolderEmpty(t,r){const i=(0,b.getConflictsForDirectory)(t);if(i.length){y.Log.log((0,h.default)`The directory {cyan ${r}} has files that might be overwritten:`);y.Log.log();for(const t of i){y.Log.log(` ${t}`)}y.Log.log();y.Log.exit("Try using a new directory name, or moving these files.\n")}}r.assertFolderEmpty=assertFolderEmpty;async function resolveProjectRootAsync(t){let r=t?.trim();if(!r){const{answer:t}=await(0,m.default)({type:"text",name:"answer",message:"What is your app named?",initial:"my-app",validate:t=>{const r=g.validateName(d.default.basename(d.default.resolve(t)));if(typeof r==="string"){return"Invalid project name: "+r}return true}});if(typeof t==="string"){r=t.trim()}}if(!r){const t=(0,A.formatSelfCommand)();y.Log.log();y.Log.log("Please choose your app name:");y.Log.log((0,h.default)` {dim $} {cyan ${t} <name>}`);y.Log.log();y.Log.log(`For more info, run:`);y.Log.log((0,h.default)` {dim $} {cyan ${t} --help}`);y.Log.log();y.Log.exit("")}const i=d.default.resolve(r);const o=d.default.basename(i);assertValidName(o);await p.default.promises.mkdir(i,{recursive:true});assertFolderEmpty(i,o);return i}r.resolveProjectRootAsync=resolveProjectRootAsync},6785:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getSession=void 0;const a=o(i(6282));const u=i(2126);function getSession(){try{return a.default.read((0,u.getStateJsonPath)())?.auth??null}catch(t){if(t.code==="ENOENT"){return null}throw t}}r.getSession=getSession},4575:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.AnalyticsEventPhases=r.AnalyticsEventTypes=r.flushAsync=r.track=r.identify=r.initializeAnalyticsIdentityAsync=r._resetGlobals=void 0;const a=o(i(6282));const u=o(i(6113));const l=o(i(7147));const h=o(i(2037));const p=i(2126);const d=i(6785);const m=i(7943);const g=i(4147);const y="1wabJGd5IiuF9Q8SGlcI90v8WTs";const A="https://cdp.expo.dev/v1/batch";const b="1.0.0";const v=g.name;const E=[];let w=null;function _resetGlobals(){if(m.env.EXPO_NO_TELEMETRY)return;w=null;E.splice(0,E.length)}r._resetGlobals=_resetGlobals;async function initializeAnalyticsIdentityAsync(){if(m.env.EXPO_NO_TELEMETRY)return;if(w){return}w=await getAnalyticsIdentityAsync()}r.initializeAnalyticsIdentityAsync=initializeAnalyticsIdentityAsync;function identify(){if(m.env.EXPO_NO_TELEMETRY)return;enqueue("identify",{})}r.identify=identify;function track(t){if(m.env.EXPO_NO_TELEMETRY)return;enqueue("track",{...t,context:getAnalyticsContext()})}r.track=track;function enqueue(t,r){if(!w){return}r={...r,...w};r.type=t;if(r.type==="identify"){r.traits??={};r.context??={};r.context.traits=r.traits}r.context={library:{name:v,version:b},...r.context};r._metadata={nodeVersion:process.versions.node,...r._metadata};if(!r.originalTimestamp){r.originalTimestamp=new Date}if(!r.messageId){r.messageId=`node-${u.default.createHash("md5").update(JSON.stringify(r)).digest("hex")}-${uuidv4()}`}E.push(r)}async function flushAsync(){if(m.env.EXPO_NO_TELEMETRY)return;if(!E.length){return}const t={method:"POST",headers:{accept:"application/json, text/plain, */*","content-type":"application/json;charset=utf-8","user-agent":`${v}/${b}`,authorization:"Basic "+Buffer.from(`${y}:`).toString("base64")},body:JSON.stringify({batch:E.map((t=>({...t,sentAt:new Date}))),sentAt:new Date})};try{await fetch(A,t)}catch{}E.splice(0,E.length)}r.flushAsync=flushAsync;const _={darwin:"Mac",win32:"Windows",linux:"Linux"};function getAnalyticsContext(){const t=_[h.default.platform()]||h.default.platform();return{os:{name:t,version:h.default.release()},device:{type:t,model:t},app:{name:v,version:g.version}}}function uuidv4(){try{return u.default.randomUUID()}catch{return null}}var S;(function(t){t["CREATE_EXPO_APP"]="create expo app"})(S||(r.AnalyticsEventTypes=S={}));var C;(function(t){t["ATTEMPT"]="attempt";t["SUCCESS"]="success";t["FAIL"]="fail"})(C||(r.AnalyticsEventPhases=C={}));async function getAnalyticsIdentityAsync(){if(!l.default.existsSync((0,p.dotExpoHomeDirectory)())){l.default.mkdirSync((0,p.dotExpoHomeDirectory)(),{recursive:true})}if(!l.default.existsSync((0,p.getStateJsonPath)())){l.default.writeFileSync((0,p.getStateJsonPath)(),JSON.stringify({}))}const t=await a.default.getAsync((0,p.getStateJsonPath)(),"analyticsDeviceId",null);const r=t??uuidv4();if(!r){return null}if(!t){await a.default.setAsync((0,p.getStateJsonPath)(),"analyticsDeviceId",r)}const i=(0,d.getSession)()?.userId??null;return i?{anonymousId:r,userId:i}:{anonymousId:r}}},3490:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.assertDuplicateArgs=r.assertUnknownArgs=r.collapseAliases=r._resolveStringOrBooleanArgs=r.resolveStringOrBooleanArgsAsync=r.printHelp=r.assertWithOptionsArgs=void 0;const h=l(i(4816));const p=l(i(8746));const d=i(6889);const m=u(i(3744));function assertWithOptionsArgs(t,r){try{return(0,h.default)(t,r)}catch(t){if(t.code==="ARG_UNKNOWN_OPTION"){m.exit(t.message,1)}throw t}}r.assertWithOptionsArgs=assertWithOptionsArgs;function printHelp(t,r,i,o=""){m.exit((0,p.default)`
116
+ `)}const{AnalyticsEventPhases:a,AnalyticsEventTypes:l,flushAsync:b,track:v}=await Promise.resolve().then((()=>u(i(4575))));try{const h=await(0,y.resolveStringOrBooleanArgsAsync)(t,r,{"--template":Boolean,"--example":Boolean,"-t":"--template","-e":"--example"});A(`Default args:\n%O`,o);A(`Parsed:\n%O`,h);const{createAsync:p}=await Promise.resolve().then((()=>u(i(1961))));await p(h.projectRoot,{yes:!!o["--yes"],template:h.args["--template"],example:h.args["--example"],install:!o["--no-install"]});v({event:l.CREATE_EXPO_APP,properties:{phase:a.SUCCESS}});await b()}catch(t){if(!(t instanceof d.ExitError)){m.Log.exception(t)}v({event:l.CREATE_EXPO_APP,properties:{phase:a.FAIL,message:t.cause}});await b().finally((()=>{process.exit(t.code||1)}))}finally{const t=await(await Promise.resolve().then((()=>u(i(5897))))).default;await t()}}run()},9247:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.CLI_NAME=void 0;r.CLI_NAME=i(4147).name},1961:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.logNodeInstallWarning=r.createAsync=void 0;const h=l(i(8746));const p=l(i(7147));const d=l(i(1017));const m=i(6055);const g=u(i(1947));const y=i(755);const A=i(3744);const b=i(1805);const v=i(9561);const w=i(4575);const E=i(424);const _=i(8429);const S=i(7984)("expo:init:create");async function resolveProjectRootArgAsync(t,{yes:r}){if(!t&&r){const t=d.default.resolve(process.cwd());const r=d.default.basename(t);(0,v.assertValidName)(r);(0,v.assertFolderEmpty)(t,r);return t}else{return await(0,v.resolveProjectRootAsync)(t)}}async function setupDependenciesAsync(t,r){const i=r.install;const o=(0,b.resolvePackageManager)();await configureNodeDependenciesAsync(t,o);let a=false;const u=await p.default.existsSync(d.default.join(t,"ios"));if(i){await installNodeDependenciesAsync(t,o);if(u){a=await installCocoaPodsAsync(t)}}const l=getChangeDirectoryPath(t);console.log();g.logProjectReady({cdPath:l,packageManager:o});if(!i){logNodeInstallWarning(l,o,u&&!a)}}async function createAsync(t,r){if(r.example&&r.template){throw new Error("Cannot use both --example and --template")}if(r.example){return await createExampleAsync(t,r)}return await createTemplateAsync(t,r)}r.createAsync=createAsync;async function createTemplateAsync(t,r){let i=null;if(r.template===true){i=await(0,y.promptTemplateAsync)()}else{i=r.template??null;console.log((0,h.default)`Creating an Expo project using the {cyan ${i??"default"}} template.\n`);if(!i){console.log((0,h.default)`{gray To choose from all available templates pass in the --template arg:}`);console.log((0,h.default)` {gray $} ${(0,b.formatSelfCommand)()} {cyan --template}\n`);console.log((0,h.default)`{gray To choose from all available examples pass in the --example arg:}`);console.log((0,h.default)` {gray $} ${(0,b.formatSelfCommand)()} {cyan --example}\n`)}}const o=await resolveProjectRootArgAsync(t,r);await p.default.promises.mkdir(o,{recursive:true});await(0,w.initializeAnalyticsIdentityAsync)();(0,w.identify)();(0,w.track)({event:w.AnalyticsEventTypes.CREATE_EXPO_APP,properties:{phase:w.AnalyticsEventPhases.ATTEMPT,template:i}});await(0,_.withSectionLog)((()=>g.extractAndPrepareTemplateAppAsync(o,{npmPackage:i})),{pending:h.default.bold("Locating project files."),success:"Downloaded and extracted project files.",error:t=>`Something went wrong in downloading and extracting the project files: ${t.message}`});await setupDependenciesAsync(o,r);try{await(0,E.initGitRepoAsync)(o)}catch(t){S(`Error initializing git: %O`,t)}}async function createExampleAsync(t,r){let i="";if(r.example===true){i=await(0,m.promptExamplesAsync)()}else if(r.example){i=r.example;console.log((0,h.default)`Creating an Expo project using the {cyan ${i}} example.\n`)}await(0,m.ensureExampleExists)(i);const o=await resolveProjectRootArgAsync(t,r);await p.default.promises.mkdir(o,{recursive:true});await(0,w.initializeAnalyticsIdentityAsync)();(0,w.identify)();(0,w.track)({event:w.AnalyticsEventTypes.CREATE_EXPO_APP,properties:{phase:w.AnalyticsEventPhases.ATTEMPT,example:i}});await(0,_.withSectionLog)((()=>(0,m.downloadAndExtractExampleAsync)(o,i)),{pending:h.default.bold("Locating example files..."),success:"Downloaded and extracted example files.",error:t=>`Something went wrong in downloading and extracting the example files: ${t.message}`});await setupDependenciesAsync(o,r);try{await(0,E.initGitRepoAsync)(o)}catch(t){S(`Error initializing git: %O`,t)}}function getChangeDirectoryPath(t){const r=d.default.relative(process.cwd(),t);if(r.length<=t.length){return r}return t}async function configureNodeDependenciesAsync(t,r){try{await(0,b.configurePackageManager)(t,r,{silent:false})}catch(t){S(`Error configuring package manager: %O`,t);A.Log.error(`Something went wrong configuring the package manager. Check your ${r} logs. Continuing to create the app.`);A.Log.exception(t)}}async function installNodeDependenciesAsync(t,r){try{await(0,b.installDependenciesAsync)(t,r,{silent:false})}catch(t){S(`Error installing node modules: %O`,t);A.Log.error(`Something went wrong installing JavaScript dependencies. Check your ${r} logs. Continuing to create the app.`);A.Log.exception(t)}}async function installCocoaPodsAsync(t){let r=false;try{r=await g.installPodsAsync(t)}catch(t){S(`Error installing CocoaPods: %O`,t)}return r}function logNodeInstallWarning(t,r,i){console.log(`\n⚠️ Before running your app, make sure you have modules installed:\n`);console.log(` cd ${t||"."}${d.default.sep}`);console.log(` ${r} install`);if(i&&process.platform==="darwin"){console.log(` npx pod-install`)}console.log()}r.logNodeInstallWarning=logNodeInstallWarning},6581:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.createGlobFilter=r.createEntryResolver=r.sanitizedName=void 0;const a=o(i(1017));const u=o(i(9138));const l=i(7984)("expo:init:fileTransform");function sanitizedName(t){return t.replace(/[\W_]+/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}r.sanitizedName=sanitizedName;function createEntryResolver(t){return r=>{if(t){r.path=r.path.replace(/HelloWorld/g,r.path.includes("android")?sanitizedName(t.toLowerCase()):sanitizedName(t)).replace(/helloworld/g,sanitizedName(t).toLowerCase())}if(r.type&&/^file$/i.test(r.type)&&a.default.basename(r.path)==="gitignore"){r.path=r.path.replace(/gitignore$/,".gitignore")}}}r.createEntryResolver=createEntryResolver;function createGlobFilter(t,r){const i=(0,u.default)(t,r);l("filter: created for pattern %s (%s)",t);return t=>{const r=i(t);l("filter: %s - %s",r?"include":"exclude",t);return r}}r.createGlobFilter=createGlobFilter},5733:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ExitError=void 0;class ExitError extends Error{cause;code;constructor(t,r){super(t instanceof Error?t.message:t);this.cause=t;this.code=r}}r.ExitError=ExitError},2855:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const a=o(i(7984));const u=i(7945);const l=i(9247);process.title=l.CLI_NAME;if((0,u.boolish)("EXPO_DEBUG",false)){a.default.enable("expo:init:*")}else if(a.default.enabled("expo:init:")){process.env.EXPO_DEBUG="1"}i(9436)},755:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.promptTemplateAsync=r.ALIASES=r.LEGACY_TEMPLATES=void 0;const a=o(i(8746));const u=o(i(1112));const l=i(7943);r.LEGACY_TEMPLATES=[{title:"Default",value:"expo-template-default",description:"includes tools recommended for most app developers"},{title:"Blank",value:"expo-template-blank",description:"a minimal app as clean as an empty canvas"},{title:"Blank (TypeScript)",value:"expo-template-blank-typescript",description:"blank app with TypeScript enabled"},{title:"Navigation (TypeScript)",value:"expo-template-tabs",description:"File-based routing with TypeScript enabled"},{title:"Blank (Bare)",value:"expo-template-bare-minimum",description:"blank app with the native code exposed (expo prebuild)"}];r.ALIASES=r.LEGACY_TEMPLATES.map((({value:t})=>t));async function promptTemplateAsync(){if(l.env.CI){throw new Error("Cannot prompt for template in CI")}const{answer:t}=await(0,u.default)({type:"select",name:"answer",message:"Choose a template:",choices:r.LEGACY_TEMPLATES});if(!t){console.log();console.log((0,a.default)`Please specify the template, example: {cyan --template expo-template-blank}`);console.log();process.exit(1)}return t}r.promptTemplateAsync=promptTemplateAsync},3744:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.Log=r.exit=r.log=r.exception=r.error=void 0;const a=o(i(8746));const u=i(5733);function error(...t){console.error(...t)}r.error=error;function exception(t){const{env:r}=i(7943);error(a.default.red(t.toString())+(r.EXPO_DEBUG?"\n"+a.default.gray(t.stack):""))}r.exception=exception;function log(...t){console.log(...t)}r.log=log;function exit(t,r=1){if(t instanceof Error){exception(t)}else if(t){if(r===0){log(t)}else{error(t)}}if(r!==0){throw new u.ExitError(t,r)}process.exit(r)}r.exit=exit;r.Log={error:error,exception:exception,log:log,exit:exit}},2126:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getStateJsonPath=r.dotExpoHomeDirectory=void 0;const a=o(i(2037));const u=o(i(1017));function dotExpoHomeDirectory(){const t=a.default.homedir();if(!t){throw new Error("Can't determine your home directory; make sure your $HOME environment variable is set.")}let r;if(process.env.EXPO_STAGING){r=u.default.join(t,".expo-staging")}else if(process.env.EXPO_LOCAL){r=u.default.join(t,".expo-local")}else{r=u.default.join(t,".expo")}return r}r.dotExpoHomeDirectory=dotExpoHomeDirectory;const getStateJsonPath=()=>u.default.join(dotExpoHomeDirectory(),"state.json");r.getStateJsonPath=getStateJsonPath},1805:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};Object.defineProperty(r,"__esModule",{value:true});r.configurePackageManager=r.installDependenciesAsync=r.formatSelfCommand=r.formatRunCommand=r.isPackageManagerAvailable=r.resolvePackageManager=void 0;const l=u(i(7496));const h=i(2081);const p=i(9247);const d=i(7984)("expo:init:resolvePackageManager");function resolvePackageManager(){const t=process.env.npm_config_user_agent;d("npm_config_user_agent:",t);if(t?.startsWith("yarn")){return"yarn"}else if(t?.startsWith("pnpm")){return"pnpm"}else if(t?.startsWith("bun")){return"bun"}else if(t?.startsWith("npm")){return"npm"}if(isPackageManagerAvailable("yarn")){return"yarn"}else if(isPackageManagerAvailable("pnpm")){return"pnpm"}else if(isPackageManagerAvailable("bun")){return"bun"}return"npm"}r.resolvePackageManager=resolvePackageManager;function isPackageManagerAvailable(t){try{(0,h.execSync)(`${t} --version`,{stdio:"ignore"});return true}catch{}return false}r.isPackageManagerAvailable=isPackageManagerAvailable;function formatRunCommand(t,r){switch(t){case"pnpm":return`pnpm run ${r}`;case"yarn":return`yarn ${r}`;case"bun":return`bun run ${r}`;case"npm":default:return`npm run ${r}`}}r.formatRunCommand=formatRunCommand;function formatSelfCommand(){const t=resolvePackageManager();switch(t){case"pnpm":return`pnpx ${p.CLI_NAME}`;case"bun":return`bunx ${p.CLI_NAME}`;case"yarn":case"npm":default:return`npx ${p.CLI_NAME}`}}r.formatSelfCommand=formatSelfCommand;function createPackageManager(t,r){switch(t){case"yarn":return new l.YarnPackageManager(r);case"pnpm":return new l.PnpmPackageManager(r);case"bun":return new l.BunPackageManager(r);case"npm":default:return new l.NpmPackageManager(r)}}async function installDependenciesAsync(t,r,i={silent:false}){await createPackageManager(r,{cwd:t,silent:i.silent}).installAsync()}r.installDependenciesAsync=installDependenciesAsync;async function configurePackageManager(t,r,i={silent:false}){const o=createPackageManager(r,{cwd:t,...i});switch(o.name){case"pnpm":await o.runAsync(["config","--location","project","set","node-linker","hoisted"]);break;case"yarn":{const t=await o.versionAsync();const r=parseInt(t.split(".")[0],10);if(r>=2){await o.runAsync(["config","set","nodeLinker","node-modules"])}break}}}r.configurePackageManager=configurePackageManager},9561:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.resolveProjectRootAsync=r.assertFolderEmpty=r.assertValidName=void 0;const h=l(i(8746));const p=l(i(7147));const d=l(i(1017));const m=l(i(1112));const g=u(i(1947));const y=i(3744);const A=i(1805);const b=i(6462);function assertValidName(t){const r=g.validateName(t);if(typeof r==="string"){y.Log.exit((0,h.default)`{red Cannot create an app named {bold "${t}"}. ${r}}`,1)}const i=g.isFolderNameForbidden(t);if(i){y.Log.exit((0,h.default)`{red Cannot create an app named {bold "${t}"} because it would conflict with a dependency of the same name.}`,1)}}r.assertValidName=assertValidName;function assertFolderEmpty(t,r){const i=(0,b.getConflictsForDirectory)(t);if(i.length){y.Log.log((0,h.default)`The directory {cyan ${r}} has files that might be overwritten:`);y.Log.log();for(const t of i){y.Log.log(` ${t}`)}y.Log.log();y.Log.exit("Try using a new directory name, or moving these files.\n")}}r.assertFolderEmpty=assertFolderEmpty;async function resolveProjectRootAsync(t){let r=t?.trim();if(!r){const{answer:t}=await(0,m.default)({type:"text",name:"answer",message:"What is your app named?",initial:"my-app",validate:t=>{const r=g.validateName(d.default.basename(d.default.resolve(t)));if(typeof r==="string"){return"Invalid project name: "+r}return true}});if(typeof t==="string"){r=t.trim()}}if(!r){const t=(0,A.formatSelfCommand)();y.Log.log();y.Log.log("Please choose your app name:");y.Log.log((0,h.default)` {dim $} {cyan ${t} <name>}`);y.Log.log();y.Log.log(`For more info, run:`);y.Log.log((0,h.default)` {dim $} {cyan ${t} --help}`);y.Log.log();y.Log.exit("")}const i=d.default.resolve(r);const o=d.default.basename(i);assertValidName(o);await p.default.promises.mkdir(i,{recursive:true});assertFolderEmpty(i,o);return i}r.resolveProjectRootAsync=resolveProjectRootAsync},6785:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getSession=void 0;const a=o(i(6282));const u=i(2126);function getSession(){try{return a.default.read((0,u.getStateJsonPath)())?.auth??null}catch(t){if(t.code==="ENOENT"){return null}throw t}}r.getSession=getSession},4575:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.AnalyticsEventPhases=r.AnalyticsEventTypes=r.flushAsync=r.track=r.identify=r.initializeAnalyticsIdentityAsync=r._resetGlobals=void 0;const a=o(i(6282));const u=o(i(6113));const l=o(i(7147));const h=o(i(2037));const p=i(2126);const d=i(6785);const m=i(7943);const g=i(4147);const y="1wabJGd5IiuF9Q8SGlcI90v8WTs";const A="https://cdp.expo.dev/v1/batch";const b="1.0.0";const v=g.name;const w=[];let E=null;function _resetGlobals(){if(m.env.EXPO_NO_TELEMETRY)return;E=null;w.splice(0,w.length)}r._resetGlobals=_resetGlobals;async function initializeAnalyticsIdentityAsync(){if(m.env.EXPO_NO_TELEMETRY)return;if(E){return}E=await getAnalyticsIdentityAsync()}r.initializeAnalyticsIdentityAsync=initializeAnalyticsIdentityAsync;function identify(){if(m.env.EXPO_NO_TELEMETRY)return;enqueue("identify",{})}r.identify=identify;function track(t){if(m.env.EXPO_NO_TELEMETRY)return;enqueue("track",{...t,context:getAnalyticsContext()})}r.track=track;function enqueue(t,r){if(!E){return}r={...r,...E};r.type=t;if(r.type==="identify"){r.traits??={};r.context??={};r.context.traits=r.traits}r.context={library:{name:v,version:b},...r.context};r._metadata={nodeVersion:process.versions.node,...r._metadata};if(!r.originalTimestamp){r.originalTimestamp=new Date}if(!r.messageId){r.messageId=`node-${u.default.createHash("md5").update(JSON.stringify(r)).digest("hex")}-${uuidv4()}`}w.push(r)}async function flushAsync(){if(m.env.EXPO_NO_TELEMETRY)return;if(!w.length){return}const t={method:"POST",headers:{accept:"application/json, text/plain, */*","content-type":"application/json;charset=utf-8","user-agent":`${v}/${b}`,authorization:"Basic "+Buffer.from(`${y}:`).toString("base64")},body:JSON.stringify({batch:w.map((t=>({...t,sentAt:new Date}))),sentAt:new Date})};try{await fetch(A,t)}catch{}w.splice(0,w.length)}r.flushAsync=flushAsync;const _={darwin:"Mac",win32:"Windows",linux:"Linux"};function getAnalyticsContext(){const t=_[h.default.platform()]||h.default.platform();return{os:{name:t,version:h.default.release()},device:{type:t,model:t},app:{name:v,version:g.version}}}function uuidv4(){try{return u.default.randomUUID()}catch{return null}}var S;(function(t){t["CREATE_EXPO_APP"]="create expo app"})(S||(r.AnalyticsEventTypes=S={}));var C;(function(t){t["ATTEMPT"]="attempt";t["SUCCESS"]="success";t["FAIL"]="fail"})(C||(r.AnalyticsEventPhases=C={}));async function getAnalyticsIdentityAsync(){if(!l.default.existsSync((0,p.dotExpoHomeDirectory)())){l.default.mkdirSync((0,p.dotExpoHomeDirectory)(),{recursive:true})}if(!l.default.existsSync((0,p.getStateJsonPath)())){l.default.writeFileSync((0,p.getStateJsonPath)(),JSON.stringify({}))}const t=await a.default.getAsync((0,p.getStateJsonPath)(),"analyticsDeviceId",null);const r=t??uuidv4();if(!r){return null}if(!t){await a.default.setAsync((0,p.getStateJsonPath)(),"analyticsDeviceId",r)}const i=(0,d.getSession)()?.userId??null;return i?{anonymousId:r,userId:i}:{anonymousId:r}}},3490:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.assertDuplicateArgs=r.assertUnknownArgs=r.collapseAliases=r._resolveStringOrBooleanArgs=r.resolveStringOrBooleanArgsAsync=r.printHelp=r.assertWithOptionsArgs=void 0;const h=l(i(4816));const p=l(i(8746));const d=i(6889);const m=u(i(3744));function assertWithOptionsArgs(t,r){try{return(0,h.default)(t,r)}catch(t){if(t.code==="ARG_UNKNOWN_OPTION"){m.exit(t.message,1)}throw t}}r.assertWithOptionsArgs=assertWithOptionsArgs;function printHelp(t,r,i,o=""){m.exit((0,p.default)`
117
117
  {bold Info}
118
118
  ${t}
119
119
 
@@ -122,4 +122,4 @@ var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}
122
122
 
123
123
  {bold Options}
124
124
  ${i.split("\n").join("\n ")}
125
- `+o,0)}r.printHelp=printHelp;async function resolveStringOrBooleanArgsAsync(t,r,i){const o={...r,...i};assertUnknownArgs(o,t);t=collapseAliases(o,t);return _resolveStringOrBooleanArgs(i,t)}r.resolveStringOrBooleanArgsAsync=resolveStringOrBooleanArgsAsync;function _resolveStringOrBooleanArgs(t,r){let i="";const o={};const a=Object.entries(t).filter((([,t])=>typeof t!=="string")).map((([t])=>t));for(let t=r.length-1;t>-1;t--){const u=r[t];if(u.startsWith("--")){o[u]=true}else{const l=t>0?r[t-1]:null;if(l&&a.includes(l)){o[l]=u;t--}else if(!i&&(t===r.length-1||t===0)){i=u}else{throw new Error(`Unknown argument: ${u}`)}}}return{args:o,projectRoot:i}}r._resolveStringOrBooleanArgs=_resolveStringOrBooleanArgs;function collapseAliases(t,r){const i=getAliasTuples(t);for(const[t,o]of i){r=(0,d.replaceValue)(r,t,o)}assertDuplicateArgs(r,i);return r}r.collapseAliases=collapseAliases;function assertUnknownArgs(t,r){const i=Object.keys(t);const o=r.filter((t=>!i.includes(t)&&t.startsWith("-")));if(o.length>0){throw new Error(`Unknown arguments: ${o.join(", ")}`)}}r.assertUnknownArgs=assertUnknownArgs;function getAliasTuples(t){return Object.entries(t).filter((([,t])=>typeof t==="string"))}function assertDuplicateArgs(t,r){for(const[i,o]of r){if(t.filter((t=>[i,o].includes(t))).length>1){throw new Error(`Can only provide one instance of ${i} or ${o}`)}}}r.assertDuplicateArgs=assertDuplicateArgs},6889:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.replaceValue=void 0;function replaceValue(t,r,i){const o=t.indexOf(r);if(o>-1){t[o]=i}return t}r.replaceValue=replaceValue},6462:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getConflictsForDirectory=void 0;const o=i(7147);const a=[".DS_Store","Thumbs.db",".git",".gitattributes",".gitignore",".npmignore","LICENSE","docs",".idea","npm-debug.log","yarn-debug.log","yarn-error.log"];function getConflictsForDirectory(t){return(0,o.readdirSync)(t).filter((t=>!(/\.iml$/.test(t)||a.includes(t))))}r.getConflictsForDirectory=getConflictsForDirectory},7943:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.env=void 0;const o=i(7945);class Env{get EXPO_DEBUG(){return(0,o.boolish)("EXPO_DEBUG",false)}get EXPO_BETA(){return(0,o.boolish)("EXPO_BETA",false)}get CI(){return(0,o.boolish)("CI",false)}get EXPO_NO_CACHE(){return(0,o.boolish)("EXPO_NO_CACHE",false)}get EXPO_NO_TELEMETRY(){return(0,o.boolish)("EXPO_NO_TELEMETRY",false)}}r.env=new Env},9544:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fetch=void 0;const o=i(7742);function wrapFetchWithAssert(t){return(...r)=>{if(!t){if(o.env.NODE_OPTIONS?.includes("--no-experimental-fetch")){throw new Error('NODE_OPTIONS="--no-experimental-fetch" is not supported, Node.js built-in fetch is required to continue.')}throw new Error("Node.js built-in Fetch is not available. Ensure that the Fetch API, first available in Node.js 18, is enabled.")}return t(...r)}}r.fetch=wrapFetchWithAssert(globalThis.fetch)},424:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.initGitRepoAsync=void 0;const a=o(i(5642));const u=o(i(8746));const l=i(7984)("expo:init:git");async function initGitRepoAsync(t){try{await(0,a.default)("git",["rev-parse","--is-inside-work-tree"],{stdio:"ignore",cwd:t});l(u.default.dim("New project is already inside of a Git repo, skipping git init."));return false}catch(t){if(t.errno==="ENOENT"){l(u.default.dim("Unable to initialize Git repo. `git` not in $PATH."));return false}}const r=i(9756);try{await(0,a.default)("git",["init"],{stdio:"ignore",cwd:t});await(0,a.default)("git",["add","-A"],{stdio:"ignore",cwd:t});const i=`Initial commit\n\nGenerated by ${r.name} ${r.version}.`;await(0,a.default)("git",["commit","-m",i],{stdio:"ignore",cwd:t});l(u.default.dim("Initialized a Git repository."));return true}catch(t){l("Error initializing Git repo:",t);return false}}r.initGitRepoAsync=initGitRepoAsync},292:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.downloadAndExtractGitHubRepositoryAsync=void 0;const o=i(2781);const a=i(9544);const u=i(7240);const l=i(6581);const h=i(7984)("expo:init:github");async function getGitHubRepoAsync(t){const[,r,i,o,u,...l]=t.pathname.split("/");const h=l.join("/");if(o===undefined){const o=await(0,a.fetch)(`https://api.github.com/repos/${r}/${i}`);if(!o.ok&&o.status===404){throw new Error(`GitHub repository not found for url: ${t}`)}else if(!o.ok){throw new Error(`[${o.status}] Failed to fetch GitHub repository information for url: ${t}`)}const u=await o.json();return{owner:r,name:i,branch:u["default_branch"],filePath:h}}if(r&&i&&u&&o==="tree"){return{owner:r,name:i,branch:u,filePath:h}}throw new Error("Malformed GitHub repository response for URL: "+t.toString())}async function isValidGitHubRepoAsync(t){const r=`https://api.github.com/repos/${t.owner}/${t.name}/contents`;const i=`${t.filePath?`/${t.filePath}`:""}/package.json`;const o=await(0,a.fetch)(r+i+`?ref=${t.branch}`);return o.ok}async function extractRemoteGitHubTarballAsync(t,r,i){const h=await(0,a.fetch)(t);if(!h.ok)throw new Error(`Unexpected response: ${h.statusText} (${t})`);if(!h.body)throw new Error(`Unexpected response: no response body (${t})`);const p=r.filePath.replace(/^\//,"").split("/").filter(Boolean);const d=p.length+1;const m=(0,l.createGlobFilter)(!p.length?["*/**","*/ios/.xcode.env"]:[`*/${p.join("/")}/**`,`*/${p.join("/")}/ios/.xcode.env`],{ignore:["**/ios/*.xcworkspace/**"]});await(0,u.extractNpmTarballAsync)(o.Readable.fromWeb(h.body),{...i,filter:m,strip:d})}async function downloadAndExtractGitHubRepositoryAsync(t,r){h("Looking for GitHub repository");const i=await getGitHubRepoAsync(t);const o=await isValidGitHubRepoAsync(i);if(!o){throw new Error(`Could not to locate repository for "${t}", ensure this repository exists`)}const a=`https://codeload.github.com/${i.owner}/${i.name}/tar.gz/${i.branch}`;h("Resolved GitHub repository",i);h("Downloading GitHub repository from:",a);await extractRemoteGitHubTarballAsync(a,i,r)}r.downloadAndExtractGitHubRepositoryAsync=downloadAndExtractGitHubRepositoryAsync},8429:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.withSectionLog=void 0;const a=o(i(2651));const u=i(7943);function withSectionLog(t,r){const i=u.env.CI||u.env.EXPO_DEBUG;const o=(0,a.default)({text:r.pending,isEnabled:!i,stream:i?process.stdout:process.stderr});o.start();return t(o).then((t=>{o.succeed(r.success);return t}),(t=>{o.fail(r.error(t));throw t}))}r.withSectionLog=withSectionLog},7240:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.downloadAndExtractNpmModuleAsync=r.extractNpmTarballAsync=r.extractLocalNpmTarballAsync=r.applyKnownNpmPackageNameRules=r.getResolvedTemplateName=r.splitNpmNameAndTag=r.applyBetaTag=void 0;const a=o(i(5642));const u=o(i(7147));const l=o(i(2037));const h=o(i(1017));const p=i(2781);const d=o(i(8089));const m=i(3837);const g=i(7943);const y=i(6581);const A=i(755);const b=i(3744);const v=i(7984)("expo:init:npm");const E=(0,m.promisify)(p.Stream.pipeline);function getTemporaryCacheFilePath(t="template-cache"){return h.default.join(l.default.tmpdir(),".create-expo-app",t)}function applyBetaTag(t){let[r,i]=splitNpmNameAndTag(t);if(!i&&g.env.EXPO_BETA){v("Using beta tag for",r);i="beta"}return joinNpmNameAndTag(r,i)}r.applyBetaTag=applyBetaTag;function joinNpmNameAndTag(t,r){return[t,r].filter(Boolean).join("@")}function splitNpmNameAndTag(t){const r=t.split("@").filter(Boolean);if(t.startsWith("@")){return["@"+r[0],r[1]]}return[r[0],r[1]]}r.splitNpmNameAndTag=splitNpmNameAndTag;function getResolvedTemplateName(t){let[r,i="latest"]=splitNpmNameAndTag(t);if(r.startsWith("@")){return joinNpmNameAndTag(r,i)}const o="expo-template-";if(A.ALIASES.includes(o+r)){r=o+r}if(A.ALIASES.includes(r)){if(i?.match(/^\d+$/)){return r+"@sdk-"+i}}return joinNpmNameAndTag(r,i)}r.getResolvedTemplateName=getResolvedTemplateName;function applyKnownNpmPackageNameRules(t){while(/^(\.|_)/.test(t)){t=t.substring(1)}t=t.toLowerCase().replace(/[^a-zA-Z0-9._\-/@]/g,"");return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")||null}r.applyKnownNpmPackageNameRules=applyKnownNpmPackageNameRules;async function extractLocalNpmTarballAsync(t,r){const i=u.default.createReadStream(t);await extractNpmTarballAsync(i,r)}r.extractLocalNpmTarballAsync=extractLocalNpmTarballAsync;async function extractNpmTarballAsync(t,r){if(!t){throw new Error("Missing stream")}const{cwd:i,strip:o,name:a,fileList:l=[],filter:h}=r;await u.default.promises.mkdir(i,{recursive:true});await E(t,d.default.extract({cwd:i,filter:h,onentry:(0,y.createEntryResolver)(a),strip:o??1},l))}r.extractNpmTarballAsync=extractNpmTarballAsync;async function npmPackAsync(t,r=undefined,...i){const o=getNpmBin();const l=["pack",t,...i];const h=`${o} ${l.join(" ")}`;v("Run:",h,`(cwd: ${r??process.cwd()})`);if(r){await u.default.promises.mkdir(r,{recursive:true})}let p;try{p=(await(0,a.default)(o,[...l,"--json"],{cwd:r})).stdout?.trim()}catch(t){if(t?.stderr.match(/npm ERR! code E404/)){const r=t.stderr.match(/npm ERR! 404\s+'(.*)' is not in this registry\./)?.[1]??t.stderr;throw new Error(`NPM package not found: `+r)}throw t}if(!p){return null}try{const t=JSON.parse(p);if(Array.isArray(t)&&t.every(isNpmPackageInfo)){return t.map(sanitizeNpmPackageFilename)}else{throw new Error(`Invalid response from npm: ${p}`)}}catch(t){throw new Error(`Could not parse JSON returned from "${h}".\n\n${p}\n\nError: ${t.message}`)}}function getNpmBin(){return process.platform==="win32"?"npm.cmd":"npm"}async function getNpmInfoAsync(t,r){const i=await npmPackAsync(t,r,"--dry-run");if(i?.[0]){return i[0]}throw new Error(`Could not find npm package "${t}"`)}function isNpmPackageInfo(t){return t&&typeof t==="object"&&"id"in t&&"filename"in t&&"version"in t&&"files"in t}function sanitizeNpmPackageFilename(t){if(t.filename.startsWith("@")&&t.name.startsWith("@")){t.filename=t.filename.replace(/^@/,"").replace(/\//,"-")}return t}async function fileExistsAsync(t){try{const r=await u.default.promises.stat(t);return r.isFile()}catch{return false}}async function downloadAndExtractNpmModuleAsync(t,r){const i=getTemporaryCacheFilePath();v(`Looking for NPM tarball (id: ${t}, cache: ${i})`);await u.default.promises.mkdir(i,{recursive:true});const o=await getNpmInfoAsync(t,i);const a=h.default.join(i,o.filename);try{const o=await fileExistsAsync(a);const u=g.env.EXPO_NO_CACHE||r.disableCache;if(u||!o){v(`Downloading tarball for ${t} to ${i}...`);await npmPackAsync(t,i)}}catch(r){b.Log.error("Error downloading template package: "+t);throw r}try{await extractLocalNpmTarballAsync(a,{cwd:r.cwd,name:r.name})}catch(r){b.Log.error("Error extracting template package: "+t);throw r}}r.downloadAndExtractNpmModuleAsync=downloadAndExtractNpmModuleAsync},5897:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const a=o(i(8746));const u=o(i(5418));const l=i(9756);const h=i(7984)("expo:init:update-check");async function shouldUpdate(){try{const t=await(0,u.default)(l);if(t?.latest){console.log();console.log(a.default.yellow.bold(`A new version of \`${l.name}\` is available`));console.log((0,a.default)`You can update by running: {cyan npm install -g ${l.name}}`);console.log()}}catch(t){h("Error checking for update:\n%O",t)}}r["default"]=shouldUpdate},9756:module=>{module.exports=eval("require")("../package.json")},9491:t=>{"use strict";t.exports=require("assert")},4300:t=>{"use strict";t.exports=require("buffer")},2081:t=>{"use strict";t.exports=require("child_process")},2057:t=>{"use strict";t.exports=require("constants")},6113:t=>{"use strict";t.exports=require("crypto")},9523:t=>{"use strict";t.exports=require("dns")},2361:t=>{"use strict";t.exports=require("events")},7147:t=>{"use strict";t.exports=require("fs")},3685:t=>{"use strict";t.exports=require("http")},5687:t=>{"use strict";t.exports=require("https")},8188:t=>{"use strict";t.exports=require("module")},7561:t=>{"use strict";t.exports=require("node:fs")},9411:t=>{"use strict";t.exports=require("node:path")},7742:t=>{"use strict";t.exports=require("node:process")},7261:t=>{"use strict";t.exports=require("node:util")},2037:t=>{"use strict";t.exports=require("os")},1017:t=>{"use strict";t.exports=require("path")},7282:t=>{"use strict";t.exports=require("process")},4521:t=>{"use strict";t.exports=require("readline")},2781:t=>{"use strict";t.exports=require("stream")},1576:t=>{"use strict";t.exports=require("string_decoder")},6224:t=>{"use strict";t.exports=require("tty")},7310:t=>{"use strict";t.exports=require("url")},3837:t=>{"use strict";t.exports=require("util")},1267:t=>{"use strict";t.exports=require("worker_threads")},9796:t=>{"use strict";t.exports=require("zlib")},9539:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isIdentifierChar=isIdentifierChar;r.isIdentifierName=isIdentifierName;r.isIdentifierStart=isIdentifierStart;let i="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let o="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const a=new RegExp("["+i+"]");const u=new RegExp("["+i+o+"]");i=o=null;const l=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const h=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(t,r){let i=65536;for(let o=0,a=r.length;o<a;o+=2){i+=r[o];if(i>t)return false;i+=r[o+1];if(i>=t)return true}return false}function isIdentifierStart(t){if(t<65)return t===36;if(t<=90)return true;if(t<97)return t===95;if(t<=122)return true;if(t<=65535){return t>=170&&a.test(String.fromCharCode(t))}return isInAstralSet(t,l)}function isIdentifierChar(t){if(t<48)return t===36;if(t<58)return true;if(t<65)return false;if(t<=90)return true;if(t<97)return t===95;if(t<=122)return true;if(t<=65535){return t>=170&&u.test(String.fromCharCode(t))}return isInAstralSet(t,l)||isInAstralSet(t,h)}function isIdentifierName(t){let r=true;for(let i=0;i<t.length;i++){let o=t.charCodeAt(i);if((o&64512)===55296&&i+1<t.length){const r=t.charCodeAt(++i);if((r&64512)===56320){o=65536+((o&1023)<<10)+(r&1023)}}if(r){r=false;if(!isIdentifierStart(o)){return false}}else if(!isIdentifierChar(o)){return false}}return!r}},4679:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"isIdentifierChar",{enumerable:true,get:function(){return o.isIdentifierChar}});Object.defineProperty(r,"isIdentifierName",{enumerable:true,get:function(){return o.isIdentifierName}});Object.defineProperty(r,"isIdentifierStart",{enumerable:true,get:function(){return o.isIdentifierStart}});Object.defineProperty(r,"isKeyword",{enumerable:true,get:function(){return a.isKeyword}});Object.defineProperty(r,"isReservedWord",{enumerable:true,get:function(){return a.isReservedWord}});Object.defineProperty(r,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return a.isStrictBindOnlyReservedWord}});Object.defineProperty(r,"isStrictBindReservedWord",{enumerable:true,get:function(){return a.isStrictBindReservedWord}});Object.defineProperty(r,"isStrictReservedWord",{enumerable:true,get:function(){return a.isStrictReservedWord}});var o=i(9539);var a=i(11)},11:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isKeyword=isKeyword;r.isReservedWord=isReservedWord;r.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;r.isStrictBindReservedWord=isStrictBindReservedWord;r.isStrictReservedWord=isStrictReservedWord;const i={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const o=new Set(i.keyword);const a=new Set(i.strict);const u=new Set(i.strictBind);function isReservedWord(t,r){return r&&t==="await"||t==="enum"}function isStrictReservedWord(t,r){return isReservedWord(t,r)||a.has(t)}function isStrictBindOnlyReservedWord(t){return u.has(t)}function isStrictBindReservedWord(t,r){return isStrictReservedWord(t,r)||isStrictBindOnlyReservedWord(t)}function isKeyword(t){return o.has(t)}},932:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=highlight;r.shouldHighlight=shouldHighlight;var o=i(8035);var a=i(4679);var u=_interopRequireWildcard(i(9397),true);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,i=new WeakMap;return(_getRequireWildcardCache=function(t){return t?i:r})(t)}function _interopRequireWildcard(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=_getRequireWildcardCache(r);if(i&&i.has(t))return i.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=a?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,i&&i.set(t,o),o}const l=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,u.createColors)(false):u.default;const compose=(t,r)=>i=>t(r(i));const h=new Set(["as","async","from","get","of","set"]);function getDefs(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.gray,invalid:compose(compose(t.white,t.bgRed),t.bold)}}const p=/\r\n|[\n\r\u2028\u2029]/;const d=/^[()[\]{}]$/;let m;{const t=/^[a-z][\w-]*$/i;const getTokenType=function(r,i,o){if(r.type==="name"){if((0,a.isKeyword)(r.value)||(0,a.isStrictReservedWord)(r.value,true)||h.has(r.value)){return"keyword"}if(t.test(r.value)&&(o[i-1]==="<"||o.slice(i-2,i)==="</")){return"jsxIdentifier"}if(r.value[0]!==r.value[0].toLowerCase()){return"capitalized"}}if(r.type==="punctuator"&&d.test(r.value)){return"bracket"}if(r.type==="invalid"&&(r.value==="@"||r.value==="#")){return"punctuator"}return r.type};m=function*(t){let r;while(r=o.default.exec(t)){const i=o.matchToToken(r);yield{type:getTokenType(i,r.index,t),value:i.value}}}}function highlightTokens(t,r){let i="";for(const{type:o,value:a}of m(r)){const r=t[o];if(r){i+=a.split(p).map((t=>r(t))).join("\n")}else{i+=a}}return i}function shouldHighlight(t){return l.isColorSupported||t.forceColor}let g=undefined;function getColors(t){if(t){var r;(r=g)!=null?r:g=(0,u.createColors)(true);return g}return l}function highlight(t,r={}){if(t!==""&&shouldHighlight(r)){const i=getDefs(getColors(r.forceColor));return highlightTokens(i,t)}else{return t}}{let t,o;r.getChalk=({forceColor:r})=>{var a;(a=t)!=null?a:t=i(6870);if(r){var u;(u=o)!=null?u:o=new t.constructor({enabled:true,level:1});return o}return t}}},3576:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.LRUCache=void 0;const i=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const o=new Set;const a=typeof process==="object"&&!!process?process:{};const emitWarning=(t,r,i,o)=>{typeof a.emitWarning==="function"?a.emitWarning(t,r,i,o):console.error(`[${i}] ${r}: ${t}`)};let u=globalThis.AbortController;let l=globalThis.AbortSignal;if(typeof u==="undefined"){l=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(t,r){this._onabort.push(r)}};u=class AbortController{constructor(){warnACPolyfill()}signal=new l;abort(t){if(this.signal.aborted)return;this.signal.reason=t;this.signal.aborted=true;for(const r of this.signal._onabort){r(t)}this.signal.onabort?.(t)}};let t=a.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!t)return;t=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=t=>!o.has(t);const h=Symbol("type");const isPosInt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t);const getUintArray=t=>!isPosInt(t)?null:t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(t){super(t);this.fill(0)}}class Stack{heap;length;static#s=false;static create(t){const r=getUintArray(t);if(!r)return[];Stack.#s=true;const i=new Stack(t,r);Stack.#s=false;return i}constructor(t,r){if(!Stack.#s){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new r(t);this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class LRUCache{#n;#i;#o;#a;#u;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#c;#h;#f;#p;#d;#m;#g;#y;#A;#b;#v;#E;#w;#_;#S;#C;static unsafeExposeInternals(t){return{starts:t.#E,ttls:t.#w,sizes:t.#v,keyMap:t.#h,keyList:t.#f,valList:t.#p,next:t.#d,prev:t.#m,get head(){return t.#g},get tail(){return t.#y},free:t.#A,isBackgroundFetch:r=>t.#D(r),backgroundFetch:(r,i,o,a)=>t.#x(r,i,o,a),moveToTail:r=>t.#R(r),indexes:r=>t.#O(r),rindexes:r=>t.#F(r),isStale:r=>t.#k(r)}}get max(){return this.#n}get maxSize(){return this.#i}get calculatedSize(){return this.#c}get size(){return this.#l}get fetchMethod(){return this.#u}get dispose(){return this.#o}get disposeAfter(){return this.#a}constructor(t){const{max:r=0,ttl:i,ttlResolution:a=1,ttlAutopurge:u,updateAgeOnGet:l,updateAgeOnHas:h,allowStale:p,dispose:d,disposeAfter:m,noDisposeOnSet:g,noUpdateTTL:y,maxSize:A=0,maxEntrySize:b=0,sizeCalculation:v,fetchMethod:E,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:_,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:C,ignoreFetchAbort:D}=t;if(r!==0&&!isPosInt(r)){throw new TypeError("max option must be a nonnegative integer")}const x=r?getUintArray(r):Array;if(!x){throw new Error("invalid max value: "+r)}this.#n=r;this.#i=A;this.maxEntrySize=b||this.#i;this.sizeCalculation=v;if(this.sizeCalculation){if(!this.#i&&!this.maxEntrySize){throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize")}if(typeof this.sizeCalculation!=="function"){throw new TypeError("sizeCalculation set to non-function")}}if(E!==undefined&&typeof E!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#u=E;this.#S=!!E;this.#h=new Map;this.#f=new Array(r).fill(undefined);this.#p=new Array(r).fill(undefined);this.#d=new x(r);this.#m=new x(r);this.#g=0;this.#y=0;this.#A=Stack.create(r);this.#l=0;this.#c=0;if(typeof d==="function"){this.#o=d}if(typeof m==="function"){this.#a=m;this.#b=[]}else{this.#a=undefined;this.#b=undefined}this.#_=!!this.#o;this.#C=!!this.#a;this.noDisposeOnSet=!!g;this.noUpdateTTL=!!y;this.noDeleteOnFetchRejection=!!w;this.allowStaleOnFetchRejection=!!S;this.allowStaleOnFetchAbort=!!C;this.ignoreFetchAbort=!!D;if(this.maxEntrySize!==0){if(this.#i!==0){if(!isPosInt(this.#i)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#P()}this.allowStale=!!p;this.noDeleteOnStaleGet=!!_;this.updateAgeOnGet=!!l;this.updateAgeOnHas=!!h;this.ttlResolution=isPosInt(a)||a===0?a:1;this.ttlAutopurge=!!u;this.ttl=i||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#T()}if(this.#n===0&&this.ttl===0&&this.#i===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#n&&!this.#i){const t="LRU_CACHE_UNBOUNDED";if(shouldWarn(t)){o.add(t);const r="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(r,"UnboundedCacheWarning",t,LRUCache)}}}getRemainingTTL(t){return this.#h.has(t)?Infinity:0}#T(){const t=new ZeroArray(this.#n);const r=new ZeroArray(this.#n);this.#w=t;this.#E=r;this.#L=(o,a,u=i.now())=>{r[o]=a!==0?u:0;t[o]=a;if(a!==0&&this.ttlAutopurge){const t=setTimeout((()=>{if(this.#k(o)){this.delete(this.#f[o])}}),a+1);if(t.unref){t.unref()}}};this.#I=o=>{r[o]=t[o]!==0?i.now():0};this.#M=(i,a)=>{if(t[a]){const u=t[a];const l=r[a];if(!u||!l)return;i.ttl=u;i.start=l;i.now=o||getNow();const h=i.now-l;i.remainingTTL=u-h}};let o=0;const getNow=()=>{const t=i.now();if(this.ttlResolution>0){o=t;const r=setTimeout((()=>o=0),this.ttlResolution);if(r.unref){r.unref()}}return t};this.getRemainingTTL=i=>{const a=this.#h.get(i);if(a===undefined){return 0}const u=t[a];const l=r[a];if(!u||!l){return Infinity}const h=(o||getNow())-l;return u-h};this.#k=i=>{const a=r[i];const u=t[i];return!!u&&!!a&&(o||getNow())-a>u}}#I=()=>{};#M=()=>{};#L=()=>{};#k=()=>false;#P(){const t=new ZeroArray(this.#n);this.#c=0;this.#v=t;this.#B=r=>{this.#c-=t[r];t[r]=0};this.#N=(t,r,i,o)=>{if(this.#D(r)){return 0}if(!isPosInt(i)){if(o){if(typeof o!=="function"){throw new TypeError("sizeCalculation must be a function")}i=o(r,t);if(!isPosInt(i)){throw new TypeError("sizeCalculation return invalid (expect positive integer)")}}else{throw new TypeError("invalid size value (must be positive integer). "+"When maxSize or maxEntrySize is used, sizeCalculation "+"or size must be set.")}}return i};this.#$=(r,i,o)=>{t[r]=i;if(this.#i){const i=this.#i-t[r];while(this.#c>i){this.#j(true)}}this.#c+=t[r];if(o){o.entrySize=i;o.totalCalculatedSize=this.#c}}}#B=t=>{};#$=(t,r,i)=>{};#N=(t,r,i,o)=>{if(i||o){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#O({allowStale:t=this.allowStale}={}){if(this.#l){for(let r=this.#y;true;){if(!this.#H(r)){break}if(t||!this.#k(r)){yield r}if(r===this.#g){break}else{r=this.#m[r]}}}}*#F({allowStale:t=this.allowStale}={}){if(this.#l){for(let r=this.#g;true;){if(!this.#H(r)){break}if(t||!this.#k(r)){yield r}if(r===this.#y){break}else{r=this.#d[r]}}}}#H(t){return t!==undefined&&this.#h.get(this.#f[t])===t}*entries(){for(const t of this.#O()){if(this.#p[t]!==undefined&&this.#f[t]!==undefined&&!this.#D(this.#p[t])){yield[this.#f[t],this.#p[t]]}}}*rentries(){for(const t of this.#F()){if(this.#p[t]!==undefined&&this.#f[t]!==undefined&&!this.#D(this.#p[t])){yield[this.#f[t],this.#p[t]]}}}*keys(){for(const t of this.#O()){const r=this.#f[t];if(r!==undefined&&!this.#D(this.#p[t])){yield r}}}*rkeys(){for(const t of this.#F()){const r=this.#f[t];if(r!==undefined&&!this.#D(this.#p[t])){yield r}}}*values(){for(const t of this.#O()){const r=this.#p[t];if(r!==undefined&&!this.#D(this.#p[t])){yield this.#p[t]}}}*rvalues(){for(const t of this.#F()){const r=this.#p[t];if(r!==undefined&&!this.#D(this.#p[t])){yield this.#p[t]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(const i of this.#O()){const o=this.#p[i];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)continue;if(t(a,this.#f[i],this)){return this.get(this.#f[i],r)}}}forEach(t,r=this){for(const i of this.#O()){const o=this.#p[i];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)continue;t.call(r,a,this.#f[i],this)}}rforEach(t,r=this){for(const i of this.#F()){const o=this.#p[i];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)continue;t.call(r,a,this.#f[i],this)}}purgeStale(){let t=false;for(const r of this.#F({allowStale:true})){if(this.#k(r)){this.delete(this.#f[r]);t=true}}return t}info(t){const r=this.#h.get(t);if(r===undefined)return undefined;const o=this.#p[r];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)return undefined;const u={value:a};if(this.#w&&this.#E){const t=this.#w[r];const o=this.#E[r];if(t&&o){const r=t-(i.now()-o);u.ttl=r;u.start=Date.now()}}if(this.#v){u.size=this.#v[r]}return u}dump(){const t=[];for(const r of this.#O({allowStale:true})){const o=this.#f[r];const a=this.#p[r];const u=this.#D(a)?a.__staleWhileFetching:a;if(u===undefined||o===undefined)continue;const l={value:u};if(this.#w&&this.#E){l.ttl=this.#w[r];const t=i.now()-this.#E[r];l.start=Math.floor(Date.now()-t)}if(this.#v){l.size=this.#v[r]}t.unshift([o,l])}return t}load(t){this.clear();for(const[r,o]of t){if(o.start){const t=Date.now()-o.start;o.start=i.now()-t}this.set(r,o.value,o)}}set(t,r,i={}){if(r===undefined){this.delete(t);return this}const{ttl:o=this.ttl,start:a,noDisposeOnSet:u=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:h}=i;let{noUpdateTTL:p=this.noUpdateTTL}=i;const d=this.#N(t,r,i.size||0,l);if(this.maxEntrySize&&d>this.maxEntrySize){if(h){h.set="miss";h.maxEntrySizeExceeded=true}this.delete(t);return this}let m=this.#l===0?undefined:this.#h.get(t);if(m===undefined){m=this.#l===0?this.#y:this.#A.length!==0?this.#A.pop():this.#l===this.#n?this.#j(false):this.#l;this.#f[m]=t;this.#p[m]=r;this.#h.set(t,m);this.#d[this.#y]=m;this.#m[m]=this.#y;this.#y=m;this.#l++;this.#$(m,d,h);if(h)h.set="add";p=false}else{this.#R(m);const i=this.#p[m];if(r!==i){if(this.#S&&this.#D(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:r}=i;if(r!==undefined&&!u){if(this.#_){this.#o?.(r,t,"set")}if(this.#C){this.#b?.push([r,t,"set"])}}}else if(!u){if(this.#_){this.#o?.(i,t,"set")}if(this.#C){this.#b?.push([i,t,"set"])}}this.#B(m);this.#$(m,d,h);this.#p[m]=r;if(h){h.set="replace";const t=i&&this.#D(i)?i.__staleWhileFetching:i;if(t!==undefined)h.oldValue=t}}else if(h){h.set="update"}}if(o!==0&&!this.#w){this.#T()}if(this.#w){if(!p){this.#L(m,o,a)}if(h)this.#M(h,m)}if(!u&&this.#C&&this.#b){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}return this}pop(){try{while(this.#l){const t=this.#p[this.#g];this.#j(true);if(this.#D(t)){if(t.__staleWhileFetching){return t.__staleWhileFetching}}else if(t!==undefined){return t}}}finally{if(this.#C&&this.#b){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}}}#j(t){const r=this.#g;const i=this.#f[r];const o=this.#p[r];if(this.#S&&this.#D(o)){o.__abortController.abort(new Error("evicted"))}else if(this.#_||this.#C){if(this.#_){this.#o?.(o,i,"evict")}if(this.#C){this.#b?.push([o,i,"evict"])}}this.#B(r);if(t){this.#f[r]=undefined;this.#p[r]=undefined;this.#A.push(r)}if(this.#l===1){this.#g=this.#y=0;this.#A.length=0}else{this.#g=this.#d[r]}this.#h.delete(i);this.#l--;return r}has(t,r={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:o}=r;const a=this.#h.get(t);if(a!==undefined){const t=this.#p[a];if(this.#D(t)&&t.__staleWhileFetching===undefined){return false}if(!this.#k(a)){if(i){this.#I(a)}if(o){o.has="hit";this.#M(o,a)}return true}else if(o){o.has="stale";this.#M(o,a)}}else if(o){o.has="miss"}return false}peek(t,r={}){const{allowStale:i=this.allowStale}=r;const o=this.#h.get(t);if(o===undefined||!i&&this.#k(o)){return}const a=this.#p[o];return this.#D(a)?a.__staleWhileFetching:a}#x(t,r,i,o){const a=r===undefined?undefined:this.#p[r];if(this.#D(a)){return a}const l=new u;const{signal:h}=i;h?.addEventListener("abort",(()=>l.abort(h.reason)),{signal:l.signal});const p={signal:l.signal,options:i,context:o};const cb=(o,a=false)=>{const{aborted:u}=l.signal;const h=i.ignoreFetchAbort&&o!==undefined;if(i.status){if(u&&!a){i.status.fetchAborted=true;i.status.fetchError=l.signal.reason;if(h)i.status.fetchAbortIgnored=true}else{i.status.fetchResolved=true}}if(u&&!h&&!a){return fetchFail(l.signal.reason)}const m=d;if(this.#p[r]===d){if(o===undefined){if(m.__staleWhileFetching){this.#p[r]=m.__staleWhileFetching}else{this.delete(t)}}else{if(i.status)i.status.fetchUpdated=true;this.set(t,o,p.options)}}return o};const eb=t=>{if(i.status){i.status.fetchRejected=true;i.status.fetchError=t}return fetchFail(t)};const fetchFail=o=>{const{aborted:a}=l.signal;const u=a&&i.allowStaleOnFetchAbort;const h=u||i.allowStaleOnFetchRejection;const p=h||i.noDeleteOnFetchRejection;const m=d;if(this.#p[r]===d){const i=!p||m.__staleWhileFetching===undefined;if(i){this.delete(t)}else if(!u){this.#p[r]=m.__staleWhileFetching}}if(h){if(i.status&&m.__staleWhileFetching!==undefined){i.status.returnedStale=true}return m.__staleWhileFetching}else if(m.__returned===m){throw o}};const pcall=(r,o)=>{const u=this.#u?.(t,a,p);if(u&&u instanceof Promise){u.then((t=>r(t===undefined?undefined:t)),o)}l.signal.addEventListener("abort",(()=>{if(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort){r(undefined);if(i.allowStaleOnFetchAbort){r=t=>cb(t,true)}}}))};if(i.status)i.status.fetchDispatched=true;const d=new Promise(pcall).then(cb,eb);const m=Object.assign(d,{__abortController:l,__staleWhileFetching:a,__returned:undefined});if(r===undefined){this.set(t,m,{...p.options,status:undefined});r=this.#h.get(t)}else{this.#p[r]=m}return m}#D(t){if(!this.#S)return false;const r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof u}async fetch(t,r={}){const{allowStale:i=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:u=this.ttl,noDisposeOnSet:l=this.noDisposeOnSet,size:h=0,sizeCalculation:p=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:m=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:A=this.allowStaleOnFetchAbort,context:b,forceRefresh:v=false,status:E,signal:w}=r;if(!this.#S){if(E)E.fetch="get";return this.get(t,{allowStale:i,updateAgeOnGet:o,noDeleteOnStaleGet:a,status:E})}const _={allowStale:i,updateAgeOnGet:o,noDeleteOnStaleGet:a,ttl:u,noDisposeOnSet:l,size:h,sizeCalculation:p,noUpdateTTL:d,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:A,ignoreFetchAbort:y,status:E,signal:w};let S=this.#h.get(t);if(S===undefined){if(E)E.fetch="miss";const r=this.#x(t,S,_,b);return r.__returned=r}else{const r=this.#p[S];if(this.#D(r)){const t=i&&r.__staleWhileFetching!==undefined;if(E){E.fetch="inflight";if(t)E.returnedStale=true}return t?r.__staleWhileFetching:r.__returned=r}const a=this.#k(S);if(!v&&!a){if(E)E.fetch="hit";this.#R(S);if(o){this.#I(S)}if(E)this.#M(E,S);return r}const u=this.#x(t,S,_,b);const l=u.__staleWhileFetching!==undefined;const h=l&&i;if(E){E.fetch=a?"stale":"refresh";if(h&&a)E.returnedStale=true}return h?u.__staleWhileFetching:u.__returned=u}}get(t,r={}){const{allowStale:i=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:u}=r;const l=this.#h.get(t);if(l!==undefined){const r=this.#p[l];const h=this.#D(r);if(u)this.#M(u,l);if(this.#k(l)){if(u)u.get="stale";if(!h){if(!a){this.delete(t)}if(u&&i)u.returnedStale=true;return i?r:undefined}else{if(u&&i&&r.__staleWhileFetching!==undefined){u.returnedStale=true}return i?r.__staleWhileFetching:undefined}}else{if(u)u.get="hit";if(h){return r.__staleWhileFetching}this.#R(l);if(o){this.#I(l)}return r}}else if(u){u.get="miss"}}#G(t,r){this.#m[r]=t;this.#d[t]=r}#R(t){if(t!==this.#y){if(t===this.#g){this.#g=this.#d[t]}else{this.#G(this.#m[t],this.#d[t])}this.#G(this.#y,t);this.#y=t}}delete(t){let r=false;if(this.#l!==0){const i=this.#h.get(t);if(i!==undefined){r=true;if(this.#l===1){this.clear()}else{this.#B(i);const r=this.#p[i];if(this.#D(r)){r.__abortController.abort(new Error("deleted"))}else if(this.#_||this.#C){if(this.#_){this.#o?.(r,t,"delete")}if(this.#C){this.#b?.push([r,t,"delete"])}}this.#h.delete(t);this.#f[i]=undefined;this.#p[i]=undefined;if(i===this.#y){this.#y=this.#m[i]}else if(i===this.#g){this.#g=this.#d[i]}else{const t=this.#m[i];this.#d[t]=this.#d[i];const r=this.#d[i];this.#m[r]=this.#m[i]}this.#l--;this.#A.push(i)}}}if(this.#C&&this.#b?.length){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}return r}clear(){for(const t of this.#F({allowStale:true})){const r=this.#p[t];if(this.#D(r)){r.__abortController.abort(new Error("deleted"))}else{const i=this.#f[t];if(this.#_){this.#o?.(r,i,"delete")}if(this.#C){this.#b?.push([r,i,"delete"])}}}this.#h.clear();this.#p.fill(undefined);this.#f.fill(undefined);if(this.#w&&this.#E){this.#w.fill(0);this.#E.fill(0)}if(this.#v){this.#v.fill(0)}this.#g=0;this.#y=0;this.#A.length=0;this.#c=0;this.#l=0;if(this.#C&&this.#b){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}}}r.LRUCache=LRUCache},2548:t=>{"use strict";t.exports=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","❤️ "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}')},4147:t=>{"use strict";t.exports=JSON.parse('{"name":"create-expo","version":"3.1.2","bin":"./build/index.js","main":"build","description":"Create universal Expo apps","license":"BSD-3-Clause","keywords":["expo","react-native","react"],"homepage":"https://docs.expo.dev","repository":{"type":"git","url":"https://github.com/expo/expo.git","directory":"packages/create-expo"},"author":"Evan Bacon <bacon@expo.io> (https://github.com/evanbacon)","files":["build","template"],"engines":{"node":">=18.13.0"},"scripts":{"build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","prepare":"expo-module clean && yarn run build:prod","clean":"expo-module clean","lint":"expo-module lint","typecheck":"expo-module typecheck","test":"expo-module test","test:e2e":"expo-module test --config e2e/jest.config.js --runInBand","watch":"yarn run build --watch","prepublishOnly":"expo-module prepublishOnly"},"devDependencies":{"@expo/config":"~10.0.4","@expo/json-file":"^9.0.0","@expo/package-manager":"^1.5.0","@expo/spawn-async":"^1.7.2","@octokit/types":"^13.5.0","@types/debug":"^4.1.7","@types/getenv":"^1.0.0","@types/node":"^18.19.34","@types/picomatch":"^2.3.3","@types/prompts":"2.0.14","@types/tar":"^6.1.2","@vercel/ncc":"^0.38.1","arg":"^5.0.2","chalk":"^4.0.0","debug":"^4.3.4","expo-module-scripts":"^4.0.0","fast-glob":"^3.3.2","getenv":"^1.0.0","nock":"^14.0.0-beta.7","ora":"3.4.0","picomatch":"^2.3.1","prompts":"^2.4.2","tar":"^6.2.1","update-check":"^1.5.4"},"gitHead":"563c85837bc5055672846887f70f3daf5763b16d"}')}};var __webpack_module_cache__={};function __nccwpck_require__(t){var r=__webpack_module_cache__[t];if(r!==undefined){return r.exports}var i=__webpack_module_cache__[t]={id:t,loaded:false,exports:{}};var o=true;try{__webpack_modules__[t].call(i.exports,i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete __webpack_module_cache__[t]}i.loaded=true;return i.exports}(()=>{__nccwpck_require__.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(2855);module.exports=__webpack_exports__})();
125
+ `+o,0)}r.printHelp=printHelp;async function resolveStringOrBooleanArgsAsync(t,r,i){const o={...r,...i};assertUnknownArgs(o,t);t=collapseAliases(o,t);return _resolveStringOrBooleanArgs(i,t)}r.resolveStringOrBooleanArgsAsync=resolveStringOrBooleanArgsAsync;function _resolveStringOrBooleanArgs(t,r){let i="";const o={};const a=Object.entries(t).filter((([,t])=>typeof t!=="string")).map((([t])=>t));for(let t=r.length-1;t>-1;t--){const u=r[t];if(u.startsWith("--")){o[u]=true}else{const l=t>0?r[t-1]:null;if(l&&a.includes(l)){o[l]=u;t--}else if(!i&&(t===r.length-1||t===0)){i=u}else{throw new Error(`Unknown argument: ${u}`)}}}return{args:o,projectRoot:i}}r._resolveStringOrBooleanArgs=_resolveStringOrBooleanArgs;function collapseAliases(t,r){const i=getAliasTuples(t);for(const[t,o]of i){r=(0,d.replaceValue)(r,t,o)}assertDuplicateArgs(r,i);return r}r.collapseAliases=collapseAliases;function assertUnknownArgs(t,r){const i=Object.keys(t);const o=r.filter((t=>!i.includes(t)&&t.startsWith("-")));if(o.length>0){throw new Error(`Unknown arguments: ${o.join(", ")}`)}}r.assertUnknownArgs=assertUnknownArgs;function getAliasTuples(t){return Object.entries(t).filter((([,t])=>typeof t==="string"))}function assertDuplicateArgs(t,r){for(const[i,o]of r){if(t.filter((t=>[i,o].includes(t))).length>1){throw new Error(`Can only provide one instance of ${i} or ${o}`)}}}r.assertDuplicateArgs=assertDuplicateArgs},6889:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.replaceValue=void 0;function replaceValue(t,r,i){const o=t.indexOf(r);if(o>-1){t[o]=i}return t}r.replaceValue=replaceValue},6462:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getConflictsForDirectory=void 0;const o=i(7147);const a=[".DS_Store","Thumbs.db",".git",".gitattributes",".gitignore",".npmignore","LICENSE","docs",".idea","npm-debug.log","yarn-debug.log","yarn-error.log"];function getConflictsForDirectory(t){return(0,o.readdirSync)(t).filter((t=>!(/\.iml$/.test(t)||a.includes(t))))}r.getConflictsForDirectory=getConflictsForDirectory},7943:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.env=void 0;const o=i(7945);class Env{get EXPO_DEBUG(){return(0,o.boolish)("EXPO_DEBUG",false)}get EXPO_BETA(){return(0,o.boolish)("EXPO_BETA",false)}get CI(){return(0,o.boolish)("CI",false)}get EXPO_NO_CACHE(){return(0,o.boolish)("EXPO_NO_CACHE",false)}get EXPO_NO_TELEMETRY(){return(0,o.boolish)("EXPO_NO_TELEMETRY",false)}}r.env=new Env},9544:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fetch=void 0;const o=i(7742);function wrapFetchWithAssert(t){return(...r)=>{if(!t){if(o.env.NODE_OPTIONS?.includes("--no-experimental-fetch")){throw new Error('NODE_OPTIONS="--no-experimental-fetch" is not supported, Node.js built-in fetch is required to continue.')}throw new Error("Node.js built-in Fetch is not available. Ensure that the Fetch API, first available in Node.js 18, is enabled.")}return t(...r)}}r.fetch=wrapFetchWithAssert(globalThis.fetch)},424:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.initGitRepoAsync=void 0;const a=o(i(5642));const u=o(i(8746));const l=i(7984)("expo:init:git");async function initGitRepoAsync(t){try{await(0,a.default)("git",["rev-parse","--is-inside-work-tree"],{stdio:"ignore",cwd:t});l(u.default.dim("New project is already inside of a Git repo, skipping git init."));return false}catch(t){if(t.errno==="ENOENT"){l(u.default.dim("Unable to initialize Git repo. `git` not in $PATH."));return false}}const r=i(9756);try{await(0,a.default)("git",["init"],{stdio:"ignore",cwd:t});await(0,a.default)("git",["add","-A"],{stdio:"ignore",cwd:t});const i=`Initial commit\n\nGenerated by ${r.name} ${r.version}.`;await(0,a.default)("git",["commit","-m",i],{stdio:"ignore",cwd:t});l(u.default.dim("Initialized a Git repository."));return true}catch(t){l("Error initializing Git repo:",t);return false}}r.initGitRepoAsync=initGitRepoAsync},292:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.downloadAndExtractGitHubRepositoryAsync=void 0;const o=i(2781);const a=i(9544);const u=i(7240);const l=i(6581);const h=i(7984)("expo:init:github");async function getGitHubRepoAsync(t){const[,r,i,o,u,...l]=t.pathname.split("/");const h=l.join("/");if(o===undefined){const o=await(0,a.fetch)(`https://api.github.com/repos/${r}/${i}`);if(!o.ok&&o.status===404){throw new Error(`GitHub repository not found for url: ${t}`)}else if(!o.ok){throw new Error(`[${o.status}] Failed to fetch GitHub repository information for url: ${t}`)}const u=await o.json();return{owner:r,name:i,branch:u["default_branch"],filePath:h}}if(r&&i&&u&&o==="tree"){return{owner:r,name:i,branch:u,filePath:h}}throw new Error("Malformed GitHub repository response for URL: "+t.toString())}async function isValidGitHubRepoAsync(t){const r=`https://api.github.com/repos/${t.owner}/${t.name}/contents`;const i=`${t.filePath?`/${t.filePath}`:""}/package.json`;const o=await(0,a.fetch)(r+i+`?ref=${t.branch}`);return o.ok}async function extractRemoteGitHubTarballAsync(t,r,i){const h=await(0,a.fetch)(t);if(!h.ok)throw new Error(`Unexpected response: ${h.statusText} (${t})`);if(!h.body)throw new Error(`Unexpected response: no response body (${t})`);const p=r.filePath.replace(/^\//,"").split("/").filter(Boolean);const d=p.length+1;const m=(0,l.createGlobFilter)(!p.length?["*/**","*/ios/.xcode.env"]:[`*/${p.join("/")}/**`,`*/${p.join("/")}/ios/.xcode.env`],{ignore:["**/ios/*.xcworkspace/**"]});await(0,u.extractNpmTarballAsync)(o.Readable.fromWeb(h.body),{...i,filter:m,strip:d})}async function downloadAndExtractGitHubRepositoryAsync(t,r){h("Looking for GitHub repository");const i=await getGitHubRepoAsync(t);const o=await isValidGitHubRepoAsync(i);if(!o){throw new Error(`Could not to locate repository for "${t}", ensure this repository exists`)}const a=`https://codeload.github.com/${i.owner}/${i.name}/tar.gz/${i.branch}`;h("Resolved GitHub repository",i);h("Downloading GitHub repository from:",a);await extractRemoteGitHubTarballAsync(a,i,r)}r.downloadAndExtractGitHubRepositoryAsync=downloadAndExtractGitHubRepositoryAsync},8429:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.withSectionLog=void 0;const a=o(i(2651));const u=i(7943);function withSectionLog(t,r){const i=u.env.CI||u.env.EXPO_DEBUG;const o=(0,a.default)({text:r.pending,isEnabled:!i,stream:i?process.stdout:process.stderr});o.start();return t(o).then((t=>{o.succeed(r.success);return t}),(t=>{o.fail(r.error(t));throw t}))}r.withSectionLog=withSectionLog},7240:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.downloadAndExtractNpmModuleAsync=r.extractNpmTarballAsync=r.extractLocalNpmTarballAsync=r.applyKnownNpmPackageNameRules=r.getResolvedTemplateName=r.splitNpmNameAndTag=r.applyBetaTag=void 0;const a=o(i(5642));const u=o(i(7147));const l=o(i(2037));const h=o(i(1017));const p=i(2781);const d=o(i(8089));const m=i(3837);const g=i(7943);const y=i(6581);const A=i(755);const b=i(3744);const v=i(7984)("expo:init:npm");const w=(0,m.promisify)(p.Stream.pipeline);function getTemporaryCacheFilePath(t="template-cache"){return h.default.join(l.default.tmpdir(),".create-expo-app",t)}function applyBetaTag(t){let[r,i]=splitNpmNameAndTag(t);if(!i&&g.env.EXPO_BETA){v("Using beta tag for",r);i="beta"}return joinNpmNameAndTag(r,i)}r.applyBetaTag=applyBetaTag;function joinNpmNameAndTag(t,r){return[t,r].filter(Boolean).join("@")}function splitNpmNameAndTag(t){const r=t.split("@").filter(Boolean);if(t.startsWith("@")){return["@"+r[0],r[1]]}return[r[0],r[1]]}r.splitNpmNameAndTag=splitNpmNameAndTag;function getResolvedTemplateName(t){let[r,i="latest"]=splitNpmNameAndTag(t);if(r.startsWith("@")){return joinNpmNameAndTag(r,i)}const o="expo-template-";if(A.ALIASES.includes(o+r)){r=o+r}if(A.ALIASES.includes(r)){if(i?.match(/^\d+$/)){return r+"@sdk-"+i}}return joinNpmNameAndTag(r,i)}r.getResolvedTemplateName=getResolvedTemplateName;function applyKnownNpmPackageNameRules(t){while(/^(\.|_)/.test(t)){t=t.substring(1)}t=t.toLowerCase().replace(/[^a-zA-Z0-9._\-/@]/g,"");return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")||null}r.applyKnownNpmPackageNameRules=applyKnownNpmPackageNameRules;async function extractLocalNpmTarballAsync(t,r){const i=u.default.createReadStream(t);await extractNpmTarballAsync(i,r)}r.extractLocalNpmTarballAsync=extractLocalNpmTarballAsync;async function extractNpmTarballAsync(t,r){if(!t){throw new Error("Missing stream")}const{cwd:i,strip:o,name:a,fileList:l=[],filter:h}=r;await u.default.promises.mkdir(i,{recursive:true});await w(t,d.default.extract({cwd:i,filter:h,onentry:(0,y.createEntryResolver)(a),strip:o??1},l))}r.extractNpmTarballAsync=extractNpmTarballAsync;async function npmPackAsync(t,r=undefined,...i){const o=getNpmBin();const l=["pack",t,...i];const h=`${o} ${l.join(" ")}`;v("Run:",h,`(cwd: ${r??process.cwd()})`);if(r){await u.default.promises.mkdir(r,{recursive:true})}let p;try{p=(await(0,a.default)(o,[...l,"--json"],{cwd:r})).stdout?.trim()}catch(t){if(t?.stderr.match(/npm ERR! code E404/)){const r=t.stderr.match(/npm ERR! 404\s+'(.*)' is not in this registry\./)?.[1]??t.stderr;throw new Error(`NPM package not found: `+r)}throw t}if(!p){return null}try{const t=JSON.parse(p);if(Array.isArray(t)&&t.every(isNpmPackageInfo)){return t.map(sanitizeNpmPackageFilename)}else{throw new Error(`Invalid response from npm: ${p}`)}}catch(t){throw new Error(`Could not parse JSON returned from "${h}".\n\n${p}\n\nError: ${t.message}`)}}function getNpmBin(){return process.platform==="win32"?"npm.cmd":"npm"}async function getNpmInfoAsync(t,r){const i=await npmPackAsync(t,r,"--dry-run");if(i?.[0]){return i[0]}throw new Error(`Could not find npm package "${t}"`)}function isNpmPackageInfo(t){return t&&typeof t==="object"&&"id"in t&&"filename"in t&&"version"in t&&"files"in t}function sanitizeNpmPackageFilename(t){if(t.filename.startsWith("@")&&t.name.startsWith("@")){t.filename=t.filename.replace(/^@/,"").replace(/\//,"-")}return t}async function fileExistsAsync(t){try{const r=await u.default.promises.stat(t);return r.isFile()}catch{return false}}async function downloadAndExtractNpmModuleAsync(t,r){const i=getTemporaryCacheFilePath();v(`Looking for NPM tarball (id: ${t}, cache: ${i})`);await u.default.promises.mkdir(i,{recursive:true});const o=await getNpmInfoAsync(t,i);const a=h.default.join(i,o.filename);try{const o=await fileExistsAsync(a);const u=g.env.EXPO_NO_CACHE||r.disableCache;if(u||!o){v(`Downloading tarball for ${t} to ${i}...`);await npmPackAsync(t,i)}}catch(r){b.Log.error("Error downloading template package: "+t);throw r}try{await extractLocalNpmTarballAsync(a,{cwd:r.cwd,name:r.name})}catch(r){b.Log.error("Error extracting template package: "+t);throw r}}r.downloadAndExtractNpmModuleAsync=downloadAndExtractNpmModuleAsync},5897:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const a=o(i(8746));const u=o(i(5418));const l=i(9756);const h=i(7984)("expo:init:update-check");async function shouldUpdate(){try{const t=await(0,u.default)(l);if(t?.latest){console.log();console.log(a.default.yellow.bold(`A new version of \`${l.name}\` is available`));console.log((0,a.default)`You can update by running: {cyan npm install -g ${l.name}}`);console.log()}}catch(t){h("Error checking for update:\n%O",t)}}r["default"]=shouldUpdate},9756:module=>{module.exports=eval("require")("../package.json")},9491:t=>{"use strict";t.exports=require("assert")},4300:t=>{"use strict";t.exports=require("buffer")},2081:t=>{"use strict";t.exports=require("child_process")},2057:t=>{"use strict";t.exports=require("constants")},6113:t=>{"use strict";t.exports=require("crypto")},9523:t=>{"use strict";t.exports=require("dns")},2361:t=>{"use strict";t.exports=require("events")},7147:t=>{"use strict";t.exports=require("fs")},3685:t=>{"use strict";t.exports=require("http")},5687:t=>{"use strict";t.exports=require("https")},8188:t=>{"use strict";t.exports=require("module")},7561:t=>{"use strict";t.exports=require("node:fs")},9411:t=>{"use strict";t.exports=require("node:path")},7742:t=>{"use strict";t.exports=require("node:process")},7261:t=>{"use strict";t.exports=require("node:util")},2037:t=>{"use strict";t.exports=require("os")},1017:t=>{"use strict";t.exports=require("path")},7282:t=>{"use strict";t.exports=require("process")},4521:t=>{"use strict";t.exports=require("readline")},2781:t=>{"use strict";t.exports=require("stream")},1576:t=>{"use strict";t.exports=require("string_decoder")},6224:t=>{"use strict";t.exports=require("tty")},7310:t=>{"use strict";t.exports=require("url")},3837:t=>{"use strict";t.exports=require("util")},1267:t=>{"use strict";t.exports=require("worker_threads")},9796:t=>{"use strict";t.exports=require("zlib")},9539:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isIdentifierChar=isIdentifierChar;r.isIdentifierName=isIdentifierName;r.isIdentifierStart=isIdentifierStart;let i="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let o="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const a=new RegExp("["+i+"]");const u=new RegExp("["+i+o+"]");i=o=null;const l=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const h=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(t,r){let i=65536;for(let o=0,a=r.length;o<a;o+=2){i+=r[o];if(i>t)return false;i+=r[o+1];if(i>=t)return true}return false}function isIdentifierStart(t){if(t<65)return t===36;if(t<=90)return true;if(t<97)return t===95;if(t<=122)return true;if(t<=65535){return t>=170&&a.test(String.fromCharCode(t))}return isInAstralSet(t,l)}function isIdentifierChar(t){if(t<48)return t===36;if(t<58)return true;if(t<65)return false;if(t<=90)return true;if(t<97)return t===95;if(t<=122)return true;if(t<=65535){return t>=170&&u.test(String.fromCharCode(t))}return isInAstralSet(t,l)||isInAstralSet(t,h)}function isIdentifierName(t){let r=true;for(let i=0;i<t.length;i++){let o=t.charCodeAt(i);if((o&64512)===55296&&i+1<t.length){const r=t.charCodeAt(++i);if((r&64512)===56320){o=65536+((o&1023)<<10)+(r&1023)}}if(r){r=false;if(!isIdentifierStart(o)){return false}}else if(!isIdentifierChar(o)){return false}}return!r}},4679:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"isIdentifierChar",{enumerable:true,get:function(){return o.isIdentifierChar}});Object.defineProperty(r,"isIdentifierName",{enumerable:true,get:function(){return o.isIdentifierName}});Object.defineProperty(r,"isIdentifierStart",{enumerable:true,get:function(){return o.isIdentifierStart}});Object.defineProperty(r,"isKeyword",{enumerable:true,get:function(){return a.isKeyword}});Object.defineProperty(r,"isReservedWord",{enumerable:true,get:function(){return a.isReservedWord}});Object.defineProperty(r,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return a.isStrictBindOnlyReservedWord}});Object.defineProperty(r,"isStrictBindReservedWord",{enumerable:true,get:function(){return a.isStrictBindReservedWord}});Object.defineProperty(r,"isStrictReservedWord",{enumerable:true,get:function(){return a.isStrictReservedWord}});var o=i(9539);var a=i(11)},11:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isKeyword=isKeyword;r.isReservedWord=isReservedWord;r.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;r.isStrictBindReservedWord=isStrictBindReservedWord;r.isStrictReservedWord=isStrictReservedWord;const i={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const o=new Set(i.keyword);const a=new Set(i.strict);const u=new Set(i.strictBind);function isReservedWord(t,r){return r&&t==="await"||t==="enum"}function isStrictReservedWord(t,r){return isReservedWord(t,r)||a.has(t)}function isStrictBindOnlyReservedWord(t){return u.has(t)}function isStrictBindReservedWord(t,r){return isStrictReservedWord(t,r)||isStrictBindOnlyReservedWord(t)}function isKeyword(t){return o.has(t)}},932:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=highlight;r.shouldHighlight=shouldHighlight;var o=i(8035);var a=i(4679);var u=_interopRequireWildcard(i(9397),true);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,i=new WeakMap;return(_getRequireWildcardCache=function(t){return t?i:r})(t)}function _interopRequireWildcard(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=_getRequireWildcardCache(r);if(i&&i.has(t))return i.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=a?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,i&&i.set(t,o),o}const l=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,u.createColors)(false):u.default;const compose=(t,r)=>i=>t(r(i));const h=new Set(["as","async","from","get","of","set"]);function getDefs(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.gray,invalid:compose(compose(t.white,t.bgRed),t.bold)}}const p=/\r\n|[\n\r\u2028\u2029]/;const d=/^[()[\]{}]$/;let m;{const t=/^[a-z][\w-]*$/i;const getTokenType=function(r,i,o){if(r.type==="name"){if((0,a.isKeyword)(r.value)||(0,a.isStrictReservedWord)(r.value,true)||h.has(r.value)){return"keyword"}if(t.test(r.value)&&(o[i-1]==="<"||o.slice(i-2,i)==="</")){return"jsxIdentifier"}if(r.value[0]!==r.value[0].toLowerCase()){return"capitalized"}}if(r.type==="punctuator"&&d.test(r.value)){return"bracket"}if(r.type==="invalid"&&(r.value==="@"||r.value==="#")){return"punctuator"}return r.type};m=function*(t){let r;while(r=o.default.exec(t)){const i=o.matchToToken(r);yield{type:getTokenType(i,r.index,t),value:i.value}}}}function highlightTokens(t,r){let i="";for(const{type:o,value:a}of m(r)){const r=t[o];if(r){i+=a.split(p).map((t=>r(t))).join("\n")}else{i+=a}}return i}function shouldHighlight(t){return l.isColorSupported||t.forceColor}let g=undefined;function getColors(t){if(t){var r;(r=g)!=null?r:g=(0,u.createColors)(true);return g}return l}function highlight(t,r={}){if(t!==""&&shouldHighlight(r)){const i=getDefs(getColors(r.forceColor));return highlightTokens(i,t)}else{return t}}{let t,o;r.getChalk=({forceColor:r})=>{var a;(a=t)!=null?a:t=i(6870);if(r){var u;(u=o)!=null?u:o=new t.constructor({enabled:true,level:1});return o}return t}}},3576:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.LRUCache=void 0;const i=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const o=new Set;const a=typeof process==="object"&&!!process?process:{};const emitWarning=(t,r,i,o)=>{typeof a.emitWarning==="function"?a.emitWarning(t,r,i,o):console.error(`[${i}] ${r}: ${t}`)};let u=globalThis.AbortController;let l=globalThis.AbortSignal;if(typeof u==="undefined"){l=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(t,r){this._onabort.push(r)}};u=class AbortController{constructor(){warnACPolyfill()}signal=new l;abort(t){if(this.signal.aborted)return;this.signal.reason=t;this.signal.aborted=true;for(const r of this.signal._onabort){r(t)}this.signal.onabort?.(t)}};let t=a.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!t)return;t=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=t=>!o.has(t);const h=Symbol("type");const isPosInt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t);const getUintArray=t=>!isPosInt(t)?null:t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(t){super(t);this.fill(0)}}class Stack{heap;length;static#s=false;static create(t){const r=getUintArray(t);if(!r)return[];Stack.#s=true;const i=new Stack(t,r);Stack.#s=false;return i}constructor(t,r){if(!Stack.#s){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new r(t);this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class LRUCache{#n;#i;#o;#a;#u;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#c;#h;#f;#p;#d;#m;#g;#y;#A;#b;#v;#w;#E;#_;#S;#C;static unsafeExposeInternals(t){return{starts:t.#w,ttls:t.#E,sizes:t.#v,keyMap:t.#h,keyList:t.#f,valList:t.#p,next:t.#d,prev:t.#m,get head(){return t.#g},get tail(){return t.#y},free:t.#A,isBackgroundFetch:r=>t.#D(r),backgroundFetch:(r,i,o,a)=>t.#x(r,i,o,a),moveToTail:r=>t.#R(r),indexes:r=>t.#O(r),rindexes:r=>t.#F(r),isStale:r=>t.#k(r)}}get max(){return this.#n}get maxSize(){return this.#i}get calculatedSize(){return this.#c}get size(){return this.#l}get fetchMethod(){return this.#u}get dispose(){return this.#o}get disposeAfter(){return this.#a}constructor(t){const{max:r=0,ttl:i,ttlResolution:a=1,ttlAutopurge:u,updateAgeOnGet:l,updateAgeOnHas:h,allowStale:p,dispose:d,disposeAfter:m,noDisposeOnSet:g,noUpdateTTL:y,maxSize:A=0,maxEntrySize:b=0,sizeCalculation:v,fetchMethod:w,noDeleteOnFetchRejection:E,noDeleteOnStaleGet:_,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:C,ignoreFetchAbort:D}=t;if(r!==0&&!isPosInt(r)){throw new TypeError("max option must be a nonnegative integer")}const x=r?getUintArray(r):Array;if(!x){throw new Error("invalid max value: "+r)}this.#n=r;this.#i=A;this.maxEntrySize=b||this.#i;this.sizeCalculation=v;if(this.sizeCalculation){if(!this.#i&&!this.maxEntrySize){throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize")}if(typeof this.sizeCalculation!=="function"){throw new TypeError("sizeCalculation set to non-function")}}if(w!==undefined&&typeof w!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#u=w;this.#S=!!w;this.#h=new Map;this.#f=new Array(r).fill(undefined);this.#p=new Array(r).fill(undefined);this.#d=new x(r);this.#m=new x(r);this.#g=0;this.#y=0;this.#A=Stack.create(r);this.#l=0;this.#c=0;if(typeof d==="function"){this.#o=d}if(typeof m==="function"){this.#a=m;this.#b=[]}else{this.#a=undefined;this.#b=undefined}this.#_=!!this.#o;this.#C=!!this.#a;this.noDisposeOnSet=!!g;this.noUpdateTTL=!!y;this.noDeleteOnFetchRejection=!!E;this.allowStaleOnFetchRejection=!!S;this.allowStaleOnFetchAbort=!!C;this.ignoreFetchAbort=!!D;if(this.maxEntrySize!==0){if(this.#i!==0){if(!isPosInt(this.#i)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#P()}this.allowStale=!!p;this.noDeleteOnStaleGet=!!_;this.updateAgeOnGet=!!l;this.updateAgeOnHas=!!h;this.ttlResolution=isPosInt(a)||a===0?a:1;this.ttlAutopurge=!!u;this.ttl=i||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#T()}if(this.#n===0&&this.ttl===0&&this.#i===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#n&&!this.#i){const t="LRU_CACHE_UNBOUNDED";if(shouldWarn(t)){o.add(t);const r="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(r,"UnboundedCacheWarning",t,LRUCache)}}}getRemainingTTL(t){return this.#h.has(t)?Infinity:0}#T(){const t=new ZeroArray(this.#n);const r=new ZeroArray(this.#n);this.#E=t;this.#w=r;this.#L=(o,a,u=i.now())=>{r[o]=a!==0?u:0;t[o]=a;if(a!==0&&this.ttlAutopurge){const t=setTimeout((()=>{if(this.#k(o)){this.delete(this.#f[o])}}),a+1);if(t.unref){t.unref()}}};this.#I=o=>{r[o]=t[o]!==0?i.now():0};this.#M=(i,a)=>{if(t[a]){const u=t[a];const l=r[a];if(!u||!l)return;i.ttl=u;i.start=l;i.now=o||getNow();const h=i.now-l;i.remainingTTL=u-h}};let o=0;const getNow=()=>{const t=i.now();if(this.ttlResolution>0){o=t;const r=setTimeout((()=>o=0),this.ttlResolution);if(r.unref){r.unref()}}return t};this.getRemainingTTL=i=>{const a=this.#h.get(i);if(a===undefined){return 0}const u=t[a];const l=r[a];if(!u||!l){return Infinity}const h=(o||getNow())-l;return u-h};this.#k=i=>{const a=r[i];const u=t[i];return!!u&&!!a&&(o||getNow())-a>u}}#I=()=>{};#M=()=>{};#L=()=>{};#k=()=>false;#P(){const t=new ZeroArray(this.#n);this.#c=0;this.#v=t;this.#B=r=>{this.#c-=t[r];t[r]=0};this.#N=(t,r,i,o)=>{if(this.#D(r)){return 0}if(!isPosInt(i)){if(o){if(typeof o!=="function"){throw new TypeError("sizeCalculation must be a function")}i=o(r,t);if(!isPosInt(i)){throw new TypeError("sizeCalculation return invalid (expect positive integer)")}}else{throw new TypeError("invalid size value (must be positive integer). "+"When maxSize or maxEntrySize is used, sizeCalculation "+"or size must be set.")}}return i};this.#$=(r,i,o)=>{t[r]=i;if(this.#i){const i=this.#i-t[r];while(this.#c>i){this.#j(true)}}this.#c+=t[r];if(o){o.entrySize=i;o.totalCalculatedSize=this.#c}}}#B=t=>{};#$=(t,r,i)=>{};#N=(t,r,i,o)=>{if(i||o){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#O({allowStale:t=this.allowStale}={}){if(this.#l){for(let r=this.#y;true;){if(!this.#H(r)){break}if(t||!this.#k(r)){yield r}if(r===this.#g){break}else{r=this.#m[r]}}}}*#F({allowStale:t=this.allowStale}={}){if(this.#l){for(let r=this.#g;true;){if(!this.#H(r)){break}if(t||!this.#k(r)){yield r}if(r===this.#y){break}else{r=this.#d[r]}}}}#H(t){return t!==undefined&&this.#h.get(this.#f[t])===t}*entries(){for(const t of this.#O()){if(this.#p[t]!==undefined&&this.#f[t]!==undefined&&!this.#D(this.#p[t])){yield[this.#f[t],this.#p[t]]}}}*rentries(){for(const t of this.#F()){if(this.#p[t]!==undefined&&this.#f[t]!==undefined&&!this.#D(this.#p[t])){yield[this.#f[t],this.#p[t]]}}}*keys(){for(const t of this.#O()){const r=this.#f[t];if(r!==undefined&&!this.#D(this.#p[t])){yield r}}}*rkeys(){for(const t of this.#F()){const r=this.#f[t];if(r!==undefined&&!this.#D(this.#p[t])){yield r}}}*values(){for(const t of this.#O()){const r=this.#p[t];if(r!==undefined&&!this.#D(this.#p[t])){yield this.#p[t]}}}*rvalues(){for(const t of this.#F()){const r=this.#p[t];if(r!==undefined&&!this.#D(this.#p[t])){yield this.#p[t]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(const i of this.#O()){const o=this.#p[i];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)continue;if(t(a,this.#f[i],this)){return this.get(this.#f[i],r)}}}forEach(t,r=this){for(const i of this.#O()){const o=this.#p[i];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)continue;t.call(r,a,this.#f[i],this)}}rforEach(t,r=this){for(const i of this.#F()){const o=this.#p[i];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)continue;t.call(r,a,this.#f[i],this)}}purgeStale(){let t=false;for(const r of this.#F({allowStale:true})){if(this.#k(r)){this.delete(this.#f[r]);t=true}}return t}info(t){const r=this.#h.get(t);if(r===undefined)return undefined;const o=this.#p[r];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)return undefined;const u={value:a};if(this.#E&&this.#w){const t=this.#E[r];const o=this.#w[r];if(t&&o){const r=t-(i.now()-o);u.ttl=r;u.start=Date.now()}}if(this.#v){u.size=this.#v[r]}return u}dump(){const t=[];for(const r of this.#O({allowStale:true})){const o=this.#f[r];const a=this.#p[r];const u=this.#D(a)?a.__staleWhileFetching:a;if(u===undefined||o===undefined)continue;const l={value:u};if(this.#E&&this.#w){l.ttl=this.#E[r];const t=i.now()-this.#w[r];l.start=Math.floor(Date.now()-t)}if(this.#v){l.size=this.#v[r]}t.unshift([o,l])}return t}load(t){this.clear();for(const[r,o]of t){if(o.start){const t=Date.now()-o.start;o.start=i.now()-t}this.set(r,o.value,o)}}set(t,r,i={}){if(r===undefined){this.delete(t);return this}const{ttl:o=this.ttl,start:a,noDisposeOnSet:u=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:h}=i;let{noUpdateTTL:p=this.noUpdateTTL}=i;const d=this.#N(t,r,i.size||0,l);if(this.maxEntrySize&&d>this.maxEntrySize){if(h){h.set="miss";h.maxEntrySizeExceeded=true}this.delete(t);return this}let m=this.#l===0?undefined:this.#h.get(t);if(m===undefined){m=this.#l===0?this.#y:this.#A.length!==0?this.#A.pop():this.#l===this.#n?this.#j(false):this.#l;this.#f[m]=t;this.#p[m]=r;this.#h.set(t,m);this.#d[this.#y]=m;this.#m[m]=this.#y;this.#y=m;this.#l++;this.#$(m,d,h);if(h)h.set="add";p=false}else{this.#R(m);const i=this.#p[m];if(r!==i){if(this.#S&&this.#D(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:r}=i;if(r!==undefined&&!u){if(this.#_){this.#o?.(r,t,"set")}if(this.#C){this.#b?.push([r,t,"set"])}}}else if(!u){if(this.#_){this.#o?.(i,t,"set")}if(this.#C){this.#b?.push([i,t,"set"])}}this.#B(m);this.#$(m,d,h);this.#p[m]=r;if(h){h.set="replace";const t=i&&this.#D(i)?i.__staleWhileFetching:i;if(t!==undefined)h.oldValue=t}}else if(h){h.set="update"}}if(o!==0&&!this.#E){this.#T()}if(this.#E){if(!p){this.#L(m,o,a)}if(h)this.#M(h,m)}if(!u&&this.#C&&this.#b){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}return this}pop(){try{while(this.#l){const t=this.#p[this.#g];this.#j(true);if(this.#D(t)){if(t.__staleWhileFetching){return t.__staleWhileFetching}}else if(t!==undefined){return t}}}finally{if(this.#C&&this.#b){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}}}#j(t){const r=this.#g;const i=this.#f[r];const o=this.#p[r];if(this.#S&&this.#D(o)){o.__abortController.abort(new Error("evicted"))}else if(this.#_||this.#C){if(this.#_){this.#o?.(o,i,"evict")}if(this.#C){this.#b?.push([o,i,"evict"])}}this.#B(r);if(t){this.#f[r]=undefined;this.#p[r]=undefined;this.#A.push(r)}if(this.#l===1){this.#g=this.#y=0;this.#A.length=0}else{this.#g=this.#d[r]}this.#h.delete(i);this.#l--;return r}has(t,r={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:o}=r;const a=this.#h.get(t);if(a!==undefined){const t=this.#p[a];if(this.#D(t)&&t.__staleWhileFetching===undefined){return false}if(!this.#k(a)){if(i){this.#I(a)}if(o){o.has="hit";this.#M(o,a)}return true}else if(o){o.has="stale";this.#M(o,a)}}else if(o){o.has="miss"}return false}peek(t,r={}){const{allowStale:i=this.allowStale}=r;const o=this.#h.get(t);if(o===undefined||!i&&this.#k(o)){return}const a=this.#p[o];return this.#D(a)?a.__staleWhileFetching:a}#x(t,r,i,o){const a=r===undefined?undefined:this.#p[r];if(this.#D(a)){return a}const l=new u;const{signal:h}=i;h?.addEventListener("abort",(()=>l.abort(h.reason)),{signal:l.signal});const p={signal:l.signal,options:i,context:o};const cb=(o,a=false)=>{const{aborted:u}=l.signal;const h=i.ignoreFetchAbort&&o!==undefined;if(i.status){if(u&&!a){i.status.fetchAborted=true;i.status.fetchError=l.signal.reason;if(h)i.status.fetchAbortIgnored=true}else{i.status.fetchResolved=true}}if(u&&!h&&!a){return fetchFail(l.signal.reason)}const m=d;if(this.#p[r]===d){if(o===undefined){if(m.__staleWhileFetching){this.#p[r]=m.__staleWhileFetching}else{this.delete(t)}}else{if(i.status)i.status.fetchUpdated=true;this.set(t,o,p.options)}}return o};const eb=t=>{if(i.status){i.status.fetchRejected=true;i.status.fetchError=t}return fetchFail(t)};const fetchFail=o=>{const{aborted:a}=l.signal;const u=a&&i.allowStaleOnFetchAbort;const h=u||i.allowStaleOnFetchRejection;const p=h||i.noDeleteOnFetchRejection;const m=d;if(this.#p[r]===d){const i=!p||m.__staleWhileFetching===undefined;if(i){this.delete(t)}else if(!u){this.#p[r]=m.__staleWhileFetching}}if(h){if(i.status&&m.__staleWhileFetching!==undefined){i.status.returnedStale=true}return m.__staleWhileFetching}else if(m.__returned===m){throw o}};const pcall=(r,o)=>{const u=this.#u?.(t,a,p);if(u&&u instanceof Promise){u.then((t=>r(t===undefined?undefined:t)),o)}l.signal.addEventListener("abort",(()=>{if(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort){r(undefined);if(i.allowStaleOnFetchAbort){r=t=>cb(t,true)}}}))};if(i.status)i.status.fetchDispatched=true;const d=new Promise(pcall).then(cb,eb);const m=Object.assign(d,{__abortController:l,__staleWhileFetching:a,__returned:undefined});if(r===undefined){this.set(t,m,{...p.options,status:undefined});r=this.#h.get(t)}else{this.#p[r]=m}return m}#D(t){if(!this.#S)return false;const r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof u}async fetch(t,r={}){const{allowStale:i=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:u=this.ttl,noDisposeOnSet:l=this.noDisposeOnSet,size:h=0,sizeCalculation:p=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:m=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:A=this.allowStaleOnFetchAbort,context:b,forceRefresh:v=false,status:w,signal:E}=r;if(!this.#S){if(w)w.fetch="get";return this.get(t,{allowStale:i,updateAgeOnGet:o,noDeleteOnStaleGet:a,status:w})}const _={allowStale:i,updateAgeOnGet:o,noDeleteOnStaleGet:a,ttl:u,noDisposeOnSet:l,size:h,sizeCalculation:p,noUpdateTTL:d,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:A,ignoreFetchAbort:y,status:w,signal:E};let S=this.#h.get(t);if(S===undefined){if(w)w.fetch="miss";const r=this.#x(t,S,_,b);return r.__returned=r}else{const r=this.#p[S];if(this.#D(r)){const t=i&&r.__staleWhileFetching!==undefined;if(w){w.fetch="inflight";if(t)w.returnedStale=true}return t?r.__staleWhileFetching:r.__returned=r}const a=this.#k(S);if(!v&&!a){if(w)w.fetch="hit";this.#R(S);if(o){this.#I(S)}if(w)this.#M(w,S);return r}const u=this.#x(t,S,_,b);const l=u.__staleWhileFetching!==undefined;const h=l&&i;if(w){w.fetch=a?"stale":"refresh";if(h&&a)w.returnedStale=true}return h?u.__staleWhileFetching:u.__returned=u}}get(t,r={}){const{allowStale:i=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:u}=r;const l=this.#h.get(t);if(l!==undefined){const r=this.#p[l];const h=this.#D(r);if(u)this.#M(u,l);if(this.#k(l)){if(u)u.get="stale";if(!h){if(!a){this.delete(t)}if(u&&i)u.returnedStale=true;return i?r:undefined}else{if(u&&i&&r.__staleWhileFetching!==undefined){u.returnedStale=true}return i?r.__staleWhileFetching:undefined}}else{if(u)u.get="hit";if(h){return r.__staleWhileFetching}this.#R(l);if(o){this.#I(l)}return r}}else if(u){u.get="miss"}}#G(t,r){this.#m[r]=t;this.#d[t]=r}#R(t){if(t!==this.#y){if(t===this.#g){this.#g=this.#d[t]}else{this.#G(this.#m[t],this.#d[t])}this.#G(this.#y,t);this.#y=t}}delete(t){let r=false;if(this.#l!==0){const i=this.#h.get(t);if(i!==undefined){r=true;if(this.#l===1){this.clear()}else{this.#B(i);const r=this.#p[i];if(this.#D(r)){r.__abortController.abort(new Error("deleted"))}else if(this.#_||this.#C){if(this.#_){this.#o?.(r,t,"delete")}if(this.#C){this.#b?.push([r,t,"delete"])}}this.#h.delete(t);this.#f[i]=undefined;this.#p[i]=undefined;if(i===this.#y){this.#y=this.#m[i]}else if(i===this.#g){this.#g=this.#d[i]}else{const t=this.#m[i];this.#d[t]=this.#d[i];const r=this.#d[i];this.#m[r]=this.#m[i]}this.#l--;this.#A.push(i)}}}if(this.#C&&this.#b?.length){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}return r}clear(){for(const t of this.#F({allowStale:true})){const r=this.#p[t];if(this.#D(r)){r.__abortController.abort(new Error("deleted"))}else{const i=this.#f[t];if(this.#_){this.#o?.(r,i,"delete")}if(this.#C){this.#b?.push([r,i,"delete"])}}}this.#h.clear();this.#p.fill(undefined);this.#f.fill(undefined);if(this.#E&&this.#w){this.#E.fill(0);this.#w.fill(0)}if(this.#v){this.#v.fill(0)}this.#g=0;this.#y=0;this.#A.length=0;this.#c=0;this.#l=0;if(this.#C&&this.#b){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}}}r.LRUCache=LRUCache},2548:t=>{"use strict";t.exports=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","❤️ "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}')},4147:t=>{"use strict";t.exports=JSON.parse('{"name":"create-expo","version":"3.1.3","bin":"./build/index.js","main":"build","description":"Create universal Expo apps","license":"BSD-3-Clause","keywords":["expo","react-native","react"],"homepage":"https://docs.expo.dev","repository":{"type":"git","url":"https://github.com/expo/expo.git","directory":"packages/create-expo"},"author":"Evan Bacon <bacon@expo.io> (https://github.com/evanbacon)","files":["build","template"],"engines":{"node":">=18.13.0"},"scripts":{"build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","prepare":"expo-module clean && yarn run build:prod","clean":"expo-module clean","lint":"expo-module lint","typecheck":"expo-module typecheck","test":"expo-module test","test:e2e":"expo-module test --config e2e/jest.config.js --runInBand","watch":"yarn run build --watch","prepublishOnly":"expo-module prepublishOnly"},"devDependencies":{"@expo/config":"~10.0.4","@expo/json-file":"^9.0.0","@expo/package-manager":"^1.5.0","@expo/spawn-async":"^1.7.2","@octokit/types":"^13.5.0","@types/debug":"^4.1.7","@types/getenv":"^1.0.0","@types/node":"^18.19.34","@types/picomatch":"^2.3.3","@types/prompts":"2.0.14","@types/tar":"^6.1.2","@vercel/ncc":"^0.38.1","arg":"^5.0.2","chalk":"^4.0.0","debug":"^4.3.4","expo-module-scripts":"^4.0.0","fast-glob":"^3.3.2","getenv":"^1.0.0","nock":"^14.0.0-beta.7","ora":"3.4.0","picomatch":"^2.3.1","prompts":"^2.4.2","tar":"^6.2.1","update-check":"^1.5.4"},"gitHead":"728158f99d680cf64fb06f08301d3806c18c6f63"}')}};var __webpack_module_cache__={};function __nccwpck_require__(t){var r=__webpack_module_cache__[t];if(r!==undefined){return r.exports}var i=__webpack_module_cache__[t]={id:t,loaded:false,exports:{}};var o=true;try{__webpack_modules__[t].call(i.exports,i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete __webpack_module_cache__[t]}i.loaded=true;return i.exports}(()=>{__nccwpck_require__.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(2855);module.exports=__webpack_exports__})();