ritik 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +31 -39
  2. package/package.json +1 -2
package/dist/index.js CHANGED
@@ -1,55 +1,47 @@
1
1
  #!/usr/bin/env node
2
- import{spawn as Ae,exec as be}from"node:child_process";import Re from"node:fs";import hD from"node:path";import{fileURLToPath as we}from"node:url";import N from"node:process";import ye from"node:os";import ED from"node:tty";import*as wu from"fs";import*as yu from"path";import{fileURLToPath as xe}from"url";import{styleText as j,stripVTControlCharacters as ve}from"node:util";import*as Le from"node:readline";import{AsyncLocalStorage as Se,AsyncResource as Uu}from"node:async_hooks";import Te from"stream";import Ie from"tty";var Me="ritik",ke="1.0.4",_e="module",Oe="CLI Portfolio",$e="dist/index.js",Ue={ritik:"dist/index.js"},Pe={node:">=20"},Ne={build:"rollup -c",start:"rollup -c && node dist/index.js",lint:"next lint",clean:"rm -rf node_modules pnpm-lock.yaml && pnpm install",demo:"pnpm run build && vhs demo/demo.tape"},je={"@inquirer/prompts":"^8.2.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^16.0.3","@types/figlet":"^1.7.0","@types/node":"^25.0.9","@typescript-eslint/eslint-plugin":"^8.53.0","@typescript-eslint/parser":"^8.53.0",boxen:"^8.0.1",chalk:"^5.6.2",esbuild:"^0.27.2",eslint:"^9.39.2","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-import":"^2.32.0",figlet:"^1.9.4",rollup:"^4.55.1","rollup-plugin-esbuild":"^6.2.1",typescript:"^5.9.3"},Ge={access:"public",registry:"https://registry.npmjs.org/"},We=["dist"],qe={type:"git",url:"git+https://github.com/itzzritik/npx-ritik.git"},He=["ritik","nodejs","javascript","shell","cli","console","open-source","npm","portfolio","typescript","terminal","command-line","tui","dev","developer","npx"],Ve={name:"Ritik Srivastava"},ze="ISC",Ke={url:"https://github.com/itzzritik/npx-ritik/issues"},Ye="https://github.com/itzzritik/npx-ritik#readme",dD={name:Me,version:ke,type:_e,description:Oe,main:$e,bin:Ue,engines:Pe,scripts:Ne,devDependencies:je,publishConfig:Ge,files:We,repository:qe,keywords:He,author:Ve,license:ze,bugs:Ke,homepage:Ye};const Je={profileUrl:"https://raw.githubusercontent.com/itzzritik/itzzritik/refs/heads/main/profile/profile.json"},au={theme:{primary:"cyanBright",secondary:"whiteBright",accent:"#f1c40f",borderStyle:"single",borderColor:"cyan"},ui:{title:"Portfolio",npx:"Cli Portfolio",cmdTip:"Tip: Try cmd/ctrl + click on the links above",footer:["Open to meaningful conversations and interesting opportunities","Feel free to reach out for questions, collaborations, or a quick hello","I do my best to respond in a timely manner"]},messages:{email:{message:"Send me an email?",description:"Send a message \u2014 I promise low-latency replies.",success:"Email launched \u2014 preparing witty yet professional response."},resume:{message:"Checkout my Resume?",description:"Pulling the latest version of my resume from production.",success:"Thanks for reading \u2014 hope my resume speaks your language."},meeting:{message:"Schedule a Meeting?",description:"Scheduling a sync \u2014 adding coffee to the calendar... \u2615",success:"Meeting scheduled \u2014 time to build something great together."},exit:{message:"Exit.",description:"Ending session, but not the connection.",success:"Session ended \u2014 but DMs are always open."}}},Xe=async()=>{const u=await fetch(Je.profileUrl);if(!u.ok)throw new Error(`Failed to fetch profile: ${u.statusText}`);const D=await u.json(),e={github:"#666666",x:"#1DA1F2"};return D.socialHandles=D.socialHandles.map(t=>({...t,color:e[t.platform]||t.color})),D},Ze=async()=>{const u=await fetch("https://raw.githubusercontent.com/patorjk/figlet.js/master/fonts/ANSI%20Shadow.flf").then(D=>D.text());(await Promise.resolve().then(function(){return dn})).default.parseFont("ANSI Shadow",u)},Qe=u=>{const D=hD.dirname(we(import.meta.url)),e=Re.existsSync(hD.join(D,"../src")),t=process.env.NPX_RITIK_REDIRECT==="true";return!e&&!t?(Ae(`npx --yes ${u}@latest`,{stdio:"inherit",shell:!0,env:{...process.env,NPX_RITIK_REDIRECT:"true"}}).on("close",r=>{process.exit(r||0)}),!0):!1},Pu=10,gD=(u=0)=>D=>`\x1B[${D+u}m`,BD=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,mD=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,k={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]}};Object.keys(k.modifier);const ut=Object.keys(k.color),Dt=Object.keys(k.bgColor);[...ut,...Dt];function et(){const u=new Map;for(const[D,e]of Object.entries(k)){for(const[t,r]of Object.entries(e))k[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=k[t],u.set(r[0],r[1]);Object.defineProperty(k,D,{value:e,enumerable:!1})}return Object.defineProperty(k,"codes",{value:u,enumerable:!1}),k.color.close="\x1B[39m",k.bgColor.close="\x1B[49m",k.color.ansi=gD(),k.color.ansi256=BD(),k.color.ansi16m=mD(),k.bgColor.ansi=gD(Pu),k.bgColor.ansi256=BD(Pu),k.bgColor.ansi16m=mD(Pu),Object.defineProperties(k,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(i=>i+i).join(""));const r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>k.rgbToAnsi256(...k.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;const a=D%36;e=Math.floor(D/36)/5,t=Math.floor(a/6)/5,r=a%6/5}const i=Math.max(e,t,r)*2;if(i===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return i===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>k.ansi256ToAnsi(k.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>k.ansi256ToAnsi(k.hexToAnsi256(D)),enumerable:!1}}),k}const eu=et();function J(u,D=globalThis.Deno?globalThis.Deno.args:N.argv){const e=u.startsWith("-")?"":u.length===1?"-":"--",t=D.indexOf(e+u),r=D.indexOf("--");return t!==-1&&(r===-1||t<r)}const{env:_}=N;let xu;J("no-color")||J("no-colors")||J("color=false")||J("color=never")?xu=0:(J("color")||J("colors")||J("color=true")||J("color=always"))&&(xu=1);function tt(){if("FORCE_COLOR"in _)return _.FORCE_COLOR==="true"?1:_.FORCE_COLOR==="false"?0:_.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(_.FORCE_COLOR,10),3)}function rt(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function nt(u,{streamIsTTY:D,sniffFlags:e=!0}={}){const t=tt();t!==void 0&&(xu=t);const r=e?xu:t;if(r===0)return 0;if(e){if(J("color=16m")||J("color=full")||J("color=truecolor"))return 3;if(J("color=256"))return 2}if("TF_BUILD"in _&&"AGENT_NAME"in _)return 1;if(u&&!D&&r===void 0)return 0;const i=r||0;if(_.TERM==="dumb")return i;if(N.platform==="win32"){const F=ye.release().split(".");return Number(F[0])>=10&&Number(F[2])>=10586?Number(F[2])>=14931?3:2:1}if("CI"in _)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(F=>F in _)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(F=>F in _)||_.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in _)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(_.TEAMCITY_VERSION)?1:0;if(_.COLORTERM==="truecolor"||_.TERM==="xterm-kitty"||_.TERM==="xterm-ghostty"||_.TERM==="wezterm")return 3;if("TERM_PROGRAM"in _){const F=Number.parseInt((_.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(_.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(_.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(_.TERM)||"COLORTERM"in _?1:i}function pD(u,D={}){const e=nt(u,{streamIsTTY:u&&u.isTTY,...D});return rt(e)}const it={stdout:pD({isTTY:ED.isatty(1)}),stderr:pD({isTTY:ED.isatty(2)})};function lt(u,D,e){let t=u.indexOf(D);if(t===-1)return u;const r=D.length;let i=0,F="";do F+=u.slice(i,t)+D+e,i=t+r,t=u.indexOf(D,i);while(t!==-1);return F+=u.slice(i),F}function st(u,D,e,t){let r=0,i="";do{const F=u[t-1]==="\r";i+=u.slice(r,F?t-1:t)+D+(F?`\r
2
+ import{spawn as $D,exec as kD}from"node:child_process";import OD from"node:fs";import ju from"node:path";import{fileURLToPath as _D}from"node:url";import Y from"node:process";import ND from"node:os";import Pu from"node:tty";import V from"node:readline";import*as ou from"fs";import*as au from"path";import{fileURLToPath as jD}from"url";var PD="ritik",GD="1.0.6",WD="module",UD="CLI Portfolio",HD="dist/index.js",zD={ritik:"dist/index.js"},qD={node:">=20"},YD={build:"rollup -c",start:"rollup -c && node dist/index.js",lint:"next lint",clean:"rm -rf node_modules pnpm-lock.yaml && pnpm install",demo:"pnpm run build && vhs demo/demo.tape"},VD={"@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^16.0.3","@types/figlet":"^1.7.0","@types/node":"^25.0.9","@typescript-eslint/eslint-plugin":"^8.53.0","@typescript-eslint/parser":"^8.53.0",boxen:"^8.0.1",chalk:"^5.6.2",esbuild:"^0.27.2",eslint:"^9.39.2","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-import":"^2.32.0",figlet:"^1.9.4",rollup:"^4.55.1","rollup-plugin-esbuild":"^6.2.1",typescript:"^5.9.3"},KD={access:"public",registry:"https://registry.npmjs.org/"},JD=["dist"],XD={type:"git",url:"git+https://github.com/itzzritik/npx-ritik.git"},ZD=["ritik","nodejs","javascript","shell","cli","console","open-source","npm","portfolio","typescript","terminal","command-line","tui","dev","developer","npx"],QD={name:"Ritik Srivastava"},ue="ISC",De={url:"https://github.com/itzzritik/npx-ritik/issues"},ee="https://github.com/itzzritik/npx-ritik#readme",Gu={name:PD,version:GD,type:WD,description:UD,main:HD,bin:zD,engines:qD,scripts:YD,devDependencies:VD,publishConfig:KD,files:JD,repository:XD,keywords:ZD,author:QD,license:ue,bugs:De,homepage:ee};const te={profileUrl:"https://raw.githubusercontent.com/itzzritik/itzzritik/refs/heads/main/profile/profile.json"},uu={theme:{primary:"cyanBright",secondary:"whiteBright",accent:"#f1c40f",borderStyle:"single",borderColor:"cyan"},ui:{title:"Portfolio",npx:"Cli Portfolio",cmdTip:"Tip: Try cmd/ctrl + click on the links above",footer:["Open to meaningful conversations and interesting opportunities","Feel free to reach out for questions, collaborations, or a quick hello","I do my best to respond in a timely manner"]},messages:{email:{message:"Send me an email",description:"Send a message \u2014 I promise low-latency replies.",success:"Email launched \u2014 preparing witty yet professional response."},resume:{message:"Checkout my Resume",description:"Pulling the latest version of my resume from production.",success:"Thanks for reading \u2014 hope my resume speaks your language."},meeting:{message:"Schedule a Meeting",description:"Scheduling a sync \u2014 adding coffee to the calendar... \u2615",success:"Meeting scheduled \u2014 time to build something great together."},exit:{message:"Exit",description:"Ending session, but not the connection.",success:"Session ended \u2014 but DMs are always open."}}},Fe=async()=>{const u=await fetch(te.profileUrl);if(!u.ok)throw new Error(`Failed to fetch profile: ${u.statusText}`);const D=await u.json(),e={github:"#666666",x:"#1DA1F2"};return D.socialHandles=D.socialHandles.map(F=>({...F,color:e[F.platform]||F.color})),D},re=async()=>{const u=await fetch("https://raw.githubusercontent.com/patorjk/figlet.js/master/fonts/ANSI%20Shadow.flf").then(D=>D.text());(await Promise.resolve().then(function(){return Mt})).default.parseFont("ANSI Shadow",u)},ne=u=>{const D=ju.dirname(_D(import.meta.url)),e=OD.existsSync(ju.join(D,"../src")),F=process.env.NPX_RITIK_REDIRECT==="true";return!e&&!F?($D(`npx --yes ${u}@latest`,{stdio:"inherit",shell:!0,env:{...process.env,NPX_RITIK_REDIRECT:"true"}}).on("close",r=>{process.exit(r||0)}),!0):!1},Au=10,Wu=(u=0)=>D=>`\x1B[${D+u}m`,Uu=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,Hu=(u=0)=>(D,e,F)=>`\x1B[${38+u};2;${D};${e};${F}m`,S={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]}};Object.keys(S.modifier);const ie=Object.keys(S.color),le=Object.keys(S.bgColor);[...ie,...le];function se(){const u=new Map;for(const[D,e]of Object.entries(S)){for(const[F,r]of Object.entries(e))S[F]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[F]=S[F],u.set(r[0],r[1]);Object.defineProperty(S,D,{value:e,enumerable:!1})}return Object.defineProperty(S,"codes",{value:u,enumerable:!1}),S.color.close="\x1B[39m",S.bgColor.close="\x1B[49m",S.color.ansi=Wu(),S.color.ansi256=Uu(),S.color.ansi16m=Hu(),S.bgColor.ansi=Wu(Au),S.bgColor.ansi256=Uu(Au),S.bgColor.ansi16m=Hu(Au),Object.defineProperties(S,{rgbToAnsi256:{value(D,e,F){return D===e&&e===F?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(F/255*5)},enumerable:!1},hexToRgb:{value(D){const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[F]=e;F.length===3&&(F=[...F].map(l=>l+l).join(""));const r=Number.parseInt(F,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>S.rgbToAnsi256(...S.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,F,r;if(D>=232)e=((D-232)*10+8)/255,F=e,r=e;else{D-=16;const o=D%36;e=Math.floor(D/36)/5,F=Math.floor(o/6)/5,r=o%6/5}const l=Math.max(e,F,r)*2;if(l===0)return 30;let a=30+(Math.round(r)<<2|Math.round(F)<<1|Math.round(e));return l===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(D,e,F)=>S.ansi256ToAnsi(S.rgbToAnsi256(D,e,F)),enumerable:!1},hexToAnsi:{value:D=>S.ansi256ToAnsi(S.hexToAnsi256(D)),enumerable:!1}}),S}const z=se();function G(u,D=globalThis.Deno?globalThis.Deno.args:Y.argv){const e=u.startsWith("-")?"":u.length===1?"-":"--",F=D.indexOf(e+u),r=D.indexOf("--");return F!==-1&&(r===-1||F<r)}const{env:L}=Y;let Cu;G("no-color")||G("no-colors")||G("color=false")||G("color=never")?Cu=0:(G("color")||G("colors")||G("color=true")||G("color=always"))&&(Cu=1);function oe(){if("FORCE_COLOR"in L)return L.FORCE_COLOR==="true"?1:L.FORCE_COLOR==="false"?0:L.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(L.FORCE_COLOR,10),3)}function ae(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function Ce(u,{streamIsTTY:D,sniffFlags:e=!0}={}){const F=oe();F!==void 0&&(Cu=F);const r=e?Cu:F;if(r===0)return 0;if(e){if(G("color=16m")||G("color=full")||G("color=truecolor"))return 3;if(G("color=256"))return 2}if("TF_BUILD"in L&&"AGENT_NAME"in L)return 1;if(u&&!D&&r===void 0)return 0;const l=r||0;if(L.TERM==="dumb")return l;if(Y.platform==="win32"){const a=ND.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in L)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in L)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in L)||L.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in L)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(L.TEAMCITY_VERSION)?1:0;if(L.COLORTERM==="truecolor"||L.TERM==="xterm-kitty"||L.TERM==="xterm-ghostty"||L.TERM==="wezterm")return 3;if("TERM_PROGRAM"in L){const a=Number.parseInt((L.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(L.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(L.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(L.TERM)||"COLORTERM"in L?1:l}function zu(u,D={}){const e=Ce(u,{streamIsTTY:u&&u.isTTY,...D});return ae(e)}const Ee={stdout:zu({isTTY:Pu.isatty(1)}),stderr:zu({isTTY:Pu.isatty(2)})};function fe(u,D,e){let F=u.indexOf(D);if(F===-1)return u;const r=D.length;let l=0,a="";do a+=u.slice(l,F)+D+e,l=F+r,F=u.indexOf(D,l);while(F!==-1);return a+=u.slice(l),a}function ce(u,D,e,F){let r=0,l="";do{const a=u[F-1]==="\r";l+=u.slice(r,a?F-1:F)+D+(a?`\r
3
3
  `:`
4
- `)+e,r=t+1,t=u.indexOf(`
5
- `,r)}while(t!==-1);return i+=u.slice(r),i}const{stdout:AD,stderr:bD}=it,Nu=Symbol("GENERATOR"),cu=Symbol("STYLER"),gu=Symbol("IS_EMPTY"),RD=["ansi","ansi","ansi256","ansi16m"],fu=Object.create(null),ot=(u,D={})=>{if(D.level&&!(Number.isInteger(D.level)&&D.level>=0&&D.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const e=AD?AD.level:0;u.level=D.level===void 0?e:D.level},Ft=u=>{const D=(...e)=>e.join(" ");return ot(D,u),Object.setPrototypeOf(D,Bu.prototype),D};function Bu(u){return Ft(u)}Object.setPrototypeOf(Bu.prototype,Function.prototype);for(const[u,D]of Object.entries(eu))fu[u]={get(){const e=vu(this,Gu(D.open,D.close,this[cu]),this[gu]);return Object.defineProperty(this,u,{value:e}),e}};fu.visible={get(){const u=vu(this,this[cu],!0);return Object.defineProperty(this,"visible",{value:u}),u}};const ju=(u,D,e,...t)=>u==="rgb"?D==="ansi16m"?eu[e].ansi16m(...t):D==="ansi256"?eu[e].ansi256(eu.rgbToAnsi256(...t)):eu[e].ansi(eu.rgbToAnsi(...t)):u==="hex"?ju("rgb",D,e,...eu.hexToRgb(...t)):eu[e][u](...t),at=["rgb","hex","ansi256"];for(const u of at){fu[u]={get(){const{level:e}=this;return function(...t){const r=Gu(ju(u,RD[e],"color",...t),eu.color.close,this[cu]);return vu(this,r,this[gu])}}};const D="bg"+u[0].toUpperCase()+u.slice(1);fu[D]={get(){const{level:e}=this;return function(...t){const r=Gu(ju(u,RD[e],"bgColor",...t),eu.bgColor.close,this[cu]);return vu(this,r,this[gu])}}}}const ct=Object.defineProperties(()=>{},{...fu,level:{enumerable:!0,get(){return this[Nu].level},set(u){this[Nu].level=u}}}),Gu=(u,D,e)=>{let t,r;return e===void 0?(t=u,r=D):(t=e.openAll+u,r=D+e.closeAll),{open:u,close:D,openAll:t,closeAll:r,parent:e}},vu=(u,D,e)=>{const t=(...r)=>ft(t,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(t,ct),t[Nu]=u,t[cu]=D,t[gu]=e,t},ft=(u,D)=>{if(u.level<=0||!D)return u[gu]?"":D;let e=u[cu];if(e===void 0)return D;const{openAll:t,closeAll:r}=e;if(D.includes("\x1B"))for(;e!==void 0;)D=lt(D,e.close,e.open),e=e.parent;const i=D.indexOf(`
6
- `);return i!==-1&&(D=st(D,r,t,i)),t+D+r};Object.defineProperties(Bu.prototype,fu);const G=Bu();Bu({level:bD?bD.level:0});var Ct=Object.defineProperty,ht=(u,D,e)=>D in u?Ct(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,Lu=(u,D,e)=>ht(u,typeof D!="symbol"?D+"":D,e);const Et=22,dt=80,wD=Et+dt+2,Su=(u,D=" ")=>u.padStart(u.length+Math.floor((wD-u.length)/2),D).padEnd(wD,D),gt=u=>u.charAt(0).toUpperCase()+u.slice(1);class Bt{constructor(D){Lu(this,"frames",["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]),Lu(this,"interval",null),Lu(this,"current",0),Lu(this,"text"),this.text=D}start(){return process.stdout.write("\x1B[?25l"),this.interval=setInterval(()=>{process.stdout.write(`\r${G.cyanBright(this.frames[this.current])} ${this.text}`),this.current=(this.current+1)%this.frames.length},80),this}stop(){return this.interval&&(clearInterval(this.interval),this.interval=null,process.stdout.write("\r\x1B[K"),process.stdout.write("\x1B[?25h")),this}succeed(D){return this.stop(),console.log(`${G.hex("#00FF00")("\u2714")} ${D||this.text}`),this}fail(D){return this.stop(),console.log(`${G.hex("#FF0000")("\u2716")} ${D||this.text}`),this}}function mt({onlyFirst:u=!1}={}){const r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,u?void 0:"g")}const pt=mt();function yD(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(pt,"")}function At(u){return u===161||u===164||u===167||u===168||u===170||u===173||u===174||u>=176&&u<=180||u>=182&&u<=186||u>=188&&u<=191||u===198||u===208||u===215||u===216||u>=222&&u<=225||u===230||u>=232&&u<=234||u===236||u===237||u===240||u===242||u===243||u>=247&&u<=250||u===252||u===254||u===257||u===273||u===275||u===283||u===294||u===295||u===299||u>=305&&u<=307||u===312||u>=319&&u<=322||u===324||u>=328&&u<=331||u===333||u===338||u===339||u===358||u===359||u===363||u===462||u===464||u===466||u===468||u===470||u===472||u===474||u===476||u===593||u===609||u===708||u===711||u>=713&&u<=715||u===717||u===720||u>=728&&u<=731||u===733||u===735||u>=768&&u<=879||u>=913&&u<=929||u>=931&&u<=937||u>=945&&u<=961||u>=963&&u<=969||u===1025||u>=1040&&u<=1103||u===1105||u===8208||u>=8211&&u<=8214||u===8216||u===8217||u===8220||u===8221||u>=8224&&u<=8226||u>=8228&&u<=8231||u===8240||u===8242||u===8243||u===8245||u===8251||u===8254||u===8308||u===8319||u>=8321&&u<=8324||u===8364||u===8451||u===8453||u===8457||u===8467||u===8470||u===8481||u===8482||u===8486||u===8491||u===8531||u===8532||u>=8539&&u<=8542||u>=8544&&u<=8555||u>=8560&&u<=8569||u===8585||u>=8592&&u<=8601||u===8632||u===8633||u===8658||u===8660||u===8679||u===8704||u===8706||u===8707||u===8711||u===8712||u===8715||u===8719||u===8721||u===8725||u===8730||u>=8733&&u<=8736||u===8739||u===8741||u>=8743&&u<=8748||u===8750||u>=8756&&u<=8759||u===8764||u===8765||u===8776||u===8780||u===8786||u===8800||u===8801||u>=8804&&u<=8807||u===8810||u===8811||u===8814||u===8815||u===8834||u===8835||u===8838||u===8839||u===8853||u===8857||u===8869||u===8895||u===8978||u>=9312&&u<=9449||u>=9451&&u<=9547||u>=9552&&u<=9587||u>=9600&&u<=9615||u>=9618&&u<=9621||u===9632||u===9633||u>=9635&&u<=9641||u===9650||u===9651||u===9654||u===9655||u===9660||u===9661||u===9664||u===9665||u>=9670&&u<=9672||u===9675||u>=9678&&u<=9681||u>=9698&&u<=9701||u===9711||u===9733||u===9734||u===9737||u===9742||u===9743||u===9756||u===9758||u===9792||u===9794||u===9824||u===9825||u>=9827&&u<=9829||u>=9831&&u<=9834||u===9836||u===9837||u===9839||u===9886||u===9887||u===9919||u>=9926&&u<=9933||u>=9935&&u<=9939||u>=9941&&u<=9953||u===9955||u===9960||u===9961||u>=9963&&u<=9969||u===9972||u>=9974&&u<=9977||u===9979||u===9980||u===9982||u===9983||u===10045||u>=10102&&u<=10111||u>=11094&&u<=11097||u>=12872&&u<=12879||u>=57344&&u<=63743||u>=65024&&u<=65039||u===65533||u>=127232&&u<=127242||u>=127248&&u<=127277||u>=127280&&u<=127337||u>=127344&&u<=127373||u===127375||u===127376||u>=127387&&u<=127404||u>=917760&&u<=917999||u>=983040&&u<=1048573||u>=1048576&&u<=1114109}function bt(u){return u===12288||u>=65281&&u<=65376||u>=65504&&u<=65510}function Rt(u){return u>=4352&&u<=4447||u===8986||u===8987||u===9001||u===9002||u>=9193&&u<=9196||u===9200||u===9203||u===9725||u===9726||u===9748||u===9749||u>=9776&&u<=9783||u>=9800&&u<=9811||u===9855||u>=9866&&u<=9871||u===9875||u===9889||u===9898||u===9899||u===9917||u===9918||u===9924||u===9925||u===9934||u===9940||u===9962||u===9970||u===9971||u===9973||u===9978||u===9981||u===9989||u===9994||u===9995||u===10024||u===10060||u===10062||u>=10067&&u<=10069||u===10071||u>=10133&&u<=10135||u===10160||u===10175||u===11035||u===11036||u===11088||u===11093||u>=11904&&u<=11929||u>=11931&&u<=12019||u>=12032&&u<=12245||u>=12272&&u<=12287||u>=12289&&u<=12350||u>=12353&&u<=12438||u>=12441&&u<=12543||u>=12549&&u<=12591||u>=12593&&u<=12686||u>=12688&&u<=12773||u>=12783&&u<=12830||u>=12832&&u<=12871||u>=12880&&u<=42124||u>=42128&&u<=42182||u>=43360&&u<=43388||u>=44032&&u<=55203||u>=63744&&u<=64255||u>=65040&&u<=65049||u>=65072&&u<=65106||u>=65108&&u<=65126||u>=65128&&u<=65131||u>=94176&&u<=94180||u>=94192&&u<=94198||u>=94208&&u<=101589||u>=101631&&u<=101662||u>=101760&&u<=101874||u>=110576&&u<=110579||u>=110581&&u<=110587||u===110589||u===110590||u>=110592&&u<=110882||u===110898||u>=110928&&u<=110930||u===110933||u>=110948&&u<=110951||u>=110960&&u<=111355||u>=119552&&u<=119638||u>=119648&&u<=119670||u===126980||u===127183||u===127374||u>=127377&&u<=127386||u>=127488&&u<=127490||u>=127504&&u<=127547||u>=127552&&u<=127560||u===127568||u===127569||u>=127584&&u<=127589||u>=127744&&u<=127776||u>=127789&&u<=127797||u>=127799&&u<=127868||u>=127870&&u<=127891||u>=127904&&u<=127946||u>=127951&&u<=127955||u>=127968&&u<=127984||u===127988||u>=127992&&u<=128062||u===128064||u>=128066&&u<=128252||u>=128255&&u<=128317||u>=128331&&u<=128334||u>=128336&&u<=128359||u===128378||u===128405||u===128406||u===128420||u>=128507&&u<=128591||u>=128640&&u<=128709||u===128716||u>=128720&&u<=128722||u>=128725&&u<=128728||u>=128732&&u<=128735||u===128747||u===128748||u>=128756&&u<=128764||u>=128992&&u<=129003||u===129008||u>=129292&&u<=129338||u>=129340&&u<=129349||u>=129351&&u<=129535||u>=129648&&u<=129660||u>=129664&&u<=129674||u>=129678&&u<=129734||u===129736||u>=129741&&u<=129756||u>=129759&&u<=129770||u>=129775&&u<=129784||u>=131072&&u<=196605||u>=196608&&u<=262141}function wt(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function yt(u,{ambiguousAsWide:D=!1}={}){return wt(u),bt(u)||Rt(u)||D&&At(u)?2:1}var xt=()=>/[#*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-\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-\uDED8\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\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\uDD3C-\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-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\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\uDE70]|\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\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;const vt=new Intl.Segmenter,Lt=/^\p{Default_Ignorable_Code_Point}$/u;function Du(u,D={}){if(typeof u!="string"||u.length===0)return 0;const{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:t=!1}=D;if(t||(u=yD(u)),u.length===0)return 0;let r=0;const i={ambiguousAsWide:!e};for(const{segment:F}of vt.segment(u)){const a=F.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)&&!Lt.test(F)){if(xt().test(F)){r+=2;continue}r+=yt(a,i)}}return r}function xD(u){let D=0;for(const e of u.split(`
7
- `))D=Math.max(D,Du(e));return D}function Tu(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Iu={exports:{}},St={topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},Tt={topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},It={topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},Mt={topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},kt={topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},_t={topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},Ot={topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},$t={topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"},Ut={single:St,double:Tt,round:It,bold:Mt,singleDouble:kt,doubleSingle:_t,classic:Ot,arrow:$t},vD;function Pt(){if(vD)return Iu.exports;vD=1;const u=Ut;return Iu.exports=u,Iu.exports.default=u,Iu.exports}var Nt=Pt(),jt=Tu(Nt);const Gt=/[\p{Lu}]/u,Wt=/[\p{Ll}]/u,LD=/^[\p{Lu}](?![\p{Lu}])/gu,SD=/([\p{Alpha}\p{N}_]|$)/u,Wu=/[_.\- ]+/,qt=new RegExp("^"+Wu.source),TD=new RegExp(Wu.source+SD.source,"gu"),ID=new RegExp("\\d+"+SD.source,"gu"),Ht=(u,D,e,t)=>{let r=!1,i=!1,F=!1,a=!1;for(let B=0;B<u.length;B++){const g=u[B];a=B>2?u[B-3]==="-":!0,r&&Gt.test(g)?(u=u.slice(0,B)+"-"+u.slice(B),r=!1,F=i,i=!0,B++):i&&F&&Wt.test(g)&&(!a||t)?(u=u.slice(0,B-1)+"-"+u.slice(B-1),F=i,i=!1,r=!0):(r=D(g)===g&&e(g)!==g,F=i,i=e(g)===g&&D(g)!==g)}return u},Vt=(u,D)=>(LD.lastIndex=0,u.replaceAll(LD,e=>D(e))),zt=(u,D)=>(TD.lastIndex=0,ID.lastIndex=0,u.replaceAll(ID,(e,t,r)=>["_","-"].includes(u.charAt(r+e.length))?e:D(e)).replaceAll(TD,(e,t)=>D(t)));function Kt(u,D){if(!(typeof u=="string"||Array.isArray(u)))throw new TypeError("Expected the input to be `string | string[]`");if(D={pascalCase:!1,preserveConsecutiveUppercase:!1,...D},Array.isArray(u)?u=u.map(i=>i.trim()).filter(i=>i.length).join("-"):u=u.trim(),u.length===0)return"";const e=D.locale===!1?i=>i.toLowerCase():i=>i.toLocaleLowerCase(D.locale),t=D.locale===!1?i=>i.toUpperCase():i=>i.toLocaleUpperCase(D.locale);return u.length===1?Wu.test(u)?"":D.pascalCase?t(u):e(u):(u!==e(u)&&(u=Ht(u,e,t,D.preserveConsecutiveUppercase)),u=u.replace(qt,""),u=D.preserveConsecutiveUppercase?Vt(u,e):e(u),D.pascalCase&&(u=t(u.charAt(0))+u.slice(1)),zt(u,t))}var Mu={exports:{}},qu,MD;function Yt(){return MD||(MD=1,qu=({onlyFirst:u=!1}={})=>{const D=["[\\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(D,u?void 0:"g")}),qu}var Hu,kD;function Jt(){if(kD)return Hu;kD=1;const u=Yt();return Hu=D=>typeof D=="string"?D.replace(u(),""):D,Hu}var ku={exports:{}},_D;function Xt(){if(_D)return ku.exports;_D=1;const u=D=>Number.isNaN(D)?!1:D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141);return ku.exports=u,ku.exports.default=u,ku.exports}var Vu,OD;function Zt(){return OD||(OD=1,Vu=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}),Vu}var $D;function Qt(){if($D)return Mu.exports;$D=1;const u=Jt(),D=Xt(),e=Zt(),t=r=>{if(typeof r!="string"||r.length===0||(r=u(r),r.length===0))return 0;r=r.replace(e()," ");let i=0;for(let F=0;F<r.length;F++){const a=r.codePointAt(F);a<=31||a>=127&&a<=159||a>=768&&a<=879||(a>65535&&F++,i+=D(a)?2:1)}return i};return Mu.exports=t,Mu.exports.default=t,Mu.exports}var zu,UD;function ur(){if(UD)return zu;UD=1;const u=Qt();function D(r,i){if(!r)return r;i=i||{};const F=i.align||"center";if(F==="left")return r;const a=i.split||`
8
- `,B=i.pad||" ",g=F!=="right"?e:t;let m=!1;Array.isArray(r)||(m=!0,r=String(r).split(a));let d,x=0;return r=r.map(function(b){return b=String(b),d=u(b),x=Math.max(d,x),{str:b,width:d}}).map(function(b){return new Array(g(x,b.width)+1).join(B)+b.str}),m?r.join(a):r}D.left=function(i){return D(i,{align:"left"})},D.center=function(i){return D(i,{align:"center"})},D.right=function(i){return D(i,{align:"right"})},zu=D;function e(r,i){return Math.floor((r-i)/2)}function t(r,i){return r-i}return zu}var Dr=ur(),PD=Tu(Dr);const Ku=10,ND=(u=0)=>D=>`\x1B[${D+u}m`,jD=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,GD=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,O={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]}};Object.keys(O.modifier);const er=Object.keys(O.color),tr=Object.keys(O.bgColor);[...er,...tr];function rr(){const u=new Map;for(const[D,e]of Object.entries(O)){for(const[t,r]of Object.entries(e))O[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=O[t],u.set(r[0],r[1]);Object.defineProperty(O,D,{value:e,enumerable:!1})}return Object.defineProperty(O,"codes",{value:u,enumerable:!1}),O.color.close="\x1B[39m",O.bgColor.close="\x1B[49m",O.color.ansi=ND(),O.color.ansi256=jD(),O.color.ansi16m=GD(),O.bgColor.ansi=ND(Ku),O.bgColor.ansi256=jD(Ku),O.bgColor.ansi16m=GD(Ku),Object.defineProperties(O,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(i=>i+i).join(""));const r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>O.rgbToAnsi256(...O.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;const a=D%36;e=Math.floor(D/36)/5,t=Math.floor(a/6)/5,r=a%6/5}const i=Math.max(e,t,r)*2;if(i===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return i===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>O.ansi256ToAnsi(O.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>O.ansi256ToAnsi(O.hexToAnsi256(D)),enumerable:!1}}),O}const nr=rr(),_u=new Set(["\x1B","\x9B"]),ir=39,Yu="\x07",WD="[",lr="]",qD="m",Ou=`${lr}8;;`,HD=u=>`${_u.values().next().value}${WD}${u}${qD}`,VD=u=>`${_u.values().next().value}${Ou}${u}${Yu}`,sr=u=>u.split(" ").map(D=>Du(D)),Ju=(u,D,e)=>{const t=[...D];let r=!1,i=!1,F=Du(yD(u.at(-1)));for(const[a,B]of t.entries()){const g=Du(B);if(F+g<=e?u[u.length-1]+=B:(u.push(B),F=0),_u.has(B)&&(r=!0,i=t.slice(a+1,a+1+Ou.length).join("")===Ou),r){i?B===Yu&&(r=!1,i=!1):B===qD&&(r=!1);continue}F+=g,F===e&&a<t.length-1&&(u.push(""),F=0)}!F&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},or=u=>{const D=u.split(" ");let e=D.length;for(;e>0&&!(Du(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},Fr=(u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let t="",r,i;const F=sr(u);let a=[""];for(const[d,x]of u.split(" ").entries()){e.trim!==!1&&(a[a.length-1]=a.at(-1).trimStart());let b=Du(a.at(-1));if(d!==0&&(b>=D&&(e.wordWrap===!1||e.trim===!1)&&(a.push(""),b=0),(b>0||e.trim===!1)&&(a[a.length-1]+=" ",b++)),e.hard&&F[d]>D){const S=D-b,T=1+Math.floor((F[d]-S-1)/D);Math.floor((F[d]-1)/D)<T&&a.push(""),Ju(a,x,D);continue}if(b+F[d]>D&&b>0&&F[d]>0){if(e.wordWrap===!1&&b<D){Ju(a,x,D);continue}a.push("")}if(b+F[d]>D&&e.wordWrap===!1){Ju(a,x,D);continue}a[a.length-1]+=x}e.trim!==!1&&(a=a.map(d=>or(d)));const B=a.join(`
9
- `),g=[...B];let m=0;for(const[d,x]of g.entries()){if(t+=x,_u.has(x)){const{groups:S}=new RegExp(`(?:\\${WD}(?<code>\\d+)m|\\${Ou}(?<uri>.*)${Yu})`).exec(B.slice(m))||{groups:{}};if(S.code!==void 0){const T=Number.parseFloat(S.code);r=T===ir?void 0:T}else S.uri!==void 0&&(i=S.uri.length===0?void 0:S.uri)}const b=nr.codes.get(Number(r));g[d+1]===`
10
- `?(i&&(t+=VD("")),r&&b&&(t+=HD(b))):x===`
11
- `&&(r&&b&&(t+=HD(r)),i&&(t+=VD(i))),m+=x.length}return t};function Xu(u,D,e){return String(u).normalize().replaceAll(`\r
4
+ `)+e,r=F+1,F=u.indexOf(`
5
+ `,r)}while(F!==-1);return l+=u.slice(r),l}const{stdout:qu,stderr:Yu}=Ee,pu=Symbol("GENERATOR"),Du=Symbol("STYLER"),ru=Symbol("IS_EMPTY"),Vu=["ansi","ansi","ansi256","ansi16m"],eu=Object.create(null),he=(u,D={})=>{if(D.level&&!(Number.isInteger(D.level)&&D.level>=0&&D.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const e=qu?qu.level:0;u.level=D.level===void 0?e:D.level},Be=u=>{const D=(...e)=>e.join(" ");return he(D,u),Object.setPrototypeOf(D,nu.prototype),D};function nu(u){return Be(u)}Object.setPrototypeOf(nu.prototype,Function.prototype);for(const[u,D]of Object.entries(z))eu[u]={get(){const e=Eu(this,bu(D.open,D.close,this[Du]),this[ru]);return Object.defineProperty(this,u,{value:e}),e}};eu.visible={get(){const u=Eu(this,this[Du],!0);return Object.defineProperty(this,"visible",{value:u}),u}};const Ru=(u,D,e,...F)=>u==="rgb"?D==="ansi16m"?z[e].ansi16m(...F):D==="ansi256"?z[e].ansi256(z.rgbToAnsi256(...F)):z[e].ansi(z.rgbToAnsi(...F)):u==="hex"?Ru("rgb",D,e,...z.hexToRgb(...F)):z[e][u](...F),ge=["rgb","hex","ansi256"];for(const u of ge){eu[u]={get(){const{level:e}=this;return function(...F){const r=bu(Ru(u,Vu[e],"color",...F),z.color.close,this[Du]);return Eu(this,r,this[ru])}}};const D="bg"+u[0].toUpperCase()+u.slice(1);eu[D]={get(){const{level:e}=this;return function(...F){const r=bu(Ru(u,Vu[e],"bgColor",...F),z.bgColor.close,this[Du]);return Eu(this,r,this[ru])}}}}const me=Object.defineProperties(()=>{},{...eu,level:{enumerable:!0,get(){return this[pu].level},set(u){this[pu].level=u}}}),bu=(u,D,e)=>{let F,r;return e===void 0?(F=u,r=D):(F=e.openAll+u,r=D+e.closeAll),{open:u,close:D,openAll:F,closeAll:r,parent:e}},Eu=(u,D,e)=>{const F=(...r)=>de(F,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(F,me),F[pu]=u,F[Du]=D,F[ru]=e,F},de=(u,D)=>{if(u.level<=0||!D)return u[ru]?"":D;let e=u[Du];if(e===void 0)return D;const{openAll:F,closeAll:r}=e;if(D.includes("\x1B"))for(;e!==void 0;)D=fe(D,e.close,e.open),e=e.parent;const l=D.indexOf(`
6
+ `);return l!==-1&&(D=ce(D,r,F,l)),F+D+r};Object.defineProperties(nu.prototype,eu);const T=nu();nu({level:Yu?Yu.level:0});const Ae=22,pe=80,Ku=Ae+pe+2,fu=(u,D=" ")=>u.padStart(u.length+Math.floor((Ku-u.length)/2),D).padEnd(Ku,D),Re=u=>u.charAt(0).toUpperCase()+u.slice(1);class be{frames=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"];interval=null;current=0;text;constructor(D){this.text=D}start(){return process.stdout.write("\x1B[?25l"),this.interval=setInterval(()=>{process.stdout.write(`\r${T.cyanBright(this.frames[this.current])} ${this.text}`),this.current=(this.current+1)%this.frames.length},80),this}stop(){return this.interval&&(clearInterval(this.interval),this.interval=null,process.stdout.write("\r\x1B[K"),process.stdout.write("\x1B[?25h")),this}succeed(D){return this.stop(),console.log(`${T.hex("#00FF00")("\u2714")} ${D||this.text}`),this}fail(D){return this.stop(),console.log(`${T.hex("#FF0000")("\u2716")} ${D||this.text}`),this}}function ve({onlyFirst:u=!1}={}){const r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,u?void 0:"g")}const ye=ve();function Ju(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(ye,"")}function we(u){return u===161||u===164||u===167||u===168||u===170||u===173||u===174||u>=176&&u<=180||u>=182&&u<=186||u>=188&&u<=191||u===198||u===208||u===215||u===216||u>=222&&u<=225||u===230||u>=232&&u<=234||u===236||u===237||u===240||u===242||u===243||u>=247&&u<=250||u===252||u===254||u===257||u===273||u===275||u===283||u===294||u===295||u===299||u>=305&&u<=307||u===312||u>=319&&u<=322||u===324||u>=328&&u<=331||u===333||u===338||u===339||u===358||u===359||u===363||u===462||u===464||u===466||u===468||u===470||u===472||u===474||u===476||u===593||u===609||u===708||u===711||u>=713&&u<=715||u===717||u===720||u>=728&&u<=731||u===733||u===735||u>=768&&u<=879||u>=913&&u<=929||u>=931&&u<=937||u>=945&&u<=961||u>=963&&u<=969||u===1025||u>=1040&&u<=1103||u===1105||u===8208||u>=8211&&u<=8214||u===8216||u===8217||u===8220||u===8221||u>=8224&&u<=8226||u>=8228&&u<=8231||u===8240||u===8242||u===8243||u===8245||u===8251||u===8254||u===8308||u===8319||u>=8321&&u<=8324||u===8364||u===8451||u===8453||u===8457||u===8467||u===8470||u===8481||u===8482||u===8486||u===8491||u===8531||u===8532||u>=8539&&u<=8542||u>=8544&&u<=8555||u>=8560&&u<=8569||u===8585||u>=8592&&u<=8601||u===8632||u===8633||u===8658||u===8660||u===8679||u===8704||u===8706||u===8707||u===8711||u===8712||u===8715||u===8719||u===8721||u===8725||u===8730||u>=8733&&u<=8736||u===8739||u===8741||u>=8743&&u<=8748||u===8750||u>=8756&&u<=8759||u===8764||u===8765||u===8776||u===8780||u===8786||u===8800||u===8801||u>=8804&&u<=8807||u===8810||u===8811||u===8814||u===8815||u===8834||u===8835||u===8838||u===8839||u===8853||u===8857||u===8869||u===8895||u===8978||u>=9312&&u<=9449||u>=9451&&u<=9547||u>=9552&&u<=9587||u>=9600&&u<=9615||u>=9618&&u<=9621||u===9632||u===9633||u>=9635&&u<=9641||u===9650||u===9651||u===9654||u===9655||u===9660||u===9661||u===9664||u===9665||u>=9670&&u<=9672||u===9675||u>=9678&&u<=9681||u>=9698&&u<=9701||u===9711||u===9733||u===9734||u===9737||u===9742||u===9743||u===9756||u===9758||u===9792||u===9794||u===9824||u===9825||u>=9827&&u<=9829||u>=9831&&u<=9834||u===9836||u===9837||u===9839||u===9886||u===9887||u===9919||u>=9926&&u<=9933||u>=9935&&u<=9939||u>=9941&&u<=9953||u===9955||u===9960||u===9961||u>=9963&&u<=9969||u===9972||u>=9974&&u<=9977||u===9979||u===9980||u===9982||u===9983||u===10045||u>=10102&&u<=10111||u>=11094&&u<=11097||u>=12872&&u<=12879||u>=57344&&u<=63743||u>=65024&&u<=65039||u===65533||u>=127232&&u<=127242||u>=127248&&u<=127277||u>=127280&&u<=127337||u>=127344&&u<=127373||u===127375||u===127376||u>=127387&&u<=127404||u>=917760&&u<=917999||u>=983040&&u<=1048573||u>=1048576&&u<=1114109}function xe(u){return u===12288||u>=65281&&u<=65376||u>=65504&&u<=65510}function Se(u){return u>=4352&&u<=4447||u===8986||u===8987||u===9001||u===9002||u>=9193&&u<=9196||u===9200||u===9203||u===9725||u===9726||u===9748||u===9749||u>=9776&&u<=9783||u>=9800&&u<=9811||u===9855||u>=9866&&u<=9871||u===9875||u===9889||u===9898||u===9899||u===9917||u===9918||u===9924||u===9925||u===9934||u===9940||u===9962||u===9970||u===9971||u===9973||u===9978||u===9981||u===9989||u===9994||u===9995||u===10024||u===10060||u===10062||u>=10067&&u<=10069||u===10071||u>=10133&&u<=10135||u===10160||u===10175||u===11035||u===11036||u===11088||u===11093||u>=11904&&u<=11929||u>=11931&&u<=12019||u>=12032&&u<=12245||u>=12272&&u<=12287||u>=12289&&u<=12350||u>=12353&&u<=12438||u>=12441&&u<=12543||u>=12549&&u<=12591||u>=12593&&u<=12686||u>=12688&&u<=12773||u>=12783&&u<=12830||u>=12832&&u<=12871||u>=12880&&u<=42124||u>=42128&&u<=42182||u>=43360&&u<=43388||u>=44032&&u<=55203||u>=63744&&u<=64255||u>=65040&&u<=65049||u>=65072&&u<=65106||u>=65108&&u<=65126||u>=65128&&u<=65131||u>=94176&&u<=94180||u>=94192&&u<=94198||u>=94208&&u<=101589||u>=101631&&u<=101662||u>=101760&&u<=101874||u>=110576&&u<=110579||u>=110581&&u<=110587||u===110589||u===110590||u>=110592&&u<=110882||u===110898||u>=110928&&u<=110930||u===110933||u>=110948&&u<=110951||u>=110960&&u<=111355||u>=119552&&u<=119638||u>=119648&&u<=119670||u===126980||u===127183||u===127374||u>=127377&&u<=127386||u>=127488&&u<=127490||u>=127504&&u<=127547||u>=127552&&u<=127560||u===127568||u===127569||u>=127584&&u<=127589||u>=127744&&u<=127776||u>=127789&&u<=127797||u>=127799&&u<=127868||u>=127870&&u<=127891||u>=127904&&u<=127946||u>=127951&&u<=127955||u>=127968&&u<=127984||u===127988||u>=127992&&u<=128062||u===128064||u>=128066&&u<=128252||u>=128255&&u<=128317||u>=128331&&u<=128334||u>=128336&&u<=128359||u===128378||u===128405||u===128406||u===128420||u>=128507&&u<=128591||u>=128640&&u<=128709||u===128716||u>=128720&&u<=128722||u>=128725&&u<=128728||u>=128732&&u<=128735||u===128747||u===128748||u>=128756&&u<=128764||u>=128992&&u<=129003||u===129008||u>=129292&&u<=129338||u>=129340&&u<=129349||u>=129351&&u<=129535||u>=129648&&u<=129660||u>=129664&&u<=129674||u>=129678&&u<=129734||u===129736||u>=129741&&u<=129756||u>=129759&&u<=129770||u>=129775&&u<=129784||u>=131072&&u<=196605||u>=196608&&u<=262141}function Le(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function Te(u,{ambiguousAsWide:D=!1}={}){return Le(u),xe(u)||Se(u)||D&&we(u)?2:1}var Ie=()=>/[#*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-\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-\uDED8\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\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\uDD3C-\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-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\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\uDE70]|\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\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;const Me=new Intl.Segmenter,$e=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function H(u,D={}){if(typeof u!="string"||u.length===0)return 0;const{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:F=!1}=D;if(F||(u=Ju(u)),u.length===0)return 0;let r=0;const l={ambiguousAsWide:!e};for(const{segment:a}of Me.segment(u)){const o=a.codePointAt(0);if(!(o<=31||o>=127&&o<=159)&&!(o>=8203&&o<=8207||o===65279)&&!(o>=768&&o<=879||o>=6832&&o<=6911||o>=7616&&o<=7679||o>=8400&&o<=8447||o>=65056&&o<=65071)&&!(o>=55296&&o<=57343)&&!(o>=65024&&o<=65039)&&!$e.test(a)){if(Ie().test(a)){r+=2;continue}r+=Te(o,l)}}return r}function Xu(u){let D=0;for(const e of u.split(`
7
+ `))D=Math.max(D,H(e));return D}function Zu(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var cu={exports:{}},ke={topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},Oe={topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},_e={topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},Ne={topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},je={topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},Pe={topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},Ge={topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},We={topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"},Ue={single:ke,double:Oe,round:_e,bold:Ne,singleDouble:je,doubleSingle:Pe,classic:Ge,arrow:We},Qu;function He(){if(Qu)return cu.exports;Qu=1;const u=Ue;return cu.exports=u,cu.exports.default=u,cu.exports}var ze=He(),qe=Zu(ze);const Ye=/[\p{Lu}]/u,Ve=/[\p{Ll}]/u,uD=/^[\p{Lu}](?![\p{Lu}])/gu,DD=/([\p{Alpha}\p{N}_]|$)/u,vu=/[_.\- ]+/,Ke=new RegExp("^"+vu.source),eD=new RegExp(vu.source+DD.source,"gu"),tD=new RegExp("\\d+"+DD.source,"gu"),Je=(u,D,e,F)=>{let r=!1,l=!1,a=!1,o=!1;for(let g=0;g<u.length;g++){const R=u[g];o=g>2?u[g-3]==="-":!0,r&&Ye.test(R)?(u=u.slice(0,g)+"-"+u.slice(g),r=!1,a=l,l=!0,g++):l&&a&&Ve.test(R)&&(!o||F)?(u=u.slice(0,g-1)+"-"+u.slice(g-1),a=l,l=!1,r=!0):(r=D(R)===R&&e(R)!==R,a=l,l=e(R)===R&&D(R)!==R)}return u},Xe=(u,D)=>(uD.lastIndex=0,u.replaceAll(uD,e=>D(e))),Ze=(u,D)=>(eD.lastIndex=0,tD.lastIndex=0,u.replaceAll(tD,(e,F,r)=>["_","-"].includes(u.charAt(r+e.length))?e:D(e)).replaceAll(eD,(e,F)=>D(F)));function Qe(u,D){if(!(typeof u=="string"||Array.isArray(u)))throw new TypeError("Expected the input to be `string | string[]`");if(D={pascalCase:!1,preserveConsecutiveUppercase:!1,...D},Array.isArray(u)?u=u.map(l=>l.trim()).filter(l=>l.length).join("-"):u=u.trim(),u.length===0)return"";const e=D.locale===!1?l=>l.toLowerCase():l=>l.toLocaleLowerCase(D.locale),F=D.locale===!1?l=>l.toUpperCase():l=>l.toLocaleUpperCase(D.locale);return u.length===1?vu.test(u)?"":D.pascalCase?F(u):e(u):(u!==e(u)&&(u=Je(u,e,F,D.preserveConsecutiveUppercase)),u=u.replace(Ke,""),u=D.preserveConsecutiveUppercase?Xe(u,e):e(u),D.pascalCase&&(u=F(u.charAt(0))+u.slice(1)),Ze(u,F))}var hu={exports:{}},yu,FD;function ut(){return FD||(FD=1,yu=({onlyFirst:u=!1}={})=>{const D=["[\\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(D,u?void 0:"g")}),yu}var wu,rD;function Dt(){if(rD)return wu;rD=1;const u=ut();return wu=D=>typeof D=="string"?D.replace(u(),""):D,wu}var Bu={exports:{}},nD;function et(){if(nD)return Bu.exports;nD=1;const u=D=>Number.isNaN(D)?!1:D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141);return Bu.exports=u,Bu.exports.default=u,Bu.exports}var xu,iD;function tt(){return iD||(iD=1,xu=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}),xu}var lD;function Ft(){if(lD)return hu.exports;lD=1;const u=Dt(),D=et(),e=tt(),F=r=>{if(typeof r!="string"||r.length===0||(r=u(r),r.length===0))return 0;r=r.replace(e()," ");let l=0;for(let a=0;a<r.length;a++){const o=r.codePointAt(a);o<=31||o>=127&&o<=159||o>=768&&o<=879||(o>65535&&a++,l+=D(o)?2:1)}return l};return hu.exports=F,hu.exports.default=F,hu.exports}var Su,sD;function rt(){if(sD)return Su;sD=1;const u=Ft();function D(r,l){if(!r)return r;l=l||{};const a=l.align||"center";if(a==="left")return r;const o=l.split||`
8
+ `,g=l.pad||" ",R=a!=="right"?e:F;let d=!1;Array.isArray(r)||(d=!0,r=String(r).split(o));let b,y=0;return r=r.map(function(w){return w=String(w),b=u(w),y=Math.max(b,y),{str:w,width:b}}).map(function(w){return new Array(R(y,w.width)+1).join(g)+w.str}),d?r.join(o):r}D.left=function(l){return D(l,{align:"left"})},D.center=function(l){return D(l,{align:"center"})},D.right=function(l){return D(l,{align:"right"})},Su=D;function e(r,l){return Math.floor((r-l)/2)}function F(r,l){return r-l}return Su}var nt=rt(),oD=Zu(nt);const Lu=10,aD=(u=0)=>D=>`\x1B[${D+u}m`,CD=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,ED=(u=0)=>(D,e,F)=>`\x1B[${38+u};2;${D};${e};${F}m`,I={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]}};Object.keys(I.modifier);const it=Object.keys(I.color),lt=Object.keys(I.bgColor);[...it,...lt];function st(){const u=new Map;for(const[D,e]of Object.entries(I)){for(const[F,r]of Object.entries(e))I[F]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[F]=I[F],u.set(r[0],r[1]);Object.defineProperty(I,D,{value:e,enumerable:!1})}return Object.defineProperty(I,"codes",{value:u,enumerable:!1}),I.color.close="\x1B[39m",I.bgColor.close="\x1B[49m",I.color.ansi=aD(),I.color.ansi256=CD(),I.color.ansi16m=ED(),I.bgColor.ansi=aD(Lu),I.bgColor.ansi256=CD(Lu),I.bgColor.ansi16m=ED(Lu),Object.defineProperties(I,{rgbToAnsi256:{value(D,e,F){return D===e&&e===F?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(F/255*5)},enumerable:!1},hexToRgb:{value(D){const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[F]=e;F.length===3&&(F=[...F].map(l=>l+l).join(""));const r=Number.parseInt(F,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>I.rgbToAnsi256(...I.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,F,r;if(D>=232)e=((D-232)*10+8)/255,F=e,r=e;else{D-=16;const o=D%36;e=Math.floor(D/36)/5,F=Math.floor(o/6)/5,r=o%6/5}const l=Math.max(e,F,r)*2;if(l===0)return 30;let a=30+(Math.round(r)<<2|Math.round(F)<<1|Math.round(e));return l===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(D,e,F)=>I.ansi256ToAnsi(I.rgbToAnsi256(D,e,F)),enumerable:!1},hexToAnsi:{value:D=>I.ansi256ToAnsi(I.hexToAnsi256(D)),enumerable:!1}}),I}const ot=st(),gu=new Set(["\x1B","\x9B"]),at=39,Tu="\x07",fD="[",Ct="]",cD="m",mu=`${Ct}8;;`,hD=u=>`${gu.values().next().value}${fD}${u}${cD}`,BD=u=>`${gu.values().next().value}${mu}${u}${Tu}`,Et=u=>u.split(" ").map(D=>H(D)),Iu=(u,D,e)=>{const F=[...D];let r=!1,l=!1,a=H(Ju(u.at(-1)));for(const[o,g]of F.entries()){const R=H(g);if(a+R<=e?u[u.length-1]+=g:(u.push(g),a=0),gu.has(g)&&(r=!0,l=F.slice(o+1,o+1+mu.length).join("")===mu),r){l?g===Tu&&(r=!1,l=!1):g===cD&&(r=!1);continue}a+=R,a===e&&o<F.length-1&&(u.push(""),a=0)}!a&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},ft=u=>{const D=u.split(" ");let e=D.length;for(;e>0&&!(H(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},ct=(u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let F="",r,l;const a=Et(u);let o=[""];for(const[b,y]of u.split(" ").entries()){e.trim!==!1&&(o[o.length-1]=o.at(-1).trimStart());let w=H(o.at(-1));if(b!==0&&(w>=D&&(e.wordWrap===!1||e.trim===!1)&&(o.push(""),w=0),(w>0||e.trim===!1)&&(o[o.length-1]+=" ",w++)),e.hard&&a[b]>D){const k=D-w,j=1+Math.floor((a[b]-k-1)/D);Math.floor((a[b]-1)/D)<j&&o.push(""),Iu(o,y,D);continue}if(w+a[b]>D&&w>0&&a[b]>0){if(e.wordWrap===!1&&w<D){Iu(o,y,D);continue}o.push("")}if(w+a[b]>D&&e.wordWrap===!1){Iu(o,y,D);continue}o[o.length-1]+=y}e.trim!==!1&&(o=o.map(b=>ft(b)));const g=o.join(`
9
+ `),R=[...g];let d=0;for(const[b,y]of R.entries()){if(F+=y,gu.has(y)){const{groups:k}=new RegExp(`(?:\\${fD}(?<code>\\d+)m|\\${mu}(?<uri>.*)${Tu})`).exec(g.slice(d))||{groups:{}};if(k.code!==void 0){const j=Number.parseFloat(k.code);r=j===at?void 0:j}else k.uri!==void 0&&(l=k.uri.length===0?void 0:k.uri)}const w=ot.codes.get(Number(r));R[b+1]===`
10
+ `?(l&&(F+=BD("")),r&&w&&(F+=hD(w))):y===`
11
+ `&&(r&&w&&(F+=hD(r)),l&&(F+=BD(l))),d+=y.length}return F};function gD(u,D,e){return String(u).normalize().replaceAll(`\r
12
12
  `,`
13
13
  `).split(`
14
- `).map(t=>Fr(t,D,e)).join(`
15
- `)}const ru=`
16
- `,z=" ",mu="none",zD=()=>{const{env:u,stdout:D,stderr:e}=N;return D?.columns?D.columns:e?.columns?e.columns:u.COLUMNS?Number.parseInt(u.COLUMNS,10):80},KD=u=>typeof u=="number"?{top:u,right:u*3,bottom:u,left:u*3}:{top:0,right:0,bottom:0,left:0,...u},pu=u=>u===mu?0:2,ar=u=>{const D=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"];let e;if(u===mu){u={};for(const t of D)u[t]=""}if(typeof u=="string"){if(e=jt[u],!e)throw new TypeError(`Invalid border style: ${u}`)}else{typeof u?.vertical=="string"&&(u.left=u.vertical,u.right=u.vertical),typeof u?.horizontal=="string"&&(u.top=u.horizontal,u.bottom=u.horizontal);for(const t of D)if(u[t]===null||typeof u[t]!="string")throw new TypeError(`Invalid border style: ${t}`);e=u}return e},cr=(u,D,e)=>{let t="";const r=Du(u);switch(e){case"left":{t=u+D.slice(r);break}case"right":{t=D.slice(r)+u;break}default:{D=D.slice(r),D.length%2===1?(D=D.slice(Math.floor(D.length/2)),t=D.slice(1)+u+D):(D=D.slice(D.length/2),t=D+u+D);break}}return t},fr=(u,{padding:D,width:e,textAlignment:t,height:r})=>{u=PD(u,{align:t});let i=u.split(ru);const F=xD(u),a=e-D.left-D.right;if(F>a){const m=[];for(const d of i){const x=Xu(d,a,{hard:!0}),S=PD(x,{align:t}).split(`
17
- `),T=Math.max(...S.map(A=>Du(A)));for(const A of S){let L;switch(t){case"center":{L=z.repeat((a-T)/2)+A;break}case"right":{L=z.repeat(a-T)+A;break}default:{L=A;break}}m.push(L)}}i=m}t==="center"&&F<a?i=i.map(m=>z.repeat((a-F)/2)+m):t==="right"&&F<a&&(i=i.map(m=>z.repeat(a-F)+m));const B=z.repeat(D.left),g=z.repeat(D.right);return i=i.map(m=>{const d=B+m+g;return d+z.repeat(e-Du(d))}),D.top>0&&(i=[...Array.from({length:D.top}).fill(z.repeat(e)),...i]),D.bottom>0&&(i=[...i,...Array.from({length:D.bottom}).fill(z.repeat(e))]),r&&i.length>r?i=i.slice(0,r):r&&i.length<r&&(i=[...i,...Array.from({length:r-i.length}).fill(z.repeat(e))]),i.join(ru)},Cr=(u,D,e)=>{const t=m=>{const d=e.borderColor?dr(e.borderColor)(m):m;return e.dimBorder?G.dim(d):d},r=m=>e.backgroundColor?gr(e.backgroundColor)(m):m,i=ar(e.borderStyle),F=zD();let a=z.repeat(e.margin.left);if(e.float==="center"){const m=Math.max((F-D-pu(e.borderStyle))/2,0);a=z.repeat(m)}else if(e.float==="right"){const m=Math.max(F-D-e.margin.right-pu(e.borderStyle),0);a=z.repeat(m)}let B="";e.margin.top&&(B+=ru.repeat(e.margin.top)),(e.borderStyle!==mu||e.title)&&(B+=t(a+i.topLeft+(e.title?cr(e.title,i.top.repeat(D),e.titleAlignment):i.top.repeat(D))+i.topRight)+ru);const g=u.split(ru);return B+=g.map(m=>a+t(i.left)+r(m)+t(i.right)).join(ru),e.borderStyle!==mu&&(B+=ru+t(a+i.bottomLeft+i.bottom.repeat(D)+i.bottomRight)),e.margin.bottom&&(B+=ru.repeat(e.margin.bottom)),B},hr=u=>{if(u.fullscreen&&N?.stdout){let D=[N.stdout.columns,N.stdout.rows];typeof u.fullscreen=="function"&&(D=u.fullscreen(...D)),u.width||=D[0],u.height||=D[1]}return u.width&&=Math.max(1,u.width-pu(u.borderStyle)),u.height&&=Math.max(1,u.height-pu(u.borderStyle)),u},YD=(u,D)=>D===mu?u:` ${u} `,Er=(u,D)=>{D=hr(D);const e=D.width!==void 0,t=zD(),r=pu(D.borderStyle),i=t-D.margin.left-D.margin.right-r,F=xD(Xu(u,t-r,{hard:!0,trim:!1}))+D.padding.left+D.padding.right;if(D.title&&e?(D.title=D.title.slice(0,Math.max(0,D.width-2)),D.title&&=YD(D.title,D.borderStyle)):D.title&&(D.title=D.title.slice(0,Math.max(0,i-2)),D.title&&(D.title=YD(D.title,D.borderStyle),Du(D.title)>F&&(D.width=Du(D.title)))),D.width||=F,!e){if(D.margin.left&&D.margin.right&&D.width>i){const B=(t-D.width-r)/(D.margin.left+D.margin.right);D.margin.left=Math.max(0,Math.floor(D.margin.left*B)),D.margin.right=Math.max(0,Math.floor(D.margin.right*B))}D.width=Math.min(D.width,t-r-D.margin.left-D.margin.right)}return D.width-(D.padding.left+D.padding.right)<=0&&(D.padding.left=0,D.padding.right=0),D.height&&D.height-(D.padding.top+D.padding.bottom)<=0&&(D.padding.top=0,D.padding.bottom=0),D},Zu=u=>u.match(/^#(?:[0-f]{3}){1,2}$/i),JD=u=>typeof u=="string"&&(G[u]??Zu(u)),dr=u=>Zu(u)?G.hex(u):G[u],gr=u=>Zu(u)?G.bgHex(u):G[Kt(["bg",u])];function Br(u,D){if(D={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...D},D.align&&(D.textAlignment=D.align),D.borderColor&&!JD(D.borderColor))throw new Error(`${D.borderColor} is not a valid borderColor`);if(D.backgroundColor&&!JD(D.backgroundColor))throw new Error(`${D.backgroundColor} is not a valid backgroundColor`);return D.padding=KD(D.padding),D.margin=KD(D.margin),D=Er(u,D),u=fr(u,D),Cr(u,D.width,D)}const Qu=(u,D=[])=>u.name==="up"||D.includes("vim")&&u.name==="k"||D.includes("emacs")&&u.ctrl&&u.name==="p",XD=(u,D=[])=>u.name==="down"||D.includes("vim")&&u.name==="j"||D.includes("emacs")&&u.ctrl&&u.name==="n",mr=u=>u.name==="backspace",pr=u=>"1234567890".includes(u.name),Ar=u=>u.name==="enter"||u.name==="return";class br extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(D){super(),this.cause=D?.cause}}class Rr extends Error{name="CancelPromptError";message="Prompt was canceled"}class ZD extends Error{name="ExitPromptError"}class wr extends Error{name="HookError"}class QD extends Error{name="ValidationError"}const ue=new Se;function yr(u){return{rl:u,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function xr(u,D){const e=yr(u);return ue.run(e,()=>{function t(r){e.handleChange=()=>{e.index=0,r()},e.handleChange()}return D(t)})}function iu(){const u=ue.getStore();if(!u)throw new wr("[Inquirer] Hook functions can only be called from within a prompt");return u}function De(){return iu().rl}function ee(u){const D=(...e)=>{const t=iu();let r=!1;const i=t.handleChange;t.handleChange=()=>{r=!0};const F=u(...e);return r&&i(),t.handleChange=i,F};return Uu.bind(D)}function uD(u){const D=iu(),{index:e}=D,t={get(){return D.hooks[e]},set(i){D.hooks[e]=i},initialized:e in D.hooks},r=u(t);return D.index++,r}function vr(){iu().handleChange()}const Au={queue(u){const D=iu(),{index:e}=D;D.hooksEffect.push(()=>{D.hooksCleanup[e]?.();const t=u(De());if(t!=null&&typeof t!="function")throw new QD("useEffect return value must be a cleanup function or nothing.");D.hooksCleanup[e]=t})},run(){const u=iu();ee(()=>{u.hooksEffect.forEach(D=>{D()}),u.hooksEffect.length=0})()},clearAll(){const u=iu();u.hooksCleanup.forEach(D=>{D?.()}),u.hooksEffect.length=0,u.hooksCleanup.length=0}};function bu(u){return uD(D=>{const e=Uu.bind(function(i){D.get()!==i&&(D.set(i),vr())});if(D.initialized)return[D.get(),e];const t=typeof u=="function"?u():u;return D.set(t),[t,e]})}function DD(u,D){uD(e=>{const t=e.get();(!Array.isArray(t)||D.some((i,F)=>!Object.is(i,t[F])))&&Au.queue(u),e.set(D)})}function Lr(){return N.platform!=="win32"?N.env.TERM!=="linux":!!N.env.WT_SESSION||!!N.env.TERMINUS_SUBLIME||N.env.ConEmuTask==="{cmd::Cmder}"||N.env.TERM_PROGRAM==="Terminus-Sublime"||N.env.TERM_PROGRAM==="vscode"||N.env.TERM==="xterm-256color"||N.env.TERM==="alacritty"||N.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const te={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},Sr={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Tr={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Ir={...te,...Sr},Mr={...te,...Tr},kr=Lr(),eD=kr?Ir:Mr,_r={prefix:{idle:j("blue","?"),done:j("green",eD.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(u=>j("yellow",u))},style:{answer:u=>j("cyan",u),message:u=>j("bold",u),error:u=>j("red",`> ${u}`),defaultAnswer:u=>j("dim",`(${u})`),help:u=>j("dim",u),highlight:u=>j("cyan",u),key:u=>j("cyan",j("bold",`<${u}>`))}};function re(u){if(typeof u!="object"||u===null)return!1;let D=u;for(;Object.getPrototypeOf(D)!==null;)D=Object.getPrototypeOf(D);return Object.getPrototypeOf(u)===D}function ne(...u){const D={};for(const e of u)for(const[t,r]of Object.entries(e)){const i=D[t];D[t]=re(i)&&re(r)?ne(i,r):r}return D}function ie(...u){const D=[_r,...u.filter(e=>e!=null)];return ne(...D)}function Or({status:u="idle",theme:D}){const[e,t]=bu(!1),[r,i]=bu(0),{prefix:F,spinner:a}=ie(D);return DD(()=>{if(u==="loading"){let g,m=-1;const d=setTimeout(()=>{t(!0),g=setInterval(()=>{m=m+1,i(m%a.frames.length)},a.interval)},300);return()=>{clearTimeout(d),clearInterval(g)}}else t(!1)},[u]),e?a.frames[r]:typeof F=="string"?F:F[u==="loading"?"idle":u]??F.idle}function tD(u,D){return uD(e=>{const t=e.get();if(!t||t.dependencies.length!==D.length||t.dependencies.some((r,i)=>r!==D[i])){const r=u();return e.set({value:r,dependencies:D}),r}return t.value})}function rD(u){return bu({current:u})[0]}function $r(u){const D=rD(u);D.current=u,DD(e=>{let t=!1;const r=ee((i,F)=>{t||D.current(F,e)});return e.input.on("keypress",r),()=>{t=!0,e.input.removeListener("keypress",r)}},[])}var nD,le;function Ur(){if(le)return nD;le=1,nD=D;function u(e){const t={defaultWidth:0,output:process.stdout,tty:Ie};return e?(Object.keys(t).forEach(function(r){e[r]||(e[r]=t[r])}),e):t}function D(e){const t=u(e);if(t.output.getWindowSize)return t.output.getWindowSize()[0]||t.defaultWidth;if(t.tty.getWindowSize)return t.tty.getWindowSize()[1]||t.defaultWidth;if(t.output.columns)return t.output.columns;if(process.env.CLI_WIDTH){const r=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(r)&&r!==0)return r}return t.defaultWidth}return nD}var Pr=Ur(),Nr=Tu(Pr);function iD(u,D){return u.split(`
18
- `).flatMap(e=>Xu(e,D,{trim:!1,hard:!0}).split(`
19
- `).map(t=>t.trimEnd())).join(`
20
- `)}function se(){return Nr({defaultWidth:80,output:De().output})}function jr({active:u,renderedItems:D,pageSize:e,loop:t}){const r=rD({lastPointer:u,lastActive:void 0}),{lastPointer:i,lastActive:F}=r.current,a=Math.floor(e/2),B=D.reduce((d,x)=>d+x.length,0),g=D.slice(0,u).reduce((d,x)=>d+x.length,0);let m=g;if(B>e)if(t)m=i,F!=null&&F<u&&u-F<e&&(m=Math.min(a,Math.abs(u-F)===1?Math.min(i+(D[F]?.length??0),Math.max(g,i)):i+u-F));else{const d=D.slice(u).reduce((x,b)=>x+b.length,0);m=d<e-a?e-d:Math.min(g,a)}return r.current.lastPointer=m,r.current.lastActive=u,m}function Gr({items:u,active:D,renderItem:e,pageSize:t,loop:r=!0}){const i=se(),F=L=>(L%u.length+u.length)%u.length,a=u.map((L,I)=>L==null?[]:iD(e({item:L,index:I,isActive:I===D}),i).split(`
21
- `)),B=a.reduce((L,I)=>L+I.length,0),g=L=>a[L]??[],m=jr({active:D,renderedItems:a,pageSize:t,loop:r}),d=g(D).slice(0,t),x=m+d.length<=t?m:t-d.length,b=Array.from({length:t});b.splice(x,d.length,...d);const S=new Set([D]);let T=x+d.length,A=F(D+1);for(;T<t&&!S.has(A)&&(r&&B>t?A!==D:A>D);){const I=g(A).slice(0,t-T);b.splice(T,I.length,...I),S.add(A),T+=I.length,A=F(A+1)}for(T=x-1,A=F(D-1);T>=0&&!S.has(A)&&(r&&B>t?A!==D:A<D);){const L=g(A),I=L.slice(Math.max(0,L.length-T-1));b.splice(T-I.length+1,I.length,...I),S.add(A),T-=I.length,A=F(A-1)}return b.filter(L=>typeof L=="string").join(`
22
- `)}var lD,oe;function Wr(){if(oe)return lD;oe=1;const u=Te;class D extends u{#e=null;constructor(t={}){super(t),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}#D(t,r){return this._dest?this._dest[t]:this._src?this._src[t]:r}#u(t,...r){typeof this._dest?.[t]=="function"&&this._dest[t](...r),typeof this._src?.[t]=="function"&&this._src[t](...r)}get isTTY(){return this.#e!==null?this.#e:this.#D("isTTY",!1)}set isTTY(t){this.#e=t}get rows(){return this.#D("rows")}get columns(){return this.#D("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(t){this._src=t}pipe(t,r){return this._dest=t,super.pipe(t,r)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.slice(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.slice(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)}end(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")}destroy(...t){return this.#u("destroy",...t)}destroySoon(...t){return this.#u("destroySoon",...t)}close(...t){return this.#u("close",...t)}}return lD=D,lD}var qr=Wr(),Hr=Tu(qr);const Cu=[];Cu.push("SIGHUP","SIGINT","SIGTERM"),process.platform!=="win32"&&Cu.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&Cu.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const $u=u=>!!u&&typeof u=="object"&&typeof u.removeListener=="function"&&typeof u.emit=="function"&&typeof u.reallyExit=="function"&&typeof u.listeners=="function"&&typeof u.kill=="function"&&typeof u.pid=="number"&&typeof u.on=="function",sD=Symbol.for("signal-exit emitter"),oD=globalThis,Vr=Object.defineProperty.bind(Object);class zr{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(oD[sD])return oD[sD];Vr(oD,sD,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(D,e){this.listeners[D].push(e)}removeListener(D,e){const t=this.listeners[D],r=t.indexOf(e);r!==-1&&(r===0&&t.length===1?t.length=0:t.splice(r,1))}emit(D,e,t){if(this.emitted[D])return!1;this.emitted[D]=!0;let r=!1;for(const i of this.listeners[D])r=i(e,t)===!0||r;return D==="exit"&&(r=this.emit("afterExit",e,t)||r),r}}class Fe{}const Kr=u=>({onExit(D,e){return u.onExit(D,e)},load(){return u.load()},unload(){return u.unload()}});class Yr extends Fe{onExit(){return()=>{}}load(){}unload(){}}class Jr extends Fe{#e=FD.platform==="win32"?"SIGINT":"SIGHUP";#D=new zr;#u;#n;#i;#r={};#t=!1;constructor(D){super(),this.#u=D,this.#r={};for(const e of Cu)this.#r[e]=()=>{const t=this.#u.listeners(e);let{count:r}=this.#D;const i=D;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(r+=i.__signal_exit_emitter__.count),t.length===r){this.unload();const F=this.#D.emit("exit",null,e),a=e==="SIGHUP"?this.#e:e;F||D.kill(D.pid,a)}};this.#i=D.reallyExit,this.#n=D.emit}onExit(D,e){if(!$u(this.#u))return()=>{};this.#t===!1&&this.load();const t=e?.alwaysLast?"afterExit":"exit";return this.#D.on(t,D),()=>{this.#D.removeListener(t,D),this.#D.listeners.exit.length===0&&this.#D.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#t){this.#t=!0,this.#D.count+=1;for(const D of Cu)try{const e=this.#r[D];e&&this.#u.on(D,e)}catch{}this.#u.emit=(D,...e)=>this.#s(D,...e),this.#u.reallyExit=D=>this.#l(D)}}unload(){this.#t&&(this.#t=!1,Cu.forEach(D=>{const e=this.#r[D];if(!e)throw new Error("Listener not defined for signal: "+D);try{this.#u.removeListener(D,e)}catch{}}),this.#u.emit=this.#n,this.#u.reallyExit=this.#i,this.#D.count-=1)}#l(D){return $u(this.#u)?(this.#u.exitCode=D||0,this.#D.emit("exit",this.#u.exitCode,null),this.#i.call(this.#u,this.#u.exitCode)):0}#s(D,...e){const t=this.#n;if(D==="exit"&&$u(this.#u)){typeof e[0]=="number"&&(this.#u.exitCode=e[0]);const r=t.call(this.#u,D,...e);return this.#D.emit("exit",this.#u.exitCode,null),r}else return t.call(this.#u,D,...e)}}const FD=globalThis.process,{onExit:Xr}=Kr($u(FD)?new Jr(FD):new Yr),lu="\x1B[",Zr=lu+"G",Qr=lu+"?25l",un=lu+"?25h",ae=(u=1)=>u>0?`${lu}${u}A`:"",ce=(u=1)=>u>0?`${lu}${u}B`:"",fe=(u,D)=>`${lu}${u+1}G`,Ce=lu+"2K",he=u=>u>0?(Ce+ae(1)).repeat(u-1)+Ce+Zr:"",Ee=u=>u.split(`
23
- `).length,Dn=u=>u.split(`
24
- `).pop()??"";class en{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(D){this.rl=D,this.cursorPos=D.getCursorPos()}write(D){this.rl.output.unmute(),this.rl.output.write(D),this.rl.output.mute()}render(D,e=""){const t=Dn(D),r=ve(t);let i=r;this.rl.line.length>0&&(i=i.slice(0,-this.rl.line.length)),this.rl.setPrompt(i),this.cursorPos=this.rl.getCursorPos();const F=se();D=iD(D,F),e=iD(e,F),r.length%F===0&&(D+=`
25
- `);let a=D+(e?`
26
- `+e:"");const g=Math.floor(r.length/F)-this.cursorPos.rows+(e?Ee(e):0);g>0&&(a+=ae(g)),a+=fe(this.cursorPos.cols),this.write(ce(this.extraLinesUnderPrompt)+he(this.height)+a),this.extraLinesUnderPrompt=g,this.height=Ee(a)}checkCursorPos(){const D=this.rl.getCursorPos();D.cols!==this.cursorPos.cols&&(this.write(fe(D.cols)),this.cursorPos=D)}done({clearContent:D}){this.rl.setPrompt("");let e=ce(this.extraLinesUnderPrompt);e+=D?he(this.height):`
27
- `,e+=un,this.write(e),this.rl.close()}}class tn extends Promise{static withResolver(){let D,e;return{promise:new Promise((r,i)=>{D=r,e=i}),resolve:D,reject:e}}}function rn(){const u=Error.prepareStackTrace;let D=[];try{Error.prepareStackTrace=(e,t)=>{const r=t.slice(1);return D=r,r},new Error().stack}catch{return D}return Error.prepareStackTrace=u,D}function nn(u){const D=rn();return(t,r={})=>{const{input:i=process.stdin,signal:F}=r,a=new Set,B=new Hr;B.pipe(r.output??process.stdout);const g=Le.createInterface({terminal:!0,input:i,output:B}),m=new en(g),{promise:d,resolve:x,reject:b}=tn.withResolver(),S=()=>b(new Rr);if(F){const L=()=>b(new br({cause:F.reason}));if(F.aborted)return L(),Object.assign(d,{cancel:S});F.addEventListener("abort",L),a.add(()=>F.removeEventListener("abort",L))}a.add(Xr((L,I)=>{b(new ZD(`User force closed the prompt with ${L} ${I}`))}));const T=()=>b(new ZD("User force closed the prompt with SIGINT"));g.on("SIGINT",T),a.add(()=>g.removeListener("SIGINT",T));const A=()=>m.checkCursorPos();return g.input.on("keypress",A),a.add(()=>g.input.removeListener("keypress",A)),xr(g,L=>{const I=Uu.bind(()=>Au.clearAll());return g.on("close",I),a.add(()=>g.removeListener("close",I)),L(()=>{try{const $=u(t,ou=>{setImmediate(()=>x(ou))});if($===void 0){const ou=D[1]?.getFileName();throw new Error(`Prompt functions must return a string.
28
- at ${ou}`)}const[Eu,su]=typeof $=="string"?[$]:$;m.render(Eu,su),Au.run()}catch($){b($)}}),Object.assign(d.then($=>(Au.clearAll(),$),$=>{throw Au.clearAll(),$}).finally(()=>{a.forEach($=>$()),m.done({clearContent:!!r.clearPromptOnDone}),B.end()}).then(()=>d),{cancel:S})})}}class Ru{separator=j("dim",Array.from({length:15}).join(eD.line));type="separator";constructor(D){D&&(this.separator=D)}static isSeparator(D){return!!(D&&typeof D=="object"&&"type"in D&&D.type==="separator")}}const ln={icon:{cursor:eD.pointer},style:{disabled:u=>j("dim",`- ${u}`),description:u=>j("cyan",u),keysHelpTip:u=>u.map(([D,e])=>`${j("bold",D)} ${j("dim",e)}`).join(j("dim"," \u2022 "))},indexMode:"hidden",keybindings:[]};function hu(u){return!Ru.isSeparator(u)&&!u.disabled}function sn(u){return u.map(D=>{if(Ru.isSeparator(D))return D;if(typeof D!="object"||D===null||!("value"in D)){const r=String(D);return{value:D,name:r,short:r,disabled:!1}}const e=D.name??String(D.value),t={value:D.value,name:e,short:D.short??e,disabled:D.disabled??!1};return D.description&&(t.description=D.description),t})}var on=nn((u,D)=>{const{loop:e=!0,pageSize:t=7}=u,r=ie(ln,u.theme),{keybindings:i}=r,[F,a]=bu("idle"),B=Or({status:F,theme:r}),g=rD(),m=!i.includes("vim"),d=tD(()=>sn(u.choices),[u.choices]),x=tD(()=>{const M=d.findIndex(hu),W=d.findLastIndex(hu);if(M===-1)throw new QD("[select prompt] No selectable choices. All choices are disabled.");return{first:M,last:W}},[d]),b=tD(()=>"default"in u?d.findIndex(M=>hu(M)&&M.value===u.default):-1,[u.default,d]),[S,T]=bu(b===-1?x.first:b),A=d[S];$r((M,W)=>{if(clearTimeout(g.current),Ar(M))a("done"),D(A.value);else if(Qu(M,i)||XD(M,i)){if(W.clearLine(0),e||Qu(M,i)&&S!==x.first||XD(M,i)&&S!==x.last){const tu=Qu(M,i)?-1:1;let q=S;do q=(q+tu+d.length)%d.length;while(!hu(d[q]));T(q)}}else if(pr(M)&&!Number.isNaN(Number(W.line))){const tu=Number(W.line)-1;let q=-1;const K=d.findIndex(Z=>Ru.isSeparator(Z)?!1:(q++,q===tu)),X=d[K];X!=null&&hu(X)&&T(K),g.current=setTimeout(()=>{W.clearLine(0)},700)}else if(mr(M))W.clearLine(0);else if(m){const tu=W.line.toLowerCase(),q=d.findIndex(K=>Ru.isSeparator(K)||!hu(K)?!1:K.name.toLowerCase().startsWith(tu));q!==-1&&T(q),g.current=setTimeout(()=>{W.clearLine(0)},700)}}),DD(()=>()=>{clearTimeout(g.current)},[]);const L=r.style.message(u.message,F),I=r.style.keysHelpTip([["\u2191\u2193","navigate"],["\u23CE","select"]]);let $=0;const Eu=Gr({items:d,active:S,renderItem({item:M,isActive:W,index:tu}){if(Ru.isSeparator(M))return $++,` ${M.separator}`;const q=r.indexMode==="number"?`${tu+1-$}. `:"";if(M.disabled){const Z=typeof M.disabled=="string"?M.disabled:"(disabled)";return r.style.disabled(`${q}${M.name} ${Z}`)}const K=W?r.style.highlight:Z=>Z,X=W?r.icon.cursor:" ";return K(`${X} ${q}${M.name}`)},pageSize:t,loop:e});if(F==="done")return[B,L,r.style.answer(A.short)].filter(Boolean).join(" ");const{description:su}=A;return`${[[B,L].filter(Boolean).join(" "),Eu," ",su?r.style.description(su):"",I].filter(Boolean).join(`
29
- `).trimEnd()}${Qr}`});const Fn={FULL_WIDTH:0,FITTING:1,SMUSHING:2,CONTROLLED_SMUSHING:3};class an{constructor(){this.comment="",this.numChars=0,this.options={}}}const aD=["1Row","3-D","3D Diagonal","3D-ASCII","3x5","4Max","5 Line Oblique","AMC 3 Line","AMC 3 Liv1","AMC AAA01","AMC Neko","AMC Razor","AMC Razor2","AMC Slash","AMC Slider","AMC Thin","AMC Tubes","AMC Untitled","ANSI Regular","ANSI Shadow","ANSI-Compact","ASCII 12","ASCII 9","ASCII New Roman","Acrobatic","Alligator","Alligator2","Alpha","Alphabet","Arrows","Avatar","B1FF","Babyface Lame","Babyface Leet","Banner","Banner3-D","Banner3","Banner4","Barbwire","Basic","Bear","Bell","Benjamin","Big ASCII 12","Big ASCII 9","Big Chief","Big Money-ne","Big Money-nw","Big Money-se","Big Money-sw","Big Mono 12","Big Mono 9","Big","Bigfig","Binary","Block","Blocks","Bloody","BlurVision ASCII","Bolger","Braced","Bright","Broadway KB","Broadway","Bubble","Bulbhead","Caligraphy","Caligraphy2","Calvin S","Cards","Catwalk","Chiseled","Chunky","Circle","Coinstak","Cola","Colossal","Computer","Contessa","Contrast","Cosmike","Cosmike2","Crawford","Crawford2","Crazy","Cricket","Cursive","Cyberlarge","Cybermedium","Cybersmall","Cygnet","DANC4","DOS Rebel","DWhistled","Dancing Font","Decimal","Def Leppard","Delta Corps Priest 1","DiamFont","Diamond","Diet Cola","Digital","Doh","Doom","Dot Matrix","Double Shorts","Double","Dr Pepper","Efti Chess","Efti Font","Efti Italic","Efti Piti","Efti Robot","Efti Wall","Efti Water","Electronic","Elite","Emboss 2","Emboss","Epic","Fender","Filter","Fire Font-k","Fire Font-s","Flipped","Flower Power","Four Tops","Fraktur","Fun Face","Fun Faces","Future","Fuzzy","Georgi16","Georgia11","Ghost","Ghoulish","Glenyn","Goofy","Gothic","Graceful","Gradient","Graffiti","Greek","Heart Left","Heart Right","Henry 3D","Hex","Hieroglyphs","Hollywood","Horizontal Left","Horizontal Right","ICL-1900","Impossible","Invita","Isometric1","Isometric2","Isometric3","Isometric4","Italic","Ivrit","JS Block Letters","JS Bracket Letters","JS Capital Curves","JS Cursive","JS Stick Letters","Jacky","Jazmine","Jerusalem","Katakana","Kban","Keyboard","Knob","Konto Slant","Konto","LCD","Larry 3D 2","Larry 3D","Lean","Letter","Letters","Lil Devil","Line Blocks","Linux","Lockergnome","Madrid","Marquee","Maxfour","Merlin1","Merlin2","Mike","Mini","Mirror","Mnemonic","Modular","Mono 12","Mono 9","Morse","Morse2","Moscow","Mshebrew210","Muzzle","NScript","NT Greek","NV Script","Nancyj-Fancy","Nancyj-Improved","Nancyj-Underlined","Nancyj","Nipples","O8","OS2","Octal","Ogre","Old Banner","Pagga","Patorjk's Cheese","Patorjk-HeX","Pawp","Peaks Slant","Peaks","Pebbles","Pepper","Poison","Puffy","Puzzle","Pyramid","Rammstein","Rebel","Rectangles","Red Phoenix","Relief","Relief2","Reverse","Roman","Rot13","Rotated","Rounded","Rowan Cap","Rozzo","RubiFont","Runic","Runyc","S Blood","SL Script","Santa Clara","Script","Serifcap","Shaded Blocky","Shadow","Shimrod","Short","Slant Relief","Slant","Slide","Small ASCII 12","Small ASCII 9","Small Block","Small Braille","Small Caps","Small Isometric1","Small Keyboard","Small Mono 12","Small Mono 9","Small Poison","Small Script","Small Shadow","Small Slant","Small Tengwar","Small","Soft","Speed","Spliff","Stacey","Stampate","Stampatello","Standard","Star Strips","Star Wars","Stellar","Stforek","Stick Letters","Stop","Straight","Stronger Than All","Sub-Zero","Swamp Land","Swan","Sweet","THIS","Tanja","Tengwar","Term","Terrace","Test1","The Edge","Thick","Thin","Thorned","Three Point","Ticks Slant","Ticks","Tiles","Tinker-Toy","Tmplr","Tombstone","Train","Trek","Tsalagi","Tubular","Twisted","Two Point","USA Flag","Univers","Upside Down Text","Varsity","Wavescape","Wavy","Weird","Wet Letter","Whimsy","WideTerm","Wow","miniwi"];function cn(u){return/[.*+?^${}()|[\]\\]/.test(u)?"\\"+u:u}const fn=(()=>{const{FULL_WIDTH:u=0,FITTING:D,SMUSHING:e,CONTROLLED_SMUSHING:t}=Fn,r={},i={font:"Standard",fontPath:"./fonts",fetchFontIfMissing:!0};function F(s,o,n){const l=cn(s.trim().slice(-1))||"@",c=o===n-1?new RegExp(l+l+"?\\s*$"):new RegExp(l+"\\s*$");return s.replace(c,"")}function a(s=-1,o=null){let n={},l,c=[[16384,"vLayout",e],[8192,"vLayout",D],[4096,"vRule5",!0],[2048,"vRule4",!0],[1024,"vRule3",!0],[512,"vRule2",!0],[256,"vRule1",!0],[128,"hLayout",e],[64,"hLayout",D],[32,"hRule6",!0],[16,"hRule5",!0],[8,"hRule4",!0],[4,"hRule3",!0],[2,"hRule2",!0],[1,"hRule1",!0]];l=o!==null?o:s;for(const[f,h,C]of c)l>=f?(l-=f,n[h]===void 0&&(n[h]=C)):h!=="vLayout"&&h!=="hLayout"&&(n[h]=!1);return typeof n.hLayout>"u"?s===0?n.hLayout=D:s===-1?n.hLayout=u:n.hRule1||n.hRule2||n.hRule3||n.hRule4||n.hRule5||n.hRule6?n.hLayout=t:n.hLayout=e:n.hLayout===e&&(n.hRule1||n.hRule2||n.hRule3||n.hRule4||n.hRule5||n.hRule6)&&(n.hLayout=t),typeof n.vLayout>"u"?n.vRule1||n.vRule2||n.vRule3||n.vRule4||n.vRule5?n.vLayout=t:n.vLayout=u:n.vLayout===e&&(n.vRule1||n.vRule2||n.vRule3||n.vRule4||n.vRule5)&&(n.vLayout=t),n}function B(s,o,n=""){return s===o&&s!==n?s:!1}function g(s,o){let n="|/\\[]{}()<>";if(s==="_"){if(n.indexOf(o)!==-1)return o}else if(o==="_"&&n.indexOf(s)!==-1)return s;return!1}function m(s,o){let n="| /\\ [] {} () <>",l=n.indexOf(s),c=n.indexOf(o);if(l!==-1&&c!==-1&&l!==c&&Math.abs(l-c)!==1){const f=Math.max(l,c),h=f+1;return n.substring(f,h)}return!1}function d(s,o){let n="[] {} ()",l=n.indexOf(s),c=n.indexOf(o);return l!==-1&&c!==-1&&Math.abs(l-c)<=1?"|":!1}function x(s,o){return{"/\\":"|","\\/":"Y","><":"X"}[s+o]||!1}function b(s,o,n=""){return s===n&&o===n?n:!1}function S(s,o){return s===o?s:!1}function T(s,o){return g(s,o)}function A(s,o){return m(s,o)}function L(s,o){return s==="-"&&o==="_"||s==="_"&&o==="-"?"=":!1}function I(s,o){return s==="|"&&o==="|"?"|":!1}function $(s,o,n){return o===" "||o===""||o===n&&s!==" "?s:o}function Eu(s,o,n){if(n.fittingRules&&n.fittingRules.vLayout===u)return"invalid";let l,c=Math.min(s.length,o.length),f,h,C=!1,E;if(c===0)return"invalid";for(l=0;l<c;l++)if(f=s.substring(l,l+1),h=o.substring(l,l+1),f!==" "&&h!==" "){if(n.fittingRules&&n.fittingRules.vLayout===D)return"invalid";if(n.fittingRules&&n.fittingRules.vLayout===e)return"end";if(I(f,h)){C=C||!1;continue}if(E=!1,E=n.fittingRules&&n.fittingRules.vRule1?S(f,h):E,E=!E&&n.fittingRules&&n.fittingRules.vRule2?T(f,h):E,E=!E&&n.fittingRules&&n.fittingRules.vRule3?A(f,h):E,E=!E&&n.fittingRules&&n.fittingRules.vRule4?L(f,h):E,C=!0,!E)return"invalid"}return C?"end":"valid"}function su(s,o,n){let l=s.length,c=s.length,f,h,C,E=1,p,w,R;for(;E<=l;){for(f=s.slice(Math.max(0,c-E),c),h=o.slice(0,Math.min(l,E)),C=h.length,R="",p=0;p<C;p++)if(w=Eu(f[p],h[p],n),w==="end")R=w;else if(w==="invalid"){R=w;break}else R===""&&(R="valid");if(R==="invalid"){E--;break}if(R==="end")break;R==="valid"&&E++}return Math.min(l,E)}function ou(s,o,n){let l,c=Math.min(s.length,o.length),f,h,C="",E;const p=n.fittingRules||{};for(l=0;l<c;l++)f=s.substring(l,l+1),h=o.substring(l,l+1),f!==" "&&h!==" "?p.vLayout===D||p.vLayout===e?C+=$(f,h):(E=!1,E=p.vRule5?I(f,h):E,E=!E&&p.vRule1?S(f,h):E,E=!E&&p.vRule2?T(f,h):E,E=!E&&p.vRule3?A(f,h):E,E=!E&&p.vRule4?L(f,h):E,C+=E):C+=$(f,h);return C}function M(s,o,n,l){let c=s.length,f=o.length,h=s.slice(0,Math.max(0,c-n)),C=s.slice(Math.max(0,c-n),c),E=o.slice(0,Math.min(n,f)),p,w,R,y=[],v;for(w=C.length,p=0;p<w;p++)p>=f?R=C[p]:R=ou(C[p],E[p],l),y.push(R);return v=o.slice(Math.min(n,f),f),[...h,...y,...v]}function W(s,o){const n=" ".repeat(o);return s.map(l=>l+n)}function tu(s,o,n){let l=s[0].length,c=o[0].length,f;return l>c?o=W(o,l-c):c>l&&(s=W(s,c-l)),f=su(s,o,n),M(s,o,f,n)}function q(s,o,n){const l=n.fittingRules||{};if(l.hLayout===u)return 0;let c,f=s.length,h=o.length,C=f,E=1,p=!1,w,R,y,v;if(f===0)return 0;u:for(;E<=C;){const Q=f-E;for(w=s.substring(Q,Q+E),R=o.substring(0,Math.min(E,h)),c=0;c<Math.min(E,h);c++)if(y=w.substring(c,c+1),v=R.substring(c,c+1),y!==" "&&v!==" "){if(l.hLayout===D){E=E-1;break u}else if(l.hLayout===e){(y===n.hardBlank||v===n.hardBlank)&&(E=E-1);break u}else if(p=!0,!(l.hRule1&&B(y,v,n.hardBlank)||l.hRule2&&g(y,v)||l.hRule3&&m(y,v)||l.hRule4&&d(y,v)||l.hRule5&&x(y,v)||l.hRule6&&b(y,v,n.hardBlank))){E=E-1;break u}}if(p)break;E++}return Math.min(C,E)}function K(s,o,n,l){let c,f,h=[],C,E,p,w,R,y,v,Q;const H=l.fittingRules||{};if(typeof l.height!="number")throw new Error("height is not defined.");for(c=0;c<l.height;c++){v=s[c],Q=o[c],R=v.length,y=Q.length,C=R-n,E=v.slice(0,Math.max(0,C)),p="";const du=Math.max(0,R-n);let uu=v.substring(du,du+n),nu=Q.substring(0,Math.min(n,y));for(f=0;f<n;f++){let Y=f<R?uu.substring(f,f+1):" ",V=f<y?nu.substring(f,f+1):" ";if(Y!==" "&&V!==" ")if(H.hLayout===D||H.hLayout===e)p+=$(Y,V,l.hardBlank);else{const pe=H.hRule1&&B(Y,V,l.hardBlank)||H.hRule2&&g(Y,V)||H.hRule3&&m(Y,V)||H.hRule4&&d(Y,V)||H.hRule5&&x(Y,V)||H.hRule6&&b(Y,V,l.hardBlank)||$(Y,V,l.hardBlank);p+=pe}else p+=$(Y,V,l.hardBlank)}n>=y?w="":w=Q.substring(n,n+Math.max(0,y-n)),h[c]=E+p+w}return h}function X(s){return new Array(s).fill("")}const Z=function(s){return Math.max(...s.map(o=>o.length))};function Fu(s,o,n){return s.reduce(function(l,c){return K(l,c.fig,c.overlap||0,n)},X(o))}function de(s,o,n){for(let l=s.length-1;l>0;l--){const c=Fu(s.slice(0,l),o,n);if(Z(c)<=n.width)return{outputFigText:c,chars:s.slice(l)}}return{outputFigText:X(o),chars:s}}function ge(s,o,n){let l,c,f=0,h,C,E,p=n.height,w=[],R,y={chars:[],overlap:f},v=[],Q,H,du,uu,nu;if(typeof p!="number")throw new Error("height is not defined.");C=X(p);const Y=n.fittingRules||{};for(n.printDirection===1&&(s=s.split("").reverse().join("")),E=s.length,l=0;l<E;l++)if(Q=s.substring(l,l+1),H=Q.match(/\s/),c=o[Q.charCodeAt(0)],uu=null,c){if(Y.hLayout!==u){for(f=1e4,h=0;h<p;h++)f=Math.min(f,q(C[h],c[h],n));f=f===1e4?0:f}if(n.width>0&&(n.whitespaceBreak?(du=Fu(y.chars.concat([{fig:c,overlap:f}]),p,n),uu=Fu(v.concat([{fig:du,overlap:y.overlap}]),p,n),R=Z(uu)):(uu=K(C,c,f,n),R=Z(uu)),R>=n.width&&l>0&&(n.whitespaceBreak?(C=Fu(v.slice(0,-1),p,n),v.length>1&&(w.push(C),C=X(p)),v=[]):(w.push(C),C=X(p)))),n.width>0&&n.whitespaceBreak&&((!H||l===E-1)&&y.chars.push({fig:c,overlap:f}),H||l===E-1)){for(nu=null;uu=Fu(y.chars,p,n),R=Z(uu),R>=n.width;)nu=de(y.chars,p,n),y={chars:nu.chars},w.push(nu.outputFigText);R>0&&(nu?v.push({fig:uu,overlap:1}):v.push({fig:uu,overlap:y.overlap})),H&&(v.push({fig:c,overlap:f}),C=X(p)),l===E-1&&(C=Fu(v,p,n)),y={chars:[],overlap:f};continue}C=K(C,c,f,n)}return Z(C)>0&&w.push(C),n.showHardBlanks||w.forEach(function(V){for(E=V.length,h=0;h<E;h++)V[h]=V[h].replace(new RegExp("\\"+n.hardBlank,"g")," ")}),s===""&&w.length===0&&w.push(new Array(p).fill("")),w}const Be=function(s,o){let n;const l=o.fittingRules||{};if(s==="default")n={hLayout:l.hLayout,hRule1:l.hRule1,hRule2:l.hRule2,hRule3:l.hRule3,hRule4:l.hRule4,hRule5:l.hRule5,hRule6:l.hRule6};else if(s==="full")n={hLayout:u,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(s==="fitted")n={hLayout:D,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(s==="controlled smushing")n={hLayout:t,hRule1:!0,hRule2:!0,hRule3:!0,hRule4:!0,hRule5:!0,hRule6:!0};else if(s==="universal smushing")n={hLayout:e,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else return;return n},me=function(s,o){let n={};const l=o.fittingRules||{};if(s==="default")n={vLayout:l.vLayout,vRule1:l.vRule1,vRule2:l.vRule2,vRule3:l.vRule3,vRule4:l.vRule4,vRule5:l.vRule5};else if(s==="full")n={vLayout:u,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(s==="fitted")n={vLayout:D,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(s==="controlled smushing")n={vLayout:t,vRule1:!0,vRule2:!0,vRule3:!0,vRule4:!0,vRule5:!0};else if(s==="universal smushing")n={vLayout:e,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else return;return n},fD=function(s,o,n){n=n.replace(/\r\n/g,`
14
+ `).map(F=>ct(F,D,e)).join(`
15
+ `)}const K=`
16
+ `,N=" ",iu="none",mD=()=>{const{env:u,stdout:D,stderr:e}=Y;return D?.columns?D.columns:e?.columns?e.columns:u.COLUMNS?Number.parseInt(u.COLUMNS,10):80},dD=u=>typeof u=="number"?{top:u,right:u*3,bottom:u,left:u*3}:{top:0,right:0,bottom:0,left:0,...u},lu=u=>u===iu?0:2,ht=u=>{const D=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"];let e;if(u===iu){u={};for(const F of D)u[F]=""}if(typeof u=="string"){if(e=qe[u],!e)throw new TypeError(`Invalid border style: ${u}`)}else{typeof u?.vertical=="string"&&(u.left=u.vertical,u.right=u.vertical),typeof u?.horizontal=="string"&&(u.top=u.horizontal,u.bottom=u.horizontal);for(const F of D)if(u[F]===null||typeof u[F]!="string")throw new TypeError(`Invalid border style: ${F}`);e=u}return e},Bt=(u,D,e)=>{let F="";const r=H(u);switch(e){case"left":{F=u+D.slice(r);break}case"right":{F=D.slice(r)+u;break}default:{D=D.slice(r),D.length%2===1?(D=D.slice(Math.floor(D.length/2)),F=D.slice(1)+u+D):(D=D.slice(D.length/2),F=D+u+D);break}}return F},gt=(u,{padding:D,width:e,textAlignment:F,height:r})=>{u=oD(u,{align:F});let l=u.split(K);const a=Xu(u),o=e-D.left-D.right;if(a>o){const d=[];for(const b of l){const y=gD(b,o,{hard:!0}),k=oD(y,{align:F}).split(`
17
+ `),j=Math.max(...k.map(x=>H(x)));for(const x of k){let q;switch(F){case"center":{q=N.repeat((o-j)/2)+x;break}case"right":{q=N.repeat(o-j)+x;break}default:{q=x;break}}d.push(q)}}l=d}F==="center"&&a<o?l=l.map(d=>N.repeat((o-a)/2)+d):F==="right"&&a<o&&(l=l.map(d=>N.repeat(o-a)+d));const g=N.repeat(D.left),R=N.repeat(D.right);return l=l.map(d=>{const b=g+d+R;return b+N.repeat(e-H(b))}),D.top>0&&(l=[...Array.from({length:D.top}).fill(N.repeat(e)),...l]),D.bottom>0&&(l=[...l,...Array.from({length:D.bottom}).fill(N.repeat(e))]),r&&l.length>r?l=l.slice(0,r):r&&l.length<r&&(l=[...l,...Array.from({length:r-l.length}).fill(N.repeat(e))]),l.join(K)},mt=(u,D,e)=>{const F=d=>{const b=e.borderColor?pt(e.borderColor)(d):d;return e.dimBorder?T.dim(b):b},r=d=>e.backgroundColor?Rt(e.backgroundColor)(d):d,l=ht(e.borderStyle),a=mD();let o=N.repeat(e.margin.left);if(e.float==="center"){const d=Math.max((a-D-lu(e.borderStyle))/2,0);o=N.repeat(d)}else if(e.float==="right"){const d=Math.max(a-D-e.margin.right-lu(e.borderStyle),0);o=N.repeat(d)}let g="";e.margin.top&&(g+=K.repeat(e.margin.top)),(e.borderStyle!==iu||e.title)&&(g+=F(o+l.topLeft+(e.title?Bt(e.title,l.top.repeat(D),e.titleAlignment):l.top.repeat(D))+l.topRight)+K);const R=u.split(K);return g+=R.map(d=>o+F(l.left)+r(d)+F(l.right)).join(K),e.borderStyle!==iu&&(g+=K+F(o+l.bottomLeft+l.bottom.repeat(D)+l.bottomRight)),e.margin.bottom&&(g+=K.repeat(e.margin.bottom)),g},dt=u=>{if(u.fullscreen&&Y?.stdout){let D=[Y.stdout.columns,Y.stdout.rows];typeof u.fullscreen=="function"&&(D=u.fullscreen(...D)),u.width||=D[0],u.height||=D[1]}return u.width&&=Math.max(1,u.width-lu(u.borderStyle)),u.height&&=Math.max(1,u.height-lu(u.borderStyle)),u},AD=(u,D)=>D===iu?u:` ${u} `,At=(u,D)=>{D=dt(D);const e=D.width!==void 0,F=mD(),r=lu(D.borderStyle),l=F-D.margin.left-D.margin.right-r,a=Xu(gD(u,F-r,{hard:!0,trim:!1}))+D.padding.left+D.padding.right;if(D.title&&e?(D.title=D.title.slice(0,Math.max(0,D.width-2)),D.title&&=AD(D.title,D.borderStyle)):D.title&&(D.title=D.title.slice(0,Math.max(0,l-2)),D.title&&(D.title=AD(D.title,D.borderStyle),H(D.title)>a&&(D.width=H(D.title)))),D.width||=a,!e){if(D.margin.left&&D.margin.right&&D.width>l){const g=(F-D.width-r)/(D.margin.left+D.margin.right);D.margin.left=Math.max(0,Math.floor(D.margin.left*g)),D.margin.right=Math.max(0,Math.floor(D.margin.right*g))}D.width=Math.min(D.width,F-r-D.margin.left-D.margin.right)}return D.width-(D.padding.left+D.padding.right)<=0&&(D.padding.left=0,D.padding.right=0),D.height&&D.height-(D.padding.top+D.padding.bottom)<=0&&(D.padding.top=0,D.padding.bottom=0),D},Mu=u=>u.match(/^#(?:[0-f]{3}){1,2}$/i),pD=u=>typeof u=="string"&&(T[u]??Mu(u)),pt=u=>Mu(u)?T.hex(u):T[u],Rt=u=>Mu(u)?T.bgHex(u):T[Qe(["bg",u])];function bt(u,D){if(D={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...D},D.align&&(D.textAlignment=D.align),D.borderColor&&!pD(D.borderColor))throw new Error(`${D.borderColor} is not a valid borderColor`);if(D.backgroundColor&&!pD(D.backgroundColor))throw new Error(`${D.backgroundColor} is not a valid backgroundColor`);return D.padding=dD(D.padding),D.margin=dD(D.margin),D=At(u,D),u=gt(u,D),mt(u,D.width,D)}function vt(u){const{stdin:D,stdout:e}=Y,F=V.createInterface({input:D,output:e}),{choices:r,message:l}=u;let a=0;D.isTTY&&D.setRawMode(!0),V.emitKeypressEvents(D),e.write("\x1B[?25l");const o=(g=!1)=>{if(!g){const b=1+r.length+1;V.moveCursor(e,0,-b),V.cursorTo(e,0),V.clearScreenDown(e)}const R=r[a],d=r.map((b,y)=>y===a?`${T.cyan("\u276F")} ${T.cyan(b.name)}`:` ${b.name}`).join(`
18
+ `);e.write(`${T.green("?")} ${T.bold(l)}
19
+ ${d}
20
+ ${R.description||""}`)};return o(!0),new Promise(g=>{const R=()=>{e.write("\x1B[?25h"),D.isTTY&&D.setRawMode(!1),D.removeListener("keypress",d),F.close()},d=(b,y)=>{if(y.name==="return"){const w=r[a],k=1+r.length+1;V.moveCursor(e,0,-k),V.cursorTo(e,0),V.clearScreenDown(e),e.write(`${T.green("\u2714")} ${T.bold(l)} ${T.gray("\xB7")} ${w.name}
21
+ `),R(),g(w.value)}else y.ctrl&&y.name==="c"?(R(),Y.exit(0)):y.name==="up"?(a=(a-1+r.length)%r.length,o()):y.name==="down"&&(a=(a+1)%r.length,o())};D.on("keypress",d)})}const yt={FULL_WIDTH:0,FITTING:1,SMUSHING:2,CONTROLLED_SMUSHING:3};class wt{constructor(){this.comment="",this.numChars=0,this.options={}}}const $u=["1Row","3-D","3D Diagonal","3D-ASCII","3x5","4Max","5 Line Oblique","AMC 3 Line","AMC 3 Liv1","AMC AAA01","AMC Neko","AMC Razor","AMC Razor2","AMC Slash","AMC Slider","AMC Thin","AMC Tubes","AMC Untitled","ANSI Regular","ANSI Shadow","ANSI-Compact","ASCII 12","ASCII 9","ASCII New Roman","Acrobatic","Alligator","Alligator2","Alpha","Alphabet","Arrows","Avatar","B1FF","Babyface Lame","Babyface Leet","Banner","Banner3-D","Banner3","Banner4","Barbwire","Basic","Bear","Bell","Benjamin","Big ASCII 12","Big ASCII 9","Big Chief","Big Money-ne","Big Money-nw","Big Money-se","Big Money-sw","Big Mono 12","Big Mono 9","Big","Bigfig","Binary","Block","Blocks","Bloody","BlurVision ASCII","Bolger","Braced","Bright","Broadway KB","Broadway","Bubble","Bulbhead","Caligraphy","Caligraphy2","Calvin S","Cards","Catwalk","Chiseled","Chunky","Circle","Coinstak","Cola","Colossal","Computer","Contessa","Contrast","Cosmike","Cosmike2","Crawford","Crawford2","Crazy","Cricket","Cursive","Cyberlarge","Cybermedium","Cybersmall","Cygnet","DANC4","DOS Rebel","DWhistled","Dancing Font","Decimal","Def Leppard","Delta Corps Priest 1","DiamFont","Diamond","Diet Cola","Digital","Doh","Doom","Dot Matrix","Double Shorts","Double","Dr Pepper","Efti Chess","Efti Font","Efti Italic","Efti Piti","Efti Robot","Efti Wall","Efti Water","Electronic","Elite","Emboss 2","Emboss","Epic","Fender","Filter","Fire Font-k","Fire Font-s","Flipped","Flower Power","Four Tops","Fraktur","Fun Face","Fun Faces","Future","Fuzzy","Georgi16","Georgia11","Ghost","Ghoulish","Glenyn","Goofy","Gothic","Graceful","Gradient","Graffiti","Greek","Heart Left","Heart Right","Henry 3D","Hex","Hieroglyphs","Hollywood","Horizontal Left","Horizontal Right","ICL-1900","Impossible","Invita","Isometric1","Isometric2","Isometric3","Isometric4","Italic","Ivrit","JS Block Letters","JS Bracket Letters","JS Capital Curves","JS Cursive","JS Stick Letters","Jacky","Jazmine","Jerusalem","Katakana","Kban","Keyboard","Knob","Konto Slant","Konto","LCD","Larry 3D 2","Larry 3D","Lean","Letter","Letters","Lil Devil","Line Blocks","Linux","Lockergnome","Madrid","Marquee","Maxfour","Merlin1","Merlin2","Mike","Mini","Mirror","Mnemonic","Modular","Mono 12","Mono 9","Morse","Morse2","Moscow","Mshebrew210","Muzzle","NScript","NT Greek","NV Script","Nancyj-Fancy","Nancyj-Improved","Nancyj-Underlined","Nancyj","Nipples","O8","OS2","Octal","Ogre","Old Banner","Pagga","Patorjk's Cheese","Patorjk-HeX","Pawp","Peaks Slant","Peaks","Pebbles","Pepper","Poison","Puffy","Puzzle","Pyramid","Rammstein","Rebel","Rectangles","Red Phoenix","Relief","Relief2","Reverse","Roman","Rot13","Rotated","Rounded","Rowan Cap","Rozzo","RubiFont","Runic","Runyc","S Blood","SL Script","Santa Clara","Script","Serifcap","Shaded Blocky","Shadow","Shimrod","Short","Slant Relief","Slant","Slide","Small ASCII 12","Small ASCII 9","Small Block","Small Braille","Small Caps","Small Isometric1","Small Keyboard","Small Mono 12","Small Mono 9","Small Poison","Small Script","Small Shadow","Small Slant","Small Tengwar","Small","Soft","Speed","Spliff","Stacey","Stampate","Stampatello","Standard","Star Strips","Star Wars","Stellar","Stforek","Stick Letters","Stop","Straight","Stronger Than All","Sub-Zero","Swamp Land","Swan","Sweet","THIS","Tanja","Tengwar","Term","Terrace","Test1","The Edge","Thick","Thin","Thorned","Three Point","Ticks Slant","Ticks","Tiles","Tinker-Toy","Tmplr","Tombstone","Train","Trek","Tsalagi","Tubular","Twisted","Two Point","USA Flag","Univers","Upside Down Text","Varsity","Wavescape","Wavy","Weird","Wet Letter","Whimsy","WideTerm","Wow","miniwi"];function xt(u){return/[.*+?^${}()|[\]\\]/.test(u)?"\\"+u:u}const St=(()=>{const{FULL_WIDTH:u=0,FITTING:D,SMUSHING:e,CONTROLLED_SMUSHING:F}=yt,r={},l={font:"Standard",fontPath:"./fonts",fetchFontIfMissing:!0};function a(i,s,t){const n=xt(i.trim().slice(-1))||"@",C=s===t-1?new RegExp(n+n+"?\\s*$"):new RegExp(n+"\\s*$");return i.replace(C,"")}function o(i=-1,s=null){let t={},n,C=[[16384,"vLayout",e],[8192,"vLayout",D],[4096,"vRule5",!0],[2048,"vRule4",!0],[1024,"vRule3",!0],[512,"vRule2",!0],[256,"vRule1",!0],[128,"hLayout",e],[64,"hLayout",D],[32,"hRule6",!0],[16,"hRule5",!0],[8,"hRule4",!0],[4,"hRule3",!0],[2,"hRule2",!0],[1,"hRule1",!0]];n=s!==null?s:i;for(const[E,c,f]of C)n>=E?(n-=E,t[c]===void 0&&(t[c]=f)):c!=="vLayout"&&c!=="hLayout"&&(t[c]=!1);return typeof t.hLayout>"u"?i===0?t.hLayout=D:i===-1?t.hLayout=u:t.hRule1||t.hRule2||t.hRule3||t.hRule4||t.hRule5||t.hRule6?t.hLayout=F:t.hLayout=e:t.hLayout===e&&(t.hRule1||t.hRule2||t.hRule3||t.hRule4||t.hRule5||t.hRule6)&&(t.hLayout=F),typeof t.vLayout>"u"?t.vRule1||t.vRule2||t.vRule3||t.vRule4||t.vRule5?t.vLayout=F:t.vLayout=u:t.vLayout===e&&(t.vRule1||t.vRule2||t.vRule3||t.vRule4||t.vRule5)&&(t.vLayout=F),t}function g(i,s,t=""){return i===s&&i!==t?i:!1}function R(i,s){let t="|/\\[]{}()<>";if(i==="_"){if(t.indexOf(s)!==-1)return s}else if(s==="_"&&t.indexOf(i)!==-1)return i;return!1}function d(i,s){let t="| /\\ [] {} () <>",n=t.indexOf(i),C=t.indexOf(s);if(n!==-1&&C!==-1&&n!==C&&Math.abs(n-C)!==1){const E=Math.max(n,C),c=E+1;return t.substring(E,c)}return!1}function b(i,s){let t="[] {} ()",n=t.indexOf(i),C=t.indexOf(s);return n!==-1&&C!==-1&&Math.abs(n-C)<=1?"|":!1}function y(i,s){return{"/\\":"|","\\/":"Y","><":"X"}[i+s]||!1}function w(i,s,t=""){return i===t&&s===t?t:!1}function k(i,s){return i===s?i:!1}function j(i,s){return R(i,s)}function x(i,s){return d(i,s)}function q(i,s){return i==="-"&&s==="_"||i==="_"&&s==="-"?"=":!1}function su(i,s){return i==="|"&&s==="|"?"|":!1}function X(i,s,t){return s===" "||s===""||s===t&&i!==" "?i:s}function RD(i,s,t){if(t.fittingRules&&t.fittingRules.vLayout===u)return"invalid";let n,C=Math.min(i.length,s.length),E,c,f=!1,h;if(C===0)return"invalid";for(n=0;n<C;n++)if(E=i.substring(n,n+1),c=s.substring(n,n+1),E!==" "&&c!==" "){if(t.fittingRules&&t.fittingRules.vLayout===D)return"invalid";if(t.fittingRules&&t.fittingRules.vLayout===e)return"end";if(su(E,c)){f=f||!1;continue}if(h=!1,h=t.fittingRules&&t.fittingRules.vRule1?k(E,c):h,h=!h&&t.fittingRules&&t.fittingRules.vRule2?j(E,c):h,h=!h&&t.fittingRules&&t.fittingRules.vRule3?x(E,c):h,h=!h&&t.fittingRules&&t.fittingRules.vRule4?q(E,c):h,f=!0,!h)return"invalid"}return f?"end":"valid"}function bD(i,s,t){let n=i.length,C=i.length,E,c,f,h=1,B,A,m;for(;h<=n;){for(E=i.slice(Math.max(0,C-h),C),c=s.slice(0,Math.min(n,h)),f=c.length,m="",B=0;B<f;B++)if(A=RD(E[B],c[B],t),A==="end")m=A;else if(A==="invalid"){m=A;break}else m===""&&(m="valid");if(m==="invalid"){h--;break}if(m==="end")break;m==="valid"&&h++}return Math.min(n,h)}function vD(i,s,t){let n,C=Math.min(i.length,s.length),E,c,f="",h;const B=t.fittingRules||{};for(n=0;n<C;n++)E=i.substring(n,n+1),c=s.substring(n,n+1),E!==" "&&c!==" "?B.vLayout===D||B.vLayout===e?f+=X(E,c):(h=!1,h=B.vRule5?su(E,c):h,h=!h&&B.vRule1?k(E,c):h,h=!h&&B.vRule2?j(E,c):h,h=!h&&B.vRule3?x(E,c):h,h=!h&&B.vRule4?q(E,c):h,f+=h):f+=X(E,c);return f}function yD(i,s,t,n){let C=i.length,E=s.length,c=i.slice(0,Math.max(0,C-t)),f=i.slice(Math.max(0,C-t),C),h=s.slice(0,Math.min(t,E)),B,A,m,p=[],v;for(A=f.length,B=0;B<A;B++)B>=E?m=f[B]:m=vD(f[B],h[B],n),p.push(m);return v=s.slice(Math.min(t,E),E),[...c,...p,...v]}function Ou(i,s){const t=" ".repeat(s);return i.map(n=>n+t)}function wD(i,s,t){let n=i[0].length,C=s[0].length,E;return n>C?s=Ou(s,n-C):C>n&&(i=Ou(i,C-n)),E=bD(i,s,t),yD(i,s,E,t)}function xD(i,s,t){const n=t.fittingRules||{};if(n.hLayout===u)return 0;let C,E=i.length,c=s.length,f=E,h=1,B=!1,A,m,p,v;if(E===0)return 0;u:for(;h<=f;){const W=E-h;for(A=i.substring(W,W+h),m=s.substring(0,Math.min(h,c)),C=0;C<Math.min(h,c);C++)if(p=A.substring(C,C+1),v=m.substring(C,C+1),p!==" "&&v!==" "){if(n.hLayout===D){h=h-1;break u}else if(n.hLayout===e){(p===t.hardBlank||v===t.hardBlank)&&(h=h-1);break u}else if(B=!0,!(n.hRule1&&g(p,v,t.hardBlank)||n.hRule2&&R(p,v)||n.hRule3&&d(p,v)||n.hRule4&&b(p,v)||n.hRule5&&y(p,v)||n.hRule6&&w(p,v,t.hardBlank))){h=h-1;break u}}if(B)break;h++}return Math.min(f,h)}function du(i,s,t,n){let C,E,c=[],f,h,B,A,m,p,v,W;const O=n.fittingRules||{};if(typeof n.height!="number")throw new Error("height is not defined.");for(C=0;C<n.height;C++){v=i[C],W=s[C],m=v.length,p=W.length,f=m-t,h=v.slice(0,Math.max(0,f)),B="";const Fu=Math.max(0,m-t);let U=v.substring(Fu,Fu+t),J=W.substring(0,Math.min(t,p));for(E=0;E<t;E++){let P=E<m?U.substring(E,E+1):" ",_=E<p?J.substring(E,E+1):" ";if(P!==" "&&_!==" ")if(O.hLayout===D||O.hLayout===e)B+=X(P,_,n.hardBlank);else{const MD=O.hRule1&&g(P,_,n.hardBlank)||O.hRule2&&R(P,_)||O.hRule3&&d(P,_)||O.hRule4&&b(P,_)||O.hRule5&&y(P,_)||O.hRule6&&w(P,_,n.hardBlank)||X(P,_,n.hardBlank);B+=MD}else B+=X(P,_,n.hardBlank)}t>=p?A="":A=W.substring(t,t+Math.max(0,p-t)),c[C]=h+B+A}return c}function Z(i){return new Array(i).fill("")}const tu=function(i){return Math.max(...i.map(s=>s.length))};function Q(i,s,t){return i.reduce(function(n,C){return du(n,C.fig,C.overlap||0,t)},Z(s))}function SD(i,s,t){for(let n=i.length-1;n>0;n--){const C=Q(i.slice(0,n),s,t);if(tu(C)<=t.width)return{outputFigText:C,chars:i.slice(n)}}return{outputFigText:Z(s),chars:i}}function LD(i,s,t){let n,C,E=0,c,f,h,B=t.height,A=[],m,p={chars:[],overlap:E},v=[],W,O,Fu,U,J;if(typeof B!="number")throw new Error("height is not defined.");f=Z(B);const P=t.fittingRules||{};for(t.printDirection===1&&(i=i.split("").reverse().join("")),h=i.length,n=0;n<h;n++)if(W=i.substring(n,n+1),O=W.match(/\s/),C=s[W.charCodeAt(0)],U=null,C){if(P.hLayout!==u){for(E=1e4,c=0;c<B;c++)E=Math.min(E,xD(f[c],C[c],t));E=E===1e4?0:E}if(t.width>0&&(t.whitespaceBreak?(Fu=Q(p.chars.concat([{fig:C,overlap:E}]),B,t),U=Q(v.concat([{fig:Fu,overlap:p.overlap}]),B,t),m=tu(U)):(U=du(f,C,E,t),m=tu(U)),m>=t.width&&n>0&&(t.whitespaceBreak?(f=Q(v.slice(0,-1),B,t),v.length>1&&(A.push(f),f=Z(B)),v=[]):(A.push(f),f=Z(B)))),t.width>0&&t.whitespaceBreak&&((!O||n===h-1)&&p.chars.push({fig:C,overlap:E}),O||n===h-1)){for(J=null;U=Q(p.chars,B,t),m=tu(U),m>=t.width;)J=SD(p.chars,B,t),p={chars:J.chars},A.push(J.outputFigText);m>0&&(J?v.push({fig:U,overlap:1}):v.push({fig:U,overlap:p.overlap})),O&&(v.push({fig:C,overlap:E}),f=Z(B)),n===h-1&&(f=Q(v,B,t)),p={chars:[],overlap:E};continue}f=du(f,C,E,t)}return tu(f)>0&&A.push(f),t.showHardBlanks||A.forEach(function(_){for(h=_.length,c=0;c<h;c++)_[c]=_[c].replace(new RegExp("\\"+t.hardBlank,"g")," ")}),i===""&&A.length===0&&A.push(new Array(B).fill("")),A}const TD=function(i,s){let t;const n=s.fittingRules||{};if(i==="default")t={hLayout:n.hLayout,hRule1:n.hRule1,hRule2:n.hRule2,hRule3:n.hRule3,hRule4:n.hRule4,hRule5:n.hRule5,hRule6:n.hRule6};else if(i==="full")t={hLayout:u,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(i==="fitted")t={hLayout:D,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(i==="controlled smushing")t={hLayout:F,hRule1:!0,hRule2:!0,hRule3:!0,hRule4:!0,hRule5:!0,hRule6:!0};else if(i==="universal smushing")t={hLayout:e,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else return;return t},ID=function(i,s){let t={};const n=s.fittingRules||{};if(i==="default")t={vLayout:n.vLayout,vRule1:n.vRule1,vRule2:n.vRule2,vRule3:n.vRule3,vRule4:n.vRule4,vRule5:n.vRule5};else if(i==="full")t={vLayout:u,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(i==="fitted")t={vLayout:D,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(i==="controlled smushing")t={vLayout:F,vRule1:!0,vRule2:!0,vRule3:!0,vRule4:!0,vRule5:!0};else if(i==="universal smushing")t={vLayout:e,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else return;return t},_u=function(i,s,t){t=t.replace(/\r\n/g,`
30
22
  `).replace(/\r/g,`
31
- `);let l=n.split(`
32
- `),c=[],f,h,C;for(h=l.length,f=0;f<h;f++)c=c.concat(ge(l[f],r[s],o));for(h=c.length,C=c[0],f=1;f<h;f++)C=tu(C,c[f],o);return C?C.join(`
33
- `):""};function CD(s,o){let n;if(typeof structuredClone<"u"?n=structuredClone(s):n=JSON.parse(JSON.stringify(s)),n.showHardBlanks=o.showHardBlanks||!1,n.width=o.width||-1,n.whitespaceBreak=o.whitespaceBreak||!1,o.horizontalLayout){const l=Be(o.horizontalLayout,s);l&&Object.assign(n.fittingRules,l)}if(o.verticalLayout){const l=me(o.verticalLayout,s);l&&Object.assign(n.fittingRules,l)}return n.printDirection=o.printDirection!==null&&o.printDirection!==void 0?o.printDirection:s.printDirection,n}const U=async function(s,o,n){return U.text(s,o,n)};return U.text=async function(s,o,n){s=s+"";let l,c;typeof o=="function"?(c=o,l={font:i.font}):typeof o=="string"?(l={font:o},c=n):o?(l=o,c=n):(l={font:i.font},c=n);const f=l.font||i.font;try{const h=await U.loadFont(f),C=h?fD(f,CD(h,l),s):"";return c&&c(null,C),C}catch(h){const C=h instanceof Error?h:new Error(String(h));if(c)return c(C),"";throw C}},U.textSync=function(s,o){s=s+"",typeof o=="string"?o={font:o}:o=o||{};const n=o.font||i.font;let l=CD(U.loadFontSync(n),o);return fD(n,l,s)},U.metadata=async function(s,o){s=s+"";try{const n=await U.loadFont(s);if(!n)throw new Error("Error loading font.");const l=r[s]||{},c=[n,l.comment||""];return o&&o(null,n,l.comment),c}catch(n){const l=n instanceof Error?n:new Error(String(n));if(o)return o(l),null;throw l}},U.defaults=function(s){return s&&typeof s=="object"&&Object.assign(i,s),typeof structuredClone<"u"?structuredClone(i):JSON.parse(JSON.stringify(i))},U.parseFont=function(s,o,n=!0){if(r[s]&&!n)return r[s].options;o=o.replace(/\r\n/g,`
23
+ `);let n=t.split(`
24
+ `),C=[],E,c,f;for(c=n.length,E=0;E<c;E++)C=C.concat(LD(n[E],r[i],s));for(c=C.length,f=C[0],E=1;E<c;E++)f=wD(f,C[E],s);return f?f.join(`
25
+ `):""};function Nu(i,s){let t;if(typeof structuredClone<"u"?t=structuredClone(i):t=JSON.parse(JSON.stringify(i)),t.showHardBlanks=s.showHardBlanks||!1,t.width=s.width||-1,t.whitespaceBreak=s.whitespaceBreak||!1,s.horizontalLayout){const n=TD(s.horizontalLayout,i);n&&Object.assign(t.fittingRules,n)}if(s.verticalLayout){const n=ID(s.verticalLayout,i);n&&Object.assign(t.fittingRules,n)}return t.printDirection=s.printDirection!==null&&s.printDirection!==void 0?s.printDirection:i.printDirection,t}const M=async function(i,s,t){return M.text(i,s,t)};return M.text=async function(i,s,t){i=i+"";let n,C;typeof s=="function"?(C=s,n={font:l.font}):typeof s=="string"?(n={font:s},C=t):s?(n=s,C=t):(n={font:l.font},C=t);const E=n.font||l.font;try{const c=await M.loadFont(E),f=c?_u(E,Nu(c,n),i):"";return C&&C(null,f),f}catch(c){const f=c instanceof Error?c:new Error(String(c));if(C)return C(f),"";throw f}},M.textSync=function(i,s){i=i+"",typeof s=="string"?s={font:s}:s=s||{};const t=s.font||l.font;let n=Nu(M.loadFontSync(t),s);return _u(t,n,i)},M.metadata=async function(i,s){i=i+"";try{const t=await M.loadFont(i);if(!t)throw new Error("Error loading font.");const n=r[i]||{},C=[t,n.comment||""];return s&&s(null,t,n.comment),C}catch(t){const n=t instanceof Error?t:new Error(String(t));if(s)return s(n),null;throw n}},M.defaults=function(i){return i&&typeof i=="object"&&Object.assign(l,i),typeof structuredClone<"u"?structuredClone(l):JSON.parse(JSON.stringify(l))},M.parseFont=function(i,s,t=!0){if(r[i]&&!t)return r[i].options;s=s.replace(/\r\n/g,`
34
26
  `).replace(/\r/g,`
35
- `);const l=new an,c=o.split(`
36
- `),f=c.shift();if(!f)throw new Error("Invalid font file: missing header");const h=f.split(" "),C={hardBlank:h[0].substring(5,6),height:parseInt(h[1],10),baseline:parseInt(h[2],10),maxLength:parseInt(h[3],10),oldLayout:parseInt(h[4],10),numCommentLines:parseInt(h[5],10),printDirection:h[6]?parseInt(h[6],10):0,fullLayout:h[7]?parseInt(h[7],10):null,codeTagCount:h[8]?parseInt(h[8],10):null};if((C.hardBlank||"").length!==1||[C.height,C.baseline,C.maxLength,C.oldLayout,C.numCommentLines].some(w=>w==null||isNaN(w)))throw new Error("FIGlet header contains invalid values.");if(C.height==null||C.numCommentLines==null)throw new Error("FIGlet header contains invalid values.");C.fittingRules=a(C.oldLayout,C.fullLayout),l.options=C;const p=[];for(let w=32;w<=126;w++)p.push(w);if(p.push(196,214,220,228,246,252,223),c.length<C.numCommentLines+C.height*p.length)throw new Error(`FIGlet file is missing data. Line length: ${c.length}. Comment lines: ${C.numCommentLines}. Height: ${C.height}. Num chars: ${p.length}.`);for(l.comment=c.splice(0,C.numCommentLines).join(`
37
- `),l.numChars=0;c.length>0&&l.numChars<p.length;){const w=p[l.numChars];l[w]=c.splice(0,C.height);for(let R=0;R<C.height;R++)typeof l[w][R]>"u"?l[w][R]="":l[w][R]=F(l[w][R],R,C.height);l.numChars++}for(;c.length>0;){const w=c.shift();if(!w||w.trim()==="")break;let R=w.split(" ")[0],y;if(/^-?0[xX][0-9a-fA-F]+$/.test(R))y=parseInt(R,16);else if(/^-?0[0-7]+$/.test(R))y=parseInt(R,8);else if(/^-?[0-9]+$/.test(R))y=parseInt(R,10);else throw new Error(`Error parsing data. Invalid data: ${R}`);if(y===-1||y<-2147483648||y>2147483647){const v=y===-1?"The char code -1 is not permitted.":`The char code cannot be ${y<-2147483648?"less than -2147483648":"greater than 2147483647"}.`;throw new Error(`Error parsing data. ${v}`)}l[y]=c.splice(0,C.height);for(let v=0;v<C.height;v++)typeof l[y][v]>"u"?l[y][v]="":l[y][v]=F(l[y][v],v,C.height);l.numChars++}return r[s]=l,C},U.loadedFonts=()=>Object.keys(r),U.clearLoadedFonts=()=>{Object.keys(r).forEach(s=>{delete r[s]})},U.loadFont=async function(s,o){if(r[s]){const n=r[s].options;return o&&o(null,n),Promise.resolve(n)}try{if(!i.fetchFontIfMissing)throw new Error(`Font is not loaded: ${s}`);const n=await fetch(`${i.fontPath}/${s}.flf`);if(!n.ok)throw new Error(`Network response was not ok: ${n.status}`);const l=await n.text(),c=U.parseFont(s,l);return o&&o(null,c),c}catch(n){const l=n instanceof Error?n:new Error(String(n));if(o)return o(l),null;throw l}},U.loadFontSync=function(s){if(r[s])return r[s].options;throw new Error("Synchronous font loading is not implemented for the browser, it will only work for fonts already loaded.")},U.preloadFonts=async function(s,o){try{for(const n of s){const l=await fetch(`${i.fontPath}/${n}.flf`);if(!l.ok)throw new Error(`Failed to preload fonts. Error fetching font: ${n}, status code: ${l.statusText}`);const c=await l.text();U.parseFont(n,c)}o&&o()}catch(n){const l=n instanceof Error?n:new Error(String(n));if(o){o(l);return}throw n}},U.fonts=function(s){return new Promise(function(o,n){o(aD),s&&s(null,aD)})},U.fontsSync=function(){return aD},U.figFonts=r,U})(),Cn=xe(import.meta.url),hn=yu.dirname(Cn),En=yu.join(hn,"/../fonts/"),P=fn;P.defaults({fontPath:En}),P.loadFont=function(u,D){return new Promise((e,t)=>{if(P.figFonts[u]){D&&D(null,P.figFonts[u].options),e(P.figFonts[u].options);return}wu.readFile(yu.join(P.defaults().fontPath,u+".flf"),{encoding:"utf-8"},(r,i)=>{if(r){D&&D(r),t(r);return}i=i+"";try{const F=P.parseFont(u,i);D&&D(null,F),e(F)}catch(F){const a=F instanceof Error?F:new Error(String(F));D&&D(a),t(a)}})})},P.loadFontSync=function(u){if(P.figFonts[u])return P.figFonts[u].options;const D=wu.readFileSync(yu.join(P.defaults().fontPath,u+".flf"),{encoding:"utf-8"})+"";return P.parseFont(u,D)},P.fonts=function(u){return new Promise((D,e)=>{const t=[];wu.readdir(P.defaults().fontPath,(r,i)=>{if(r){u&&u(r),e(r);return}i.forEach(F=>{/\.flf$/.test(F)&&t.push(F.replace(/\.flf$/,""))}),u&&u(null,t),D(t)})})},P.fontsSync=function(){const u=[];return wu.readdirSync(P.defaults().fontPath).forEach(D=>{/\.flf$/.test(D)&&u.push(D.replace(/\.flf$/,""))}),u};var dn=Object.freeze({__proto__:null,default:P});const cD=u=>{let D;const e=process.platform;e==="darwin"?D=`open "${u}"`:e==="win32"?D=`start "" "${u}"`:D=`xdg-open "${u}"`,be(D,t=>{})},gn=u=>{const{theme:D,ui:e}=u.config,{name:t,website:r,displayEmail:i,currentRole:F,npx:a}=u.personal,B=t.split(" ")?.[0],g=r||`https://${i.replace(/.*@/,"")}`,m=G[D.secondary]||G.whiteBright,d=P.textSync(t.toUpperCase().replace(" ",`
38
- `),{font:"ANSI Shadow"}),x=[...u.socialHandles.map(A=>({label:gt(A.platform),value:`${A.url}/${A.handle}`,color:A.color})),{label:e.title,value:g,color:D.accent},{label:e.npx,value:a||`npx ${B.toLowerCase()}`,color:"#cb3837"}],b=Math.max(...x.map(A=>A.label.length)),S=Math.max(...x.map(A=>A.value.length)),T=[null,...d.split(`
39
- `).map(A=>G.bold.whiteBright(Su(A))),m(Su(F.toUpperCase())),null,...x.map(A=>{const L=A.label.padEnd(b," "),I=A.value.padEnd(S," ");return G.hex(A.color).bgWhiteBright.inverse(Su(` ${L} : ${I} `))}),null,...e?.footer?.map(A=>G.italic(m(Su(A))))||[],null];console.log(Br(T.join(`
40
- `),{margin:1,float:"center",textAlignment:"center",borderStyle:D.borderStyle,borderColor:D.borderColor})),console.log(e.cmdTip)};var Bn=(u=>(u.EMAIL="email",u.RESUME="resume",u.MEETING="meeting",u.EXIT="exit",u))(Bn||{});const mn=u=>{const{messages:D,theme:e}=u.config,[t,r]=[e.primary,e.secondary].map(a=>G[a]||G.whiteBright),i=(a,B)=>{const g=D[a],m=g?.message||"",d=g?.description||"";return{name:B?m.replace(B,t(B)):m,value:a,description:r(`
41
- `+d)}},F={email:()=>{cD(`mailto:${u.personal.displayEmail}?subject=Hi%20${u.personal.name.split(" ")?.[0]}!`),console.log(`
27
+ `);const n=new wt,C=s.split(`
28
+ `),E=C.shift();if(!E)throw new Error("Invalid font file: missing header");const c=E.split(" "),f={hardBlank:c[0].substring(5,6),height:parseInt(c[1],10),baseline:parseInt(c[2],10),maxLength:parseInt(c[3],10),oldLayout:parseInt(c[4],10),numCommentLines:parseInt(c[5],10),printDirection:c[6]?parseInt(c[6],10):0,fullLayout:c[7]?parseInt(c[7],10):null,codeTagCount:c[8]?parseInt(c[8],10):null};if((f.hardBlank||"").length!==1||[f.height,f.baseline,f.maxLength,f.oldLayout,f.numCommentLines].some(A=>A==null||isNaN(A)))throw new Error("FIGlet header contains invalid values.");if(f.height==null||f.numCommentLines==null)throw new Error("FIGlet header contains invalid values.");f.fittingRules=o(f.oldLayout,f.fullLayout),n.options=f;const B=[];for(let A=32;A<=126;A++)B.push(A);if(B.push(196,214,220,228,246,252,223),C.length<f.numCommentLines+f.height*B.length)throw new Error(`FIGlet file is missing data. Line length: ${C.length}. Comment lines: ${f.numCommentLines}. Height: ${f.height}. Num chars: ${B.length}.`);for(n.comment=C.splice(0,f.numCommentLines).join(`
29
+ `),n.numChars=0;C.length>0&&n.numChars<B.length;){const A=B[n.numChars];n[A]=C.splice(0,f.height);for(let m=0;m<f.height;m++)typeof n[A][m]>"u"?n[A][m]="":n[A][m]=a(n[A][m],m,f.height);n.numChars++}for(;C.length>0;){const A=C.shift();if(!A||A.trim()==="")break;let m=A.split(" ")[0],p;if(/^-?0[xX][0-9a-fA-F]+$/.test(m))p=parseInt(m,16);else if(/^-?0[0-7]+$/.test(m))p=parseInt(m,8);else if(/^-?[0-9]+$/.test(m))p=parseInt(m,10);else throw new Error(`Error parsing data. Invalid data: ${m}`);if(p===-1||p<-2147483648||p>2147483647){const v=p===-1?"The char code -1 is not permitted.":`The char code cannot be ${p<-2147483648?"less than -2147483648":"greater than 2147483647"}.`;throw new Error(`Error parsing data. ${v}`)}n[p]=C.splice(0,f.height);for(let v=0;v<f.height;v++)typeof n[p][v]>"u"?n[p][v]="":n[p][v]=a(n[p][v],v,f.height);n.numChars++}return r[i]=n,f},M.loadedFonts=()=>Object.keys(r),M.clearLoadedFonts=()=>{Object.keys(r).forEach(i=>{delete r[i]})},M.loadFont=async function(i,s){if(r[i]){const t=r[i].options;return s&&s(null,t),Promise.resolve(t)}try{if(!l.fetchFontIfMissing)throw new Error(`Font is not loaded: ${i}`);const t=await fetch(`${l.fontPath}/${i}.flf`);if(!t.ok)throw new Error(`Network response was not ok: ${t.status}`);const n=await t.text(),C=M.parseFont(i,n);return s&&s(null,C),C}catch(t){const n=t instanceof Error?t:new Error(String(t));if(s)return s(n),null;throw n}},M.loadFontSync=function(i){if(r[i])return r[i].options;throw new Error("Synchronous font loading is not implemented for the browser, it will only work for fonts already loaded.")},M.preloadFonts=async function(i,s){try{for(const t of i){const n=await fetch(`${l.fontPath}/${t}.flf`);if(!n.ok)throw new Error(`Failed to preload fonts. Error fetching font: ${t}, status code: ${n.statusText}`);const C=await n.text();M.parseFont(t,C)}s&&s()}catch(t){const n=t instanceof Error?t:new Error(String(t));if(s){s(n);return}throw t}},M.fonts=function(i){return new Promise(function(s,t){s($u),i&&i(null,$u)})},M.fontsSync=function(){return $u},M.figFonts=r,M})(),Lt=jD(import.meta.url),Tt=au.dirname(Lt),It=au.join(Tt,"/../fonts/"),$=St;$.defaults({fontPath:It}),$.loadFont=function(u,D){return new Promise((e,F)=>{if($.figFonts[u]){D&&D(null,$.figFonts[u].options),e($.figFonts[u].options);return}ou.readFile(au.join($.defaults().fontPath,u+".flf"),{encoding:"utf-8"},(r,l)=>{if(r){D&&D(r),F(r);return}l=l+"";try{const a=$.parseFont(u,l);D&&D(null,a),e(a)}catch(a){const o=a instanceof Error?a:new Error(String(a));D&&D(o),F(o)}})})},$.loadFontSync=function(u){if($.figFonts[u])return $.figFonts[u].options;const D=ou.readFileSync(au.join($.defaults().fontPath,u+".flf"),{encoding:"utf-8"})+"";return $.parseFont(u,D)},$.fonts=function(u){return new Promise((D,e)=>{const F=[];ou.readdir($.defaults().fontPath,(r,l)=>{if(r){u&&u(r),e(r);return}l.forEach(a=>{/\.flf$/.test(a)&&F.push(a.replace(/\.flf$/,""))}),u&&u(null,F),D(F)})})},$.fontsSync=function(){const u=[];return ou.readdirSync($.defaults().fontPath).forEach(D=>{/\.flf$/.test(D)&&u.push(D.replace(/\.flf$/,""))}),u};var Mt=Object.freeze({__proto__:null,default:$});const ku=u=>{let D;const e=process.platform;e==="darwin"?D=`open "${u}"`:e==="win32"?D=`start "" "${u}"`:D=`xdg-open "${u}"`,kD(D,F=>{})},$t=u=>{const{theme:D,ui:e}=u.config,{name:F,website:r,displayEmail:l,currentRole:a,npx:o}=u.personal,g=F.split(" ")?.[0],R=r||`https://${l.replace(/.*@/,"")}`,d=T[D.secondary]||T.whiteBright,b=$.textSync(F.toUpperCase().replace(" ",`
30
+ `),{font:"ANSI Shadow"}),y=[...u.socialHandles.map(x=>({label:Re(x.platform),value:`${x.url}/${x.handle}`,color:x.color})),{label:e.title,value:R,color:D.accent},{label:e.npx,value:o||`npx ${g.toLowerCase()}`,color:"#cb3837"}],w=Math.max(...y.map(x=>x.label.length)),k=Math.max(...y.map(x=>x.value.length)),j=[null,...b.split(`
31
+ `).map(x=>T.bold.whiteBright(fu(x))),d(fu(a.toUpperCase())),null,...y.map(x=>{const q=x.label.padEnd(w," "),su=x.value.padEnd(k," ");return T.bgHex(x.color).whiteBright.bold(fu(` ${q} : ${su} `))}),null,...e?.footer?.map(x=>T.italic(d(fu(x))))||[],null];console.log(bt(j.join(`
32
+ `),{margin:1,float:"center",textAlignment:"center",borderStyle:D.borderStyle,borderColor:D.borderColor})),console.log(e.cmdTip)};var kt=(u=>(u.EMAIL="email",u.RESUME="resume",u.MEETING="meeting",u.EXIT="exit",u))(kt||{});const Ot=u=>{const{messages:D,theme:e}=u.config,[F,r]=[e.primary,e.secondary].map(o=>T[o]||T.whiteBright),l=(o,g)=>{const R=D[o],d=R?.message||"",b=R?.description||"";return{name:g?d.replace(g,F(g)):d,value:o,description:r(`
33
+ `+b)}},a={email:()=>{ku(`mailto:${u.personal.displayEmail}?subject=Hi%20${u.personal.name.split(" ")?.[0]}!`),console.log(`
42
34
 
43
35
  ${D.email.success}
44
- `)},resume:()=>{cD(u.personal.resume||"https://cv.ritik.me"),console.log(`
36
+ `)},resume:()=>{ku(u.personal.resume||"https://cv.ritik.me"),console.log(`
45
37
 
46
38
  ${D.resume.success}
47
- `)},meeting:()=>{cD(u.personal.meeting||"https://meet.ritik.me"),console.log(`
39
+ `)},meeting:()=>{ku(u.personal.meeting||"https://meet.ritik.me"),console.log(`
48
40
 
49
41
  ${D.meeting.success}
50
42
  `)},exit:()=>console.log(`
51
43
 
52
44
  ${D.exit.success}
53
- `)};on({message:"Choose an Action",choices:[i("email","email"),i("resume","Resume"),i("meeting","Meeting"),i("exit")]}).then(a=>F[a]())},pn=async()=>{if(console.clear(),Qe(dD.name))return;const u=new Bt("Fetching data...").start();try{const[D]=await Promise.all([Xe(),Ze()]);D.config={theme:{...au.theme,...D.config?.theme},ui:{...au.ui,...D.config?.ui},messages:{email:{...au.messages?.email,...D.config?.messages?.email},resume:{...au.messages?.resume,...D.config?.messages?.resume},meeting:{...au.messages?.meeting,...D.config?.messages?.meeting},exit:{...au.messages?.exit,...D.config?.messages?.exit}}},u.succeed(`Welcome to ${D.personal.name.split(" ")?.[0]}'s Cli Portfolio ${G.dim(`- v${dD.version}`)}`),gn(D),mn(D)}catch(D){u.fail("Failed to load profile"),D instanceof Error?console.error(`
45
+ `)};vt({message:"Choose an Action",choices:[l("email","email"),l("resume","Resume"),l("meeting","Meeting"),l("exit")]}).then(o=>a[o]())},_t=async()=>{if(console.clear(),ne(Gu.name))return;const u=new be("Fetching data...").start();try{const[D]=await Promise.all([Fe(),re()]);D.config={theme:{...uu.theme,...D.config?.theme},ui:{...uu.ui,...D.config?.ui},messages:{email:{...uu.messages?.email,...D.config?.messages?.email},resume:{...uu.messages?.resume,...D.config?.messages?.resume},meeting:{...uu.messages?.meeting,...D.config?.messages?.meeting},exit:{...uu.messages?.exit,...D.config?.messages?.exit}}},u.succeed(`Welcome to ${D.personal.name.split(" ")?.[0]}'s Cli Portfolio ${T.dim(`- v${Gu.version}`)}`),$t(D),Ot(D)}catch(D){u.fail("Failed to load profile"),D instanceof Error?console.error(`
54
46
  Error: ${D.message}`):console.error(`
55
- An unknown error occurred.`),process.exit(1)}};pn();
47
+ An unknown error occurred.`),process.exit(1)}};_t();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ritik",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "description": "CLI Portfolio",
6
6
  "main": "dist/index.js",
@@ -18,7 +18,6 @@
18
18
  "demo": "pnpm run build && vhs demo/demo.tape"
19
19
  },
20
20
  "devDependencies": {
21
- "@inquirer/prompts": "^8.2.0",
22
21
  "@rollup/plugin-commonjs": "^29.0.0",
23
22
  "@rollup/plugin-json": "^6.1.0",
24
23
  "@rollup/plugin-node-resolve": "^16.0.3",