`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function _e(e){let t=e[0]==="u",n=e[1]==="{";return t&&!n&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):w0.get(e)||e}function C0(e,t){let n=[],r=t.trim().split(/\s*,\s*/g),o;for(let s of r){let a=Number(s);if(!Number.isNaN(a))n.push(a);else if(o=s.match(v0))n.push(o[2].replace(k0,(c,l,u)=>l?_e(l):u));else throw new Error(`InvalidChalktemplatestyleargument:${s}(instyle'${e}')`)}return n}function E0(e){Ae.lastIndex=0;let t=[],n;for(;(n=Ae.exec(e))!==null;){let r=n[1];if(n[2]){let o=C0(r,n[2]);t.push([r].concat(o))}else t.push([r])}return t}function Se(e,t){let n={};for(let o of t)for(let s of o.styles)n[s[0]]=o.inverse?null:s.slice(1);let r=e;for(let[o,s]of Object.entries(n))if(!!Array.isArray(s)){if(!(o in r))throw new Error(`UnknownChalkstyle:${o}`);r=s.length>0?r[o](...s):r[o]}return r}Be.exports=(e,t)=>{let n=[],r=[],o=[];if(t.replace(m0,(s,a,c,l,u,d)=>{if(a)o.push(_e(a));else if(l){let b=o.join("");o=[],r.push(n.length===0?b:Se(e,n)(b)),n.push({inverse:c,styles:E0(l)})}else if(u){if(n.length===0)throw new Error("Found extraneous } in Chalk template literal");r.push(Se(e,n)(o.join(""))),o=[],n.pop()}else o.push(d)}),r.push(o.join("")),n.length>0){let s=`Chalktemplateliteralismissing${n.length}closingbracket${n.length===1?"":"s"}(\`}\`)`;thrownewError(s)}returnr.join("")}});varX=v((X0,Fe)=>{"use strict";varS=ve(),{stdout:H,stderr:z}=Me(),{stringReplaceAll:M0,stringEncaseCRLFWithFirstIndex:O0}=Re(),je=["ansi","ansi","ansi256","ansi16m"],A=Object.create(null),R0=(e,t={})=>{if(t.level>3||t.level<0)thrownewError("The `level` option should be an integer from 0 to 3");letn=H?H.level:0;e.level=t.level===void0?n:t.level},Le=class{constructor(t){returnIe(t)}},Ie=e=>{lett={};returnR0(t,e),t.template=(...n)=>S0(t.template,...n),Object.setPrototypeOf(t,F.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{thrownewError("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Le,t.template};functionF(e){returnIe(e)}for(let[e,t]ofObject.entries(S))A[e]={get(){letn=P(this,W(t.open,t.close,this._styler),this._isEmpty);returnObject.defineProperty(this,e,{value:n}),n}};A.visible={get(){lete=P(this,this._styler,!0);returnObject.defineProperty(this,"visible",{value:e}),e}};varNe=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(leteofNe)A[e]={get(){let{level:t}=this;returnfunction(...n){letr=W(S.color[je[t]][e](...n),S.color.close,this._styler);returnP(this,r,this._isEmpty)}}};for(leteofNe){lett="bg"+e[0].toUpperCase()+e.slice(1);A[t]={get(){let{level:n}=this;returnfunction(...r){leto=W(S.bgColor[je[n]][e](...r),S.bgColor.close,this._styler);returnP(this,o,this._isEmpty)}}}}varA0=Object.defineProperties(()=>{},se(oe({},A),{level:{enumerable:!0,get(){returnthis._generator.level},set(e){this._generator.level=e}}})),W=(e,t,n)=>{letr,o;returnn===void0?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},P=(e,t,n)=>{letr=(...o)=>_0(r,o.length===1?""+o[0]:o.join(" "));returnr.__proto__=A0,r._generator=e,r._styler=t,r._isEmpty=n,r},_0=(e,t)=>{if(e.level<=0||!t)returne._isEmpty?"":t;letn=e._styler;if(n===void0)returnt;let{openAll:r,closeAll:o}=n;if(t.indexOf("")!==-1)for(;n!==void0;)t=M0(t,n.close,n.open),n=n.parent;lets=t.indexOf(`