@teishoku/cli 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc +111 -0
- package/.husky/pre-commit +1 -0
- package/LICENSE +674 -0
- package/README.md +11 -0
- package/bin/cli +75 -0
- package/bun.lock +403 -0
- package/eslint.config.ts +16 -0
- package/package.json +42 -0
- package/prettier.config.ts +24 -0
- package/src/index.ts +15 -0
- package/src/logger.ts +5 -0
- package/src/subCommands/init.ts +14 -0
- package/tsconfig.json +20 -0
package/README.md
ADDED
package/bin/cli
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var au=Object.defineProperty;var pu=(D,t)=>{for(var F in t)au(D,F,{get:t[F],enumerable:!0,configurable:!0,set:(e)=>t[F]=()=>e})};var vu=(D,t)=>()=>(D&&(t=D(D=0)),t);var nu={};pu(nu,{prompt:()=>Cu,kCancel:()=>ru});import d,{stdin as Ft,stdout as et}from"node:process";import JD from"node:readline";import{WriteStream as it}from"node:tty";function rt(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}function Ct(){if(KD)return sD;KD=1;let D="\x1B",t=`${D}[`,F="\x07",e={to(u,r){if(!r)return`${t}${u+1}G`;return`${t}${r+1};${u+1}H`},move(u,r){let C="";if(u<0)C+=`${t}${-u}D`;else if(u>0)C+=`${t}${u}C`;if(r<0)C+=`${t}${-r}A`;else if(r>0)C+=`${t}${r}B`;return C},up:(u=1)=>`${t}${u}A`,down:(u=1)=>`${t}${u}B`,forward:(u=1)=>`${t}${u}C`,backward:(u=1)=>`${t}${u}D`,nextLine:(u=1)=>`${t}E`.repeat(u),prevLine:(u=1)=>`${t}F`.repeat(u),left:`${t}G`,hide:`${t}?25l`,show:`${t}?25h`,save:`${D}7`,restore:`${D}8`},i={up:(u=1)=>`${t}S`.repeat(u),down:(u=1)=>`${t}T`.repeat(u)},n={screen:`${t}2J`,up:(u=1)=>`${t}1J`.repeat(u),down:(u=1)=>`${t}J`.repeat(u),line:`${t}2K`,lineEnd:`${t}K`,lineStart:`${t}1K`,lines(u){let r="";for(let C=0;C<u;C++)r+=this.line+(C<u-1?e.up():"");if(u)r+=e.left;return r}};return sD={cursor:e,scroll:i,erase:n,beep:F},sD}function nt(){if(YD)return N.exports;YD=1;let D=process||{},t=D.argv||[],F=D.env||{},e=!(!!F.NO_COLOR||t.includes("--no-color"))&&(!!F.FORCE_COLOR||t.includes("--color")||D.platform==="win32"||(D.stdout||{}).isTTY&&F.TERM!=="dumb"||!!F.CI),i=(r,C,h=r)=>(B)=>{let l=""+B,$=l.indexOf(C,r.length);return~$?r+n(l,C,h,$)+C:r+l+C},n=(r,C,h,B)=>{let l="",$=0;do l+=r.substring($,B)+h,$=B+C.length,B=r.indexOf(C,$);while(~B);return l+r.substring($)},u=(r=e)=>{let C=r?i:()=>String;return{isColorSupported:r,reset:C("\x1B[0m","\x1B[0m"),bold:C("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:C("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:C("\x1B[3m","\x1B[23m"),underline:C("\x1B[4m","\x1B[24m"),inverse:C("\x1B[7m","\x1B[27m"),hidden:C("\x1B[8m","\x1B[28m"),strikethrough:C("\x1B[9m","\x1B[29m"),black:C("\x1B[30m","\x1B[39m"),red:C("\x1B[31m","\x1B[39m"),green:C("\x1B[32m","\x1B[39m"),yellow:C("\x1B[33m","\x1B[39m"),blue:C("\x1B[34m","\x1B[39m"),magenta:C("\x1B[35m","\x1B[39m"),cyan:C("\x1B[36m","\x1B[39m"),white:C("\x1B[37m","\x1B[39m"),gray:C("\x1B[90m","\x1B[39m"),bgBlack:C("\x1B[40m","\x1B[49m"),bgRed:C("\x1B[41m","\x1B[49m"),bgGreen:C("\x1B[42m","\x1B[49m"),bgYellow:C("\x1B[43m","\x1B[49m"),bgBlue:C("\x1B[44m","\x1B[49m"),bgMagenta:C("\x1B[45m","\x1B[49m"),bgCyan:C("\x1B[46m","\x1B[49m"),bgWhite:C("\x1B[47m","\x1B[49m"),blackBright:C("\x1B[90m","\x1B[39m"),redBright:C("\x1B[91m","\x1B[39m"),greenBright:C("\x1B[92m","\x1B[39m"),yellowBright:C("\x1B[93m","\x1B[39m"),blueBright:C("\x1B[94m","\x1B[39m"),magentaBright:C("\x1B[95m","\x1B[39m"),cyanBright:C("\x1B[96m","\x1B[39m"),whiteBright:C("\x1B[97m","\x1B[39m"),bgBlackBright:C("\x1B[100m","\x1B[49m"),bgRedBright:C("\x1B[101m","\x1B[49m"),bgGreenBright:C("\x1B[102m","\x1B[49m"),bgYellowBright:C("\x1B[103m","\x1B[49m"),bgBlueBright:C("\x1B[104m","\x1B[49m"),bgMagentaBright:C("\x1B[105m","\x1B[49m"),bgCyanBright:C("\x1B[106m","\x1B[49m"),bgWhiteBright:C("\x1B[107m","\x1B[49m")}};return N.exports=u(),N.exports.createColors=u,N.exports}function ht({onlyFirst:D=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,D?void 0:"g")}function LD(D){if(typeof D!="string")throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(st,"")}function OD(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}function K(D,t={}){if(typeof D!="string"||D.length===0||(t={ambiguousIsNarrow:!0,...t},D=LD(D),D.length===0))return 0;D=D.replace(ft()," ");let F=t.ambiguousIsNarrow?1:2,e=0;for(let i of D){let n=i.codePointAt(0);if(n<=31||n>=127&&n<=159||n>=768&&n<=879)continue;switch(lt.eastAsianWidth(i)){case"F":case"W":e+=2;break;case"A":e+=F;break;default:e+=1}}return e}function At(){let D=new Map;for(let[t,F]of Object.entries(a)){for(let[e,i]of Object.entries(F))a[e]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},F[e]=a[e],D.set(i[0],i[1]);Object.defineProperty(a,t,{value:F,enumerable:!1})}return Object.defineProperty(a,"codes",{value:D,enumerable:!1}),a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi=ZD(),a.color.ansi256=qD(),a.color.ansi16m=HD(),a.bgColor.ansi=ZD(BD),a.bgColor.ansi256=qD(BD),a.bgColor.ansi16m=HD(BD),Object.defineProperties(a,{rgbToAnsi256:{value:(t,F,e)=>t===F&&F===e?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(F/255*5)+Math.round(e/255*5),enumerable:!1},hexToRgb:{value:(t)=>{let F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!F)return[0,0,0];let[e]=F;e.length===3&&(e=[...e].map((n)=>n+n).join(""));let i=Number.parseInt(e,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:(t)=>a.rgbToAnsi256(...a.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:(t)=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let F,e,i;if(t>=232)F=((t-232)*10+8)/255,e=F,i=F;else{t-=16;let r=t%36;F=Math.floor(t/36)/5,e=Math.floor(r/6)/5,i=r%6/5}let n=Math.max(F,e,i)*2;if(n===0)return 30;let u=30+(Math.round(i)<<2|Math.round(e)<<1|Math.round(F));return n===2&&(u+=60),u},enumerable:!1},rgbToAnsi:{value:(t,F,e)=>a.ansi256ToAnsi(a.rgbToAnsi256(t,F,e)),enumerable:!1},hexToAnsi:{value:(t)=>a.ansi256ToAnsi(a.hexToAnsi256(t)),enumerable:!1}}),a}function XD(D,t,F){return String(D).normalize().replace(/\r\n/g,`
|
|
3
|
+
`).split(`
|
|
4
|
+
`).map((e)=>mt(e,t,F)).join(`
|
|
5
|
+
`)}function tu(D,t){if(typeof D=="string")return g.aliases.get(D)===t;for(let F of D)if(F!==void 0&&tu(F,t))return!0;return!1}function dt(D,t){if(D===t)return;let F=D.split(`
|
|
6
|
+
`),e=t.split(`
|
|
7
|
+
`),i=[];for(let n=0;n<Math.max(F.length,e.length);n++)F[n]!==e[n]&&i.push(n);return i}function P(D,t){let F=D;F.isTTY&&F.setRawMode(t)}class Y{constructor(D,t=!0){m(this,"input"),m(this,"output"),m(this,"_abortSignal"),m(this,"rl"),m(this,"opts"),m(this,"_render"),m(this,"_track",!1),m(this,"_prevFrame",""),m(this,"_subscribers",new Map),m(this,"_cursor",0),m(this,"state","initial"),m(this,"error",""),m(this,"value");let{input:F=Ft,output:e=et,render:i,signal:n,...u}=D;this.opts=u,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=i.bind(this),this._track=t,this._abortSignal=n,this.input=F,this.output=e}unsubscribe(){this._subscribers.clear()}setSubscriber(D,t){let F=this._subscribers.get(D)??[];F.push(t),this._subscribers.set(D,F)}on(D,t){this.setSubscriber(D,{cb:t})}once(D,t){this.setSubscriber(D,{cb:t,once:!0})}emit(D,...t){let F=this._subscribers.get(D)??[],e=[];for(let i of F)i.cb(...t),i.once&&e.push(()=>F.splice(F.indexOf(i),1));for(let i of e)i()}prompt(){return new Promise((D,t)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),D(ND);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let F=new it(0);F._write=(e,i,n)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),n()},this.input.pipe(F),this.rl=JD.createInterface({input:this.input,output:F,tabSize:2,prompt:"",escapeCodeTimeout:50}),JD.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),P(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(S.cursor.show),this.output.off("resize",this.render),P(this.input,!1),D(this.value)}),this.once("cancel",()=>{this.output.write(S.cursor.show),this.output.off("resize",this.render),P(this.input,!1),D(ND)})})}onKeypress(D,t){if(this.state==="error"&&(this.state="active"),t?.name&&(!this._track&&g.aliases.has(t.name)&&this.emit("cursor",g.aliases.get(t.name)),g.actions.has(t.name)&&this.emit("cursor",t.name)),D&&(D.toLowerCase()==="y"||D.toLowerCase()==="n")&&this.emit("confirm",D.toLowerCase()==="y"),D==="\t"&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),D&&this.emit("key",D.toLowerCase()),t?.name==="return"){if(this.opts.validate){let F=this.opts.validate(this.value);F&&(this.error=F instanceof Error?F.message:F,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}tu([D,t?.name,t?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
|
|
8
|
+
`),P(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let D=XD(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
|
|
9
|
+
`).length-1;this.output.write(S.cursor.move(-999,D*-1))}render(){let D=XD(this._render(this)??"",process.stdout.columns,{hard:!0});if(D!==this._prevFrame){if(this.state==="initial")this.output.write(S.cursor.hide);else{let t=dt(this._prevFrame,D);if(this.restoreCursor(),t&&t?.length===1){let F=t[0];this.output.write(S.cursor.move(0,F)),this.output.write(S.erase.lines(1));let e=D.split(`
|
|
10
|
+
`);this.output.write(e[F]),this._prevFrame=D,this.output.write(S.cursor.move(0,e.length-F-1));return}if(t&&t?.length>1){let F=t[0];this.output.write(S.cursor.move(0,F)),this.output.write(S.erase.down());let e=D.split(`
|
|
11
|
+
`).slice(F);this.output.write(e.join(`
|
|
12
|
+
`)),this._prevFrame=D;return}this.output.write(S.erase.down())}this.output.write(D),this.state==="initial"&&(this.state="active"),this._prevFrame=D}}}function Wt(){return d.platform!=="win32"?d.env.TERM!=="linux":!!d.env.CI||!!d.env.WT_SESSION||!!d.env.TERMINUS_SUBLIME||d.env.ConEmuTask==="{cmd::Cmder}"||d.env.TERM_PROGRAM==="Terminus-Sublime"||d.env.TERM_PROGRAM==="vscode"||d.env.TERM==="xterm-256color"||d.env.TERM==="alacritty"||d.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}async function Cu(D,t={}){let F=(e)=>{if(typeof e!=="symbol"||e.toString()!=="Symbol(clack:cancel)")return e;switch(t.cancel){case"reject":{let i=Error("Prompt cancelled.");if(i.name="ConsolaPromptCancelledError",Error.captureStackTrace)Error.captureStackTrace(i,Cu);throw i}case"undefined":return;case"null":return null;case"symbol":return ru;default:case"default":return t.default??t.initial}};if(!t.type||t.type==="text")return await qt({message:D,defaultValue:t.default,placeholder:t.placeholder,initialValue:t.initial}).then(F);if(t.type==="confirm")return await Ht({message:D,initialValue:t.initial}).then(F);if(t.type==="select")return await Qt({message:D,options:t.options.map((e)=>typeof e==="string"?{value:e,label:e}:e),initialValue:t.initial}).then(F);if(t.type==="multiselect")return await Ut({message:D,options:t.options.map((e)=>typeof e==="string"?{value:e,label:e}:e),required:t.required,initialValues:t.initial}).then(F);throw Error(`Unknown prompt type: ${t.type}`)}var sD,KD,S,N,YD,Et,E,st,xD,Bt,lt,ct=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\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])|\uD83C[\uDF3E\uDF73\uDF7C\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\uDF7C\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\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\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\uDF7C\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\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\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|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\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]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\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\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\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-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\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-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*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\u26A7\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-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\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[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},ft,BD=10,ZD=(D=0)=>(t)=>`\x1B[${t+D}m`,qD=(D=0)=>(t)=>`\x1B[${38+D};5;${t}m`,HD=(D=0)=>(t,F,e)=>`\x1B[${38+D};2;${t};${F};${e}m`,a,ot,$t,bt,j,at=39,$D="\x07",Du="[",pt="]",uu="m",AD,QD=(D)=>`${j.values().next().value}${Du}${D}${uu}`,UD=(D)=>`${j.values().next().value}${AD}${D}${$D}`,vt=(D)=>D.split(" ").map((t)=>K(t)),lD=(D,t,F)=>{let e=[...t],i=!1,n=!1,u=K(LD(D[D.length-1]));for(let[r,C]of e.entries()){let h=K(C);if(u+h<=F?D[D.length-1]+=C:(D.push(C),u=0),j.has(C)&&(i=!0,n=e.slice(r+1).join("").startsWith(AD)),i){n?C===$D&&(i=!1,n=!1):C===uu&&(i=!1);continue}u+=h,u===F&&r<e.length-1&&(D.push(""),u=0)}!u&&D[D.length-1].length>0&&D.length>1&&(D[D.length-2]+=D.pop())},wt=(D)=>{let t=D.split(" "),F=t.length;for(;F>0&&!(K(t[F-1])>0);)F--;return F===t.length?D:t.slice(0,F).join(" ")+t.slice(F).join("")},mt=(D,t,F={})=>{if(F.trim!==!1&&D.trim()==="")return"";let e="",i,n,u=vt(D),r=[""];for(let[h,B]of D.split(" ").entries()){F.trim!==!1&&(r[r.length-1]=r[r.length-1].trimStart());let l=K(r[r.length-1]);if(h!==0&&(l>=t&&(F.wordWrap===!1||F.trim===!1)&&(r.push(""),l=0),(l>0||F.trim===!1)&&(r[r.length-1]+=" ",l++)),F.hard&&u[h]>t){let $=t-l,s=1+Math.floor((u[h]-$-1)/t);Math.floor((u[h]-1)/t)<s&&r.push(""),lD(r,B,t);continue}if(l+u[h]>t&&l>0&&u[h]>0){if(F.wordWrap===!1&&l<t){lD(r,B,t);continue}r.push("")}if(l+u[h]>t&&F.wordWrap===!1){lD(r,B,t);continue}r[r.length-1]+=B}F.trim!==!1&&(r=r.map((h)=>wt(h)));let C=[...r.join(`
|
|
13
|
+
`)];for(let[h,B]of C.entries()){if(e+=B,j.has(B)){let{groups:$}=new RegExp(`(?:\\${Du}(?<code>\\d+)m|\\${AD}(?<uri>.*)${$D})`).exec(C.slice(h).join(""))||{groups:{}};if($.code!==void 0){let s=Number.parseFloat($.code);i=s===at?void 0:s}else $.uri!==void 0&&(n=$.uri.length===0?void 0:$.uri)}let l=bt.codes.get(Number(i));C[h+1]===`
|
|
14
|
+
`?(n&&(e+=UD("")),i&&l&&(e+=QD(l))):B===`
|
|
15
|
+
`&&(i&&l&&(e+=QD(i)),n&&(e+=UD(n)))}return e},yt,g,ND,St,_t=(D,t,F)=>(t in D)?St(D,t,{enumerable:!0,configurable:!0,writable:!0,value:F}):D[t]=F,m=(D,t,F)=>(_t(D,typeof t!="symbol"?t+"":t,F),F),Fu,Mt,Tt=(D,t,F)=>(t in D)?Mt(D,t,{enumerable:!0,configurable:!0,writable:!0,value:F}):D[t]=F,PD=(D,t,F)=>(Tt(D,typeof t!="symbol"?t+"":t,F),F),kt,It,Vt=(D,t,F)=>(t in D)?It(D,t,{enumerable:!0,configurable:!0,writable:!0,value:F}):D[t]=F,gD=(D,t,F)=>(Vt(D,typeof t!="symbol"?t+"":t,F),F),eu,iu,zt,_=(D,t)=>zt?D:t,Gt,Rt,Jt,Kt,b,J,cD,fD,Yt,jD,Zt,L=(D)=>{switch(D){case"initial":case"active":return E.cyan(Gt);case"cancel":return E.red(Rt);case"error":return E.yellow(Jt);case"submit":return E.green(Kt)}},oD=(D)=>{let{cursor:t,options:F,style:e}=D,i=D.maxItems??Number.POSITIVE_INFINITY,n=Math.max(process.stdout.rows-4,0),u=Math.min(n,Math.max(i,5)),r=0;t>=r+u-3?r=Math.max(Math.min(t-u+3,F.length-u),0):t<r+2&&(r=Math.max(t-2,0));let C=u<F.length&&r>0,h=u<F.length&&r+u<F.length;return F.slice(r,r+u).map((B,l,$)=>{let s=l===0&&C,o=l===$.length-1&&h;return s||o?E.dim("..."):e(B,l+r===t)})},qt=(D)=>new iu({validate:D.validate,placeholder:D.placeholder,defaultValue:D.defaultValue,initialValue:D.initialValue,render(){let t=`${E.gray(b)}
|
|
16
|
+
${L(this.state)} ${D.message}
|
|
17
|
+
`,F=D.placeholder?E.inverse(D.placeholder[0])+E.dim(D.placeholder.slice(1)):E.inverse(E.hidden("_")),e=this.value?this.valueWithCursor:F;switch(this.state){case"error":return`${t.trim()}
|
|
18
|
+
${E.yellow(b)} ${e}
|
|
19
|
+
${E.yellow(J)} ${E.yellow(this.error)}
|
|
20
|
+
`;case"submit":return`${t}${E.gray(b)} ${E.dim(this.value||D.placeholder)}`;case"cancel":return`${t}${E.gray(b)} ${E.strikethrough(E.dim(this.value??""))}${this.value?.trim()?`
|
|
21
|
+
${E.gray(b)}`:""}`;default:return`${t}${E.cyan(b)} ${e}
|
|
22
|
+
${E.cyan(J)}
|
|
23
|
+
`}}}).prompt(),Ht=(D)=>{let t=D.active??"Yes",F=D.inactive??"No";return new Fu({active:t,inactive:F,initialValue:D.initialValue??!0,render(){let e=`${E.gray(b)}
|
|
24
|
+
${L(this.state)} ${D.message}
|
|
25
|
+
`,i=this.value?t:F;switch(this.state){case"submit":return`${e}${E.gray(b)} ${E.dim(i)}`;case"cancel":return`${e}${E.gray(b)} ${E.strikethrough(E.dim(i))}
|
|
26
|
+
${E.gray(b)}`;default:return`${e}${E.cyan(b)} ${this.value?`${E.green(cD)} ${t}`:`${E.dim(fD)} ${E.dim(t)}`} ${E.dim("/")} ${this.value?`${E.dim(fD)} ${E.dim(F)}`:`${E.green(cD)} ${F}`}
|
|
27
|
+
${E.cyan(J)}
|
|
28
|
+
`}}}).prompt()},Qt=(D)=>{let t=(F,e)=>{let i=F.label??String(F.value);switch(e){case"selected":return`${E.dim(i)}`;case"active":return`${E.green(cD)} ${i} ${F.hint?E.dim(`(${F.hint})`):""}`;case"cancelled":return`${E.strikethrough(E.dim(i))}`;default:return`${E.dim(fD)} ${E.dim(i)}`}};return new eu({options:D.options,initialValue:D.initialValue,render(){let F=`${E.gray(b)}
|
|
29
|
+
${L(this.state)} ${D.message}
|
|
30
|
+
`;switch(this.state){case"submit":return`${F}${E.gray(b)} ${t(this.options[this.cursor],"selected")}`;case"cancel":return`${F}${E.gray(b)} ${t(this.options[this.cursor],"cancelled")}
|
|
31
|
+
${E.gray(b)}`;default:return`${F}${E.cyan(b)} ${oD({cursor:this.cursor,options:this.options,maxItems:D.maxItems,style:(e,i)=>t(e,i?"active":"inactive")}).join(`
|
|
32
|
+
${E.cyan(b)} `)}
|
|
33
|
+
${E.cyan(J)}
|
|
34
|
+
`}}}).prompt()},Ut=(D)=>{let t=(F,e)=>{let i=F.label??String(F.value);return e==="active"?`${E.cyan(Yt)} ${i} ${F.hint?E.dim(`(${F.hint})`):""}`:e==="selected"?`${E.green(jD)} ${E.dim(i)}`:e==="cancelled"?`${E.strikethrough(E.dim(i))}`:e==="active-selected"?`${E.green(jD)} ${i} ${F.hint?E.dim(`(${F.hint})`):""}`:e==="submitted"?`${E.dim(i)}`:`${E.dim(Zt)} ${E.dim(i)}`};return new kt({options:D.options,initialValues:D.initialValues,required:D.required??!0,cursorAt:D.cursorAt,validate(F){if(this.required&&F.length===0)return`Please select at least one option.
|
|
35
|
+
${E.reset(E.dim(`Press ${E.gray(E.bgWhite(E.inverse(" space ")))} to select, ${E.gray(E.bgWhite(E.inverse(" enter ")))} to submit`))}`},render(){let F=`${E.gray(b)}
|
|
36
|
+
${L(this.state)} ${D.message}
|
|
37
|
+
`,e=(i,n)=>{let u=this.value.includes(i.value);return n&&u?t(i,"active-selected"):u?t(i,"selected"):t(i,n?"active":"inactive")};switch(this.state){case"submit":return`${F}${E.gray(b)} ${this.options.filter(({value:i})=>this.value.includes(i)).map((i)=>t(i,"submitted")).join(E.dim(", "))||E.dim("none")}`;case"cancel":{let i=this.options.filter(({value:n})=>this.value.includes(n)).map((n)=>t(n,"cancelled")).join(E.dim(", "));return`${F}${E.gray(b)} ${i.trim()?`${i}
|
|
38
|
+
${E.gray(b)}`:""}`}case"error":{let i=this.error.split(`
|
|
39
|
+
`).map((n,u)=>u===0?`${E.yellow(J)} ${E.yellow(n)}`:` ${n}`).join(`
|
|
40
|
+
`);return`${F+E.yellow(b)} ${oD({options:this.options,cursor:this.cursor,maxItems:D.maxItems,style:e}).join(`
|
|
41
|
+
${E.yellow(b)} `)}
|
|
42
|
+
${i}
|
|
43
|
+
`}default:return`${F}${E.cyan(b)} ${oD({options:this.options,cursor:this.cursor,maxItems:D.maxItems,style:e}).join(`
|
|
44
|
+
${E.cyan(b)} `)}
|
|
45
|
+
${E.cyan(J)}
|
|
46
|
+
`}}}).prompt()},ru;var Eu=vu(()=>{S=Ct(),N={exports:{}};Et=nt(),E=rt(Et);st=ht();xD={exports:{}};(function(D){var t={};D.exports=t,t.eastAsianWidth=function(e){var i=e.charCodeAt(0),n=e.length==2?e.charCodeAt(1):0,u=i;return 55296<=i&&i<=56319&&56320<=n&&n<=57343&&(i&=1023,n&=1023,u=i<<10|n,u+=65536),u==12288||65281<=u&&u<=65376||65504<=u&&u<=65510?"F":u==8361||65377<=u&&u<=65470||65474<=u&&u<=65479||65482<=u&&u<=65487||65490<=u&&u<=65495||65498<=u&&u<=65500||65512<=u&&u<=65518?"H":4352<=u&&u<=4447||4515<=u&&u<=4519||4602<=u&&u<=4607||9001<=u&&u<=9002||11904<=u&&u<=11929||11931<=u&&u<=12019||12032<=u&&u<=12245||12272<=u&&u<=12283||12289<=u&&u<=12350||12353<=u&&u<=12438||12441<=u&&u<=12543||12549<=u&&u<=12589||12593<=u&&u<=12686||12688<=u&&u<=12730||12736<=u&&u<=12771||12784<=u&&u<=12830||12832<=u&&u<=12871||12880<=u&&u<=13054||13056<=u&&u<=19903||19968<=u&&u<=42124||42128<=u&&u<=42182||43360<=u&&u<=43388||44032<=u&&u<=55203||55216<=u&&u<=55238||55243<=u&&u<=55291||63744<=u&&u<=64255||65040<=u&&u<=65049||65072<=u&&u<=65106||65108<=u&&u<=65126||65128<=u&&u<=65131||110592<=u&&u<=110593||127488<=u&&u<=127490||127504<=u&&u<=127546||127552<=u&&u<=127560||127568<=u&&u<=127569||131072<=u&&u<=194367||177984<=u&&u<=196605||196608<=u&&u<=262141?"W":32<=u&&u<=126||162<=u&&u<=163||165<=u&&u<=166||u==172||u==175||10214<=u&&u<=10221||10629<=u&&u<=10630?"Na":u==161||u==164||167<=u&&u<=168||u==170||173<=u&&u<=174||176<=u&&u<=180||182<=u&&u<=186||188<=u&&u<=191||u==198||u==208||215<=u&&u<=216||222<=u&&u<=225||u==230||232<=u&&u<=234||236<=u&&u<=237||u==240||242<=u&&u<=243||247<=u&&u<=250||u==252||u==254||u==257||u==273||u==275||u==283||294<=u&&u<=295||u==299||305<=u&&u<=307||u==312||319<=u&&u<=322||u==324||328<=u&&u<=331||u==333||338<=u&&u<=339||358<=u&&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||713<=u&&u<=715||u==717||u==720||728<=u&&u<=731||u==733||u==735||768<=u&&u<=879||913<=u&&u<=929||931<=u&&u<=937||945<=u&&u<=961||963<=u&&u<=969||u==1025||1040<=u&&u<=1103||u==1105||u==8208||8211<=u&&u<=8214||8216<=u&&u<=8217||8220<=u&&u<=8221||8224<=u&&u<=8226||8228<=u&&u<=8231||u==8240||8242<=u&&u<=8243||u==8245||u==8251||u==8254||u==8308||u==8319||8321<=u&&u<=8324||u==8364||u==8451||u==8453||u==8457||u==8467||u==8470||8481<=u&&u<=8482||u==8486||u==8491||8531<=u&&u<=8532||8539<=u&&u<=8542||8544<=u&&u<=8555||8560<=u&&u<=8569||u==8585||8592<=u&&u<=8601||8632<=u&&u<=8633||u==8658||u==8660||u==8679||u==8704||8706<=u&&u<=8707||8711<=u&&u<=8712||u==8715||u==8719||u==8721||u==8725||u==8730||8733<=u&&u<=8736||u==8739||u==8741||8743<=u&&u<=8748||u==8750||8756<=u&&u<=8759||8764<=u&&u<=8765||u==8776||u==8780||u==8786||8800<=u&&u<=8801||8804<=u&&u<=8807||8810<=u&&u<=8811||8814<=u&&u<=8815||8834<=u&&u<=8835||8838<=u&&u<=8839||u==8853||u==8857||u==8869||u==8895||u==8978||9312<=u&&u<=9449||9451<=u&&u<=9547||9552<=u&&u<=9587||9600<=u&&u<=9615||9618<=u&&u<=9621||9632<=u&&u<=9633||9635<=u&&u<=9641||9650<=u&&u<=9651||9654<=u&&u<=9655||9660<=u&&u<=9661||9664<=u&&u<=9665||9670<=u&&u<=9672||u==9675||9678<=u&&u<=9681||9698<=u&&u<=9701||u==9711||9733<=u&&u<=9734||u==9737||9742<=u&&u<=9743||9748<=u&&u<=9749||u==9756||u==9758||u==9792||u==9794||9824<=u&&u<=9825||9827<=u&&u<=9829||9831<=u&&u<=9834||9836<=u&&u<=9837||u==9839||9886<=u&&u<=9887||9918<=u&&u<=9919||9924<=u&&u<=9933||9935<=u&&u<=9953||u==9955||9960<=u&&u<=9983||u==10045||u==10071||10102<=u&&u<=10111||11093<=u&&u<=11097||12872<=u&&u<=12879||57344<=u&&u<=63743||65024<=u&&u<=65039||u==65533||127232<=u&&u<=127242||127248<=u&&u<=127277||127280<=u&&u<=127337||127344<=u&&u<=127386||917760<=u&&u<=917999||983040<=u&&u<=1048573||1048576<=u&&u<=1114109?"A":"N"},t.characterLength=function(e){var i=this.eastAsianWidth(e);return i=="F"||i=="W"||i=="A"?2:1};function F(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(e){for(var i=F(e),n=0,u=0;u<i.length;u++)n=n+this.characterLength(i[u]);return n},t.slice=function(e,i,n){textLen=t.length(e),i=i||0,n=n||1,i<0&&(i=textLen+i),n<0&&(n=textLen+n);for(var u="",r=0,C=F(e),h=0;h<C.length;h++){var B=C[h],l=t.length(B);if(r>=i-(l==2?1:0))if(r+l<=n)u+=B;else break;r+=l}return u}})(xD);Bt=xD.exports,lt=OD(Bt),ft=OD(ct);a={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(a.modifier);ot=Object.keys(a.color),$t=Object.keys(a.bgColor);[...ot,...$t];bt=At(),j=new Set(["\x1B",""]),AD=`${pt}8;;`;yt=["up","down","left","right","space","enter","cancel"],g={actions:new Set(yt),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["\x03","cancel"],["escape","cancel"]])};globalThis.process.platform.startsWith("win");ND=Symbol("clack:cancel");St=Object.defineProperty;Fu=class Fu extends Y{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(D){super(D,!1),this.value=!!D.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",(t)=>{this.output.write(S.cursor.move(0,-1)),this.value=t,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};Mt=Object.defineProperty,kt=class extends Y{constructor(D){super(D,!1),PD(this,"options"),PD(this,"cursor",0),this.options=D.options,this.value=[...D.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:t})=>t===D.cursorAt),0),this.on("key",(t)=>{t==="a"&&this.toggleAll()}),this.on("cursor",(t)=>{switch(t){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case"space":this.toggleValue();break}})}get _value(){return this.options[this.cursor].value}toggleAll(){let D=this.value.length===this.options.length;this.value=D?[]:this.options.map((t)=>t.value)}toggleValue(){let D=this.value.includes(this._value);this.value=D?this.value.filter((t)=>t!==this._value):[...this.value,this._value]}},It=Object.defineProperty;eu=class eu extends Y{constructor(D){super(D,!1),gD(this,"options"),gD(this,"cursor",0),this.options=D.options,this.cursor=this.options.findIndex(({value:t})=>t===D.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",(t)=>{switch(t){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}};iu=class iu extends Y{get valueWithCursor(){if(this.state==="submit")return this.value;if(this.cursor>=this.value.length)return`${this.value}█`;let D=this.value.slice(0,this.cursor),[t,...F]=this.value.slice(this.cursor);return`${D}${E.inverse(t)}${F.join("")}`}get cursor(){return this._cursor}constructor(D){super(D),this.on("finalize",()=>{this.value||(this.value=D.defaultValue)})}};zt=Wt(),Gt=_("❯",">"),Rt=_("■","x"),Jt=_("▲","x"),Kt=_("✔","√"),b=_(""),J=_(""),cD=_("●",">"),fD=_("○"," "),Yt=_("◻","[•]"),jD=_("◼","[+]"),Zt=_("◻","[ ]");`${E.gray(b)} `;ru=Symbol.for("cancel")});var wu=/\d/,mu=["-","_","/","."];function yu(D=""){if(wu.test(D))return;return D!==D.toLowerCase()}function vD(D,t){let F=t??mu,e=[];if(!D||typeof D!=="string")return e;let i="",n,u;for(let r of D){let C=F.includes(r);if(C===!0){e.push(i),i="",n=void 0;continue}let h=yu(r);if(u===!1){if(n===!1&&h===!0){e.push(i),i=r,n=h;continue}if(n===!0&&h===!1&&i.length>1){let B=i.at(-1);e.push(i.slice(0,Math.max(0,i.length-1))),i=B+r,n=h;continue}}i+=r,n=h,u=C}return e.push(i),e}function du(D){return D?D[0].toUpperCase()+D.slice(1):""}function Su(D){return D?D[0].toLowerCase()+D.slice(1):""}function _u(D,t){return D?(Array.isArray(D)?D:vD(D)).map((F)=>du(t?.normalize?F.toLowerCase():F)).join(""):""}function DD(D,t){return Su(_u(D||"",t))}function uD(D,t){return D?(Array.isArray(D)?D:vD(D)).map((F)=>F.toLowerCase()).join(t??"-"):""}import{parseArgs as Mu}from"node:util";function wD(D){if(Array.isArray(D))return D;return D===void 0?[]:[D]}function tD(D,t=""){let F=[];for(let e of D)for(let[i,n]of e.entries())F[i]=Math.max(F[i]||0,n.length);return D.map((e)=>e.map((i,n)=>t+i[n===0?"padStart":"padEnd"](F[n])).join(" ")).join(`
|
|
47
|
+
`)}function y(D){return typeof D==="function"?D():D}var z=class extends Error{code;constructor(D,t){super(D);this.name="CLIError",this.code=t}};function Tu(D=[],t={}){let F=new Set(t.boolean||[]),e=new Set(t.string||[]),i=t.alias||{},n=t.default||{},u=new Map,r=new Map;for(let[c,A]of Object.entries(i)){let M=A;for(let R of M){if(u.set(c,R),!r.has(R))r.set(R,[]);if(r.get(R).push(c),u.set(R,c),!r.has(c))r.set(c,[]);r.get(c).push(R)}}let C={};function h(c){if(F.has(c))return"boolean";let A=r.get(c)||[];for(let M of A)if(F.has(M))return"boolean";return"string"}let B=new Set([...F,...e,...Object.keys(i),...Object.values(i).flat(),...Object.keys(n)]);for(let c of B)if(!C[c])C[c]={type:h(c),default:n[c]};for(let[c,A]of u.entries())if(c.length===1&&C[A]&&!C[A].short)C[A].short=c;let l=[],$={};for(let c=0;c<D.length;c++){let A=D[c];if(A==="--"){l.push(...D.slice(c));break}if(A.startsWith("--no-")){let M=A.slice(5);$[M]=!0;continue}l.push(A)}let s;try{s=Mu({args:l,options:Object.keys(C).length>0?C:void 0,allowPositionals:!0,strict:!1})}catch{s={values:{},positionals:l}}let o={_:[]};o._=s.positionals;for(let[c,A]of Object.entries(s.values))o[c]=A;for(let[c]of Object.entries($))o[c]=!1;for(let[c,A]of u.entries()){if(o[c]!==void 0&&o[A]===void 0)o[A]=o[c];if(o[A]!==void 0&&o[c]===void 0)o[c]=o[A]}return o}var ku=(()=>{let D=globalThis.process?.env??{};return D.NO_COLOR==="1"||D.TERM==="dumb"||D.TEST||D.CI})(),Q=(D,t=39)=>(F)=>ku?F:`\x1B[${D}m${F}\x1B[${t}m`,q=Q(1,22),T=Q(36),Iu=Q(90),H=Q(4,24);function Vu(D,t){let F={boolean:[],string:[],alias:{},default:{}},e=mD(t);for(let r of e){if(r.type==="positional")continue;if(r.type==="string"||r.type==="enum")F.string.push(r.name);else if(r.type==="boolean")F.boolean.push(r.name);if(r.default!==void 0)F.default[r.name]=r.default;if(r.alias)F.alias[r.name]=r.alias;let C=DD(r.name),h=uD(r.name);if(C!==r.name||h!==r.name){let B=wD(F.alias[r.name]||[]);if(C!==r.name&&!B.includes(C))B.push(C);if(h!==r.name&&!B.includes(h))B.push(h);if(B.length>0)F.alias[r.name]=B}}let i=Tu(D,F),[...n]=i._,u=new Proxy(i,{get(r,C){return r[C]??r[DD(C)]??r[uD(C)]}});for(let[,r]of e.entries())if(r.type==="positional"){let C=n.shift();if(C!==void 0)u[r.name]=C;else if(r.default===void 0&&r.required!==!1)throw new z(`Missing required positional argument: ${r.name.toUpperCase()}`,"EARG");else u[r.name]=r.default}else if(r.type==="enum"){let C=u[r.name],h=r.options||[];if(C!==void 0&&h.length>0&&!h.includes(C))throw new z(`Invalid value for argument: ${T(`--${r.name}`)} (${T(C)}). Expected one of: ${h.map((B)=>T(B)).join(", ")}.`,"EARG")}else if(r.required&&u[r.name]===void 0)throw new z(`Missing required argument: --${r.name}`,"EARG");return u}function mD(D){let t=[];for(let[F,e]of Object.entries(D||{}))t.push({...e,name:F,alias:wD(e.alias)});return t}function yD(D){return D}async function dD(D,t){let F=await y(D.args||{}),e=Vu(t.rawArgs,F),i={rawArgs:t.rawArgs,args:e,data:t.data,cmd:D};if(typeof D.setup==="function")await D.setup(i);let n;try{let u=await y(D.subCommands);if(u&&Object.keys(u).length>0){let r=t.rawArgs.findIndex((h)=>!h.startsWith("-")),C=t.rawArgs[r];if(C){if(!u[C])throw new z(`Unknown command ${T(C)}`,"E_UNKNOWN_COMMAND");let h=await y(u[C]);if(h)await dD(h,{rawArgs:t.rawArgs.slice(r+1)})}else if(!D.run)throw new z("No command specified.","E_NO_COMMAND")}if(typeof D.run==="function")n=await D.run(i)}finally{if(typeof D.cleanup==="function")await D.cleanup(i)}return{result:n}}async function FD(D,t,F){let e=await y(D.subCommands);if(e&&Object.keys(e).length>0){let i=t.findIndex((r)=>!r.startsWith("-")),n=t[i],u=await y(e[n]);if(u)return FD(u,t.slice(i+1),D)}return[D,F]}async function Wu(D,t){try{console.log(await Gu(D,t)+`
|
|
48
|
+
`)}catch(F){console.error(F)}}var zu=/^no[-A-Z]/;async function Gu(D,t){let F=await y(D.meta||{}),e=mD(await y(D.args||{})),i=await y(t?.meta||{}),n=`${i.name?`${i.name} `:""}`+(F.name||process.argv[1]),u=[],r=[],C=[],h=[];for(let s of e)if(s.type==="positional"){let o=s.name.toUpperCase(),c=s.required!==!1&&s.default===void 0,A=s.default?`="${s.default}"`:"";r.push([T(o+A),s.description||"",s.valueHint?`<${s.valueHint}>`:""]),h.push(c?`<${o}>`:`[${o}]`)}else{let o=s.required===!0&&s.default===void 0,c=[...(s.alias||[]).map((A)=>`-${A}`),`--${s.name}`].join(", ")+(s.type==="string"&&(s.valueHint||s.default)?`=${s.valueHint?`<${s.valueHint}>`:`"${s.default||""}"`}`:"")+(s.type==="enum"&&s.options?`=<${s.options.join("|")}>`:"");if(u.push([T(c+(o?" (required)":"")),s.description||""]),s.type==="boolean"&&(s.default===!0||s.negativeDescription)&&!zu.test(s.name)){let A=[...(s.alias||[]).map((M)=>`--no-${M}`),`--no-${s.name}`].join(", ");u.push([T(A+(o?" (required)":"")),s.negativeDescription||""])}if(o)h.push(c)}if(D.subCommands){let s=[],o=await y(D.subCommands);for(let[c,A]of Object.entries(o)){let M=await y((await y(A))?.meta);if(M?.hidden)continue;C.push([T(c),M?.description||""]),s.push(c)}h.push(s.join("|"))}let B=[],l=F.version||i.version;B.push(Iu(`${F.description} (${n+(l?` v${l}`:"")})`),"");let $=u.length>0||r.length>0;if(B.push(`${H(q("USAGE"))} ${T(`${n}${$?" [OPTIONS]":""} ${h.join(" ")}`)}`,""),r.length>0)B.push(H(q("ARGUMENTS")),""),B.push(tD(r," ")),B.push("");if(u.length>0)B.push(H(q("OPTIONS")),""),B.push(tD(u," ")),B.push("");if(C.length>0)B.push(H(q("COMMANDS")),""),B.push(tD(C," ")),B.push("",`Use ${T(`${n} <command> --help`)} for more information about a command.`);return B.filter((s)=>typeof s==="string").join(`
|
|
49
|
+
`)}async function SD(D,t={}){let F=t.rawArgs||process.argv.slice(2),e=t.showUsage||Wu;try{if(F.includes("--help")||F.includes("-h"))await e(...await FD(D,F)),process.exit(0);else if(F.length===1&&F[0]==="--version"){let i=typeof D.meta==="function"?await D.meta():await D.meta;if(!i?.version)throw new z("No version specified","E_NO_VERSION");console.log(i.version)}else await dD(D,{rawArgs:F})}catch(i){if(i instanceof z)await e(...await FD(D,F)),console.error(i.message);else console.error(i,`
|
|
50
|
+
`);process.exit(1)}}var _D="0.0.2";var v={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},CD={silent:{level:-1},fatal:{level:v.fatal},error:{level:v.error},warn:{level:v.warn},log:{level:v.log},info:{level:v.info},success:{level:v.success},fail:{level:v.fail},ready:{level:v.info},start:{level:v.info},box:{level:v.info},debug:{level:v.debug},trace:{level:v.trace},verbose:{level:v.verbose}};function eD(D){if(D===null||typeof D!=="object")return!1;let t=Object.getPrototypeOf(D);if(t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null)return!1;if(Symbol.iterator in D)return!1;if(Symbol.toStringTag in D)return Object.prototype.toString.call(D)==="[object Module]";return!0}function nD(D,t,F=".",e){if(!eD(t))return nD(D,{},F,e);let i=Object.assign({},t);for(let n in D){if(n==="__proto__"||n==="constructor")continue;let u=D[n];if(u===null||u===void 0)continue;if(e&&e(i,n,u,F))continue;if(Array.isArray(u)&&Array.isArray(i[n]))i[n]=[...u,...i[n]];else if(eD(u)&&eD(i[n]))i[n]=nD(u,i[n],(F?`${F}.`:"")+n.toString(),e);else i[n]=u}return i}function Ju(D){return(...t)=>t.reduce((F,e)=>nD(F,e,"",D),{})}var Ku=Ju();function Yu(D){return Object.prototype.toString.call(D)==="[object Object]"}function Zu(D){if(!Yu(D))return!1;if(!D.message&&!D.args)return!1;if(D.stack)return!1;return!0}var iD=!1,MD=[];class p{options;_lastLog;_mockFn;constructor(D={}){let t=D.types||CD;this.options=Ku({...D,defaults:{...D.defaults},level:rD(D.level,t),reporters:[...D.reporters||[]]},{types:CD,throttle:1000,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(let F in t){let e={type:F,...this.options.defaults,...t[F]};this[F]=this._wrapLogFn(e),this[F].raw=this._wrapLogFn(e,!0)}if(this.options.mockFn)this.mockTypes();this._lastLog={}}get level(){return this.options.level}set level(D){this.options.level=rD(D,this.options.types,this.options.level)}prompt(D,t){if(!this.options.prompt)throw Error("prompt is not supported!");return this.options.prompt(D,t)}create(D){let t=new p({...this.options,...D});if(this._mockFn)t.mockTypes(this._mockFn);return t}withDefaults(D){return this.create({...this.options,defaults:{...this.options.defaults,...D}})}withTag(D){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+D:D})}addReporter(D){return this.options.reporters.push(D),this}removeReporter(D){if(D){let t=this.options.reporters.indexOf(D);if(t!==-1)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(D){return this.options.reporters=Array.isArray(D)?D:[D],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(let D in this.options.types){if(!console["__"+D])console["__"+D]=console[D];console[D]=this[D].raw}}restoreConsole(){for(let D in this.options.types)if(console["__"+D])console[D]=console["__"+D],delete console["__"+D]}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(D,t){if(!D)return;if(!D.__write)D.__write=D.write;D.write=(F)=>{this[t].raw(String(F).trim())}}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(D){if(!D)return;if(D.__write)D.write=D.__write,delete D.__write}pauseLogs(){iD=!0}resumeLogs(){iD=!1;let D=MD.splice(0);for(let t of D)t[0]._logFn(t[1],t[2])}mockTypes(D){let t=D||this.options.mockFn;if(this._mockFn=t,typeof t!=="function")return;for(let F in this.options.types)this[F]=t(F,this.options.types[F])||this[F],this[F].raw=this[F]}_wrapLogFn(D,t){return(...F)=>{if(iD){MD.push([this,D,F,t]);return}return this._logFn(D,F,t)}}_logFn(D,t,F){if((D.level||0)>this.level)return!1;let e={date:new Date,args:[],...D,level:rD(D.level,this.options.types)};if(!F&&t.length===1&&Zu(t[0]))Object.assign(e,t[0]);else e.args=[...t];if(e.message)e.args.unshift(e.message),delete e.message;if(e.additional){if(!Array.isArray(e.additional))e.additional=e.additional.split(`
|
|
51
|
+
`);e.args.push(`
|
|
52
|
+
`+e.additional.join(`
|
|
53
|
+
`)),delete e.additional}e.type=typeof e.type==="string"?e.type.toLowerCase():"log",e.tag=typeof e.tag==="string"?e.tag:"";let i=(u=!1)=>{let r=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&r>0){let C=[...this._lastLog.object.args];if(r>1)C.push(`(repeated ${r} times)`);this._log({...this._lastLog.object,args:C}),this._lastLog.count=1}if(u)this._lastLog.object=e,this._log(e)};clearTimeout(this._lastLog.timeout);let n=this._lastLog.time&&e.date?e.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=e.date,n<this.options.throttle)try{let u=JSON.stringify([e.type,e.tag,e.args]),r=this._lastLog.serialized===u;if(this._lastLog.serialized=u,r){if(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin){this._lastLog.timeout=setTimeout(i,this.options.throttle);return}}}catch{}i(!0)}_log(D){for(let t of this.options.reporters)t.log(D,{options:this.options})}}function rD(D,t={},F=3){if(D===void 0)return F;if(typeof D==="number")return D;if(t[D]&&t[D].level!==void 0)return t[D].level;return F}p.prototype.add=p.prototype.addReporter;p.prototype.remove=p.prototype.removeReporter;p.prototype.clear=p.prototype.removeReporter;p.prototype.withScope=p.prototype.withTag;p.prototype.mock=p.prototype.mockTypes;p.prototype.pause=p.prototype.pauseLogs;p.prototype.resume=p.prototype.resumeLogs;function TD(D={}){return new p(D)}import{formatWithOptions as kD}from"node:util";import{sep as qu}from"node:path";function hD(D,t){let F=process.cwd()+qu;return D.split(`
|
|
54
|
+
`).splice(t.split(`
|
|
55
|
+
`).length).map((i)=>i.trim().replace("file://","").replace(F,""))}function Hu(D,t){return(t.__write||t.write).call(t,D)}var ED=(D)=>D?`[${D}]`:"";class U{formatStack(D,t,F){let e=" ".repeat((F?.errorLevel||0)+1);return e+hD(D,t).join(`
|
|
56
|
+
${e}`)}formatError(D,t){let F=D.message??kD(t,D),e=D.stack?this.formatStack(D.stack,F,t):"",i=t?.errorLevel||0,n=i>0?`${" ".repeat(i)}[cause]: `:"",u=D.cause?`
|
|
57
|
+
|
|
58
|
+
`+this.formatError(D.cause,{...t,errorLevel:i+1}):"";return n+F+`
|
|
59
|
+
`+e+u}formatArgs(D,t){let F=D.map((e)=>{if(e&&typeof e.stack==="string")return this.formatError(e,t);return e});return kD(t,...F)}formatDate(D,t){return t.date?D.toLocaleTimeString():""}filterAndJoin(D){return D.filter(Boolean).join(" ")}formatLogObj(D,t){let F=this.formatArgs(D.args,t);if(D.type==="box")return`
|
|
60
|
+
`+[ED(D.tag),D.title&&D.title,...F.split(`
|
|
61
|
+
`)].filter(Boolean).map((e)=>" > "+e).join(`
|
|
62
|
+
`)+`
|
|
63
|
+
`;return this.filterAndJoin([ED(D.type),ED(D.tag),F])}log(D,t){let F=this.formatLogObj(D,{columns:t.options.stdout.columns||0,...t.options.formatOptions});return Hu(F+`
|
|
64
|
+
`,D.level<2?t.options.stderr||process.stderr:t.options.stdout||process.stdout)}}import hu from"node:process";import*as X from"node:tty";var{env:V={},argv:WD=[],platform:Qu=""}=typeof process>"u"?{}:process,Uu="NO_COLOR"in V||WD.includes("--no-color"),Xu="FORCE_COLOR"in V||WD.includes("--color"),Nu=Qu==="win32",zD=V.TERM==="dumb",Pu=X&&X.isatty&&X.isatty(1)&&V.TERM&&!zD,gu="CI"in V&&(("GITHUB_ACTIONS"in V)||("GITLAB_CI"in V)||("CIRCLECI"in V)),ju=!Uu&&(Xu||Nu&&!zD||Pu||gu);function GD(D,t,F,e,i=t.slice(0,Math.max(0,D))+e,n=t.slice(Math.max(0,D+F.length)),u=n.indexOf(F)){return i+(u<0?n:GD(u,n,F,e))}function Lu(D,t,F,e,i){return D<0?F+t+e:F+GD(D,t,e,i)+e}function Ou(D,t,F=D,e=D.length+1){return(i)=>i||!(i===""||i===void 0)?Lu((""+i).indexOf(t,e),i,D,t,F):""}function f(D,t,F){return Ou(`\x1B[${D}m`,`\x1B[${t}m`,F)}var ID={reset:f(0,0),bold:f(1,22,"\x1B[22m\x1B[1m"),dim:f(2,22,"\x1B[22m\x1B[2m"),italic:f(3,23),underline:f(4,24),inverse:f(7,27),hidden:f(8,28),strikethrough:f(9,29),black:f(30,39),red:f(31,39),green:f(32,39),yellow:f(33,39),blue:f(34,39),magenta:f(35,39),cyan:f(36,39),white:f(37,39),gray:f(90,39),bgBlack:f(40,49),bgRed:f(41,49),bgGreen:f(42,49),bgYellow:f(43,49),bgBlue:f(44,49),bgMagenta:f(45,49),bgCyan:f(46,49),bgWhite:f(47,49),blackBright:f(90,39),redBright:f(91,39),greenBright:f(92,39),yellowBright:f(93,39),blueBright:f(94,39),magentaBright:f(95,39),cyanBright:f(96,39),whiteBright:f(97,39),bgBlackBright:f(100,49),bgRedBright:f(101,49),bgGreenBright:f(102,49),bgYellowBright:f(103,49),bgBlueBright:f(104,49),bgMagentaBright:f(105,49),bgCyanBright:f(106,49),bgWhiteBright:f(107,49)};function xu(D=ju){return D?ID:Object.fromEntries(Object.keys(ID).map((t)=>[t,String]))}var w=xu();function Dt(D,t="reset"){return w[D]||w[t]}var ut=[String.raw`[\u001B\u009B][[\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\d\/#&.:=?%@~_]+)*|[a-zA-Z\d]+(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?\u0007)`,String.raw`(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))`].join("|");function I(D){return D.replace(new RegExp(ut,"g"),"")}var VD={solid:{tl:"┌",tr:"┐",bl:"└",br:"┘",h:"─",v:"│"},double:{tl:"╔",tr:"╗",bl:"╚",br:"╝",h:"═",v:"║"},doubleSingle:{tl:"╓",tr:"╖",bl:"╙",br:"╜",h:"─",v:"║"},doubleSingleRounded:{tl:"╭",tr:"╮",bl:"╰",br:"╯",h:"─",v:"║"},singleThick:{tl:"┏",tr:"┓",bl:"┗",br:"┛",h:"━",v:"┃"},singleDouble:{tl:"╒",tr:"╕",bl:"╘",br:"╛",h:"═",v:"│"},singleDoubleRounded:{tl:"╭",tr:"╮",bl:"╰",br:"╯",h:"═",v:"│"},rounded:{tl:"╭",tr:"╮",bl:"╰",br:"╯",h:"─",v:"│"}},tt={borderColor:"white",borderStyle:"rounded",valign:"center",padding:2,marginLeft:1,marginTop:1,marginBottom:1};function RD(D,t={}){let F={...t,style:{...tt,...t.style}},e=D.split(`
|
|
65
|
+
`),i=[],n=Dt(F.style.borderColor),u={...typeof F.style.borderStyle==="string"?VD[F.style.borderStyle]||VD.solid:F.style.borderStyle};if(n)for(let s in u)u[s]=n(u[s]);let r=F.style.padding%2===0?F.style.padding:F.style.padding+1,C=e.length+r,h=Math.max(...e.map((s)=>I(s).length),F.title?I(F.title).length:0)+r,B=h+r,l=F.style.marginLeft>0?" ".repeat(F.style.marginLeft):"";if(F.style.marginTop>0)i.push("".repeat(F.style.marginTop));if(F.title){let s=n?n(F.title):F.title,o=u.h.repeat(Math.floor((h-I(F.title).length)/2)),c=u.h.repeat(h-I(F.title).length-I(o).length+r);i.push(`${l}${u.tl}${o}${s}${c}${u.tr}`)}else i.push(`${l}${u.tl}${u.h.repeat(B)}${u.tr}`);let $=F.style.valign==="center"?Math.floor((C-e.length)/2):F.style.valign==="top"?C-e.length-r:C-e.length;for(let s=0;s<C;s++)if(s<$||s>=$+e.length)i.push(`${l}${u.v}${" ".repeat(B)}${u.v}`);else{let o=e[s-$],c=" ".repeat(r),A=" ".repeat(h-I(o).length);i.push(`${l}${u.v}${c}${o}${A}${u.v}`)}if(i.push(`${l}${u.bl}${u.h.repeat(B)}${u.br}`),F.style.marginBottom>0)i.push("".repeat(F.style.marginBottom));return i.join(`
|
|
66
|
+
`)}var x=Object.create(null),Z=(D)=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(D?x:globalThis),W=new Proxy(x,{get(D,t){return Z()[t]??x[t]},has(D,t){let F=Z();return t in F||t in x},set(D,t,F){let e=Z(!0);return e[t]=F,!0},deleteProperty(D,t){if(!t)return!1;let F=Z(!0);return delete F[t],!0},ownKeys(){let D=Z(!0);return Object.keys(D)}}),Xt=typeof process<"u"&&process.env&&"development"||"",Nt=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function Pt(){if(globalThis.process?.env)for(let D of Nt){let t=D[1]||D[0];if(globalThis.process?.env[t])return{name:D[0].toLowerCase(),...D[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var cu=Pt();cu.name;function G(D){return D?D!=="false":!1}var gt=globalThis.process?.platform||"",bD=G(W.CI)||cu.ci!==!1,fu=G(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),jt=G(W.DEBUG),aD=Xt==="test"||G(W.TEST);G(W.MINIMAL);var Lt=/^win/i.test(gt);!G(W.NO_COLOR)&&(G(W.FORCE_COLOR)||(fu||Lt)&&W.TERM);var Ot=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(Ot?.split(".")[0]);var xt=globalThis.process||Object.create(null),su={versions:{}};new Proxy(xt,{get(D,t){if(t==="env")return W;if(t in D)return D[t];if(t in su)return su[t]}});var D2=globalThis.process?.release?.name==="node",u2=!!globalThis.Bun||!!globalThis.process?.versions?.bun,t2=!!globalThis.Deno,F2=!!globalThis.fastly,e2=!!globalThis.Netlify,i2=!!globalThis.EdgeRuntime,r2=globalThis.navigator?.userAgent==="Cloudflare-Workers",C2=[[e2,"netlify"],[i2,"edge-light"],[r2,"workerd"],[F2,"fastly"],[t2,"deno"],[u2,"bun"],[D2,"node"]];function n2(){let D=C2.find((t)=>t[0]);if(D)return{name:D[1]}}var E2=n2();E2?.name;function h2({onlyFirst:D=!1}={}){let F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}var s2=h2();function B2(D){if(typeof D!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(s2,"")}function l2(D){return D===161||D===164||D===167||D===168||D===170||D===173||D===174||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||D===198||D===208||D===215||D===216||D>=222&&D<=225||D===230||D>=232&&D<=234||D===236||D===237||D===240||D===242||D===243||D>=247&&D<=250||D===252||D===254||D===257||D===273||D===275||D===283||D===294||D===295||D===299||D>=305&&D<=307||D===312||D>=319&&D<=322||D===324||D>=328&&D<=331||D===333||D===338||D===339||D===358||D===359||D===363||D===462||D===464||D===466||D===468||D===470||D===472||D===474||D===476||D===593||D===609||D===708||D===711||D>=713&&D<=715||D===717||D===720||D>=728&&D<=731||D===733||D===735||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||D===1025||D>=1040&&D<=1103||D===1105||D===8208||D>=8211&&D<=8214||D===8216||D===8217||D===8220||D===8221||D>=8224&&D<=8226||D>=8228&&D<=8231||D===8240||D===8242||D===8243||D===8245||D===8251||D===8254||D===8308||D===8319||D>=8321&&D<=8324||D===8364||D===8451||D===8453||D===8457||D===8467||D===8470||D===8481||D===8482||D===8486||D===8491||D===8531||D===8532||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||D===8585||D>=8592&&D<=8601||D===8632||D===8633||D===8658||D===8660||D===8679||D===8704||D===8706||D===8707||D===8711||D===8712||D===8715||D===8719||D===8721||D===8725||D===8730||D>=8733&&D<=8736||D===8739||D===8741||D>=8743&&D<=8748||D===8750||D>=8756&&D<=8759||D===8764||D===8765||D===8776||D===8780||D===8786||D===8800||D===8801||D>=8804&&D<=8807||D===8810||D===8811||D===8814||D===8815||D===8834||D===8835||D===8838||D===8839||D===8853||D===8857||D===8869||D===8895||D===8978||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||D===9632||D===9633||D>=9635&&D<=9641||D===9650||D===9651||D===9654||D===9655||D===9660||D===9661||D===9664||D===9665||D>=9670&&D<=9672||D===9675||D>=9678&&D<=9681||D>=9698&&D<=9701||D===9711||D===9733||D===9734||D===9737||D===9742||D===9743||D===9756||D===9758||D===9792||D===9794||D===9824||D===9825||D>=9827&&D<=9829||D>=9831&&D<=9834||D===9836||D===9837||D===9839||D===9886||D===9887||D===9919||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||D===9955||D===9960||D===9961||D>=9963&&D<=9969||D===9972||D>=9974&&D<=9977||D===9979||D===9980||D===9982||D===9983||D===10045||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||D===65533||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||D===127375||D===127376||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}function c2(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}function f2(D){return D>=4352&&D<=4447||D===8986||D===8987||D===9001||D===9002||D>=9193&&D<=9196||D===9200||D===9203||D===9725||D===9726||D===9748||D===9749||D>=9776&&D<=9783||D>=9800&&D<=9811||D===9855||D>=9866&&D<=9871||D===9875||D===9889||D===9898||D===9899||D===9917||D===9918||D===9924||D===9925||D===9934||D===9940||D===9962||D===9970||D===9971||D===9973||D===9978||D===9981||D===9989||D===9994||D===9995||D===10024||D===10060||D===10062||D>=10067&&D<=10069||D===10071||D>=10133&&D<=10135||D===10160||D===10175||D===11035||D===11036||D===11088||D===11093||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12773||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||D===94192||D===94193||D>=94208&&D<=100343||D>=100352&&D<=101589||D>=101631&&D<=101640||D>=110576&&D<=110579||D>=110581&&D<=110587||D===110589||D===110590||D>=110592&&D<=110882||D===110898||D>=110928&&D<=110930||D===110933||D>=110948&&D<=110951||D>=110960&&D<=111355||D>=119552&&D<=119638||D>=119648&&D<=119670||D===126980||D===127183||D===127374||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D===127568||D===127569||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||D===127988||D>=127992&&D<=128062||D===128064||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||D===128378||D===128405||D===128406||D===128420||D>=128507&&D<=128591||D>=128640&&D<=128709||D===128716||D>=128720&&D<=128722||D>=128725&&D<=128727||D>=128732&&D<=128735||D===128747||D===128748||D>=128756&&D<=128764||D>=128992&&D<=129003||D===129008||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129673||D>=129679&&D<=129734||D>=129742&&D<=129756||D>=129759&&D<=129769||D>=129776&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}function o2(D){if(!Number.isSafeInteger(D))throw TypeError(`Expected a code point, got \`${typeof D}\`.`)}function $2(D,{ambiguousAsWide:t=!1}={}){if(o2(D),c2(D)||f2(D)||t&&l2(D))return 2;return 1}var A2=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g},b2=globalThis.Intl?.Segmenter?new Intl.Segmenter:{segment:(D)=>D.split("")},a2=/^\p{Default_Ignorable_Code_Point}$/u;function p2(D,t={}){if(typeof D!=="string"||D.length===0)return 0;let{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:e=!1}=t;if(!e)D=B2(D);if(D.length===0)return 0;let i=0,n={ambiguousAsWide:!F};for(let{segment:u}of b2.segment(D)){let r=u.codePointAt(0);if(r<=31||r>=127&&r<=159)continue;if(r>=8203&&r<=8207||r===65279)continue;if(r>=768&&r<=879||r>=6832&&r<=6911||r>=7616&&r<=7679||r>=8400&&r<=8447||r>=65056&&r<=65071)continue;if(r>=55296&&r<=57343)continue;if(r>=65024&&r<=65039)continue;if(a2.test(u))continue;if(A2().test(u)){i+=2;continue}i+=$2(r,n)}return i}function v2(){let{env:D}=hu,{TERM:t,TERM_PROGRAM:F}=D;if(hu.platform!=="win32")return t!=="linux";return Boolean(D.WT_SESSION)||Boolean(D.TERMINUS_SUBLIME)||D.ConEmuTask==="{cmd::Cmder}"||F==="Terminus-Sublime"||F==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||D.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var w2={info:"cyan",fail:"red",success:"green",ready:"green",start:"magenta"},m2={0:"red",1:"yellow"},y2=v2(),k=(D,t)=>y2?D:t,Bu={error:k("✖","×"),fatal:k("✖","×"),ready:k("✔","√"),warn:k("⚠","‼"),info:k("ℹ","i"),success:k("✔","√"),debug:k("⚙","D"),trace:k("→","→"),fail:k("✖","×"),start:k("◐","o"),log:""};function lu(D){if(typeof Intl!=="object"||!Intl.Segmenter)return I(D).length;return p2(D)}class ou extends U{formatStack(D,t,F){let e=" ".repeat((F?.errorLevel||0)+1);return`
|
|
67
|
+
${e}`+hD(D,t).map((i)=>" "+i.replace(/^at +/,(n)=>w.gray(n)).replace(/\((.+)\)/,(n,u)=>`(${w.cyan(u)})`)).join(`
|
|
68
|
+
${e}`)}formatType(D,t,F){let e=w2[D.type]||m2[D.level]||"gray";if(t)return S2(e)(w.black(` ${D.type.toUpperCase()} `));let i=typeof Bu[D.type]==="string"?Bu[D.type]:D.icon||D.type;return i?d2(e)(i):""}formatLogObj(D,t){let[F,...e]=this.formatArgs(D.args,t).split(`
|
|
69
|
+
`);if(D.type==="box")return RD(O(F+(e.length>0?`
|
|
70
|
+
`+e.join(`
|
|
71
|
+
`):"")),{title:D.title?O(D.title):void 0,style:D.style});let i=this.formatDate(D.date,t),n=i&&w.gray(i),u=D.badge??D.level<2,r=this.formatType(D,u,t),C=D.tag?w.gray(D.tag):"",h,B=this.filterAndJoin([r,O(F)]),l=this.filterAndJoin(t.columns?[C,n]:[C]),$=(t.columns||0)-lu(B)-lu(l)-2;if(h=$>0&&(t.columns||0)>=80?B+" ".repeat($)+l:(l?`${w.gray(`[${l}]`)} `:"")+B,h+=O(e.length>0?`
|
|
72
|
+
`+e.join(`
|
|
73
|
+
`):""),D.type==="trace"){let s=Error("Trace: "+D.message);h+=this.formatStack(s.stack||"",s.message)}return u?`
|
|
74
|
+
`+h+`
|
|
75
|
+
`:h}}function O(D){return D.replace(/`([^`]+)`/gm,(t,F)=>w.cyan(F)).replace(/\s+_([^_]+)_\s+/gm,(t,F)=>` ${w.underline(F)} `)}function d2(D="white"){return w[D]||w.white}function S2(D="bgWhite"){return w[`bg${D[0].toUpperCase()}${D.slice(1)}`]||w.bgWhite}function pD(D={}){let t=_2();if(process.env.CONSOLA_LEVEL)t=Number.parseInt(process.env.CONSOLA_LEVEL)??t;return TD({level:t,defaults:{level:t},stdout:process.stdout,stderr:process.stderr,prompt:(...e)=>Promise.resolve().then(() => (Eu(),nu)).then((i)=>i.prompt(...e)),reporters:D.reporters||[D.fancy??!(bD||aD)?new ou:new U],...D})}function _2(){if(jt)return v.debug;if(aD)return v.warn;return v.info}var L2=pD();var $u=pD({defaults:{level:3,tag:"bento"}}),Au=(D)=>D?$u.withTag(D):$u;var M2=Au(),bu={meta:{name:"init",description:"create a new bento project"},args:{},run({args:D}){M2.info(D)}};var T2=yD({meta:{name:"bento",version:_D},subCommands:{init:bu}});SD(T2);
|