import{__module as e}from"../../_virtual/index57.mjs";import{__require as r}from"../color-convert/index.mjs";var o;function t(){return o||(o=1,function(e){const o=(e,r)=>(...o)=>`[${e(...o)+r}m`,t=(e,r)=>(...o)=>{const t=e(...o);return`[${38+r};5;${t}m`},n=(e,r)=>(...o)=>{const t=e(...o);return`[${38+r};2;${t[0]};${t[1]};${t[2]}m`},i=e=>e,g=(e,r,o)=>[e,r,o],l=(e,r,o)=>{Object.defineProperty(e,r,{get:()=>{const t=o();return Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0}),t},enumerable:!0,configurable:!0})};let b;const a=(e,o,t,n)=>{void 0===b&&(b=r());const i=n?10:0,g={};for(const[r,n]of Object.entries(b)){const l="ansi16"===r?"ansi":r;r===o?g[l]=e(t,i):"object"==typeof n&&(g[l]=e(n[o],i))}return g};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.gray=r.color.blackBright,r.bgColor.bgGray=r.bgColor.bgBlackBright,r.color.grey=r.color.blackBright,r.bgColor.bgGrey=r.bgColor.bgBlackBright;for(const[o,t]of Object.entries(r)){for(const[o,n]of Object.entries(t))r[o]={open:`[${n[0]}m`,close:`[${n[1]}m`},t[o]=r[o],e.set(n[0],n[1]);Object.defineProperty(r,o,{value:t,enumerable:!1})}return Object.defineProperty(r,"codes",{value:e,enumerable:!1}),r.color.close="[39m",r.bgColor.close="[49m",l(r.color,"ansi",()=>a(o,"ansi16",i,!1)),l(r.color,"ansi256",()=>a(t,"ansi256",i,!1)),l(r.color,"ansi16m",()=>a(n,"rgb",g,!1)),l(r.bgColor,"ansi",()=>a(o,"ansi16",i,!0)),l(r.bgColor,"ansi256",()=>a(t,"ansi256",i,!0)),l(r.bgColor,"ansi16m",()=>a(n,"rgb",g,!0)),r}})}(e)),e.exports}e.exports;export{t as __require};