create-chayns-app 1.2.0-beta.5 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +67 -67
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
|
-
var
|
|
3
|
-
`),l=o.length;for(l>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());l-- >0;)
|
|
4
|
-
`+r,width:s=80}=e,n=(i+r).match(/[^\S\n]/g)||[];s-=n.length;let o=`.{1,${s}}([\\s\\u200B]+|$)|[^\\s\\u200B]+?([\\s\\u200B]+|$)`,
|
|
5
|
-
`)i.name="enter";else if(t===" ")i.name="tab";else if(t==="\b"||t==="\x7F"||t==="\x1B\x7F"||t==="\x1B\b")i.name="backspace",i.meta=t.charAt(0)==="\x1B";else if(t==="\x1B"||t==="\x1B\x1B")i.name="escape",i.meta=t.length===2;else if(t===" "||t==="\x1B ")i.name="space",i.meta=t.length===2;else if(t<="")i.name=String.fromCharCode(t.charCodeAt(0)+97-1),i.ctrl=!0;else if(t.length===1&&t>="0"&&t<="9")i.name="number";else if(t.length===1&&t>="a"&&t<="z")i.name=t;else if(t.length===1&&t>="A"&&t<="Z")i.name=t.toLowerCase(),i.shift=!0;else if(r=tm.exec(t))i.meta=!0,i.shift=/^[A-Z]$/.test(r[1]);else if(r=rm.exec(t)){let s=[...t];s[0]==="\x1B"&&s[1]==="\x1B"&&(i.option=!0);let n=[r[1],r[2],r[4],r[6]].filter(Boolean).join(""),o=(r[3]||r[5]||1)-1;i.ctrl=!!(o&4),i.meta=!!(o&10),i.shift=!!(o&1),i.code=n,i.name=im[n],i.shift=sm(n)||i.shift,i.ctrl=nm(n)||i.ctrl}return i};er.listen=(t={},e)=>{let{stdin:r}=t;if(!r||r!==process.stdin&&!r.isTTY)throw new Error("Invalid stream passed");let i=wu.createInterface({terminal:!0,input:r});wu.emitKeypressEvents(r,i);let s=new em((u,a)=>e(u,er(u,a),i)),n=r.isRaw;return r.isTTY&&r.setRawMode(!0),r.on("keypress",s.enqueue),i.resume(),()=>{r.isTTY&&r.setRawMode(n),r.removeListener("keypress",s.enqueue),s.destroy(),i.pause(),i.close()}};er.action=(t,e,r)=>{let i={...Jd,...r};return e.ctrl?(e.action=i.ctrl[e.name],e):e.option&&i.option?(e.action=i.option[e.name],e):e.shift?(e.action=i.shift[e.name],e):(e.action=i.keys[e.name],e)};vu.exports=er});var Au=p((lE,xu)=>{"use strict";xu.exports=t=>{t.timers=t.timers||{};let e=t.options.timers;if(e)for(let r of Object.keys(e)){let i=e[r];typeof i=="number"&&(i={interval:i}),om(t,r,i)}};function om(t,e,r={}){let i=t.timers[e]={name:e,start:Date.now(),ms:0,tick:0},s=r.interval||120;i.frames=r.frames||[],i.loading=!0;let n=setInterval(()=>{i.ms=Date.now()-i.start,i.tick++,t.render()},s);return i.stop=()=>{i.loading=!1,clearInterval(n)},Reflect.defineProperty(i,"interval",{value:n}),t.once("close",()=>i.stop()),i.stop}});var Ou=p((cE,Su)=>{"use strict";var{define:um,width:am}=te(),Di=class{constructor(e){let r=e.options;um(this,"_prompt",e),this.type=e.type,this.name=e.name,this.message="",this.header="",this.footer="",this.error="",this.hint="",this.input="",this.cursor=0,this.index=0,this.lines=0,this.tick=0,this.prompt="",this.buffer="",this.width=am(r.stdout||process.stdout),Object.assign(this,r),this.name=this.name||this.message,this.message=this.message||this.name,this.symbols=e.symbols,this.styles=e.styles,this.required=new Set,this.cancelled=!1,this.submitted=!1}clone(){let e={...this};return e.status=this.status,e.buffer=Buffer.from(e.buffer),delete e.clone,e}set color(e){this._color=e}get color(){let e=this.prompt.styles;if(this.cancelled)return e.cancelled;if(this.submitted)return e.submitted;let r=this._color||e[this.status];return typeof r=="function"?r:e.pending}set loading(e){this._loading=e}get loading(){return typeof this._loading=="boolean"?this._loading:this.loadingChoices?"choices":!1}get status(){return this.cancelled?"cancelled":this.submitted?"submitted":"pending"}};Su.exports=Di});var Bu=p((hE,Pu)=>{"use strict";var gi=te(),ee=Xt(),yi={default:ee.noop,noop:ee.noop,set inverse(t){this._inverse=t},get inverse(){return this._inverse||gi.inverse(this.primary)},set complement(t){this._complement=t},get complement(){return this._complement||gi.complement(this.primary)},primary:ee.cyan,success:ee.green,danger:ee.magenta,strong:ee.bold,warning:ee.yellow,muted:ee.dim,disabled:ee.gray,dark:ee.dim.gray,underline:ee.underline,set info(t){this._info=t},get info(){return this._info||this.primary},set em(t){this._em=t},get em(){return this._em||this.primary.underline},set heading(t){this._heading=t},get heading(){return this._heading||this.muted.underline},set pending(t){this._pending=t},get pending(){return this._pending||this.primary},set submitted(t){this._submitted=t},get submitted(){return this._submitted||this.success},set cancelled(t){this._cancelled=t},get cancelled(){return this._cancelled||this.danger},set typing(t){this._typing=t},get typing(){return this._typing||this.dim},set placeholder(t){this._placeholder=t},get placeholder(){return this._placeholder||this.primary.dim},set highlight(t){this._highlight=t},get highlight(){return this._highlight||this.inverse}};yi.merge=(t={})=>{t.styles&&typeof t.styles.enabled=="boolean"&&(ee.enabled=t.styles.enabled),t.styles&&typeof t.styles.visible=="boolean"&&(ee.visible=t.styles.visible);let e=gi.merge({},yi,t.styles);delete e.merge;for(let r of Object.keys(ee))hasOwnProperty.call(e,r)||Reflect.defineProperty(e,r,{get:()=>ee[r]});for(let r of Object.keys(ee.styles))hasOwnProperty.call(e,r)||Reflect.defineProperty(e,r,{get:()=>ee[r]});return e};Pu.exports=yi});var Ru=p((fE,Tu)=>{"use strict";var _i=process.platform==="win32",Be=Xt(),lm=te(),bi={...Be.symbols,upDownDoubleArrow:"\u21D5",upDownDoubleArrow2:"\u2B0D",upDownArrow:"\u2195",asterisk:"*",asterism:"\u2042",bulletWhite:"\u25E6",electricArrow:"\u2301",ellipsisLarge:"\u22EF",ellipsisSmall:"\u2026",fullBlock:"\u2588",identicalTo:"\u2261",indicator:Be.symbols.check,leftAngle:"\u2039",mark:"\u203B",minus:"\u2212",multiplication:"\xD7",obelus:"\xF7",percent:"%",pilcrow:"\xB6",pilcrow2:"\u2761",pencilUpRight:"\u2710",pencilDownRight:"\u270E",pencilRight:"\u270F",plus:"+",plusMinus:"\xB1",pointRight:"\u261E",rightAngle:"\u203A",section:"\xA7",hexagon:{off:"\u2B21",on:"\u2B22",disabled:"\u2B22"},ballot:{on:"\u2611",off:"\u2610",disabled:"\u2612"},stars:{on:"\u2605",off:"\u2606",disabled:"\u2606"},folder:{on:"\u25BC",off:"\u25B6",disabled:"\u25B6"},prefix:{pending:Be.symbols.question,submitted:Be.symbols.check,cancelled:Be.symbols.cross},separator:{pending:Be.symbols.pointerSmall,submitted:Be.symbols.middot,cancelled:Be.symbols.middot},radio:{off:_i?"( )":"\u25EF",on:_i?"(*)":"\u25C9",disabled:_i?"(|)":"\u24BE"},numbers:["\u24EA","\u2460","\u2461","\u2462","\u2463","\u2464","\u2465","\u2466","\u2467","\u2468","\u2469","\u246A","\u246B","\u246C","\u246D","\u246E","\u246F","\u2470","\u2471","\u2472","\u2473","\u3251","\u3252","\u3253","\u3254","\u3255","\u3256","\u3257","\u3258","\u3259","\u325A","\u325B","\u325C","\u325D","\u325E","\u325F","\u32B1","\u32B2","\u32B3","\u32B4","\u32B5","\u32B6","\u32B7","\u32B8","\u32B9","\u32BA","\u32BB","\u32BC","\u32BD","\u32BE","\u32BF"]};bi.merge=t=>{let e=lm.merge({},Be.symbols,bi,t.symbols);return delete e.merge,e};Tu.exports=bi});var $u=p((pE,ku)=>{"use strict";var cm=Bu(),hm=Ru(),fm=te();ku.exports=t=>{t.options=fm.merge({},t.options.theme,t.options),t.symbols=hm.merge(t.options),t.styles=cm.merge(t.options)}});var Mu=p((Lu,Nu)=>{"use strict";var Iu=process.env.TERM_PROGRAM==="Apple_Terminal",pm=Ie(),Fi=te(),ye=Nu.exports=Lu,K="\x1B[",ju="\x07",Ei=!1,je=ye.code={bell:ju,beep:ju,beginning:`${K}G`,down:`${K}J`,esc:K,getPosition:`${K}6n`,hide:`${K}?25l`,line:`${K}2K`,lineEnd:`${K}K`,lineStart:`${K}1K`,restorePosition:K+(Iu?"8":"u"),savePosition:K+(Iu?"7":"s"),screen:`${K}2J`,show:`${K}?25h`,up:`${K}1J`},Ye=ye.cursor={get hidden(){return Ei},hide(){return Ei=!0,je.hide},show(){return Ei=!1,je.show},forward:(t=1)=>`${K}${t}C`,backward:(t=1)=>`${K}${t}D`,nextLine:(t=1)=>`${K}E`.repeat(t),prevLine:(t=1)=>`${K}F`.repeat(t),up:(t=1)=>t?`${K}${t}A`:"",down:(t=1)=>t?`${K}${t}B`:"",right:(t=1)=>t?`${K}${t}C`:"",left:(t=1)=>t?`${K}${t}D`:"",to(t,e){return e?`${K}${e+1};${t+1}H`:`${K}${t+1}G`},move(t=0,e=0){let r="";return r+=t<0?Ye.left(-t):t>0?Ye.right(t):"",r+=e<0?Ye.up(-e):e>0?Ye.down(e):"",r},strLen(t){for(var e=0,r=t.length,i=-1,s=0;s<r;s++)i=t.charCodeAt(s),i>=0&&i<=128?e+=1:e+=2;return e},restore(t={}){let{after:e,cursor:r,initial:i,input:s,prompt:n,size:o,value:u}=t;if(i=Fi.isPrimitive(i)?String(i):"",s=Fi.isPrimitive(s)?String(s):"",u=Fi.isPrimitive(u)?String(u):"",o){let a=ye.cursor.up(o)+ye.cursor.to(this.strLen(n)),l=s.length-r;return l>0&&(a+=ye.cursor.left(l)),a}if(u||e){let a=!s&&i?-this.strLen(i):-this.strLen(s)+r;return e&&(a-=this.strLen(e)),s===""&&i&&!n.includes(i)&&(a+=this.strLen(i)),ye.cursor.move(a)}}},Ci=ye.erase={screen:je.screen,up:je.up,down:je.down,line:je.line,lineEnd:je.lineEnd,lineStart:je.lineStart,lines(t){let e="";for(let r=0;r<t;r++)e+=ye.erase.line+(r<t-1?ye.cursor.up(1):"");return t&&(e+=ye.code.beginning),e}};ye.clear=(t="",e=process.stdout.columns)=>{if(!e)return Ci.line+Ye.to(0);let r=n=>[...pm(n)].length,i=t.split(/\r?\n/),s=0;for(let n of i)s+=1+Math.floor(Math.max(r(n)-1,0)/e);return(Ci.line+Ye.prevLine()).repeat(s-1)+Ci.line+Ye.to(0)}});var ot=p((dE,Hu)=>{"use strict";var dm=require("events"),qu=Ie(),wi=mi(),mm=Au(),Dm=Ou(),gm=$u(),oe=te(),Qe=Mu(),vi=class t extends dm{constructor(e={}){super(),this.name=e.name,this.type=e.type,this.options=e,gm(this),mm(this),this.state=new Dm(this),this.initial=[e.initial,e.default].find(r=>r!=null),this.stdout=e.stdout||process.stdout,this.stdin=e.stdin||process.stdin,this.scale=e.scale||1,this.term=this.options.term||process.env.TERM_PROGRAM,this.margin=_m(this.options.margin),this.setMaxListeners(0),ym(this)}async keypress(e,r={}){this.keypressed=!0;let i=wi.action(e,wi(e,r),this.options.actions);this.state.keypress=i,this.emit("keypress",e,i),this.emit("state",this.state.clone());let s=this.options[i.action]||this[i.action]||this.dispatch;if(typeof s=="function")return await s.call(this,e,i);this.alert()}alert(){delete this.state.alert,this.options.show===!1?this.emit("alert"):this.stdout.write(Qe.code.beep)}cursorHide(){this.stdout.write(Qe.cursor.hide());let e=oe.onExit(()=>this.cursorShow());this.on("close",()=>{this.cursorShow(),e()})}cursorShow(){this.stdout.write(Qe.cursor.show())}write(e){e&&(this.stdout&&this.state.show!==!1&&this.stdout.write(e),this.state.buffer+=e)}clear(e=0){let r=this.state.buffer;this.state.buffer="",!(!r&&!e||this.options.show===!1)&&this.stdout.write(Qe.cursor.down(e)+Qe.clear(r,this.width))}restore(){if(this.state.closed||this.options.show===!1)return;let{prompt:e,after:r,rest:i}=this.sections(),{cursor:s,initial:n="",input:o="",value:u=""}=this,a=this.state.size=i.length,l={after:r,cursor:s,initial:n,input:o,prompt:e,size:a,value:u},c=Qe.cursor.restore(l);c&&this.stdout.write(c)}sections(){let{buffer:e,input:r,prompt:i}=this.state;i=qu(i);let s=qu(e),n=s.indexOf(i),o=s.slice(0,n),a=s.slice(n).split(`
|
|
6
|
-
`),l=
|
|
2
|
+
var SD=Object.create;var nu=Object.defineProperty;var OD=Object.getOwnPropertyDescriptor;var RD=Object.getOwnPropertyNames;var TD=Object.getPrototypeOf,PD=Object.prototype.hasOwnProperty;var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var $D=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of RD(e))!PD.call(t,s)&&s!==r&&nu(t,s,{get:()=>e[s],enumerable:!(i=OD(e,s))||i.enumerable});return t};var q=(t,e,r)=>(r=t!=null?SD(TD(t)):{},$D(e||!t||!t.__esModule?nu(r,"default",{value:t,enumerable:!0}):r,t));var lu=p((Lx,kt)=>{"use strict";var BD=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",ID=typeof process<"u"&&process.platform==="win32",ou=typeof process<"u"&&process.platform==="linux",Ui={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",question:"?",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},au=Object.assign({},Ui,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),uu=Object.assign({},Ui,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:ou?"\u25B8":"\u276F",pointerSmall:ou?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});kt.exports=ID&&!BD?au:uu;Reflect.defineProperty(kt.exports,"common",{enumerable:!1,value:Ui});Reflect.defineProperty(kt.exports,"windows",{enumerable:!1,value:au});Reflect.defineProperty(kt.exports,"other",{enumerable:!1,value:uu})});var yr=p((Nx,zi)=>{"use strict";var kD=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),LD=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,ND=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,cu=()=>{let t={enabled:ND(),visible:!0,styles:{},keys:{}},e=n=>{let o=n.open=`\x1B[${n.codes[0]}m`,a=n.close=`\x1B[${n.codes[1]}m`,u=n.regex=new RegExp(`\\u001b\\[${n.codes[1]}m`,"g");return n.wrap=(l,c)=>{l.includes(a)&&(l=l.replace(u,a+o));let h=o+l+a;return c?h.replace(/\r*\n/g,`${a}$&${o}`):h},n},r=(n,o,a)=>typeof n=="function"?n(o):n.wrap(o,a),i=(n,o)=>{if(n===""||n==null)return"";if(t.enabled===!1)return n;if(t.visible===!1)return"";let a=""+n,u=a.includes(`
|
|
3
|
+
`),l=o.length;for(l>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());l-- >0;)a=r(t.styles[o[l]],a,u);return a},s=(n,o,a)=>{t.styles[n]=e({name:n,codes:o}),(t.keys[a]||(t.keys[a]=[])).push(n),Reflect.defineProperty(t,n,{configurable:!0,enumerable:!0,set(l){t.alias(n,l)},get(){let l=c=>i(c,l.stack);return Reflect.setPrototypeOf(l,t),l.stack=this.stack?this.stack.concat(n):[n],l}})};return s("reset",[0,0],"modifier"),s("bold",[1,22],"modifier"),s("dim",[2,22],"modifier"),s("italic",[3,23],"modifier"),s("underline",[4,24],"modifier"),s("inverse",[7,27],"modifier"),s("hidden",[8,28],"modifier"),s("strikethrough",[9,29],"modifier"),s("black",[30,39],"color"),s("red",[31,39],"color"),s("green",[32,39],"color"),s("yellow",[33,39],"color"),s("blue",[34,39],"color"),s("magenta",[35,39],"color"),s("cyan",[36,39],"color"),s("white",[37,39],"color"),s("gray",[90,39],"color"),s("grey",[90,39],"color"),s("bgBlack",[40,49],"bg"),s("bgRed",[41,49],"bg"),s("bgGreen",[42,49],"bg"),s("bgYellow",[43,49],"bg"),s("bgBlue",[44,49],"bg"),s("bgMagenta",[45,49],"bg"),s("bgCyan",[46,49],"bg"),s("bgWhite",[47,49],"bg"),s("blackBright",[90,39],"bright"),s("redBright",[91,39],"bright"),s("greenBright",[92,39],"bright"),s("yellowBright",[93,39],"bright"),s("blueBright",[94,39],"bright"),s("magentaBright",[95,39],"bright"),s("cyanBright",[96,39],"bright"),s("whiteBright",[97,39],"bright"),s("bgBlackBright",[100,49],"bgBright"),s("bgRedBright",[101,49],"bgBright"),s("bgGreenBright",[102,49],"bgBright"),s("bgYellowBright",[103,49],"bgBright"),s("bgBlueBright",[104,49],"bgBright"),s("bgMagentaBright",[105,49],"bgBright"),s("bgCyanBright",[106,49],"bgBright"),s("bgWhiteBright",[107,49],"bgBright"),t.ansiRegex=LD,t.hasColor=t.hasAnsi=n=>(t.ansiRegex.lastIndex=0,typeof n=="string"&&n!==""&&t.ansiRegex.test(n)),t.alias=(n,o)=>{let a=typeof o=="string"?t[o]:o;if(typeof a!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");a.stack||(Reflect.defineProperty(a,"name",{value:n}),t.styles[n]=a,a.stack=[n]),Reflect.defineProperty(t,n,{configurable:!0,enumerable:!0,set(u){t.alias(n,u)},get(){let u=l=>i(l,u.stack);return Reflect.setPrototypeOf(u,t),u.stack=this.stack?this.stack.concat(a.stack):a.stack,u}})},t.theme=n=>{if(!kD(n))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(n))t.alias(o,n[o]);return t},t.alias("unstyle",n=>typeof n=="string"&&n!==""?(t.ansiRegex.lastIndex=0,n.replace(t.ansiRegex,"")):""),t.alias("noop",n=>n),t.none=t.clear=t.noop,t.stripColor=t.unstyle,t.symbols=lu(),t.define=s,t};zi.exports=cu();zi.exports.create=cu});var ne=p(N=>{"use strict";var qD=Object.prototype.toString,Ee=yr(),hu=!1,Lt=new Set,fu={yellow:"blue",cyan:"red",green:"magenta",black:"white",blue:"yellow",red:"cyan",magenta:"green",white:"black"};N.longest=(t,e)=>t.reduce((r,i)=>Math.max(r,e?i[e].length:i.length),0);N.hasColor=t=>!!t&&Ee.hasColor(t);var Er=N.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);N.nativeType=t=>qD.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"");N.isAsyncFn=t=>N.nativeType(t)==="asyncfunction";N.isPrimitive=t=>t!=null&&typeof t!="object"&&typeof t!="function";N.resolve=(t,e,...r)=>typeof e=="function"?e.call(t,...r):e;N.scrollDown=(t=[])=>[...t.slice(1),t[0]];N.scrollUp=(t=[])=>[t.pop(),...t];N.reorder=(t=[])=>{let e=t.slice();return e.sort((r,i)=>r.index>i.index?1:r.index<i.index?-1:0),e};N.swap=(t,e,r)=>{let i=t.length,s=r===i?0:r<0?i-1:r,n=t[e];t[e]=t[s],t[s]=n};N.width=(t,e=80)=>{let r=t&&t.columns?t.columns:e;return t&&typeof t.getWindowSize=="function"&&(r=t.getWindowSize()[0]),process.platform==="win32"?r-1:r};N.height=(t,e=20)=>{let r=t&&t.rows?t.rows:e;return t&&typeof t.getWindowSize=="function"&&(r=t.getWindowSize()[1]),r};N.wordWrap=(t,e={})=>{if(!t)return t;typeof e=="number"&&(e={width:e});let{indent:r="",newline:i=`
|
|
4
|
+
`+r,width:s=80}=e,n=(i+r).match(/[^\S\n]/g)||[];s-=n.length;let o=`.{1,${s}}([\\s\\u200B]+|$)|[^\\s\\u200B]+?([\\s\\u200B]+|$)`,a=t.trim(),u=new RegExp(o,"g"),l=a.match(u)||[];return l=l.map(c=>c.replace(/\n$/,"")),e.padEnd&&(l=l.map(c=>c.padEnd(s," "))),e.padStart&&(l=l.map(c=>c.padStart(s," "))),r+l.join(i)};N.unmute=t=>{let e=t.stack.find(i=>Ee.keys.color.includes(i));return e?Ee[e]:t.stack.find(i=>i.slice(2)==="bg")?Ee[e.slice(2)]:i=>i};N.pascal=t=>t?t[0].toUpperCase()+t.slice(1):"";N.inverse=t=>{if(!t||!t.stack)return t;let e=t.stack.find(i=>Ee.keys.color.includes(i));if(e){let i=Ee["bg"+N.pascal(e)];return i?i.black:t}let r=t.stack.find(i=>i.slice(0,2)==="bg");return r?Ee[r.slice(2).toLowerCase()]||t:Ee.none};N.complement=t=>{if(!t||!t.stack)return t;let e=t.stack.find(i=>Ee.keys.color.includes(i)),r=t.stack.find(i=>i.slice(0,2)==="bg");if(e&&!r)return Ee[fu[e]||e];if(r){let i=r.slice(2).toLowerCase(),s=fu[i];return s&&Ee["bg"+N.pascal(s)]||t}return Ee.none};N.meridiem=t=>{let e=t.getHours(),r=t.getMinutes(),i=e>=12?"pm":"am";e=e%12;let s=e===0?12:e,n=r<10?"0"+r:r;return s+":"+n+" "+i};N.set=(t={},e="",r)=>e.split(".").reduce((i,s,n,o)=>{let a=o.length-1>n?i[s]||{}:r;return!N.isObject(a)&&n<o.length-1&&(a={}),i[s]=a},t);N.get=(t={},e="",r)=>{let i=t[e]==null?e.split(".").reduce((s,n)=>s&&s[n],t):t[e];return i??r};N.mixin=(t,e)=>{if(!Er(t))return e;if(!Er(e))return t;for(let r of Object.keys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(hasOwnProperty.call(i,"value"))if(hasOwnProperty.call(t,r)&&Er(i.value)){let s=Object.getOwnPropertyDescriptor(t,r);Er(s.value)&&s.value!==i.value?t[r]=N.merge({},t[r],e[r]):Reflect.defineProperty(t,r,i)}else Reflect.defineProperty(t,r,i);else Reflect.defineProperty(t,r,i)}return t};N.merge=(...t)=>{let e={};for(let r of t)N.mixin(e,r);return e};N.mixinEmitter=(t,e)=>{let r=e.constructor.prototype;for(let i of Object.keys(r)){let s=r[i];typeof s=="function"?N.define(t,i,s.bind(e)):N.define(t,i,s)}};var _r=(t,e)=>{hu||(hu=!0,Lt.forEach(r=>r()),t===!0&&process.exit(128+e))},pu=_r.bind(null,!0,15),du=_r.bind(null,!0,2);N.onExit=t=>(Lt.size===0&&(process.once("SIGTERM",pu),process.once("SIGINT",du),process.once("exit",_r)),Lt.add(t),()=>{Lt.delete(t),Lt.size===0&&(process.off("SIGTERM",pu),process.off("SIGINT",du),process.off("exit",_r))});N.define=(t,e,r)=>{Reflect.defineProperty(t,e,{value:r})};N.defineExport=(t,e,r)=>{let i;Reflect.defineProperty(t,e,{enumerable:!0,configurable:!0,set(s){i=s},get(){return i?i():r()}})}});var gu=p((jx,mu)=>{"use strict";mu.exports=({onlyFirst:t=!1}={})=>{let e=["[\\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(e,t?void 0:"g")}});var ze=p((Mx,Du)=>{"use strict";var jD=gu();Du.exports=t=>typeof t=="string"?t.replace(jD(),""):t});var yu=p(Dt=>{"use strict";Dt.ctrl={a:"first",b:"backward",c:"cancel",d:"deleteForward",e:"last",f:"forward",g:"reset",i:"tab",k:"cutForward",l:"reset",n:"newItem",m:"cancel",j:"submit",p:"search",r:"remove",s:"save",u:"undo",w:"cutLeft",x:"toggleCursor",v:"paste"};Dt.shift={up:"shiftUp",down:"shiftDown",left:"shiftLeft",right:"shiftRight",tab:"prev"};Dt.fn={up:"pageUp",down:"pageDown",left:"pageLeft",right:"pageRight",delete:"deleteForward"};Dt.option={b:"backward",f:"forward",d:"cutRight",left:"cutLeft",up:"altUp",down:"altDown"};Dt.keys={pageup:"pageUp",pagedown:"pageDown",home:"home",end:"end",cancel:"cancel",delete:"deleteForward",backspace:"delete",down:"down",enter:"submit",escape:"cancel",left:"left",space:"space",number:"number",return:"submit",right:"right",tab:"next",up:"up"}});var _u=p((Vx,Eu)=>{"use strict";Eu.exports=class{_queue=[];_executing=!1;_jobRunner=null;constructor(e){this._jobRunner=e}enqueue=(...e)=>{this._queue.push(e),this._dequeue()};destroy(){this._queue.length=0,this._jobRunner=null}_dequeue(){this._executing||!this._queue.length||(this._executing=!0,this._jobRunner(...this._queue.shift()),setTimeout(()=>{this._executing=!1,this._dequeue()}))}}});var Ki=p((Wx,bu)=>{"use strict";var Fu=require("readline"),MD=yu(),HD=_u(),GD=/^(?:\x1b)([a-zA-Z0-9])$/,VD=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,WD={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"};function UD(t){return["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(t)}function zD(t){return["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(t)}var Fr=(t="",e={})=>{let r,i={name:e.name,ctrl:!1,meta:!1,shift:!1,option:!1,sequence:t,raw:t,...e};if(Buffer.isBuffer(t)?t[0]>127&&t[1]===void 0?(t[0]-=128,t="\x1B"+String(t)):t=String(t):t!==void 0&&typeof t!="string"?t=String(t):t||(t=i.sequence||""),i.sequence=i.sequence||t||i.name,t==="\r")i.raw=void 0,i.name="return";else if(t===`
|
|
5
|
+
`)i.name="enter";else if(t===" ")i.name="tab";else if(t==="\b"||t==="\x7F"||t==="\x1B\x7F"||t==="\x1B\b")i.name="backspace",i.meta=t.charAt(0)==="\x1B";else if(t==="\x1B"||t==="\x1B\x1B")i.name="escape",i.meta=t.length===2;else if(t===" "||t==="\x1B ")i.name="space",i.meta=t.length===2;else if(t<="")i.name=String.fromCharCode(t.charCodeAt(0)+97-1),i.ctrl=!0;else if(t.length===1&&t>="0"&&t<="9")i.name="number";else if(t.length===1&&t>="a"&&t<="z")i.name=t;else if(t.length===1&&t>="A"&&t<="Z")i.name=t.toLowerCase(),i.shift=!0;else if(r=GD.exec(t))i.meta=!0,i.shift=/^[A-Z]$/.test(r[1]);else if(r=VD.exec(t)){let s=[...t];s[0]==="\x1B"&&s[1]==="\x1B"&&(i.option=!0);let n=[r[1],r[2],r[4],r[6]].filter(Boolean).join(""),o=(r[3]||r[5]||1)-1;i.ctrl=!!(o&4),i.meta=!!(o&10),i.shift=!!(o&1),i.code=n,i.name=WD[n],i.shift=UD(n)||i.shift,i.ctrl=zD(n)||i.ctrl}return i};Fr.listen=(t={},e)=>{let{stdin:r}=t;if(!r||r!==process.stdin&&!r.isTTY)throw new Error("Invalid stream passed");let i=Fu.createInterface({terminal:!0,input:r});Fu.emitKeypressEvents(r,i);let s=new HD((a,u)=>e(a,Fr(a,u),i)),n=r.isRaw;return r.isTTY&&r.setRawMode(!0),r.on("keypress",s.enqueue),i.resume(),()=>{r.isTTY&&r.setRawMode(n),r.removeListener("keypress",s.enqueue),s.destroy(),i.pause(),i.close()}};Fr.action=(t,e,r)=>{let i={...MD,...r};return e.ctrl?(e.action=i.ctrl[e.name],e):e.option&&i.option?(e.action=i.option[e.name],e):e.shift?(e.action=i.shift[e.name],e):(e.action=i.keys[e.name],e)};bu.exports=Fr});var wu=p((Ux,Cu)=>{"use strict";Cu.exports=t=>{t.timers=t.timers||{};let e=t.options.timers;if(e)for(let r of Object.keys(e)){let i=e[r];typeof i=="number"&&(i={interval:i}),KD(t,r,i)}};function KD(t,e,r={}){let i=t.timers[e]={name:e,start:Date.now(),ms:0,tick:0},s=r.interval||120;i.frames=r.frames||[],i.loading=!0;let n=setInterval(()=>{i.ms=Date.now()-i.start,i.tick++,t.render()},s);return i.stop=()=>{i.loading=!1,clearInterval(n)},Reflect.defineProperty(i,"interval",{value:n}),t.once("close",()=>i.stop()),i.stop}});var vu=p((zx,Au)=>{"use strict";var{define:YD,width:XD}=ne(),Yi=class{constructor(e){let r=e.options;YD(this,"_prompt",e),this.type=e.type,this.name=e.name,this.message="",this.header="",this.footer="",this.error="",this.hint="",this.input="",this.cursor=0,this.index=0,this.lines=0,this.tick=0,this.prompt="",this.buffer="",this.width=XD(r.stdout||process.stdout),Object.assign(this,r),this.name=this.name||this.message,this.message=this.message||this.name,this.symbols=e.symbols,this.styles=e.styles,this.required=new Set,this.cancelled=!1,this.submitted=!1}clone(){let e={...this};return e.status=this.status,e.buffer=Buffer.from(e.buffer),delete e.clone,e}set color(e){this._color=e}get color(){let e=this.prompt.styles;if(this.cancelled)return e.cancelled;if(this.submitted)return e.submitted;let r=this._color||e[this.status];return typeof r=="function"?r:e.pending}set loading(e){this._loading=e}get loading(){return typeof this._loading=="boolean"?this._loading:this.loadingChoices?"choices":!1}get status(){return this.cancelled?"cancelled":this.submitted?"submitted":"pending"}};Au.exports=Yi});var Su=p((Kx,xu)=>{"use strict";var Xi=ne(),se=yr(),Qi={default:se.noop,noop:se.noop,set inverse(t){this._inverse=t},get inverse(){return this._inverse||Xi.inverse(this.primary)},set complement(t){this._complement=t},get complement(){return this._complement||Xi.complement(this.primary)},primary:se.cyan,success:se.green,danger:se.magenta,strong:se.bold,warning:se.yellow,muted:se.dim,disabled:se.gray,dark:se.dim.gray,underline:se.underline,set info(t){this._info=t},get info(){return this._info||this.primary},set em(t){this._em=t},get em(){return this._em||this.primary.underline},set heading(t){this._heading=t},get heading(){return this._heading||this.muted.underline},set pending(t){this._pending=t},get pending(){return this._pending||this.primary},set submitted(t){this._submitted=t},get submitted(){return this._submitted||this.success},set cancelled(t){this._cancelled=t},get cancelled(){return this._cancelled||this.danger},set typing(t){this._typing=t},get typing(){return this._typing||this.dim},set placeholder(t){this._placeholder=t},get placeholder(){return this._placeholder||this.primary.dim},set highlight(t){this._highlight=t},get highlight(){return this._highlight||this.inverse}};Qi.merge=(t={})=>{t.styles&&typeof t.styles.enabled=="boolean"&&(se.enabled=t.styles.enabled),t.styles&&typeof t.styles.visible=="boolean"&&(se.visible=t.styles.visible);let e=Xi.merge({},Qi,t.styles);delete e.merge;for(let r of Object.keys(se))hasOwnProperty.call(e,r)||Reflect.defineProperty(e,r,{get:()=>se[r]});for(let r of Object.keys(se.styles))hasOwnProperty.call(e,r)||Reflect.defineProperty(e,r,{get:()=>se[r]});return e};xu.exports=Qi});var Ru=p((Yx,Ou)=>{"use strict";var Zi=process.platform==="win32",He=yr(),QD=ne(),Ji={...He.symbols,upDownDoubleArrow:"\u21D5",upDownDoubleArrow2:"\u2B0D",upDownArrow:"\u2195",asterisk:"*",asterism:"\u2042",bulletWhite:"\u25E6",electricArrow:"\u2301",ellipsisLarge:"\u22EF",ellipsisSmall:"\u2026",fullBlock:"\u2588",identicalTo:"\u2261",indicator:He.symbols.check,leftAngle:"\u2039",mark:"\u203B",minus:"\u2212",multiplication:"\xD7",obelus:"\xF7",percent:"%",pilcrow:"\xB6",pilcrow2:"\u2761",pencilUpRight:"\u2710",pencilDownRight:"\u270E",pencilRight:"\u270F",plus:"+",plusMinus:"\xB1",pointRight:"\u261E",rightAngle:"\u203A",section:"\xA7",hexagon:{off:"\u2B21",on:"\u2B22",disabled:"\u2B22"},ballot:{on:"\u2611",off:"\u2610",disabled:"\u2612"},stars:{on:"\u2605",off:"\u2606",disabled:"\u2606"},folder:{on:"\u25BC",off:"\u25B6",disabled:"\u25B6"},prefix:{pending:He.symbols.question,submitted:He.symbols.check,cancelled:He.symbols.cross},separator:{pending:He.symbols.pointerSmall,submitted:He.symbols.middot,cancelled:He.symbols.middot},radio:{off:Zi?"( )":"\u25EF",on:Zi?"(*)":"\u25C9",disabled:Zi?"(|)":"\u24BE"},numbers:["\u24EA","\u2460","\u2461","\u2462","\u2463","\u2464","\u2465","\u2466","\u2467","\u2468","\u2469","\u246A","\u246B","\u246C","\u246D","\u246E","\u246F","\u2470","\u2471","\u2472","\u2473","\u3251","\u3252","\u3253","\u3254","\u3255","\u3256","\u3257","\u3258","\u3259","\u325A","\u325B","\u325C","\u325D","\u325E","\u325F","\u32B1","\u32B2","\u32B3","\u32B4","\u32B5","\u32B6","\u32B7","\u32B8","\u32B9","\u32BA","\u32BB","\u32BC","\u32BD","\u32BE","\u32BF"]};Ji.merge=t=>{let e=QD.merge({},He.symbols,Ji,t.symbols);return delete e.merge,e};Ou.exports=Ji});var Pu=p((Xx,Tu)=>{"use strict";var ZD=Su(),JD=Ru(),e0=ne();Tu.exports=t=>{t.options=e0.merge({},t.options.theme,t.options),t.symbols=JD.merge(t.options),t.styles=ZD.merge(t.options)}});var Lu=p((Iu,ku)=>{"use strict";var $u=process.env.TERM_PROGRAM==="Apple_Terminal",t0=ze(),es=ne(),Se=ku.exports=Iu,Z="\x1B[",Bu="\x07",ts=!1,Ke=Se.code={bell:Bu,beep:Bu,beginning:`${Z}G`,down:`${Z}J`,esc:Z,getPosition:`${Z}6n`,hide:`${Z}?25l`,line:`${Z}2K`,lineEnd:`${Z}K`,lineStart:`${Z}1K`,restorePosition:Z+($u?"8":"u"),savePosition:Z+($u?"7":"s"),screen:`${Z}2J`,show:`${Z}?25h`,up:`${Z}1J`},ot=Se.cursor={get hidden(){return ts},hide(){return ts=!0,Ke.hide},show(){return ts=!1,Ke.show},forward:(t=1)=>`${Z}${t}C`,backward:(t=1)=>`${Z}${t}D`,nextLine:(t=1)=>`${Z}E`.repeat(t),prevLine:(t=1)=>`${Z}F`.repeat(t),up:(t=1)=>t?`${Z}${t}A`:"",down:(t=1)=>t?`${Z}${t}B`:"",right:(t=1)=>t?`${Z}${t}C`:"",left:(t=1)=>t?`${Z}${t}D`:"",to(t,e){return e?`${Z}${e+1};${t+1}H`:`${Z}${t+1}G`},move(t=0,e=0){let r="";return r+=t<0?ot.left(-t):t>0?ot.right(t):"",r+=e<0?ot.up(-e):e>0?ot.down(e):"",r},strLen(t){for(var e=0,r=t.length,i=-1,s=0;s<r;s++)i=t.charCodeAt(s),i>=0&&i<=128?e+=1:e+=2;return e},restore(t={}){let{after:e,cursor:r,initial:i,input:s,prompt:n,size:o,value:a}=t;if(i=es.isPrimitive(i)?String(i):"",s=es.isPrimitive(s)?String(s):"",a=es.isPrimitive(a)?String(a):"",o){let u=Se.cursor.up(o)+Se.cursor.to(this.strLen(n)),l=s.length-r;return l>0&&(u+=Se.cursor.left(l)),u}if(a||e){let u=!s&&i?-this.strLen(i):-this.strLen(s)+r;return e&&(u-=this.strLen(e)),s===""&&i&&!n.includes(i)&&(u+=this.strLen(i)),Se.cursor.move(u)}}},rs=Se.erase={screen:Ke.screen,up:Ke.up,down:Ke.down,line:Ke.line,lineEnd:Ke.lineEnd,lineStart:Ke.lineStart,lines(t){let e="";for(let r=0;r<t;r++)e+=Se.erase.line+(r<t-1?Se.cursor.up(1):"");return t&&(e+=Se.code.beginning),e}};Se.clear=(t="",e=process.stdout.columns)=>{if(!e)return rs.line+ot.to(0);let r=n=>[...t0(n)].length,i=t.split(/\r?\n/),s=0;for(let n of i)s+=1+Math.floor(Math.max(r(n)-1,0)/e);return(rs.line+ot.prevLine()).repeat(s-1)+rs.line+ot.to(0)}});var yt=p((Qx,qu)=>{"use strict";var r0=require("events"),Nu=ze(),is=Ki(),i0=wu(),s0=vu(),n0=Pu(),pe=ne(),at=Lu(),ss=class t extends r0{constructor(e={}){super(),this.name=e.name,this.type=e.type,this.options=e,n0(this),i0(this),this.state=new s0(this),this.initial=[e.initial,e.default].find(r=>r!=null),this.stdout=e.stdout||process.stdout,this.stdin=e.stdin||process.stdin,this.scale=e.scale||1,this.term=this.options.term||process.env.TERM_PROGRAM,this.margin=a0(this.options.margin),this.setMaxListeners(0),o0(this)}async keypress(e,r={}){this.keypressed=!0;let i=is.action(e,is(e,r),this.options.actions);this.state.keypress=i,this.emit("keypress",e,i),this.emit("state",this.state.clone());let s=this.options[i.action]||this[i.action]||this.dispatch;if(typeof s=="function")return await s.call(this,e,i);this.alert()}alert(){delete this.state.alert,this.options.show===!1?this.emit("alert"):this.stdout.write(at.code.beep)}cursorHide(){this.stdout.write(at.cursor.hide());let e=pe.onExit(()=>this.cursorShow());this.on("close",()=>{this.cursorShow(),e()})}cursorShow(){this.stdout.write(at.cursor.show())}write(e){e&&(this.stdout&&this.state.show!==!1&&this.stdout.write(e),this.state.buffer+=e)}clear(e=0){let r=this.state.buffer;this.state.buffer="",!(!r&&!e||this.options.show===!1)&&this.stdout.write(at.cursor.down(e)+at.clear(r,this.width))}restore(){if(this.state.closed||this.options.show===!1)return;let{prompt:e,after:r,rest:i}=this.sections(),{cursor:s,initial:n="",input:o="",value:a=""}=this,u=this.state.size=i.length,l={after:r,cursor:s,initial:n,input:o,prompt:e,size:u,value:a},c=at.cursor.restore(l);c&&this.stdout.write(c)}sections(){let{buffer:e,input:r,prompt:i}=this.state;i=Nu(i);let s=Nu(e),n=s.indexOf(i),o=s.slice(0,n),u=s.slice(n).split(`
|
|
6
|
+
`),l=u[0],c=u[u.length-1],f=(i+(r?" "+r:"")).length,d=f<l.length?l.slice(f+1):"";return{header:o,prompt:l,after:d,rest:u.slice(1),last:c}}async submit(){this.state.submitted=!0,this.state.validating=!0,this.options.onSubmit&&await this.options.onSubmit.call(this,this.name,this.value,this);let e=this.state.error||await this.validate(this.value,this.state);if(e!==!0){let r=`
|
|
7
7
|
`+this.symbols.pointer+" ";typeof e=="string"?r+=e.trim():r+="Invalid input",this.state.error=`
|
|
8
|
-
`+this.styles.danger(r),this.state.submitted=!1,await this.render(),await this.alert(),this.state.validating=!1,this.state.error=void 0;return}this.state.validating=!1,await this.render(),await this.close(),this.value=await this.result(this.value),this.emit("submit",this.value)}async cancel(e){this.state.cancelled=this.state.submitted=!0,await this.render(),await this.close(),typeof this.options.onCancel=="function"&&await this.options.onCancel.call(this,this.name,this.value,this),this.emit("cancel",await this.error(e))}async close(){this.state.closed=!0;try{let e=this.sections(),r=Math.ceil(e.prompt.length/this.width);e.rest&&this.write(
|
|
9
|
-
`.repeat(r))}catch{}this.emit("close")}start(){!this.stop&&this.options.show!==!1&&(this.stop=
|
|
10
|
-
`:" ",i=[];for(let s=0;s<4;s++){let n=r(s);e[s]?i.push(n.repeat(e[s])):i.push("")}return i}Hu.exports=vi});var Gu=p((mE,Vu)=>{"use strict";var bm=te(),Wu={default(t,e){return e},checkbox(t,e){throw new Error("checkbox role is not implemented yet")},editable(t,e){throw new Error("editable role is not implemented yet")},expandable(t,e){throw new Error("expandable role is not implemented yet")},heading(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||"",e},input(t,e){throw new Error("input role is not implemented yet")},option(t,e){return Wu.default(t,e)},radio(t,e){throw new Error("radio role is not implemented yet")},separator(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||t.symbols.line.repeat(5),e},spacer(t,e){return e}};Vu.exports=(t,e={})=>{let r=bm.merge({},Wu,e.roles);return r[t]||r.default}});var wt=p((DE,Ku)=>{"use strict";var Fm=Ie(),Em=ot(),Cm=Gu(),tr=te(),{reorder:xi,scrollUp:wm,scrollDown:vm,isObject:Uu,swap:xm}=tr,Ai=class extends Em{constructor(e){super(e),this.cursorHide(),this.maxSelected=e.maxSelected||1/0,this.multiple=e.multiple||!1,this.initial=e.initial||0,this.delay=e.delay||0,this.longest=0,this.num=""}async initialize(){typeof this.options.initial=="function"&&(this.initial=await this.options.initial.call(this)),await this.reset(!0),await super.initialize()}async reset(){let{choices:e,initial:r,autofocus:i,suggest:s}=this.options;if(this.state._choices=[],this.state.choices=[],this.choices=await Promise.all(await this.toChoices(e)),this.choices.forEach(n=>n.enabled=!1),typeof s!="function"&&this.selectable.length===0)throw new Error("At least one choice must be selectable");Uu(r)&&(r=Object.keys(r)),Array.isArray(r)?(i!=null&&(this.index=this.findIndex(i)),r.forEach(n=>this.enable(this.find(n))),await this.render()):(i!=null&&(r=i),typeof r=="string"&&(r=this.findIndex(r)),typeof r=="number"&&r>-1&&(this.index=Math.max(0,Math.min(r,this.choices.length)),this.enable(this.find(this.index)))),this.isDisabled(this.focused)&&await this.down()}async toChoices(e,r){this.state.loadingChoices=!0;let i=[],s=0,n=async(o,u)=>{typeof o=="function"&&(o=await o.call(this)),o instanceof Promise&&(o=await o);for(let a=0;a<o.length;a++){let l=o[a]=await this.toChoice(o[a],s++,u);i.push(l),l.choices&&await n(l.choices,l)}return i};return n(e,r).then(o=>(this.state.loadingChoices=!1,o))}async toChoice(e,r,i){if(typeof e=="function"&&(e=await e.call(this,this)),e instanceof Promise&&(e=await e),typeof e=="string"&&(e={name:e}),e.normalized)return e;e.normalized=!0;let s=e.value;if(e=Cm(e.role,this.options)(this,e),typeof e.disabled=="string"&&!e.hint&&(e.hint=e.disabled,e.disabled=!0),e.disabled===!0&&e.hint==null&&(e.hint="(disabled)"),e.index!=null)return e;e.name=e.name||e.key||e.title||e.value||e.message,e.message=e.message||e.name||"",e.value=[e.value,e.name].find(this.isValue.bind(this)),e.input="",e.index=r,e.cursor=0,tr.define(e,"parent",i),e.level=i?i.level+1:1,e.indent==null&&(e.indent=i?i.indent+" ":e.indent||""),e.path=i?i.path+"."+e.name:e.name,e.enabled=!!(this.multiple&&!this.isDisabled(e)&&(e.enabled||this.isSelected(e))),this.isDisabled(e)||(this.longest=Math.max(this.longest,Fm(e.message).length));let o={...e};return e.reset=(u=o.input,a=o.value)=>{for(let l of Object.keys(o))e[l]=o[l];e.input=u,e.value=a},s==null&&typeof e.initial=="function"&&(e.input=await e.initial.call(this,this.state,e,r)),e}async onChoice(e,r){this.emit("choice",e,r,this),typeof e.onChoice=="function"&&await e.onChoice.call(this,this.state,e,r)}async addChoice(e,r,i){let s=await this.toChoice(e,r,i);return this.choices.push(s),this.index=this.choices.length-1,this.limit=this.choices.length,s}async newItem(e,r,i){let s={name:"New choice name?",editable:!0,newChoice:!0,...e},n=await this.addChoice(s,r,i);return n.updateChoice=()=>{delete n.newChoice,n.name=n.message=n.input,n.input="",n.cursor=0},this.render()}indent(e){return e.indent==null?e.level>1?" ".repeat(e.level-1):"":e.indent}dispatch(e,r){if(this.multiple&&this[r.name])return this[r.name]();this.alert()}focus(e,r){return typeof r!="boolean"&&(r=e.enabled),r&&!e.enabled&&this.selected.length>=this.maxSelected?this.alert():(this.index=e.index,e.enabled=r&&!this.isDisabled(e),e)}space(){if(!this.multiple)return this.alert();if(this.focused)return this.toggle(this.focused),this.render()}a(){if(this.maxSelected<this.choices.length)return this.alert();let e=this.selectable.every(r=>r.enabled);return this.choices.forEach(r=>r.enabled=!e),this.render()}i(){return this.choices.length-this.selected.length>this.maxSelected?this.alert():(this.choices.forEach(e=>e.enabled=!e.enabled),this.render())}g(){if(!this.choices.some(r=>!!r.parent))return this.a();let e=this.focused;return this.toggle(e.parent&&!e.choices?e.parent:e),this.render()}toggle(e,r){if(!e.enabled&&this.selected.length>=this.maxSelected)return this.alert();typeof r!="boolean"&&(r=!e.enabled),e.enabled=r,e.choices&&e.choices.forEach(s=>this.toggle(s,r));let i=e.parent;for(;i;){let s=i.choices.filter(n=>this.isDisabled(n));i.enabled=s.every(n=>n.enabled===!0),i=i.parent}return zu(this,this.choices),this.emit("toggle",e,this),e}enable(e){return this.selected.length>=this.maxSelected?this.alert():(e.enabled=!this.isDisabled(e),e.choices&&e.choices.forEach(this.enable.bind(this)),e)}disable(e){return e.enabled=!1,e.choices&&e.choices.forEach(this.disable.bind(this)),e}number(e){this.num+=e;let r=i=>{let s=Number(i);if(s>this.choices.length-1)return this.alert();let n=this.focused,o=this.choices.find(u=>s===u.index);if(!o.enabled&&this.selected.length>=this.maxSelected)return this.alert();if(this.visible.indexOf(o)===-1){let u=xi(this.choices),a=u.indexOf(o);if(n.index>a){let l=u.slice(a,a+this.limit),c=u.filter(h=>!l.includes(h));this.choices=l.concat(c)}else{let l=a-this.limit+1;this.choices=u.slice(l).concat(u.slice(0,l))}}return this.index=this.choices.indexOf(o),this.toggle(this.focused),this.render()};return clearTimeout(this.numberTimeout),new Promise(i=>{let s=this.choices.length,n=this.num,o=(u=!1,a)=>{clearTimeout(this.numberTimeout),u&&(a=r(n)),this.num="",i(a)};if(n==="0"||n.length===1&&+(n+"0")>s)return o(!0);if(Number(n)>s)return o(!1,this.alert());this.numberTimeout=setTimeout(()=>o(!0),this.delay)})}home(){return this.choices=xi(this.choices),this.index=0,this.render()}end(){let e=this.choices.length-this.limit,r=xi(this.choices);return this.choices=r.slice(e).concat(r.slice(0,e)),this.index=this.limit-1,this.render()}first(){return this.index=0,this.render()}last(){return this.index=this.visible.length-1,this.render()}prev(){return this.visible.length<=1?this.alert():this.up()}next(){return this.visible.length<=1?this.alert():this.down()}right(){return this.cursor>=this.input.length?this.alert():(this.cursor++,this.render())}left(){return this.cursor<=0?this.alert():(this.cursor--,this.render())}up(){let e=this.choices.length,r=this.visible.length,i=this.index;return this.options.scroll===!1&&i===0?this.alert():e>r&&i===0?this.scrollUp():(this.index=(i-1%e+e)%e,this.isDisabled()&&!this.allChoicesAreDisabled()?this.up():this.render())}down(){let e=this.choices.length,r=this.visible.length,i=this.index;return this.options.scroll===!1&&i===r-1?this.alert():e>r&&i===r-1?this.scrollDown():(this.index=(i+1)%e,this.isDisabled()&&!this.allChoicesAreDisabled()?this.down():this.render())}scrollUp(e=0){return this.choices=wm(this.choices),this.index=e,this.isDisabled()?this.up():this.render()}scrollDown(e=this.visible.length-1){return this.choices=vm(this.choices),this.index=e,this.isDisabled()?this.down():this.render()}async shiftUp(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index-1),await this.up(),this.sorting=!1;return}return this.scrollUp(this.index)}async shiftDown(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index+1),await this.down(),this.sorting=!1;return}return this.scrollDown(this.index)}pageUp(){return this.visible.length<=1?this.alert():(this.limit=Math.max(this.limit-1,0),this.index=Math.min(this.limit-1,this.index),this._limit=this.limit,this.isDisabled()?this.up():this.render())}pageDown(){return this.visible.length>=this.choices.length?this.alert():(this.index=Math.max(0,this.index),this.limit=Math.min(this.limit+1,this.choices.length),this._limit=this.limit,this.isDisabled()?this.down():this.render())}swap(e){xm(this.choices,this.index,e)}allChoicesAreDisabled(e=this.choices){return e.every(r=>this.isDisabled(r))}isDisabled(e=this.focused){return e&&["disabled","collapsed","hidden","completing","readonly"].some(i=>e[i]===!0)?!0:e&&e.role==="heading"}isEnabled(e=this.focused){if(Array.isArray(e))return e.every(r=>this.isEnabled(r));if(e.choices){let r=e.choices.filter(i=>!this.isDisabled(i));return e.enabled&&r.every(i=>this.isEnabled(i))}return e.enabled&&!this.isDisabled(e)}isChoice(e,r){return e.name===r||e.index===Number(r)}isSelected(e){return Array.isArray(this.initial)?this.initial.some(r=>this.isChoice(e,r)):this.isChoice(e,this.initial)}map(e=[],r="value"){return[].concat(e||[]).reduce((i,s)=>(i[s]=this.find(s,r),i),{})}filter(e,r){let s=typeof e=="function"?e:(u,a)=>[u.name,a].includes(e),o=(this.options.multiple?this.state._choices:this.choices).filter(s);return r?o.map(u=>u[r]):o}find(e,r){if(Uu(e))return r?e[r]:e;let s=typeof e=="function"?e:(o,u)=>[o.name,u].includes(e),n=this.choices.find(s);if(n)return r?n[r]:n}findIndex(e){return this.choices.indexOf(this.find(e))}async submit(){let e=this.focused;if(!e)return this.alert();if(e.newChoice)return e.input?(e.updateChoice(),this.render()):this.alert();if(this.choices.some(o=>o.newChoice))return this.alert();let{reorder:r,sort:i}=this.options,s=this.multiple===!0,n=this.selected;return n===void 0?this.alert():(Array.isArray(n)&&r!==!1&&i!==!0&&(n=tr.reorder(n)),this.value=s?n.map(o=>o.name):n.name,super.submit())}set choices(e=[]){this.state._choices=this.state._choices||[],this.state.choices=e;for(let r of e)this.state._choices.some(i=>i.name===r.name)||this.state._choices.push(r);if(!this._initial&&this.options.initial){this._initial=!0;let r=this.initial;if(typeof r=="string"||typeof r=="number"){let i=this.find(r);i&&(this.initial=i.index,this.focus(i,!0))}}}get choices(){return zu(this,this.state.choices||[])}set visible(e){this.state.visible=e}get visible(){return(this.state.visible||this.choices).slice(0,this.limit)}set limit(e){this.state.limit=e}get limit(){let{state:e,options:r,choices:i}=this,s=e.limit||this._limit||r.limit||i.length;return Math.min(s,this.height)}set value(e){super.value=e}get value(){return typeof super.value!="string"&&super.value===this.initial?this.input:super.value}set index(e){this.state.index=e}get index(){return Math.max(0,this.state?this.state.index:0)}get enabled(){return this.filter(this.isEnabled.bind(this))}get focused(){let e=this.choices[this.index];return e&&this.state.submitted&&this.multiple!==!0&&(e.enabled=!0),e}get selectable(){return this.choices.filter(e=>!this.isDisabled(e))}get selected(){return this.multiple?this.enabled:this.focused}};function zu(t,e){if(e instanceof Promise)return e;if(typeof e=="function"){if(tr.isAsyncFn(e))return e;e=e.call(t,t)}for(let r of e){if(Array.isArray(r.choices)){let i=r.choices.filter(s=>!t.isDisabled(s));r.enabled=i.every(s=>s.enabled===!0)}t.isDisabled(r)===!0&&delete r.enabled}return e}Ku.exports=Ai});var Le=p((gE,Yu)=>{"use strict";var Am=wt(),Si=te(),Oi=class extends Am{constructor(e){super(e),this.emptyError=this.options.emptyError||"No items were selected"}async dispatch(e,r){if(this.multiple)return this[r.name]?await this[r.name](e,r):await super.dispatch(e,r);this.alert()}separator(){if(this.options.separator)return super.separator();let e=this.styles.muted(this.symbols.ellipsis);return this.state.submitted?super.separator():e}pointer(e,r){return!this.multiple||this.options.pointer?super.pointer(e,r):""}indicator(e,r){return this.multiple?super.indicator(e,r):""}choiceMessage(e,r){let i=this.resolve(e.message,this.state,e,r);return e.role==="heading"&&!Si.hasColor(i)&&(i=this.styles.strong(i)),this.resolve(i,this.state,e,r)}choiceSeparator(){return":"}async renderChoice(e,r){await this.onChoice(e,r);let i=this.index===r,s=await this.pointer(e,r),n=await this.indicator(e,r)+(e.pad||""),o=await this.resolve(e.hint,this.state,e,r);o&&!Si.hasColor(o)&&(o=this.styles.muted(o));let u=this.indent(e),a=await this.choiceMessage(e,r),l=()=>[this.margin[3],u+s+n,a,this.margin[1],o].filter(Boolean).join(" ");return e.role==="heading"?l():e.disabled?(Si.hasColor(a)||(a=this.styles.disabled(a)),l()):(i&&(a=this.styles.em(a)),l())}async renderChoices(){if(this.state.loading==="choices")return this.styles.warning("Loading choices");if(this.state.submitted)return"";let e=this.visible.map(async(n,o)=>await this.renderChoice(n,o)),r=await Promise.all(e);r.length||r.push(this.styles.danger("No matching choices"));let i=this.margin[0]+r.join(`
|
|
8
|
+
`+this.styles.danger(r),this.state.submitted=!1,await this.render(),await this.alert(),this.state.validating=!1,this.state.error=void 0;return}this.state.validating=!1,await this.render(),await this.close(),this.value=await this.result(this.value),this.emit("submit",this.value)}async cancel(e){this.state.cancelled=this.state.submitted=!0,await this.render(),await this.close(),typeof this.options.onCancel=="function"&&await this.options.onCancel.call(this,this.name,this.value,this),this.emit("cancel",await this.error(e))}async close(){this.state.closed=!0;try{let e=this.sections(),r=Math.ceil(e.prompt.length/this.width);e.rest&&this.write(at.cursor.down(e.rest.length)),this.write(`
|
|
9
|
+
`.repeat(r))}catch{}this.emit("close")}start(){!this.stop&&this.options.show!==!1&&(this.stop=is.listen(this,this.keypress.bind(this)),this.once("close",this.stop),this.emit("start",this))}async skip(){return this.skipped=this.options.skip===!0,typeof this.options.skip=="function"&&(this.skipped=await this.options.skip.call(this,this.name,this.value)),this.skipped}async initialize(){let{format:e,options:r,result:i}=this;if(this.format=()=>e.call(this,this.value),this.result=()=>i.call(this,this.value),typeof r.initial=="function"&&(this.initial=await r.initial.call(this,this)),typeof r.onRun=="function"&&await r.onRun.call(this,this),typeof r.onSubmit=="function"){let s=r.onSubmit.bind(this),n=this.submit.bind(this);delete this.options.onSubmit,this.submit=async()=>(await s(this.name,this.value,this),n())}await this.start(),await this.render()}render(){throw new Error("expected prompt to have a custom render method")}run(){return new Promise(async(e,r)=>{if(this.once("submit",e),this.once("cancel",r),await this.skip())return this.render=()=>{},this.submit();await this.initialize(),this.emit("run")})}async element(e,r,i){let{options:s,state:n,symbols:o,timers:a}=this,u=a&&a[e];n.timer=u;let l=s[e]||n[e]||o[e],c=r&&r[e]!=null?r[e]:await l;if(c==="")return c;let h=await this.resolve(c,n,r,i);return!h&&r&&r[e]?this.resolve(l,n,r,i):h}async prefix(){let e=await this.element("prefix")||this.symbols,r=this.timers&&this.timers.prefix,i=this.state;return i.timer=r,pe.isObject(e)&&(e=e[i.status]||e.pending),pe.hasColor(e)?e:(this.styles[i.status]||this.styles.pending)(e)}async message(){let e=await this.element("message");return pe.hasColor(e)?e:this.styles.strong(e)}async separator(){let e=await this.element("separator")||this.symbols,r=this.timers&&this.timers.separator,i=this.state;i.timer=r;let s=e[i.status]||e.pending||i.separator,n=await this.resolve(s,i);return pe.isObject(n)&&(n=n[i.status]||n.pending),pe.hasColor(n)?n:this.styles.muted(n)}async pointer(e,r){let i=await this.element("pointer",e,r);if(typeof i=="string"&&pe.hasColor(i))return i;if(i){let s=this.styles,n=this.index===r,o=n?s.primary:l=>l,a=await this.resolve(i[n?"on":"off"]||i,this.state),u=pe.hasColor(a)?a:o(a);return n?u:" ".repeat(a.length)}}async indicator(e,r){let i=await this.element("indicator",e,r);if(typeof i=="string"&&pe.hasColor(i))return i;if(i){let s=this.styles,n=e.enabled===!0,o=n?s.success:s.dark,a=i[n?"on":"off"]||i;return pe.hasColor(a)?a:o(a)}return""}body(){return null}footer(){if(this.state.status==="pending")return this.element("footer")}header(){if(this.state.status==="pending")return this.element("header")}async hint(){if(this.state.status==="pending"&&!this.isValue(this.state.input)){let e=await this.element("hint");return pe.hasColor(e)?e:this.styles.muted(e)}}error(e){return this.state.submitted?"":e||this.state.error}format(e){return e}result(e){return e}validate(e){return this.options.required===!0?this.isValue(e):!0}isValue(e){return e!=null&&e!==""}resolve(e,...r){return pe.resolve(this,e,...r)}get base(){return t.prototype}get style(){return this.styles[this.state.status]}get height(){return this.options.rows||pe.height(this.stdout,25)}get width(){return this.options.columns||pe.width(this.stdout,80)}get size(){return{width:this.width,height:this.height}}set cursor(e){this.state.cursor=e}get cursor(){return this.state.cursor}set input(e){this.state.input=e}get input(){return this.state.input}set value(e){this.state.value=e}get value(){let{input:e,value:r}=this.state,i=[r,e].find(this.isValue.bind(this));return this.isValue(i)?i:this.initial}static get prompt(){return e=>new this(e).run()}};function o0(t){let e=s=>t[s]===void 0||typeof t[s]=="function",r=["actions","choices","initial","margin","roles","styles","symbols","theme","timers","value"],i=["body","footer","error","header","hint","indicator","message","prefix","separator","skip"];for(let s of Object.keys(t.options)){if(r.includes(s)||/^on[A-Z]/.test(s))continue;let n=t.options[s];typeof n=="function"&&e(s)?i.includes(s)||(t[s]=n.bind(t)):typeof t[s]!="function"&&(t[s]=n)}}function a0(t){typeof t=="number"&&(t=[t,t,t,t]);let e=[].concat(t||[]),r=s=>s%2===0?`
|
|
10
|
+
`:" ",i=[];for(let s=0;s<4;s++){let n=r(s);e[s]?i.push(n.repeat(e[s])):i.push("")}return i}qu.exports=ss});var Hu=p((Zx,Mu)=>{"use strict";var u0=ne(),ju={default(t,e){return e},checkbox(t,e){throw new Error("checkbox role is not implemented yet")},editable(t,e){throw new Error("editable role is not implemented yet")},expandable(t,e){throw new Error("expandable role is not implemented yet")},heading(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||"",e},input(t,e){throw new Error("input role is not implemented yet")},option(t,e){return ju.default(t,e)},radio(t,e){throw new Error("radio role is not implemented yet")},separator(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||t.symbols.line.repeat(5),e},spacer(t,e){return e}};Mu.exports=(t,e={})=>{let r=u0.merge({},ju,e.roles);return r[t]||r.default}});var Nt=p((Jx,Wu)=>{"use strict";var l0=ze(),c0=yt(),h0=Hu(),br=ne(),{reorder:ns,scrollUp:f0,scrollDown:p0,isObject:Gu,swap:d0}=br,os=class extends c0{constructor(e){super(e),this.cursorHide(),this.maxSelected=e.maxSelected||1/0,this.multiple=e.multiple||!1,this.initial=e.initial||0,this.delay=e.delay||0,this.longest=0,this.num=""}async initialize(){typeof this.options.initial=="function"&&(this.initial=await this.options.initial.call(this)),await this.reset(!0),await super.initialize()}async reset(){let{choices:e,initial:r,autofocus:i,suggest:s}=this.options;if(this.state._choices=[],this.state.choices=[],this.choices=await Promise.all(await this.toChoices(e)),this.choices.forEach(n=>n.enabled=!1),typeof s!="function"&&this.selectable.length===0)throw new Error("At least one choice must be selectable");Gu(r)&&(r=Object.keys(r)),Array.isArray(r)?(i!=null&&(this.index=this.findIndex(i)),r.forEach(n=>this.enable(this.find(n))),await this.render()):(i!=null&&(r=i),typeof r=="string"&&(r=this.findIndex(r)),typeof r=="number"&&r>-1&&(this.index=Math.max(0,Math.min(r,this.choices.length)),this.enable(this.find(this.index)))),this.isDisabled(this.focused)&&await this.down()}async toChoices(e,r){this.state.loadingChoices=!0;let i=[],s=0,n=async(o,a)=>{typeof o=="function"&&(o=await o.call(this)),o instanceof Promise&&(o=await o);for(let u=0;u<o.length;u++){let l=o[u]=await this.toChoice(o[u],s++,a);i.push(l),l.choices&&await n(l.choices,l)}return i};return n(e,r).then(o=>(this.state.loadingChoices=!1,o))}async toChoice(e,r,i){if(typeof e=="function"&&(e=await e.call(this,this)),e instanceof Promise&&(e=await e),typeof e=="string"&&(e={name:e}),e.normalized)return e;e.normalized=!0;let s=e.value;if(e=h0(e.role,this.options)(this,e),typeof e.disabled=="string"&&!e.hint&&(e.hint=e.disabled,e.disabled=!0),e.disabled===!0&&e.hint==null&&(e.hint="(disabled)"),e.index!=null)return e;e.name=e.name||e.key||e.title||e.value||e.message,e.message=e.message||e.name||"",e.value=[e.value,e.name].find(this.isValue.bind(this)),e.input="",e.index=r,e.cursor=0,br.define(e,"parent",i),e.level=i?i.level+1:1,e.indent==null&&(e.indent=i?i.indent+" ":e.indent||""),e.path=i?i.path+"."+e.name:e.name,e.enabled=!!(this.multiple&&!this.isDisabled(e)&&(e.enabled||this.isSelected(e))),this.isDisabled(e)||(this.longest=Math.max(this.longest,l0(e.message).length));let o={...e};return e.reset=(a=o.input,u=o.value)=>{for(let l of Object.keys(o))e[l]=o[l];e.input=a,e.value=u},s==null&&typeof e.initial=="function"&&(e.input=await e.initial.call(this,this.state,e,r)),e}async onChoice(e,r){this.emit("choice",e,r,this),typeof e.onChoice=="function"&&await e.onChoice.call(this,this.state,e,r)}async addChoice(e,r,i){let s=await this.toChoice(e,r,i);return this.choices.push(s),this.index=this.choices.length-1,this.limit=this.choices.length,s}async newItem(e,r,i){let s={name:"New choice name?",editable:!0,newChoice:!0,...e},n=await this.addChoice(s,r,i);return n.updateChoice=()=>{delete n.newChoice,n.name=n.message=n.input,n.input="",n.cursor=0},this.render()}indent(e){return e.indent==null?e.level>1?" ".repeat(e.level-1):"":e.indent}dispatch(e,r){if(this.multiple&&this[r.name])return this[r.name]();this.alert()}focus(e,r){return typeof r!="boolean"&&(r=e.enabled),r&&!e.enabled&&this.selected.length>=this.maxSelected?this.alert():(this.index=e.index,e.enabled=r&&!this.isDisabled(e),e)}space(){if(!this.multiple)return this.alert();if(this.focused)return this.toggle(this.focused),this.render()}a(){if(this.maxSelected<this.choices.length)return this.alert();let e=this.selectable.every(r=>r.enabled);return this.choices.forEach(r=>r.enabled=!e),this.render()}i(){return this.choices.length-this.selected.length>this.maxSelected?this.alert():(this.choices.forEach(e=>e.enabled=!e.enabled),this.render())}g(){if(!this.choices.some(r=>!!r.parent))return this.a();let e=this.focused;return this.toggle(e.parent&&!e.choices?e.parent:e),this.render()}toggle(e,r){if(!e.enabled&&this.selected.length>=this.maxSelected)return this.alert();typeof r!="boolean"&&(r=!e.enabled),e.enabled=r,e.choices&&e.choices.forEach(s=>this.toggle(s,r));let i=e.parent;for(;i;){let s=i.choices.filter(n=>this.isDisabled(n));i.enabled=s.every(n=>n.enabled===!0),i=i.parent}return Vu(this,this.choices),this.emit("toggle",e,this),e}enable(e){return this.selected.length>=this.maxSelected?this.alert():(e.enabled=!this.isDisabled(e),e.choices&&e.choices.forEach(this.enable.bind(this)),e)}disable(e){return e.enabled=!1,e.choices&&e.choices.forEach(this.disable.bind(this)),e}number(e){this.num+=e;let r=i=>{let s=Number(i);if(s>this.choices.length-1)return this.alert();let n=this.focused,o=this.choices.find(a=>s===a.index);if(!o.enabled&&this.selected.length>=this.maxSelected)return this.alert();if(this.visible.indexOf(o)===-1){let a=ns(this.choices),u=a.indexOf(o);if(n.index>u){let l=a.slice(u,u+this.limit),c=a.filter(h=>!l.includes(h));this.choices=l.concat(c)}else{let l=u-this.limit+1;this.choices=a.slice(l).concat(a.slice(0,l))}}return this.index=this.choices.indexOf(o),this.toggle(this.focused),this.render()};return clearTimeout(this.numberTimeout),new Promise(i=>{let s=this.choices.length,n=this.num,o=(a=!1,u)=>{clearTimeout(this.numberTimeout),a&&(u=r(n)),this.num="",i(u)};if(n==="0"||n.length===1&&+(n+"0")>s)return o(!0);if(Number(n)>s)return o(!1,this.alert());this.numberTimeout=setTimeout(()=>o(!0),this.delay)})}home(){return this.choices=ns(this.choices),this.index=0,this.render()}end(){let e=this.choices.length-this.limit,r=ns(this.choices);return this.choices=r.slice(e).concat(r.slice(0,e)),this.index=this.limit-1,this.render()}first(){return this.index=0,this.render()}last(){return this.index=this.visible.length-1,this.render()}prev(){return this.visible.length<=1?this.alert():this.up()}next(){return this.visible.length<=1?this.alert():this.down()}right(){return this.cursor>=this.input.length?this.alert():(this.cursor++,this.render())}left(){return this.cursor<=0?this.alert():(this.cursor--,this.render())}up(){let e=this.choices.length,r=this.visible.length,i=this.index;return this.options.scroll===!1&&i===0?this.alert():e>r&&i===0?this.scrollUp():(this.index=(i-1%e+e)%e,this.isDisabled()&&!this.allChoicesAreDisabled()?this.up():this.render())}down(){let e=this.choices.length,r=this.visible.length,i=this.index;return this.options.scroll===!1&&i===r-1?this.alert():e>r&&i===r-1?this.scrollDown():(this.index=(i+1)%e,this.isDisabled()&&!this.allChoicesAreDisabled()?this.down():this.render())}scrollUp(e=0){return this.choices=f0(this.choices),this.index=e,this.isDisabled()?this.up():this.render()}scrollDown(e=this.visible.length-1){return this.choices=p0(this.choices),this.index=e,this.isDisabled()?this.down():this.render()}async shiftUp(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index-1),await this.up(),this.sorting=!1;return}return this.scrollUp(this.index)}async shiftDown(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index+1),await this.down(),this.sorting=!1;return}return this.scrollDown(this.index)}pageUp(){return this.visible.length<=1?this.alert():(this.limit=Math.max(this.limit-1,0),this.index=Math.min(this.limit-1,this.index),this._limit=this.limit,this.isDisabled()?this.up():this.render())}pageDown(){return this.visible.length>=this.choices.length?this.alert():(this.index=Math.max(0,this.index),this.limit=Math.min(this.limit+1,this.choices.length),this._limit=this.limit,this.isDisabled()?this.down():this.render())}swap(e){d0(this.choices,this.index,e)}allChoicesAreDisabled(e=this.choices){return e.every(r=>this.isDisabled(r))}isDisabled(e=this.focused){return e&&["disabled","collapsed","hidden","completing","readonly"].some(i=>e[i]===!0)?!0:e&&e.role==="heading"}isEnabled(e=this.focused){if(Array.isArray(e))return e.every(r=>this.isEnabled(r));if(e.choices){let r=e.choices.filter(i=>!this.isDisabled(i));return e.enabled&&r.every(i=>this.isEnabled(i))}return e.enabled&&!this.isDisabled(e)}isChoice(e,r){return e.name===r||e.index===Number(r)}isSelected(e){return Array.isArray(this.initial)?this.initial.some(r=>this.isChoice(e,r)):this.isChoice(e,this.initial)}map(e=[],r="value"){return[].concat(e||[]).reduce((i,s)=>(i[s]=this.find(s,r),i),{})}filter(e,r){let s=typeof e=="function"?e:(a,u)=>[a.name,u].includes(e),o=(this.options.multiple?this.state._choices:this.choices).filter(s);return r?o.map(a=>a[r]):o}find(e,r){if(Gu(e))return r?e[r]:e;let s=typeof e=="function"?e:(o,a)=>[o.name,a].includes(e),n=this.choices.find(s);if(n)return r?n[r]:n}findIndex(e){return this.choices.indexOf(this.find(e))}async submit(){let e=this.focused;if(!e)return this.alert();if(e.newChoice)return e.input?(e.updateChoice(),this.render()):this.alert();if(this.choices.some(o=>o.newChoice))return this.alert();let{reorder:r,sort:i}=this.options,s=this.multiple===!0,n=this.selected;return n===void 0?this.alert():(Array.isArray(n)&&r!==!1&&i!==!0&&(n=br.reorder(n)),this.value=s?n.map(o=>o.name):n.name,super.submit())}set choices(e=[]){this.state._choices=this.state._choices||[],this.state.choices=e;for(let r of e)this.state._choices.some(i=>i.name===r.name)||this.state._choices.push(r);if(!this._initial&&this.options.initial){this._initial=!0;let r=this.initial;if(typeof r=="string"||typeof r=="number"){let i=this.find(r);i&&(this.initial=i.index,this.focus(i,!0))}}}get choices(){return Vu(this,this.state.choices||[])}set visible(e){this.state.visible=e}get visible(){return(this.state.visible||this.choices).slice(0,this.limit)}set limit(e){this.state.limit=e}get limit(){let{state:e,options:r,choices:i}=this,s=e.limit||this._limit||r.limit||i.length;return Math.min(s,this.height)}set value(e){super.value=e}get value(){return typeof super.value!="string"&&super.value===this.initial?this.input:super.value}set index(e){this.state.index=e}get index(){return Math.max(0,this.state?this.state.index:0)}get enabled(){return this.filter(this.isEnabled.bind(this))}get focused(){let e=this.choices[this.index];return e&&this.state.submitted&&this.multiple!==!0&&(e.enabled=!0),e}get selectable(){return this.choices.filter(e=>!this.isDisabled(e))}get selected(){return this.multiple?this.enabled:this.focused}};function Vu(t,e){if(e instanceof Promise)return e;if(typeof e=="function"){if(br.isAsyncFn(e))return e;e=e.call(t,t)}for(let r of e){if(Array.isArray(r.choices)){let i=r.choices.filter(s=>!t.isDisabled(s));r.enabled=i.every(s=>s.enabled===!0)}t.isDisabled(r)===!0&&delete r.enabled}return e}Wu.exports=os});var Ye=p((eS,Uu)=>{"use strict";var m0=Nt(),as=ne(),us=class extends m0{constructor(e){super(e),this.emptyError=this.options.emptyError||"No items were selected"}async dispatch(e,r){if(this.multiple)return this[r.name]?await this[r.name](e,r):await super.dispatch(e,r);this.alert()}separator(){if(this.options.separator)return super.separator();let e=this.styles.muted(this.symbols.ellipsis);return this.state.submitted?super.separator():e}pointer(e,r){return!this.multiple||this.options.pointer?super.pointer(e,r):""}indicator(e,r){return this.multiple?super.indicator(e,r):""}choiceMessage(e,r){let i=this.resolve(e.message,this.state,e,r);return e.role==="heading"&&!as.hasColor(i)&&(i=this.styles.strong(i)),this.resolve(i,this.state,e,r)}choiceSeparator(){return":"}async renderChoice(e,r){await this.onChoice(e,r);let i=this.index===r,s=await this.pointer(e,r),n=await this.indicator(e,r)+(e.pad||""),o=await this.resolve(e.hint,this.state,e,r);o&&!as.hasColor(o)&&(o=this.styles.muted(o));let a=this.indent(e),u=await this.choiceMessage(e,r),l=()=>[this.margin[3],a+s+n,u,this.margin[1],o].filter(Boolean).join(" ");return e.role==="heading"?l():e.disabled?(as.hasColor(u)||(u=this.styles.disabled(u)),l()):(i&&(u=this.styles.em(u)),l())}async renderChoices(){if(this.state.loading==="choices")return this.styles.warning("Loading choices");if(this.state.submitted)return"";let e=this.visible.map(async(n,o)=>await this.renderChoice(n,o)),r=await Promise.all(e);r.length||r.push(this.styles.danger("No matching choices"));let i=this.margin[0]+r.join(`
|
|
11
11
|
`),s;return this.options.choicesHeader&&(s=await this.resolve(this.options.choicesHeader,this.state)),[s,i].filter(Boolean).join(`
|
|
12
|
-
`)}format(){return!this.state.submitted||this.state.cancelled?"":Array.isArray(this.selected)?this.selected.map(e=>this.styles.primary(e.name)).join(", "):this.styles.primary(this.selected.name)}async render(){let{submitted:e,size:r}=this.state,i="",s=await this.header(),n=await this.prefix(),o=await this.separator(),
|
|
13
|
-
`)),this.write(this.margin[2]),this.restore()}};
|
|
14
|
-
`)),this.restore()}set value(e){super.value=e}get value(){return this.cast(super.value)}};
|
|
15
|
-
`,r):super.keypress(e,r)}moveCursor(e){this.cursor+=e}reset(){return this.input=this.value="",this.cursor=0,this.render()}dispatch(e,r){if(!e||r.ctrl||r.code)return this.alert();this.append(e)}append(e){let{cursor:r,input:i}=this.state;this.input=`${i}`.slice(0,r)+e+`${i}`.slice(r),this.moveCursor(String(e).length),this.render()}insert(e){this.append(e)}delete(){let{cursor:e,input:r}=this.state;if(e<=0)return this.alert();this.input=`${r}`.slice(0,e-1)+`${r}`.slice(e),this.moveCursor(-1),this.render()}deleteForward(){let{cursor:e,input:r}=this.state;if(r[e]===void 0)return this.alert();this.input=`${r}`.slice(0,e)+`${r}`.slice(e+1),this.render()}cutForward(){let e=this.cursor;if(this.input.length<=e)return this.alert();this.state.clipboard.push(this.input.slice(e)),this.input=this.input.slice(0,e),this.render()}cutLeft(){let e=this.cursor;if(e===0)return this.alert();let r=this.input.slice(0,e),i=this.input.slice(e),s=r.split(" ");this.state.clipboard.push(s.pop()),this.input=s.join(" "),this.cursor=this.input.length,this.input+=i,this.render()}paste(){if(!this.state.clipboard.length)return this.alert();this.insert(this.state.clipboard.pop()),this.render()}toggleCursor(){this.state.prevCursor?(this.cursor=this.state.prevCursor,this.state.prevCursor=0):(this.state.prevCursor=this.cursor,this.cursor=0),this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.input.length-1,this.render()}next(){let e=this.initial!=null?String(this.initial):"";if(!e||!e.startsWith(this.input))return this.alert();this.input=this.initial,this.cursor=this.initial.length,this.render()}prev(){if(!this.input)return this.alert();this.reset()}backward(){return this.left()}forward(){return this.right()}right(){return this.cursor>=this.input.length?this.alert():(this.moveCursor(1),this.render())}left(){return this.cursor<=0?this.alert():(this.moveCursor(-1),this.render())}isValue(e){return!!e}async format(e=this.value){let r=await this.resolve(this.initial,this.state);return this.state.submitted?this.styles.submitted(e||r)
|
|
16
|
-
`)),this.restore()}};
|
|
12
|
+
`)}format(){return!this.state.submitted||this.state.cancelled?"":Array.isArray(this.selected)?this.selected.map(e=>this.styles.primary(e.name)).join(", "):this.styles.primary(this.selected.name)}async render(){let{submitted:e,size:r}=this.state,i="",s=await this.header(),n=await this.prefix(),o=await this.separator(),a=await this.message();this.options.promptLine!==!1&&(i=[n,a,o,""].join(" "),this.state.prompt=i);let u=await this.format(),l=await this.error()||await this.hint(),c=await this.renderChoices(),h=await this.footer();u&&(i+=u),l&&!i.includes(l)&&(i+=" "+l),e&&!u&&!c.trim()&&this.multiple&&this.emptyError!=null&&(i+=this.styles.danger(this.emptyError)),this.clear(r),this.write([s,i,c,h].filter(Boolean).join(`
|
|
13
|
+
`)),this.write(this.margin[2]),this.restore()}};Uu.exports=us});var Ku=p((tS,zu)=>{"use strict";var g0=Ye(),D0=(t,e)=>{let r=t?new RegExp(t,"ig"):/$^/;return i=>t?i.replace(r,s=>e(s)):i},ls=class extends g0{constructor(e){super(e),this.cursorShow()}moveCursor(e){this.state.cursor+=e}dispatch(e){return this.append(e)}space(e){return this.options.multiple?super.space(e):this.append(e)}append(e){let{cursor:r,input:i}=this.state;return this.input=i.slice(0,r)+e+i.slice(r),this.moveCursor(1),this.complete()}delete(){let{cursor:e,input:r}=this.state;return r?(this.input=r.slice(0,e-1)+r.slice(e),this.moveCursor(-1),this.complete()):this.alert()}deleteForward(){let{cursor:e,input:r}=this.state;return r[e]===void 0?this.alert():(this.input=`${r}`.slice(0,e)+`${r}`.slice(e+1),this.complete())}number(e){return this.append(e)}async complete(){this.completing=!0,this.choices=await this.suggest(this.input,this.state._choices),this.state.limit=void 0,this.index=Math.min(Math.max(this.visible.length-1,0),this.index),await this.render(),this.completing=!1}suggest(e=this.input,r=this.state._choices){if(typeof this.options.suggest=="function")return this.options.suggest.call(this,e,r);let i=e.toLowerCase();return r.filter(s=>s.message.toLowerCase().includes(i))}pointer(){return""}format(){if(!this.focused)return this.input;if(this.options.multiple&&this.state.submitted)return this.selected.map(e=>this.styles.primary(e.message)).join(", ");if(this.state.submitted){let e=this.value=this.input=this.focused.value;return this.styles.primary(e)}return this.input}async render(){if(this.state.status!=="pending")return super.render();let e=this.options.highlight||this.styles.complement,r=(n,o)=>n&&(e.stack?e(n):e.call(this,n)),i=D0(this.input,r),s=this.choices;this.choices=s.map(n=>({...n,message:i(n.message)})),await super.render(),this.choices=s}submit(){return this.options.multiple&&(this.value=this.selected.map(e=>e.name)),super.submit()}};zu.exports=ls});var hs=p((rS,Yu)=>{"use strict";var cs=ne();Yu.exports=(t,e={})=>{t.cursorHide();let{input:r="",initial:i="",pos:s,showCursor:n=!0,color:o}=e,a=o||t.styles.placeholder,u=cs.inverse(t.styles.primary),l=g=>u(t.styles.black(g)),c=r,h=" ",f=l(h);if(t.blink&&t.blink.off===!0&&(l=g=>g,f=""),n&&s===0&&i===""&&r==="")return l(h);if(n&&s===0&&(r===i||r===""))return l(i[0])+a(i.slice(1));i=cs.isPrimitive(i)?`${i}`:"",r=cs.isPrimitive(r)?`${r}`:"";let d=i&&i.startsWith(r)&&i!==r,m=d?l(i[r.length]):f;if(s!==r.length&&n===!0&&(c=r.slice(0,s)+l(r[s])+r.slice(s+1),m=""),n===!1&&(m=""),d){let g=t.styles.unstyle(c+m);return c+m+a(i.slice(g.length))}return c+m}});var Cr=p((iS,Xu)=>{"use strict";var y0=ze(),E0=Ye(),_0=hs(),fs=class extends E0{constructor(e){super({...e,multiple:!0}),this.type="form",this.initial=this.options.initial,this.align=[this.options.align,"right"].find(r=>r!=null),this.emptyError="",this.values={}}async reset(e){return await super.reset(),e===!0&&(this._index=this.index),this.index=this._index,this.values={},this.choices.forEach(r=>r.reset&&r.reset()),this.render()}dispatch(e){return!!e&&this.append(e)}append(e){let r=this.focused;if(!r)return this.alert();let{cursor:i,input:s}=r;return r.value=r.input=s.slice(0,i)+e+s.slice(i),r.cursor++,this.render()}delete(){let e=this.focused;if(!e||e.cursor<=0)return this.alert();let{cursor:r,input:i}=e;return e.value=e.input=i.slice(0,r-1)+i.slice(r),e.cursor--,this.render()}deleteForward(){let e=this.focused;if(!e)return this.alert();let{cursor:r,input:i}=e;if(i[r]===void 0)return this.alert();let s=`${i}`.slice(0,r)+`${i}`.slice(r+1);return e.value=e.input=s,this.render()}right(){let e=this.focused;return e?e.cursor>=e.input.length?this.alert():(e.cursor++,this.render()):this.alert()}left(){let e=this.focused;return e?e.cursor<=0?this.alert():(e.cursor--,this.render()):this.alert()}space(e,r){return this.dispatch(e,r)}number(e,r){return this.dispatch(e,r)}next(){let e=this.focused;if(!e)return this.alert();let{initial:r,input:i}=e;return r&&r.startsWith(i)&&i!==r?(e.value=e.input=r,e.cursor=e.value.length,this.render()):super.next()}prev(){let e=this.focused;return e?e.cursor===0?super.prev():(e.value=e.input="",e.cursor=0,this.render()):this.alert()}separator(){return""}format(e){return this.state.submitted?"":super.format(e)}pointer(){return""}indicator(e){return e.input?"\u29BF":"\u2299"}async choiceSeparator(e,r){let i=await this.resolve(e.separator,this.state,e,r)||":";return i?" "+this.styles.disabled(i):""}async renderChoice(e,r){await this.onChoice(e,r);let{state:i,styles:s}=this,{cursor:n,initial:o="",name:a,input:u=""}=e,{muted:l,submitted:c,primary:h,danger:f}=s,d=this.index===r,m=e.validate||(()=>!0),g=await this.choiceSeparator(e,r),C=e.message;this.align==="right"&&(C=C.padStart(this.longest+1," ")),this.align==="left"&&(C=C.padEnd(this.longest+1," "));let F=this.values[a]=u||o,x=u?"success":"dark";await m.call(e,F,this.state)!==!0&&(x="danger");let _=s[x],R=_(await this.indicator(e,r))+(e.pad||""),S=this.indent(e),P=()=>[S,R,C+g,u].filter(Boolean).join(" ");if(i.submitted)return C=y0(C),u=c(u),P();if(e.format)u=await e.format.call(this,u,e,r);else{let B=this.styles.muted;u=_0(this,{input:u,initial:o,pos:n,showCursor:d,color:B})}return this.isValue(u)||(u=this.styles.muted(this.symbols.ellipsis)),e.result&&(this.values[a]=await e.result.call(this,F,e,r)),d&&(C=h(C)),e.error?u+=(u?" ":"")+f(e.error.trim()):e.hint&&(u+=(u?" ":"")+l(e.hint.trim())),P()}async submit(){return this.value=this.values,super.base.submit.call(this)}};Xu.exports=fs});var ps=p((sS,Zu)=>{"use strict";var F0=Cr(),b0=()=>{throw new Error("expected prompt to have a custom authenticate method")},Qu=(t=b0)=>{class e extends F0{constructor(i){super(i)}async submit(){this.value=await t.call(this,this.values,this.state),super.base.submit.call(this)}static create(i){return Qu(i)}}return e};Zu.exports=Qu()});var tl=p((nS,el)=>{"use strict";var C0=ps();function w0(t,e){return t.username===this.options.username&&t.password===this.options.password}var Ju=(t=w0)=>{let e=[{name:"username",message:"username"},{name:"password",message:"password",format(i){return this.options.showPassword?i:(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(i.length))}}];class r extends C0.create(t){constructor(s){super({...s,choices:e})}static create(s){return Ju(s)}}return r};el.exports=Ju()});var wr=p((oS,rl)=>{"use strict";var A0=yt(),{isPrimitive:v0,hasColor:x0}=ne(),ds=class extends A0{constructor(e){super(e),this.cursorHide()}async initialize(){let e=await this.resolve(this.initial,this.state);this.input=await this.cast(e),await super.initialize()}dispatch(e){return this.isValue(e)?(this.input=e,this.submit()):this.alert()}format(e){let{styles:r,state:i}=this;return i.submitted?r.success(e):r.primary(e)}cast(e){return this.isTrue(e)}isTrue(e){return/^[ty1]/i.test(e)}isFalse(e){return/^[fn0]/i.test(e)}isValue(e){return v0(e)&&(this.isTrue(e)||this.isFalse(e))}async hint(){if(this.state.status==="pending"){let e=await this.element("hint");return x0(e)?e:this.styles.muted(e)}}async render(){let{input:e,size:r}=this.state,i=await this.prefix(),s=await this.separator(),n=await this.message(),o=this.styles.muted(this.default),a=[i,n,o,s].filter(Boolean).join(" ");this.state.prompt=a;let u=await this.header(),l=this.value=this.cast(e),c=await this.format(l),h=await this.error()||await this.hint(),f=await this.footer();h&&!a.includes(h)&&(c+=" "+h),a+=" "+c,this.clear(r),this.write([u,a,f].filter(Boolean).join(`
|
|
14
|
+
`)),this.restore()}set value(e){super.value=e}get value(){return this.cast(super.value)}};rl.exports=ds});var sl=p((aS,il)=>{"use strict";var S0=wr(),ms=class extends S0{constructor(e){super(e),this.default=this.options.default||(this.initial?"(Y/n)":"(y/N)")}};il.exports=ms});var ol=p((uS,nl)=>{"use strict";var O0=Ye(),R0=Cr(),Et=R0.prototype,gs=class extends O0{constructor(e){super({...e,multiple:!0}),this.align=[this.options.align,"left"].find(r=>r!=null),this.emptyError="",this.values={}}dispatch(e,r){let i=this.focused,s=i.parent||{};return!i.editable&&!s.editable&&(e==="a"||e==="i")?super[e]():Et.dispatch.call(this,e,r)}append(e,r){return Et.append.call(this,e,r)}delete(e,r){return Et.delete.call(this,e,r)}space(e){return this.focused.editable?this.append(e):super.space()}number(e){return this.focused.editable?this.append(e):super.number(e)}next(){return this.focused.editable?Et.next.call(this):super.next()}prev(){return this.focused.editable?Et.prev.call(this):super.prev()}async indicator(e,r){let i=e.indicator||"",s=e.editable?i:super.indicator(e,r);return await this.resolve(s,this.state,e,r)||""}indent(e){return e.role==="heading"?"":e.editable?" ":" "}async renderChoice(e,r){return e.indent="",e.editable?Et.renderChoice.call(this,e,r):super.renderChoice(e,r)}error(){return""}footer(){return this.state.error}async validate(){let e=!0;for(let r of this.choices){if(typeof r.validate!="function"||r.role==="heading")continue;let i=r.parent?this.value[r.parent.name]:this.value;if(r.editable?i=r.value===r.name?r.initial||"":r.value:this.isDisabled(r)||(i=r.enabled===!0),e=await r.validate(i,this.state),e!==!0)break}return e!==!0&&(this.state.error=typeof e=="string"?e:"Invalid Input"),e}submit(){if(this.focused.newChoice===!0)return super.submit();if(this.choices.some(e=>e.newChoice))return this.alert();this.value={};for(let e of this.choices){let r=e.parent?this.value[e.parent.name]:this.value;if(e.role==="heading"){this.value[e.name]={};continue}e.editable?r[e.name]=e.value===e.name?e.initial||"":e.value:this.isDisabled(e)||(r[e.name]=e.enabled===!0)}return this.base.submit.call(this)}};nl.exports=gs});var ut=p((lS,al)=>{"use strict";var T0=yt(),P0=Ki(),$0=hs(),{isPrimitive:B0}=ne(),Ds=class extends T0{constructor(e){super(e),this.initial=B0(this.initial)?String(this.initial):"",this.initial&&this.cursorHide(),this.state.prevCursor=0,this.state.clipboard=[],this.keypressTimeout=this.options.keypressTimeout!==void 0?this.options.keypressTimeout:null}async keypress(e,r=e?P0(e,{}):{}){let i=Date.now(),s=i-this.lastKeypress;this.lastKeypress=i;let n=r.name==="return"||r.name==="enter",o=this.state.prevKeypress,a;if(this.state.prevKeypress=r,this.keypressTimeout!=null&&n){if(s<this.keypressTimeout)return this.submit();this.state.multilineBuffer=this.state.multilineBuffer||"",this.state.multilineBuffer+=e,a=!0,o=null}return(a||this.options.multiline&&n)&&(!o||o.name!=="return")?this.append(`
|
|
15
|
+
`,r):super.keypress(e,r)}moveCursor(e){this.cursor+=e}reset(){return this.input=this.value="",this.cursor=0,this.render()}dispatch(e,r){if(!e||r.ctrl||r.code)return this.alert();this.append(e)}append(e){let{cursor:r,input:i}=this.state;this.input=`${i}`.slice(0,r)+e+`${i}`.slice(r),this.moveCursor(String(e).length),this.render()}insert(e){this.append(e)}delete(){let{cursor:e,input:r}=this.state;if(e<=0)return this.alert();this.input=`${r}`.slice(0,e-1)+`${r}`.slice(e),this.moveCursor(-1),this.render()}deleteForward(){let{cursor:e,input:r}=this.state;if(r[e]===void 0)return this.alert();this.input=`${r}`.slice(0,e)+`${r}`.slice(e+1),this.render()}cutForward(){let e=this.cursor;if(this.input.length<=e)return this.alert();this.state.clipboard.push(this.input.slice(e)),this.input=this.input.slice(0,e),this.render()}cutLeft(){let e=this.cursor;if(e===0)return this.alert();let r=this.input.slice(0,e),i=this.input.slice(e),s=r.split(" ");this.state.clipboard.push(s.pop()),this.input=s.join(" "),this.cursor=this.input.length,this.input+=i,this.render()}paste(){if(!this.state.clipboard.length)return this.alert();this.insert(this.state.clipboard.pop()),this.render()}toggleCursor(){this.state.prevCursor?(this.cursor=this.state.prevCursor,this.state.prevCursor=0):(this.state.prevCursor=this.cursor,this.cursor=0),this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.input.length-1,this.render()}next(){let e=this.initial!=null?String(this.initial):"";if(!e||!e.startsWith(this.input))return this.alert();this.input=this.initial,this.cursor=this.initial.length,this.render()}prev(){if(!this.input)return this.alert();this.reset()}backward(){return this.left()}forward(){return this.right()}right(){return this.cursor>=this.input.length?this.alert():(this.moveCursor(1),this.render())}left(){return this.cursor<=0?this.alert():(this.moveCursor(-1),this.render())}isValue(e){return!!e}async format(e=this.value){let r=await this.resolve(this.initial,this.state);return this.state.submitted?this.styles.submitted(e||r):$0(this,{input:e,initial:r,pos:this.cursor})}async render(){let e=this.state.size,r=await this.prefix(),i=await this.separator(),s=await this.message(),n=[r,s,i].filter(Boolean).join(" ");this.state.prompt=n;let o=await this.header(),a=await this.format(),u=await this.error()||await this.hint(),l=await this.footer();u&&!a.includes(u)&&(a+=" "+u),n+=" "+a,this.clear(e),this.write([o,n,l].filter(Boolean).join(`
|
|
16
|
+
`)),this.restore()}};al.exports=Ds});var ll=p((cS,ul)=>{"use strict";var I0=t=>t.filter((e,r)=>t.lastIndexOf(e)===r),Ar=t=>I0(t).filter(Boolean);ul.exports=(t,e={},r="")=>{let{past:i=[],present:s=""}=e,n,o;switch(t){case"prev":case"undo":return n=i.slice(0,i.length-1),o=i[i.length-1]||"",{past:Ar([r,...n]),present:o};case"next":case"redo":return n=i.slice(1),o=i[0]||"",{past:Ar([...n,r]),present:o};case"save":return{past:Ar([...i,r]),present:""};case"remove":return o=Ar(i.filter(a=>a!==r)),s="",o.length&&(s=o.pop()),{past:o,present:s};default:throw new Error(`Invalid action: "${t}"`)}}});var Es=p((hS,hl)=>{"use strict";var k0=ut(),cl=ll(),ys=class extends k0{constructor(e){super(e);let r=this.options.history;if(r&&r.store){let i=r.values||this.initial;this.autosave=!!r.autosave,this.store=r.store,this.data=this.store.get("values")||{past:[],present:i},this.initial=this.data.present||this.data.past[this.data.past.length-1]}}completion(e){return this.store?(this.data=cl(e,this.data,this.input),this.data.present?(this.input=this.data.present,this.cursor=this.input.length,this.render()):this.alert()):this.alert()}altUp(){return this.completion("prev")}altDown(){return this.completion("next")}prev(){return this.save(),super.prev()}save(){this.store&&(this.data=cl("save",this.data,this.input),this.store.set("values",this.data))}submit(){return this.store&&this.autosave===!0&&this.save(),super.submit()}};hl.exports=ys});var pl=p((fS,fl)=>{"use strict";var L0=ut(),_s=class extends L0{format(){return""}};fl.exports=_s});var ml=p((pS,dl)=>{"use strict";var N0=ut(),Fs=class extends N0{constructor(e={}){super(e),this.sep=this.options.separator||/, */,this.initial=e.initial||""}split(e=this.value){return e?String(e).split(this.sep):[]}format(){let e=this.state.submitted?this.styles.primary:r=>r;return this.list.map(e).join(", ")}async submit(e){let r=this.state.error||await this.validate(this.list,this.state);return r!==!0?(this.state.error=r,super.submit()):(this.value=this.list,super.submit())}get list(){return this.split()}};dl.exports=Fs});var Dl=p((dS,gl)=>{"use strict";var q0=Ye(),bs=class extends q0{constructor(e){super({...e,multiple:!0})}};gl.exports=bs});var ws=p((mS,yl)=>{"use strict";var j0=ut(),Cs=class extends j0{constructor(e={}){super({style:"number",...e}),this.min=this.isValue(e.min)?this.toNumber(e.min):-1/0,this.max=this.isValue(e.max)?this.toNumber(e.max):1/0,this.delay=e.delay!=null?e.delay:1e3,this.float=e.float!==!1,this.round=e.round===!0||e.float===!1,this.major=e.major||10,this.minor=e.minor||1,this.initial=e.initial!=null?e.initial:"",this.input=String(this.initial),this.cursor=this.input.length,this.cursorShow()}append(e){return!/[-+.]/.test(e)||e==="."&&this.input.includes(".")?this.alert("invalid number"):super.append(e)}number(e){return super.append(e)}next(){return this.input&&this.input!==this.initial?this.alert():this.isValue(this.initial)?(this.input=this.initial,this.cursor=String(this.initial).length,this.render()):this.alert()}up(e){let r=e||this.minor,i=this.toNumber(this.input);return i>this.max+r?this.alert():(this.input=`${i+r}`,this.render())}down(e){let r=e||this.minor,i=this.toNumber(this.input);return i<this.min-r?this.alert():(this.input=`${i-r}`,this.render())}shiftDown(){return this.down(this.major)}shiftUp(){return this.up(this.major)}format(e=this.input){return typeof this.options.format=="function"?this.options.format.call(this,e):this.styles.info(e)}toNumber(e=""){return this.float?+e:Math.round(+e)}isValue(e){return/^[-+]?[0-9]+((\.)|(\.[0-9]+))?$/.test(e)}submit(){let e=[this.input,this.initial].find(r=>this.isValue(r));return this.value=this.toNumber(e||0),super.submit()}};yl.exports=Cs});var _l=p((gS,El)=>{El.exports=ws()});var bl=p((DS,Fl)=>{"use strict";var M0=ut(),As=class extends M0{constructor(e){super(e),this.cursorShow()}format(e=this.input){return this.keypressed?(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(e.length)):""}};Fl.exports=As});var Al=p((yS,wl)=>{"use strict";var H0=ze(),G0=Nt(),Cl=ne(),vs=class extends G0{constructor(e={}){super(e),this.widths=[].concat(e.messageWidth||50),this.align=[].concat(e.align||"left"),this.linebreak=e.linebreak||!1,this.edgeLength=e.edgeLength||3,this.newline=e.newline||`
|
|
17
17
|
`;let r=e.startNumber||1;typeof this.scale=="number"&&(this.scaleKey=!1,this.scale=Array(this.scale).fill(0).map((i,s)=>({name:s+r})))}async reset(){return this.tableized=!1,await super.reset(),this.render()}tableize(){if(this.tableized===!0)return;this.tableized=!0;let e=0;for(let r of this.choices){e=Math.max(e,r.message.length),r.scaleIndex=r.initial||2,r.scale=[];for(let i=0;i<this.scale.length;i++)r.scale.push({index:i})}this.widths[0]=Math.min(this.widths[0],e+3)}async dispatch(e,r){if(this.multiple)return this[r.name]?await this[r.name](e,r):await super.dispatch(e,r);this.alert()}heading(e,r,i){return this.styles.strong(e)}separator(){return this.styles.muted(this.symbols.ellipsis)}right(){let e=this.focused;return e.scaleIndex>=this.scale.length-1?this.alert():(e.scaleIndex++,this.render())}left(){let e=this.focused;return e.scaleIndex<=0?this.alert():(e.scaleIndex--,this.render())}indent(){return""}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.index)).join(", "):""}pointer(){return""}renderScaleKey(){return this.scaleKey===!1||this.state.submitted?"":["",...this.scale.map(i=>` ${i.name} - ${i.message}`)].map(i=>this.styles.muted(i)).join(`
|
|
18
|
-
`)}renderScaleHeading(e){let r=this.scale.map(
|
|
19
|
-
`).map(
|
|
18
|
+
`)}renderScaleHeading(e){let r=this.scale.map(u=>u.name);typeof this.options.renderScaleHeading=="function"&&(r=this.options.renderScaleHeading.call(this,e));let i=this.scaleLength-r.join("").length,s=Math.round(i/(r.length-1)),o=r.map(u=>this.styles.strong(u)).join(" ".repeat(s)),a=" ".repeat(this.widths[0]);return this.margin[3]+a+this.margin[1]+o}scaleIndicator(e,r,i){if(typeof this.options.scaleIndicator=="function")return this.options.scaleIndicator.call(this,e,r,i);let s=e.scaleIndex===r.index;return r.disabled?this.styles.hint(this.symbols.radio.disabled):s?this.styles.success(this.symbols.radio.on):this.symbols.radio.off}renderScale(e,r){let i=e.scale.map(n=>this.scaleIndicator(e,n,r)),s=this.term==="Hyper"?"":" ";return i.join(s+this.symbols.line.repeat(this.edgeLength))}async renderChoice(e,r){await this.onChoice(e,r);let i=this.index===r,s=await this.pointer(e,r),n=await e.hint;n&&!Cl.hasColor(n)&&(n=this.styles.muted(n));let o=m=>this.margin[3]+m.replace(/\s+$/,"").padEnd(this.widths[0]," "),a=this.newline,u=this.indent(e),l=await this.resolve(e.message,this.state,e,r),c=await this.renderScale(e,r),h=this.margin[1]+this.margin[3];this.scaleLength=H0(c).length,this.widths[0]=Math.min(this.widths[0],this.width-this.scaleLength-h.length);let d=Cl.wordWrap(l,{width:this.widths[0],newline:a}).split(`
|
|
19
|
+
`).map(m=>o(m)+this.margin[1]);return i&&(c=this.styles.info(c),d=d.map(m=>this.styles.info(m))),d[0]+=c,this.linebreak&&d.push(""),[u+s,d.join(`
|
|
20
20
|
`)].filter(Boolean)}async renderChoices(){if(this.state.submitted)return"";this.tableize();let e=this.visible.map(async(s,n)=>await this.renderChoice(s,n)),r=await Promise.all(e),i=await this.renderScaleHeading();return this.margin[0]+[i,...r.map(s=>s.join(" "))].join(`
|
|
21
|
-
`)}async render(){let{submitted:e,size:r}=this.state,i=await this.prefix(),s=await this.separator(),n=await this.message(),o="";this.options.promptLine!==!1&&(o=[i,n,s,""].join(" "),this.state.prompt=o);let
|
|
22
|
-
`)),this.state.submitted||this.write(this.margin[2]),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIndex;return this.base.submit.call(this)}};
|
|
23
|
-
`){
|
|
24
|
-
`).map(
|
|
25
|
-
`),h.output}};function
|
|
26
|
-
`].find(
|
|
27
|
-
`;return this.state.error=
|
|
28
|
-
`).map(
|
|
29
|
-
`);return this.value={values:s,result:o},super.submit()}};
|
|
30
|
-
`)}}async toChoices(...e){if(this.createdScales)return!1;this.createdScales=!0;let r=await super.toChoices(...e);for(let i of r)i.scale=
|
|
31
|
-
`);return i&&(
|
|
32
|
-
`)}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.scaleIdx)).join(", "):""}async render(){let{submitted:e,size:r}=this.state,i=await this.prefix(),s=await this.separator(),n=await this.message(),o=[i,n,s].filter(Boolean).join(" ");this.state.prompt=o;let
|
|
33
|
-
`)),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIdx;return this.base.submit.call(this)}};function
|
|
34
|
-
`)),this.write(this.margin[2]),this.restore()}};Ma.exports=Ji});var Wa=p((HE,Ha)=>{"use strict";var fD=Le(),es=class extends fD{constructor(e){if(super(e),typeof this.options.correctChoice!="number"||this.options.correctChoice<0)throw new Error("Please specify the index of the correct answer from the list of choices")}async toChoices(e,r){let i=await super.toChoices(e,r);if(i.length<2)throw new Error("Please give at least two choices to the user");if(this.options.correctChoice>i.length)throw new Error("Please specify the index of the correct answer from the list of choices");return i}check(e){return e.index===this.options.correctChoice}async result(e){return{selectedAnswer:e,correctAnswer:this.options.choices[this.options.correctChoice].value,correct:await this.check(this.state)}}};Ha.exports=es});var Ga=p(ts=>{"use strict";var Va=te(),J=(t,e)=>{Va.defineExport(ts,t,e),Va.defineExport(ts,t.toLowerCase(),e)};J("AutoComplete",()=>Xu());J("BasicAuth",()=>sa());J("Confirm",()=>ua());J("Editable",()=>la());J("Form",()=>rr());J("Input",()=>Mi());J("Invisible",()=>Da());J("List",()=>ya());J("MultiSelect",()=>ba());J("Numeral",()=>Ca());J("Password",()=>va());J("Scale",()=>Sa());J("Select",()=>Le());J("Snippet",()=>Ra());J("Sort",()=>$a());J("Survey",()=>ja());J("Text",()=>Na());J("Toggle",()=>qa());J("Quiz",()=>Wa())});var za=p((VE,Ua)=>{Ua.exports={ArrayPrompt:wt(),AuthPrompt:ki(),BooleanPrompt:ir(),NumberPrompt:Gi(),StringPrompt:Xe()}});var Qa=p((GE,Ya)=>{"use strict";var Ka=require("assert"),is=require("events"),Ne=te(),_e=class extends is{constructor(e,r){super(),this.options=Ne.merge({},e),this.answers={...r}}register(e,r){if(Ne.isObject(e)){for(let s of Object.keys(e))this.register(s,e[s]);return this}Ka.equal(typeof r,"function","expected a function");let i=e.toLowerCase();return r.prototype instanceof this.Prompt?this.prompts[i]=r:this.prompts[i]=r(this.Prompt,this),this}async prompt(e=[]){for(let r of[].concat(e))try{typeof r=="function"&&(r=await r.call(this)),await this.ask(Ne.merge({},this.options,r))}catch(i){return Promise.reject(i)}return this.answers}async ask(e){typeof e=="function"&&(e=await e.call(this));let r=Ne.merge({},this.options,e),{type:i,name:s}=e,{set:n,get:o}=Ne;if(typeof i=="function"&&(i=await i.call(this,e,this.answers)),!i)return this.answers[s];i==="number"&&(i="numeral"),Ka(this.prompts[i],`Prompt "${i}" is not registered`);let u=new this.prompts[i](r),a=o(this.answers,s);u.state.answers=this.answers,u.enquirer=this,s&&u.on("submit",c=>{this.emit("answer",s,c,u),n(this.answers,s,c)});let l=u.emit.bind(u);return u.emit=(...c)=>(this.emit.call(this,...c),l(...c)),this.emit("prompt",u,this),r.autofill&&a!=null?(u.value=u.input=a,r.autofill==="show"&&await u.submit()):a=u.value=await u.run(),a}use(e){return e.call(this,this),this}set Prompt(e){this._Prompt=e}get Prompt(){return this._Prompt||this.constructor.Prompt}get prompts(){return this.constructor.prompts}static set Prompt(e){this._Prompt=e}static get Prompt(){return this._Prompt||ot()}static get prompts(){return Ga()}static get types(){return za()}static get prompt(){let e=(r,...i)=>{let s=new this(...i),n=s.emit.bind(s);return s.emit=(...o)=>(e.emit(...o),n(...o)),s.prompt(r)};return Ne.mixinEmitter(e,new is),e}};Ne.mixinEmitter(_e,new is);var rs=_e.prompts;for(let t of Object.keys(rs)){let e=t.toLowerCase(),r=i=>new rs[t](i).run();_e.prompt[e]=r,_e[e]=r,_e[t]||Reflect.defineProperty(_e,t,{get:()=>rs[t]})}var vt=t=>{Ne.defineExport(_e,t,()=>_e.types[t])};vt("ArrayPrompt");vt("AuthPrompt");vt("BooleanPrompt");vt("NumberPrompt");vt("StringPrompt");Ya.exports=_e});var Za=p((UE,Xa)=>{"use strict";var{builtinModules:pD}=require("module"),dD=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),mD=["node_modules","favicon.ico"];function DD(t){var e=[],r=[];if(t===null)return r.push("name cannot be null"),xt(e,r);if(t===void 0)return r.push("name cannot be undefined"),xt(e,r);if(typeof t!="string")return r.push("name must be a string"),xt(e,r);if(t.length||r.push("name length must be greater than zero"),t.match(/^\./)&&r.push("name cannot start with a period"),t.match(/^_/)&&r.push("name cannot start with an underscore"),t.trim()!==t&&r.push("name cannot contain leading or trailing spaces"),mD.forEach(function(o){t.toLowerCase()===o&&r.push(o+" is a blacklisted name")}),pD.includes(t.toLowerCase())&&e.push(t+" is a core module name"),t.length>214&&e.push("name can no longer contain more than 214 characters"),t.toLowerCase()!==t&&e.push("name can no longer contain capital letters"),/[~'!()*]/.test(t.split("/").slice(-1)[0])&&e.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(t)!==t){var i=t.match(dD);if(i){var s=i[1],n=i[2];if(encodeURIComponent(s)===s&&encodeURIComponent(n)===n)return xt(e,r)}r.push("name can only contain URL-friendly characters")}return xt(e,r)}var xt=function(t,e){var r={validForNewPackages:e.length===0&&t.length===0,validForOldPackages:e.length===0,warnings:t,errors:e};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};Xa.exports=DD});var Dl=p((oC,ml)=>{ml.exports=dl;dl.sync=TD;var fl=require("fs");function BD(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var s=r[i].toLowerCase();if(s&&t.substr(-s.length).toLowerCase()===s)return!0}return!1}function pl(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:BD(e,r)}function dl(t,e,r){fl.stat(t,function(i,s){r(i,i?!1:pl(s,t,e))})}function TD(t,e){return pl(fl.statSync(t),t,e)}});var Fl=p((uC,bl)=>{bl.exports=yl;yl.sync=RD;var gl=require("fs");function yl(t,e,r){gl.stat(t,function(i,s){r(i,i?!1:_l(s,e))})}function RD(t,e){return _l(gl.statSync(t),e)}function _l(t,e){return t.isFile()&&kD(t,e)}function kD(t,e){var r=t.mode,i=t.uid,s=t.gid,n=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),u=parseInt("100",8),a=parseInt("010",8),l=parseInt("001",8),c=u|a,h=r&l||r&a&&s===o||r&u&&i===n||r&c&&n===0;return h}});var Cl=p((lC,El)=>{var aC=require("fs"),lr;process.platform==="win32"||global.TESTING_WINDOWS?lr=Dl():lr=Fl();El.exports=ls;ls.sync=$D;function ls(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,s){ls(t,e||{},function(n,o){n?s(n):i(o)})})}lr(t,e||{},function(i,s){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,s=!1),r(i,s)})}function $D(t,e){try{return lr.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Pl=p((cC,Ol)=>{var ct=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",wl=require("path"),ID=ct?";":":",vl=Cl(),xl=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Al=(t,e)=>{let r=e.colon||ID,i=t.match(/\//)||ct&&t.match(/\\/)?[""]:[...ct?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],s=ct?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=ct?s.split(r):[""];return ct&&t.indexOf(".")!==-1&&n[0]!==""&&n.unshift(""),{pathEnv:i,pathExt:n,pathExtExe:s}},Sl=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:s,pathExtExe:n}=Al(t,e),o=[],u=l=>new Promise((c,h)=>{if(l===i.length)return e.all&&o.length?c(o):h(xl(t));let f=i[l],_=/^".*"$/.test(f)?f.slice(1,-1):f,d=wl.join(_,t),m=!_&&/^\.[\\\/]/.test(t)?t.slice(0,2)+d:d;c(a(m,l,0))}),a=(l,c,h)=>new Promise((f,_)=>{if(h===s.length)return f(u(c+1));let d=s[h];vl(l+d,{pathExt:n},(m,C)=>{if(!m&&C)if(e.all)o.push(l+d);else return f(l+d);return f(a(l,c,h+1))})});return r?u(0).then(l=>r(null,l),r):u(0)},jD=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:s}=Al(t,e),n=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,l=wl.join(a,t),c=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let h=0;h<i.length;h++){let f=c+i[h];try{if(vl.sync(f,{pathExt:s}))if(e.all)n.push(f);else return f}catch{}}}if(e.all&&n.length)return n;if(e.nothrow)return null;throw xl(t)};Ol.exports=Sl;Sl.sync=jD});var Tl=p((hC,cs)=>{"use strict";var Bl=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};cs.exports=Bl;cs.exports.default=Bl});var Il=p((fC,$l)=>{"use strict";var Rl=require("path"),LD=Pl(),ND=Tl();function kl(t,e){let r=t.options.env||process.env,i=process.cwd(),s=t.options.cwd!=null,n=s&&process.chdir!==void 0&&!process.chdir.disabled;if(n)try{process.chdir(t.options.cwd)}catch{}let o;try{o=LD.sync(t.command,{path:r[ND({env:r})],pathExt:e?Rl.delimiter:void 0})}catch{}finally{n&&process.chdir(i)}return o&&(o=Rl.resolve(s?t.options.cwd:"",o)),o}function MD(t){return kl(t)||kl(t,!0)}$l.exports=MD});var jl=p((pC,fs)=>{"use strict";var hs=/([()\][%!^"`<>&|;, *?])/g;function qD(t){return t=t.replace(hs,"^$1"),t}function HD(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t=t.replace(/(?=(\\+?)?)\1$/,"$1$1"),t=`"${t}"`,t=t.replace(hs,"^$1"),e&&(t=t.replace(hs,"^$1")),t}fs.exports.command=qD;fs.exports.argument=HD});var Nl=p((dC,Ll)=>{"use strict";Ll.exports=/^#!(.*)/});var ql=p((mC,Ml)=>{"use strict";var WD=Nl();Ml.exports=(t="")=>{let e=t.match(WD);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return s==="env"?i:i?`${s} ${i}`:s}});var Wl=p((DC,Hl)=>{"use strict";var ps=require("fs"),VD=ql();function GD(t){let r=Buffer.alloc(150),i;try{i=ps.openSync(t,"r"),ps.readSync(i,r,0,150,0),ps.closeSync(i)}catch{}return VD(r.toString())}Hl.exports=GD});var zl=p((gC,Ul)=>{"use strict";var UD=require("path"),Vl=Il(),Gl=jl(),zD=Wl(),KD=process.platform==="win32",YD=/\.(?:com|exe)$/i,QD=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function XD(t){t.file=Vl(t);let e=t.file&&zD(t.file);return e?(t.args.unshift(t.file),t.command=e,Vl(t)):t.file}function ZD(t){if(!KD)return t;let e=XD(t),r=!YD.test(e);if(t.options.forceShell||r){let i=QD.test(e);t.command=UD.normalize(t.command),t.command=Gl.command(t.command),t.args=t.args.map(n=>Gl.argument(n,i));let s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function JD(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:ZD(i)}Ul.exports=JD});var Ql=p((yC,Yl)=>{"use strict";var ds=process.platform==="win32";function ms(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function eg(t,e){if(!ds)return;let r=t.emit;t.emit=function(i,s){if(i==="exit"){let n=Kl(s,e);if(n)return r.call(t,"error",n)}return r.apply(t,arguments)}}function Kl(t,e){return ds&&t===1&&!e.file?ms(e.original,"spawn"):null}function tg(t,e){return ds&&t===1&&!e.file?ms(e.original,"spawnSync"):null}Yl.exports={hookChildProcess:eg,verifyENOENT:Kl,verifyENOENTSync:tg,notFoundError:ms}});var Jl=p((_C,ht)=>{"use strict";var Xl=require("child_process"),Ds=zl(),gs=Ql();function Zl(t,e,r){let i=Ds(t,e,r),s=Xl.spawn(i.command,i.args,i.options);return gs.hookChildProcess(s,i),s}function rg(t,e,r){let i=Ds(t,e,r),s=Xl.spawnSync(i.command,i.args,i.options);return s.error=s.error||gs.verifyENOENTSync(s.status,i),s}ht.exports=Zl;ht.exports.spawn=Zl;ht.exports.sync=rg;ht.exports._parse=Ds;ht.exports._enoent=gs});var Bc=p((dw,Pc)=>{"use strict";var{PassThrough:Kg}=require("stream");Pc.exports=function(){var t=[],e=new Kg({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(r),e;function r(n){return Array.isArray(n)?(n.forEach(r),this):(t.push(n),n.once("end",s.bind(null,n)),n.once("error",e.emit.bind(e,"error")),n.pipe(e,{end:!1}),this)}function i(){return t.length==0}function s(n){t=t.filter(function(o){return o!==n}),!t.length&&e.readable&&e.end()}}});var kt=p(Ws=>{var Ar=class extends Error{constructor(e,r,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},Hs=class extends Ar{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Ws.CommanderError=Ar;Ws.InvalidArgumentError=Hs});var Sr=p(Gs=>{var{InvalidArgumentError:a0}=kt(),Vs=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new a0(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,i):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function l0(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Gs.Argument=Vs;Gs.humanReadableArgName=l0});var Ks=p(zs=>{var{humanReadableArgName:c0}=Sr(),Us=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){let r=e.commands.filter(s=>!s._hidden),i=e._getHelpCommand();return i&&!i._hidden&&r.push(i),this.sortSubcommands&&r.sort((s,n)=>s.name().localeCompare(n.name())),r}compareOptions(e,r){let i=s=>s.short?s.short.replace(/^-/,""):s.long.replace(/^--/,"");return i(e).localeCompare(i(r))}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),i=e._getHelpOption();if(i&&!i.hidden){let s=i.short&&e._findOption(i.short),n=i.long&&e._findOption(i.long);!s&&!n?r.push(i):i.long&&!n?r.push(e.createOption(i.long,i.description)):i.short&&!s&&r.push(e.createOption(i.short,i.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let i=e.parent;i;i=i.parent){let s=i.options.filter(n=>!n.hidden);r.push(...s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e.registeredArguments.find(r=>r.description)?e.registeredArguments:[]}subcommandTerm(e){let r=e.registeredArguments.map(i=>c0(i)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((i,s)=>Math.max(i,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(s)))),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((i,s)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(s)))),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((i,s)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(s)))),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((i,s)=>Math.max(i,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(s)))),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let i="";for(let s=e.parent;s;s=s.parent)i=s.name()+" "+i;return i+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let i=`(${r.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}formatHelp(e,r){let i=r.padWidth(e,r),s=r.helpWidth??80;function n(h,f){return r.formatItem(h,i,f,r)}let o=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(e))}`,""],u=r.commandDescription(e);u.length>0&&(o=o.concat([r.boxWrap(r.styleCommandDescription(u),s),""]));let a=r.visibleArguments(e).map(h=>n(r.styleArgumentTerm(r.argumentTerm(h)),r.styleArgumentDescription(r.argumentDescription(h))));a.length>0&&(o=o.concat([r.styleTitle("Arguments:"),...a,""]));let l=r.visibleOptions(e).map(h=>n(r.styleOptionTerm(r.optionTerm(h)),r.styleOptionDescription(r.optionDescription(h))));if(l.length>0&&(o=o.concat([r.styleTitle("Options:"),...l,""])),r.showGlobalOptions){let h=r.visibleGlobalOptions(e).map(f=>n(r.styleOptionTerm(r.optionTerm(f)),r.styleOptionDescription(r.optionDescription(f))));h.length>0&&(o=o.concat([r.styleTitle("Global Options:"),...h,""]))}let c=r.visibleCommands(e).map(h=>n(r.styleSubcommandTerm(r.subcommandTerm(h)),r.styleSubcommandDescription(r.subcommandDescription(h))));return c.length>0&&(o=o.concat([r.styleTitle("Commands:"),...c,""])),o.join(`
|
|
35
|
-
`)}displayWidth(e){return
|
|
36
|
-
`+" ".repeat(r+
|
|
37
|
-
${o}`)}boxWrap(e,r){if(r<this.minWidthToWrap)return e;let i=e.split(/\r\n|\n/),s=/[\s]*[^\s]+/g,n=[];return i.forEach(o=>{let
|
|
38
|
-
`)}};function
|
|
21
|
+
`)}async render(){let{submitted:e,size:r}=this.state,i=await this.prefix(),s=await this.separator(),n=await this.message(),o="";this.options.promptLine!==!1&&(o=[i,n,s,""].join(" "),this.state.prompt=o);let a=await this.header(),u=await this.format(),l=await this.renderScaleKey(),c=await this.error()||await this.hint(),h=await this.renderChoices(),f=await this.footer(),d=this.emptyError;u&&(o+=u),c&&!o.includes(c)&&(o+=" "+c),e&&!u&&!h.trim()&&this.multiple&&d!=null&&(o+=this.styles.danger(d)),this.clear(r),this.write([a,o,l,h,f].filter(Boolean).join(`
|
|
22
|
+
`)),this.state.submitted||this.write(this.margin[2]),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIndex;return this.base.submit.call(this)}};wl.exports=vs});var Sl=p((ES,xl)=>{"use strict";var vl=ze(),V0=(t="")=>typeof t=="string"?t.replace(/^['"]|['"]$/g,""):"",Ss=class{constructor(e){this.name=e.key,this.field=e.field||{},this.value=V0(e.initial||this.field.initial||""),this.message=e.message||this.name,this.cursor=0,this.input="",this.lines=[]}},W0=async(t={},e={},r=i=>i)=>{let i=new Set,s=t.fields||[],n=t.template,o=[],a=[],u=[],l=1;typeof n=="function"&&(n=await n());let c=-1,h=()=>n[++c],f=()=>n[c+1],d=m=>{m.line=l,o.push(m)};for(d({type:"bos",value:""});c<n.length-1;){let m=h();if(/^[^\S\n ]$/.test(m)){d({type:"text",value:m});continue}if(m===`
|
|
23
|
+
`){d({type:"newline",value:m}),l++;continue}if(m==="\\"){m+=h(),d({type:"text",value:m});continue}if((m==="$"||m==="#"||m==="{")&&f()==="{"){let C=h();m+=C;let F={type:"template",open:m,inner:"",close:"",value:m},x;for(;x=h();){if(x==="}"){f()==="}"&&(x+=h()),F.value+=x,F.close=x;break}x===":"?(F.initial="",F.key=F.inner):F.initial!==void 0&&(F.initial+=x),F.value+=x,F.inner+=x}F.template=F.open+(F.initial||F.inner)+F.close,F.key=F.key||F.inner,hasOwnProperty.call(e,F.key)&&(F.initial=e[F.key]),F=r(F),d(F),u.push(F.key),i.add(F.key);let _=a.find(R=>R.name===F.key);F.field=s.find(R=>R.name===F.key),_||(_=new Ss(F),a.push(_)),_.lines.push(F.line-1);continue}let g=o[o.length-1];g.type==="text"&&g.line===l?g.value+=m:d({type:"text",value:m})}return d({type:"eos",value:""}),{input:n,tabstops:o,unique:i,keys:u,items:a}};xl.exports=async t=>{let e=t.options,r=new Set(e.required===!0?[]:e.required||[]),i={...e.values,...e.initial},{tabstops:s,items:n,keys:o}=await W0(e,i),a=xs("result",t,e),u=xs("format",t,e),l=xs("validate",t,e,!0),c=t.isValue.bind(t);return async(h={},f=!1)=>{let d=0;h.required=r,h.items=n,h.keys=o,h.output="";let m=async(x,_,R,S)=>{let P=await l(x,_,R,S);return P===!1?"Invalid field "+R.name:P};for(let x of s){let _=x.value,R=x.key;if(x.type!=="template"){_&&(h.output+=_);continue}if(x.type==="template"){let S=n.find(H=>H.name===R);e.required===!0&&h.required.add(S.name);let P=[S.input,h.values[S.value],S.value,_].find(c),T=(S.field||{}).message||x.inner;if(f){let H=await m(h.values[R],h,S,d);if(H&&typeof H=="string"||H===!1){h.invalid.set(R,H);continue}h.invalid.delete(R);let E=await a(h.values[R],h,S,d);h.output+=vl(E);continue}S.placeholder=!1;let O=_;_=await u(_,h,S,d),P!==_?(h.values[R]=P,_=t.styles.typing(P),h.missing.delete(T)):(h.values[R]=void 0,P=`<${T}>`,_=t.styles.primary(P),S.placeholder=!0,h.required.has(R)&&h.missing.add(T)),h.missing.has(T)&&h.validating&&(_=t.styles.warning(P)),h.invalid.has(R)&&h.validating&&(_=t.styles.danger(P)),d===h.index&&(O!==_?_=t.styles.underline(_):_=t.styles.heading(vl(_))),d++}_&&(h.output+=_)}let g=h.output.split(`
|
|
24
|
+
`).map(x=>" "+x),C=n.length,F=0;for(let x of n)h.invalid.has(x.name)&&x.lines.forEach(_=>{g[_][0]===" "&&(g[_]=h.styles.danger(h.symbols.bullet)+g[_].slice(1))}),t.isValue(h.values[x.name])&&F++;return h.completed=(F/C*100).toFixed(0),h.output=g.join(`
|
|
25
|
+
`),h.output}};function xs(t,e,r,i){return(s,n,o,a)=>typeof o.field[t]=="function"?o.field[t].call(e,s,n,o,a):[i,s].find(u=>e.isValue(u))}});var Rl=p((_S,Ol)=>{"use strict";var U0=ze(),z0=Sl(),K0=yt(),Os=class extends K0{constructor(e){super(e),this.cursorHide(),this.reset(!0)}async initialize(){this.interpolate=await z0(this),await super.initialize()}async reset(e){this.state.keys=[],this.state.invalid=new Map,this.state.missing=new Set,this.state.completed=0,this.state.values={},e!==!0&&(await this.initialize(),await this.render())}moveCursor(e){let r=this.getItem();this.cursor+=e,r.cursor+=e}dispatch(e,r){if(!r.code&&!r.ctrl&&e!=null&&this.getItem()){this.append(e,r);return}this.alert()}append(e,r){let i=this.getItem(),s=i.input.slice(0,this.cursor),n=i.input.slice(this.cursor);this.input=i.input=`${s}${e}${n}`,this.moveCursor(1),this.render()}delete(){let e=this.getItem();if(this.cursor<=0||!e.input)return this.alert();let r=e.input.slice(this.cursor),i=e.input.slice(0,this.cursor-1);this.input=e.input=`${i}${r}`,this.moveCursor(-1),this.render()}increment(e){return e>=this.state.keys.length-1?0:e+1}decrement(e){return e<=0?this.state.keys.length-1:e-1}first(){this.state.index=0,this.render()}last(){this.state.index=this.state.keys.length-1,this.render()}right(){if(this.cursor>=this.input.length)return this.alert();this.moveCursor(1),this.render()}left(){if(this.cursor<=0)return this.alert();this.moveCursor(-1),this.render()}prev(){this.state.index=this.decrement(this.state.index),this.getItem(),this.render()}next(){this.state.index=this.increment(this.state.index),this.getItem(),this.render()}up(){this.prev()}down(){this.next()}format(e){let r=this.state.completed<100?this.styles.warning:this.styles.success;return this.state.submitted===!0&&this.state.completed!==100&&(r=this.styles.danger),r(`${this.state.completed}% completed`)}async render(){let{index:e,keys:r=[],submitted:i,size:s}=this.state,n=[this.options.newline,`
|
|
26
|
+
`].find(x=>x!=null),o=await this.prefix(),a=await this.separator(),u=await this.message(),l=[o,u,a].filter(Boolean).join(" ");this.state.prompt=l;let c=await this.header(),h=await this.error()||"",f=await this.hint()||"",d=i?"":await this.interpolate(this.state),m=this.state.key=r[e]||"",g=await this.format(m),C=await this.footer();g&&(l+=" "+g),f&&!g&&this.state.completed===0&&(l+=" "+f),this.clear(s);let F=[c,l,d,C,h.trim()];this.write(F.filter(Boolean).join(n)),this.restore()}getItem(e){let{items:r,keys:i,index:s}=this.state,n=r.find(o=>o.name===i[s]);return n&&n.input!=null&&(this.input=n.input,this.cursor=n.cursor),n}async submit(){typeof this.interpolate!="function"&&await this.initialize(),await this.interpolate(this.state,!0);let{invalid:e,missing:r,output:i,values:s}=this.state;if(e.size){let a="";for(let[u,l]of e)a+=`Invalid ${u}: ${l}
|
|
27
|
+
`;return this.state.error=a,super.submit()}if(r.size)return this.state.error="Required: "+[...r.keys()].join(", "),super.submit();let o=U0(i).split(`
|
|
28
|
+
`).map(a=>a.slice(1)).join(`
|
|
29
|
+
`);return this.value={values:s,result:o},super.submit()}};Ol.exports=Os});var Pl=p((FS,Tl)=>{"use strict";var Y0="(Use <shift>+<up/down> to sort)",X0=Ye(),Rs=class extends X0{constructor(e){super({...e,reorder:!1,sort:!0,multiple:!0}),this.state.hint=[this.options.hint,Y0].find(this.isValue.bind(this))}indicator(){return""}async renderChoice(e,r){let i=await super.renderChoice(e,r),s=this.symbols.identicalTo+" ",n=this.index===r&&this.sorting?this.styles.muted(s):" ";return this.options.drag===!1&&(n=""),this.options.numbered===!0?n+`${r+1} - `+i:n+i}get selected(){return this.choices}submit(){return this.value=this.choices.map(e=>e.value),super.submit()}};Tl.exports=Rs});var Bl=p((bS,$l)=>{"use strict";var Q0=Nt(),Ts=class extends Q0{constructor(e={}){if(super(e),this.emptyError=e.emptyError||"No items were selected",this.term=process.env.TERM_PROGRAM,!this.options.header){let r=["","4 - Strongly Agree","3 - Agree","2 - Neutral","1 - Disagree","0 - Strongly Disagree",""];r=r.map(i=>this.styles.muted(i)),this.state.header=r.join(`
|
|
30
|
+
`)}}async toChoices(...e){if(this.createdScales)return!1;this.createdScales=!0;let r=await super.toChoices(...e);for(let i of r)i.scale=Z0(5,this.options),i.scaleIdx=2;return r}dispatch(){this.alert()}space(){let e=this.focused,r=e.scale[e.scaleIdx],i=r.selected;return e.scale.forEach(s=>s.selected=!1),r.selected=!i,this.render()}indicator(){return""}pointer(){return""}separator(){return this.styles.muted(this.symbols.ellipsis)}right(){let e=this.focused;return e.scaleIdx>=e.scale.length-1?this.alert():(e.scaleIdx++,this.render())}left(){let e=this.focused;return e.scaleIdx<=0?this.alert():(e.scaleIdx--,this.render())}indent(){return" "}async renderChoice(e,r){await this.onChoice(e,r);let i=this.index===r,s=this.term==="Hyper",n=s?9:8,o=s?"":" ",a=this.symbols.line.repeat(n),u=" ".repeat(n+(s?0:1)),l=_=>(_?this.styles.success("\u25C9"):"\u25EF")+o,c=r+1+".",h=i?this.styles.heading:this.styles.noop,f=await this.resolve(e.message,this.state,e,r),d=this.indent(e),m=d+e.scale.map((_,R)=>l(R===e.scaleIdx)).join(a),g=_=>_===e.scaleIdx?h(_):_,C=d+e.scale.map((_,R)=>g(R)).join(u),F=()=>[c,f].filter(Boolean).join(" "),x=()=>[F(),m,C," "].filter(Boolean).join(`
|
|
31
|
+
`);return i&&(m=this.styles.cyan(m),C=this.styles.cyan(C)),x()}async renderChoices(){if(this.state.submitted)return"";let e=this.visible.map(async(i,s)=>await this.renderChoice(i,s)),r=await Promise.all(e);return r.length||r.push(this.styles.danger("No matching choices")),r.join(`
|
|
32
|
+
`)}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.scaleIdx)).join(", "):""}async render(){let{submitted:e,size:r}=this.state,i=await this.prefix(),s=await this.separator(),n=await this.message(),o=[i,n,s].filter(Boolean).join(" ");this.state.prompt=o;let a=await this.header(),u=await this.format(),l=await this.error()||await this.hint(),c=await this.renderChoices(),h=await this.footer();(u||!l)&&(o+=" "+u),l&&!o.includes(l)&&(o+=" "+l),e&&!u&&!c&&this.multiple&&this.type!=="form"&&(o+=this.styles.danger(this.emptyError)),this.clear(r),this.write([o,a,c,h].filter(Boolean).join(`
|
|
33
|
+
`)),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIdx;return this.base.submit.call(this)}};function Z0(t,e={}){if(Array.isArray(e.scale))return e.scale.map(i=>({...i}));let r=[];for(let i=1;i<t+1;i++)r.push({i,selected:!1});return r}$l.exports=Ts});var kl=p((CS,Il)=>{Il.exports=Es()});var Nl=p((wS,Ll)=>{"use strict";var J0=wr(),Ps=class extends J0{async initialize(){await super.initialize(),this.value=this.initial=this.resolve(this.options.initial),this.disabled=this.options.disabled||"no",this.enabled=this.options.enabled||"yes",await this.render()}reset(){this.value=this.initial,this.render()}delete(){this.alert()}toggle(){this.value=!this.value,this.render()}enable(){if(this.value===!0)return this.alert();this.value=!0,this.render()}disable(){if(this.value===!1)return this.alert();this.value=!1,this.render()}up(){this.toggle()}down(){this.toggle()}right(){this.toggle()}left(){this.toggle()}next(){this.toggle()}prev(){this.toggle()}dispatch(e="",r){switch(e.toLowerCase()){case" ":return this.toggle();case"1":case"y":case"t":return this.enable();case"0":case"n":case"f":return this.disable();default:return this.alert()}}format(){let e=i=>this.styles.primary.underline(i);return[this.value?this.disabled:e(this.disabled),this.value?e(this.enabled):this.enabled].join(this.styles.muted(" / "))}async render(){let{size:e}=this.state,r=await this.header(),i=await this.prefix(),s=await this.separator(),n=await this.message(),o=await this.format(),a=await this.error()||await this.hint(),u=await this.footer(),l=[i,n,s,o].join(" ");this.state.prompt=l,a&&!l.includes(a)&&(l+=" "+a),this.clear(e),this.write([r,l,u].filter(Boolean).join(`
|
|
34
|
+
`)),this.write(this.margin[2]),this.restore()}};Ll.exports=Ps});var jl=p((AS,ql)=>{"use strict";var ey=Ye(),$s=class extends ey{constructor(e){if(super(e),typeof this.options.correctChoice!="number"||this.options.correctChoice<0)throw new Error("Please specify the index of the correct answer from the list of choices")}async toChoices(e,r){let i=await super.toChoices(e,r);if(i.length<2)throw new Error("Please give at least two choices to the user");if(this.options.correctChoice>i.length)throw new Error("Please specify the index of the correct answer from the list of choices");return i}check(e){return e.index===this.options.correctChoice}async result(e){return{selectedAnswer:e,correctAnswer:this.options.choices[this.options.correctChoice].value,correct:await this.check(this.state)}}};ql.exports=$s});var Hl=p(Bs=>{"use strict";var Ml=ne(),ie=(t,e)=>{Ml.defineExport(Bs,t,e),Ml.defineExport(Bs,t.toLowerCase(),e)};ie("AutoComplete",()=>Ku());ie("BasicAuth",()=>tl());ie("Confirm",()=>sl());ie("Editable",()=>ol());ie("Form",()=>Cr());ie("Input",()=>Es());ie("Invisible",()=>pl());ie("List",()=>ml());ie("MultiSelect",()=>Dl());ie("Numeral",()=>_l());ie("Password",()=>bl());ie("Scale",()=>Al());ie("Select",()=>Ye());ie("Snippet",()=>Rl());ie("Sort",()=>Pl());ie("Survey",()=>Bl());ie("Text",()=>kl());ie("Toggle",()=>Nl());ie("Quiz",()=>jl())});var Vl=p((xS,Gl)=>{Gl.exports={ArrayPrompt:Nt(),AuthPrompt:ps(),BooleanPrompt:wr(),NumberPrompt:ws(),StringPrompt:ut()}});var zl=p((SS,Ul)=>{"use strict";var Wl=require("assert"),ks=require("events"),Xe=ne(),Oe=class extends ks{constructor(e,r){super(),this.options=Xe.merge({},e),this.answers={...r}}register(e,r){if(Xe.isObject(e)){for(let s of Object.keys(e))this.register(s,e[s]);return this}Wl.equal(typeof r,"function","expected a function");let i=e.toLowerCase();return r.prototype instanceof this.Prompt?this.prompts[i]=r:this.prompts[i]=r(this.Prompt,this),this}async prompt(e=[]){for(let r of[].concat(e))try{typeof r=="function"&&(r=await r.call(this)),await this.ask(Xe.merge({},this.options,r))}catch(i){return Promise.reject(i)}return this.answers}async ask(e){typeof e=="function"&&(e=await e.call(this));let r=Xe.merge({},this.options,e),{type:i,name:s}=e,{set:n,get:o}=Xe;if(typeof i=="function"&&(i=await i.call(this,e,this.answers)),!i)return this.answers[s];i==="number"&&(i="numeral"),Wl(this.prompts[i],`Prompt "${i}" is not registered`);let a=new this.prompts[i](r),u=o(this.answers,s);a.state.answers=this.answers,a.enquirer=this,s&&a.on("submit",c=>{this.emit("answer",s,c,a),n(this.answers,s,c)});let l=a.emit.bind(a);return a.emit=(...c)=>(this.emit.call(this,...c),l(...c)),this.emit("prompt",a,this),r.autofill&&u!=null?(a.value=a.input=u,r.autofill==="show"&&await a.submit()):u=a.value=await a.run(),u}use(e){return e.call(this,this),this}set Prompt(e){this._Prompt=e}get Prompt(){return this._Prompt||this.constructor.Prompt}get prompts(){return this.constructor.prompts}static set Prompt(e){this._Prompt=e}static get Prompt(){return this._Prompt||yt()}static get prompts(){return Hl()}static get types(){return Vl()}static get prompt(){let e=(r,...i)=>{let s=new this(...i),n=s.emit.bind(s);return s.emit=(...o)=>(e.emit(...o),n(...o)),s.prompt(r)};return Xe.mixinEmitter(e,new ks),e}};Xe.mixinEmitter(Oe,new ks);var Is=Oe.prompts;for(let t of Object.keys(Is)){let e=t.toLowerCase(),r=i=>new Is[t](i).run();Oe.prompt[e]=r,Oe[e]=r,Oe[t]||Reflect.defineProperty(Oe,t,{get:()=>Is[t]})}var qt=t=>{Xe.defineExport(Oe,t,()=>Oe.types[t])};qt("ArrayPrompt");qt("AuthPrompt");qt("BooleanPrompt");qt("NumberPrompt");qt("StringPrompt");Ul.exports=Oe});var Yl=p((OS,Kl)=>{"use strict";var{builtinModules:ty}=require("module"),ry=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),iy=["node_modules","favicon.ico"];function sy(t){var e=[],r=[];if(t===null)return r.push("name cannot be null"),jt(e,r);if(t===void 0)return r.push("name cannot be undefined"),jt(e,r);if(typeof t!="string")return r.push("name must be a string"),jt(e,r);if(t.length||r.push("name length must be greater than zero"),t.match(/^\./)&&r.push("name cannot start with a period"),t.match(/^_/)&&r.push("name cannot start with an underscore"),t.trim()!==t&&r.push("name cannot contain leading or trailing spaces"),iy.forEach(function(o){t.toLowerCase()===o&&r.push(o+" is a blacklisted name")}),ty.includes(t.toLowerCase())&&e.push(t+" is a core module name"),t.length>214&&e.push("name can no longer contain more than 214 characters"),t.toLowerCase()!==t&&e.push("name can no longer contain capital letters"),/[~'!()*]/.test(t.split("/").slice(-1)[0])&&e.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(t)!==t){var i=t.match(ry);if(i){var s=i[1],n=i[2];if(encodeURIComponent(s)===s&&encodeURIComponent(n)===n)return jt(e,r)}r.push("name can only contain URL-friendly characters")}return jt(e,r)}var jt=function(t,e){var r={validForNewPackages:e.length===0&&t.length===0,validForOldPackages:e.length===0,warnings:t,errors:e};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};Kl.exports=sy});var pc=p((GS,fc)=>{fc.exports=hc;hc.sync=_y;var lc=require("fs");function Ey(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var s=r[i].toLowerCase();if(s&&t.substr(-s.length).toLowerCase()===s)return!0}return!1}function cc(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:Ey(e,r)}function hc(t,e,r){lc.stat(t,function(i,s){r(i,i?!1:cc(s,t,e))})}function _y(t,e){return cc(lc.statSync(t),t,e)}});var yc=p((VS,Dc)=>{Dc.exports=mc;mc.sync=Fy;var dc=require("fs");function mc(t,e,r){dc.stat(t,function(i,s){r(i,i?!1:gc(s,e))})}function Fy(t,e){return gc(dc.statSync(t),e)}function gc(t,e){return t.isFile()&&by(t,e)}function by(t,e){var r=t.mode,i=t.uid,s=t.gid,n=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),c=a|u,h=r&l||r&u&&s===o||r&a&&i===n||r&c&&n===0;return h}});var _c=p((US,Ec)=>{var WS=require("fs"),Rr;process.platform==="win32"||global.TESTING_WINDOWS?Rr=pc():Rr=yc();Ec.exports=Hs;Hs.sync=Cy;function Hs(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,s){Hs(t,e||{},function(n,o){n?s(n):i(o)})})}Rr(t,e||{},function(i,s){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,s=!1),r(i,s)})}function Cy(t,e){try{return Rr.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var xc=p((zS,vc)=>{var bt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Fc=require("path"),wy=bt?";":":",bc=_c(),Cc=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),wc=(t,e)=>{let r=e.colon||wy,i=t.match(/\//)||bt&&t.match(/\\/)?[""]:[...bt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],s=bt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=bt?s.split(r):[""];return bt&&t.indexOf(".")!==-1&&n[0]!==""&&n.unshift(""),{pathEnv:i,pathExt:n,pathExtExe:s}},Ac=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:s,pathExtExe:n}=wc(t,e),o=[],a=l=>new Promise((c,h)=>{if(l===i.length)return e.all&&o.length?c(o):h(Cc(t));let f=i[l],d=/^".*"$/.test(f)?f.slice(1,-1):f,m=Fc.join(d,t),g=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;c(u(g,l,0))}),u=(l,c,h)=>new Promise((f,d)=>{if(h===s.length)return f(a(c+1));let m=s[h];bc(l+m,{pathExt:n},(g,C)=>{if(!g&&C)if(e.all)o.push(l+m);else return f(l+m);return f(u(l,c,h+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},Ay=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:s}=wc(t,e),n=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,l=Fc.join(u,t),c=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let h=0;h<i.length;h++){let f=c+i[h];try{if(bc.sync(f,{pathExt:s}))if(e.all)n.push(f);else return f}catch{}}}if(e.all&&n.length)return n;if(e.nothrow)return null;throw Cc(t)};vc.exports=Ac;Ac.sync=Ay});var Oc=p((KS,Gs)=>{"use strict";var Sc=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Gs.exports=Sc;Gs.exports.default=Sc});var $c=p((YS,Pc)=>{"use strict";var Rc=require("path"),vy=xc(),xy=Oc();function Tc(t,e){let r=t.options.env||process.env,i=process.cwd(),s=t.options.cwd!=null,n=s&&process.chdir!==void 0&&!process.chdir.disabled;if(n)try{process.chdir(t.options.cwd)}catch{}let o;try{o=vy.sync(t.command,{path:r[xy({env:r})],pathExt:e?Rc.delimiter:void 0})}catch{}finally{n&&process.chdir(i)}return o&&(o=Rc.resolve(s?t.options.cwd:"",o)),o}function Sy(t){return Tc(t)||Tc(t,!0)}Pc.exports=Sy});var Bc=p((XS,Ws)=>{"use strict";var Vs=/([()\][%!^"`<>&|;, *?])/g;function Oy(t){return t=t.replace(Vs,"^$1"),t}function Ry(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t=t.replace(/(?=(\\+?)?)\1$/,"$1$1"),t=`"${t}"`,t=t.replace(Vs,"^$1"),e&&(t=t.replace(Vs,"^$1")),t}Ws.exports.command=Oy;Ws.exports.argument=Ry});var kc=p((QS,Ic)=>{"use strict";Ic.exports=/^#!(.*)/});var Nc=p((ZS,Lc)=>{"use strict";var Ty=kc();Lc.exports=(t="")=>{let e=t.match(Ty);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return s==="env"?i:i?`${s} ${i}`:s}});var jc=p((JS,qc)=>{"use strict";var Us=require("fs"),Py=Nc();function $y(t){let r=Buffer.alloc(150),i;try{i=Us.openSync(t,"r"),Us.readSync(i,r,0,150,0),Us.closeSync(i)}catch{}return Py(r.toString())}qc.exports=$y});var Vc=p((e1,Gc)=>{"use strict";var By=require("path"),Mc=$c(),Hc=Bc(),Iy=jc(),ky=process.platform==="win32",Ly=/\.(?:com|exe)$/i,Ny=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function qy(t){t.file=Mc(t);let e=t.file&&Iy(t.file);return e?(t.args.unshift(t.file),t.command=e,Mc(t)):t.file}function jy(t){if(!ky)return t;let e=qy(t),r=!Ly.test(e);if(t.options.forceShell||r){let i=Ny.test(e);t.command=By.normalize(t.command),t.command=Hc.command(t.command),t.args=t.args.map(n=>Hc.argument(n,i));let s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function My(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:jy(i)}Gc.exports=My});var zc=p((t1,Uc)=>{"use strict";var zs=process.platform==="win32";function Ks(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Hy(t,e){if(!zs)return;let r=t.emit;t.emit=function(i,s){if(i==="exit"){let n=Wc(s,e);if(n)return r.call(t,"error",n)}return r.apply(t,arguments)}}function Wc(t,e){return zs&&t===1&&!e.file?Ks(e.original,"spawn"):null}function Gy(t,e){return zs&&t===1&&!e.file?Ks(e.original,"spawnSync"):null}Uc.exports={hookChildProcess:Hy,verifyENOENT:Wc,verifyENOENTSync:Gy,notFoundError:Ks}});var Xc=p((r1,Ct)=>{"use strict";var Kc=require("child_process"),Ys=Vc(),Xs=zc();function Yc(t,e,r){let i=Ys(t,e,r),s=Kc.spawn(i.command,i.args,i.options);return Xs.hookChildProcess(s,i),s}function Vy(t,e,r){let i=Ys(t,e,r),s=Kc.spawnSync(i.command,i.args,i.options);return s.error=s.error||Xs.verifyENOENTSync(s.status,i),s}Ct.exports=Yc;Ct.exports.spawn=Yc;Ct.exports.sync=Vy;Ct.exports._parse=Ys;Ct.exports._enoent=Xs});var Sh=p((Q1,xh)=>{"use strict";var{PassThrough:kE}=require("stream");xh.exports=function(){var t=[],e=new kE({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(r),e;function r(n){return Array.isArray(n)?(n.forEach(r),this):(t.push(n),n.once("end",s.bind(null,n)),n.once("error",e.emit.bind(e,"error")),n.pipe(e,{end:!1}),this)}function i(){return t.length==0}function s(n){t=t.filter(function(o){return o!==n}),!t.length&&e.readable&&e.end()}}});var Kt=p(Cn=>{var Kr=class extends Error{constructor(e,r,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},bn=class extends Kr{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Cn.CommanderError=Kr;Cn.InvalidArgumentError=bn});var Yr=p(An=>{var{InvalidArgumentError:XE}=Kt(),wn=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new XE(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,i):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function QE(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}An.Argument=wn;An.humanReadableArgName=QE});var Sn=p(xn=>{var{humanReadableArgName:ZE}=Yr(),vn=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){let r=e.commands.filter(s=>!s._hidden),i=e._getHelpCommand();return i&&!i._hidden&&r.push(i),this.sortSubcommands&&r.sort((s,n)=>s.name().localeCompare(n.name())),r}compareOptions(e,r){let i=s=>s.short?s.short.replace(/^-/,""):s.long.replace(/^--/,"");return i(e).localeCompare(i(r))}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),i=e._getHelpOption();if(i&&!i.hidden){let s=i.short&&e._findOption(i.short),n=i.long&&e._findOption(i.long);!s&&!n?r.push(i):i.long&&!n?r.push(e.createOption(i.long,i.description)):i.short&&!s&&r.push(e.createOption(i.short,i.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let i=e.parent;i;i=i.parent){let s=i.options.filter(n=>!n.hidden);r.push(...s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e.registeredArguments.find(r=>r.description)?e.registeredArguments:[]}subcommandTerm(e){let r=e.registeredArguments.map(i=>ZE(i)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((i,s)=>Math.max(i,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(s)))),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((i,s)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(s)))),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((i,s)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(s)))),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((i,s)=>Math.max(i,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(s)))),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let i="";for(let s=e.parent;s;s=s.parent)i=s.name()+" "+i;return i+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let i=`(${r.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}formatHelp(e,r){let i=r.padWidth(e,r),s=r.helpWidth??80;function n(h,f){return r.formatItem(h,i,f,r)}let o=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(e))}`,""],a=r.commandDescription(e);a.length>0&&(o=o.concat([r.boxWrap(r.styleCommandDescription(a),s),""]));let u=r.visibleArguments(e).map(h=>n(r.styleArgumentTerm(r.argumentTerm(h)),r.styleArgumentDescription(r.argumentDescription(h))));u.length>0&&(o=o.concat([r.styleTitle("Arguments:"),...u,""]));let l=r.visibleOptions(e).map(h=>n(r.styleOptionTerm(r.optionTerm(h)),r.styleOptionDescription(r.optionDescription(h))));if(l.length>0&&(o=o.concat([r.styleTitle("Options:"),...l,""])),r.showGlobalOptions){let h=r.visibleGlobalOptions(e).map(f=>n(r.styleOptionTerm(r.optionTerm(f)),r.styleOptionDescription(r.optionDescription(f))));h.length>0&&(o=o.concat([r.styleTitle("Global Options:"),...h,""]))}let c=r.visibleCommands(e).map(h=>n(r.styleSubcommandTerm(r.subcommandTerm(h)),r.styleSubcommandDescription(r.subcommandDescription(h))));return c.length>0&&(o=o.concat([r.styleTitle("Commands:"),...c,""])),o.join(`
|
|
35
|
+
`)}displayWidth(e){return Jh(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r==="[command]"?this.styleSubcommandText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleCommandText(r)).join(" ")}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,r,i,s){let o=" ".repeat(2);if(!i)return o+e;let a=e.padEnd(r+e.length-s.displayWidth(e)),u=2,c=(this.helpWidth??80)-r-u-2,h;return c<this.minWidthToWrap||s.preformatted(i)?h=i:h=s.boxWrap(i,c).replace(/\n/g,`
|
|
36
|
+
`+" ".repeat(r+u)),o+a+" ".repeat(u)+h.replace(/\n/g,`
|
|
37
|
+
${o}`)}boxWrap(e,r){if(r<this.minWidthToWrap)return e;let i=e.split(/\r\n|\n/),s=/[\s]*[^\s]+/g,n=[];return i.forEach(o=>{let a=o.match(s);if(a===null){n.push("");return}let u=[a.shift()],l=this.displayWidth(u[0]);a.forEach(c=>{let h=this.displayWidth(c);if(l+h<=r){u.push(c),l+=h;return}n.push(u.join(""));let f=c.trimStart();u=[f],l=this.displayWidth(f)}),n.push(u.join(""))}),n.join(`
|
|
38
|
+
`)}};function Jh(t){let e=/\x1b\[\d*(;\d*)*m/g;return t.replace(e,"")}xn.Help=vn;xn.stripColor=Jh});var Pn=p(Tn=>{var{InvalidArgumentError:JE}=Kt(),On=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let i=e_(e);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new JE(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,i):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?ef(this.name().replace(/^no-/,"")):ef(this.name())}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Rn=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,i)=>{this.positiveOptions.has(i)&&this.dualOptions.add(i)})}valueFromOption(e,r){let i=r.attributeName();if(!this.dualOptions.has(i))return!0;let s=this.negativeOptions.get(i).presetArg,n=s!==void 0?s:!1;return r.negate===(n===e)}};function ef(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function e_(t){let e,r,i=/^-[^-]$/,s=/^--[^-]/,n=t.split(/[ |,]+/).concat("guard");if(i.test(n[0])&&(e=n.shift()),s.test(n[0])&&(r=n.shift()),!e&&i.test(n[0])&&(e=n.shift()),!e&&s.test(n[0])&&(e=r,r=n.shift()),n[0].startsWith("-")){let o=n[0],a=`option creation failed due to '${o}' in option flags '${t}'`;throw/^-[^-][^-]/.test(o)?new Error(`${a}
|
|
39
39
|
- a short flag is a single dash and a single character
|
|
40
40
|
- either use a single dash and a single character (for a short flag)
|
|
41
|
-
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`):i.test(o)?new Error(`${
|
|
42
|
-
- too many short flags`):s.test(o)?new Error(`${
|
|
43
|
-
- too many long flags`):new Error(`${
|
|
44
|
-
- unrecognised flag format`)}if(e===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${t}'.`);return{shortFlag:e,longFlag:r}}
|
|
41
|
+
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`):i.test(o)?new Error(`${a}
|
|
42
|
+
- too many short flags`):s.test(o)?new Error(`${a}
|
|
43
|
+
- too many long flags`):new Error(`${a}
|
|
44
|
+
- unrecognised flag format`)}if(e===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${t}'.`);return{shortFlag:e,longFlag:r}}Tn.Option=On;Tn.DualOptions=Rn});var rf=p(tf=>{function t_(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let i=0;i<=t.length;i++)r[i]=[i];for(let i=0;i<=e.length;i++)r[0][i]=i;for(let i=1;i<=e.length;i++)for(let s=1;s<=t.length;s++){let n=1;t[s-1]===e[i-1]?n=0:n=1,r[s][i]=Math.min(r[s-1][i]+1,r[s][i-1]+1,r[s-1][i-1]+n),s>1&&i>1&&t[s-1]===e[i-2]&&t[s-2]===e[i-1]&&(r[s][i]=Math.min(r[s][i],r[s-2][i-2]+1))}return r[t.length][e.length]}function r_(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let i=[],s=3,n=.4;return e.forEach(o=>{if(o.length<=1)return;let a=t_(t,o),u=Math.max(t.length,o.length);(u-a)/u>n&&(a<s?(s=a,i=[o]):a===s&&i.push(o))}),i.sort((o,a)=>o.localeCompare(a)),r&&(i=i.map(o=>`--${o}`)),i.length>1?`
|
|
45
45
|
(Did you mean one of ${i.join(", ")}?)`:i.length===1?`
|
|
46
|
-
(Did you mean ${i[0]}?)`:""}
|
|
47
|
-
- specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,r){return new
|
|
48
|
-
Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,i){this._exitCallback&&this._exitCallback(new
|
|
49
|
-
- already used by option '${r.flags}'`)}this.options.push(e)}_registerCommand(e){let r=s=>[s.name()].concat(s.aliases()),i=r(e).find(s=>this._findCommand(s));if(i){let s=r(this._findCommand(i)).join("|"),n=r(e).join("|");throw new Error(`cannot add command '${n}' as already have command '${s}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);let r=e.name(),i=e.attributeName();if(e.negate){let n=e.long.replace(/^--no-/,"--");this._findOption(n)||this.setOptionValueWithSource(i,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(i,e.defaultValue,"default");let s=(n,o,
|
|
50
|
-
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,r,i){if(
|
|
46
|
+
(Did you mean ${i[0]}?)`:""}tf.suggestSimilar=r_});var af=p(Ln=>{var i_=require("node:events").EventEmitter,$n=require("node:child_process"),Ge=require("node:path"),Xr=require("node:fs"),M=require("node:process"),{Argument:s_,humanReadableArgName:n_}=Yr(),{CommanderError:Bn}=Kt(),{Help:o_,stripColor:a_}=Sn(),{Option:sf,DualOptions:u_}=Pn(),{suggestSimilar:nf}=rf(),In=class t extends i_{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:r=>M.stdout.write(r),writeErr:r=>M.stderr.write(r),outputError:(r,i)=>i(r),getOutHelpWidth:()=>M.stdout.isTTY?M.stdout.columns:void 0,getErrHelpWidth:()=>M.stderr.isTTY?M.stderr.columns:void 0,getOutHasColors:()=>kn()??(M.stdout.isTTY&&M.stdout.hasColors?.()),getErrHasColors:()=>kn()??(M.stderr.isTTY&&M.stderr.hasColors?.()),stripColor:r=>a_(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let r=this;r;r=r.parent)e.push(r);return e}command(e,r,i){let s=r,n=i;typeof s=="object"&&s!==null&&(n=s,s=null),n=n||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),u=this.createCommand(o);return s&&(u.description(s),u._executableHandler=!0),n.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(n.noHelp||n.hidden),u._executableFile=n.executableFile||null,a&&u.arguments(a),this._registerCommand(u),u.parent=this,u.copyInheritedSettings(this),s?this:u}createCommand(e){return new t(e)}createHelp(){return Object.assign(new o_,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
47
|
+
- specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,r){return new s_(e,r)}argument(e,r,i,s){let n=this.createArgument(e,r);return typeof i=="function"?n.default(s).argParser(i):n.default(i),this.addArgument(n),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,r){if(typeof e=="boolean")return this._addImplicitHelpCommand=e,this;e=e??"help [command]";let[,i,s]=e.match(/([^ ]+) *(.*)/),n=r??"display help for command",o=this.createCommand(i);return o.helpOption(!1),s&&o.arguments(s),n&&o.description(n),this._addImplicitHelpCommand=!0,this._helpCommand=o,this}addHelpCommand(e,r){return typeof e!="object"?(this.helpCommand(e,r),this):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,r){let i=["preSubcommand","preAction","postAction"];if(!i.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
|
|
48
|
+
Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,i){this._exitCallback&&this._exitCallback(new Bn(e,r,i)),M.exit(e)}action(e){let r=i=>{let s=this.registeredArguments.length,n=i.slice(0,s);return this._storeOptionsAsProperties?n[s]=this:n[s]=this.opts(),n.push(this),e.apply(this,n)};return this._actionHandler=r,this}createOption(e,r){return new sf(e,r)}_callParseArg(e,r,i,s){try{return e.parseArg(r,i)}catch(n){if(n.code==="commander.invalidArgument"){let o=`${s} ${n.message}`;this.error(o,{exitCode:n.exitCode,code:n.code})}throw n}}_registerOption(e){let r=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(r){let i=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'
|
|
49
|
+
- already used by option '${r.flags}'`)}this.options.push(e)}_registerCommand(e){let r=s=>[s.name()].concat(s.aliases()),i=r(e).find(s=>this._findCommand(s));if(i){let s=r(this._findCommand(i)).join("|"),n=r(e).join("|");throw new Error(`cannot add command '${n}' as already have command '${s}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);let r=e.name(),i=e.attributeName();if(e.negate){let n=e.long.replace(/^--no-/,"--");this._findOption(n)||this.setOptionValueWithSource(i,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(i,e.defaultValue,"default");let s=(n,o,a)=>{n==null&&e.presetArg!==void 0&&(n=e.presetArg);let u=this.getOptionValue(i);n!==null&&e.parseArg?n=this._callParseArg(e,n,u,o):n!==null&&e.variadic&&(n=e._concatValue(n,u)),n==null&&(e.negate?n=!1:e.isBoolean()||e.optional?n=!0:n=""),this.setOptionValueWithSource(i,n,a)};return this.on("option:"+r,n=>{let o=`error: option '${e.flags}' argument '${n}' is invalid.`;s(n,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,n=>{let o=`error: option '${e.flags}' value '${n}' from env '${e.envVar}' is invalid.`;s(n,o,"env")}),this}_optionEx(e,r,i,s,n){if(typeof r=="object"&&r instanceof sf)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,i);if(o.makeOptionMandatory(!!e.mandatory),typeof s=="function")o.default(n).argParser(s);else if(s instanceof RegExp){let a=s;s=(u,l)=>{let c=a.exec(u);return c?c[0]:l},o.default(n).argParser(s)}else o.default(s);return this.addOption(o)}option(e,r,i,s){return this._optionEx({},e,r,i,s)}requiredOption(e,r,i,s){return this._optionEx({mandatory:!0},e,r,i,s)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,i){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=i,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return this._getCommandAndAncestors().forEach(i=>{i.getOptionValueSource(e)!==void 0&&(r=i.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");if(r=r||{},e===void 0&&r.from===void 0){M.versions?.electron&&(r.from="electron");let s=M.execArgv??[];(s.includes("-e")||s.includes("--eval")||s.includes("-p")||s.includes("--print"))&&(r.from="eval")}e===void 0&&(e=M.argv),this.rawArgs=e.slice();let i;switch(r.from){case void 0:case"node":this._scriptPath=e[1],i=e.slice(2);break;case"electron":M.defaultApp?(this._scriptPath=e[1],i=e.slice(2)):i=e.slice(1);break;case"user":i=e.slice(0);break;case"eval":i=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}parse(e,r){this._prepareForParse();let i=this._prepareUserArgs(e,r);return this._parseCommand([],i),this}async parseAsync(e,r){this._prepareForParse();let i=this._prepareUserArgs(e,r);return await this._parseCommand([],i),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
50
|
+
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,r,i){if(Xr.existsSync(e))return;let s=r?`searched for local subcommand relative to directory '${r}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",n=`'${e}' does not exist
|
|
51
51
|
- if '${i}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
52
52
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
53
|
-
- ${s}`;throw new Error(n)}_executeSubCommand(e,r){r=r.slice();let i=!1,s=[".js",".ts",".tsx",".mjs",".cjs"];function n(c,h){let f=
|
|
53
|
+
- ${s}`;throw new Error(n)}_executeSubCommand(e,r){r=r.slice();let i=!1,s=[".js",".ts",".tsx",".mjs",".cjs"];function n(c,h){let f=Ge.resolve(c,h);if(Xr.existsSync(f))return f;if(s.includes(Ge.extname(h)))return;let d=s.find(m=>Xr.existsSync(`${f}${m}`));if(d)return`${f}${d}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let c;try{c=Xr.realpathSync(this._scriptPath)}catch{c=this._scriptPath}a=Ge.resolve(Ge.dirname(c),a)}if(a){let c=n(a,o);if(!c&&!e._executableFile&&this._scriptPath){let h=Ge.basename(this._scriptPath,Ge.extname(this._scriptPath));h!==this._name&&(c=n(a,`${h}-${e._name}`))}o=c||o}i=s.includes(Ge.extname(o));let u;M.platform!=="win32"?i?(r.unshift(o),r=of(M.execArgv).concat(r),u=$n.spawn(M.argv[0],r,{stdio:"inherit"})):u=$n.spawn(o,r,{stdio:"inherit"}):(this._checkForMissingExecutable(o,a,e._name),r.unshift(o),r=of(M.execArgv).concat(r),u=$n.spawn(M.execPath,r,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(h=>{M.on(h,()=>{u.killed===!1&&u.exitCode===null&&u.kill(h)})});let l=this._exitCallback;u.on("close",c=>{c=c??1,l?l(new Bn(c,"commander.executeSubCommandAsync","(close)")):M.exit(c)}),u.on("error",c=>{if(c.code==="ENOENT")this._checkForMissingExecutable(o,a,e._name);else if(c.code==="EACCES")throw new Error(`'${o}' not executable`);if(!l)M.exit(1);else{let h=new Bn(1,"commander.executeSubCommandAsync","(error)");h.nestedError=c,l(h)}}),this.runningCommand=u}_dispatchSubcommand(e,r,i){let s=this._findCommand(e);s||this.help({error:!0}),s._prepareForParse();let n;return n=this._chainOrCallSubCommandHook(n,s,"preSubcommand"),n=this._chainOrCall(n,()=>{if(s._executableHandler)this._executeSubCommand(s,r.concat(i));else return s._parseCommand(r,i)}),n}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(i,s,n)=>{let o=s;if(s!==null&&i.parseArg){let a=`error: command-argument value '${s}' is invalid for argument '${i.name()}'.`;o=this._callParseArg(i,s,n,a)}return o};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((i,s)=>{let n=i.defaultValue;i.variadic?s<this.args.length?(n=this.args.slice(s),i.parseArg&&(n=n.reduce((o,a)=>e(i,a,o),i.defaultValue))):n===void 0&&(n=[]):s<this.args.length&&(n=this.args[s],i.parseArg&&(n=e(i,n,i.defaultValue))),r[s]=n}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let i=e,s=[];return this._getCommandAndAncestors().reverse().filter(n=>n._lifeCycleHooks[r]!==void 0).forEach(n=>{n._lifeCycleHooks[r].forEach(o=>{s.push({hookedCommand:n,callback:o})})}),r==="postAction"&&s.reverse(),s.forEach(n=>{i=this._chainOrCall(i,()=>n.callback(n.hookedCommand,this))}),i}_chainOrCallSubCommandHook(e,r,i){let s=e;return this._lifeCycleHooks[i]!==void 0&&this._lifeCycleHooks[i].forEach(n=>{s=this._chainOrCall(s,()=>n(this,r))}),s}_parseCommand(e,r){let i=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(i.operands),r=i.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let s=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},n=`command:${this.name()}`;if(this._actionHandler){s(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(n,e,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(n))s(),this._processArguments(),this.parent.emit(n,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(s(),this._processArguments())}else this.commands.length?(s(),this.help({error:!0})):(s(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(i=>{let s=i.attributeName();return this.getOptionValue(s)===void 0?!1:this.getOptionValueSource(s)!=="default"});e.filter(i=>i.conflictsWith.length>0).forEach(i=>{let s=e.find(n=>i.conflictsWith.includes(n.attributeName()));s&&this._conflictingOption(i,s)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let r=[],i=[],s=r,n=e.slice();function o(u){return u.length>1&&u[0]==="-"}let a=null;for(;n.length;){let u=n.shift();if(u==="--"){s===i&&s.push(u),s.push(...n);break}if(a&&!o(u)){this.emit(`option:${a.name()}`,u);continue}if(a=null,o(u)){let l=this._findOption(u);if(l){if(l.required){let c=n.shift();c===void 0&&this.optionMissingArgument(l),this.emit(`option:${l.name()}`,c)}else if(l.optional){let c=null;n.length>0&&!o(n[0])&&(c=n.shift()),this.emit(`option:${l.name()}`,c)}else this.emit(`option:${l.name()}`);a=l.variadic?l:null;continue}}if(u.length>2&&u[0]==="-"&&u[1]!=="-"){let l=this._findOption(`-${u[1]}`);if(l){l.required||l.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${l.name()}`,u.slice(2)):(this.emit(`option:${l.name()}`),n.unshift(`-${u.slice(2)}`));continue}}if(/^--[^=]+=/.test(u)){let l=u.indexOf("="),c=this._findOption(u.slice(0,l));if(c&&(c.required||c.optional)){this.emit(`option:${c.name()}`,u.slice(l+1));continue}}if(o(u)&&(s=i),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&i.length===0){if(this._findCommand(u)){r.push(u),n.length>0&&i.push(...n);break}else if(this._getHelpCommand()&&u===this._getHelpCommand().name()){r.push(u),n.length>0&&r.push(...n);break}else if(this._defaultCommandName){i.push(u),n.length>0&&i.push(...n);break}}if(this._passThroughOptions){s.push(u),n.length>0&&s.push(...n);break}s.push(u)}return{operands:r,unknown:i}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let i=0;i<r;i++){let s=this.options[i].attributeName();e[s]=s===this._versionOptionName?this._version:this[s]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
|
|
54
54
|
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
55
55
|
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
56
|
-
`),this.outputHelp({error:!0}));let i=r||{},s=i.exitCode||1,n=i.code||"commander.error";this._exit(s,n,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in
|
|
57
|
-
`),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(e);if(i){let s=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${s}'`)}return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(i=>
|
|
56
|
+
`),this.outputHelp({error:!0}));let i=r||{},s=i.exitCode||1,n=i.code||"commander.error";this._exit(s,n,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in M.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,M.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new u_(this.options),r=i=>this.getOptionValue(i)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(i));this.options.filter(i=>i.implied!==void 0&&r(i.attributeName())&&e.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach(i=>{Object.keys(i.implied).filter(s=>!r(s)).forEach(s=>{this.setOptionValueWithSource(s,i.implied[s],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let i=o=>{let a=o.attributeName(),u=this.getOptionValue(a),l=this.options.find(h=>h.negate&&a===h.attributeName()),c=this.options.find(h=>!h.negate&&a===h.attributeName());return l&&(l.presetArg===void 0&&u===!1||l.presetArg!==void 0&&u===l.presetArg)?l:c||o},s=o=>{let a=i(o),u=a.attributeName();return this.getOptionValueSource(u)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},n=`error: ${s(e)} cannot be used with ${s(r)}`;this.error(n,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let s=[],n=this;do{let o=n.createHelp().visibleOptions(n).filter(a=>a.long).map(a=>a.long);s=s.concat(o),n=n.parent}while(n&&!n._enablePositionalOptions);r=nf(e,s)}let i=`error: unknown option '${e}'${r}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,i=r===1?"":"s",n=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${i} but got ${e.length}.`;this.error(n,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let s=[];this.createHelp().visibleCommands(this).forEach(n=>{s.push(n.name()),n.alias()&&s.push(n.alias())}),r=nf(e,s)}let i=`error: unknown command '${e}'${r}`;this.error(i,{code:"commander.unknownCommand"})}version(e,r,i){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",i=i||"output the version number";let s=this.createOption(r,i);return this._versionOptionName=s.attributeName(),this._registerOption(s),this.on("option:"+s.name(),()=>{this._outputConfiguration.writeOut(`${e}
|
|
57
|
+
`),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(e);if(i){let s=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${s}'`)}return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(i=>n_(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=Ge.basename(e,Ge.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp(),i=this._getOutputContext(e);r.prepareContext({error:i.error,helpWidth:i.helpWidth,outputHasColors:i.hasColors});let s=r.formatHelp(this,r);return i.hasColors?s:this._outputConfiguration.stripColor(s)}_getOutputContext(e){e=e||{};let r=!!e.error,i,s,n;return r?(i=a=>this._outputConfiguration.writeErr(a),s=this._outputConfiguration.getErrHasColors(),n=this._outputConfiguration.getErrHelpWidth()):(i=a=>this._outputConfiguration.writeOut(a),s=this._outputConfiguration.getOutHasColors(),n=this._outputConfiguration.getOutHelpWidth()),{error:r,write:a=>(s||(a=this._outputConfiguration.stripColor(a)),i(a)),hasColors:s,helpWidth:n}}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let i=this._getOutputContext(e),s={error:i.error,write:i.write,command:this};this._getCommandAndAncestors().reverse().forEach(o=>o.emit("beforeAllHelp",s)),this.emit("beforeHelp",s);let n=this.helpInformation({error:i.error});if(r&&(n=r(n),typeof n!="string"&&!Buffer.isBuffer(n)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(n),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",s),this._getCommandAndAncestors().forEach(o=>o.emit("afterAllHelp",s))}helpOption(e,r){return typeof e=="boolean"?(e?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(e=e??"-h, --help",r=r??"display help for command",this._helpOption=this.createOption(e,r),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this}help(e){this.outputHelp(e);let r=Number(M.exitCode??0);r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let i=["beforeAll","before","after","afterAll"];if(!i.includes(e))throw new Error(`Unexpected value for position to addHelpText.
|
|
58
58
|
Expecting one of '${i.join("', '")}'`);let s=`${e}Help`;return this.on(s,n=>{let o;typeof r=="function"?o=r({error:n.error,command:n.command}):o=r,o&&n.write(`${o}
|
|
59
|
-
`)}),this}_outputHelpIfRequested(e){let r=this._getHelpOption();r&&e.find(s=>r.is(s))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function ah(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,i="127.0.0.1",s="9229",n;return(n=e.match(/^(--inspect(-brk)?)$/))!==null?r=n[1]:(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=n[1],/^\d+$/.test(n[3])?s=n[3]:i=n[3]):(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=n[1],i=n[3],s=n[4]),r&&s!=="0"?`${r}=${i}:${parseInt(s)+1}`:e})}function rn(){if(L.env.NO_COLOR||L.env.FORCE_COLOR==="0"||L.env.FORCE_COLOR==="false")return!1;if(L.env.FORCE_COLOR||L.env.CLICOLOR_FORCE!==void 0)return!0}sn.Command=tn;sn.useColor=rn});var ph=p(pe=>{var{Argument:ch}=Sr(),{Command:nn}=lh(),{CommanderError:F0,InvalidArgumentError:hh}=kt(),{Help:E0}=Ks(),{Option:fh}=Zs();pe.program=new nn;pe.createCommand=t=>new nn(t);pe.createOption=(t,e)=>new fh(t,e);pe.createArgument=(t,e)=>new ch(t,e);pe.Command=nn;pe.Option=fh;pe.Argument=ch;pe.Help=E0;pe.CommanderError=F0;pe.InvalidArgumentError=hh;pe.InvalidOptionArgumentError=hh});var bh=p((uv,B0)=>{B0.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var ln=p((av,Eh)=>{"use strict";var Tr=Object.assign({},bh()),Fh=Object.keys(Tr);Object.defineProperty(Tr,"random",{get(){let t=Math.floor(Math.random()*Fh.length),e=Fh[t];return Tr[e]}});Eh.exports=Tr});var Sh=p((Cv,Ah)=>{Ah.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var Bh=p(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.splitWhen=dt.flatten=void 0;function V0(t){return t.reduce((e,r)=>[].concat(e,r),[])}dt.flatten=V0;function G0(t,e){let r=[[]],i=0;for(let s of t)e(s)?(i++,r[i]=[]):r[i].push(s);return r}dt.splitWhen=G0});var Th=p(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.isEnoentCodeError=void 0;function U0(t){return t.code==="ENOENT"}kr.isEnoentCodeError=U0});var Rh=p($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.createDirentFromStats=void 0;var En=class{constructor(e,r){this.name=e,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 z0(t,e){return new En(t,e)}$r.createDirentFromStats=z0});var jh=p(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.convertPosixPathToPattern=X.convertWindowsPathToPattern=X.convertPathToPattern=X.escapePosixPath=X.escapeWindowsPath=X.escape=X.removeLeadingDotSegment=X.makeAbsolute=X.unixify=void 0;var K0=require("os"),Y0=require("path"),kh=K0.platform()==="win32",Q0=2,X0=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Z0=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,J0=/^\\\\([.?])/,ey=/\\(?![!()+@[\]{}])/g;function ty(t){return t.replace(/\\/g,"/")}X.unixify=ty;function ry(t,e){return Y0.resolve(t,e)}X.makeAbsolute=ry;function iy(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Q0)}return t}X.removeLeadingDotSegment=iy;X.escape=kh?Cn:wn;function Cn(t){return t.replace(Z0,"\\$2")}X.escapeWindowsPath=Cn;function wn(t){return t.replace(X0,"\\$2")}X.escapePosixPath=wn;X.convertPathToPattern=kh?$h:Ih;function $h(t){return Cn(t).replace(J0,"//$1").replace(ey,"/")}X.convertWindowsPathToPattern=$h;function Ih(t){return wn(t)}X.convertPosixPathToPattern=Ih});var Nh=p((Gv,Lh)=>{Lh.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Hh=p((Uv,qh)=>{var sy=Nh(),Mh={"{":"}","(":")","[":"]"},ny=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,s=-2,n=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||s!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(s=t.indexOf("}",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||n!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(n=t.indexOf(")",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(n=t.indexOf(")",r),n>r&&(o=t.indexOf("\\",r),o===-1||o>n))))return!0;if(t[e]==="\\"){var u=t[e+1];e+=2;var a=Mh[u];if(a){var l=t.indexOf(a,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},oy=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=Mh[r];if(i){var s=t.indexOf(i,e);s!==-1&&(e=s+1)}if(t[e]==="!")return!0}else e++}return!1};qh.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(sy(e))return!0;var i=ny;return r&&r.strict===!1&&(i=oy),i(e)}});var Vh=p((zv,Wh)=>{"use strict";var uy=Hh(),ay=require("path").posix.dirname,ly=require("os").platform()==="win32",vn="/",cy=/\\/g,hy=/[\{\[].*[\}\]]$/,fy=/(^|[^\\])([\{\[]|\([^\)]+$)/,py=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Wh.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&ly&&e.indexOf(vn)<0&&(e=e.replace(cy,vn)),hy.test(e)&&(e+=vn),e+="a";do e=ay(e);while(uy(e)||fy.test(e));return e.replace(py,"$1")}});var Ir=p(me=>{"use strict";me.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;me.find=(t,e)=>t.nodes.find(r=>r.type===e);me.exceedsLimit=(t,e,r=1,i)=>i===!1||!me.isInteger(t)||!me.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;me.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};me.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);me.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;me.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;me.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);me.flatten=(...t)=>{let e=[],r=i=>{for(let s=0;s<i.length;s++){let n=i[s];if(Array.isArray(n)){r(n);continue}n!==void 0&&e.push(n)}return e};return r(t),e}});var jr=p((Yv,Uh)=>{"use strict";var Gh=Ir();Uh.exports=(t,e={})=>{let r=(i,s={})=>{let n=e.escapeInvalid&&Gh.isInvalidBrace(s),o=i.invalid===!0&&e.escapeInvalid===!0,u="";if(i.value)return(n||o)&&Gh.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let a of i.nodes)u+=r(a);return u};return r(t)}});var Kh=p((Qv,zh)=>{"use strict";zh.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var sf=p((Xv,rf)=>{"use strict";var Yh=Kh(),et=(t,e,r)=>{if(Yh(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Yh(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let s=String(i.relaxZeros),n=String(i.shorthand),o=String(i.capture),u=String(i.wrap),a=t+":"+e+"="+s+n+o+u;if(et.cache.hasOwnProperty(a))return et.cache[a].result;let l=Math.min(t,e),c=Math.max(t,e);if(Math.abs(l-c)===1){let m=t+"|"+e;return i.capture?`(${m})`:i.wrap===!1?m:`(?:${m})`}let h=tf(t)||tf(e),f={min:t,max:e,a:l,b:c},_=[],d=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),l<0){let m=c<0?Math.abs(c):1;d=Qh(m,Math.abs(l),f,i),l=f.a=0}return c>=0&&(_=Qh(l,c,f,i)),f.negatives=d,f.positives=_,f.result=dy(d,_,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&_.length+d.length>1&&(f.result=`(?:${f.result})`),et.cache[a]=f,f.result};function dy(t,e,r){let i=xn(t,e,"-",!1,r)||[],s=xn(e,t,"",!1,r)||[],n=xn(t,e,"-?",!0,r)||[];return i.concat(n).concat(s).join("|")}function my(t,e){let r=1,i=1,s=Zh(t,r),n=new Set([e]);for(;t<=s&&s<=e;)n.add(s),r+=1,s=Zh(t,r);for(s=Jh(e+1,i)-1;t<s&&s<=e;)n.add(s),i+=1,s=Jh(e+1,i)-1;return n=[...n],n.sort(yy),n}function Dy(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=gy(t,e),s=i.length,n="",o=0;for(let u=0;u<s;u++){let[a,l]=i[u];a===l?n+=a:a!=="0"||l!=="9"?n+=_y(a,l,r):o++}return o&&(n+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:n,count:[o],digits:s}}function Qh(t,e,r,i){let s=my(t,e),n=[],o=t,u;for(let a=0;a<s.length;a++){let l=s[a],c=Dy(String(o),String(l),i),h="";if(!r.isPadded&&u&&u.pattern===c.pattern){u.count.length>1&&u.count.pop(),u.count.push(c.count[0]),u.string=u.pattern+ef(u.count),o=l+1;continue}r.isPadded&&(h=by(l,r,i)),c.string=h+c.pattern+ef(c.count),n.push(c),o=l+1,u=c}return n}function xn(t,e,r,i,s){let n=[];for(let o of t){let{string:u}=o;!i&&!Xh(e,"string",u)&&n.push(r+u),i&&Xh(e,"string",u)&&n.push(r+u)}return n}function gy(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function yy(t,e){return t>e?1:e>t?-1:0}function Xh(t,e,r){return t.some(i=>i[e]===r)}function Zh(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Jh(t,e){return t-t%Math.pow(10,e)}function ef(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function _y(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function tf(t){return/^-?(0+)\d/.test(t)}function by(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),s=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${i}}`:`0{${i}}`}}et.cache={};et.clearCache=()=>et.cache={};rf.exports=et});var On=p((Zv,hf)=>{"use strict";var Fy=require("util"),of=sf(),nf=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),Ey=t=>e=>t===!0?Number(e):String(e),An=t=>typeof t=="number"||typeof t=="string"&&t!=="",qt=t=>Number.isInteger(+t),Sn=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},Cy=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,wy=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},Nr=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},vy=(t,e,r)=>{t.negatives.sort((u,a)=>u<a?-1:u>a?1:0),t.positives.sort((u,a)=>u<a?-1:u>a?1:0);let i=e.capture?"":"?:",s="",n="",o;return t.positives.length&&(s=t.positives.map(u=>Nr(String(u),r)).join("|")),t.negatives.length&&(n=`-(${i}${t.negatives.map(u=>Nr(String(u),r)).join("|")})`),s&&n?o=`${s}|${n}`:o=s||n,e.wrap?`(${i}${o})`:o},uf=(t,e,r,i)=>{if(r)return of(t,e,{wrap:!1,...i});let s=String.fromCharCode(t);if(t===e)return s;let n=String.fromCharCode(e);return`[${s}-${n}]`},af=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,s=r.capture?"":"?:";return i?`(${s}${t.join("|")})`:t.join("|")}return of(t,e,r)},lf=(...t)=>new RangeError("Invalid range arguments: "+Fy.inspect(...t)),cf=(t,e,r)=>{if(r.strictRanges===!0)throw lf([t,e]);return[]},xy=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},Ay=(t,e,r=1,i={})=>{let s=Number(t),n=Number(e);if(!Number.isInteger(s)||!Number.isInteger(n)){if(i.strictRanges===!0)throw lf([t,e]);return[]}s===0&&(s=0),n===0&&(n=0);let o=s>n,u=String(t),a=String(e),l=String(r);r=Math.max(Math.abs(r),1);let c=Sn(u)||Sn(a)||Sn(l),h=c?Math.max(u.length,a.length,l.length):0,f=c===!1&&Cy(t,e,i)===!1,_=i.transform||Ey(f);if(i.toRegex&&r===1)return uf(Nr(t,h),Nr(e,h),!0,i);let d={negatives:[],positives:[]},m=v=>d[v<0?"negatives":"positives"].push(Math.abs(v)),C=[],F=0;for(;o?s>=n:s<=n;)i.toRegex===!0&&r>1?m(s):C.push(wy(_(s,F),h,f)),s=o?s-r:s+r,F++;return i.toRegex===!0?r>1?vy(d,i,h):af(C,null,{wrap:!1,...i}):C},Sy=(t,e,r=1,i={})=>{if(!qt(t)&&t.length>1||!qt(e)&&e.length>1)return cf(t,e,i);let s=i.transform||(f=>String.fromCharCode(f)),n=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),u=n>o,a=Math.min(n,o),l=Math.max(n,o);if(i.toRegex&&r===1)return uf(a,l,!1,i);let c=[],h=0;for(;u?n>=o:n<=o;)c.push(s(n,h)),n=u?n-r:n+r,h++;return i.toRegex===!0?af(c,null,{wrap:!1,options:i}):c},Lr=(t,e,r,i={})=>{if(e==null&&An(t))return[t];if(!An(t)||!An(e))return cf(t,e,i);if(typeof r=="function")return Lr(t,e,1,{transform:r});if(nf(r))return Lr(t,e,0,r);let s={...i};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,qt(r)?qt(t)&&qt(e)?Ay(t,e,r,s):Sy(t,e,Math.max(Math.abs(r),1),s):r!=null&&!nf(r)?xy(r,s):Lr(t,e,1,r)};hf.exports=Lr});var df=p((Jv,pf)=>{"use strict";var Oy=On(),ff=Ir(),Py=(t,e={})=>{let r=(i,s={})=>{let n=ff.isInvalidBrace(s),o=i.invalid===!0&&e.escapeInvalid===!0,u=n===!0||o===!0,a=e.escapeInvalid===!0?"\\":"",l="";if(i.isOpen===!0)return a+i.value;if(i.isClose===!0)return console.log("node.isClose",a,i.value),a+i.value;if(i.type==="open")return u?a+i.value:"(";if(i.type==="close")return u?a+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":u?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let c=ff.reduce(i.nodes),h=Oy(...c,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(h.length!==0)return c.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let c of i.nodes)l+=r(c,i);return l};return r(t)};pf.exports=Py});var gf=p((ex,Df)=>{"use strict";var By=On(),mf=jr(),mt=Ir(),tt=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?mt.flatten(e).map(s=>`{${s}}`):e;for(let s of t)if(Array.isArray(s))for(let n of s)i.push(tt(n,e,r));else for(let n of e)r===!0&&typeof n=="string"&&(n=`{${n}}`),i.push(Array.isArray(n)?tt(s,n,r):s+n);return mt.flatten(i)},Ty=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(s,n={})=>{s.queue=[];let o=n,u=n.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(s.invalid||s.dollar){u.push(tt(u.pop(),mf(s,e)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){u.push(tt(u.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let h=mt.reduce(s.nodes);if(mt.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=By(...h,e);f.length===0&&(f=mf(s,e)),u.push(tt(u.pop(),f)),s.nodes=[];return}let a=mt.encloseBrace(s),l=s.queue,c=s;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,l=c.queue;for(let h=0;h<s.nodes.length;h++){let f=s.nodes[h];if(f.type==="comma"&&s.type==="brace"){h===1&&l.push(""),l.push("");continue}if(f.type==="close"){u.push(tt(u.pop(),l,a));continue}if(f.value&&f.type!=="open"){l.push(tt(l.pop(),f.value));continue}f.nodes&&i(f,s)}return l};return mt.flatten(i(t))};Df.exports=Ty});var _f=p((tx,yf)=>{"use strict";yf.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:`
|
|
60
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",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:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var wf=p((rx,Cf)=>{"use strict";var Ry=jr(),{MAX_LENGTH:bf,CHAR_BACKSLASH:Pn,CHAR_BACKTICK:ky,CHAR_COMMA:$y,CHAR_DOT:Iy,CHAR_LEFT_PARENTHESES:jy,CHAR_RIGHT_PARENTHESES:Ly,CHAR_LEFT_CURLY_BRACE:Ny,CHAR_RIGHT_CURLY_BRACE:My,CHAR_LEFT_SQUARE_BRACKET:Ff,CHAR_RIGHT_SQUARE_BRACKET:Ef,CHAR_DOUBLE_QUOTE:qy,CHAR_SINGLE_QUOTE:Hy,CHAR_NO_BREAK_SPACE:Wy,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Vy}=_f(),Gy=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(bf,r.maxLength):bf;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let s={type:"root",input:t,nodes:[]},n=[s],o=s,u=s,a=0,l=t.length,c=0,h=0,f,_=()=>t[c++],d=m=>{if(m.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&m.type==="text"){u.value+=m.value;return}return o.nodes.push(m),m.parent=o,m.prev=u,u=m,m};for(d({type:"bos"});c<l;)if(o=n[n.length-1],f=_(),!(f===Vy||f===Wy)){if(f===Pn){d({type:"text",value:(e.keepEscaping?f:"")+_()});continue}if(f===Ef){d({type:"text",value:"\\"+f});continue}if(f===Ff){a++;let m;for(;c<l&&(m=_());){if(f+=m,m===Ff){a++;continue}if(m===Pn){f+=_();continue}if(m===Ef&&(a--,a===0))break}d({type:"text",value:f});continue}if(f===jy){o=d({type:"paren",nodes:[]}),n.push(o),d({type:"text",value:f});continue}if(f===Ly){if(o.type!=="paren"){d({type:"text",value:f});continue}o=n.pop(),d({type:"text",value:f}),o=n[n.length-1];continue}if(f===qy||f===Hy||f===ky){let m=f,C;for(e.keepQuotes!==!0&&(f="");c<l&&(C=_());){if(C===Pn){f+=C+_();continue}if(C===m){e.keepQuotes===!0&&(f+=C);break}f+=C}d({type:"text",value:f});continue}if(f===Ny){h++;let C={type:"brace",open:!0,close:!1,dollar:u.value&&u.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=d(C),n.push(o),d({type:"open",value:f});continue}if(f===My){if(o.type!=="brace"){d({type:"text",value:f});continue}let m="close";o=n.pop(),o.close=!0,d({type:m,value:f}),h--,o=n[n.length-1];continue}if(f===$y&&h>0){if(o.ranges>0){o.ranges=0;let m=o.nodes.shift();o.nodes=[m,{type:"text",value:Ry(o)}]}d({type:"comma",value:f}),o.commas++;continue}if(f===Iy&&h>0&&o.commas===0){let m=o.nodes;if(h===0||m.length===0){d({type:"text",value:f});continue}if(u.type==="dot"){if(o.range=[],u.value+=f,u.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,u.type="text";continue}o.ranges++,o.args=[];continue}if(u.type==="range"){m.pop();let C=m[m.length-1];C.value+=u.value+f,u=C,o.ranges--;continue}d({type:"dot",value:f});continue}d({type:"text",value:f})}do if(o=n.pop(),o.type!=="root"){o.nodes.forEach(F=>{F.nodes||(F.type==="open"&&(F.isOpen=!0),F.type==="close"&&(F.isClose=!0),F.nodes||(F.type="text"),F.invalid=!0)});let m=n[n.length-1],C=m.nodes.indexOf(o);m.nodes.splice(C,1,...o.nodes)}while(n.length>0);return d({type:"eos"}),s};Cf.exports=Gy});var Af=p((ix,xf)=>{"use strict";var vf=jr(),Uy=df(),zy=gf(),Ky=wf(),le=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let s=le.create(i,e);Array.isArray(s)?r.push(...s):r.push(s)}else r=[].concat(le.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};le.parse=(t,e={})=>Ky(t,e);le.stringify=(t,e={})=>vf(typeof t=="string"?le.parse(t,e):t,e);le.compile=(t,e={})=>(typeof t=="string"&&(t=le.parse(t,e)),Uy(t,e));le.expand=(t,e={})=>{typeof t=="string"&&(t=le.parse(t,e));let r=zy(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};le.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?le.compile(t,e):le.expand(t,e);xf.exports=le});var Ht=p((sx,Tf)=>{"use strict";var Yy=require("path"),Ae="\\\\/",Sf=`[^${Ae}]`,Re="\\.",Qy="\\+",Xy="\\?",Mr="\\/",Zy="(?=.)",Of="[^/]",Bn=`(?:${Mr}|$)`,Pf=`(?:^|${Mr})`,Tn=`${Re}{1,2}${Bn}`,Jy=`(?!${Re})`,e_=`(?!${Pf}${Tn})`,t_=`(?!${Re}{0,1}${Bn})`,r_=`(?!${Tn})`,i_=`[^.${Mr}]`,s_=`${Of}*?`,Bf={DOT_LITERAL:Re,PLUS_LITERAL:Qy,QMARK_LITERAL:Xy,SLASH_LITERAL:Mr,ONE_CHAR:Zy,QMARK:Of,END_ANCHOR:Bn,DOTS_SLASH:Tn,NO_DOT:Jy,NO_DOTS:e_,NO_DOT_SLASH:t_,NO_DOTS_SLASH:r_,QMARK_NO_DOT:i_,STAR:s_,START_ANCHOR:Pf},n_={...Bf,SLASH_LITERAL:`[${Ae}]`,QMARK:Sf,STAR:`${Sf}*?`,DOTS_SLASH:`${Re}{1,2}(?:[${Ae}]|$)`,NO_DOT:`(?!${Re})`,NO_DOTS:`(?!(?:^|[${Ae}])${Re}{1,2}(?:[${Ae}]|$))`,NO_DOT_SLASH:`(?!${Re}{0,1}(?:[${Ae}]|$))`,NO_DOTS_SLASH:`(?!${Re}{1,2}(?:[${Ae}]|$))`,QMARK_NO_DOT:`[^.${Ae}]`,START_ANCHOR:`(?:^|[${Ae}])`,END_ANCHOR:`(?:[${Ae}]|$)`},o_={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"};Tf.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:o_,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:Yy.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===!0?n_:Bf}}});var Wt=p(ue=>{"use strict";var u_=require("path"),a_=process.platform==="win32",{REGEX_BACKSLASH:l_,REGEX_REMOVE_BACKSLASH:c_,REGEX_SPECIAL_CHARS:h_,REGEX_SPECIAL_CHARS_GLOBAL:f_}=Ht();ue.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);ue.hasRegexChars=t=>h_.test(t);ue.isRegexChar=t=>t.length===1&&ue.hasRegexChars(t);ue.escapeRegex=t=>t.replace(f_,"\\$1");ue.toPosixSlashes=t=>t.replace(l_,"/");ue.removeBackslashes=t=>t.replace(c_,e=>e==="\\"?"":e);ue.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};ue.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:a_===!0||u_.sep==="\\";ue.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?ue.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};ue.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};ue.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",s=r.contains?"":"$",n=`${i}(?:${t})${s}`;return e.negated===!0&&(n=`(?:^(?!${n}).*$)`),n}});var Mf=p((ox,Nf)=>{"use strict";var Rf=Wt(),{CHAR_ASTERISK:Rn,CHAR_AT:p_,CHAR_BACKWARD_SLASH:Vt,CHAR_COMMA:d_,CHAR_DOT:kn,CHAR_EXCLAMATION_MARK:$n,CHAR_FORWARD_SLASH:Lf,CHAR_LEFT_CURLY_BRACE:In,CHAR_LEFT_PARENTHESES:jn,CHAR_LEFT_SQUARE_BRACKET:m_,CHAR_PLUS:D_,CHAR_QUESTION_MARK:kf,CHAR_RIGHT_CURLY_BRACE:g_,CHAR_RIGHT_PARENTHESES:$f,CHAR_RIGHT_SQUARE_BRACKET:y_}=Ht(),If=t=>t===Lf||t===Vt,jf=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},__=(t,e)=>{let r=e||{},i=t.length-1,s=r.parts===!0||r.scanToEnd===!0,n=[],o=[],u=[],a=t,l=-1,c=0,h=0,f=!1,_=!1,d=!1,m=!1,C=!1,F=!1,v=!1,b=!1,S=!1,x=!1,P=0,T,O,A={value:"",depth:0,isGlob:!1},N=()=>l>=i,y=()=>a.charCodeAt(l+1),H=()=>(T=O,a.charCodeAt(++l));for(;l<i;){O=H();let se;if(O===Vt){v=A.backslashes=!0,O=H(),O===In&&(F=!0);continue}if(F===!0||O===In){for(P++;N()!==!0&&(O=H());){if(O===Vt){v=A.backslashes=!0,H();continue}if(O===In){P++;continue}if(F!==!0&&O===kn&&(O=H())===kn){if(f=A.isBrace=!0,d=A.isGlob=!0,x=!0,s===!0)continue;break}if(F!==!0&&O===d_){if(f=A.isBrace=!0,d=A.isGlob=!0,x=!0,s===!0)continue;break}if(O===g_&&(P--,P===0)){F=!1,f=A.isBrace=!0,x=!0;break}}if(s===!0)continue;break}if(O===Lf){if(n.push(l),o.push(A),A={value:"",depth:0,isGlob:!1},x===!0)continue;if(T===kn&&l===c+1){c+=2;continue}h=l+1;continue}if(r.noext!==!0&&(O===D_||O===p_||O===Rn||O===kf||O===$n)===!0&&y()===jn){if(d=A.isGlob=!0,m=A.isExtglob=!0,x=!0,O===$n&&l===c&&(S=!0),s===!0){for(;N()!==!0&&(O=H());){if(O===Vt){v=A.backslashes=!0,O=H();continue}if(O===$f){d=A.isGlob=!0,x=!0;break}}continue}break}if(O===Rn){if(T===Rn&&(C=A.isGlobstar=!0),d=A.isGlob=!0,x=!0,s===!0)continue;break}if(O===kf){if(d=A.isGlob=!0,x=!0,s===!0)continue;break}if(O===m_){for(;N()!==!0&&(se=H());){if(se===Vt){v=A.backslashes=!0,H();continue}if(se===y_){_=A.isBracket=!0,d=A.isGlob=!0,x=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&O===$n&&l===c){b=A.negated=!0,c++;continue}if(r.noparen!==!0&&O===jn){if(d=A.isGlob=!0,s===!0){for(;N()!==!0&&(O=H());){if(O===jn){v=A.backslashes=!0,O=H();continue}if(O===$f){x=!0;break}}continue}break}if(d===!0){if(x=!0,s===!0)continue;break}}r.noext===!0&&(m=!1,d=!1);let W=a,$e="",D="";c>0&&($e=a.slice(0,c),a=a.slice(c),h-=c),W&&d===!0&&h>0?(W=a.slice(0,h),D=a.slice(h)):d===!0?(W="",D=a):W=a,W&&W!==""&&W!=="/"&&W!==a&&If(W.charCodeAt(W.length-1))&&(W=W.slice(0,-1)),r.unescape===!0&&(D&&(D=Rf.removeBackslashes(D)),W&&v===!0&&(W=Rf.removeBackslashes(W)));let g={prefix:$e,input:t,start:c,base:W,glob:D,isBrace:f,isBracket:_,isGlob:d,isExtglob:m,isGlobstar:C,negated:b,negatedExtglob:S};if(r.tokens===!0&&(g.maxDepth=0,If(O)||o.push(A),g.tokens=o),r.parts===!0||r.tokens===!0){let se;for(let I=0;I<n.length;I++){let ve=se?se+1:c,xe=n[I],ae=t.slice(ve,xe);r.tokens&&(I===0&&c!==0?(o[I].isPrefix=!0,o[I].value=$e):o[I].value=ae,jf(o[I]),g.maxDepth+=o[I].depth),(I!==0||ae!=="")&&u.push(ae),se=xe}if(se&&se+1<t.length){let I=t.slice(se+1);u.push(I),r.tokens&&(o[o.length-1].value=I,jf(o[o.length-1]),g.maxDepth+=o[o.length-1].depth)}g.slashes=n,g.parts=u}return g};Nf.exports=__});var Wf=p((ux,Hf)=>{"use strict";var qr=Ht(),ce=Wt(),{MAX_LENGTH:Hr,POSIX_REGEX_SOURCE:b_,REGEX_NON_SPECIAL_CHARS:F_,REGEX_SPECIAL_CHARS_BACKREF:E_,REPLACEMENTS:qf}=qr,C_=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(s=>ce.escapeRegex(s)).join("..")}return r},Dt=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Ln=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=qf[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Hr,r.maxLength):Hr,s=t.length;if(s>i)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${i}`);let n={type:"bos",value:"",output:r.prepend||""},o=[n],u=r.capture?"":"?:",a=ce.isWindows(e),l=qr.globChars(a),c=qr.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:_,ONE_CHAR:d,DOTS_SLASH:m,NO_DOT:C,NO_DOT_SLASH:F,NO_DOTS_SLASH:v,QMARK:b,QMARK_NO_DOT:S,STAR:x,START_ANCHOR:P}=l,T=w=>`(${u}(?:(?!${P}${w.dot?m:h}).)*?)`,O=r.dot?"":C,A=r.dot?b:S,N=r.bash===!0?T(r):x;r.capture&&(N=`(${N})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let y={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=ce.removePrefix(t,y),s=t.length;let H=[],W=[],$e=[],D=n,g,se=()=>y.index===s-1,I=y.peek=(w=1)=>t[y.index+w],ve=y.advance=()=>t[++y.index]||"",xe=()=>t.slice(y.index+1),ae=(w="",V=0)=>{y.consumed+=w,y.index+=V},zt=w=>{y.output+=w.output!=null?w.output:w.value,ae(w.value)},Ld=()=>{let w=1;for(;I()==="!"&&(I(2)!=="("||I(3)==="?");)ve(),y.start++,w++;return w%2===0?!1:(y.negated=!0,y.start++,!0)},Kt=w=>{y[w]++,$e.push(w)},Ke=w=>{y[w]--,$e.pop()},k=w=>{if(D.type==="globstar"){let V=y.braces>0&&(w.type==="comma"||w.type==="brace"),E=w.extglob===!0||H.length&&(w.type==="pipe"||w.type==="paren");w.type!=="slash"&&w.type!=="paren"&&!V&&!E&&(y.output=y.output.slice(0,-D.output.length),D.type="star",D.value="*",D.output=N,y.output+=D.output)}if(H.length&&w.type!=="paren"&&(H[H.length-1].inner+=w.value),(w.value||w.output)&&zt(w),D&&D.type==="text"&&w.type==="text"){D.value+=w.value,D.output=(D.output||"")+w.value;return}w.prev=D,o.push(w),D=w},Yt=(w,V)=>{let E={...c[V],conditions:1,inner:""};E.prev=D,E.parens=y.parens,E.output=y.output;let R=(r.capture?"(":"")+E.open;Kt("parens"),k({type:w,value:V,output:y.output?"":d}),k({type:"paren",extglob:!0,value:ve(),output:R}),H.push(E)},Nd=w=>{let V=w.close+(r.capture?")":""),E;if(w.type==="negate"){let R=N;if(w.inner&&w.inner.length>1&&w.inner.includes("/")&&(R=T(r)),(R!==N||se()||/^\)+$/.test(xe()))&&(V=w.close=`)$))${R}`),w.inner.includes("*")&&(E=xe())&&/^\.[^\\/.]+$/.test(E)){let z=Ln(E,{...e,fastpaths:!1}).output;V=w.close=`)${z})${R})`}w.prev.type==="bos"&&(y.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:g,output:V}),Ke("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let w=!1,V=t.replace(E_,(E,R,z,ne,Z,fi)=>ne==="\\"?(w=!0,E):ne==="?"?R?R+ne+(Z?b.repeat(Z.length):""):fi===0?A+(Z?b.repeat(Z.length):""):b.repeat(z.length):ne==="."?h.repeat(z.length):ne==="*"?R?R+ne+(Z?N:""):N:R?E:`\\${E}`);return w===!0&&(r.unescape===!0?V=V.replace(/\\/g,""):V=V.replace(/\\+/g,E=>E.length%2===0?"\\\\":E?"\\":"")),V===t&&r.contains===!0?(y.output=t,y):(y.output=ce.wrapOutput(V,y,e),y)}for(;!se();){if(g=ve(),g==="\0")continue;if(g==="\\"){let E=I();if(E==="/"&&r.bash!==!0||E==="."||E===";")continue;if(!E){g+="\\",k({type:"text",value:g});continue}let R=/^\\+/.exec(xe()),z=0;if(R&&R[0].length>2&&(z=R[0].length,y.index+=z,z%2!==0&&(g+="\\")),r.unescape===!0?g=ve():g+=ve(),y.brackets===0){k({type:"text",value:g});continue}}if(y.brackets>0&&(g!=="]"||D.value==="["||D.value==="[^")){if(r.posix!==!1&&g===":"){let E=D.value.slice(1);if(E.includes("[")&&(D.posix=!0,E.includes(":"))){let R=D.value.lastIndexOf("["),z=D.value.slice(0,R),ne=D.value.slice(R+2),Z=b_[ne];if(Z){D.value=z+Z,y.backtrack=!0,ve(),!n.output&&o.indexOf(D)===1&&(n.output=d);continue}}}(g==="["&&I()!==":"||g==="-"&&I()==="]")&&(g=`\\${g}`),g==="]"&&(D.value==="["||D.value==="[^")&&(g=`\\${g}`),r.posix===!0&&g==="!"&&D.value==="["&&(g="^"),D.value+=g,zt({value:g});continue}if(y.quotes===1&&g!=='"'){g=ce.escapeRegex(g),D.value+=g,zt({value:g});continue}if(g==='"'){y.quotes=y.quotes===1?0:1,r.keepQuotes===!0&&k({type:"text",value:g});continue}if(g==="("){Kt("parens"),k({type:"paren",value:g});continue}if(g===")"){if(y.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Dt("opening","("));let E=H[H.length-1];if(E&&y.parens===E.parens+1){Nd(H.pop());continue}k({type:"paren",value:g,output:y.parens?")":"\\)"}),Ke("parens");continue}if(g==="["){if(r.nobracket===!0||!xe().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Dt("closing","]"));g=`\\${g}`}else Kt("brackets");k({type:"bracket",value:g});continue}if(g==="]"){if(r.nobracket===!0||D&&D.type==="bracket"&&D.value.length===1){k({type:"text",value:g,output:`\\${g}`});continue}if(y.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Dt("opening","["));k({type:"text",value:g,output:`\\${g}`});continue}Ke("brackets");let E=D.value.slice(1);if(D.posix!==!0&&E[0]==="^"&&!E.includes("/")&&(g=`/${g}`),D.value+=g,zt({value:g}),r.literalBrackets===!1||ce.hasRegexChars(E))continue;let R=ce.escapeRegex(D.value);if(y.output=y.output.slice(0,-D.value.length),r.literalBrackets===!0){y.output+=R,D.value=R;continue}D.value=`(${u}${R}|${D.value})`,y.output+=D.value;continue}if(g==="{"&&r.nobrace!==!0){Kt("braces");let E={type:"brace",value:g,output:"(",outputIndex:y.output.length,tokensIndex:y.tokens.length};W.push(E),k(E);continue}if(g==="}"){let E=W[W.length-1];if(r.nobrace===!0||!E){k({type:"text",value:g,output:g});continue}let R=")";if(E.dots===!0){let z=o.slice(),ne=[];for(let Z=z.length-1;Z>=0&&(o.pop(),z[Z].type!=="brace");Z--)z[Z].type!=="dots"&&ne.unshift(z[Z].value);R=C_(ne,r),y.backtrack=!0}if(E.comma!==!0&&E.dots!==!0){let z=y.output.slice(0,E.outputIndex),ne=y.tokens.slice(E.tokensIndex);E.value=E.output="\\{",g=R="\\}",y.output=z;for(let Z of ne)y.output+=Z.output||Z.value}k({type:"brace",value:g,output:R}),Ke("braces"),W.pop();continue}if(g==="|"){H.length>0&&H[H.length-1].conditions++,k({type:"text",value:g});continue}if(g===","){let E=g,R=W[W.length-1];R&&$e[$e.length-1]==="braces"&&(R.comma=!0,E="|"),k({type:"comma",value:g,output:E});continue}if(g==="/"){if(D.type==="dot"&&y.index===y.start+1){y.start=y.index+1,y.consumed="",y.output="",o.pop(),D=n;continue}k({type:"slash",value:g,output:_});continue}if(g==="."){if(y.braces>0&&D.type==="dot"){D.value==="."&&(D.output=h);let E=W[W.length-1];D.type="dots",D.output+=g,D.value+=g,E.dots=!0;continue}if(y.braces+y.parens===0&&D.type!=="bos"&&D.type!=="slash"){k({type:"text",value:g,output:h});continue}k({type:"dot",value:g,output:h});continue}if(g==="?"){if(!(D&&D.value==="(")&&r.noextglob!==!0&&I()==="("&&I(2)!=="?"){Yt("qmark",g);continue}if(D&&D.type==="paren"){let R=I(),z=g;if(R==="<"&&!ce.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(D.value==="("&&!/[!=<:]/.test(R)||R==="<"&&!/<([!=]|\w+>)/.test(xe()))&&(z=`\\${g}`),k({type:"text",value:g,output:z});continue}if(r.dot!==!0&&(D.type==="slash"||D.type==="bos")){k({type:"qmark",value:g,output:S});continue}k({type:"qmark",value:g,output:b});continue}if(g==="!"){if(r.noextglob!==!0&&I()==="("&&(I(2)!=="?"||!/[!=<:]/.test(I(3)))){Yt("negate",g);continue}if(r.nonegate!==!0&&y.index===0){Ld();continue}}if(g==="+"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){Yt("plus",g);continue}if(D&&D.value==="("||r.regex===!1){k({type:"plus",value:g,output:f});continue}if(D&&(D.type==="bracket"||D.type==="paren"||D.type==="brace")||y.parens>0){k({type:"plus",value:g});continue}k({type:"plus",value:f});continue}if(g==="@"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){k({type:"at",extglob:!0,value:g,output:""});continue}k({type:"text",value:g});continue}if(g!=="*"){(g==="$"||g==="^")&&(g=`\\${g}`);let E=F_.exec(xe());E&&(g+=E[0],y.index+=E[0].length),k({type:"text",value:g});continue}if(D&&(D.type==="globstar"||D.star===!0)){D.type="star",D.star=!0,D.value+=g,D.output=N,y.backtrack=!0,y.globstar=!0,ae(g);continue}let w=xe();if(r.noextglob!==!0&&/^\([^?]/.test(w)){Yt("star",g);continue}if(D.type==="star"){if(r.noglobstar===!0){ae(g);continue}let E=D.prev,R=E.prev,z=E.type==="slash"||E.type==="bos",ne=R&&(R.type==="star"||R.type==="globstar");if(r.bash===!0&&(!z||w[0]&&w[0]!=="/")){k({type:"star",value:g,output:""});continue}let Z=y.braces>0&&(E.type==="comma"||E.type==="brace"),fi=H.length&&(E.type==="pipe"||E.type==="paren");if(!z&&E.type!=="paren"&&!Z&&!fi){k({type:"star",value:g,output:""});continue}for(;w.slice(0,3)==="/**";){let Qt=t[y.index+4];if(Qt&&Qt!=="/")break;w=w.slice(3),ae("/**",3)}if(E.type==="bos"&&se()){D.type="globstar",D.value+=g,D.output=T(r),y.output=D.output,y.globstar=!0,ae(g);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&!ne&&se()){y.output=y.output.slice(0,-(E.output+D.output).length),E.output=`(?:${E.output}`,D.type="globstar",D.output=T(r)+(r.strictSlashes?")":"|$)"),D.value+=g,y.globstar=!0,y.output+=E.output+D.output,ae(g);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&w[0]==="/"){let Qt=w[1]!==void 0?"|$":"";y.output=y.output.slice(0,-(E.output+D.output).length),E.output=`(?:${E.output}`,D.type="globstar",D.output=`${T(r)}${_}|${_}${Qt})`,D.value+=g,y.output+=E.output+D.output,y.globstar=!0,ae(g+ve()),k({type:"slash",value:"/",output:""});continue}if(E.type==="bos"&&w[0]==="/"){D.type="globstar",D.value+=g,D.output=`(?:^|${_}|${T(r)}${_})`,y.output=D.output,y.globstar=!0,ae(g+ve()),k({type:"slash",value:"/",output:""});continue}y.output=y.output.slice(0,-D.output.length),D.type="globstar",D.output=T(r),D.value+=g,y.output+=D.output,y.globstar=!0,ae(g);continue}let V={type:"star",value:g,output:N};if(r.bash===!0){V.output=".*?",(D.type==="bos"||D.type==="slash")&&(V.output=O+V.output),k(V);continue}if(D&&(D.type==="bracket"||D.type==="paren")&&r.regex===!0){V.output=g,k(V);continue}(y.index===y.start||D.type==="slash"||D.type==="dot")&&(D.type==="dot"?(y.output+=F,D.output+=F):r.dot===!0?(y.output+=v,D.output+=v):(y.output+=O,D.output+=O),I()!=="*"&&(y.output+=d,D.output+=d)),k(V)}for(;y.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Dt("closing","]"));y.output=ce.escapeLast(y.output,"["),Ke("brackets")}for(;y.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Dt("closing",")"));y.output=ce.escapeLast(y.output,"("),Ke("parens")}for(;y.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Dt("closing","}"));y.output=ce.escapeLast(y.output,"{"),Ke("braces")}if(r.strictSlashes!==!0&&(D.type==="star"||D.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${_}?`}),y.backtrack===!0){y.output="";for(let w of y.tokens)y.output+=w.output!=null?w.output:w.value,w.suffix&&(y.output+=w.suffix)}return y};Ln.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Hr,r.maxLength):Hr,s=t.length;if(s>i)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${i}`);t=qf[t]||t;let n=ce.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:a,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:_,START_ANCHOR:d}=qr.globChars(n),m=r.dot?h:c,C=r.dot?f:c,F=r.capture?"":"?:",v={negated:!1,prefix:""},b=r.bash===!0?".*?":_;r.capture&&(b=`(${b})`);let S=O=>O.noglobstar===!0?b:`(${F}(?:(?!${d}${O.dot?l:o}).)*?)`,x=O=>{switch(O){case"*":return`${m}${a}${b}`;case".*":return`${o}${a}${b}`;case"*.*":return`${m}${b}${o}${a}${b}`;case"*/*":return`${m}${b}${u}${a}${C}${b}`;case"**":return m+S(r);case"**/*":return`(?:${m}${S(r)}${u})?${C}${a}${b}`;case"**/*.*":return`(?:${m}${S(r)}${u})?${C}${b}${o}${a}${b}`;case"**/.*":return`(?:${m}${S(r)}${u})?${o}${a}${b}`;default:{let A=/^(.*?)\.(\w+)$/.exec(O);if(!A)return;let N=x(A[1]);return N?N+o+A[2]:void 0}}},P=ce.removePrefix(t,v),T=x(P);return T&&r.strictSlashes!==!0&&(T+=`${u}?`),T};Hf.exports=Ln});var Gf=p((ax,Vf)=>{"use strict";var w_=require("path"),v_=Mf(),Nn=Wf(),Mn=Wt(),x_=Ht(),A_=t=>t&&typeof t=="object"&&!Array.isArray(t),Q=(t,e,r=!1)=>{if(Array.isArray(t)){let c=t.map(f=>Q(f,e,r));return f=>{for(let _ of c){let d=_(f);if(d)return d}return!1}}let i=A_(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let s=e||{},n=Mn.isWindows(e),o=i?Q.compileRe(t,e):Q.makeRe(t,e,!1,!0),u=o.state;delete o.state;let a=()=>!1;if(s.ignore){let c={...e,ignore:null,onMatch:null,onResult:null};a=Q(s.ignore,c,r)}let l=(c,h=!1)=>{let{isMatch:f,match:_,output:d}=Q.test(c,o,e,{glob:t,posix:n}),m={glob:t,state:u,regex:o,posix:n,input:c,output:d,match:_,isMatch:f};return typeof s.onResult=="function"&&s.onResult(m),f===!1?(m.isMatch=!1,h?m:!1):a(c)?(typeof s.onIgnore=="function"&&s.onIgnore(m),m.isMatch=!1,h?m:!1):(typeof s.onMatch=="function"&&s.onMatch(m),h?m:!0)};return r&&(l.state=u),l};Q.test=(t,e,r,{glob:i,posix:s}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let n=r||{},o=n.format||(s?Mn.toPosixSlashes:null),u=t===i,a=u&&o?o(t):t;return u===!1&&(a=o?o(t):t,u=a===i),(u===!1||n.capture===!0)&&(n.matchBase===!0||n.basename===!0?u=Q.matchBase(t,e,r,s):u=e.exec(a)),{isMatch:!!u,match:u,output:a}};Q.matchBase=(t,e,r,i=Mn.isWindows(r))=>(e instanceof RegExp?e:Q.makeRe(e,r)).test(w_.basename(t));Q.isMatch=(t,e,r)=>Q(e,r)(t);Q.parse=(t,e)=>Array.isArray(t)?t.map(r=>Q.parse(r,e)):Nn(t,{...e,fastpaths:!1});Q.scan=(t,e)=>v_(t,e);Q.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let s=e||{},n=s.contains?"":"^",o=s.contains?"":"$",u=`${n}(?:${t.output})${o}`;t&&t.negated===!0&&(u=`^(?!${u}).*$`);let a=Q.toRegex(u,e);return i===!0&&(a.state=t),a};Q.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(s.output=Nn.fastpaths(t,e)),s.output||(s=Nn(t,e)),Q.compileRe(s,e,r,i)};Q.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Q.constants=x_;Vf.exports=Q});var zf=p((lx,Uf)=>{"use strict";Uf.exports=Gf()});var Jf=p((cx,Zf)=>{"use strict";var Yf=require("util"),Qf=Af(),Se=zf(),qn=Wt(),Kf=t=>t===""||t==="./",Xf=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},G=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,s=new Set,n=new Set,o=0,u=c=>{n.add(c.output),r&&r.onResult&&r.onResult(c)};for(let c=0;c<e.length;c++){let h=Se(String(e[c]),{...r,onResult:u},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let _ of t){let d=h(_,!0);(f?!d.isMatch:d.isMatch)&&(f?i.add(d.output):(i.delete(d.output),s.add(d.output)))}}let l=(o===e.length?[...n]:[...s]).filter(c=>!i.has(c));if(r&&l.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(c=>c.replace(/\\/g,"")):e}return l};G.match=G;G.matcher=(t,e)=>Se(t,e);G.isMatch=(t,e,r)=>Se(e,r)(t);G.any=G.isMatch;G.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,s=[],n=u=>{r.onResult&&r.onResult(u),s.push(u.output)},o=new Set(G(t,e,{...r,onResult:n}));for(let u of s)o.has(u)||i.add(u);return[...i]};G.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Yf.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>G.contains(t,i,r));if(typeof e=="string"){if(Kf(t)||Kf(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return G.isMatch(t,e,{...r,contains:!0})};G.matchKeys=(t,e,r)=>{if(!qn.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=G(Object.keys(t),e,r),s={};for(let n of i)s[n]=t[n];return s};G.some=(t,e,r)=>{let i=[].concat(t);for(let s of[].concat(e)){let n=Se(String(s),r);if(i.some(o=>n(o)))return!0}return!1};G.every=(t,e,r)=>{let i=[].concat(t);for(let s of[].concat(e)){let n=Se(String(s),r);if(!i.every(o=>n(o)))return!1}return!0};G.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Yf.inspect(t)}"`);return[].concat(e).every(i=>Se(i,r)(t))};G.capture=(t,e,r)=>{let i=qn.isWindows(r),n=Se.makeRe(String(t),{...r,capture:!0}).exec(i?qn.toPosixSlashes(e):e);if(n)return n.slice(1).map(o=>o===void 0?"":o)};G.makeRe=(...t)=>Se.makeRe(...t);G.scan=(...t)=>Se.scan(...t);G.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let s of Qf(String(i),e))r.push(Se.parse(s,e));return r};G.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!Xf(t)?[t]:Qf(t,e)};G.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return G.braces(t,{...e,expand:!0})};G.hasBraces=Xf;Zf.exports=G});var lp=p(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.isAbsolute=B.partitionAbsoluteAndRelative=B.removeDuplicateSlashes=B.matchAny=B.convertPatternsToRe=B.makeRe=B.getPatternParts=B.expandBraceExpansion=B.expandPatternsWithBraceExpansion=B.isAffectDepthOfReadingPattern=B.endsWithSlashGlobStar=B.hasGlobStar=B.getBaseDirectory=B.isPatternRelatedToParentDirectory=B.getPatternsOutsideCurrentDirectory=B.getPatternsInsideCurrentDirectory=B.getPositivePatterns=B.getNegativePatterns=B.isPositivePattern=B.isNegativePattern=B.convertToNegativePattern=B.convertToPositivePattern=B.isDynamicPattern=B.isStaticPattern=void 0;var ep=require("path"),S_=Vh(),Hn=Jf(),tp="**",O_="\\",P_=/[*?]|^!/,B_=/\[[^[]*]/,T_=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,R_=/[!*+?@]\([^(]*\)/,k_=/,|\.\./,$_=/(?!^)\/{2,}/g;function rp(t,e={}){return!ip(t,e)}B.isStaticPattern=rp;function ip(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(O_)||P_.test(t)||B_.test(t)||T_.test(t)||e.extglob!==!1&&R_.test(t)||e.braceExpansion!==!1&&I_(t))}B.isDynamicPattern=ip;function I_(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return k_.test(i)}function j_(t){return Wr(t)?t.slice(1):t}B.convertToPositivePattern=j_;function L_(t){return"!"+t}B.convertToNegativePattern=L_;function Wr(t){return t.startsWith("!")&&t[1]!=="("}B.isNegativePattern=Wr;function sp(t){return!Wr(t)}B.isPositivePattern=sp;function N_(t){return t.filter(Wr)}B.getNegativePatterns=N_;function M_(t){return t.filter(sp)}B.getPositivePatterns=M_;function q_(t){return t.filter(e=>!Wn(e))}B.getPatternsInsideCurrentDirectory=q_;function H_(t){return t.filter(Wn)}B.getPatternsOutsideCurrentDirectory=H_;function Wn(t){return t.startsWith("..")||t.startsWith("./..")}B.isPatternRelatedToParentDirectory=Wn;function W_(t){return S_(t,{flipBackslashes:!1})}B.getBaseDirectory=W_;function V_(t){return t.includes(tp)}B.hasGlobStar=V_;function np(t){return t.endsWith("/"+tp)}B.endsWithSlashGlobStar=np;function G_(t){let e=ep.basename(t);return np(t)||rp(e)}B.isAffectDepthOfReadingPattern=G_;function U_(t){return t.reduce((e,r)=>e.concat(op(r)),[])}B.expandPatternsWithBraceExpansion=U_;function op(t){let e=Hn.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((r,i)=>r.length-i.length),e.filter(r=>r!=="")}B.expandBraceExpansion=op;function z_(t,e){let{parts:r}=Hn.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}B.getPatternParts=z_;function up(t,e){return Hn.makeRe(t,e)}B.makeRe=up;function K_(t,e){return t.map(r=>up(r,e))}B.convertPatternsToRe=K_;function Y_(t,e){return e.some(r=>r.test(t))}B.matchAny=Y_;function Q_(t){return t.replace($_,"/")}B.removeDuplicateSlashes=Q_;function X_(t){let e=[],r=[];for(let i of t)ap(i)?e.push(i):r.push(i);return[e,r]}B.partitionAbsoluteAndRelative=X_;function ap(t){return ep.isAbsolute(t)}B.isAbsolute=ap});var pp=p((fx,fp)=>{"use strict";var Z_=require("stream"),cp=Z_.PassThrough,J_=Array.prototype.slice;fp.exports=eb;function eb(){let t=[],e=J_.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let s=i.end!==!1,n=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=cp(i);function u(){for(let c=0,h=arguments.length;c<h;c++)t.push(hp(arguments[c],i));return a(),this}function a(){if(r)return;r=!0;let c=t.shift();if(!c){process.nextTick(l);return}Array.isArray(c)||(c=[c]);let h=c.length+1;function f(){--h>0||(r=!1,a())}function _(d){function m(){d.removeListener("merge2UnpipeEnd",m),d.removeListener("end",m),n&&d.removeListener("error",C),f()}function C(F){o.emit("error",F)}if(d._readableState.endEmitted)return f();d.on("merge2UnpipeEnd",m),d.on("end",m),n&&d.on("error",C),d.pipe(o,{end:!1}),d.resume()}for(let d=0;d<c.length;d++)_(c[d]);f()}function l(){r=!1,o.emit("queueDrain"),s&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),e.length&&u.apply(null,e),o}function hp(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=hp(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(cp(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var mp=p(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.merge=void 0;var tb=pp();function rb(t){let e=tb(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>dp(t)),e.once("end",()=>dp(t)),e}Vr.merge=rb;function dp(t){t.forEach(e=>e.emit("close"))}});var Dp=p(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.isEmpty=gt.isString=void 0;function ib(t){return typeof t=="string"}gt.isString=ib;function sb(t){return t===""}gt.isEmpty=sb});var ke=p(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.string=re.stream=re.pattern=re.path=re.fs=re.errno=re.array=void 0;var nb=Bh();re.array=nb;var ob=Th();re.errno=ob;var ub=Rh();re.fs=ub;var ab=jh();re.path=ab;var lb=lp();re.pattern=lb;var cb=mp();re.stream=cb;var hb=Dp();re.string=hb});var bp=p(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.convertPatternGroupToTask=ie.convertPatternGroupsToTasks=ie.groupPatternsByBaseDirectory=ie.getNegativePatternsAsPositive=ie.getPositivePatterns=ie.convertPatternsToTasks=ie.generate=void 0;var Ee=ke();function fb(t,e){let r=gp(t,e),i=gp(e.ignore,e),s=yp(r),n=_p(r,i),o=s.filter(c=>Ee.pattern.isStaticPattern(c,e)),u=s.filter(c=>Ee.pattern.isDynamicPattern(c,e)),a=Vn(o,n,!1),l=Vn(u,n,!0);return a.concat(l)}ie.generate=fb;function gp(t,e){let r=t;return e.braceExpansion&&(r=Ee.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(i=>i.includes("/")?i:`**/${i}`)),r.map(i=>Ee.pattern.removeDuplicateSlashes(i))}function Vn(t,e,r){let i=[],s=Ee.pattern.getPatternsOutsideCurrentDirectory(t),n=Ee.pattern.getPatternsInsideCurrentDirectory(t),o=Gn(s),u=Gn(n);return i.push(...Un(o,e,r)),"."in u?i.push(zn(".",n,e,r)):i.push(...Un(u,e,r)),i}ie.convertPatternsToTasks=Vn;function yp(t){return Ee.pattern.getPositivePatterns(t)}ie.getPositivePatterns=yp;function _p(t,e){return Ee.pattern.getNegativePatterns(t).concat(e).map(Ee.pattern.convertToPositivePattern)}ie.getNegativePatternsAsPositive=_p;function Gn(t){let e={};return t.reduce((r,i)=>{let s=Ee.pattern.getBaseDirectory(i);return s in r?r[s].push(i):r[s]=[i],r},e)}ie.groupPatternsByBaseDirectory=Gn;function Un(t,e,r){return Object.keys(t).map(i=>zn(i,t[i],e,r))}ie.convertPatternGroupsToTasks=Un;function zn(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Ee.pattern.convertToNegativePattern))}}ie.convertPatternGroupToTask=zn});var Ep=p(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.read=void 0;function pb(t,e,r){e.fs.lstat(t,(i,s)=>{if(i!==null){Fp(r,i);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){Kn(r,s);return}e.fs.stat(t,(n,o)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){Fp(r,n);return}Kn(r,s);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Kn(r,o)})})}Gr.read=pb;function Fp(t,e){t(e)}function Kn(t,e){t(null,e)}});var Cp=p(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.read=void 0;function db(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}Ur.read=db});var wp=p(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.createFileSystemAdapter=Me.FILE_SYSTEM_ADAPTER=void 0;var zr=require("fs");Me.FILE_SYSTEM_ADAPTER={lstat:zr.lstat,stat:zr.stat,lstatSync:zr.lstatSync,statSync:zr.statSync};function mb(t){return t===void 0?Me.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Me.FILE_SYSTEM_ADAPTER),t)}Me.createFileSystemAdapter=mb});var vp=p(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});var Db=wp(),Yn=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Db.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};Qn.default=Yn});var rt=p(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.statSync=qe.stat=qe.Settings=void 0;var xp=Ep(),gb=Cp(),Xn=vp();qe.Settings=Xn.default;function yb(t,e,r){if(typeof e=="function"){xp.read(t,Zn(),e);return}xp.read(t,Zn(e),r)}qe.stat=yb;function _b(t,e){let r=Zn(e);return gb.read(t,r)}qe.statSync=_b;function Zn(t={}){return t instanceof Xn.default?t:new Xn.default(t)}});var Op=p((Ex,Sp)=>{var Ap;Sp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Ap||(Ap=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Bp=p((Cx,Pp)=>{Pp.exports=Fb;var bb=Op();function Fb(t,e){let r,i,s,n=!0;Array.isArray(t)?(r=[],i=t.length):(s=Object.keys(t),r={},i=s.length);function o(a){function l(){e&&e(a,r),e=null}n?bb(l):l()}function u(a,l,c){r[a]=c,(--i===0||l)&&o(l)}i?s?s.forEach(function(a){t[a](function(l,c){u(a,l,c)})}):t.forEach(function(a,l){a(function(c,h){u(l,c,h)})}):o(null),n=!1}});var Jn=p(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Kr=process.versions.node.split(".");if(Kr[0]===void 0||Kr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Tp=Number.parseInt(Kr[0],10),Eb=Number.parseInt(Kr[1],10),Rp=10,Cb=10,wb=Tp>Rp,vb=Tp===Rp&&Eb>=Cb;Yr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=wb||vb});var kp=p(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.createDirentFromStats=void 0;var eo=class{constructor(e,r){this.name=e,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 xb(t,e){return new eo(t,e)}Qr.createDirentFromStats=xb});var to=p(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.fs=void 0;var Ab=kp();Xr.fs=Ab});var ro=p(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.joinPathSegments=void 0;function Sb(t,e,r){return t.endsWith(r)?t+e:t+r+e}Zr.joinPathSegments=Sb});var Mp=p(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.readdir=He.readdirWithFileTypes=He.read=void 0;var Ob=rt(),$p=Bp(),Pb=Jn(),Ip=to(),jp=ro();function Bb(t,e,r){if(!e.stats&&Pb.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Lp(t,e,r);return}Np(t,e,r)}He.read=Bb;function Lp(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,s)=>{if(i!==null){Jr(r,i);return}let n=s.map(u=>({dirent:u,name:u.name,path:jp.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){io(r,n);return}let o=n.map(u=>Tb(u,e));$p(o,(u,a)=>{if(u!==null){Jr(r,u);return}io(r,a)})})}He.readdirWithFileTypes=Lp;function Tb(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,s)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=Ip.fs.createDirentFromStats(t.name,s),r(null,t)})}}function Np(t,e,r){e.fs.readdir(t,(i,s)=>{if(i!==null){Jr(r,i);return}let n=s.map(o=>{let u=jp.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{Ob.stat(u,e.fsStatSettings,(l,c)=>{if(l!==null){a(l);return}let h={name:o,path:u,dirent:Ip.fs.createDirentFromStats(o,c)};e.stats&&(h.stats=c),a(null,h)})}});$p(n,(o,u)=>{if(o!==null){Jr(r,o);return}io(r,u)})})}He.readdir=Np;function Jr(t,e){t(e)}function io(t,e){t(null,e)}});var Gp=p(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.readdir=We.readdirWithFileTypes=We.read=void 0;var Rb=rt(),kb=Jn(),qp=to(),Hp=ro();function $b(t,e){return!e.stats&&kb.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Wp(t,e):Vp(t,e)}We.read=$b;function Wp(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let s={dirent:i,name:i.name,path:Hp.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let n=e.fs.statSync(s.path);s.dirent=qp.fs.createDirentFromStats(s.name,n)}catch(n){if(e.throwErrorOnBrokenSymbolicLink)throw n}return s})}We.readdirWithFileTypes=Wp;function Vp(t,e){return e.fs.readdirSync(t).map(i=>{let s=Hp.joinPathSegments(t,i,e.pathSegmentSeparator),n=Rb.statSync(s,e.fsStatSettings),o={name:i,path:s,dirent:qp.fs.createDirentFromStats(i,n)};return e.stats&&(o.stats=n),o})}We.readdir=Vp});var Up=p(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.createFileSystemAdapter=Ve.FILE_SYSTEM_ADAPTER=void 0;var yt=require("fs");Ve.FILE_SYSTEM_ADAPTER={lstat:yt.lstat,stat:yt.stat,lstatSync:yt.lstatSync,statSync:yt.statSync,readdir:yt.readdir,readdirSync:yt.readdirSync};function Ib(t){return t===void 0?Ve.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ve.FILE_SYSTEM_ADAPTER),t)}Ve.createFileSystemAdapter=Ib});var zp=p(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});var jb=require("path"),Lb=rt(),Nb=Up(),so=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Nb.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,jb.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Lb.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};no.default=so});var ei=p(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.Settings=Ge.scandirSync=Ge.scandir=void 0;var Kp=Mp(),Mb=Gp(),oo=zp();Ge.Settings=oo.default;function qb(t,e,r){if(typeof e=="function"){Kp.read(t,uo(),e);return}Kp.read(t,uo(e),r)}Ge.scandir=qb;function Hb(t,e){let r=uo(e);return Mb.read(t,r)}Ge.scandirSync=Hb;function uo(t={}){return t instanceof oo.default?t:new oo.default(t)}});var Qp=p((Rx,Yp)=>{"use strict";function Wb(t){var e=new t,r=e;function i(){var n=e;return n.next?e=n.next:(e=new t,r=e),n.next=null,n}function s(n){r.next=n,r=n}return{get:i,release:s}}Yp.exports=Wb});var Zp=p((kx,ao)=>{"use strict";var Vb=Qp();function Xp(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var i=Vb(Gb),s=null,n=null,o=0,u=null,a={push:m,drain:De,saturated:De,pause:c,paused:!1,get concurrency(){return r},set concurrency(x){if(!(x>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=x,!a.paused)for(;s&&o<r;)o++,F()},running:l,resume:_,idle:d,length:h,getQueue:f,unshift:C,empty:De,kill:v,killAndDrain:b,error:S};return a;function l(){return o}function c(){a.paused=!0}function h(){for(var x=s,P=0;x;)x=x.next,P++;return P}function f(){for(var x=s,P=[];x;)P.push(x.value),x=x.next;return P}function _(){if(a.paused){if(a.paused=!1,s===null){o++,F();return}for(;s&&o<r;)o++,F()}}function d(){return o===0&&a.length()===0}function m(x,P){var T=i.get();T.context=t,T.release=F,T.value=x,T.callback=P||De,T.errorHandler=u,o>=r||a.paused?n?(n.next=T,n=T):(s=T,n=T,a.saturated()):(o++,e.call(t,T.value,T.worked))}function C(x,P){var T=i.get();T.context=t,T.release=F,T.value=x,T.callback=P||De,T.errorHandler=u,o>=r||a.paused?s?(T.next=s,s=T):(s=T,n=T,a.saturated()):(o++,e.call(t,T.value,T.worked))}function F(x){x&&i.release(x);var P=s;P&&o<=r?a.paused?o--:(n===s&&(n=null),s=P.next,P.next=null,e.call(t,P.value,P.worked),n===null&&a.empty()):--o===0&&a.drain()}function v(){s=null,n=null,a.drain=De}function b(){s=null,n=null,a.drain(),a.drain=De}function S(x){u=x}}function De(){}function Gb(){this.value=null,this.callback=De,this.next=null,this.release=De,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var s=t.callback,n=t.errorHandler,o=t.value;t.value=null,t.callback=De,t.errorHandler&&n(r,o),s.call(t.context,r,i),t.release(t)}}function Ub(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(c,h){e.call(this,c).then(function(f){h(null,f)},h)}var s=Xp(t,i,r),n=s.push,o=s.unshift;return s.push=u,s.unshift=a,s.drained=l,s;function u(c){var h=new Promise(function(f,_){n(c,function(d,m){if(d){_(d);return}f(m)})});return h.catch(De),h}function a(c){var h=new Promise(function(f,_){o(c,function(d,m){if(d){_(d);return}f(m)})});return h.catch(De),h}function l(){if(s.idle())return new Promise(function(f){f()});var c=s.drain,h=new Promise(function(f){s.drain=function(){c(),f()}});return h}}ao.exports=Xp;ao.exports.promise=Ub});var ti=p(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.joinPathSegments=Oe.replacePathSegmentSeparator=Oe.isAppliedFilter=Oe.isFatalError=void 0;function zb(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Oe.isFatalError=zb;function Kb(t,e){return t===null||t(e)}Oe.isAppliedFilter=Kb;function Yb(t,e){return t.split(/[/\\]/).join(e)}Oe.replacePathSegmentSeparator=Yb;function Qb(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Oe.joinPathSegments=Qb});var ho=p(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var Xb=ti(),lo=class{constructor(e,r){this._root=e,this._settings=r,this._root=Xb.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};co.default=lo});var mo=p(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});var Zb=require("events"),Jb=ei(),eF=Zp(),ri=ti(),tF=ho(),fo=class extends tF.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=Jb.scandir,this._emitter=new Zb.EventEmitter,this._queue=eF(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,s=>{s!==null&&this._handleError(s)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,s)=>{if(i!==null){r(i,void 0);return}for(let n of s)this._handleEntry(n,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!ri.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=ri.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ri.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&ri.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};po.default=fo});var Jp=p(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});var rF=mo(),Do=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new rF.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{iF(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{sF(e,this._storage)}),this._reader.read()}};go.default=Do;function iF(t,e){t(e)}function sF(t,e){t(null,e)}});var ed=p(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});var nF=require("stream"),oF=mo(),yo=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new oF.default(this._root,this._settings),this._stream=new nF.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};_o.default=yo});var td=p(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});var uF=ei(),ii=ti(),aF=ho(),bo=class extends aF.default{constructor(){super(...arguments),this._scandir=uF.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let s of i)this._handleEntry(s,r)}catch(i){this._handleError(i)}}_handleError(e){if(ii.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=ii.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ii.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&ii.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Fo.default=bo});var rd=p(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});var lF=td(),Eo=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new lF.default(this._root,this._settings)}read(){return this._reader.read()}};Co.default=Eo});var id=p(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});var cF=require("path"),hF=ei(),wo=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),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,cF.sep),this.fsScandirSettings=new hF.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};vo.default=wo});var ni=p(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.Settings=Pe.walkStream=Pe.walkSync=Pe.walk=void 0;var sd=Jp(),fF=ed(),pF=rd(),xo=id();Pe.Settings=xo.default;function dF(t,e,r){if(typeof e=="function"){new sd.default(t,si()).read(e);return}new sd.default(t,si(e)).read(r)}Pe.walk=dF;function mF(t,e){let r=si(e);return new pF.default(t,r).read()}Pe.walkSync=mF;function DF(t,e){let r=si(e);return new fF.default(t,r).read()}Pe.walkStream=DF;function si(t={}){return t instanceof xo.default?t:new xo.default(t)}});var oi=p(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});var gF=require("path"),yF=rt(),nd=ke(),Ao=class{constructor(e){this._settings=e,this._fsStatSettings=new yF.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return gF.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:nd.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!nd.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};So.default=Ao});var Bo=p(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});var _F=require("stream"),bF=rt(),FF=ni(),EF=oi(),Oo=class extends EF.default{constructor(){super(...arguments),this._walkStream=FF.walkStream,this._stat=bF.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),s=new _F.PassThrough({objectMode:!0});s._write=(n,o,u)=>this._getEntry(i[n],e[n],r).then(a=>{a!==null&&r.entryFilter(a)&&s.push(a),n===i.length-1&&s.end(),u()}).catch(u);for(let n=0;n<i.length;n++)s.write(n);return s}_getEntry(e,r,i){return this._getStat(e).then(s=>this._makeEntry(s,r)).catch(s=>{if(i.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(s,n)=>s===null?r(n):i(s))})}};Po.default=Oo});var od=p(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});var CF=ni(),wF=oi(),vF=Bo(),To=class extends wF.default{constructor(){super(...arguments),this._walkAsync=CF.walk,this._readerStream=new vF.default(this._settings)}dynamic(e,r){return new Promise((i,s)=>{this._walkAsync(e,r,(n,o)=>{n===null?i(o):s(n)})})}async static(e,r){let i=[],s=this._readerStream.static(e,r);return new Promise((n,o)=>{s.once("error",o),s.on("data",u=>i.push(u)),s.once("end",()=>n(i))})}};Ro.default=To});var ud=p($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});var Gt=ke(),ko=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),i=this._splitSegmentsIntoSections(r);this._storage.push({complete:i.length<=1,pattern:e,segments:r,sections:i})}}_getPatternSegments(e){return Gt.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Gt.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Gt.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Gt.array.splitWhen(e,r=>r.dynamic&&Gt.pattern.hasGlobStar(r.pattern))}};$o.default=ko});var ad=p(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});var xF=ud(),Io=class extends xF.default{match(e){let r=e.split("/"),i=r.length,s=this._storage.filter(n=>!n.complete||n.segments.length>i);for(let n of s){let o=n.sections[0];if(!n.complete&&i>o.length||r.every((a,l)=>{let c=n.segments[l];return!!(c.dynamic&&c.patternRe.test(a)||!c.dynamic&&c.pattern===a)}))return!0}return!1}};jo.default=Io});var ld=p(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});var ui=ke(),AF=ad(),Lo=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let s=this._getMatcher(r),n=this._getNegativePatternsRe(i);return o=>this._filter(e,o,s,n)}_getMatcher(e){return new AF.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(ui.pattern.isAffectDepthOfReadingPattern);return ui.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,s){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let n=ui.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(n,i)?!1:this._isSkippedByNegativePatterns(n,s)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let s=e.split("/").length;return i-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!ui.pattern.matchAny(e,r)}};No.default=Lo});var cd=p(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});var Ue=ke(),Mo=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let[i,s]=Ue.pattern.partitionAbsoluteAndRelative(r),n={positive:{all:Ue.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:Ue.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Ue.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o=>this._filter(o,n)}_filter(e,r){let i=Ue.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let s=this._isMatchToPatternsSet(i,r,e.dirent.isDirectory());return this._settings.unique&&s&&this._createIndexRecord(i),s}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,r,i){return!(!this._isMatchToPatterns(e,r.positive.all,i)||this._isMatchToPatterns(e,r.negative.relative,i)||this._isMatchToAbsoluteNegative(e,r.negative.absolute,i))}_isMatchToAbsoluteNegative(e,r,i){if(r.length===0)return!1;let s=Ue.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(s,r,i)}_isMatchToPatterns(e,r,i){if(r.length===0)return!1;let s=Ue.pattern.matchAny(e,r);return!s&&i?Ue.pattern.matchAny(e+"/",r):s}};qo.default=Mo});var hd=p(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});var SF=ke(),Ho=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return SF.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Wo.default=Ho});var pd=p(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});var fd=ke(),Vo=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=fd.path.makeAbsolute(this._settings.cwd,r),r=fd.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Go.default=Vo});var ai=p(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});var OF=require("path"),PF=ld(),BF=cd(),TF=hd(),RF=pd(),Uo=class{constructor(e){this._settings=e,this.errorFilter=new TF.default(this._settings),this.entryFilter=new BF.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new PF.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new RF.default(this._settings)}_getRootDirectory(e){return OF.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};zo.default=Uo});var dd=p(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});var kF=od(),$F=ai(),Ko=class extends $F.default{constructor(){super(...arguments),this._reader=new kF.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(n=>i.transform(n))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Yo.default=Ko});var md=p(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});var IF=require("stream"),jF=Bo(),LF=ai(),Qo=class extends LF.default{constructor(){super(...arguments),this._reader=new jF.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),s=this.api(r,e,i),n=new IF.Readable({objectMode:!0,read:()=>{}});return s.once("error",o=>n.emit("error",o)).on("data",o=>n.emit("data",i.transform(o))).once("end",()=>n.emit("end")),n.once("close",()=>s.destroy()),n}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Xo.default=Qo});var Dd=p(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});var NF=rt(),MF=ni(),qF=oi(),Zo=class extends qF.default{constructor(){super(...arguments),this._walkSync=MF.walkSync,this._statSync=NF.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let s of e){let n=this._getFullEntryPath(s),o=this._getEntry(n,s,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let s=this._getStat(e);return this._makeEntry(s,r)}catch(s){if(i.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Jo.default=Zo});var gd=p(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var HF=Dd(),WF=ai(),eu=class extends WF.default{constructor(){super(...arguments),this._reader=new HF.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};tu.default=eu});var yd=p(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var _t=require("fs"),VF=require("os"),GF=Math.max(VF.cpus().length,1);bt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:_t.lstat,lstatSync:_t.lstatSync,stat:_t.stat,statSync:_t.statSync,readdir:_t.readdir,readdirSync:_t.readdirSync};var ru=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,GF),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},bt.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};bt.default=ru});var Fd=p((nA,bd)=>{"use strict";var _d=bp(),UF=dd(),zF=md(),KF=gd(),iu=yd(),ge=ke();async function su(t,e){Ce(t);let r=nu(t,UF.default,e),i=await Promise.all(r);return ge.array.flatten(i)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(l,c){Ce(l);let h=nu(l,KF.default,c);return ge.array.flatten(h)}t.sync=e;function r(l,c){Ce(l);let h=nu(l,zF.default,c);return ge.stream.merge(h)}t.stream=r;function i(l,c){Ce(l);let h=[].concat(l),f=new iu.default(c);return _d.generate(h,f)}t.generateTasks=i;function s(l,c){Ce(l);let h=new iu.default(c);return ge.pattern.isDynamicPattern(l,h)}t.isDynamicPattern=s;function n(l){return Ce(l),ge.path.escape(l)}t.escapePath=n;function o(l){return Ce(l),ge.path.convertPathToPattern(l)}t.convertPathToPattern=o;let u;(function(l){function c(f){return Ce(f),ge.path.escapePosixPath(f)}l.escapePath=c;function h(f){return Ce(f),ge.path.convertPosixPathToPattern(f)}l.convertPathToPattern=h})(u=t.posix||(t.posix={}));let a;(function(l){function c(f){return Ce(f),ge.path.escapeWindowsPath(f)}l.escapePath=c;function h(f){return Ce(f),ge.path.convertWindowsPathToPattern(f)}l.convertPathToPattern=h})(a=t.win32||(t.win32={}))})(su||(su={}));function nu(t,e,r){let i=[].concat(t),s=new iu.default(r),n=_d.generate(i,s),o=new e(s);return n.map(o.read,o)}function Ce(t){if(![].concat(t).every(i=>ge.string.isString(i)&&!ge.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}bd.exports=su});var Id=j(Qa(),1),jd=j(Za(),1);var Ja=(t=0)=>e=>`\x1B[${e+t}m`,el=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,tl=(t=0)=>(e,r,i)=>`\x1B[${38+t};2;${e};${r};${i}m`,U={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},zE=Object.keys(U.modifier),gD=Object.keys(U.color),yD=Object.keys(U.bgColor),KE=[...gD,...yD];function _D(){let t=new Map;for(let[e,r]of Object.entries(U)){for(let[i,s]of Object.entries(r))U[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[i]=U[i],t.set(s[0],s[1]);Object.defineProperty(U,e,{value:r,enumerable:!1})}return Object.defineProperty(U,"codes",{value:t,enumerable:!1}),U.color.close="\x1B[39m",U.bgColor.close="\x1B[49m",U.color.ansi=Ja(),U.color.ansi256=el(),U.color.ansi16m=tl(),U.bgColor.ansi=Ja(10),U.bgColor.ansi256=el(10),U.bgColor.ansi16m=tl(10),Object.defineProperties(U,{rgbToAnsi256:{value(e,r,i){return e===r&&r===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[i]=r;i.length===3&&(i=[...i].map(n=>n+n).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>U.rgbToAnsi256(...U.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,i,s;if(e>=232)r=((e-232)*10+8)/255,i=r,s=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,i=Math.floor(u/6)/5,s=u%6/5}let n=Math.max(r,i,s)*2;if(n===0)return 30;let o=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(r));return n===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,i)=>U.ansi256ToAnsi(U.rgbToAnsi256(e,r,i)),enumerable:!1},hexToAnsi:{value:e=>U.ansi256ToAnsi(U.hexToAnsi256(e)),enumerable:!1}}),U}var bD=_D(),be=bD;var or=j(require("node:process"),1),il=j(require("node:os"),1),ss=j(require("node:tty"),1);function fe(t,e=globalThis.Deno?globalThis.Deno.args:or.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),s=e.indexOf("--");return i!==-1&&(s===-1||i<s)}var{env:Y}=or.default,nr;fe("no-color")||fe("no-colors")||fe("color=false")||fe("color=never")?nr=0:(fe("color")||fe("colors")||fe("color=true")||fe("color=always"))&&(nr=1);function FD(){if("FORCE_COLOR"in Y)return Y.FORCE_COLOR==="true"?1:Y.FORCE_COLOR==="false"?0:Y.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Y.FORCE_COLOR,10),3)}function ED(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function CD(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let i=FD();i!==void 0&&(nr=i);let s=r?nr:i;if(s===0)return 0;if(r){if(fe("color=16m")||fe("color=full")||fe("color=truecolor"))return 3;if(fe("color=256"))return 2}if("TF_BUILD"in Y&&"AGENT_NAME"in Y)return 1;if(t&&!e&&s===void 0)return 0;let n=s||0;if(Y.TERM==="dumb")return n;if(or.default.platform==="win32"){let o=il.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in Y)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in Y)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in Y)||Y.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in Y)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Y.TEAMCITY_VERSION)?1:0;if(Y.COLORTERM==="truecolor"||Y.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Y){let o=Number.parseInt((Y.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Y.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Y.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Y.TERM)||"COLORTERM"in Y?1:n}function rl(t,e={}){let r=CD(t,{streamIsTTY:t&&t.isTTY,...e});return ED(r)}var wD={stdout:rl({isTTY:ss.default.isatty(1)}),stderr:rl({isTTY:ss.default.isatty(2)})},sl=wD;function nl(t,e,r){let i=t.indexOf(e);if(i===-1)return t;let s=e.length,n=0,o="";do o+=t.slice(n,i)+e+r,n=i+s,i=t.indexOf(e,n);while(i!==-1);return o+=t.slice(n),o}function ol(t,e,r,i){let s=0,n="";do{let o=t[i-1]==="\r";n+=t.slice(s,o?i-1:i)+e+(o?`\r
|
|
59
|
+
`)}),this}_outputHelpIfRequested(e){let r=this._getHelpOption();r&&e.find(s=>r.is(s))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function of(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,i="127.0.0.1",s="9229",n;return(n=e.match(/^(--inspect(-brk)?)$/))!==null?r=n[1]:(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=n[1],/^\d+$/.test(n[3])?s=n[3]:i=n[3]):(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=n[1],i=n[3],s=n[4]),r&&s!=="0"?`${r}=${i}:${parseInt(s)+1}`:e})}function kn(){if(M.env.NO_COLOR||M.env.FORCE_COLOR==="0"||M.env.FORCE_COLOR==="false")return!1;if(M.env.FORCE_COLOR||M.env.CLICOLOR_FORCE!==void 0)return!0}Ln.Command=In;Ln.useColor=kn});var hf=p(Fe=>{var{Argument:uf}=Yr(),{Command:Nn}=af(),{CommanderError:l_,InvalidArgumentError:lf}=Kt(),{Help:c_}=Sn(),{Option:cf}=Pn();Fe.program=new Nn;Fe.createCommand=t=>new Nn(t);Fe.createOption=(t,e)=>new cf(t,e);Fe.createArgument=(t,e)=>new uf(t,e);Fe.Command=Nn;Fe.Option=cf;Fe.Argument=uf;Fe.Help=c_;Fe.CommanderError=l_;Fe.InvalidArgumentError=lf;Fe.InvalidOptionArgumentError=lf});var yf=p((V2,E_)=>{E_.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Hn=p((W2,_f)=>{"use strict";var Jr=Object.assign({},yf()),Ef=Object.keys(Jr);Object.defineProperty(Jr,"random",{get(){let t=Math.floor(Math.random()*Ef.length),e=Ef[t];return Jr[e]}});_f.exports=Jr});var vf=p((oO,Af)=>{Af.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var Of=p(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.splitWhen=vt.flatten=void 0;function P_(t){return t.reduce((e,r)=>[].concat(e,r),[])}vt.flatten=P_;function $_(t,e){let r=[[]],i=0;for(let s of t)e(s)?(i++,r[i]=[]):r[i].push(s);return r}vt.splitWhen=$_});var Rf=p(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.isEnoentCodeError=void 0;function B_(t){return t.code==="ENOENT"}ti.isEnoentCodeError=B_});var Tf=p(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.createDirentFromStats=void 0;var to=class{constructor(e,r){this.name=e,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 I_(t,e){return new to(t,e)}ri.createDirentFromStats=I_});var If=p(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.convertPosixPathToPattern=te.convertWindowsPathToPattern=te.convertPathToPattern=te.escapePosixPath=te.escapeWindowsPath=te.escape=te.removeLeadingDotSegment=te.makeAbsolute=te.unixify=void 0;var k_=require("os"),L_=require("path"),Pf=k_.platform()==="win32",N_=2,q_=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,j_=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,M_=/^\\\\([.?])/,H_=/\\(?![!()+@[\]{}])/g;function G_(t){return t.replace(/\\/g,"/")}te.unixify=G_;function V_(t,e){return L_.resolve(t,e)}te.makeAbsolute=V_;function W_(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(N_)}return t}te.removeLeadingDotSegment=W_;te.escape=Pf?ro:io;function ro(t){return t.replace(j_,"\\$2")}te.escapeWindowsPath=ro;function io(t){return t.replace(q_,"\\$2")}te.escapePosixPath=io;te.convertPathToPattern=Pf?$f:Bf;function $f(t){return ro(t).replace(M_,"//$1").replace(H_,"/")}te.convertWindowsPathToPattern=$f;function Bf(t){return io(t)}te.convertPosixPathToPattern=Bf});var Lf=p((SO,kf)=>{kf.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var jf=p((OO,qf)=>{var U_=Lf(),Nf={"{":"}","(":")","[":"]"},z_=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,s=-2,n=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||s!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(s=t.indexOf("}",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||n!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(n=t.indexOf(")",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(n=t.indexOf(")",r),n>r&&(o=t.indexOf("\\",r),o===-1||o>n))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=Nf[a];if(u){var l=t.indexOf(u,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},K_=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=Nf[r];if(i){var s=t.indexOf(i,e);s!==-1&&(e=s+1)}if(t[e]==="!")return!0}else e++}return!1};qf.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(U_(e))return!0;var i=z_;return r&&r.strict===!1&&(i=K_),i(e)}});var Hf=p((RO,Mf)=>{"use strict";var Y_=jf(),X_=require("path").posix.dirname,Q_=require("os").platform()==="win32",so="/",Z_=/\\/g,J_=/[\{\[].*[\}\]]$/,eF=/(^|[^\\])([\{\[]|\([^\)]+$)/,tF=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Mf.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&Q_&&e.indexOf(so)<0&&(e=e.replace(Z_,so)),J_.test(e)&&(e+=so),e+="a";do e=X_(e);while(Y_(e)||eF.test(e));return e.replace(tF,"$1")}});var ii=p(Ce=>{"use strict";Ce.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Ce.find=(t,e)=>t.nodes.find(r=>r.type===e);Ce.exceedsLimit=(t,e,r=1,i)=>i===!1||!Ce.isInteger(t)||!Ce.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;Ce.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};Ce.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Ce.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Ce.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Ce.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Ce.flatten=(...t)=>{let e=[],r=i=>{for(let s=0;s<i.length;s++){let n=i[s];if(Array.isArray(n)){r(n);continue}n!==void 0&&e.push(n)}return e};return r(t),e}});var si=p((PO,Vf)=>{"use strict";var Gf=ii();Vf.exports=(t,e={})=>{let r=(i,s={})=>{let n=e.escapeInvalid&&Gf.isInvalidBrace(s),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(n||o)&&Gf.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let u of i.nodes)a+=r(u);return a};return r(t)}});var Uf=p(($O,Wf)=>{"use strict";Wf.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var tp=p((BO,ep)=>{"use strict";var zf=Uf(),ht=(t,e,r)=>{if(zf(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(zf(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let s=String(i.relaxZeros),n=String(i.shorthand),o=String(i.capture),a=String(i.wrap),u=t+":"+e+"="+s+n+o+a;if(ht.cache.hasOwnProperty(u))return ht.cache[u].result;let l=Math.min(t,e),c=Math.max(t,e);if(Math.abs(l-c)===1){let g=t+"|"+e;return i.capture?`(${g})`:i.wrap===!1?g:`(?:${g})`}let h=Jf(t)||Jf(e),f={min:t,max:e,a:l,b:c},d=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),l<0){let g=c<0?Math.abs(c):1;m=Kf(g,Math.abs(l),f,i),l=f.a=0}return c>=0&&(d=Kf(l,c,f,i)),f.negatives=m,f.positives=d,f.result=rF(m,d,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&d.length+m.length>1&&(f.result=`(?:${f.result})`),ht.cache[u]=f,f.result};function rF(t,e,r){let i=no(t,e,"-",!1,r)||[],s=no(e,t,"",!1,r)||[],n=no(t,e,"-?",!0,r)||[];return i.concat(n).concat(s).join("|")}function iF(t,e){let r=1,i=1,s=Xf(t,r),n=new Set([e]);for(;t<=s&&s<=e;)n.add(s),r+=1,s=Xf(t,r);for(s=Qf(e+1,i)-1;t<s&&s<=e;)n.add(s),i+=1,s=Qf(e+1,i)-1;return n=[...n],n.sort(oF),n}function sF(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=nF(t,e),s=i.length,n="",o=0;for(let a=0;a<s;a++){let[u,l]=i[a];u===l?n+=u:u!=="0"||l!=="9"?n+=aF(u,l,r):o++}return o&&(n+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:n,count:[o],digits:s}}function Kf(t,e,r,i){let s=iF(t,e),n=[],o=t,a;for(let u=0;u<s.length;u++){let l=s[u],c=sF(String(o),String(l),i),h="";if(!r.isPadded&&a&&a.pattern===c.pattern){a.count.length>1&&a.count.pop(),a.count.push(c.count[0]),a.string=a.pattern+Zf(a.count),o=l+1;continue}r.isPadded&&(h=uF(l,r,i)),c.string=h+c.pattern+Zf(c.count),n.push(c),o=l+1,a=c}return n}function no(t,e,r,i,s){let n=[];for(let o of t){let{string:a}=o;!i&&!Yf(e,"string",a)&&n.push(r+a),i&&Yf(e,"string",a)&&n.push(r+a)}return n}function nF(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function oF(t,e){return t>e?1:e>t?-1:0}function Yf(t,e,r){return t.some(i=>i[e]===r)}function Xf(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Qf(t,e){return t-t%Math.pow(10,e)}function Zf(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function aF(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Jf(t){return/^-?(0+)\d/.test(t)}function uF(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),s=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${i}}`:`0{${i}}`}}ht.cache={};ht.clearCache=()=>ht.cache={};ep.exports=ht});var uo=p((IO,up)=>{"use strict";var lF=require("util"),ip=tp(),rp=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),cF=t=>e=>t===!0?Number(e):String(e),oo=t=>typeof t=="number"||typeof t=="string"&&t!=="",tr=t=>Number.isInteger(+t),ao=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},hF=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,fF=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},oi=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},pF=(t,e,r)=>{t.negatives.sort((a,u)=>a<u?-1:a>u?1:0),t.positives.sort((a,u)=>a<u?-1:a>u?1:0);let i=e.capture?"":"?:",s="",n="",o;return t.positives.length&&(s=t.positives.map(a=>oi(String(a),r)).join("|")),t.negatives.length&&(n=`-(${i}${t.negatives.map(a=>oi(String(a),r)).join("|")})`),s&&n?o=`${s}|${n}`:o=s||n,e.wrap?`(${i}${o})`:o},sp=(t,e,r,i)=>{if(r)return ip(t,e,{wrap:!1,...i});let s=String.fromCharCode(t);if(t===e)return s;let n=String.fromCharCode(e);return`[${s}-${n}]`},np=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,s=r.capture?"":"?:";return i?`(${s}${t.join("|")})`:t.join("|")}return ip(t,e,r)},op=(...t)=>new RangeError("Invalid range arguments: "+lF.inspect(...t)),ap=(t,e,r)=>{if(r.strictRanges===!0)throw op([t,e]);return[]},dF=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},mF=(t,e,r=1,i={})=>{let s=Number(t),n=Number(e);if(!Number.isInteger(s)||!Number.isInteger(n)){if(i.strictRanges===!0)throw op([t,e]);return[]}s===0&&(s=0),n===0&&(n=0);let o=s>n,a=String(t),u=String(e),l=String(r);r=Math.max(Math.abs(r),1);let c=ao(a)||ao(u)||ao(l),h=c?Math.max(a.length,u.length,l.length):0,f=c===!1&&hF(t,e,i)===!1,d=i.transform||cF(f);if(i.toRegex&&r===1)return sp(oi(t,h),oi(e,h),!0,i);let m={negatives:[],positives:[]},g=x=>m[x<0?"negatives":"positives"].push(Math.abs(x)),C=[],F=0;for(;o?s>=n:s<=n;)i.toRegex===!0&&r>1?g(s):C.push(fF(d(s,F),h,f)),s=o?s-r:s+r,F++;return i.toRegex===!0?r>1?pF(m,i,h):np(C,null,{wrap:!1,...i}):C},gF=(t,e,r=1,i={})=>{if(!tr(t)&&t.length>1||!tr(e)&&e.length>1)return ap(t,e,i);let s=i.transform||(f=>String.fromCharCode(f)),n=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=n>o,u=Math.min(n,o),l=Math.max(n,o);if(i.toRegex&&r===1)return sp(u,l,!1,i);let c=[],h=0;for(;a?n>=o:n<=o;)c.push(s(n,h)),n=a?n-r:n+r,h++;return i.toRegex===!0?np(c,null,{wrap:!1,options:i}):c},ni=(t,e,r,i={})=>{if(e==null&&oo(t))return[t];if(!oo(t)||!oo(e))return ap(t,e,i);if(typeof r=="function")return ni(t,e,1,{transform:r});if(rp(r))return ni(t,e,0,r);let s={...i};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,tr(r)?tr(t)&&tr(e)?mF(t,e,r,s):gF(t,e,Math.max(Math.abs(r),1),s):r!=null&&!rp(r)?dF(r,s):ni(t,e,1,r)};up.exports=ni});var hp=p((kO,cp)=>{"use strict";var DF=uo(),lp=ii(),yF=(t,e={})=>{let r=(i,s={})=>{let n=lp.isInvalidBrace(s),o=i.invalid===!0&&e.escapeInvalid===!0,a=n===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",l="";if(i.isOpen===!0)return u+i.value;if(i.isClose===!0)return console.log("node.isClose",u,i.value),u+i.value;if(i.type==="open")return a?u+i.value:"(";if(i.type==="close")return a?u+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let c=lp.reduce(i.nodes),h=DF(...c,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(h.length!==0)return c.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let c of i.nodes)l+=r(c,i);return l};return r(t)};cp.exports=yF});var dp=p((LO,pp)=>{"use strict";var EF=uo(),fp=si(),xt=ii(),ft=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?xt.flatten(e).map(s=>`{${s}}`):e;for(let s of t)if(Array.isArray(s))for(let n of s)i.push(ft(n,e,r));else for(let n of e)r===!0&&typeof n=="string"&&(n=`{${n}}`),i.push(Array.isArray(n)?ft(s,n,r):s+n);return xt.flatten(i)},_F=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(s,n={})=>{s.queue=[];let o=n,a=n.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(s.invalid||s.dollar){a.push(ft(a.pop(),fp(s,e)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){a.push(ft(a.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let h=xt.reduce(s.nodes);if(xt.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=EF(...h,e);f.length===0&&(f=fp(s,e)),a.push(ft(a.pop(),f)),s.nodes=[];return}let u=xt.encloseBrace(s),l=s.queue,c=s;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,l=c.queue;for(let h=0;h<s.nodes.length;h++){let f=s.nodes[h];if(f.type==="comma"&&s.type==="brace"){h===1&&l.push(""),l.push("");continue}if(f.type==="close"){a.push(ft(a.pop(),l,u));continue}if(f.value&&f.type!=="open"){l.push(ft(l.pop(),f.value));continue}f.nodes&&i(f,s)}return l};return xt.flatten(i(t))};pp.exports=_F});var gp=p((NO,mp)=>{"use strict";mp.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:`
|
|
60
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",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:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Fp=p((qO,_p)=>{"use strict";var FF=si(),{MAX_LENGTH:Dp,CHAR_BACKSLASH:lo,CHAR_BACKTICK:bF,CHAR_COMMA:CF,CHAR_DOT:wF,CHAR_LEFT_PARENTHESES:AF,CHAR_RIGHT_PARENTHESES:vF,CHAR_LEFT_CURLY_BRACE:xF,CHAR_RIGHT_CURLY_BRACE:SF,CHAR_LEFT_SQUARE_BRACKET:yp,CHAR_RIGHT_SQUARE_BRACKET:Ep,CHAR_DOUBLE_QUOTE:OF,CHAR_SINGLE_QUOTE:RF,CHAR_NO_BREAK_SPACE:TF,CHAR_ZERO_WIDTH_NOBREAK_SPACE:PF}=gp(),$F=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Dp,r.maxLength):Dp;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let s={type:"root",input:t,nodes:[]},n=[s],o=s,a=s,u=0,l=t.length,c=0,h=0,f,d=()=>t[c++],m=g=>{if(g.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&g.type==="text"){a.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=a,a=g,g};for(m({type:"bos"});c<l;)if(o=n[n.length-1],f=d(),!(f===PF||f===TF)){if(f===lo){m({type:"text",value:(e.keepEscaping?f:"")+d()});continue}if(f===Ep){m({type:"text",value:"\\"+f});continue}if(f===yp){u++;let g;for(;c<l&&(g=d());){if(f+=g,g===yp){u++;continue}if(g===lo){f+=d();continue}if(g===Ep&&(u--,u===0))break}m({type:"text",value:f});continue}if(f===AF){o=m({type:"paren",nodes:[]}),n.push(o),m({type:"text",value:f});continue}if(f===vF){if(o.type!=="paren"){m({type:"text",value:f});continue}o=n.pop(),m({type:"text",value:f}),o=n[n.length-1];continue}if(f===OF||f===RF||f===bF){let g=f,C;for(e.keepQuotes!==!0&&(f="");c<l&&(C=d());){if(C===lo){f+=C+d();continue}if(C===g){e.keepQuotes===!0&&(f+=C);break}f+=C}m({type:"text",value:f});continue}if(f===xF){h++;let C={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=m(C),n.push(o),m({type:"open",value:f});continue}if(f===SF){if(o.type!=="brace"){m({type:"text",value:f});continue}let g="close";o=n.pop(),o.close=!0,m({type:g,value:f}),h--,o=n[n.length-1];continue}if(f===CF&&h>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:FF(o)}]}m({type:"comma",value:f}),o.commas++;continue}if(f===wF&&h>0&&o.commas===0){let g=o.nodes;if(h===0||g.length===0){m({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){g.pop();let C=g[g.length-1];C.value+=a.value+f,a=C,o.ranges--;continue}m({type:"dot",value:f});continue}m({type:"text",value:f})}do if(o=n.pop(),o.type!=="root"){o.nodes.forEach(F=>{F.nodes||(F.type==="open"&&(F.isOpen=!0),F.type==="close"&&(F.isClose=!0),F.nodes||(F.type="text"),F.invalid=!0)});let g=n[n.length-1],C=g.nodes.indexOf(o);g.nodes.splice(C,1,...o.nodes)}while(n.length>0);return m({type:"eos"}),s};_p.exports=$F});var wp=p((jO,Cp)=>{"use strict";var bp=si(),BF=hp(),IF=dp(),kF=Fp(),De=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let s=De.create(i,e);Array.isArray(s)?r.push(...s):r.push(s)}else r=[].concat(De.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};De.parse=(t,e={})=>kF(t,e);De.stringify=(t,e={})=>bp(typeof t=="string"?De.parse(t,e):t,e);De.compile=(t,e={})=>(typeof t=="string"&&(t=De.parse(t,e)),BF(t,e));De.expand=(t,e={})=>{typeof t=="string"&&(t=De.parse(t,e));let r=IF(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};De.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?De.compile(t,e):De.expand(t,e);Cp.exports=De});var rr=p((MO,Op)=>{"use strict";var LF=require("path"),Le="\\\\/",Ap=`[^${Le}]`,Ve="\\.",NF="\\+",qF="\\?",ai="\\/",jF="(?=.)",vp="[^/]",co=`(?:${ai}|$)`,xp=`(?:^|${ai})`,ho=`${Ve}{1,2}${co}`,MF=`(?!${Ve})`,HF=`(?!${xp}${ho})`,GF=`(?!${Ve}{0,1}${co})`,VF=`(?!${ho})`,WF=`[^.${ai}]`,UF=`${vp}*?`,Sp={DOT_LITERAL:Ve,PLUS_LITERAL:NF,QMARK_LITERAL:qF,SLASH_LITERAL:ai,ONE_CHAR:jF,QMARK:vp,END_ANCHOR:co,DOTS_SLASH:ho,NO_DOT:MF,NO_DOTS:HF,NO_DOT_SLASH:GF,NO_DOTS_SLASH:VF,QMARK_NO_DOT:WF,STAR:UF,START_ANCHOR:xp},zF={...Sp,SLASH_LITERAL:`[${Le}]`,QMARK:Ap,STAR:`${Ap}*?`,DOTS_SLASH:`${Ve}{1,2}(?:[${Le}]|$)`,NO_DOT:`(?!${Ve})`,NO_DOTS:`(?!(?:^|[${Le}])${Ve}{1,2}(?:[${Le}]|$))`,NO_DOT_SLASH:`(?!${Ve}{0,1}(?:[${Le}]|$))`,NO_DOTS_SLASH:`(?!${Ve}{1,2}(?:[${Le}]|$))`,QMARK_NO_DOT:`[^.${Le}]`,START_ANCHOR:`(?:^|[${Le}])`,END_ANCHOR:`(?:[${Le}]|$)`},KF={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"};Op.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:KF,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:LF.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===!0?zF:Sp}}});var ir=p(de=>{"use strict";var YF=require("path"),XF=process.platform==="win32",{REGEX_BACKSLASH:QF,REGEX_REMOVE_BACKSLASH:ZF,REGEX_SPECIAL_CHARS:JF,REGEX_SPECIAL_CHARS_GLOBAL:eb}=rr();de.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);de.hasRegexChars=t=>JF.test(t);de.isRegexChar=t=>t.length===1&&de.hasRegexChars(t);de.escapeRegex=t=>t.replace(eb,"\\$1");de.toPosixSlashes=t=>t.replace(QF,"/");de.removeBackslashes=t=>t.replace(ZF,e=>e==="\\"?"":e);de.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};de.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:XF===!0||YF.sep==="\\";de.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?de.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};de.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};de.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",s=r.contains?"":"$",n=`${i}(?:${t})${s}`;return e.negated===!0&&(n=`(?:^(?!${n}).*$)`),n}});var Lp=p((GO,kp)=>{"use strict";var Rp=ir(),{CHAR_ASTERISK:fo,CHAR_AT:tb,CHAR_BACKWARD_SLASH:sr,CHAR_COMMA:rb,CHAR_DOT:po,CHAR_EXCLAMATION_MARK:mo,CHAR_FORWARD_SLASH:Ip,CHAR_LEFT_CURLY_BRACE:go,CHAR_LEFT_PARENTHESES:Do,CHAR_LEFT_SQUARE_BRACKET:ib,CHAR_PLUS:sb,CHAR_QUESTION_MARK:Tp,CHAR_RIGHT_CURLY_BRACE:nb,CHAR_RIGHT_PARENTHESES:Pp,CHAR_RIGHT_SQUARE_BRACKET:ob}=rr(),$p=t=>t===Ip||t===sr,Bp=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},ab=(t,e)=>{let r=e||{},i=t.length-1,s=r.parts===!0||r.scanToEnd===!0,n=[],o=[],a=[],u=t,l=-1,c=0,h=0,f=!1,d=!1,m=!1,g=!1,C=!1,F=!1,x=!1,_=!1,R=!1,S=!1,P=0,B,T,O={value:"",depth:0,isGlob:!1},H=()=>l>=i,E=()=>u.charCodeAt(l+1),W=()=>(B=T,u.charCodeAt(++l));for(;l<i;){T=W();let le;if(T===sr){x=O.backslashes=!0,T=W(),T===go&&(F=!0);continue}if(F===!0||T===go){for(P++;H()!==!0&&(T=W());){if(T===sr){x=O.backslashes=!0,W();continue}if(T===go){P++;continue}if(F!==!0&&T===po&&(T=W())===po){if(f=O.isBrace=!0,m=O.isGlob=!0,S=!0,s===!0)continue;break}if(F!==!0&&T===rb){if(f=O.isBrace=!0,m=O.isGlob=!0,S=!0,s===!0)continue;break}if(T===nb&&(P--,P===0)){F=!1,f=O.isBrace=!0,S=!0;break}}if(s===!0)continue;break}if(T===Ip){if(n.push(l),o.push(O),O={value:"",depth:0,isGlob:!1},S===!0)continue;if(B===po&&l===c+1){c+=2;continue}h=l+1;continue}if(r.noext!==!0&&(T===sb||T===tb||T===fo||T===Tp||T===mo)===!0&&E()===Do){if(m=O.isGlob=!0,g=O.isExtglob=!0,S=!0,T===mo&&l===c&&(R=!0),s===!0){for(;H()!==!0&&(T=W());){if(T===sr){x=O.backslashes=!0,T=W();continue}if(T===Pp){m=O.isGlob=!0,S=!0;break}}continue}break}if(T===fo){if(B===fo&&(C=O.isGlobstar=!0),m=O.isGlob=!0,S=!0,s===!0)continue;break}if(T===Tp){if(m=O.isGlob=!0,S=!0,s===!0)continue;break}if(T===ib){for(;H()!==!0&&(le=W());){if(le===sr){x=O.backslashes=!0,W();continue}if(le===ob){d=O.isBracket=!0,m=O.isGlob=!0,S=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&T===mo&&l===c){_=O.negated=!0,c++;continue}if(r.noparen!==!0&&T===Do){if(m=O.isGlob=!0,s===!0){for(;H()!==!0&&(T=W());){if(T===Do){x=O.backslashes=!0,T=W();continue}if(T===Pp){S=!0;break}}continue}break}if(m===!0){if(S=!0,s===!0)continue;break}}r.noext===!0&&(g=!1,m=!1);let U=u,Ue="",D="";c>0&&(Ue=u.slice(0,c),u=u.slice(c),h-=c),U&&m===!0&&h>0?(U=u.slice(0,h),D=u.slice(h)):m===!0?(U="",D=u):U=u,U&&U!==""&&U!=="/"&&U!==u&&$p(U.charCodeAt(U.length-1))&&(U=U.slice(0,-1)),r.unescape===!0&&(D&&(D=Rp.removeBackslashes(D)),U&&x===!0&&(U=Rp.removeBackslashes(U)));let y={prefix:Ue,input:t,start:c,base:U,glob:D,isBrace:f,isBracket:d,isGlob:m,isExtglob:g,isGlobstar:C,negated:_,negatedExtglob:R};if(r.tokens===!0&&(y.maxDepth=0,$p(T)||o.push(O),y.tokens=o),r.parts===!0||r.tokens===!0){let le;for(let j=0;j<n.length;j++){let Ie=le?le+1:c,ke=n[j],ge=t.slice(Ie,ke);r.tokens&&(j===0&&c!==0?(o[j].isPrefix=!0,o[j].value=Ue):o[j].value=ge,Bp(o[j]),y.maxDepth+=o[j].depth),(j!==0||ge!=="")&&a.push(ge),le=ke}if(le&&le+1<t.length){let j=t.slice(le+1);a.push(j),r.tokens&&(o[o.length-1].value=j,Bp(o[o.length-1]),y.maxDepth+=o[o.length-1].depth)}y.slashes=n,y.parts=a}return y};kp.exports=ab});var jp=p((VO,qp)=>{"use strict";var ui=rr(),ye=ir(),{MAX_LENGTH:li,POSIX_REGEX_SOURCE:ub,REGEX_NON_SPECIAL_CHARS:lb,REGEX_SPECIAL_CHARS_BACKREF:cb,REPLACEMENTS:Np}=ui,hb=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(s=>ye.escapeRegex(s)).join("..")}return r},St=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,yo=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Np[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(li,r.maxLength):li,s=t.length;if(s>i)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${i}`);let n={type:"bos",value:"",output:r.prepend||""},o=[n],a=r.capture?"":"?:",u=ye.isWindows(e),l=ui.globChars(u),c=ui.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:g,NO_DOT:C,NO_DOT_SLASH:F,NO_DOTS_SLASH:x,QMARK:_,QMARK_NO_DOT:R,STAR:S,START_ANCHOR:P}=l,B=w=>`(${a}(?:(?!${P}${w.dot?g:h}).)*?)`,T=r.dot?"":C,O=r.dot?_:R,H=r.bash===!0?B(r):S;r.capture&&(H=`(${H})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let E={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=ye.removePrefix(t,E),s=t.length;let W=[],U=[],Ue=[],D=n,y,le=()=>E.index===s-1,j=E.peek=(w=1)=>t[E.index+w],Ie=E.advance=()=>t[++E.index]||"",ke=()=>t.slice(E.index+1),ge=(w="",z=0)=>{E.consumed+=w,E.index+=z},dr=w=>{E.output+=w.output!=null?w.output:w.value,ge(w.value)},vD=()=>{let w=1;for(;j()==="!"&&(j(2)!=="("||j(3)==="?");)Ie(),E.start++,w++;return w%2===0?!1:(E.negated=!0,E.start++,!0)},mr=w=>{E[w]++,Ue.push(w)},nt=w=>{E[w]--,Ue.pop()},L=w=>{if(D.type==="globstar"){let z=E.braces>0&&(w.type==="comma"||w.type==="brace"),b=w.extglob===!0||W.length&&(w.type==="pipe"||w.type==="paren");w.type!=="slash"&&w.type!=="paren"&&!z&&!b&&(E.output=E.output.slice(0,-D.output.length),D.type="star",D.value="*",D.output=H,E.output+=D.output)}if(W.length&&w.type!=="paren"&&(W[W.length-1].inner+=w.value),(w.value||w.output)&&dr(w),D&&D.type==="text"&&w.type==="text"){D.value+=w.value,D.output=(D.output||"")+w.value;return}w.prev=D,o.push(w),D=w},gr=(w,z)=>{let b={...c[z],conditions:1,inner:""};b.prev=D,b.parens=E.parens,b.output=E.output;let k=(r.capture?"(":"")+b.open;mr("parens"),L({type:w,value:z,output:E.output?"":m}),L({type:"paren",extglob:!0,value:Ie(),output:k}),W.push(b)},xD=w=>{let z=w.close+(r.capture?")":""),b;if(w.type==="negate"){let k=H;if(w.inner&&w.inner.length>1&&w.inner.includes("/")&&(k=B(r)),(k!==H||le()||/^\)+$/.test(ke()))&&(z=w.close=`)$))${k}`),w.inner.includes("*")&&(b=ke())&&/^\.[^\\/.]+$/.test(b)){let Q=yo(b,{...e,fastpaths:!1}).output;z=w.close=`)${Q})${k})`}w.prev.type==="bos"&&(E.negatedExtglob=!0)}L({type:"paren",extglob:!0,value:y,output:z}),nt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let w=!1,z=t.replace(cb,(b,k,Q,ce,re,Wi)=>ce==="\\"?(w=!0,b):ce==="?"?k?k+ce+(re?_.repeat(re.length):""):Wi===0?O+(re?_.repeat(re.length):""):_.repeat(Q.length):ce==="."?h.repeat(Q.length):ce==="*"?k?k+ce+(re?H:""):H:k?b:`\\${b}`);return w===!0&&(r.unescape===!0?z=z.replace(/\\/g,""):z=z.replace(/\\+/g,b=>b.length%2===0?"\\\\":b?"\\":"")),z===t&&r.contains===!0?(E.output=t,E):(E.output=ye.wrapOutput(z,E,e),E)}for(;!le();){if(y=Ie(),y==="\0")continue;if(y==="\\"){let b=j();if(b==="/"&&r.bash!==!0||b==="."||b===";")continue;if(!b){y+="\\",L({type:"text",value:y});continue}let k=/^\\+/.exec(ke()),Q=0;if(k&&k[0].length>2&&(Q=k[0].length,E.index+=Q,Q%2!==0&&(y+="\\")),r.unescape===!0?y=Ie():y+=Ie(),E.brackets===0){L({type:"text",value:y});continue}}if(E.brackets>0&&(y!=="]"||D.value==="["||D.value==="[^")){if(r.posix!==!1&&y===":"){let b=D.value.slice(1);if(b.includes("[")&&(D.posix=!0,b.includes(":"))){let k=D.value.lastIndexOf("["),Q=D.value.slice(0,k),ce=D.value.slice(k+2),re=ub[ce];if(re){D.value=Q+re,E.backtrack=!0,Ie(),!n.output&&o.indexOf(D)===1&&(n.output=m);continue}}}(y==="["&&j()!==":"||y==="-"&&j()==="]")&&(y=`\\${y}`),y==="]"&&(D.value==="["||D.value==="[^")&&(y=`\\${y}`),r.posix===!0&&y==="!"&&D.value==="["&&(y="^"),D.value+=y,dr({value:y});continue}if(E.quotes===1&&y!=='"'){y=ye.escapeRegex(y),D.value+=y,dr({value:y});continue}if(y==='"'){E.quotes=E.quotes===1?0:1,r.keepQuotes===!0&&L({type:"text",value:y});continue}if(y==="("){mr("parens"),L({type:"paren",value:y});continue}if(y===")"){if(E.parens===0&&r.strictBrackets===!0)throw new SyntaxError(St("opening","("));let b=W[W.length-1];if(b&&E.parens===b.parens+1){xD(W.pop());continue}L({type:"paren",value:y,output:E.parens?")":"\\)"}),nt("parens");continue}if(y==="["){if(r.nobracket===!0||!ke().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(St("closing","]"));y=`\\${y}`}else mr("brackets");L({type:"bracket",value:y});continue}if(y==="]"){if(r.nobracket===!0||D&&D.type==="bracket"&&D.value.length===1){L({type:"text",value:y,output:`\\${y}`});continue}if(E.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(St("opening","["));L({type:"text",value:y,output:`\\${y}`});continue}nt("brackets");let b=D.value.slice(1);if(D.posix!==!0&&b[0]==="^"&&!b.includes("/")&&(y=`/${y}`),D.value+=y,dr({value:y}),r.literalBrackets===!1||ye.hasRegexChars(b))continue;let k=ye.escapeRegex(D.value);if(E.output=E.output.slice(0,-D.value.length),r.literalBrackets===!0){E.output+=k,D.value=k;continue}D.value=`(${a}${k}|${D.value})`,E.output+=D.value;continue}if(y==="{"&&r.nobrace!==!0){mr("braces");let b={type:"brace",value:y,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};U.push(b),L(b);continue}if(y==="}"){let b=U[U.length-1];if(r.nobrace===!0||!b){L({type:"text",value:y,output:y});continue}let k=")";if(b.dots===!0){let Q=o.slice(),ce=[];for(let re=Q.length-1;re>=0&&(o.pop(),Q[re].type!=="brace");re--)Q[re].type!=="dots"&&ce.unshift(Q[re].value);k=hb(ce,r),E.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let Q=E.output.slice(0,b.outputIndex),ce=E.tokens.slice(b.tokensIndex);b.value=b.output="\\{",y=k="\\}",E.output=Q;for(let re of ce)E.output+=re.output||re.value}L({type:"brace",value:y,output:k}),nt("braces"),U.pop();continue}if(y==="|"){W.length>0&&W[W.length-1].conditions++,L({type:"text",value:y});continue}if(y===","){let b=y,k=U[U.length-1];k&&Ue[Ue.length-1]==="braces"&&(k.comma=!0,b="|"),L({type:"comma",value:y,output:b});continue}if(y==="/"){if(D.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",o.pop(),D=n;continue}L({type:"slash",value:y,output:d});continue}if(y==="."){if(E.braces>0&&D.type==="dot"){D.value==="."&&(D.output=h);let b=U[U.length-1];D.type="dots",D.output+=y,D.value+=y,b.dots=!0;continue}if(E.braces+E.parens===0&&D.type!=="bos"&&D.type!=="slash"){L({type:"text",value:y,output:h});continue}L({type:"dot",value:y,output:h});continue}if(y==="?"){if(!(D&&D.value==="(")&&r.noextglob!==!0&&j()==="("&&j(2)!=="?"){gr("qmark",y);continue}if(D&&D.type==="paren"){let k=j(),Q=y;if(k==="<"&&!ye.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(D.value==="("&&!/[!=<:]/.test(k)||k==="<"&&!/<([!=]|\w+>)/.test(ke()))&&(Q=`\\${y}`),L({type:"text",value:y,output:Q});continue}if(r.dot!==!0&&(D.type==="slash"||D.type==="bos")){L({type:"qmark",value:y,output:R});continue}L({type:"qmark",value:y,output:_});continue}if(y==="!"){if(r.noextglob!==!0&&j()==="("&&(j(2)!=="?"||!/[!=<:]/.test(j(3)))){gr("negate",y);continue}if(r.nonegate!==!0&&E.index===0){vD();continue}}if(y==="+"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){gr("plus",y);continue}if(D&&D.value==="("||r.regex===!1){L({type:"plus",value:y,output:f});continue}if(D&&(D.type==="bracket"||D.type==="paren"||D.type==="brace")||E.parens>0){L({type:"plus",value:y});continue}L({type:"plus",value:f});continue}if(y==="@"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){L({type:"at",extglob:!0,value:y,output:""});continue}L({type:"text",value:y});continue}if(y!=="*"){(y==="$"||y==="^")&&(y=`\\${y}`);let b=lb.exec(ke());b&&(y+=b[0],E.index+=b[0].length),L({type:"text",value:y});continue}if(D&&(D.type==="globstar"||D.star===!0)){D.type="star",D.star=!0,D.value+=y,D.output=H,E.backtrack=!0,E.globstar=!0,ge(y);continue}let w=ke();if(r.noextglob!==!0&&/^\([^?]/.test(w)){gr("star",y);continue}if(D.type==="star"){if(r.noglobstar===!0){ge(y);continue}let b=D.prev,k=b.prev,Q=b.type==="slash"||b.type==="bos",ce=k&&(k.type==="star"||k.type==="globstar");if(r.bash===!0&&(!Q||w[0]&&w[0]!=="/")){L({type:"star",value:y,output:""});continue}let re=E.braces>0&&(b.type==="comma"||b.type==="brace"),Wi=W.length&&(b.type==="pipe"||b.type==="paren");if(!Q&&b.type!=="paren"&&!re&&!Wi){L({type:"star",value:y,output:""});continue}for(;w.slice(0,3)==="/**";){let Dr=t[E.index+4];if(Dr&&Dr!=="/")break;w=w.slice(3),ge("/**",3)}if(b.type==="bos"&&le()){D.type="globstar",D.value+=y,D.output=B(r),E.output=D.output,E.globstar=!0,ge(y);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!ce&&le()){E.output=E.output.slice(0,-(b.output+D.output).length),b.output=`(?:${b.output}`,D.type="globstar",D.output=B(r)+(r.strictSlashes?")":"|$)"),D.value+=y,E.globstar=!0,E.output+=b.output+D.output,ge(y);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&w[0]==="/"){let Dr=w[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(b.output+D.output).length),b.output=`(?:${b.output}`,D.type="globstar",D.output=`${B(r)}${d}|${d}${Dr})`,D.value+=y,E.output+=b.output+D.output,E.globstar=!0,ge(y+Ie()),L({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&w[0]==="/"){D.type="globstar",D.value+=y,D.output=`(?:^|${d}|${B(r)}${d})`,E.output=D.output,E.globstar=!0,ge(y+Ie()),L({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-D.output.length),D.type="globstar",D.output=B(r),D.value+=y,E.output+=D.output,E.globstar=!0,ge(y);continue}let z={type:"star",value:y,output:H};if(r.bash===!0){z.output=".*?",(D.type==="bos"||D.type==="slash")&&(z.output=T+z.output),L(z);continue}if(D&&(D.type==="bracket"||D.type==="paren")&&r.regex===!0){z.output=y,L(z);continue}(E.index===E.start||D.type==="slash"||D.type==="dot")&&(D.type==="dot"?(E.output+=F,D.output+=F):r.dot===!0?(E.output+=x,D.output+=x):(E.output+=T,D.output+=T),j()!=="*"&&(E.output+=m,D.output+=m)),L(z)}for(;E.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(St("closing","]"));E.output=ye.escapeLast(E.output,"["),nt("brackets")}for(;E.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(St("closing",")"));E.output=ye.escapeLast(E.output,"("),nt("parens")}for(;E.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(St("closing","}"));E.output=ye.escapeLast(E.output,"{"),nt("braces")}if(r.strictSlashes!==!0&&(D.type==="star"||D.type==="bracket")&&L({type:"maybe_slash",value:"",output:`${d}?`}),E.backtrack===!0){E.output="";for(let w of E.tokens)E.output+=w.output!=null?w.output:w.value,w.suffix&&(E.output+=w.suffix)}return E};yo.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(li,r.maxLength):li,s=t.length;if(s>i)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${i}`);t=Np[t]||t;let n=ye.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:m}=ui.globChars(n),g=r.dot?h:c,C=r.dot?f:c,F=r.capture?"":"?:",x={negated:!1,prefix:""},_=r.bash===!0?".*?":d;r.capture&&(_=`(${_})`);let R=T=>T.noglobstar===!0?_:`(${F}(?:(?!${m}${T.dot?l:o}).)*?)`,S=T=>{switch(T){case"*":return`${g}${u}${_}`;case".*":return`${o}${u}${_}`;case"*.*":return`${g}${_}${o}${u}${_}`;case"*/*":return`${g}${_}${a}${u}${C}${_}`;case"**":return g+R(r);case"**/*":return`(?:${g}${R(r)}${a})?${C}${u}${_}`;case"**/*.*":return`(?:${g}${R(r)}${a})?${C}${_}${o}${u}${_}`;case"**/.*":return`(?:${g}${R(r)}${a})?${o}${u}${_}`;default:{let O=/^(.*?)\.(\w+)$/.exec(T);if(!O)return;let H=S(O[1]);return H?H+o+O[2]:void 0}}},P=ye.removePrefix(t,x),B=S(P);return B&&r.strictSlashes!==!0&&(B+=`${a}?`),B};qp.exports=yo});var Hp=p((WO,Mp)=>{"use strict";var fb=require("path"),pb=Lp(),Eo=jp(),_o=ir(),db=rr(),mb=t=>t&&typeof t=="object"&&!Array.isArray(t),ee=(t,e,r=!1)=>{if(Array.isArray(t)){let c=t.map(f=>ee(f,e,r));return f=>{for(let d of c){let m=d(f);if(m)return m}return!1}}let i=mb(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let s=e||{},n=_o.isWindows(e),o=i?ee.compileRe(t,e):ee.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(s.ignore){let c={...e,ignore:null,onMatch:null,onResult:null};u=ee(s.ignore,c,r)}let l=(c,h=!1)=>{let{isMatch:f,match:d,output:m}=ee.test(c,o,e,{glob:t,posix:n}),g={glob:t,state:a,regex:o,posix:n,input:c,output:m,match:d,isMatch:f};return typeof s.onResult=="function"&&s.onResult(g),f===!1?(g.isMatch=!1,h?g:!1):u(c)?(typeof s.onIgnore=="function"&&s.onIgnore(g),g.isMatch=!1,h?g:!1):(typeof s.onMatch=="function"&&s.onMatch(g),h?g:!0)};return r&&(l.state=a),l};ee.test=(t,e,r,{glob:i,posix:s}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let n=r||{},o=n.format||(s?_o.toPosixSlashes:null),a=t===i,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===i),(a===!1||n.capture===!0)&&(n.matchBase===!0||n.basename===!0?a=ee.matchBase(t,e,r,s):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};ee.matchBase=(t,e,r,i=_o.isWindows(r))=>(e instanceof RegExp?e:ee.makeRe(e,r)).test(fb.basename(t));ee.isMatch=(t,e,r)=>ee(e,r)(t);ee.parse=(t,e)=>Array.isArray(t)?t.map(r=>ee.parse(r,e)):Eo(t,{...e,fastpaths:!1});ee.scan=(t,e)=>pb(t,e);ee.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let s=e||{},n=s.contains?"":"^",o=s.contains?"":"$",a=`${n}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=ee.toRegex(a,e);return i===!0&&(u.state=t),u};ee.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(s.output=Eo.fastpaths(t,e)),s.output||(s=Eo(t,e)),ee.compileRe(s,e,r,i)};ee.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};ee.constants=db;Mp.exports=ee});var Vp=p((UO,Gp)=>{"use strict";Gp.exports=Hp()});var Xp=p((zO,Yp)=>{"use strict";var Up=require("util"),zp=wp(),Ne=Vp(),Fo=ir(),Wp=t=>t===""||t==="./",Kp=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},K=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,s=new Set,n=new Set,o=0,a=c=>{n.add(c.output),r&&r.onResult&&r.onResult(c)};for(let c=0;c<e.length;c++){let h=Ne(String(e[c]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let d of t){let m=h(d,!0);(f?!m.isMatch:m.isMatch)&&(f?i.add(m.output):(i.delete(m.output),s.add(m.output)))}}let l=(o===e.length?[...n]:[...s]).filter(c=>!i.has(c));if(r&&l.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(c=>c.replace(/\\/g,"")):e}return l};K.match=K;K.matcher=(t,e)=>Ne(t,e);K.isMatch=(t,e,r)=>Ne(e,r)(t);K.any=K.isMatch;K.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,s=[],n=a=>{r.onResult&&r.onResult(a),s.push(a.output)},o=new Set(K(t,e,{...r,onResult:n}));for(let a of s)o.has(a)||i.add(a);return[...i]};K.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Up.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>K.contains(t,i,r));if(typeof e=="string"){if(Wp(t)||Wp(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return K.isMatch(t,e,{...r,contains:!0})};K.matchKeys=(t,e,r)=>{if(!Fo.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=K(Object.keys(t),e,r),s={};for(let n of i)s[n]=t[n];return s};K.some=(t,e,r)=>{let i=[].concat(t);for(let s of[].concat(e)){let n=Ne(String(s),r);if(i.some(o=>n(o)))return!0}return!1};K.every=(t,e,r)=>{let i=[].concat(t);for(let s of[].concat(e)){let n=Ne(String(s),r);if(!i.every(o=>n(o)))return!1}return!0};K.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Up.inspect(t)}"`);return[].concat(e).every(i=>Ne(i,r)(t))};K.capture=(t,e,r)=>{let i=Fo.isWindows(r),n=Ne.makeRe(String(t),{...r,capture:!0}).exec(i?Fo.toPosixSlashes(e):e);if(n)return n.slice(1).map(o=>o===void 0?"":o)};K.makeRe=(...t)=>Ne.makeRe(...t);K.scan=(...t)=>Ne.scan(...t);K.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let s of zp(String(i),e))r.push(Ne.parse(s,e));return r};K.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!Kp(t)?[t]:zp(t,e)};K.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return K.braces(t,{...e,expand:!0})};K.hasBraces=Kp;Yp.exports=K});var od=p($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.isAbsolute=$.partitionAbsoluteAndRelative=$.removeDuplicateSlashes=$.matchAny=$.convertPatternsToRe=$.makeRe=$.getPatternParts=$.expandBraceExpansion=$.expandPatternsWithBraceExpansion=$.isAffectDepthOfReadingPattern=$.endsWithSlashGlobStar=$.hasGlobStar=$.getBaseDirectory=$.isPatternRelatedToParentDirectory=$.getPatternsOutsideCurrentDirectory=$.getPatternsInsideCurrentDirectory=$.getPositivePatterns=$.getNegativePatterns=$.isPositivePattern=$.isNegativePattern=$.convertToNegativePattern=$.convertToPositivePattern=$.isDynamicPattern=$.isStaticPattern=void 0;var Qp=require("path"),gb=Hf(),bo=Xp(),Zp="**",Db="\\",yb=/[*?]|^!/,Eb=/\[[^[]*]/,_b=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Fb=/[!*+?@]\([^(]*\)/,bb=/,|\.\./,Cb=/(?!^)\/{2,}/g;function Jp(t,e={}){return!ed(t,e)}$.isStaticPattern=Jp;function ed(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Db)||yb.test(t)||Eb.test(t)||_b.test(t)||e.extglob!==!1&&Fb.test(t)||e.braceExpansion!==!1&&wb(t))}$.isDynamicPattern=ed;function wb(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return bb.test(i)}function Ab(t){return ci(t)?t.slice(1):t}$.convertToPositivePattern=Ab;function vb(t){return"!"+t}$.convertToNegativePattern=vb;function ci(t){return t.startsWith("!")&&t[1]!=="("}$.isNegativePattern=ci;function td(t){return!ci(t)}$.isPositivePattern=td;function xb(t){return t.filter(ci)}$.getNegativePatterns=xb;function Sb(t){return t.filter(td)}$.getPositivePatterns=Sb;function Ob(t){return t.filter(e=>!Co(e))}$.getPatternsInsideCurrentDirectory=Ob;function Rb(t){return t.filter(Co)}$.getPatternsOutsideCurrentDirectory=Rb;function Co(t){return t.startsWith("..")||t.startsWith("./..")}$.isPatternRelatedToParentDirectory=Co;function Tb(t){return gb(t,{flipBackslashes:!1})}$.getBaseDirectory=Tb;function Pb(t){return t.includes(Zp)}$.hasGlobStar=Pb;function rd(t){return t.endsWith("/"+Zp)}$.endsWithSlashGlobStar=rd;function $b(t){let e=Qp.basename(t);return rd(t)||Jp(e)}$.isAffectDepthOfReadingPattern=$b;function Bb(t){return t.reduce((e,r)=>e.concat(id(r)),[])}$.expandPatternsWithBraceExpansion=Bb;function id(t){let e=bo.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((r,i)=>r.length-i.length),e.filter(r=>r!=="")}$.expandBraceExpansion=id;function Ib(t,e){let{parts:r}=bo.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}$.getPatternParts=Ib;function sd(t,e){return bo.makeRe(t,e)}$.makeRe=sd;function kb(t,e){return t.map(r=>sd(r,e))}$.convertPatternsToRe=kb;function Lb(t,e){return e.some(r=>r.test(t))}$.matchAny=Lb;function Nb(t){return t.replace(Cb,"/")}$.removeDuplicateSlashes=Nb;function qb(t){let e=[],r=[];for(let i of t)nd(i)?e.push(i):r.push(i);return[e,r]}$.partitionAbsoluteAndRelative=qb;function nd(t){return Qp.isAbsolute(t)}$.isAbsolute=nd});var cd=p((YO,ld)=>{"use strict";var jb=require("stream"),ad=jb.PassThrough,Mb=Array.prototype.slice;ld.exports=Hb;function Hb(){let t=[],e=Mb.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let s=i.end!==!1,n=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=ad(i);function a(){for(let c=0,h=arguments.length;c<h;c++)t.push(ud(arguments[c],i));return u(),this}function u(){if(r)return;r=!0;let c=t.shift();if(!c){process.nextTick(l);return}Array.isArray(c)||(c=[c]);let h=c.length+1;function f(){--h>0||(r=!1,u())}function d(m){function g(){m.removeListener("merge2UnpipeEnd",g),m.removeListener("end",g),n&&m.removeListener("error",C),f()}function C(F){o.emit("error",F)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",g),m.on("end",g),n&&m.on("error",C),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<c.length;m++)d(c[m]);f()}function l(){r=!1,o.emit("queueDrain"),s&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function ud(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=ud(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(ad(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var fd=p(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.merge=void 0;var Gb=cd();function Vb(t){let e=Gb(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>hd(t)),e.once("end",()=>hd(t)),e}hi.merge=Vb;function hd(t){t.forEach(e=>e.emit("close"))}});var pd=p(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.isEmpty=Ot.isString=void 0;function Wb(t){return typeof t=="string"}Ot.isString=Wb;function Ub(t){return t===""}Ot.isEmpty=Ub});var We=p(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.string=oe.stream=oe.pattern=oe.path=oe.fs=oe.errno=oe.array=void 0;var zb=Of();oe.array=zb;var Kb=Rf();oe.errno=Kb;var Yb=Tf();oe.fs=Yb;var Xb=If();oe.path=Xb;var Qb=od();oe.pattern=Qb;var Zb=fd();oe.stream=Zb;var Jb=pd();oe.string=Jb});var Dd=p(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.convertPatternGroupToTask=ae.convertPatternGroupsToTasks=ae.groupPatternsByBaseDirectory=ae.getNegativePatternsAsPositive=ae.getPositivePatterns=ae.convertPatternsToTasks=ae.generate=void 0;var Pe=We();function eC(t,e){let r=dd(t,e),i=dd(e.ignore,e),s=md(r),n=gd(r,i),o=s.filter(c=>Pe.pattern.isStaticPattern(c,e)),a=s.filter(c=>Pe.pattern.isDynamicPattern(c,e)),u=wo(o,n,!1),l=wo(a,n,!0);return u.concat(l)}ae.generate=eC;function dd(t,e){let r=t;return e.braceExpansion&&(r=Pe.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(i=>i.includes("/")?i:`**/${i}`)),r.map(i=>Pe.pattern.removeDuplicateSlashes(i))}function wo(t,e,r){let i=[],s=Pe.pattern.getPatternsOutsideCurrentDirectory(t),n=Pe.pattern.getPatternsInsideCurrentDirectory(t),o=Ao(s),a=Ao(n);return i.push(...vo(o,e,r)),"."in a?i.push(xo(".",n,e,r)):i.push(...vo(a,e,r)),i}ae.convertPatternsToTasks=wo;function md(t){return Pe.pattern.getPositivePatterns(t)}ae.getPositivePatterns=md;function gd(t,e){return Pe.pattern.getNegativePatterns(t).concat(e).map(Pe.pattern.convertToPositivePattern)}ae.getNegativePatternsAsPositive=gd;function Ao(t){let e={};return t.reduce((r,i)=>{let s=Pe.pattern.getBaseDirectory(i);return s in r?r[s].push(i):r[s]=[i],r},e)}ae.groupPatternsByBaseDirectory=Ao;function vo(t,e,r){return Object.keys(t).map(i=>xo(i,t[i],e,r))}ae.convertPatternGroupsToTasks=vo;function xo(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Pe.pattern.convertToNegativePattern))}}ae.convertPatternGroupToTask=xo});var Ed=p(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.read=void 0;function tC(t,e,r){e.fs.lstat(t,(i,s)=>{if(i!==null){yd(r,i);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){So(r,s);return}e.fs.stat(t,(n,o)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){yd(r,n);return}So(r,s);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),So(r,o)})})}fi.read=tC;function yd(t,e){t(e)}function So(t,e){t(null,e)}});var _d=p(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.read=void 0;function rC(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}pi.read=rC});var Fd=p(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.createFileSystemAdapter=Qe.FILE_SYSTEM_ADAPTER=void 0;var di=require("fs");Qe.FILE_SYSTEM_ADAPTER={lstat:di.lstat,stat:di.stat,lstatSync:di.lstatSync,statSync:di.statSync};function iC(t){return t===void 0?Qe.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Qe.FILE_SYSTEM_ADAPTER),t)}Qe.createFileSystemAdapter=iC});var bd=p(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});var sC=Fd(),Oo=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=sC.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};Ro.default=Oo});var pt=p(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.statSync=Ze.stat=Ze.Settings=void 0;var Cd=Ed(),nC=_d(),To=bd();Ze.Settings=To.default;function oC(t,e,r){if(typeof e=="function"){Cd.read(t,Po(),e);return}Cd.read(t,Po(e),r)}Ze.stat=oC;function aC(t,e){let r=Po(e);return nC.read(t,r)}Ze.statSync=aC;function Po(t={}){return t instanceof To.default?t:new To.default(t)}});var vd=p((nR,Ad)=>{var wd;Ad.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(wd||(wd=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Sd=p((oR,xd)=>{xd.exports=lC;var uC=vd();function lC(t,e){let r,i,s,n=!0;Array.isArray(t)?(r=[],i=t.length):(s=Object.keys(t),r={},i=s.length);function o(u){function l(){e&&e(u,r),e=null}n?uC(l):l()}function a(u,l,c){r[u]=c,(--i===0||l)&&o(l)}i?s?s.forEach(function(u){t[u](function(l,c){a(u,l,c)})}):t.forEach(function(u,l){u(function(c,h){a(l,c,h)})}):o(null),n=!1}});var $o=p(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var mi=process.versions.node.split(".");if(mi[0]===void 0||mi[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Od=Number.parseInt(mi[0],10),cC=Number.parseInt(mi[1],10),Rd=10,hC=10,fC=Od>Rd,pC=Od===Rd&&cC>=hC;gi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=fC||pC});var Td=p(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.createDirentFromStats=void 0;var Bo=class{constructor(e,r){this.name=e,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 dC(t,e){return new Bo(t,e)}Di.createDirentFromStats=dC});var Io=p(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.fs=void 0;var mC=Td();yi.fs=mC});var ko=p(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.joinPathSegments=void 0;function gC(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ei.joinPathSegments=gC});var Ld=p(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.readdir=Je.readdirWithFileTypes=Je.read=void 0;var DC=pt(),Pd=Sd(),yC=$o(),$d=Io(),Bd=ko();function EC(t,e,r){if(!e.stats&&yC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Id(t,e,r);return}kd(t,e,r)}Je.read=EC;function Id(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,s)=>{if(i!==null){_i(r,i);return}let n=s.map(a=>({dirent:a,name:a.name,path:Bd.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Lo(r,n);return}let o=n.map(a=>_C(a,e));Pd(o,(a,u)=>{if(a!==null){_i(r,a);return}Lo(r,u)})})}Je.readdirWithFileTypes=Id;function _C(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,s)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=$d.fs.createDirentFromStats(t.name,s),r(null,t)})}}function kd(t,e,r){e.fs.readdir(t,(i,s)=>{if(i!==null){_i(r,i);return}let n=s.map(o=>{let a=Bd.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{DC.stat(a,e.fsStatSettings,(l,c)=>{if(l!==null){u(l);return}let h={name:o,path:a,dirent:$d.fs.createDirentFromStats(o,c)};e.stats&&(h.stats=c),u(null,h)})}});Pd(n,(o,a)=>{if(o!==null){_i(r,o);return}Lo(r,a)})})}Je.readdir=kd;function _i(t,e){t(e)}function Lo(t,e){t(null,e)}});var Hd=p(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.readdir=et.readdirWithFileTypes=et.read=void 0;var FC=pt(),bC=$o(),Nd=Io(),qd=ko();function CC(t,e){return!e.stats&&bC.IS_SUPPORT_READDIR_WITH_FILE_TYPES?jd(t,e):Md(t,e)}et.read=CC;function jd(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let s={dirent:i,name:i.name,path:qd.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let n=e.fs.statSync(s.path);s.dirent=Nd.fs.createDirentFromStats(s.name,n)}catch(n){if(e.throwErrorOnBrokenSymbolicLink)throw n}return s})}et.readdirWithFileTypes=jd;function Md(t,e){return e.fs.readdirSync(t).map(i=>{let s=qd.joinPathSegments(t,i,e.pathSegmentSeparator),n=FC.statSync(s,e.fsStatSettings),o={name:i,path:s,dirent:Nd.fs.createDirentFromStats(i,n)};return e.stats&&(o.stats=n),o})}et.readdir=Md});var Gd=p(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.createFileSystemAdapter=tt.FILE_SYSTEM_ADAPTER=void 0;var Rt=require("fs");tt.FILE_SYSTEM_ADAPTER={lstat:Rt.lstat,stat:Rt.stat,lstatSync:Rt.lstatSync,statSync:Rt.statSync,readdir:Rt.readdir,readdirSync:Rt.readdirSync};function wC(t){return t===void 0?tt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},tt.FILE_SYSTEM_ADAPTER),t)}tt.createFileSystemAdapter=wC});var Vd=p(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});var AC=require("path"),vC=pt(),xC=Gd(),No=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=xC.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,AC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new vC.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};qo.default=No});var Fi=p(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.Settings=rt.scandirSync=rt.scandir=void 0;var Wd=Ld(),SC=Hd(),jo=Vd();rt.Settings=jo.default;function OC(t,e,r){if(typeof e=="function"){Wd.read(t,Mo(),e);return}Wd.read(t,Mo(e),r)}rt.scandir=OC;function RC(t,e){let r=Mo(e);return SC.read(t,r)}rt.scandirSync=RC;function Mo(t={}){return t instanceof jo.default?t:new jo.default(t)}});var zd=p((gR,Ud)=>{"use strict";function TC(t){var e=new t,r=e;function i(){var n=e;return n.next?e=n.next:(e=new t,r=e),n.next=null,n}function s(n){r.next=n,r=n}return{get:i,release:s}}Ud.exports=TC});var Yd=p((DR,Ho)=>{"use strict";var PC=zd();function Kd(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var i=PC($C),s=null,n=null,o=0,a=null,u={push:g,drain:we,saturated:we,pause:c,paused:!1,get concurrency(){return r},set concurrency(S){if(!(S>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=S,!u.paused)for(;s&&o<r;)o++,F()},running:l,resume:d,idle:m,length:h,getQueue:f,unshift:C,empty:we,kill:x,killAndDrain:_,error:R};return u;function l(){return o}function c(){u.paused=!0}function h(){for(var S=s,P=0;S;)S=S.next,P++;return P}function f(){for(var S=s,P=[];S;)P.push(S.value),S=S.next;return P}function d(){if(u.paused){if(u.paused=!1,s===null){o++,F();return}for(;s&&o<r;)o++,F()}}function m(){return o===0&&u.length()===0}function g(S,P){var B=i.get();B.context=t,B.release=F,B.value=S,B.callback=P||we,B.errorHandler=a,o>=r||u.paused?n?(n.next=B,n=B):(s=B,n=B,u.saturated()):(o++,e.call(t,B.value,B.worked))}function C(S,P){var B=i.get();B.context=t,B.release=F,B.value=S,B.callback=P||we,B.errorHandler=a,o>=r||u.paused?s?(B.next=s,s=B):(s=B,n=B,u.saturated()):(o++,e.call(t,B.value,B.worked))}function F(S){S&&i.release(S);var P=s;P&&o<=r?u.paused?o--:(n===s&&(n=null),s=P.next,P.next=null,e.call(t,P.value,P.worked),n===null&&u.empty()):--o===0&&u.drain()}function x(){s=null,n=null,u.drain=we}function _(){s=null,n=null,u.drain(),u.drain=we}function R(S){a=S}}function we(){}function $C(){this.value=null,this.callback=we,this.next=null,this.release=we,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var s=t.callback,n=t.errorHandler,o=t.value;t.value=null,t.callback=we,t.errorHandler&&n(r,o),s.call(t.context,r,i),t.release(t)}}function BC(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(c,h){e.call(this,c).then(function(f){h(null,f)},h)}var s=Kd(t,i,r),n=s.push,o=s.unshift;return s.push=a,s.unshift=u,s.drained=l,s;function a(c){var h=new Promise(function(f,d){n(c,function(m,g){if(m){d(m);return}f(g)})});return h.catch(we),h}function u(c){var h=new Promise(function(f,d){o(c,function(m,g){if(m){d(m);return}f(g)})});return h.catch(we),h}function l(){if(s.idle())return new Promise(function(f){f()});var c=s.drain,h=new Promise(function(f){s.drain=function(){c(),f()}});return h}}Ho.exports=Kd;Ho.exports.promise=BC});var bi=p(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.joinPathSegments=qe.replacePathSegmentSeparator=qe.isAppliedFilter=qe.isFatalError=void 0;function IC(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}qe.isFatalError=IC;function kC(t,e){return t===null||t(e)}qe.isAppliedFilter=kC;function LC(t,e){return t.split(/[/\\]/).join(e)}qe.replacePathSegmentSeparator=LC;function NC(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}qe.joinPathSegments=NC});var Wo=p(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});var qC=bi(),Go=class{constructor(e,r){this._root=e,this._settings=r,this._root=qC.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Vo.default=Go});var Ko=p(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});var jC=require("events"),MC=Fi(),HC=Yd(),Ci=bi(),GC=Wo(),Uo=class extends GC.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=MC.scandir,this._emitter=new jC.EventEmitter,this._queue=HC(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,s=>{s!==null&&this._handleError(s)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,s)=>{if(i!==null){r(i,void 0);return}for(let n of s)this._handleEntry(n,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Ci.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=Ci.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ci.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Ci.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};zo.default=Uo});var Xd=p(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});var VC=Ko(),Yo=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new VC.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{WC(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{UC(e,this._storage)}),this._reader.read()}};Xo.default=Yo;function WC(t,e){t(e)}function UC(t,e){t(null,e)}});var Qd=p(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});var zC=require("stream"),KC=Ko(),Qo=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new KC.default(this._root,this._settings),this._stream=new zC.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Zo.default=Qo});var Zd=p(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});var YC=Fi(),wi=bi(),XC=Wo(),Jo=class extends XC.default{constructor(){super(...arguments),this._scandir=YC.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let s of i)this._handleEntry(s,r)}catch(i){this._handleError(i)}}_handleError(e){if(wi.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=wi.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),wi.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&wi.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};ea.default=Jo});var Jd=p(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});var QC=Zd(),ta=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new QC.default(this._root,this._settings)}read(){return this._reader.read()}};ra.default=ta});var em=p(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});var ZC=require("path"),JC=Fi(),ia=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),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,ZC.sep),this.fsScandirSettings=new JC.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};sa.default=ia});var vi=p(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.Settings=je.walkStream=je.walkSync=je.walk=void 0;var tm=Xd(),ew=Qd(),tw=Jd(),na=em();je.Settings=na.default;function rw(t,e,r){if(typeof e=="function"){new tm.default(t,Ai()).read(e);return}new tm.default(t,Ai(e)).read(r)}je.walk=rw;function iw(t,e){let r=Ai(e);return new tw.default(t,r).read()}je.walkSync=iw;function sw(t,e){let r=Ai(e);return new ew.default(t,r).read()}je.walkStream=sw;function Ai(t={}){return t instanceof na.default?t:new na.default(t)}});var xi=p(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});var nw=require("path"),ow=pt(),rm=We(),oa=class{constructor(e){this._settings=e,this._fsStatSettings=new ow.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return nw.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:rm.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!rm.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};aa.default=oa});var ca=p(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});var aw=require("stream"),uw=pt(),lw=vi(),cw=xi(),ua=class extends cw.default{constructor(){super(...arguments),this._walkStream=lw.walkStream,this._stat=uw.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),s=new aw.PassThrough({objectMode:!0});s._write=(n,o,a)=>this._getEntry(i[n],e[n],r).then(u=>{u!==null&&r.entryFilter(u)&&s.push(u),n===i.length-1&&s.end(),a()}).catch(a);for(let n=0;n<i.length;n++)s.write(n);return s}_getEntry(e,r,i){return this._getStat(e).then(s=>this._makeEntry(s,r)).catch(s=>{if(i.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(s,n)=>s===null?r(n):i(s))})}};la.default=ua});var im=p(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});var hw=vi(),fw=xi(),pw=ca(),ha=class extends fw.default{constructor(){super(...arguments),this._walkAsync=hw.walk,this._readerStream=new pw.default(this._settings)}dynamic(e,r){return new Promise((i,s)=>{this._walkAsync(e,r,(n,o)=>{n===null?i(o):s(n)})})}async static(e,r){let i=[],s=this._readerStream.static(e,r);return new Promise((n,o)=>{s.once("error",o),s.on("data",a=>i.push(a)),s.once("end",()=>n(i))})}};fa.default=ha});var sm=p(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});var nr=We(),pa=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),i=this._splitSegmentsIntoSections(r);this._storage.push({complete:i.length<=1,pattern:e,segments:r,sections:i})}}_getPatternSegments(e){return nr.pattern.getPatternParts(e,this._micromatchOptions).map(i=>nr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:nr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return nr.array.splitWhen(e,r=>r.dynamic&&nr.pattern.hasGlobStar(r.pattern))}};da.default=pa});var nm=p(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var dw=sm(),ma=class extends dw.default{match(e){let r=e.split("/"),i=r.length,s=this._storage.filter(n=>!n.complete||n.segments.length>i);for(let n of s){let o=n.sections[0];if(!n.complete&&i>o.length||r.every((u,l)=>{let c=n.segments[l];return!!(c.dynamic&&c.patternRe.test(u)||!c.dynamic&&c.pattern===u)}))return!0}return!1}};ga.default=ma});var om=p(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var Si=We(),mw=nm(),Da=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let s=this._getMatcher(r),n=this._getNegativePatternsRe(i);return o=>this._filter(e,o,s,n)}_getMatcher(e){return new mw.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Si.pattern.isAffectDepthOfReadingPattern);return Si.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,s){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let n=Si.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(n,i)?!1:this._isSkippedByNegativePatterns(n,s)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let s=e.split("/").length;return i-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Si.pattern.matchAny(e,r)}};ya.default=Da});var am=p(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var it=We(),Ea=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let[i,s]=it.pattern.partitionAbsoluteAndRelative(r),n={positive:{all:it.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:it.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:it.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o=>this._filter(o,n)}_filter(e,r){let i=it.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let s=this._isMatchToPatternsSet(i,r,e.dirent.isDirectory());return this._settings.unique&&s&&this._createIndexRecord(i),s}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,r,i){return!(!this._isMatchToPatterns(e,r.positive.all,i)||this._isMatchToPatterns(e,r.negative.relative,i)||this._isMatchToAbsoluteNegative(e,r.negative.absolute,i))}_isMatchToAbsoluteNegative(e,r,i){if(r.length===0)return!1;let s=it.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(s,r,i)}_isMatchToPatterns(e,r,i){if(r.length===0)return!1;let s=it.pattern.matchAny(e,r);return!s&&i?it.pattern.matchAny(e+"/",r):s}};_a.default=Ea});var um=p(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var gw=We(),Fa=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return gw.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};ba.default=Fa});var cm=p(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var lm=We(),Ca=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=lm.path.makeAbsolute(this._settings.cwd,r),r=lm.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};wa.default=Ca});var Oi=p(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});var Dw=require("path"),yw=om(),Ew=am(),_w=um(),Fw=cm(),Aa=class{constructor(e){this._settings=e,this.errorFilter=new _w.default(this._settings),this.entryFilter=new Ew.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new yw.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Fw.default(this._settings)}_getRootDirectory(e){return Dw.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};va.default=Aa});var hm=p(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var bw=im(),Cw=Oi(),xa=class extends Cw.default{constructor(){super(...arguments),this._reader=new bw.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(n=>i.transform(n))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Sa.default=xa});var fm=p(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var ww=require("stream"),Aw=ca(),vw=Oi(),Oa=class extends vw.default{constructor(){super(...arguments),this._reader=new Aw.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),s=this.api(r,e,i),n=new ww.Readable({objectMode:!0,read:()=>{}});return s.once("error",o=>n.emit("error",o)).on("data",o=>n.emit("data",i.transform(o))).once("end",()=>n.emit("end")),n.once("close",()=>s.destroy()),n}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Ra.default=Oa});var pm=p(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var xw=pt(),Sw=vi(),Ow=xi(),Ta=class extends Ow.default{constructor(){super(...arguments),this._walkSync=Sw.walkSync,this._statSync=xw.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let s of e){let n=this._getFullEntryPath(s),o=this._getEntry(n,s,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let s=this._getStat(e);return this._makeEntry(s,r)}catch(s){if(i.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Pa.default=Ta});var dm=p(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var Rw=pm(),Tw=Oi(),$a=class extends Tw.default{constructor(){super(...arguments),this._reader=new Rw.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Ba.default=$a});var mm=p(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Tt=require("fs"),Pw=require("os"),$w=Math.max(Pw.cpus().length,1);Pt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Tt.lstat,lstatSync:Tt.lstatSync,stat:Tt.stat,statSync:Tt.statSync,readdir:Tt.readdir,readdirSync:Tt.readdirSync};var Ia=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,$w),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Pt.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Pt.default=Ia});var ym=p((HR,Dm)=>{"use strict";var gm=Dd(),Bw=hm(),Iw=fm(),kw=dm(),ka=mm(),Ae=We();async function La(t,e){$e(t);let r=Na(t,Bw.default,e),i=await Promise.all(r);return Ae.array.flatten(i)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(l,c){$e(l);let h=Na(l,kw.default,c);return Ae.array.flatten(h)}t.sync=e;function r(l,c){$e(l);let h=Na(l,Iw.default,c);return Ae.stream.merge(h)}t.stream=r;function i(l,c){$e(l);let h=[].concat(l),f=new ka.default(c);return gm.generate(h,f)}t.generateTasks=i;function s(l,c){$e(l);let h=new ka.default(c);return Ae.pattern.isDynamicPattern(l,h)}t.isDynamicPattern=s;function n(l){return $e(l),Ae.path.escape(l)}t.escapePath=n;function o(l){return $e(l),Ae.path.convertPathToPattern(l)}t.convertPathToPattern=o;let a;(function(l){function c(f){return $e(f),Ae.path.escapePosixPath(f)}l.escapePath=c;function h(f){return $e(f),Ae.path.convertPosixPathToPattern(f)}l.convertPathToPattern=h})(a=t.posix||(t.posix={}));let u;(function(l){function c(f){return $e(f),Ae.path.escapeWindowsPath(f)}l.escapePath=c;function h(f){return $e(f),Ae.path.convertWindowsPathToPattern(f)}l.convertPathToPattern=h})(u=t.win32||(t.win32={}))})(La||(La={}));function Na(t,e,r){let i=[].concat(t),s=new ka.default(r),n=gm.generate(i,s),o=new e(s);return n.map(o.read,o)}function $e(t){if(![].concat(t).every(i=>Ae.string.isString(i)&&!Ae.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Dm.exports=La});var or=p((UR,xm)=>{var Lw="2.0.0",Nw=Number.MAX_SAFE_INTEGER||9007199254740991,qw=16,jw=250,Mw=["major","premajor","minor","preminor","patch","prepatch","prerelease"];xm.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:qw,MAX_SAFE_BUILD_LENGTH:jw,MAX_SAFE_INTEGER:Nw,RELEASE_TYPES:Mw,SEMVER_SPEC_VERSION:Lw,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ar=p((zR,Sm)=>{var Hw=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Sm.exports=Hw});var Bt=p((Me,Om)=>{var{MAX_SAFE_COMPONENT_LENGTH:qa,MAX_SAFE_BUILD_LENGTH:Gw,MAX_LENGTH:Vw}=or(),Ww=ar();Me=Om.exports={};var Uw=Me.re=[],zw=Me.safeRe=[],A=Me.src=[],Kw=Me.safeSrc=[],v=Me.t={},Yw=0,ja="[a-zA-Z0-9-]",Xw=[["\\s",1],["\\d",Vw],[ja,Gw]],Qw=t=>{for(let[e,r]of Xw)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},I=(t,e,r)=>{let i=Qw(e),s=Yw++;Ww(t,s,e),v[t]=s,A[s]=e,Kw[s]=i,Uw[s]=new RegExp(e,r?"g":void 0),zw[s]=new RegExp(i,r?"g":void 0)};I("NUMERICIDENTIFIER","0|[1-9]\\d*");I("NUMERICIDENTIFIERLOOSE","\\d+");I("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${ja}*`);I("MAINVERSION",`(${A[v.NUMERICIDENTIFIER]})\\.(${A[v.NUMERICIDENTIFIER]})\\.(${A[v.NUMERICIDENTIFIER]})`);I("MAINVERSIONLOOSE",`(${A[v.NUMERICIDENTIFIERLOOSE]})\\.(${A[v.NUMERICIDENTIFIERLOOSE]})\\.(${A[v.NUMERICIDENTIFIERLOOSE]})`);I("PRERELEASEIDENTIFIER",`(?:${A[v.NUMERICIDENTIFIER]}|${A[v.NONNUMERICIDENTIFIER]})`);I("PRERELEASEIDENTIFIERLOOSE",`(?:${A[v.NUMERICIDENTIFIERLOOSE]}|${A[v.NONNUMERICIDENTIFIER]})`);I("PRERELEASE",`(?:-(${A[v.PRERELEASEIDENTIFIER]}(?:\\.${A[v.PRERELEASEIDENTIFIER]})*))`);I("PRERELEASELOOSE",`(?:-?(${A[v.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${A[v.PRERELEASEIDENTIFIERLOOSE]})*))`);I("BUILDIDENTIFIER",`${ja}+`);I("BUILD",`(?:\\+(${A[v.BUILDIDENTIFIER]}(?:\\.${A[v.BUILDIDENTIFIER]})*))`);I("FULLPLAIN",`v?${A[v.MAINVERSION]}${A[v.PRERELEASE]}?${A[v.BUILD]}?`);I("FULL",`^${A[v.FULLPLAIN]}$`);I("LOOSEPLAIN",`[v=\\s]*${A[v.MAINVERSIONLOOSE]}${A[v.PRERELEASELOOSE]}?${A[v.BUILD]}?`);I("LOOSE",`^${A[v.LOOSEPLAIN]}$`);I("GTLT","((?:<|>)?=?)");I("XRANGEIDENTIFIERLOOSE",`${A[v.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);I("XRANGEIDENTIFIER",`${A[v.NUMERICIDENTIFIER]}|x|X|\\*`);I("XRANGEPLAIN",`[v=\\s]*(${A[v.XRANGEIDENTIFIER]})(?:\\.(${A[v.XRANGEIDENTIFIER]})(?:\\.(${A[v.XRANGEIDENTIFIER]})(?:${A[v.PRERELEASE]})?${A[v.BUILD]}?)?)?`);I("XRANGEPLAINLOOSE",`[v=\\s]*(${A[v.XRANGEIDENTIFIERLOOSE]})(?:\\.(${A[v.XRANGEIDENTIFIERLOOSE]})(?:\\.(${A[v.XRANGEIDENTIFIERLOOSE]})(?:${A[v.PRERELEASELOOSE]})?${A[v.BUILD]}?)?)?`);I("XRANGE",`^${A[v.GTLT]}\\s*${A[v.XRANGEPLAIN]}$`);I("XRANGELOOSE",`^${A[v.GTLT]}\\s*${A[v.XRANGEPLAINLOOSE]}$`);I("COERCEPLAIN",`(^|[^\\d])(\\d{1,${qa}})(?:\\.(\\d{1,${qa}}))?(?:\\.(\\d{1,${qa}}))?`);I("COERCE",`${A[v.COERCEPLAIN]}(?:$|[^\\d])`);I("COERCEFULL",A[v.COERCEPLAIN]+`(?:${A[v.PRERELEASE]})?(?:${A[v.BUILD]})?(?:$|[^\\d])`);I("COERCERTL",A[v.COERCE],!0);I("COERCERTLFULL",A[v.COERCEFULL],!0);I("LONETILDE","(?:~>?)");I("TILDETRIM",`(\\s*)${A[v.LONETILDE]}\\s+`,!0);Me.tildeTrimReplace="$1~";I("TILDE",`^${A[v.LONETILDE]}${A[v.XRANGEPLAIN]}$`);I("TILDELOOSE",`^${A[v.LONETILDE]}${A[v.XRANGEPLAINLOOSE]}$`);I("LONECARET","(?:\\^)");I("CARETTRIM",`(\\s*)${A[v.LONECARET]}\\s+`,!0);Me.caretTrimReplace="$1^";I("CARET",`^${A[v.LONECARET]}${A[v.XRANGEPLAIN]}$`);I("CARETLOOSE",`^${A[v.LONECARET]}${A[v.XRANGEPLAINLOOSE]}$`);I("COMPARATORLOOSE",`^${A[v.GTLT]}\\s*(${A[v.LOOSEPLAIN]})$|^$`);I("COMPARATOR",`^${A[v.GTLT]}\\s*(${A[v.FULLPLAIN]})$|^$`);I("COMPARATORTRIM",`(\\s*)${A[v.GTLT]}\\s*(${A[v.LOOSEPLAIN]}|${A[v.XRANGEPLAIN]})`,!0);Me.comparatorTrimReplace="$1$2$3";I("HYPHENRANGE",`^\\s*(${A[v.XRANGEPLAIN]})\\s+-\\s+(${A[v.XRANGEPLAIN]})\\s*$`);I("HYPHENRANGELOOSE",`^\\s*(${A[v.XRANGEPLAINLOOSE]})\\s+-\\s+(${A[v.XRANGEPLAINLOOSE]})\\s*$`);I("STAR","(<|>)?=?\\s*\\*");I("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");I("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Pi=p((KR,Rm)=>{var Zw=Object.freeze({loose:!0}),Jw=Object.freeze({}),eA=t=>t?typeof t!="object"?Zw:t:Jw;Rm.exports=eA});var Ma=p((YR,$m)=>{var Tm=/^[0-9]+$/,Pm=(t,e)=>{let r=Tm.test(t),i=Tm.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},tA=(t,e)=>Pm(e,t);$m.exports={compareIdentifiers:Pm,rcompareIdentifiers:tA}});var ue=p((XR,Lm)=>{var $i=ar(),{MAX_LENGTH:Bm,MAX_SAFE_INTEGER:Bi}=or(),{safeRe:Im,safeSrc:km,t:Ii}=Bt(),rA=Pi(),{compareIdentifiers:It}=Ma(),Ha=class t{constructor(e,r){if(r=rA(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Bm)throw new TypeError(`version is longer than ${Bm} characters`);$i("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let i=e.trim().match(r.loose?Im[Ii.LOOSE]:Im[Ii.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Bi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Bi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Bi||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let n=+s;if(n>=0&&n<Bi)return n}return s}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if($i("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),It(this.major,e.major)||It(this.minor,e.minor)||It(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let i=this.prerelease[r],s=e.prerelease[r];if($i("prerelease compare",r,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return It(i,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let i=this.build[r],s=e.build[r];if($i("build compare",r,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return It(i,s)}while(++r)}inc(e,r,i){if(e.startsWith("pre")){if(!r&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let s=new RegExp(`^${this.options.loose?km[Ii.PRERELEASELOOSE]:km[Ii.PRERELEASE]}$`),n=`-${r}`.match(s);if(!n||n[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){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":this.prerelease.length===0&&this.inc("patch",r,i),this.inc("pre",r,i);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);if(n===-1){if(r===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let n=[r,s];i===!1&&(n=[r]),It(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Lm.exports=Ha});var gt=p((QR,qm)=>{var Nm=ue(),iA=(t,e,r=!1)=>{if(t instanceof Nm)return t;try{return new Nm(t,e)}catch(i){if(!r)return null;throw i}};qm.exports=iA});var Mm=p((ZR,jm)=>{var sA=gt(),nA=(t,e)=>{let r=sA(t,e);return r?r.version:null};jm.exports=nA});var Gm=p((JR,Hm)=>{var oA=gt(),aA=(t,e)=>{let r=oA(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};Hm.exports=aA});var Um=p((eT,Wm)=>{var Vm=ue(),uA=(t,e,r,i,s)=>{typeof r=="string"&&(s=i,i=r,r=void 0);try{return new Vm(t instanceof Vm?t.version:t,r).inc(e,i,s).version}catch{return null}};Wm.exports=uA});var Ym=p((tT,Km)=>{var zm=gt(),lA=(t,e)=>{let r=zm(t,null,!0),i=zm(e,null,!0),s=r.compare(i);if(s===0)return null;let n=s>0,o=n?r:i,a=n?i:r,u=!!o.prerelease.length;if(!!a.prerelease.length&&!u){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let c=u?"pre":"";return r.major!==i.major?c+"major":r.minor!==i.minor?c+"minor":r.patch!==i.patch?c+"patch":"prerelease"};Km.exports=lA});var Qm=p((rT,Xm)=>{var cA=ue(),hA=(t,e)=>new cA(t,e).major;Xm.exports=hA});var Jm=p((iT,Zm)=>{var fA=ue(),pA=(t,e)=>new fA(t,e).minor;Zm.exports=pA});var tg=p((sT,eg)=>{var dA=ue(),mA=(t,e)=>new dA(t,e).patch;eg.exports=mA});var ig=p((nT,rg)=>{var gA=gt(),DA=(t,e)=>{let r=gA(t,e);return r&&r.prerelease.length?r.prerelease:null};rg.exports=DA});var ve=p((oT,ng)=>{var sg=ue(),yA=(t,e,r)=>new sg(t,r).compare(new sg(e,r));ng.exports=yA});var ag=p((aT,og)=>{var EA=ve(),_A=(t,e,r)=>EA(e,t,r);og.exports=_A});var lg=p((uT,ug)=>{var FA=ve(),bA=(t,e)=>FA(t,e,!0);ug.exports=bA});var ki=p((lT,hg)=>{var cg=ue(),CA=(t,e,r)=>{let i=new cg(t,r),s=new cg(e,r);return i.compare(s)||i.compareBuild(s)};hg.exports=CA});var pg=p((cT,fg)=>{var wA=ki(),AA=(t,e)=>t.sort((r,i)=>wA(r,i,e));fg.exports=AA});var mg=p((hT,dg)=>{var vA=ki(),xA=(t,e)=>t.sort((r,i)=>vA(i,r,e));dg.exports=xA});var ur=p((fT,gg)=>{var SA=ve(),OA=(t,e,r)=>SA(t,e,r)>0;gg.exports=OA});var Li=p((pT,Dg)=>{var RA=ve(),TA=(t,e,r)=>RA(t,e,r)<0;Dg.exports=TA});var Ga=p((dT,yg)=>{var PA=ve(),$A=(t,e,r)=>PA(t,e,r)===0;yg.exports=$A});var Va=p((mT,Eg)=>{var BA=ve(),IA=(t,e,r)=>BA(t,e,r)!==0;Eg.exports=IA});var Ni=p((gT,_g)=>{var kA=ve(),LA=(t,e,r)=>kA(t,e,r)>=0;_g.exports=LA});var qi=p((DT,Fg)=>{var NA=ve(),qA=(t,e,r)=>NA(t,e,r)<=0;Fg.exports=qA});var Wa=p((yT,bg)=>{var jA=Ga(),MA=Va(),HA=ur(),GA=Ni(),VA=Li(),WA=qi(),UA=(t,e,r,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return jA(t,r,i);case"!=":return MA(t,r,i);case">":return HA(t,r,i);case">=":return GA(t,r,i);case"<":return VA(t,r,i);case"<=":return WA(t,r,i);default:throw new TypeError(`Invalid operator: ${e}`)}};bg.exports=UA});var wg=p((ET,Cg)=>{var zA=ue(),KA=gt(),{safeRe:ji,t:Mi}=Bt(),YA=(t,e)=>{if(t instanceof zA)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?ji[Mi.COERCEFULL]:ji[Mi.COERCE]);else{let u=e.includePrerelease?ji[Mi.COERCERTLFULL]:ji[Mi.COERCERTL],l;for(;(l=u.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(r===null)return null;let i=r[2],s=r[3]||"0",n=r[4]||"0",o=e.includePrerelease&&r[5]?`-${r[5]}`:"",a=e.includePrerelease&&r[6]?`+${r[6]}`:"";return KA(`${i}.${s}.${n}${o}${a}`,e)};Cg.exports=YA});var vg=p((_T,Ag)=>{var Ua=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};Ag.exports=Ua});var xe=p((FT,Rg)=>{var XA=/\s+/g,za=class t{constructor(e,r){if(r=ZA(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof Ka)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(XA," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(s=>!Sg(s[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&nv(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let i=0;i<r.length;i++)i>0&&(this.formatted+=" "),this.formatted+=r[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&iv)|(this.options.loose&&sv))+":"+e,s=xg.get(i);if(s)return s;let n=this.options.loose,o=n?me[he.HYPHENRANGELOOSE]:me[he.HYPHENRANGE];e=e.replace(o,mv(this.options.includePrerelease)),Y("hyphen replace",e),e=e.replace(me[he.COMPARATORTRIM],ev),Y("comparator trim",e),e=e.replace(me[he.TILDETRIM],tv),Y("tilde trim",e),e=e.replace(me[he.CARETTRIM],rv),Y("caret trim",e);let a=e.split(" ").map(h=>ov(h,this.options)).join(" ").split(/\s+/).map(h=>dv(h,this.options));n&&(a=a.filter(h=>(Y("loose invalid filter",h,this.options),!!h.match(me[he.COMPARATORLOOSE])))),Y("range list",a);let u=new Map,l=a.map(h=>new Ka(h,this.options));for(let h of l){if(Sg(h))return[h];u.set(h.value,h)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return xg.set(i,c),c}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(i=>Og(i,r)&&e.set.some(s=>Og(s,r)&&i.every(n=>s.every(o=>n.intersects(o,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new JA(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(gv(this.set[r],e,this.options))return!0;return!1}};Rg.exports=za;var QA=vg(),xg=new QA,ZA=Pi(),Ka=lr(),Y=ar(),JA=ue(),{safeRe:me,t:he,comparatorTrimReplace:ev,tildeTrimReplace:tv,caretTrimReplace:rv}=Bt(),{FLAG_INCLUDE_PRERELEASE:iv,FLAG_LOOSE:sv}=or(),Sg=t=>t.value==="<0.0.0-0",nv=t=>t.value==="",Og=(t,e)=>{let r=!0,i=t.slice(),s=i.pop();for(;r&&i.length;)r=i.every(n=>s.intersects(n,e)),s=i.pop();return r},ov=(t,e)=>(Y("comp",t,e),t=lv(t,e),Y("caret",t),t=av(t,e),Y("tildes",t),t=hv(t,e),Y("xrange",t),t=pv(t,e),Y("stars",t),t),fe=t=>!t||t.toLowerCase()==="x"||t==="*",av=(t,e)=>t.trim().split(/\s+/).map(r=>uv(r,e)).join(" "),uv=(t,e)=>{let r=e.loose?me[he.TILDELOOSE]:me[he.TILDE];return t.replace(r,(i,s,n,o,a)=>{Y("tilde",t,i,s,n,o,a);let u;return fe(s)?u="":fe(n)?u=`>=${s}.0.0 <${+s+1}.0.0-0`:fe(o)?u=`>=${s}.${n}.0 <${s}.${+n+1}.0-0`:a?(Y("replaceTilde pr",a),u=`>=${s}.${n}.${o}-${a} <${s}.${+n+1}.0-0`):u=`>=${s}.${n}.${o} <${s}.${+n+1}.0-0`,Y("tilde return",u),u})},lv=(t,e)=>t.trim().split(/\s+/).map(r=>cv(r,e)).join(" "),cv=(t,e)=>{Y("caret",t,e);let r=e.loose?me[he.CARETLOOSE]:me[he.CARET],i=e.includePrerelease?"-0":"";return t.replace(r,(s,n,o,a,u)=>{Y("caret",t,s,n,o,a,u);let l;return fe(n)?l="":fe(o)?l=`>=${n}.0.0${i} <${+n+1}.0.0-0`:fe(a)?n==="0"?l=`>=${n}.${o}.0${i} <${n}.${+o+1}.0-0`:l=`>=${n}.${o}.0${i} <${+n+1}.0.0-0`:u?(Y("replaceCaret pr",u),n==="0"?o==="0"?l=`>=${n}.${o}.${a}-${u} <${n}.${o}.${+a+1}-0`:l=`>=${n}.${o}.${a}-${u} <${n}.${+o+1}.0-0`:l=`>=${n}.${o}.${a}-${u} <${+n+1}.0.0-0`):(Y("no pr"),n==="0"?o==="0"?l=`>=${n}.${o}.${a}${i} <${n}.${o}.${+a+1}-0`:l=`>=${n}.${o}.${a}${i} <${n}.${+o+1}.0-0`:l=`>=${n}.${o}.${a} <${+n+1}.0.0-0`),Y("caret return",l),l})},hv=(t,e)=>(Y("replaceXRanges",t,e),t.split(/\s+/).map(r=>fv(r,e)).join(" ")),fv=(t,e)=>{t=t.trim();let r=e.loose?me[he.XRANGELOOSE]:me[he.XRANGE];return t.replace(r,(i,s,n,o,a,u)=>{Y("xRange",t,i,s,n,o,a,u);let l=fe(n),c=l||fe(o),h=c||fe(a),f=h;return s==="="&&f&&(s=""),u=e.includePrerelease?"-0":"",l?s===">"||s==="<"?i="<0.0.0-0":i="*":s&&f?(c&&(o=0),a=0,s===">"?(s=">=",c?(n=+n+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",c?n=+n+1:o=+o+1),s==="<"&&(u="-0"),i=`${s+n}.${o}.${a}${u}`):c?i=`>=${n}.0.0${u} <${+n+1}.0.0-0`:h&&(i=`>=${n}.${o}.0${u} <${n}.${+o+1}.0-0`),Y("xRange return",i),i})},pv=(t,e)=>(Y("replaceStars",t,e),t.trim().replace(me[he.STAR],"")),dv=(t,e)=>(Y("replaceGTE0",t,e),t.trim().replace(me[e.includePrerelease?he.GTE0PRE:he.GTE0],"")),mv=t=>(e,r,i,s,n,o,a,u,l,c,h,f)=>(fe(i)?r="":fe(s)?r=`>=${i}.0.0${t?"-0":""}`:fe(n)?r=`>=${i}.${s}.0${t?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,fe(l)?u="":fe(c)?u=`<${+l+1}.0.0-0`:fe(h)?u=`<${l}.${+c+1}.0-0`:f?u=`<=${l}.${c}.${h}-${f}`:t?u=`<${l}.${c}.${+h+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),gv=(t,e,r)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let i=0;i<t.length;i++)if(Y(t[i].semver),t[i].semver!==Ka.ANY&&t[i].semver.prerelease.length>0){let s=t[i].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var lr=p((bT,kg)=>{var cr=Symbol("SemVer ANY"),Qa=class t{static get ANY(){return cr}constructor(e,r){if(r=Tg(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Xa("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===cr?this.value="":this.value=this.operator+this.semver.version,Xa("comp",this)}parse(e){let r=this.options.loose?Pg[$g.COMPARATORLOOSE]:Pg[$g.COMPARATOR],i=e.match(r);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Bg(i[2],this.options.loose):this.semver=cr}toString(){return this.value}test(e){if(Xa("Comparator.test",e,this.options.loose),this.semver===cr||e===cr)return!0;if(typeof e=="string")try{e=new Bg(e,this.options)}catch{return!1}return Ya(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Ig(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Ig(this.value,r).test(e.semver):(r=Tg(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Ya(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Ya(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};kg.exports=Qa;var Tg=Pi(),{safeRe:Pg,t:$g}=Bt(),Ya=Wa(),Xa=ar(),Bg=ue(),Ig=xe()});var hr=p((CT,Lg)=>{var Dv=xe(),yv=(t,e,r)=>{try{e=new Dv(e,r)}catch{return!1}return e.test(t)};Lg.exports=yv});var qg=p((wT,Ng)=>{var Ev=xe(),_v=(t,e)=>new Ev(t,e).set.map(r=>r.map(i=>i.value).join(" ").trim().split(" "));Ng.exports=_v});var Mg=p((AT,jg)=>{var Fv=ue(),bv=xe(),Cv=(t,e,r)=>{let i=null,s=null,n=null;try{n=new bv(e,r)}catch{return null}return t.forEach(o=>{n.test(o)&&(!i||s.compare(o)===-1)&&(i=o,s=new Fv(i,r))}),i};jg.exports=Cv});var Gg=p((vT,Hg)=>{var wv=ue(),Av=xe(),vv=(t,e,r)=>{let i=null,s=null,n=null;try{n=new Av(e,r)}catch{return null}return t.forEach(o=>{n.test(o)&&(!i||s.compare(o)===1)&&(i=o,s=new wv(i,r))}),i};Hg.exports=vv});var Ug=p((xT,Wg)=>{var Za=ue(),xv=xe(),Vg=ur(),Sv=(t,e)=>{t=new xv(t,e);let r=new Za("0.0.0");if(t.test(r)||(r=new Za("0.0.0-0"),t.test(r)))return r;r=null;for(let i=0;i<t.set.length;++i){let s=t.set[i],n=null;s.forEach(o=>{let a=new Za(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!n||Vg(a,n))&&(n=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),n&&(!r||Vg(r,n))&&(r=n)}return r&&t.test(r)?r:null};Wg.exports=Sv});var Kg=p((ST,zg)=>{var Ov=xe(),Rv=(t,e)=>{try{return new Ov(t,e).range||"*"}catch{return null}};zg.exports=Rv});var Hi=p((OT,Zg)=>{var Tv=ue(),Qg=lr(),{ANY:Pv}=Qg,$v=xe(),Bv=hr(),Yg=ur(),Xg=Li(),Iv=qi(),kv=Ni(),Lv=(t,e,r,i)=>{t=new Tv(t,i),e=new $v(e,i);let s,n,o,a,u;switch(r){case">":s=Yg,n=Iv,o=Xg,a=">",u=">=";break;case"<":s=Xg,n=kv,o=Yg,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Bv(t,e,i))return!1;for(let l=0;l<e.set.length;++l){let c=e.set[l],h=null,f=null;if(c.forEach(d=>{d.semver===Pv&&(d=new Qg(">=0.0.0")),h=h||d,f=f||d,s(d.semver,h.semver,i)?h=d:o(d.semver,f.semver,i)&&(f=d)}),h.operator===a||h.operator===u||(!f.operator||f.operator===a)&&n(t,f.semver))return!1;if(f.operator===u&&o(t,f.semver))return!1}return!0};Zg.exports=Lv});var eD=p((RT,Jg)=>{var Nv=Hi(),qv=(t,e,r)=>Nv(t,e,">",r);Jg.exports=qv});var rD=p((TT,tD)=>{var jv=Hi(),Mv=(t,e,r)=>jv(t,e,"<",r);tD.exports=Mv});var nD=p((PT,sD)=>{var iD=xe(),Hv=(t,e,r)=>(t=new iD(t,r),e=new iD(e,r),t.intersects(e,r));sD.exports=Hv});var aD=p(($T,oD)=>{var Gv=hr(),Vv=ve();oD.exports=(t,e,r)=>{let i=[],s=null,n=null,o=t.sort((c,h)=>Vv(c,h,r));for(let c of o)Gv(c,e,r)?(n=c,s||(s=c)):(n&&i.push([s,n]),n=null,s=null);s&&i.push([s,null]);let a=[];for(let[c,h]of i)c===h?a.push(c):!h&&c===o[0]?a.push("*"):h?c===o[0]?a.push(`<=${h}`):a.push(`${c} - ${h}`):a.push(`>=${c}`);let u=a.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return u.length<l.length?u:e}});var pD=p((BT,fD)=>{var uD=xe(),eu=lr(),{ANY:Ja}=eu,fr=hr(),tu=ve(),Wv=(t,e,r={})=>{if(t===e)return!0;t=new uD(t,r),e=new uD(e,r);let i=!1;e:for(let s of t.set){for(let n of e.set){let o=zv(s,n,r);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},Uv=[new eu(">=0.0.0-0")],lD=[new eu(">=0.0.0")],zv=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Ja){if(e.length===1&&e[0].semver===Ja)return!0;r.includePrerelease?t=Uv:t=lD}if(e.length===1&&e[0].semver===Ja){if(r.includePrerelease)return!0;e=lD}let i=new Set,s,n;for(let d of t)d.operator===">"||d.operator===">="?s=cD(s,d,r):d.operator==="<"||d.operator==="<="?n=hD(n,d,r):i.add(d.semver);if(i.size>1)return null;let o;if(s&&n){if(o=tu(s.semver,n.semver,r),o>0)return null;if(o===0&&(s.operator!==">="||n.operator!=="<="))return null}for(let d of i){if(s&&!fr(d,String(s),r)||n&&!fr(d,String(n),r))return null;for(let m of e)if(!fr(d,String(m),r))return!1;return!0}let a,u,l,c,h=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;h&&h.prerelease.length===1&&n.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let d of e){if(c=c||d.operator===">"||d.operator===">=",l=l||d.operator==="<"||d.operator==="<=",s){if(f&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===f.major&&d.semver.minor===f.minor&&d.semver.patch===f.patch&&(f=!1),d.operator===">"||d.operator===">="){if(a=cD(s,d,r),a===d&&a!==s)return!1}else if(s.operator===">="&&!fr(s.semver,String(d),r))return!1}if(n){if(h&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===h.major&&d.semver.minor===h.minor&&d.semver.patch===h.patch&&(h=!1),d.operator==="<"||d.operator==="<="){if(u=hD(n,d,r),u===d&&u!==n)return!1}else if(n.operator==="<="&&!fr(n.semver,String(d),r))return!1}if(!d.operator&&(n||s)&&o!==0)return!1}return!(s&&l&&!n&&o!==0||n&&c&&!s&&o!==0||f||h)},cD=(t,e,r)=>{if(!t)return e;let i=tu(t.semver,e.semver,r);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},hD=(t,e,r)=>{if(!t)return e;let i=tu(t.semver,e.semver,r);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};fD.exports=Wv});var DD=p((IT,gD)=>{var ru=Bt(),dD=or(),Kv=ue(),mD=Ma(),Yv=gt(),Xv=Mm(),Qv=Gm(),Zv=Um(),Jv=Ym(),ex=Qm(),tx=Jm(),rx=tg(),ix=ig(),sx=ve(),nx=ag(),ox=lg(),ax=ki(),ux=pg(),lx=mg(),cx=ur(),hx=Li(),fx=Ga(),px=Va(),dx=Ni(),mx=qi(),gx=Wa(),Dx=wg(),yx=lr(),Ex=xe(),_x=hr(),Fx=qg(),bx=Mg(),Cx=Gg(),wx=Ug(),Ax=Kg(),vx=Hi(),xx=eD(),Sx=rD(),Ox=nD(),Rx=aD(),Tx=pD();gD.exports={parse:Yv,valid:Xv,clean:Qv,inc:Zv,diff:Jv,major:ex,minor:tx,patch:rx,prerelease:ix,compare:sx,rcompare:nx,compareLoose:ox,compareBuild:ax,sort:ux,rsort:lx,gt:cx,lt:hx,eq:fx,neq:px,gte:dx,lte:mx,cmp:gx,coerce:Dx,Comparator:yx,Range:Ex,satisfies:_x,toComparators:Fx,maxSatisfying:bx,minSatisfying:Cx,minVersion:wx,validRange:Ax,outside:vx,gtr:xx,ltr:Sx,intersects:Ox,simplifyRange:Rx,subset:Tx,SemVer:Kv,re:ru.re,src:ru.src,tokens:ru.t,SEMVER_SPEC_VERSION:dD.SEMVER_SPEC_VERSION,RELEASE_TYPES:dD.RELEASE_TYPES,compareIdentifiers:mD.compareIdentifiers,rcompareIdentifiers:mD.rcompareIdentifiers}});var wD=q(zl(),1),AD=q(Yl(),1);var Xl=(t=0)=>e=>`\x1B[${e+t}m`,Ql=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Zl=(t=0)=>(e,r,i)=>`\x1B[${38+t};2;${e};${r};${i}m`,X={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},RS=Object.keys(X.modifier),ny=Object.keys(X.color),oy=Object.keys(X.bgColor),TS=[...ny,...oy];function ay(){let t=new Map;for(let[e,r]of Object.entries(X)){for(let[i,s]of Object.entries(r))X[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[i]=X[i],t.set(s[0],s[1]);Object.defineProperty(X,e,{value:r,enumerable:!1})}return Object.defineProperty(X,"codes",{value:t,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.color.ansi=Xl(),X.color.ansi256=Ql(),X.color.ansi16m=Zl(),X.bgColor.ansi=Xl(10),X.bgColor.ansi256=Ql(10),X.bgColor.ansi16m=Zl(10),Object.defineProperties(X,{rgbToAnsi256:{value(e,r,i){return e===r&&r===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[i]=r;i.length===3&&(i=[...i].map(n=>n+n).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>X.rgbToAnsi256(...X.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,i,s;if(e>=232)r=((e-232)*10+8)/255,i=r,s=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,i=Math.floor(a/6)/5,s=a%6/5}let n=Math.max(r,i,s)*2;if(n===0)return 30;let o=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(r));return n===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,i)=>X.ansi256ToAnsi(X.rgbToAnsi256(e,r,i)),enumerable:!1},hexToAnsi:{value:e=>X.ansi256ToAnsi(X.hexToAnsi256(e)),enumerable:!1}}),X}var uy=ay(),Re=uy;var xr=q(require("node:process"),1),ec=q(require("node:os"),1),Ls=q(require("node:tty"),1);function _e(t,e=globalThis.Deno?globalThis.Deno.args:xr.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),s=e.indexOf("--");return i!==-1&&(s===-1||i<s)}var{env:J}=xr.default,vr;_e("no-color")||_e("no-colors")||_e("color=false")||_e("color=never")?vr=0:(_e("color")||_e("colors")||_e("color=true")||_e("color=always"))&&(vr=1);function ly(){if("FORCE_COLOR"in J)return J.FORCE_COLOR==="true"?1:J.FORCE_COLOR==="false"?0:J.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(J.FORCE_COLOR,10),3)}function cy(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function hy(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let i=ly();i!==void 0&&(vr=i);let s=r?vr:i;if(s===0)return 0;if(r){if(_e("color=16m")||_e("color=full")||_e("color=truecolor"))return 3;if(_e("color=256"))return 2}if("TF_BUILD"in J&&"AGENT_NAME"in J)return 1;if(t&&!e&&s===void 0)return 0;let n=s||0;if(J.TERM==="dumb")return n;if(xr.default.platform==="win32"){let o=ec.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in J)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in J)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in J)||J.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in J)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(J.TEAMCITY_VERSION)?1:0;if(J.COLORTERM==="truecolor"||J.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in J){let o=Number.parseInt((J.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(J.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(J.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(J.TERM)||"COLORTERM"in J?1:n}function Jl(t,e={}){let r=hy(t,{streamIsTTY:t&&t.isTTY,...e});return cy(r)}var fy={stdout:Jl({isTTY:Ls.default.isatty(1)}),stderr:Jl({isTTY:Ls.default.isatty(2)})},tc=fy;function rc(t,e,r){let i=t.indexOf(e);if(i===-1)return t;let s=e.length,n=0,o="";do o+=t.slice(n,i)+e+r,n=i+s,i=t.indexOf(e,n);while(i!==-1);return o+=t.slice(n),o}function ic(t,e,r,i){let s=0,n="";do{let o=t[i-1]==="\r";n+=t.slice(s,o?i-1:i)+e+(o?`\r
|
|
61
61
|
`:`
|
|
62
62
|
`)+r,s=i+1,i=t.indexOf(`
|
|
63
|
-
`,s)}while(i!==-1);return n+=t.slice(s),n}var{stdout:
|
|
64
|
-
`);return n!==-1&&(e=
|
|
65
|
-
`:10,r=typeof t=="string"?"\r":13;return t[t.length-1]===e&&(t=t.slice(0,-1)),t[t.length-1]===r&&(t=t.slice(0,-1)),t}var
|
|
66
|
-
${e}`,
|
|
67
|
-
${i.message}`:C,
|
|
68
|
-
`);return F?(i.originalMessage=i.message,i.message=b):i=new Error(b),i.shortMessage=v,i.command=o,i.escapedCommand=u,i.exitCode=n,i.signal=s,i.signalDescription=_,i.stdout=t,i.stderr=e,i.cwd=f,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!a,i.isCanceled=l,i.killed=c&&!a,i};var fr=["stdin","stdout","stderr"],Fg=t=>fr.some(e=>t[e]!==void 0),hc=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return fr.map(i=>t[i]);if(Fg(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${fr.map(i=>`\`${i}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,fr.length);return Array.from({length:r},(i,s)=>e[s])};var fc=j(require("node:os"),1);var Ze=[];Ze.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Ze.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ze.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var pr=t=>!!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",Es=Symbol.for("signal-exit emitter"),Cs=globalThis,Eg=Object.defineProperty.bind(Object),ws=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Cs[Es])return Cs[Es];Eg(Cs,Es,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,r){this.listeners[e].push(r)}removeListener(e,r){let i=this.listeners[e],s=i.indexOf(r);s!==-1&&(s===0&&i.length===1?i.length=0:i.splice(s,1))}emit(e,r,i){if(this.emitted[e])return!1;this.emitted[e]=!0;let s=!1;for(let n of this.listeners[e])s=n(r,i)===!0||s;return e==="exit"&&(s=this.emit("afterExit",r,i)||s),s}},dr=class{},Cg=t=>({onExit(e,r){return t.onExit(e,r)},load(){return t.load()},unload(){return t.unload()}}),vs=class extends dr{onExit(){return()=>{}}load(){}unload(){}},xs=class extends dr{#o=As.platform==="win32"?"SIGINT":"SIGHUP";#r=new ws;#e;#s;#f;#t={};#n=!1;constructor(e){super(),this.#e=e,this.#t={};for(let r of Ze)this.#t[r]=()=>{let i=this.#e.listeners(r),{count:s}=this.#r,n=e;if(typeof n.__signal_exit_emitter__=="object"&&typeof n.__signal_exit_emitter__.count=="number"&&(s+=n.__signal_exit_emitter__.count),i.length===s){this.unload();let o=this.#r.emit("exit",null,r),u=r==="SIGHUP"?this.#o:r;o||e.kill(e.pid,u)}};this.#f=e.reallyExit,this.#s=e.emit}onExit(e,r){if(!pr(this.#e))return()=>{};this.#n===!1&&this.load();let i=r?.alwaysLast?"afterExit":"exit";return this.#r.on(i,e),()=>{this.#r.removeListener(i,e),this.#r.listeners.exit.length===0&&this.#r.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#n){this.#n=!0,this.#r.count+=1;for(let e of Ze)try{let r=this.#t[e];r&&this.#e.on(e,r)}catch{}this.#e.emit=(e,...r)=>this.#p(e,...r),this.#e.reallyExit=e=>this.#i(e)}}unload(){this.#n&&(this.#n=!1,Ze.forEach(e=>{let r=this.#t[e];if(!r)throw new Error("Listener not defined for signal: "+e);try{this.#e.removeListener(e,r)}catch{}}),this.#e.emit=this.#s,this.#e.reallyExit=this.#f,this.#r.count-=1)}#i(e){return pr(this.#e)?(this.#e.exitCode=e||0,this.#r.emit("exit",this.#e.exitCode,null),this.#f.call(this.#e,this.#e.exitCode)):0}#p(e,...r){let i=this.#s;if(e==="exit"&&pr(this.#e)){typeof r[0]=="number"&&(this.#e.exitCode=r[0]);let s=i.call(this.#e,e,...r);return this.#r.emit("exit",this.#e.exitCode,null),s}else return i.call(this.#e,e,...r)}},As=globalThis.process,{onExit:mr,load:MC,unload:qC}=Cg(pr(As)?new xs(As):new vs);var wg=1e3*5,pc=(t,e="SIGTERM",r={})=>{let i=t(e);return vg(t,e,r,i),i},vg=(t,e,r,i)=>{if(!xg(e,r,i))return;let s=Sg(r),n=setTimeout(()=>{t("SIGKILL")},s);n.unref&&n.unref()},xg=(t,{forceKillAfterTimeout:e},r)=>Ag(t)&&e!==!1&&r,Ag=t=>t===fc.default.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",Sg=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return wg;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},dc=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Og=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},mc=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let s,n=new Promise((u,a)=>{s=setTimeout(()=>{Og(t,r,a)},e)}),o=i.finally(()=>{clearTimeout(s)});return Promise.race([n,o])},Dc=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},gc=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let s=mr(()=>{t.kill()});return i.finally(()=>{s()})};var yc=require("node:fs"),_c=require("node:child_process");function Dr(t){return t!==null&&typeof t=="object"&&typeof t.pipe=="function"}function Ss(t){return Dr(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object"}var Pg=t=>t instanceof _c.ChildProcess&&typeof t.then=="function",Os=(t,e,r)=>{if(typeof r=="string")return t[e].pipe((0,yc.createWriteStream)(r)),t;if(Ss(r))return t[e].pipe(r),t;if(!Pg(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!Ss(r.stdin))throw new TypeError("The target child process's stdin must be available.");return t[e].pipe(r.stdin),r},bc=t=>{t.stdout!==null&&(t.pipeStdout=Os.bind(void 0,t,"stdout")),t.stderr!==null&&(t.pipeStderr=Os.bind(void 0,t,"stderr")),t.all!==void 0&&(t.pipeAll=Os.bind(void 0,t,"all"))};var Er=require("node:fs"),Tc=require("node:timers/promises");var Bt=async(t,{init:e,convertChunk:r,getSize:i,truncateChunk:s,addChunk:n,getFinalChunk:o,finalize:u},{maxBuffer:a=Number.POSITIVE_INFINITY}={})=>{if(!Tg(t))throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");let l=e();l.length=0;try{for await(let c of t){let h=Rg(c),f=r[h](c,l);Cc({convertedChunk:f,state:l,getSize:i,truncateChunk:s,addChunk:n,maxBuffer:a})}return Bg({state:l,convertChunk:r,getSize:i,truncateChunk:s,addChunk:n,getFinalChunk:o,maxBuffer:a}),u(l)}catch(c){throw c.bufferedData=u(l),c}},Bg=({state:t,getSize:e,truncateChunk:r,addChunk:i,getFinalChunk:s,maxBuffer:n})=>{let o=s(t);o!==void 0&&Cc({convertedChunk:o,state:t,getSize:e,truncateChunk:r,addChunk:i,maxBuffer:n})},Cc=({convertedChunk:t,state:e,getSize:r,truncateChunk:i,addChunk:s,maxBuffer:n})=>{let o=r(t),u=e.length+o;if(u<=n){Fc(t,e,s,u);return}let a=i(t,n-e.length);throw a!==void 0&&Fc(a,e,s,n),new gr},Fc=(t,e,r,i)=>{e.contents=r(t,e,i),e.length=i},Tg=t=>typeof t=="object"&&t!==null&&typeof t[Symbol.asyncIterator]=="function",Rg=t=>{let e=typeof t;if(e==="string")return"string";if(e!=="object"||t===null)return"others";if(globalThis.Buffer?.isBuffer(t))return"buffer";let r=Ec.call(t);return r==="[object ArrayBuffer]"?"arrayBuffer":r==="[object DataView]"?"dataView":Number.isInteger(t.byteLength)&&Number.isInteger(t.byteOffset)&&Ec.call(t.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:Ec}=Object.prototype,gr=class extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}};var Ps=t=>t,Bs=()=>{},Ts=({contents:t})=>t,yr=t=>{throw new Error(`Streams in object mode are not supported: ${String(t)}`)},_r=t=>t.length;async function Rs(t,e){return Bt(t,Hg,e)}var kg=()=>({contents:new ArrayBuffer(0)}),$g=t=>Ig.encode(t),Ig=new TextEncoder,wc=t=>new Uint8Array(t),vc=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),jg=(t,e)=>t.slice(0,e),Lg=(t,{contents:e,length:r},i)=>{let s=Sc()?Mg(e,i):Ng(e,i);return new Uint8Array(s).set(t,r),s},Ng=(t,e)=>{if(e<=t.byteLength)return t;let r=new ArrayBuffer(Ac(e));return new Uint8Array(r).set(new Uint8Array(t),0),r},Mg=(t,e)=>{if(e<=t.maxByteLength)return t.resize(e),t;let r=new ArrayBuffer(e,{maxByteLength:Ac(e)});return new Uint8Array(r).set(new Uint8Array(t),0),r},Ac=t=>xc**Math.ceil(Math.log(t)/Math.log(xc)),xc=2,qg=({contents:t,length:e})=>Sc()?t:t.slice(0,e),Sc=()=>"resize"in ArrayBuffer.prototype,Hg={init:kg,convertChunk:{string:$g,buffer:wc,arrayBuffer:wc,dataView:vc,typedArray:vc,others:yr},getSize:_r,truncateChunk:jg,addChunk:Lg,getFinalChunk:Bs,finalize:qg};async function br(t,e){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return Oc(await Rs(t,e))}catch(r){throw r.bufferedData!==void 0&&(r.bufferedData=Oc(r.bufferedData)),r}}var Oc=t=>globalThis.Buffer.from(t);async function ks(t,e){return Bt(t,zg,e)}var Wg=()=>({contents:"",textDecoder:new TextDecoder}),Fr=(t,{textDecoder:e})=>e.decode(t,{stream:!0}),Vg=(t,{contents:e})=>e+t,Gg=(t,e)=>t.slice(0,e),Ug=({textDecoder:t})=>{let e=t.decode();return e===""?void 0:e},zg={init:Wg,convertChunk:{string:Ps,buffer:Fr,arrayBuffer:Fr,dataView:Fr,typedArray:Fr,others:yr},getSize:_r,truncateChunk:Gg,addChunk:Vg,getFinalChunk:Ug,finalize:Ts};var Rc=j(Bc(),1),kc=t=>{if(t!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},Yg=({input:t,inputFile:e})=>typeof e!="string"?t:(kc(t),(0,Er.readFileSync)(e)),$c=t=>{let e=Yg(t);if(Dr(e))throw new TypeError("The `input` option cannot be a stream in sync mode");return e},Qg=({input:t,inputFile:e})=>typeof e!="string"?t:(kc(t),(0,Er.createReadStream)(e)),Ic=(t,e)=>{let r=Qg(e);r!==void 0&&(Dr(r)?r.pipe(t.stdin):t.stdin.end(r))},jc=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=(0,Rc.default)();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},$s=async(t,e)=>{if(!(!t||e===void 0)){await(0,Tc.setTimeout)(0),t.destroy();try{return await e}catch(r){return r.bufferedData}}},Is=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e==="utf8"||e==="utf-8"?ks(t,{maxBuffer:i}):e===null||e==="buffer"?br(t,{maxBuffer:i}):Xg(t,i,e)},Xg=async(t,e,r)=>(await br(t,{maxBuffer:e})).toString(r),Lc=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:s,maxBuffer:n},o)=>{let u=Is(t,{encoding:i,buffer:s,maxBuffer:n}),a=Is(e,{encoding:i,buffer:s,maxBuffer:n}),l=Is(r,{encoding:i,buffer:s,maxBuffer:n*2});try{return await Promise.all([o,u,a,l])}catch(c){return Promise.all([{error:c,signal:c.signal,timedOut:c.timedOut},$s(t,u),$s(e,a),$s(r,l)])}};var Zg=(async()=>{})().constructor.prototype,Jg=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Zg,t)]),js=(t,e)=>{for(let[r,i]of Jg){let s=typeof e=="function"?(...n)=>Reflect.apply(i.value,e(),n):i.value.bind(e);Reflect.defineProperty(t,r,{...i,value:s})}},Nc=t=>new Promise((e,r)=>{t.on("exit",(i,s)=>{e({exitCode:i,signal:s})}),t.on("error",i=>{r(i)}),t.stdin&&t.stdin.on("error",i=>{r(i)})});var Hc=require("node:buffer"),Wc=require("node:child_process"),Vc=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],e0=/^[\w.-]+$/,t0=t=>typeof t!="string"||e0.test(t)?t:`"${t.replaceAll('"','\\"')}"`,Ls=(t,e)=>Vc(t,e).join(" "),Ns=(t,e)=>Vc(t,e).map(r=>t0(r)).join(" "),Gc=/ +/g,Uc=t=>{let e=[];for(let r of t.trim().split(Gc)){let i=e.at(-1);i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e},Mc=t=>{let e=typeof t;if(e==="string")return t;if(e==="number")return String(t);if(e==="object"&&t!==null&&!(t instanceof Wc.ChildProcess)&&"stdout"in t){let r=typeof t.stdout;if(r==="string")return t.stdout;if(Hc.Buffer.isBuffer(t.stdout))return t.stdout.toString();throw new TypeError(`Unexpected "${r}" stdout in template expression`)}throw new TypeError(`Unexpected "${e}" in template expression`)},qc=(t,e,r)=>r||t.length===0||e.length===0?[...t,...e]:[...t.slice(0,-1),`${t.at(-1)}${e[0]}`,...e.slice(1)],r0=({templates:t,expressions:e,tokens:r,index:i,template:s})=>{let n=s??t.raw[i],o=n.split(Gc).filter(Boolean),u=qc(r,o,n.startsWith(" "));if(i===e.length)return u;let a=e[i],l=Array.isArray(a)?a.map(c=>Mc(c)):[Mc(a)];return qc(u,l,n.endsWith(" "))},Ms=(t,e)=>{let r=[];for(let[i,s]of t.entries())r=r0({templates:t,expressions:e,tokens:r,index:i,template:s});return r};var zc=require("node:util"),Kc=j(require("node:process"),1),Yc=(0,zc.debuglog)("execa").enabled,Cr=(t,e)=>String(t).padStart(e,"0"),i0=()=>{let t=new Date;return`${Cr(t.getHours(),2)}:${Cr(t.getMinutes(),2)}:${Cr(t.getSeconds(),2)}.${Cr(t.getMilliseconds(),3)}`},qs=(t,{verbose:e})=>{e&&Kc.default.stderr.write(`[${i0()}] ${t}
|
|
69
|
-
`)};var
|
|
70
|
-
${e}`,A0=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),S0=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),O0=(t,e,r)=>{let i=r===""?"":`with ${r.trim()}() `,s=x0.bind(null,i,e.toString());Object.defineProperty(s,"name",S0);let{writable:n,enumerable:o,configurable:u}=A0;Object.defineProperty(t,"toString",{value:s,writable:n,enumerable:o,configurable:u})};function on(t,e,{ignoreNonConfigurable:r=!1}={}){let{name:i}=t;for(let s of Reflect.ownKeys(e))C0(t,e,s,r);return v0(t,e),O0(t,e,i),t}var Pr=new WeakMap,Dh=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,s=t.displayName||t.name||"<anonymous>",n=function(...o){if(Pr.set(n,++i),i===1)r=t.apply(this,o),t=void 0;else if(e.throw===!0)throw new Error(`Function \`${s}\` can only be called once`);return r};return on(n,t),Pr.set(n,i),n};Dh.callCount=t=>{if(!Pr.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Pr.get(t)};var gh=Dh;var yh=$t.default.stderr.isTTY?$t.default.stderr:$t.default.stdout.isTTY?$t.default.stdout:void 0,P0=yh?gh(()=>{mr(()=>{yh.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},_h=P0;var Br=!1,pt={};pt.show=(t=un.default.stderr)=>{t.isTTY&&(Br=!1,t.write("\x1B[?25h"))};pt.hide=(t=un.default.stderr)=>{t.isTTY&&(_h(),Br=!0,t.write("\x1B[?25l"))};pt.toggle=(t,e)=>{t!==void 0&&(Br=t),Br?pt.show(e):pt.hide(e)};var an=pt;var Lt=j(ln(),1);var de=j(require("node:process"),1);function cn(){return de.default.platform!=="win32"?de.default.env.TERM!=="linux":!!de.default.env.CI||!!de.default.env.WT_SESSION||!!de.default.env.TERMINUS_SUBLIME||de.default.env.ConEmuTask==="{cmd::Cmder}"||de.default.env.TERM_PROGRAM==="Terminus-Sublime"||de.default.env.TERM_PROGRAM==="vscode"||de.default.env.TERM==="xterm-256color"||de.default.env.TERM==="alacritty"||de.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var T0={info:M.blue("\u2139"),success:M.green("\u2714"),warning:M.yellow("\u26A0"),error:M.red("\u2716")},R0={info:M.blue("i"),success:M.green("\u221A"),warning:M.yellow("\u203C"),error:M.red("\xD7")},k0=cn()?T0:R0,It=k0;function hn({onlyFirst:t=!1}={}){let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,t?void 0:"g")}var $0=hn();function fn(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace($0,"")}function pn({onlyFirst:t=!1}={}){let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,t?void 0:"g")}var I0=pn();function dn(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(I0,"")}function Ch(t){return t===161||t===164||t===167||t===168||t===170||t===173||t===174||t>=176&&t<=180||t>=182&&t<=186||t>=188&&t<=191||t===198||t===208||t===215||t===216||t>=222&&t<=225||t===230||t>=232&&t<=234||t===236||t===237||t===240||t===242||t===243||t>=247&&t<=250||t===252||t===254||t===257||t===273||t===275||t===283||t===294||t===295||t===299||t>=305&&t<=307||t===312||t>=319&&t<=322||t===324||t>=328&&t<=331||t===333||t===338||t===339||t===358||t===359||t===363||t===462||t===464||t===466||t===468||t===470||t===472||t===474||t===476||t===593||t===609||t===708||t===711||t>=713&&t<=715||t===717||t===720||t>=728&&t<=731||t===733||t===735||t>=768&&t<=879||t>=913&&t<=929||t>=931&&t<=937||t>=945&&t<=961||t>=963&&t<=969||t===1025||t>=1040&&t<=1103||t===1105||t===8208||t>=8211&&t<=8214||t===8216||t===8217||t===8220||t===8221||t>=8224&&t<=8226||t>=8228&&t<=8231||t===8240||t===8242||t===8243||t===8245||t===8251||t===8254||t===8308||t===8319||t>=8321&&t<=8324||t===8364||t===8451||t===8453||t===8457||t===8467||t===8470||t===8481||t===8482||t===8486||t===8491||t===8531||t===8532||t>=8539&&t<=8542||t>=8544&&t<=8555||t>=8560&&t<=8569||t===8585||t>=8592&&t<=8601||t===8632||t===8633||t===8658||t===8660||t===8679||t===8704||t===8706||t===8707||t===8711||t===8712||t===8715||t===8719||t===8721||t===8725||t===8730||t>=8733&&t<=8736||t===8739||t===8741||t>=8743&&t<=8748||t===8750||t>=8756&&t<=8759||t===8764||t===8765||t===8776||t===8780||t===8786||t===8800||t===8801||t>=8804&&t<=8807||t===8810||t===8811||t===8814||t===8815||t===8834||t===8835||t===8838||t===8839||t===8853||t===8857||t===8869||t===8895||t===8978||t>=9312&&t<=9449||t>=9451&&t<=9547||t>=9552&&t<=9587||t>=9600&&t<=9615||t>=9618&&t<=9621||t===9632||t===9633||t>=9635&&t<=9641||t===9650||t===9651||t===9654||t===9655||t===9660||t===9661||t===9664||t===9665||t>=9670&&t<=9672||t===9675||t>=9678&&t<=9681||t>=9698&&t<=9701||t===9711||t===9733||t===9734||t===9737||t===9742||t===9743||t===9756||t===9758||t===9792||t===9794||t===9824||t===9825||t>=9827&&t<=9829||t>=9831&&t<=9834||t===9836||t===9837||t===9839||t===9886||t===9887||t===9919||t>=9926&&t<=9933||t>=9935&&t<=9939||t>=9941&&t<=9953||t===9955||t===9960||t===9961||t>=9963&&t<=9969||t===9972||t>=9974&&t<=9977||t===9979||t===9980||t===9982||t===9983||t===10045||t>=10102&&t<=10111||t>=11094&&t<=11097||t>=12872&&t<=12879||t>=57344&&t<=63743||t>=65024&&t<=65039||t===65533||t>=127232&&t<=127242||t>=127248&&t<=127277||t>=127280&&t<=127337||t>=127344&&t<=127373||t===127375||t===127376||t>=127387&&t<=127404||t>=917760&&t<=917999||t>=983040&&t<=1048573||t>=1048576&&t<=1114109}function wh(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function vh(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9776&&t<=9783||t>=9800&&t<=9811||t===9855||t>=9866&&t<=9871||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t===94192||t===94193||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101631&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129673||t>=129679&&t<=129734||t>=129742&&t<=129756||t>=129759&&t<=129769||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}function j0(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}function xh(t,{ambiguousAsWide:e=!1}={}){return j0(t),wh(t)||vh(t)||e&&Ch(t)?2:1}var Oh=j(Sh(),1),L0=new Intl.Segmenter,N0=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function mn(t,e={}){if(typeof t!="string"||t.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:i=!1}=e;if(i||(t=dn(t)),t.length===0)return 0;let s=0,n={ambiguousAsWide:!r};for(let{segment:o}of L0.segment(t)){let u=o.codePointAt(0);if(!(u<=31||u>=127&&u<=159)&&!(u>=8203&&u<=8207||u===65279)&&!(u>=768&&u<=879||u>=6832&&u<=6911||u>=7616&&u<=7679||u>=8400&&u<=8447||u>=65056&&u<=65071)&&!(u>=55296&&u<=57343)&&!(u>=65024&&u<=65039)&&!N0.test(o)){if((0,Oh.default)().test(o)){s+=2;continue}s+=xh(u,n)}}return s}function Dn({stream:t=process.stdout}={}){return!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var gn=j(require("node:process"),1);function yn(){let{env:t}=gn.default,{TERM:e,TERM_PROGRAM:r}=t;return gn.default.platform!=="win32"?e!=="linux":!!t.WT_SESSION||!!t.TERMINUS_SUBLIME||t.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||e==="xterm-256color"||e==="alacritty"||e==="rxvt-unicode"||e==="rxvt-unicode-256color"||t.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Fe=j(require("node:process"),1),M0=3,_n=class{#o=0;start(){this.#o++,this.#o===1&&this.#r()}stop(){if(this.#o<=0)throw new Error("`stop` called more times than `start`");this.#o--,this.#o===0&&this.#e()}#r(){Fe.default.platform==="win32"||!Fe.default.stdin.isTTY||(Fe.default.stdin.setRawMode(!0),Fe.default.stdin.on("data",this.#s),Fe.default.stdin.resume())}#e(){Fe.default.stdin.isTTY&&(Fe.default.stdin.off("data",this.#s),Fe.default.stdin.pause(),Fe.default.stdin.setRawMode(!1))}#s(e){e[0]===M0&&Fe.default.emit("SIGINT")}},q0=new _n,bn=q0;var H0=j(ln(),1),Fn=class{#o=0;#r=!1;#e=0;#s=-1;#f=0;#t;#n;#i;#p;#m;#l;#c;#h;#D;#u;#a;color;constructor(e){typeof e=="string"&&(e={text:e}),this.#t={color:"cyan",stream:jt.default.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#t.color,this.spinner=this.#t.spinner,this.#m=this.#t.interval,this.#i=this.#t.stream,this.#l=typeof this.#t.isEnabled=="boolean"?this.#t.isEnabled:Dn({stream:this.#i}),this.#c=typeof this.#t.isSilent=="boolean"?this.#t.isSilent:!1,this.text=this.#t.text,this.prefixText=this.#t.prefixText,this.suffixText=this.#t.suffixText,this.indent=this.#t.indent,jt.default.env.NODE_ENV==="test"&&(this._stream=this.#i,this._isEnabled=this.#l,Object.defineProperty(this,"_linesToClear",{get(){return this.#o},set(r){this.#o=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#s}}),Object.defineProperty(this,"_lineCount",{get(){return this.#e}}))}get indent(){return this.#h}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#h=e,this.#d()}get interval(){return this.#m??this.#n.interval??100}get spinner(){return this.#n}set spinner(e){if(this.#s=-1,this.#m=void 0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#n=e}else if(!yn())this.#n=Lt.default.line;else if(e===void 0)this.#n=Lt.default.dots;else if(e!=="default"&&Lt.default[e])this.#n=Lt.default[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#D}set text(e=""){this.#D=e,this.#d()}get prefixText(){return this.#u}set prefixText(e=""){this.#u=e,this.#d()}get suffixText(){return this.#a}set suffixText(e=""){this.#a=e,this.#d()}get isSpinning(){return this.#p!==void 0}#g(e=this.#u,r=" "){return typeof e=="string"&&e!==""?e+r:typeof e=="function"?e()+r:""}#y(e=this.#a,r=" "){return typeof e=="string"&&e!==""?r+e:typeof e=="function"?r+e():""}#d(){let e=this.#i.columns??80,r=this.#g(this.#u,"-"),i=this.#y(this.#a,"-"),s=" ".repeat(this.#h)+r+"--"+this.#D+"--"+i;this.#e=0;for(let n of fn(s).split(`
|
|
71
|
-
`))this.#e+=Math.max(1,Math.ceil(
|
|
72
|
-
`),this)}stop(){return this.#l?(clearInterval(this.#p),this.#p=void 0,this.#s=0,this.clear(),this.#t.hideCursor&&
|
|
73
|
-
`;return this.stop(),this.#i.write(c),this}};function
|
|
74
|
-
Could not resolve ${
|
|
75
|
-
`)};var{prompt:
|
|
76
|
-
${
|
|
77
|
-
`:""})}let f=
|
|
78
|
-
${
|
|
79
|
-
`),
|
|
80
|
-
`)}let
|
|
81
|
-
${
|
|
82
|
-
`)):console.log(`Open the created ${
|
|
63
|
+
`,s)}while(i!==-1);return n+=t.slice(s),n}var{stdout:sc,stderr:nc}=tc,Ns=Symbol("GENERATOR"),_t=Symbol("STYLER"),Mt=Symbol("IS_EMPTY"),oc=["ansi","ansi","ansi256","ansi16m"],Ft=Object.create(null),py=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=sc?sc.level:0;t.level=e.level===void 0?r:e.level};var dy=t=>{let e=(...r)=>r.join(" ");return py(e,t),Object.setPrototypeOf(e,Ht.prototype),e};function Ht(t){return dy(t)}Object.setPrototypeOf(Ht.prototype,Function.prototype);for(let[t,e]of Object.entries(Re))Ft[t]={get(){let r=Sr(this,js(e.open,e.close,this[_t]),this[Mt]);return Object.defineProperty(this,t,{value:r}),r}};Ft.visible={get(){let t=Sr(this,this[_t],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var qs=(t,e,r,...i)=>t==="rgb"?e==="ansi16m"?Re[r].ansi16m(...i):e==="ansi256"?Re[r].ansi256(Re.rgbToAnsi256(...i)):Re[r].ansi(Re.rgbToAnsi(...i)):t==="hex"?qs("rgb",e,r,...Re.hexToRgb(...i)):Re[r][t](...i),my=["rgb","hex","ansi256"];for(let t of my){Ft[t]={get(){let{level:r}=this;return function(...i){let s=js(qs(t,oc[r],"color",...i),Re.color.close,this[_t]);return Sr(this,s,this[Mt])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Ft[e]={get(){let{level:r}=this;return function(...i){let s=js(qs(t,oc[r],"bgColor",...i),Re.bgColor.close,this[_t]);return Sr(this,s,this[Mt])}}}}var gy=Object.defineProperties(()=>{},{...Ft,level:{enumerable:!0,get(){return this[Ns].level},set(t){this[Ns].level=t}}}),js=(t,e,r)=>{let i,s;return r===void 0?(i=t,s=e):(i=r.openAll+t,s=e+r.closeAll),{open:t,close:e,openAll:i,closeAll:s,parent:r}},Sr=(t,e,r)=>{let i=(...s)=>Dy(i,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(i,gy),i[Ns]=t,i[_t]=e,i[Mt]=r,i},Dy=(t,e)=>{if(t.level<=0||!e)return t[Mt]?"":e;let r=t[_t];if(r===void 0)return e;let{openAll:i,closeAll:s}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=rc(e,r.close,r.open),r=r.parent;let n=e.indexOf(`
|
|
64
|
+
`);return n!==-1&&(e=ic(e,s,i,n)),i+e+s};Object.defineProperties(Ht.prototype,Ft);var yy=Ht(),NS=Ht({level:nc?nc.level:0});var G=yy;var V=q(require("path"),1);var Ms=q(require("node:process"),1),ac=Ms.default.env.npm_package_json,Or=Ms.default.env.npm_config_user_agent,jS=!!(Or&&Or.startsWith("npm")),MS=!!(ac&&ac.endsWith("package.json"));var uc=!!(Or&&Or.startsWith("yarn"));var Kh=require("node:buffer"),Yh=q(require("node:path"),1),Wr=q(require("node:child_process"),1),Ut=q(require("node:process"),1),Xh=q(Xc(),1);function Qs(t){let e=typeof t=="string"?`
|
|
65
|
+
`:10,r=typeof t=="string"?"\r":13;return t[t.length-1]===e&&(t=t.slice(0,-1)),t[t.length-1]===r&&(t=t.slice(0,-1)),t}var Gt=q(require("node:process"),1),wt=q(require("node:path"),1),Zs=require("node:url");function Tr(t={}){let{env:e=process.env,platform:r=process.platform}=t;return r!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"}var Wy=({cwd:t=Gt.default.cwd(),path:e=Gt.default.env[Tr()],preferLocal:r=!0,execPath:i=Gt.default.execPath,addExecPath:s=!0}={})=>{let n=t instanceof URL?(0,Zs.fileURLToPath)(t):t,o=wt.default.resolve(n),a=[];return r&&Uy(a,o),s&&zy(a,i,o),[...a,e].join(wt.default.delimiter)},Uy=(t,e)=>{let r;for(;r!==e;)t.push(wt.default.join(e,"node_modules/.bin")),r=e,e=wt.default.resolve(e,"..")},zy=(t,e,r)=>{let i=e instanceof URL?(0,Zs.fileURLToPath)(e):e;t.push(wt.default.resolve(r,i,".."))},Qc=({env:t=Gt.default.env,...e}={})=>{t={...t};let r=Tr({env:t});return e.path=t[r],t[r]=Wy(e),t};var Ky=(t,e,r,i)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;let s=Object.getOwnPropertyDescriptor(t,r),n=Object.getOwnPropertyDescriptor(e,r);!Yy(s,n)&&i||Object.defineProperty(t,r,n)},Yy=function(t,e){return t===void 0||t.configurable||t.writable===e.writable&&t.enumerable===e.enumerable&&t.configurable===e.configurable&&(t.writable||t.value===e.value)},Xy=(t,e)=>{let r=Object.getPrototypeOf(e);r!==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,r)},Qy=(t,e)=>`/* Wrapped ${t}*/
|
|
66
|
+
${e}`,Zy=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Jy=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),eE=(t,e,r)=>{let i=r===""?"":`with ${r.trim()}() `,s=Qy.bind(null,i,e.toString());Object.defineProperty(s,"name",Jy),Object.defineProperty(t,"toString",{...Zy,value:s})};function Js(t,e,{ignoreNonConfigurable:r=!1}={}){let{name:i}=t;for(let s of Reflect.ownKeys(e))Ky(t,e,s,r);return Xy(t,e),eE(t,e,i),t}var Pr=new WeakMap,Zc=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,s=t.displayName||t.name||"<anonymous>",n=function(...o){if(Pr.set(n,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${s}\` can only be called once`);return r};return Js(n,t),Pr.set(n,i),n};Zc.callCount=t=>{if(!Pr.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Pr.get(t)};var Jc=Zc;var ah=q(require("node:process"),1);var nh=require("node:os");var eh=()=>{let t=rh-th+1;return Array.from({length:t},tE)},tE=(t,e)=>({name:`SIGRT${e+1}`,number:th+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),th=34,rh=64;var sh=require("node:os");var ih=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var en=()=>{let t=eh();return[...ih,...t].map(rE)},rE=({name:t,number:e,description:r,action:i,forced:s=!1,standard:n})=>{let{signals:{[t]:o}}=sh.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:s,standard:n}};var iE=()=>{let t=en();return Object.fromEntries(t.map(sE))},sE=({name:t,number:e,description:r,supported:i,action:s,forced:n,standard:o})=>[t,{name:t,number:e,description:r,supported:i,action:s,forced:n,standard:o}],oh=iE(),nE=()=>{let t=en(),e=65,r=Array.from({length:e},(i,s)=>oE(s,t));return Object.assign({},...r)},oE=(t,e)=>{let r=aE(t,e);if(r===void 0)return{};let{name:i,description:s,supported:n,action:o,forced:a,standard:u}=r;return{[t]:{name:i,number:t,description:s,supported:n,action:o,forced:a,standard:u}}},aE=(t,e)=>{let r=e.find(({name:i})=>nh.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},g1=nE();var uE=({timedOut:t,timeout:e,errorCode:r,signal:i,signalDescription:s,exitCode:n,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:i!==void 0?`was killed with ${i} (${s})`:n!==void 0?`failed with exit code ${n}`:"failed",Vt=({stdout:t,stderr:e,all:r,error:i,signal:s,exitCode:n,command:o,escapedCommand:a,timedOut:u,isCanceled:l,killed:c,parsed:{options:{timeout:h,cwd:f=ah.default.cwd()}}})=>{n=n===null?void 0:n,s=s===null?void 0:s;let d=s===void 0?void 0:oh[s].description,m=i&&i.code,C=`Command ${uE({timedOut:u,timeout:h,errorCode:m,signal:s,signalDescription:d,exitCode:n,isCanceled:l})}: ${o}`,F=Object.prototype.toString.call(i)==="[object Error]",x=F?`${C}
|
|
67
|
+
${i.message}`:C,_=[x,e,t].filter(Boolean).join(`
|
|
68
|
+
`);return F?(i.originalMessage=i.message,i.message=_):i=new Error(_),i.shortMessage=x,i.command=o,i.escapedCommand=a,i.exitCode=n,i.signal=s,i.signalDescription=d,i.stdout=t,i.stderr=e,i.cwd=f,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!u,i.isCanceled=l,i.killed=c&&!u,i};var $r=["stdin","stdout","stderr"],lE=t=>$r.some(e=>t[e]!==void 0),uh=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return $r.map(i=>t[i]);if(lE(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${$r.map(i=>`\`${i}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,$r.length);return Array.from({length:r},(i,s)=>e[s])};var lh=q(require("node:os"),1);var lt=[];lt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&<.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&<.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var Br=t=>!!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",tn=Symbol.for("signal-exit emitter"),rn=globalThis,cE=Object.defineProperty.bind(Object),sn=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(rn[tn])return rn[tn];cE(rn,tn,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,r){this.listeners[e].push(r)}removeListener(e,r){let i=this.listeners[e],s=i.indexOf(r);s!==-1&&(s===0&&i.length===1?i.length=0:i.splice(s,1))}emit(e,r,i){if(this.emitted[e])return!1;this.emitted[e]=!0;let s=!1;for(let n of this.listeners[e])s=n(r,i)===!0||s;return e==="exit"&&(s=this.emit("afterExit",r,i)||s),s}},Ir=class{},hE=t=>({onExit(e,r){return t.onExit(e,r)},load(){return t.load()},unload(){return t.unload()}}),nn=class extends Ir{onExit(){return()=>{}}load(){}unload(){}},on=class extends Ir{#o=an.platform==="win32"?"SIGINT":"SIGHUP";#r=new sn;#e;#s;#f;#t={};#n=!1;constructor(e){super(),this.#e=e,this.#t={};for(let r of lt)this.#t[r]=()=>{let i=this.#e.listeners(r),{count:s}=this.#r,n=e;if(typeof n.__signal_exit_emitter__=="object"&&typeof n.__signal_exit_emitter__.count=="number"&&(s+=n.__signal_exit_emitter__.count),i.length===s){this.unload();let o=this.#r.emit("exit",null,r),a=r==="SIGHUP"?this.#o:r;o||e.kill(e.pid,a)}};this.#f=e.reallyExit,this.#s=e.emit}onExit(e,r){if(!Br(this.#e))return()=>{};this.#n===!1&&this.load();let i=r?.alwaysLast?"afterExit":"exit";return this.#r.on(i,e),()=>{this.#r.removeListener(i,e),this.#r.listeners.exit.length===0&&this.#r.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#n){this.#n=!0,this.#r.count+=1;for(let e of lt)try{let r=this.#t[e];r&&this.#e.on(e,r)}catch{}this.#e.emit=(e,...r)=>this.#p(e,...r),this.#e.reallyExit=e=>this.#i(e)}}unload(){this.#n&&(this.#n=!1,lt.forEach(e=>{let r=this.#t[e];if(!r)throw new Error("Listener not defined for signal: "+e);try{this.#e.removeListener(e,r)}catch{}}),this.#e.emit=this.#s,this.#e.reallyExit=this.#f,this.#r.count-=1)}#i(e){return Br(this.#e)?(this.#e.exitCode=e||0,this.#r.emit("exit",this.#e.exitCode,null),this.#f.call(this.#e,this.#e.exitCode)):0}#p(e,...r){let i=this.#s;if(e==="exit"&&Br(this.#e)){typeof r[0]=="number"&&(this.#e.exitCode=r[0]);let s=i.call(this.#e,e,...r);return this.#r.emit("exit",this.#e.exitCode,null),s}else return i.call(this.#e,e,...r)}},an=globalThis.process,{onExit:kr,load:C1,unload:w1}=hE(Br(an)?new on(an):new nn);var fE=1e3*5,ch=(t,e="SIGTERM",r={})=>{let i=t(e);return pE(t,e,r,i),i},pE=(t,e,r,i)=>{if(!dE(e,r,i))return;let s=gE(r),n=setTimeout(()=>{t("SIGKILL")},s);n.unref&&n.unref()},dE=(t,{forceKillAfterTimeout:e},r)=>mE(t)&&e!==!1&&r,mE=t=>t===lh.default.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",gE=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return fE;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},hh=(t,e)=>{t.kill()&&(e.isCanceled=!0)},DE=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},fh=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let s,n=new Promise((a,u)=>{s=setTimeout(()=>{DE(t,r,u)},e)}),o=i.finally(()=>{clearTimeout(s)});return Promise.race([n,o])},ph=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},dh=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let s=kr(()=>{t.kill()});return i.finally(()=>{s()})};var mh=require("node:fs"),gh=require("node:child_process");function Lr(t){return t!==null&&typeof t=="object"&&typeof t.pipe=="function"}function un(t){return Lr(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object"}var yE=t=>t instanceof gh.ChildProcess&&typeof t.then=="function",ln=(t,e,r)=>{if(typeof r=="string")return t[e].pipe((0,mh.createWriteStream)(r)),t;if(un(r))return t[e].pipe(r),t;if(!yE(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!un(r.stdin))throw new TypeError("The target child process's stdin must be available.");return t[e].pipe(r.stdin),r},Dh=t=>{t.stdout!==null&&(t.pipeStdout=ln.bind(void 0,t,"stdout")),t.stderr!==null&&(t.pipeStderr=ln.bind(void 0,t,"stderr")),t.all!==void 0&&(t.pipeAll=ln.bind(void 0,t,"all"))};var Gr=require("node:fs"),Oh=require("node:timers/promises");var Wt=async(t,{init:e,convertChunk:r,getSize:i,truncateChunk:s,addChunk:n,getFinalChunk:o,finalize:a},{maxBuffer:u=Number.POSITIVE_INFINITY}={})=>{if(!_E(t))throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");let l=e();l.length=0;try{for await(let c of t){let h=FE(c),f=r[h](c,l);_h({convertedChunk:f,state:l,getSize:i,truncateChunk:s,addChunk:n,maxBuffer:u})}return EE({state:l,convertChunk:r,getSize:i,truncateChunk:s,addChunk:n,getFinalChunk:o,maxBuffer:u}),a(l)}catch(c){throw c.bufferedData=a(l),c}},EE=({state:t,getSize:e,truncateChunk:r,addChunk:i,getFinalChunk:s,maxBuffer:n})=>{let o=s(t);o!==void 0&&_h({convertedChunk:o,state:t,getSize:e,truncateChunk:r,addChunk:i,maxBuffer:n})},_h=({convertedChunk:t,state:e,getSize:r,truncateChunk:i,addChunk:s,maxBuffer:n})=>{let o=r(t),a=e.length+o;if(a<=n){yh(t,e,s,a);return}let u=i(t,n-e.length);throw u!==void 0&&yh(u,e,s,n),new Nr},yh=(t,e,r,i)=>{e.contents=r(t,e,i),e.length=i},_E=t=>typeof t=="object"&&t!==null&&typeof t[Symbol.asyncIterator]=="function",FE=t=>{let e=typeof t;if(e==="string")return"string";if(e!=="object"||t===null)return"others";if(globalThis.Buffer?.isBuffer(t))return"buffer";let r=Eh.call(t);return r==="[object ArrayBuffer]"?"arrayBuffer":r==="[object DataView]"?"dataView":Number.isInteger(t.byteLength)&&Number.isInteger(t.byteOffset)&&Eh.call(t.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:Eh}=Object.prototype,Nr=class extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}};var cn=t=>t,hn=()=>{},fn=({contents:t})=>t,qr=t=>{throw new Error(`Streams in object mode are not supported: ${String(t)}`)},jr=t=>t.length;async function pn(t,e){return Wt(t,RE,e)}var bE=()=>({contents:new ArrayBuffer(0)}),CE=t=>wE.encode(t),wE=new TextEncoder,Fh=t=>new Uint8Array(t),bh=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),AE=(t,e)=>t.slice(0,e),vE=(t,{contents:e,length:r},i)=>{let s=Ah()?SE(e,i):xE(e,i);return new Uint8Array(s).set(t,r),s},xE=(t,e)=>{if(e<=t.byteLength)return t;let r=new ArrayBuffer(wh(e));return new Uint8Array(r).set(new Uint8Array(t),0),r},SE=(t,e)=>{if(e<=t.maxByteLength)return t.resize(e),t;let r=new ArrayBuffer(e,{maxByteLength:wh(e)});return new Uint8Array(r).set(new Uint8Array(t),0),r},wh=t=>Ch**Math.ceil(Math.log(t)/Math.log(Ch)),Ch=2,OE=({contents:t,length:e})=>Ah()?t:t.slice(0,e),Ah=()=>"resize"in ArrayBuffer.prototype,RE={init:bE,convertChunk:{string:CE,buffer:Fh,arrayBuffer:Fh,dataView:bh,typedArray:bh,others:qr},getSize:jr,truncateChunk:AE,addChunk:vE,getFinalChunk:hn,finalize:OE};async function Mr(t,e){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return vh(await pn(t,e))}catch(r){throw r.bufferedData!==void 0&&(r.bufferedData=vh(r.bufferedData)),r}}var vh=t=>globalThis.Buffer.from(t);async function dn(t,e){return Wt(t,IE,e)}var TE=()=>({contents:"",textDecoder:new TextDecoder}),Hr=(t,{textDecoder:e})=>e.decode(t,{stream:!0}),PE=(t,{contents:e})=>e+t,$E=(t,e)=>t.slice(0,e),BE=({textDecoder:t})=>{let e=t.decode();return e===""?void 0:e},IE={init:TE,convertChunk:{string:cn,buffer:Hr,arrayBuffer:Hr,dataView:Hr,typedArray:Hr,others:qr},getSize:jr,truncateChunk:$E,addChunk:PE,getFinalChunk:BE,finalize:fn};var Rh=q(Sh(),1),Th=t=>{if(t!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},LE=({input:t,inputFile:e})=>typeof e!="string"?t:(Th(t),(0,Gr.readFileSync)(e)),Ph=t=>{let e=LE(t);if(Lr(e))throw new TypeError("The `input` option cannot be a stream in sync mode");return e},NE=({input:t,inputFile:e})=>typeof e!="string"?t:(Th(t),(0,Gr.createReadStream)(e)),$h=(t,e)=>{let r=NE(e);r!==void 0&&(Lr(r)?r.pipe(t.stdin):t.stdin.end(r))},Bh=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=(0,Rh.default)();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},mn=async(t,e)=>{if(!(!t||e===void 0)){await(0,Oh.setTimeout)(0),t.destroy();try{return await e}catch(r){return r.bufferedData}}},gn=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e==="utf8"||e==="utf-8"?dn(t,{maxBuffer:i}):e===null||e==="buffer"?Mr(t,{maxBuffer:i}):qE(t,i,e)},qE=async(t,e,r)=>(await Mr(t,{maxBuffer:e})).toString(r),Ih=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:s,maxBuffer:n},o)=>{let a=gn(t,{encoding:i,buffer:s,maxBuffer:n}),u=gn(e,{encoding:i,buffer:s,maxBuffer:n}),l=gn(r,{encoding:i,buffer:s,maxBuffer:n*2});try{return await Promise.all([o,a,u,l])}catch(c){return Promise.all([{error:c,signal:c.signal,timedOut:c.timedOut},mn(t,a),mn(e,u),mn(r,l)])}};var jE=(async()=>{})().constructor.prototype,ME=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(jE,t)]),Dn=(t,e)=>{for(let[r,i]of ME){let s=typeof e=="function"?(...n)=>Reflect.apply(i.value,e(),n):i.value.bind(e);Reflect.defineProperty(t,r,{...i,value:s})}},kh=t=>new Promise((e,r)=>{t.on("exit",(i,s)=>{e({exitCode:i,signal:s})}),t.on("error",i=>{r(i)}),t.stdin&&t.stdin.on("error",i=>{r(i)})});var qh=require("node:buffer"),jh=require("node:child_process"),Mh=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],HE=/^[\w.-]+$/,GE=t=>typeof t!="string"||HE.test(t)?t:`"${t.replaceAll('"','\\"')}"`,yn=(t,e)=>Mh(t,e).join(" "),En=(t,e)=>Mh(t,e).map(r=>GE(r)).join(" "),Hh=/ +/g,Gh=t=>{let e=[];for(let r of t.trim().split(Hh)){let i=e.at(-1);i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e},Lh=t=>{let e=typeof t;if(e==="string")return t;if(e==="number")return String(t);if(e==="object"&&t!==null&&!(t instanceof jh.ChildProcess)&&"stdout"in t){let r=typeof t.stdout;if(r==="string")return t.stdout;if(qh.Buffer.isBuffer(t.stdout))return t.stdout.toString();throw new TypeError(`Unexpected "${r}" stdout in template expression`)}throw new TypeError(`Unexpected "${e}" in template expression`)},Nh=(t,e,r)=>r||t.length===0||e.length===0?[...t,...e]:[...t.slice(0,-1),`${t.at(-1)}${e[0]}`,...e.slice(1)],VE=({templates:t,expressions:e,tokens:r,index:i,template:s})=>{let n=s??t.raw[i],o=n.split(Hh).filter(Boolean),a=Nh(r,o,n.startsWith(" "));if(i===e.length)return a;let u=e[i],l=Array.isArray(u)?u.map(c=>Lh(c)):[Lh(u)];return Nh(a,l,n.endsWith(" "))},_n=(t,e)=>{let r=[];for(let[i,s]of t.entries())r=VE({templates:t,expressions:e,tokens:r,index:i,template:s});return r};var Vh=require("node:util"),Wh=q(require("node:process"),1),Uh=(0,Vh.debuglog)("execa").enabled,Vr=(t,e)=>String(t).padStart(e,"0"),WE=()=>{let t=new Date;return`${Vr(t.getHours(),2)}:${Vr(t.getMinutes(),2)}:${Vr(t.getSeconds(),2)}.${Vr(t.getMilliseconds(),3)}`},Fn=(t,{verbose:e})=>{e&&Wh.default.stderr.write(`[${WE()}] ${t}
|
|
69
|
+
`)};var UE=1e3*1e3*100,zE=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:s})=>{let n=e?{...Ut.default.env,...t}:t;return r?Qc({env:n,cwd:i,execPath:s}):n},Qh=(t,e,r={})=>{let i=Xh.default._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:UE,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||Ut.default.cwd(),execPath:Ut.default.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Uh,...r},r.env=zE(r),r.stdio=uh(r),Ut.default.platform==="win32"&&Yh.default.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},zt=(t,e,r)=>typeof e!="string"&&!Kh.Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Qs(e):e;function Ur(t,e,r){let i=Qh(t,e,r),s=yn(t,e),n=En(t,e);Fn(n,i.options),ph(i.options);let o;try{o=Wr.default.spawn(i.file,i.args,i.options)}catch(d){let m=new Wr.default.ChildProcess,g=Promise.reject(Vt({error:d,stdout:"",stderr:"",all:"",command:s,escapedCommand:n,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return Dn(m,g),m}let a=kh(o),u=fh(o,i.options,a),l=dh(o,i.options,u),c={isCanceled:!1};o.kill=ch.bind(null,o.kill.bind(o)),o.cancel=hh.bind(null,o,c);let f=Jc(async()=>{let[{error:d,exitCode:m,signal:g,timedOut:C},F,x,_]=await Ih(o,i.options,l),R=zt(i.options,F),S=zt(i.options,x),P=zt(i.options,_);if(d||m!==0||g!==null){let B=Vt({error:d,exitCode:m,signal:g,stdout:R,stderr:S,all:P,command:s,escapedCommand:n,parsed:i,timedOut:C,isCanceled:c.isCanceled||(i.options.signal?i.options.signal.aborted:!1),killed:o.killed});if(!i.options.reject)return B;throw B}return{command:s,escapedCommand:n,exitCode:0,stdout:R,stderr:S,all:P,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return $h(o,i.options),o.all=Bh(o,i.options),Dh(o),Dn(o,f),o}function KE(t,e,r){let i=Qh(t,e,r),s=yn(t,e),n=En(t,e);Fn(n,i.options);let o=Ph(i.options),a;try{a=Wr.default.spawnSync(i.file,i.args,{...i.options,input:o})}catch(c){throw Vt({error:c,stdout:"",stderr:"",all:"",command:s,escapedCommand:n,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let u=zt(i.options,a.stdout,a.error),l=zt(i.options,a.stderr,a.error);if(a.error||a.status!==0||a.signal!==null){let c=Vt({stdout:u,stderr:l,error:a.error,signal:a.signal,exitCode:a.status,command:s,escapedCommand:n,parsed:i,timedOut:a.error&&a.error.code==="ETIMEDOUT",isCanceled:!1,killed:a.signal!==null});if(!i.options.reject)return c;throw c}return{command:s,escapedCommand:n,exitCode:0,stdout:u,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var YE=({input:t,inputFile:e,stdio:r})=>t===void 0&&e===void 0&&r===void 0?{stdin:"inherit"}:{},zh=(t={})=>({preferLocal:!0,...YE(t),...t});function Zh(t){function e(r,...i){if(!Array.isArray(r))return Zh({...t,...r});let[s,...n]=_n(r,i);return Ur(s,n,zh(t))}return e.sync=(r,...i)=>{if(!Array.isArray(r))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[s,...n]=_n(r,i);return KE(s,n,zh(t))},e}var g2=Zh();function zr(t,e){let[r,...i]=Gh(t);return Ur(r,i,e)}var ff=q(hf(),1),{program:A2,createCommand:v2,createArgument:x2,createOption:S2,CommanderError:O2,InvalidArgumentError:R2,InvalidOptionArgumentError:T2,Command:pf,Argument:P2,Option:$2,Help:B2}=ff.default;var Qt=q(require("node:process"),1);var jn=q(require("node:process"),1);var Yt=q(require("node:process"),1);var h_=(t,e,r,i)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;let s=Object.getOwnPropertyDescriptor(t,r),n=Object.getOwnPropertyDescriptor(e,r);!f_(s,n)&&i||Object.defineProperty(t,r,n)},f_=function(t,e){return t===void 0||t.configurable||t.writable===e.writable&&t.enumerable===e.enumerable&&t.configurable===e.configurable&&(t.writable||t.value===e.value)},p_=(t,e)=>{let r=Object.getPrototypeOf(e);r!==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,r)},d_=(t,e)=>`/* Wrapped ${t}*/
|
|
70
|
+
${e}`,m_=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),g_=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),D_=(t,e,r)=>{let i=r===""?"":`with ${r.trim()}() `,s=d_.bind(null,i,e.toString());Object.defineProperty(s,"name",g_);let{writable:n,enumerable:o,configurable:a}=m_;Object.defineProperty(t,"toString",{value:s,writable:n,enumerable:o,configurable:a})};function qn(t,e,{ignoreNonConfigurable:r=!1}={}){let{name:i}=t;for(let s of Reflect.ownKeys(e))h_(t,e,s,r);return p_(t,e),D_(t,e,i),t}var Qr=new WeakMap,df=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,s=t.displayName||t.name||"<anonymous>",n=function(...o){if(Qr.set(n,++i),i===1)r=t.apply(this,o),t=void 0;else if(e.throw===!0)throw new Error(`Function \`${s}\` can only be called once`);return r};return qn(n,t),Qr.set(n,i),n};df.callCount=t=>{if(!Qr.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Qr.get(t)};var mf=df;var gf=Yt.default.stderr.isTTY?Yt.default.stderr:Yt.default.stdout.isTTY?Yt.default.stdout:void 0,y_=gf?mf(()=>{kr(()=>{gf.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},Df=y_;var Zr=!1,At={};At.show=(t=jn.default.stderr)=>{t.isTTY&&(Zr=!1,t.write("\x1B[?25h"))};At.hide=(t=jn.default.stderr)=>{t.isTTY&&(Df(),Zr=!0,t.write("\x1B[?25l"))};At.toggle=(t,e)=>{t!==void 0&&(Zr=t),Zr?At.show(e):At.hide(e)};var Mn=At;var Zt=q(Hn(),1);var be=q(require("node:process"),1);function Gn(){return be.default.platform!=="win32"?be.default.env.TERM!=="linux":!!be.default.env.CI||!!be.default.env.WT_SESSION||!!be.default.env.TERMINUS_SUBLIME||be.default.env.ConEmuTask==="{cmd::Cmder}"||be.default.env.TERM_PROGRAM==="Terminus-Sublime"||be.default.env.TERM_PROGRAM==="vscode"||be.default.env.TERM==="xterm-256color"||be.default.env.TERM==="alacritty"||be.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var __={info:G.blue("\u2139"),success:G.green("\u2714"),warning:G.yellow("\u26A0"),error:G.red("\u2716")},F_={info:G.blue("i"),success:G.green("\u221A"),warning:G.yellow("\u203C"),error:G.red("\xD7")},b_=Gn()?__:F_,Xt=b_;function Vn({onlyFirst:t=!1}={}){let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,t?void 0:"g")}var C_=Vn();function Wn(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(C_,"")}function Un({onlyFirst:t=!1}={}){let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,t?void 0:"g")}var w_=Un();function zn(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(w_,"")}function Ff(t){return t===161||t===164||t===167||t===168||t===170||t===173||t===174||t>=176&&t<=180||t>=182&&t<=186||t>=188&&t<=191||t===198||t===208||t===215||t===216||t>=222&&t<=225||t===230||t>=232&&t<=234||t===236||t===237||t===240||t===242||t===243||t>=247&&t<=250||t===252||t===254||t===257||t===273||t===275||t===283||t===294||t===295||t===299||t>=305&&t<=307||t===312||t>=319&&t<=322||t===324||t>=328&&t<=331||t===333||t===338||t===339||t===358||t===359||t===363||t===462||t===464||t===466||t===468||t===470||t===472||t===474||t===476||t===593||t===609||t===708||t===711||t>=713&&t<=715||t===717||t===720||t>=728&&t<=731||t===733||t===735||t>=768&&t<=879||t>=913&&t<=929||t>=931&&t<=937||t>=945&&t<=961||t>=963&&t<=969||t===1025||t>=1040&&t<=1103||t===1105||t===8208||t>=8211&&t<=8214||t===8216||t===8217||t===8220||t===8221||t>=8224&&t<=8226||t>=8228&&t<=8231||t===8240||t===8242||t===8243||t===8245||t===8251||t===8254||t===8308||t===8319||t>=8321&&t<=8324||t===8364||t===8451||t===8453||t===8457||t===8467||t===8470||t===8481||t===8482||t===8486||t===8491||t===8531||t===8532||t>=8539&&t<=8542||t>=8544&&t<=8555||t>=8560&&t<=8569||t===8585||t>=8592&&t<=8601||t===8632||t===8633||t===8658||t===8660||t===8679||t===8704||t===8706||t===8707||t===8711||t===8712||t===8715||t===8719||t===8721||t===8725||t===8730||t>=8733&&t<=8736||t===8739||t===8741||t>=8743&&t<=8748||t===8750||t>=8756&&t<=8759||t===8764||t===8765||t===8776||t===8780||t===8786||t===8800||t===8801||t>=8804&&t<=8807||t===8810||t===8811||t===8814||t===8815||t===8834||t===8835||t===8838||t===8839||t===8853||t===8857||t===8869||t===8895||t===8978||t>=9312&&t<=9449||t>=9451&&t<=9547||t>=9552&&t<=9587||t>=9600&&t<=9615||t>=9618&&t<=9621||t===9632||t===9633||t>=9635&&t<=9641||t===9650||t===9651||t===9654||t===9655||t===9660||t===9661||t===9664||t===9665||t>=9670&&t<=9672||t===9675||t>=9678&&t<=9681||t>=9698&&t<=9701||t===9711||t===9733||t===9734||t===9737||t===9742||t===9743||t===9756||t===9758||t===9792||t===9794||t===9824||t===9825||t>=9827&&t<=9829||t>=9831&&t<=9834||t===9836||t===9837||t===9839||t===9886||t===9887||t===9919||t>=9926&&t<=9933||t>=9935&&t<=9939||t>=9941&&t<=9953||t===9955||t===9960||t===9961||t>=9963&&t<=9969||t===9972||t>=9974&&t<=9977||t===9979||t===9980||t===9982||t===9983||t===10045||t>=10102&&t<=10111||t>=11094&&t<=11097||t>=12872&&t<=12879||t>=57344&&t<=63743||t>=65024&&t<=65039||t===65533||t>=127232&&t<=127242||t>=127248&&t<=127277||t>=127280&&t<=127337||t>=127344&&t<=127373||t===127375||t===127376||t>=127387&&t<=127404||t>=917760&&t<=917999||t>=983040&&t<=1048573||t>=1048576&&t<=1114109}function bf(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function Cf(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9776&&t<=9783||t>=9800&&t<=9811||t===9855||t>=9866&&t<=9871||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t===94192||t===94193||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101631&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129673||t>=129679&&t<=129734||t>=129742&&t<=129756||t>=129759&&t<=129769||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}function A_(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}function wf(t,{ambiguousAsWide:e=!1}={}){return A_(t),bf(t)||Cf(t)||e&&Ff(t)?2:1}var xf=q(vf(),1),v_=new Intl.Segmenter,x_=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function Kn(t,e={}){if(typeof t!="string"||t.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:i=!1}=e;if(i||(t=zn(t)),t.length===0)return 0;let s=0,n={ambiguousAsWide:!r};for(let{segment:o}of v_.segment(t)){let a=o.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!x_.test(o)){if((0,xf.default)().test(o)){s+=2;continue}s+=wf(a,n)}}return s}function Yn({stream:t=process.stdout}={}){return!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var Xn=q(require("node:process"),1);function Qn(){let{env:t}=Xn.default,{TERM:e,TERM_PROGRAM:r}=t;return Xn.default.platform!=="win32"?e!=="linux":!!t.WT_SESSION||!!t.TERMINUS_SUBLIME||t.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||e==="xterm-256color"||e==="alacritty"||e==="rxvt-unicode"||e==="rxvt-unicode-256color"||t.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Te=q(require("node:process"),1),S_=3,Zn=class{#o=0;start(){this.#o++,this.#o===1&&this.#r()}stop(){if(this.#o<=0)throw new Error("`stop` called more times than `start`");this.#o--,this.#o===0&&this.#e()}#r(){Te.default.platform==="win32"||!Te.default.stdin.isTTY||(Te.default.stdin.setRawMode(!0),Te.default.stdin.on("data",this.#s),Te.default.stdin.resume())}#e(){Te.default.stdin.isTTY&&(Te.default.stdin.off("data",this.#s),Te.default.stdin.pause(),Te.default.stdin.setRawMode(!1))}#s(e){e[0]===S_&&Te.default.emit("SIGINT")}},O_=new Zn,Jn=O_;var R_=q(Hn(),1),eo=class{#o=0;#r=!1;#e=0;#s=-1;#f=0;#t;#n;#i;#p;#m;#l;#c;#h;#g;#a;#u;color;constructor(e){typeof e=="string"&&(e={text:e}),this.#t={color:"cyan",stream:Qt.default.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#t.color,this.spinner=this.#t.spinner,this.#m=this.#t.interval,this.#i=this.#t.stream,this.#l=typeof this.#t.isEnabled=="boolean"?this.#t.isEnabled:Yn({stream:this.#i}),this.#c=typeof this.#t.isSilent=="boolean"?this.#t.isSilent:!1,this.text=this.#t.text,this.prefixText=this.#t.prefixText,this.suffixText=this.#t.suffixText,this.indent=this.#t.indent,Qt.default.env.NODE_ENV==="test"&&(this._stream=this.#i,this._isEnabled=this.#l,Object.defineProperty(this,"_linesToClear",{get(){return this.#o},set(r){this.#o=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#s}}),Object.defineProperty(this,"_lineCount",{get(){return this.#e}}))}get indent(){return this.#h}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#h=e,this.#d()}get interval(){return this.#m??this.#n.interval??100}get spinner(){return this.#n}set spinner(e){if(this.#s=-1,this.#m=void 0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#n=e}else if(!Qn())this.#n=Zt.default.line;else if(e===void 0)this.#n=Zt.default.dots;else if(e!=="default"&&Zt.default[e])this.#n=Zt.default[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#g}set text(e=""){this.#g=e,this.#d()}get prefixText(){return this.#a}set prefixText(e=""){this.#a=e,this.#d()}get suffixText(){return this.#u}set suffixText(e=""){this.#u=e,this.#d()}get isSpinning(){return this.#p!==void 0}#D(e=this.#a,r=" "){return typeof e=="string"&&e!==""?e+r:typeof e=="function"?e()+r:""}#y(e=this.#u,r=" "){return typeof e=="string"&&e!==""?r+e:typeof e=="function"?r+e():""}#d(){let e=this.#i.columns??80,r=this.#D(this.#a,"-"),i=this.#y(this.#u,"-"),s=" ".repeat(this.#h)+r+"--"+this.#g+"--"+i;this.#e=0;for(let n of Wn(s).split(`
|
|
71
|
+
`))this.#e+=Math.max(1,Math.ceil(Kn(n,{countAnsiEscapeCodes:!0})/e))}get isEnabled(){return this.#l&&!this.#c}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#l=e}get isSilent(){return this.#c}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#c=e}frame(){let e=Date.now();(this.#s===-1||e-this.#f>=this.interval)&&(this.#s=++this.#s%this.#n.frames.length,this.#f=e);let{frames:r}=this.#n,i=r[this.#s];this.color&&(i=G[this.color](i));let s=typeof this.#a=="string"&&this.#a!==""?this.#a+" ":"",n=typeof this.text=="string"?" "+this.text:"",o=typeof this.#u=="string"&&this.#u!==""?" "+this.#u:"";return s+i+n+o}clear(){if(!this.#l||!this.#i.isTTY)return this;this.#i.cursorTo(0);for(let e=0;e<this.#o;e++)e>0&&this.#i.moveCursor(0,-1),this.#i.clearLine(1);return(this.#h||this.lastIndent!==this.#h)&&this.#i.cursorTo(this.#h),this.lastIndent=this.#h,this.#o=0,this}render(){return this.#c?this:(this.clear(),this.#i.write(this.frame()),this.#o=this.#e,this)}start(e){return e&&(this.text=e),this.#c?this:this.#l?this.isSpinning?this:(this.#t.hideCursor&&Mn.hide(this.#i),this.#t.discardStdin&&Qt.default.stdin.isTTY&&(this.#r=!0,Jn.start()),this.render(),this.#p=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#i.write(`- ${this.text}
|
|
72
|
+
`),this)}stop(){return this.#l?(clearInterval(this.#p),this.#p=void 0,this.#s=0,this.clear(),this.#t.hideCursor&&Mn.show(this.#i),this.#t.discardStdin&&Qt.default.stdin.isTTY&&this.#r&&(Jn.stop(),this.#r=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Xt.success,text:e})}fail(e){return this.stopAndPersist({symbol:Xt.error,text:e})}warn(e){return this.stopAndPersist({symbol:Xt.warning,text:e})}info(e){return this.stopAndPersist({symbol:Xt.info,text:e})}stopAndPersist(e={}){if(this.#c)return this;let r=e.prefixText??this.#a,i=this.#D(r," "),s=e.symbol??" ",n=e.text??this.text,a=typeof n=="string"?(s?" ":"")+n:"",u=e.suffixText??this.#u,l=this.#y(u," "),c=i+s+a+l+`
|
|
73
|
+
`;return this.stop(),this.#i.write(c),this}};function ct(t){return new eo(t)}var Be=q(require("fs"),1),Vi=require("fs/promises");var Sf={name:"create-chayns-app",version:"1.2.0",private:!1,description:"Create a new chayns\xAE development project in one command.",keywords:["chayns","react","chayns-toolkit","chayns-components","starter-kit"],bugs:{url:"https://github.com/TobitSoftware/create-chayns-app/issues",email:"leonhard.driesch@tobit.com"},repository:{type:"git",url:"git+https://github.com/TobitSoftware/create-chayns-app.git"},license:"MIT",author:{name:"Leonhard Driesch",email:"leonhard.driesch@tobit.com"},main:"index.js",bin:{"create-chayns-app":"dist/index.cjs"},type:"module",files:["dist","templates"],engines:{node:">=18"},scripts:{build:"node ./scripts/build.js",watch:"node ./scripts/watch.js",format:"prettier . --ignore-path .gitignore --write",prepublishOnly:"npm run build",start:"node src/index.js"},devDependencies:{"@eslint/js":"^9.19.0",chalk:"^5.4.1",commander:"^13.1.0",enquirer:"^2.4.1",esbuild:"^0.24.2",eslint:"^9.19.0",execa:"^8.0.1","fast-glob":"^3.3.3","is-npm":"^6.0.0",ora:"^8.1.1",prettier:"^3.4.2","prettier-plugin-packagejson":"^2.5.8",semver:"^7.7.1","validate-npm-package-name":"^6.0.0"},publishConfig:{access:"public"}};var Jt={page:"A complete page",pagemakerPlugin:"A pagemaker plugin"},er={v4:"v4 (Javascript api)",v5:"v5 (React api (new))"},ei=[{name:"Yes",value:!0},{name:"No",value:!1}];var Ri=q(require("path"),1),$t=require("fs/promises"),Em=q(ym(),1);async function dt({destination:t,templateDir:e,adjustContent:r}){let s=(await(0,Em.default)("**/*",{cwd:e})).map(async n=>{let o=await(0,$t.readFile)(Ri.default.join(e,n),{encoding:"utf-8"});typeof r=="function"&&(o=r(o));let a=n.replace("template-gitignore",".gitignore"),u=Ri.default.join(t,a);await(0,$t.mkdir)(Ri.default.join(u,".."),{recursive:!0}),await(0,$t.writeFile)(u,o)});await Promise.all(s)}function mt(t,e){let r=t;for(let[i,s]of Object.entries(e))r=r.replace(new RegExp(`\\{\\{ ${i} \\}\\}`,"g"),s);return r}var _m={"chayns-components":"latest","prop-types":"latest",react:"18","react-dom":"18"},Fm={"chayns-toolkit":"latest",prettier:"latest","prettier-plugin-packagejson":"latest"},bm=t=>({"@chayns-components/core":"latest","prop-types":"latest",react:String(t),"react-dom":String(t),"chayns-api":"latest"}),Cm={"chayns-toolkit":"latest",prettier:"latest","prettier-plugin-packagejson":"latest"},wm={"react-redux":"latest","@reduxjs/toolkit":"latest"},Am=t=>({typescript:"latest","@types/react":String(t),"@types/react-dom":String(t)}),vm={"@testing-library/jest-dom":"latest","@testing-library/react":"latest","@testing-library/user-event":"latest","@vitejs/plugin-react":"latest","@vitest/coverage-v8":"latest",jsdom:"latest",vitest:"latest"},Ti={"chayns-logger":"latest","tobit-textstrings":"latest"};var yD=require("node:child_process");var ED=q(DD(),1);var iu=async(t,e)=>{let r=e?`${t}@${e}`:t;if(t in Ti)try{let i=await fetch(`https://repo.tobit.ag/repository/npm/${t}`);if(i.ok){let s=await i.json();return e in s["dist-tags"]?`^${s["dist-tags"][e]}`:`^${ED.default.maxSatisfying(Object.keys(s.versions),e)}`}}catch{}try{let i=await new Promise((o,a)=>{(0,yD.exec)(`npm view ${r} version --json`,(u,l)=>{u?a(u):o(l.trim())})}),s=JSON.parse(i);return`^${Array.isArray(s)?s.pop():s}`}catch{}return console.warn(`
|
|
74
|
+
Could not resolve ${G.yellow(r)}`),e||"latest"};var FD=q(require("path"),1),bD=q(require("fs"),1);var Px=(t,e)=>({name:t,version:"1.0.0",private:!0,description:e,keywords:["chayns","chayns-toolkit","react"],scripts:{build:"chayns-toolkit build",dev:"chayns-toolkit dev",start:"chayns-toolkit dev",format:"prettier . --write",lint:"chayns-toolkit lint"},prettier:{proseWrap:"always",singleQuote:!0,tabWidth:4,printWidth:100},eslintConfig:{extends:"@chayns-toolkit"},dependencies:{},devDependencies:{}}),_D=async({name:t,description:e="",devDependencies:r={},dependencies:i={},useTypescript:s,useVitest:n})=>{let o=Px(t,e);for(let[a,u]of Object.entries(r).sort(([l],[c])=>l.localeCompare(c)))o.devDependencies[a]=await iu(a,u);for(let[a,u]of Object.entries(i).sort(([l],[c])=>l.localeCompare(c)))o.dependencies[a]=await iu(a,u);return s&&(o.scripts["check-types"]="tsc"),n&&(o.scripts.test="vitest"),JSON.stringify(o,void 0,4)},su=async({destination:t,projectVersion:e,reactVersion:r,useRedux:i,tobitInternal:s,...n})=>{let{useTypescript:o,useVitest:a}=n,u=ct("Resolving latest versions of required dependencies").start(),l,c=FD.default.join(t,"package.json");if(e===er.v4)l=await _D({...n,dependencies:_m,devDependencies:Fm});else{let h=bm(r),f={...Cm};i&&Object.assign(h,wm),o&&Object.assign(f,Am(r)),a&&Object.assign(f,vm),s&&Object.assign(h,Ti),l=await _D({...n,dependencies:h,devDependencies:f})}u.succeed("Resolved latest versions of required dependencies"),bD.default.writeFileSync(c,l)};function Gi(t){var e=t.match(/[A-Za-z][a-z]*/g)||[];return e.map($x).join(" ")}function $x(t){return t.charAt(0).toUpperCase()+t.substring(1)}var CD=({useTypescript:t,moduleFederation:e,useRedux:r,tobitInternal:i,packageNameUnderscore:s})=>{let n=[],o=0,a=[];e&&t&&a.push("ComponentPropsWithoutRef"),i&&a.push("Suspense"),e&&r&&a.push("useState");let u=a.length?`, { ${a.join(", ")} }`:"";return n.push(`import React${u} from 'react';`),r&&n.push("import { Provider } from 'react-redux';"),n.push(`import { ChaynsProvider${e?", withCompatMode":""} } from 'chayns-api';`),n.push("import { PageProvider } from '@chayns-components/core';"),i&&n.push("import { TextStringProvider } from 'tobit-textstrings';"),n.push("import App from './App';"),r&&n.push(`import ${e?"{ createStore }":"store"} from '../redux-modules';`),i&&e&&n.push("import '../utils/logger';"),n.push(""),i&&(n.push("// TODO: insert your libraryName"),n.push("const libraries = ['<libraryName>'];"),n.push("")),e&&r?(n.push(`const AppWrapper = (${e?"props":""}${e&&t?": ComponentPropsWithoutRef<typeof ChaynsProvider>":""}) => {`),o+=4,n.push(`${" ".repeat(o)}const [store] = useState(createStore);`),n.push(""),n.push(`${" ".repeat(o)}return (`)):n.push(`const AppWrapper = (${e?"props":""}${e&&t?": ComponentPropsWithoutRef<typeof ChaynsProvider>":""}) => (`),o+=4,e&&(n.push(`${" ".repeat(o)}<div className="${s}">`),o+=4,n.push(`${" ".repeat(o)}{/* eslint-disable-next-line react/jsx-props-no-spreading */}`)),n.push(`${" ".repeat(o)}<ChaynsProvider${e?" {...props}":""}>`),o+=4,r&&(n.push(`${" ".repeat(o)}<Provider store={store}>`),o+=4),n.push(`${" ".repeat(o)}<PageProvider>`),o+=4,i&&(n.push(`${" ".repeat(o)}<Suspense>`),o+=4,n.push(`${" ".repeat(o)}<TextStringProvider libraries={libraries}>`),o+=4),n.push(`${" ".repeat(o)}<App />`),i&&(o-=4,n.push(`${" ".repeat(o)}</TextStringProvider>`),o-=4,n.push(`${" ".repeat(o)}</Suspense>`)),o-=4,n.push(`${" ".repeat(o)}</PageProvider>`),r&&(o-=4,n.push(`${" ".repeat(o)}</Provider>`)),o-=4,n.push(`${" ".repeat(o)}</ChaynsProvider>`),e&&(o-=4,n.push(`${" ".repeat(o)}</div>`)),e&&r?(o-=4,n.push(`${" ".repeat(o)});`),n.push("};")):n.push(");"),n.push(""),e?n.push("export default withCompatMode(AppWrapper);"):n.push("export default AppWrapper;"),n.push(""),n.join(`
|
|
75
|
+
`)};var{prompt:st}=wD.default,Bx=new pf,pr=__dirname;Bx.version(Sf.version).option("-G, --no-git","initialize the project without a git repository").option("-C, --no-initial-commit","don't perform an initial commit").option("-I, --no-install","don't install packages after initialization").option("-M, --module-federation","install to use as module (only internal)").option("-T, --tobit-internal","includes tobit internal packages (chayns-logger and tobit-textstrings)").option("-p, --package-manager <manager>","specify the package manager to use (`npm` or `yarn`). Defaults to the one used to execute the command.").action(Ix).parse(process.argv);async function Ix({git:t,initialCommit:e,install:r,packageManager:i,moduleFederation:s,tobitInternal:n}){let o,a;if(n)try{(await fetch("https://repo.tobit.ag",{method:"HEAD",signal:AbortSignal.timeout(3e3)})).ok||(n=!1)}catch{n=!1}s||({projectVersion:o}=await st({type:"select",name:"projectVersion",message:"What api version do you want to use?",choices:Object.values(er)}),{projectType:a}=await st({type:"select",name:"projectType",message:"What type of project do you want to create?",choices:Object.values(Jt)}));let u=!1,l;for(;!u;){let{packageName:g}=await st([{type:"input",name:"packageName",message:"What should the name of your project be?",initial:"my-awesome-project"}]),{validForNewPackages:C,errors:F=[],warnings:x=[]}=(0,AD.default)(g);if(C)u=!0,l=g;else{console.log(`
|
|
76
|
+
${G.hex("#31D1DF")(`\`${g}\``)} is unfortunately not a valid project name, because:`);for(let _ of[...F,...x])console.log(G.hex("#94A3B8")(` - ${_}`));console.log("")}}let{summary:c}=await st({type:"input",message:"How would you summarize this project in a few words?",name:"summary"});function h(g){return mt(g,{"package-name":l,"readable-package-name":Gi(l),description:c,"install-command":d==="yarn"?"yarn":"npm install","run-command":d==="yarn"?"yarn":"npm run","package-name-underscore":l.replace("-","_"),"logger-import":n?`import './utils/logger';
|
|
77
|
+
`:""})}let f=V.default.resolve(l),d=i||(uc?"yarn":"npm");if(o===er.v4){switch(console.log(`
|
|
78
|
+
${G.bold.magentaBright("Awesome!")} Please wait a quick second while we bootstrap your project...
|
|
79
|
+
`),a){case Jt.page:await dt({destination:f,templateDir:V.default.join(` ${pr} `.trim(),"../templates/page"),adjustContent:g=>mt(h(g),{"tapp-style":""})});break;case Jt.pagemakerPlugin:await dt({destination:f,projectName:l,templateDir:V.default.join(` ${pr} `.trim(),"../templates/page"),adjustContent:g=>mt(h(g),{"tapp-style":' style="padding: 0 0 16px !important"'})});break}await su({name:l,description:c,destination:f,projectVersion:o})}else{let{reactVersion:g}=await st({type:"select",name:"reactVersion",message:"Which react version do you want to use?",choices:[{name:"v18",value:18},{name:"v19",value:19}],result(O){return this.map(O)[O]}}),{useRedux:C}=await st({type:"select",name:"useRedux",message:"Do you want to add redux-toolkit?",choices:ei,result(O){return this.map(O)[O]}}),{useTypescript:F}=await st({type:"select",name:"useTypescript",message:"Do you want to add typescript?",choices:ei,result(O){return this.map(O)[O]}}),{useVitest:x}=await st({type:"select",name:"useVitest",message:"Do you want to add vitest?",choices:ei,result(O){return this.map(O)[O]}}),_=O=>V.default.join(` ${pr} `.trim(),O),R=async(O,H,E)=>{let W=await(0,Vi.readFile)(O,{encoding:"utf-8"});E&&(W=mt(W,{"package-name":l,"readable-package-name":Gi(l),description:c,"install-command":d==="yarn"?"yarn":"npm install","run-command":d==="yarn"?"yarn":"npm run"})),await(0,Vi.writeFile)(H,W)},S=O=>mt(h(O),{"tapp-style":a===Jt.pagemakerPlugin?' style="padding: 0 0 16px !important"':""}),P=F?"ts":"js";if(C){let O=`../templates/api-v5/shared/${P}/src`;if(await dt({destination:f+"/src",projectName:l,templateDir:V.default.join(` ${pr} `.trim(),O)}),await R(_("../templates/api-v5/shared/ts/.eslintrc"),V.default.join(f,".eslintrc")),n){let H=`../templates/api-v5/internal/${P}/src`;await dt({destination:f+"/src",projectName:l,templateDir:V.default.join(` ${pr} `.trim(),H)})}}if(await dt({destination:f,projectName:l,templateDir:_(`../templates/api-v5/page${F?"-ts":""}${s?"-module":""}${C?"-redux":""}`),adjustContent:S}),await su({name:l,description:c,destination:f,projectVersion:o,reactVersion:g,useRedux:C,useTypescript:F,useVitest:x,tobitInternal:n}),await R(_("../templates/shared/README.md"),V.default.join(f,"README.md"),!0),await R(_("../templates/shared/template-gitignore"),V.default.join(f,".gitignore"),!0),await R(_("../templates/api-v5/shared/.env"),V.default.join(f,".env")),await R(_("../templates/api-v5/shared/.env.development.local"),V.default.join(f,".env.development.local")),Be.default.existsSync(V.default.join(f,"/src/constants"))||Be.default.mkdirSync(V.default.join(f,"/src/constants")),await R(_(`../templates/api-v5/shared/${P}/src/constants/serverUrls.${P}`),V.default.join(f,`/src/constants/serverUrls.${P}`)),F&&(await R(_("../templates/api-v5/shared/ts/tsconfig.json"),V.default.join(f,"tsconfig.json")),Be.default.existsSync(V.default.join(f,"/src/types"))||Be.default.mkdirSync(V.default.join(f,"/src/types")),await R(_("../templates/api-v5/shared/ts/src/types/global.d.ts"),V.default.join(f,"/src/types/global.d.ts")),await R(_("../templates/api-v5/shared/ts/src/types/environment.d.ts"),V.default.join(f,"/src/types/environment.d.ts"))),x&&(Be.default.existsSync(V.default.join(f,"/tests"))||Be.default.mkdirSync(V.default.join(f,"/tests")),await R(_("../templates/shared/tests/setup.js"),V.default.join(f,"/tests/setup.js")),await R(_("../templates/shared/vitest.config.mjs"),V.default.join(f,`/vitest.config.m${P}`))),n){Be.default.existsSync(V.default.join(f,"/src/utils"))||Be.default.mkdirSync(V.default.join(f,"/src/utils")),await R(_(`../templates/api-v5/internal/${P}/src/utils/logger.${P}`),V.default.join(f,`/src/utils/logger.${P}`));let O=V.default.join(f,`/src/components/AppWrapper.${P}x`);Be.default.writeFileSync(O,CD({useRedux:C,useTypescript:F,moduleFederation:s,tobitInternal:n,packageNameUnderscore:l.replace("-","_")}));let H=V.default.join(f,".npmrc");Be.default.writeFileSync(H,`registry=https://repo.tobit.ag/repository/npm/
|
|
80
|
+
`)}let T=V.default.join(f,"toolkit.config.js");s?await R(_("../templates/api-v5/shared/toolkit.config-module.js"),T):await R(_("../templates/api-v5/shared/toolkit.config.js"),T)}if(t){let g=ct("Initializing Git repository").start();try{await zr("git init",{cwd:f}),g.succeed("Initialized a Git repository")}catch(C){throw g.fail(`Failed to initialize a Git repository. You can do this yourself by running ${G.cyanBright("git init")}.`),C}}if(r){let g=ct(`Installing packages using ${G.blueBright(d)}`).start();try{await zr(`${d} install`,{cwd:f}),g.succeed(`Installed packages with ${G.blueBright(d)}`)}catch{g.fail(`Failed to install packages with ${G.blueBright(d)}. You can do this yourself by running ${G.cyanBright(`${d} install`)}.`)}}if(t&&e){let g=ct("Performing an initial commit").start();try{await zr("git add .",{cwd:f}),await Ur("git",["commit","-m",":tada: Initial commit"],{cwd:f}),g.succeed("Perfomed an initial commit")}catch(C){console.error(C),g.fail("Failed to perform an initial commit.")}}console.log(`
|
|
81
|
+
${G.bold.greenBright("Congrats!")} Your new project is ready to go!`);let m=d==="yarn"?"yarn dev":"npm run dev";n?(console.log(`Open the created ${G.yellowBright(`./${l}/`)} folder in your favorite editor.`),console.log(`Initialize ${G.yellowBright("tobit-textstrings")} by calling ${G.cyanBright("npx tobit-textstrings init")}.`),console.log(`Search for ${G.greenBright("TODO:")} and follow the instructions.`),console.log(`Start ${G.cyanBright("`"+m+"`")}.
|
|
82
|
+
`)):console.log(`Open the created ${G.yellowBright(`./${l}/`)} folder in your favorite editor and start ${G.cyanBright("`"+m+"`")}.
|
|
83
83
|
`)}
|
|
84
84
|
/*! Bundled license information:
|
|
85
85
|
|