@negoziator/ai-commit 1.2.139 → 1.2.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +34 -34
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var cn=Object.defineProperty;var s=(u,D)=>cn(u,"name",{value:D,configurable:!0});var uu,Du,eu;import Lu from"tty";import{Buffer as ln}from"node:buffer";import z from"node:path";import De,{ChildProcess as Fn}from"node:child_process";import y,{stdin as ee,stdout as te}from"node:process";import Cn from"child_process";import q from"path";import Gu from"fs";import{fileURLToPath as ne}from"node:url";import fn,{constants as re}from"node:os";import oe from"assert";import se from"events";import{createWriteStream as dn,createReadStream as En}from"node:fs";import pn from"buffer";import Wu from"stream";import ie from"util";import{debuglog as hn}from"node:util";import*as Eu from"node:readline";import ae from"node:readline";import{WriteStream as mn}from"node:tty";import T from"fs/promises";import ce from"os";import gn from"https";import Bn from"net";import bn from"tls";import yn,{fileURLToPath as An,pathToFileURL as wn}from"url";const $n="known-flag",vn="unknown-flag",xn="argument",{stringify:tu}=JSON,Sn=/\B([A-Z])/g,On=s(u=>u.replace(Sn,"-$1").toLowerCase(),"v$2"),{hasOwnProperty:Tn}=Object.prototype,nu=s((u,D)=>Tn.call(u,D),"w$3"),In=s(u=>Array.isArray(u),"L$3"),le=s(u=>typeof u=="function"?[u,!1]:In(u)?[u[0],!0]:le(u.type),"b$4"),Pn=s((u,D)=>u===Boolean?D!=="false":D,"d$3"),kn=s((u,D)=>typeof D=="boolean"?D:u===Number&&D===""?Number.NaN:u(D),"m$2"),_n=/[\s.:=]/,Rn=s(u=>{const D=`Flag name ${tu(u)}`;if(u.length===0)throw new Error(`${D} cannot be empty`);if(u.length===1)throw new Error(`${D} must be longer than a character`);const e=u.match(_n);if(e)throw new Error(`${D} cannot contain ${tu(e?.[0])}`)},"B"),Mn=s(u=>{const D={},e=s((n,r)=>{if(nu(D,n))throw new Error(`Duplicate flags named ${tu(n)}`);D[n]=r},"r");for(const n in u){if(!nu(u,n))continue;Rn(n);const r=u[n],o=[[],...le(r),r];e(n,o);const t=On(n);if(n!==t&&e(t,o),"alias"in r&&typeof r.alias=="string"){const{alias:i}=r,a=`Flag alias ${tu(i)} for flag ${tu(n)}`;if(i.length===0)throw new Error(`${a} cannot be empty`);if(i.length>1)throw new Error(`${a} must be a single character`);e(i,o)}}return D},"K$2"),jn=s((u,D)=>{const e={};for(const n in u){if(!nu(u,n))continue;const[r,,o,t]=D[n];if(r.length===0&&"default"in t){let{default:i}=t;typeof i=="function"&&(i=i()),e[n]=i}else e[n]=o?r:r.pop()}return e},"_$3"),pu="--",Nn=/[.:=]/,Ln=/^-{1,2}\w/,Gn=s(u=>{if(!Ln.test(u))return;const D=!u.startsWith(pu);let e=u.slice(D?1:2),n;const r=e.match(Nn);if(r){const{index:o}=r;n=e.slice(o+1),e=e.slice(0,o)}return[e,n,D]},"N$1"),Wn=s((u,{onFlag:D,onArgument:e})=>{let n;const r=s((o,t)=>{if(typeof n!="function")return!0;n(o,t),n=void 0},"o");for(let o=0;o<u.length;o+=1){const t=u[o];if(t===pu){r();const a=u.slice(o+1);e?.(a,[o],!0);break}const i=Gn(t);if(i){if(r(),!D)continue;const[a,l,C]=i;if(C)for(let c=0;c<a.length;c+=1){r();const F=c===a.length-1;n=D(a[c],F?l:void 0,[o,c+1,F])}else n=D(a,l,[o])}else r(t,[o])&&e?.([t],[o])}r()},"$$1"),Un=s((u,D)=>{for(const[e,n,r]of D.reverse()){if(n){const o=u[e];let t=o.slice(0,n);if(r||(t+=o.slice(n+1)),t!=="-"){u[e]=t;continue}}u.splice(e,1)}},"E$1"),zn=s((u,D=process.argv.slice(2),{ignore:e}={})=>{const n=[],r=Mn(u),o={},t=[];return t[pu]=[],Wn(D,{onFlag(i,a,l){const C=nu(r,i);if(!e?.(C?$n:vn,i,a)){if(C){const[c,F]=r[i],f=Pn(F,a),d=s((E,h)=>{n.push(l),h&&n.push(h),c.push(kn(F,E||""))},"p");return f===void 0?d:d(f)}nu(o,i)||(o[i]=[]),o[i].push(a===void 0?!0:a),n.push(l)}},onArgument(i,a,l){e?.(xn,D[a[0]])||(t.push(...i),l?(t[pu]=i,D.splice(a[0])):n.push(a))}}),Un(D,n),{flags:jn(u,r),unknownFlags:o,_:t}},"U$2");var qn=Object.create,hu=Object.defineProperty,Hn=Object.defineProperties,Yn=Object.getOwnPropertyDescriptor,Kn=Object.getOwnPropertyDescriptors,Vn=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols,Jn=Object.getPrototypeOf,Ce=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,fe=s((u,D,e)=>D in u?hu(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,"W$2"),mu=s((u,D)=>{for(var e in D||(D={}))Ce.call(D,e)&&fe(u,e,D[e]);if(Fe)for(var e of Fe(D))Zn.call(D,e)&&fe(u,e,D[e]);return u},"p$1"),Uu=s((u,D)=>Hn(u,Kn(D)),"c"),Xn=s(u=>hu(u,"__esModule",{value:!0}),"nD$1"),Qn=s((u,D)=>()=>(u&&(D=u(u=0)),D),"rD$1"),ur=s((u,D)=>()=>(D||u((D={exports:{}}).exports,D),D.exports),"iD$1"),Dr=s((u,D,e,n)=>{if(D&&typeof D=="object"||typeof D=="function")for(let r of Vn(D))!Ce.call(u,r)&&r!=="default"&&hu(u,r,{get:s(()=>D[r],"get"),enumerable:!(n=Yn(D,r))||n.enumerable});return u},"oD$1"),er=s((u,D)=>Dr(Xn(hu(u!=null?qn(Jn(u)):{},"default",{value:u,enumerable:!0})),u),"BD"),O=Qn(()=>{}),tr=ur((u,D)=>{O(),D.exports=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}});O(),O(),O();var nr=s(u=>{var D,e,n;let r=(D=process.stdout.columns)!=null?D:Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(r)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:r}:{columns:(e=u.columns)!=null?e:[],stdoutColumns:(n=u.stdoutColumns)!=null?n:r}},"v$1");O(),O(),O(),O(),O();function rr({onlyFirst:u=!1}={}){let 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")}s(rr,"w$2");function de(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(rr(),"")}s(de,"d$2"),O();function or(u){return Number.isInteger(u)?u>=4352&&(u<=4447||u===9001||u===9002||11904<=u&&u<=12871&&u!==12351||12880<=u&&u<=19903||19968<=u&&u<=42182||43360<=u&&u<=43388||44032<=u&&u<=55203||63744<=u&&u<=64255||65040<=u&&u<=65049||65072<=u&&u<=65131||65281<=u&&u<=65376||65504<=u&&u<=65510||110592<=u&&u<=110593||127488<=u&&u<=127569||131072<=u&&u<=262141):!1}s(or,"y$3");var sr=er(tr());function N(u){if(typeof u!="string"||u.length===0||(u=de(u),u.length===0))return 0;u=u.replace((0,sr.default)()," ");let D=0;for(let e=0;e<u.length;e++){let n=u.codePointAt(e);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&e++,D+=or(n)?2:1)}return D}s(N,"g$1");var Ee=s(u=>Math.max(...u.split(`
|
|
2
|
+
var cn=Object.defineProperty;var s=(u,D)=>cn(u,"name",{value:D,configurable:!0});var uu,Du,eu;import Lu from"tty";import{Buffer as ln}from"node:buffer";import z from"node:path";import De,{ChildProcess as Fn}from"node:child_process";import y,{stdin as ee,stdout as te}from"node:process";import Cn from"child_process";import q from"path";import Gu from"fs";import{fileURLToPath as ne}from"node:url";import fn,{constants as re}from"node:os";import oe from"assert";import se from"events";import{createWriteStream as dn,createReadStream as En}from"node:fs";import pn from"buffer";import Wu from"stream";import ie from"util";import{debuglog as hn}from"node:util";import*as Eu from"node:readline";import ae from"node:readline";import{WriteStream as mn}from"node:tty";import T from"fs/promises";import ce from"os";import gn from"https";import Bn from"net";import bn from"tls";import yn,{fileURLToPath as An,pathToFileURL as wn}from"url";const $n="known-flag",vn="unknown-flag",xn="argument",{stringify:tu}=JSON,Sn=/\B([A-Z])/g,On=s(u=>u.replace(Sn,"-$1").toLowerCase(),"v$2"),{hasOwnProperty:Tn}=Object.prototype,nu=s((u,D)=>Tn.call(u,D),"w$3"),In=s(u=>Array.isArray(u),"L$3"),le=s(u=>typeof u=="function"?[u,!1]:In(u)?[u[0],!0]:le(u.type),"b$4"),Pn=s((u,D)=>u===Boolean?D!=="false":D,"d$4"),kn=s((u,D)=>typeof D=="boolean"?D:u===Number&&D===""?Number.NaN:u(D),"m$1"),_n=/[\s.:=]/,Rn=s(u=>{const D=`Flag name ${tu(u)}`;if(u.length===0)throw new Error(`${D} cannot be empty`);if(u.length===1)throw new Error(`${D} must be longer than a character`);const e=u.match(_n);if(e)throw new Error(`${D} cannot contain ${tu(e?.[0])}`)},"B"),Mn=s(u=>{const D={},e=s((n,r)=>{if(nu(D,n))throw new Error(`Duplicate flags named ${tu(n)}`);D[n]=r},"r");for(const n in u){if(!nu(u,n))continue;Rn(n);const r=u[n],o=[[],...le(r),r];e(n,o);const t=On(n);if(n!==t&&e(t,o),"alias"in r&&typeof r.alias=="string"){const{alias:i}=r,a=`Flag alias ${tu(i)} for flag ${tu(n)}`;if(i.length===0)throw new Error(`${a} cannot be empty`);if(i.length>1)throw new Error(`${a} must be a single character`);e(i,o)}}return D},"K$2"),jn=s((u,D)=>{const e={};for(const n in u){if(!nu(u,n))continue;const[r,,o,t]=D[n];if(r.length===0&&"default"in t){let{default:i}=t;typeof i=="function"&&(i=i()),e[n]=i}else e[n]=o?r:r.pop()}return e},"_$3"),pu="--",Nn=/[.:=]/,Ln=/^-{1,2}\w/,Gn=s(u=>{if(!Ln.test(u))return;const D=!u.startsWith(pu);let e=u.slice(D?1:2),n;const r=e.match(Nn);if(r){const{index:o}=r;n=e.slice(o+1),e=e.slice(0,o)}return[e,n,D]},"N$1"),Wn=s((u,{onFlag:D,onArgument:e})=>{let n;const r=s((o,t)=>{if(typeof n!="function")return!0;n(o,t),n=void 0},"o");for(let o=0;o<u.length;o+=1){const t=u[o];if(t===pu){r();const a=u.slice(o+1);e?.(a,[o],!0);break}const i=Gn(t);if(i){if(r(),!D)continue;const[a,l,C]=i;if(C)for(let c=0;c<a.length;c+=1){r();const F=c===a.length-1;n=D(a[c],F?l:void 0,[o,c+1,F])}else n=D(a,l,[o])}else r(t,[o])&&e?.([t],[o])}r()},"$$1"),Un=s((u,D)=>{for(const[e,n,r]of D.reverse()){if(n){const o=u[e];let t=o.slice(0,n);if(r||(t+=o.slice(n+1)),t!=="-"){u[e]=t;continue}}u.splice(e,1)}},"E$1"),zn=s((u,D=process.argv.slice(2),{ignore:e}={})=>{const n=[],r=Mn(u),o={},t=[];return t[pu]=[],Wn(D,{onFlag(i,a,l){const C=nu(r,i);if(!e?.(C?$n:vn,i,a)){if(C){const[c,F]=r[i],f=Pn(F,a),d=s((E,h)=>{n.push(l),h&&n.push(h),c.push(kn(F,E||""))},"p");return f===void 0?d:d(f)}nu(o,i)||(o[i]=[]),o[i].push(a===void 0?!0:a),n.push(l)}},onArgument(i,a,l){e?.(xn,D[a[0]])||(t.push(...i),l?(t[pu]=i,D.splice(a[0])):n.push(a))}}),Un(D,n),{flags:jn(u,r),unknownFlags:o,_:t}},"U$2");var qn=Object.create,hu=Object.defineProperty,Hn=Object.defineProperties,Yn=Object.getOwnPropertyDescriptor,Kn=Object.getOwnPropertyDescriptors,Vn=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols,Jn=Object.getPrototypeOf,Ce=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,fe=s((u,D,e)=>D in u?hu(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,"W$2"),mu=s((u,D)=>{for(var e in D||(D={}))Ce.call(D,e)&&fe(u,e,D[e]);if(Fe)for(var e of Fe(D))Zn.call(D,e)&&fe(u,e,D[e]);return u},"p$1"),Uu=s((u,D)=>Hn(u,Kn(D)),"c"),Xn=s(u=>hu(u,"__esModule",{value:!0}),"nD$1"),Qn=s((u,D)=>()=>(u&&(D=u(u=0)),D),"rD$1"),ur=s((u,D)=>()=>(D||u((D={exports:{}}).exports,D),D.exports),"iD$1"),Dr=s((u,D,e,n)=>{if(D&&typeof D=="object"||typeof D=="function")for(let r of Vn(D))!Ce.call(u,r)&&r!=="default"&&hu(u,r,{get:s(()=>D[r],"get"),enumerable:!(n=Yn(D,r))||n.enumerable});return u},"oD$1"),er=s((u,D)=>Dr(Xn(hu(u!=null?qn(Jn(u)):{},"default",{value:u,enumerable:!0})),u),"BD$1"),O=Qn(()=>{}),tr=ur((u,D)=>{O(),D.exports=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}});O(),O(),O();var nr=s(u=>{var D,e,n;let r=(D=process.stdout.columns)!=null?D:Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(r)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:r}:{columns:(e=u.columns)!=null?e:[],stdoutColumns:(n=u.stdoutColumns)!=null?n:r}},"v$1");O(),O(),O(),O(),O();function rr({onlyFirst:u=!1}={}){let 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")}s(rr,"w$2");function de(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(rr(),"")}s(de,"d$3"),O();function or(u){return Number.isInteger(u)?u>=4352&&(u<=4447||u===9001||u===9002||11904<=u&&u<=12871&&u!==12351||12880<=u&&u<=19903||19968<=u&&u<=42182||43360<=u&&u<=43388||44032<=u&&u<=55203||63744<=u&&u<=64255||65040<=u&&u<=65049||65072<=u&&u<=65131||65281<=u&&u<=65376||65504<=u&&u<=65510||110592<=u&&u<=110593||127488<=u&&u<=127569||131072<=u&&u<=262141):!1}s(or,"y$3");var sr=er(tr());function N(u){if(typeof u!="string"||u.length===0||(u=de(u),u.length===0))return 0;u=u.replace((0,sr.default)()," ");let D=0;for(let e=0;e<u.length;e++){let n=u.codePointAt(e);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&e++,D+=or(n)?2:1)}return D}s(N,"g$1");var Ee=s(u=>Math.max(...u.split(`
|
|
3
3
|
`).map(N)),"b$3"),ir=s(u=>{let D=[];for(let e of u){let{length:n}=e,r=n-D.length;for(let o=0;o<r;o+=1)D.push(0);for(let o=0;o<n;o+=1){let t=Ee(e[o]);t>D[o]&&(D[o]=t)}}return D},"k$1");O();var pe=/^\d+%$/,he={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},ar=s((u,D)=>{var e;let n=[];for(let r=0;r<u.length;r+=1){let o=(e=D[r])!=null?e:"auto";if(typeof o=="number"||o==="auto"||o==="content-width"||typeof o=="string"&&pe.test(o)){n.push(Uu(mu({},he),{width:o,contentWidth:u[r]}));continue}if(o&&typeof o=="object"){let t=Uu(mu(mu({},he),o),{contentWidth:u[r]});t.horizontalPadding=t.paddingLeft+t.paddingRight,n.push(t);continue}throw new Error(`Invalid column width: ${JSON.stringify(o)}`)}return n},"sD$1");function cr(u,D){for(let e of u){let{width:n}=e;if(n==="content-width"&&(e.width=e.contentWidth),n==="auto"){let a=Math.min(20,e.contentWidth);e.width=a,e.autoOverflow=e.contentWidth-a}if(typeof n=="string"&&pe.test(n)){let a=Number.parseFloat(n.slice(0,-1))/100;e.width=Math.floor(D*a)-(e.paddingLeft+e.paddingRight)}let{horizontalPadding:r}=e,o=1,t=o+r;if(t>=D){let a=t-D,l=Math.ceil(e.paddingLeft/r*a),C=a-l;e.paddingLeft-=l,e.paddingRight-=C,e.horizontalPadding=e.paddingLeft+e.paddingRight}e.paddingLeftString=e.paddingLeft?" ".repeat(e.paddingLeft):"",e.paddingRightString=e.paddingRight?" ".repeat(e.paddingRight):"";let i=D-e.horizontalPadding;e.width=Math.max(Math.min(e.width,i),o)}}s(cr,"aD$1");var me=s(()=>Object.assign([],{columns:0}),"G$1");function lr(u,D){let e=[me()],[n]=e;for(let r of u){let o=r.width+r.horizontalPadding;n.columns+o>D&&(n=me(),e.push(n)),n.push(r),n.columns+=o}for(let r of e){let o=r.reduce((F,f)=>F+f.width+f.horizontalPadding,0),t=D-o;if(t===0)continue;let i=r.filter(F=>"autoOverflow"in F),a=i.filter(F=>F.autoOverflow>0),l=a.reduce((F,f)=>F+f.autoOverflow,0),C=Math.min(l,t);for(let F of a){let f=Math.floor(F.autoOverflow/l*C);F.width+=f,t-=f}let c=Math.floor(t/i.length);for(let F=0;F<i.length;F+=1){let f=i[F];F===i.length-1?f.width+=t:f.width+=c,t-=c}}return e}s(lr,"lD$1");function Fr(u,D,e){let n=ar(e,D);return cr(n,u),lr(n,u)}s(Fr,"Z$2"),O(),O(),O();var zu=10,ge=s((u=0)=>D=>`\x1B[${D+u}m`,"U$1"),Be=s((u=0)=>D=>`\x1B[${38+u};5;${D}m`,"V$2"),be=s((u=0)=>(D,e,n)=>`\x1B[${38+u};2;${D};${e};${n}m`,"Y");function Cr(){let u=new Map,D={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],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};D.color.gray=D.color.blackBright,D.bgColor.bgGray=D.bgColor.bgBlackBright,D.color.grey=D.color.blackBright,D.bgColor.bgGrey=D.bgColor.bgBlackBright;for(let[e,n]of Object.entries(D)){for(let[r,o]of Object.entries(n))D[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[r]=D[r],u.set(o[0],o[1]);Object.defineProperty(D,e,{value:n,enumerable:!1})}return Object.defineProperty(D,"codes",{value:u,enumerable:!1}),D.color.close="\x1B[39m",D.bgColor.close="\x1B[49m",D.color.ansi=ge(),D.color.ansi256=Be(),D.color.ansi16m=be(),D.bgColor.ansi=ge(zu),D.bgColor.ansi256=Be(zu),D.bgColor.ansi16m=be(zu),Object.defineProperties(D,{rgbToAnsi256:{value:s((e,n,r)=>e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5),"value"),enumerable:!1},hexToRgb:{value:s(e=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(e.toString(16));if(!n)return[0,0,0];let{colorString:r}=n.groups;r.length===3&&(r=r.split("").map(t=>t+t).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},"value"),enumerable:!1},hexToAnsi256:{value:s(e=>D.rgbToAnsi256(...D.hexToRgb(e)),"value"),enumerable:!1},ansi256ToAnsi:{value:s(e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let n,r,o;if(e>=232)n=((e-232)*10+8)/255,r=n,o=n;else{e-=16;let a=e%36;n=Math.floor(e/36)/5,r=Math.floor(a/6)/5,o=a%6/5}let t=Math.max(n,r,o)*2;if(t===0)return 30;let i=30+(Math.round(o)<<2|Math.round(r)<<1|Math.round(n));return t===2&&(i+=60),i},"value"),enumerable:!1},rgbToAnsi:{value:s((e,n,r)=>D.ansi256ToAnsi(D.rgbToAnsi256(e,n,r)),"value"),enumerable:!1},hexToAnsi:{value:s(e=>D.ansi256ToAnsi(D.hexToAnsi256(e)),"value"),enumerable:!1}}),D}s(Cr,"AD");var fr=Cr(),dr=fr,gu=new Set(["\x1B","\x9B"]),Er=39,qu="\x07",ye="[",pr="]",Ae="m",Hu=`${pr}8;;`,we=s(u=>`${gu.values().next().value}${ye}${u}${Ae}`,"J$2"),$e=s(u=>`${gu.values().next().value}${Hu}${u}${qu}`,"Q$1"),hr=s(u=>u.split(" ").map(D=>N(D)),"hD$1"),Yu=s((u,D,e)=>{let n=[...D],r=!1,o=!1,t=N(de(u[u.length-1]));for(let[i,a]of n.entries()){let l=N(a);if(t+l<=e?u[u.length-1]+=a:(u.push(a),t=0),gu.has(a)&&(r=!0,o=n.slice(i+1).join("").startsWith(Hu)),r){o?a===qu&&(r=!1,o=!1):a===Ae&&(r=!1);continue}t+=l,t===e&&i<n.length-1&&(u.push(""),t=0)}!t&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"S$3"),mr=s(u=>{let D=u.split(" "),e=D.length;for(;e>0&&!(N(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},"cD"),gr=s((u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let n="",r,o,t=hr(u),i=[""];for(let[l,C]of u.split(" ").entries()){e.trim!==!1&&(i[i.length-1]=i[i.length-1].trimStart());let c=N(i[i.length-1]);if(l!==0&&(c>=D&&(e.wordWrap===!1||e.trim===!1)&&(i.push(""),c=0),(c>0||e.trim===!1)&&(i[i.length-1]+=" ",c++)),e.hard&&t[l]>D){let F=D-c,f=1+Math.floor((t[l]-F-1)/D);Math.floor((t[l]-1)/D)<f&&i.push(""),Yu(i,C,D);continue}if(c+t[l]>D&&c>0&&t[l]>0){if(e.wordWrap===!1&&c<D){Yu(i,C,D);continue}i.push("")}if(c+t[l]>D&&e.wordWrap===!1){Yu(i,C,D);continue}i[i.length-1]+=C}e.trim!==!1&&(i=i.map(l=>mr(l)));let a=[...i.join(`
|
|
4
4
|
`)];for(let[l,C]of a.entries()){if(n+=C,gu.has(C)){let{groups:F}=new RegExp(`(?:\\${ye}(?<code>\\d+)m|\\${Hu}(?<uri>.*)${qu})`).exec(a.slice(l).join(""))||{groups:{}};if(F.code!==void 0){let f=Number.parseFloat(F.code);r=f===Er?void 0:f}else F.uri!==void 0&&(o=F.uri.length===0?void 0:F.uri)}let c=dr.codes.get(Number(r));a[l+1]===`
|
|
5
5
|
`?(o&&(n+=$e("")),r&&c&&(n+=we(c))):C===`
|
|
@@ -19,82 +19,82 @@ var cn=Object.defineProperty;var s=(u,D)=>cn(u,"name",{value:D,configurable:!0})
|
|
|
19
19
|
`:"")+(e?this.indentText({text:this.render(e),spaces:n}):"")}
|
|
20
20
|
`}table({tableData:D,tableOptions:e,tableBreakpoints:n}){return yr(D.map(r=>r.map(o=>this.render(o))),n?$r(n):e)}flagParameter(D){return D===Boolean?"":D===String?"<string>":D===Number?"<number>":Array.isArray(D)?this.flagParameter(D[0]):"<value>"}flagOperator(D){return" "}flagName(D){const{flag:e,flagFormatted:n,aliasesEnabled:r,aliasFormatted:o}=D;let t="";if(o?t+=`${o}, `:r&&(t+=" "),t+=n,"placeholder"in e&&typeof e.placeholder=="string")t+=`${this.flagOperator(D)}${e.placeholder}`;else{const i=this.flagParameter("type"in e?e.type:e);i&&(t+=`${this.flagOperator(D)}${i}`)}return t}flagDefault(D){return JSON.stringify(D)}flagDescription({flag:D}){let e="description"in D?D.description??"":"";if("default"in D){let{default:n}=D;typeof n=="function"&&(n=n()),n&&(e+=` (default: ${this.flagDefault(n)})`)}return e}render(D){if(typeof D=="string")return D;if(Array.isArray(D))return D.map(e=>this.render(e)).join(`
|
|
21
21
|
`);if("type"in D&&this[D.type]){const e=this[D.type];if(typeof e=="function")return e.call(this,D.data)}throw new Error(`Invalid node type: ${JSON.stringify(D)}`)}},s(uu,"M"),uu);const Ku=/^[\w.-]+$/,{stringify:_}=JSON,Gr=/[|\\{}()[\]^$+*?.]/;function Vu(u){const D=[];let e,n;for(const r of u){if(n)throw new Error(`Invalid parameter: Spread parameter ${_(n)} must be last`);const o=r[0],t=r[r.length-1];let i;if(o==="<"&&t===">"&&(i=!0,e))throw new Error(`Invalid parameter: Required parameter ${_(r)} cannot come after optional parameter ${_(e)}`);if(o==="["&&t==="]"&&(i=!1,e=r),i===void 0)throw new Error(`Invalid parameter: ${_(r)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let a=r.slice(1,-1);const l=a.slice(-3)==="...";l&&(n=r,a=a.slice(0,-3));const C=a.match(Gr);if(C)throw new Error(`Invalid parameter: ${_(r)}. Invalid character found ${_(C[0])}`);D.push({name:a,required:i,spread:l})}return D}s(Vu,"w$1");function Ju(u,D,e,n){for(let r=0;r<D.length;r+=1){const{name:o,required:t,spread:i}=D[r],a=vr(o);if(a in u)throw new Error(`Invalid parameter: ${_(o)} is used more than once.`);const l=i?e.slice(r):e[r];if(i&&(r=D.length),t&&(!l||i&&l.length===0))return console.error(`Error: Missing required parameter ${_(o)}
|
|
22
|
-
`),n(),process.exit(1);u[a]=l}}s(Ju,"b$2");function Wr(u){return u===void 0||u!==!1}s(Wr,"W$1");function Oe(u,D,e,n){const r={...D.flags},o=D.version;o&&(r.version={type:Boolean,description:"Show version"});const{help:t}=D,i=Wr(t);i&&!("help"in r)&&(r.help={type:Boolean,alias:"h",description:"Show help"});const a=zn(r,n,{ignore:D.ignoreArgv}),l=s(()=>{console.log(D.version)},"f");if(o&&a.flags.version===!0)return l(),process.exit(0);const C=new Lr,c=i&&t?.render?t.render:d=>C.render(d),F=s(d=>{const E=jr({...D,...d?{help:d}:{},flags:r});console.log(c(E,C))},"u");if(i&&a.flags.help===!0)return F(),process.exit(0);if(D.parameters){let{parameters:d}=D,E=a._;const h=d.indexOf("--"),m=d.slice(h+1)
|
|
22
|
+
`),n(),process.exit(1);u[a]=l}}s(Ju,"b$2");function Wr(u){return u===void 0||u!==!1}s(Wr,"W$1");function Oe(u,D,e,n){const r={...D.flags},o=D.version;o&&(r.version={type:Boolean,description:"Show version"});const{help:t}=D,i=Wr(t);i&&!("help"in r)&&(r.help={type:Boolean,alias:"h",description:"Show help"});const a=zn(r,n,{ignore:D.ignoreArgv}),l=s(()=>{console.log(D.version)},"f");if(o&&a.flags.version===!0)return l(),process.exit(0);const C=new Lr,c=i&&t?.render?t.render:d=>C.render(d),F=s(d=>{const E=jr({...D,...d?{help:d}:{},flags:r});console.log(c(E,C))},"u");if(i&&a.flags.help===!0)return F(),process.exit(0);if(D.parameters){let{parameters:d}=D,E=a._;const h=d.indexOf("--"),m=d.slice(h+1),$=Object.create(null);if(h>-1&&m.length>0){d=d.slice(0,h);const P=a._["--"];E=E.slice(0,-P.length||void 0),Ju($,Vu(d),E,F),Ju($,Vu(m),P,F)}else Ju($,Vu(d),E,F);Object.assign(a._,$)}const f={...a,showVersion:l,showHelp:F};return typeof e=="function"&&e(f),{command:u,...f}}s(Oe,"x$2");function Ur(u,D){const e=new Map;for(const n of D){const r=[n.options.name],{alias:o}=n.options;o&&(Array.isArray(o)?r.push(...o):r.push(o));for(const t of r){if(e.has(t))throw new Error(`Duplicate command name found: ${_(t)}`);e.set(t,n)}}return e.get(u)}s(Ur,"z$1");function zr(u,D,e=process.argv.slice(2)){if(!u)throw new Error("Options is required");if("name"in u&&(!u.name||!Ku.test(u.name)))throw new Error(`Invalid script name: ${_(u.name)}`);const n=e[0];if(u.commands&&Ku.test(n)){const r=Ur(n,u.commands);if(r)return Oe(r.options.name,{...r.options,parent:u},r.callback,e.slice(1))}return Oe(void 0,u,D,e)}s(zr,"Z$1");function Te(u,D){if(!u)throw new Error("Command options are required");const{name:e}=u;if(u.name===void 0)throw new Error("Command name is required");if(!Ku.test(e))throw new Error(`Invalid command name ${JSON.stringify(e)}. Command names must be one word.`);return{options:u,callback:D}}s(Te,"G");var Ie="1.2.140",qr="Writes your git commit messages for you with AI",A=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function H(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}s(H,"getDefaultExportFromCjs");var Y={exports:{}},Zu,Pe;function Hr(){if(Pe)return Zu;Pe=1,Zu=n,n.sync=r;var u=Gu;function D(o,t){var i=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!i||(i=i.split(";"),i.indexOf("")!==-1))return!0;for(var a=0;a<i.length;a++){var l=i[a].toLowerCase();if(l&&o.substr(-l.length).toLowerCase()===l)return!0}return!1}s(D,"checkPathExt");function e(o,t,i){return!o.isSymbolicLink()&&!o.isFile()?!1:D(t,i)}s(e,"checkStat");function n(o,t,i){u.stat(o,function(a,l){i(a,a?!1:e(l,o,t))})}s(n,"isexe");function r(o,t){return e(u.statSync(o),o,t)}return s(r,"sync"),Zu}s(Hr,"requireWindows");var Xu,ke;function Yr(){if(ke)return Xu;ke=1,Xu=D,D.sync=e;var u=Gu;function D(o,t,i){u.stat(o,function(a,l){i(a,a?!1:n(l,t))})}s(D,"isexe");function e(o,t){return n(u.statSync(o),t)}s(e,"sync");function n(o,t){return o.isFile()&&r(o,t)}s(n,"checkStat");function r(o,t){var i=o.mode,a=o.uid,l=o.gid,C=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),c=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),F=parseInt("100",8),f=parseInt("010",8),d=parseInt("001",8),E=F|f,h=i&d||i&f&&l===c||i&F&&a===C||i&E&&C===0;return h}return s(r,"checkMode"),Xu}s(Yr,"requireMode");var Bu;process.platform==="win32"||A.TESTING_WINDOWS?Bu=Hr():Bu=Yr();var Kr=Qu;Qu.sync=Vr;function Qu(u,D,e){if(typeof D=="function"&&(e=D,D={}),!e){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,r){Qu(u,D||{},function(o,t){o?r(o):n(t)})})}Bu(u,D||{},function(n,r){n&&(n.code==="EACCES"||D&&D.ignoreErrors)&&(n=null,r=!1),e(n,r)})}s(Qu,"isexe$1");function Vr(u,D){try{return Bu.sync(u,D||{})}catch(e){if(D&&D.ignoreErrors||e.code==="EACCES")return!1;throw e}}s(Vr,"sync");const K=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",_e=q,Jr=K?";":":",Re=Kr,Me=s(u=>Object.assign(new Error(`not found: ${u}`),{code:"ENOENT"}),"getNotFoundError"),je=s((u,D)=>{const e=D.colon||Jr,n=u.match(/\//)||K&&u.match(/\\/)?[""]:[...K?[process.cwd()]:[],...(D.path||process.env.PATH||"").split(e)],r=K?D.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=K?r.split(e):[""];return K&&u.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:r}},"getPathInfo"),Ne=s((u,D,e)=>{typeof D=="function"&&(e=D,D={}),D||(D={});const{pathEnv:n,pathExt:r,pathExtExe:o}=je(u,D),t=[],i=s(l=>new Promise((C,c)=>{if(l===n.length)return D.all&&t.length?C(t):c(Me(u));const F=n[l],f=/^".*"$/.test(F)?F.slice(1,-1):F,d=_e.join(f,u),E=!f&&/^\.[\\\/]/.test(u)?u.slice(0,2)+d:d;C(a(E,l,0))}),"step"),a=s((l,C,c)=>new Promise((F,f)=>{if(c===r.length)return F(i(C+1));const d=r[c];Re(l+d,{pathExt:o},(E,h)=>{if(!E&&h)if(D.all)t.push(l+d);else return F(l+d);return F(a(l,C,c+1))})}),"subStep");return e?i(0).then(l=>e(null,l),e):i(0)},"which$1"),Zr=s((u,D)=>{D=D||{};const{pathEnv:e,pathExt:n,pathExtExe:r}=je(u,D),o=[];for(let t=0;t<e.length;t++){const i=e[t],a=/^".*"$/.test(i)?i.slice(1,-1):i,l=_e.join(a,u),C=!a&&/^\.[\\\/]/.test(u)?u.slice(0,2)+l:l;for(let c=0;c<n.length;c++){const F=C+n[c];try{if(Re.sync(F,{pathExt:r}))if(D.all)o.push(F);else return F}catch{}}}if(D.all&&o.length)return o;if(D.nothrow)return null;throw Me(u)},"whichSync");var Xr=Ne;Ne.sync=Zr;var uD={exports:{}};const Le=s((u={})=>{const D=u.env||process.env;return(u.platform||process.platform)!=="win32"?"PATH":Object.keys(D).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"},"pathKey$1");uD.exports=Le,uD.exports.default=Le;var Qr=uD.exports;const Ge=q,uo=Xr,Do=Qr;function We(u,D){const e=u.options.env||process.env,n=process.cwd(),r=u.options.cwd!=null,o=r&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(u.options.cwd)}catch{}let t;try{t=uo.sync(u.command,{path:e[Do({env:e})],pathExt:D?Ge.delimiter:void 0})}catch{}finally{o&&process.chdir(n)}return t&&(t=Ge.resolve(r?u.options.cwd:"",t)),t}s(We,"resolveCommandAttempt");function eo(u){return We(u)||We(u,!0)}s(eo,"resolveCommand$1");var to=eo,DD={};const eD=/([()\][%!^"`<>&|;, *?])/g;function no(u){return u=u.replace(eD,"^$1"),u}s(no,"escapeCommand");function ro(u,D){return u=`${u}`,u=u.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),u=u.replace(/(?=(\\+?)?)\1$/,"$1$1"),u=`"${u}"`,u=u.replace(eD,"^$1"),D&&(u=u.replace(eD,"^$1")),u}s(ro,"escapeArgument"),DD.command=no,DD.argument=ro;var oo=/^#!(.*)/;const so=oo;var io=s((u="")=>{const D=u.match(so);if(!D)return null;const[e,n]=D[0].replace(/#! ?/,"").split(" "),r=e.split("/").pop();return r==="env"?n:n?`${r} ${n}`:r},"shebangCommand$1");const tD=Gu,ao=io;function co(u){const e=Buffer.alloc(150);let n;try{n=tD.openSync(u,"r"),tD.readSync(n,e,0,150,0),tD.closeSync(n)}catch{}return ao(e.toString())}s(co,"readShebang$1");var lo=co;const Fo=q,Ue=to,ze=DD,Co=lo,fo=process.platform==="win32",Eo=/\.(?:com|exe)$/i,po=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function ho(u){u.file=Ue(u);const D=u.file&&Co(u.file);return D?(u.args.unshift(u.file),u.command=D,Ue(u)):u.file}s(ho,"detectShebang");function mo(u){if(!fo)return u;const D=ho(u),e=!Eo.test(D);if(u.options.forceShell||e){const n=po.test(D);u.command=Fo.normalize(u.command),u.command=ze.command(u.command),u.args=u.args.map(o=>ze.argument(o,n));const r=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${r}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}s(mo,"parseNonShell");function go(u,D,e){D&&!Array.isArray(D)&&(e=D,D=null),D=D?D.slice(0):[],e=Object.assign({},e);const n={command:u,args:D,options:e,file:void 0,original:{command:u,args:D}};return e.shell?n:mo(n)}s(go,"parse$1");var Bo=go;const nD=process.platform==="win32";function rD(u,D){return Object.assign(new Error(`${D} ${u.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${D} ${u.command}`,path:u.command,spawnargs:u.args})}s(rD,"notFoundError");function bo(u,D){if(!nD)return;const e=u.emit;u.emit=function(n,r){if(n==="exit"){const o=qe(r,D);if(o)return e.call(u,"error",o)}return e.apply(u,arguments)}}s(bo,"hookChildProcess");function qe(u,D){return nD&&u===1&&!D.file?rD(D.original,"spawn"):null}s(qe,"verifyENOENT");function yo(u,D){return nD&&u===1&&!D.file?rD(D.original,"spawnSync"):null}s(yo,"verifyENOENTSync");var Ao={hookChildProcess:bo,verifyENOENT:qe,verifyENOENTSync:yo,notFoundError:rD};const He=Cn,oD=Bo,sD=Ao;function Ye(u,D,e){const n=oD(u,D,e),r=He.spawn(n.command,n.args,n.options);return sD.hookChildProcess(r,n),r}s(Ye,"spawn");function wo(u,D,e){const n=oD(u,D,e),r=He.spawnSync(n.command,n.args,n.options);return r.error=r.error||sD.verifyENOENTSync(r.status,n),r}s(wo,"spawnSync"),Y.exports=Ye,Y.exports.spawn=Ye,Y.exports.sync=wo,Y.exports._parse=oD,Y.exports._enoent=sD;var $o=Y.exports,vo=H($o);function xo(u){const D=typeof u=="string"?`
|
|
23
23
|
`:10,e=typeof u=="string"?"\r":13;return u[u.length-1]===D&&(u=u.slice(0,-1)),u[u.length-1]===e&&(u=u.slice(0,-1)),u}s(xo,"stripFinalNewline");function Ke(u={}){const{env:D=process.env,platform:e=process.platform}=u;return e!=="win32"?"PATH":Object.keys(D).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"}s(Ke,"pathKey");const So=s(({cwd:u=y.cwd(),path:D=y.env[Ke()],preferLocal:e=!0,execPath:n=y.execPath,addExecPath:r=!0}={})=>{const o=u instanceof URL?ne(u):u,t=z.resolve(o),i=[];return e&&Oo(i,t),r&&To(i,n,t),[...i,D].join(z.delimiter)},"npmRunPath"),Oo=s((u,D)=>{let e;for(;e!==D;)u.push(z.join(D,"node_modules/.bin")),e=D,D=z.resolve(D,"..")},"applyPreferLocal"),To=s((u,D,e)=>{const n=D instanceof URL?ne(D):D;u.push(z.resolve(e,n,".."))},"applyExecPath"),Io=s(({env:u=y.env,...D}={})=>{u={...u};const e=Ke({env:u});return D.path=u[e],u[e]=So(D),u},"npmRunPathEnv"),Po=s((u,D,e,n)=>{if(e==="length"||e==="prototype"||e==="arguments"||e==="caller")return;const r=Object.getOwnPropertyDescriptor(u,e),o=Object.getOwnPropertyDescriptor(D,e);!ko(r,o)&&n||Object.defineProperty(u,e,o)},"copyProperty"),ko=s(function(u,D){return u===void 0||u.configurable||u.writable===D.writable&&u.enumerable===D.enumerable&&u.configurable===D.configurable&&(u.writable||u.value===D.value)},"canCopyProperty"),_o=s((u,D)=>{const e=Object.getPrototypeOf(D);e!==Object.getPrototypeOf(u)&&Object.setPrototypeOf(u,e)},"changePrototype"),Ro=s((u,D)=>`/* Wrapped ${u}*/
|
|
24
|
-
${D}`,"wrappedToString"),Mo=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),jo=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),No=s((u,D,e)=>{const n=e===""?"":`with ${e.trim()}() `,r=Ro.bind(null,n,D.toString());Object.defineProperty(r,"name",jo),Object.defineProperty(u,"toString",{...Mo,value:r})},"changeToString");function Lo(u,D,{ignoreNonConfigurable:e=!1}={}){const{name:n}=u;for(const r of Reflect.ownKeys(D))Po(u,D,r,e);return _o(u,D),No(u,D,n),u}s(Lo,"mimicFunction");const bu=new WeakMap,Ve=s((u,D={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let e,n=0;const r=u.displayName||u.name||"<anonymous>",o=s(function(...t){if(bu.set(o,++n),n===1)e=u.apply(this,t),u=null;else if(D.throw===!0)throw new Error(`Function \`${r}\` can only be called once`);return e},"onetime");return Lo(o,u),bu.set(o,n),o},"onetime");Ve.callCount=u=>{if(!bu.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return bu.get(u)};const Go=s(()=>{const u=Ze-Je+1;return Array.from({length:u},Wo)},"getRealtimeSignals"),Wo=s((u,D)=>({name:`SIGRT${D+1}`,number:Je+D,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),"getRealtimeSignal"),Je=34,Ze=64,Uo=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],Xe=s(()=>{const u=Go();return[...Uo,...u].map(zo)},"getSignals"),zo=s(({name:u,number:D,description:e,action:n,forced:r=!1,standard:o})=>{const{signals:{[u]:t}}=re,i=t!==void 0;return{name:u,number:i?t:D,description:e,supported:i,action:n,forced:r,standard:o}},"normalizeSignal"),qo=s(()=>{const u=Xe();return Object.fromEntries(u.map(Ho))},"getSignalsByName"),Ho=s(({name:u,number:D,description:e,supported:n,action:r,forced:o,standard:t})=>[u,{name:u,number:D,description:e,supported:n,action:r,forced:o,standard:t}],"getSignalByName"),Yo=qo(),Ko=s(()=>{const u=Xe(),D=Ze+1,e=Array.from({length:D},(n,r)=>Vo(r,u));return Object.assign({},...e)},"getSignalsByNumber"),Vo=s((u,D)=>{const e=Jo(u,D);if(e===void 0)return{};const{name:n,description:r,supported:o,action:t,forced:i,standard:a}=e;return{[u]:{name:n,number:u,description:r,supported:o,action:t,forced:i,standard:a}}},"getSignalByNumber"),Jo=s((u,D)=>{const e=D.find(({name:n})=>re.signals[n]===u);return e!==void 0?e:D.find(n=>n.number===u)},"findSignalByNumber");Ko();const Zo=s(({timedOut:u,timeout:D,errorCode:e,signal:n,signalDescription:r,exitCode:o,isCanceled:t})=>u?`timed out after ${D} milliseconds`:t?"was canceled":e!==void 0?`failed with ${e}`:n!==void 0?`was killed with ${n} (${r})`:o!==void 0?`failed with exit code ${o}`:"failed","getErrorPrefix"),Qe=s(({stdout:u,stderr:D,all:e,error:n,signal:r,exitCode:o,command:t,escapedCommand:i,timedOut:a,isCanceled:l,killed:C,parsed:{options:{timeout:c,cwd:F=y.cwd()}}})=>{o=o===null?void 0:o,r=r===null?void 0:r;const f=r===void 0?void 0:Yo[r].description,d=n&&n.code,h=`Command ${Zo({timedOut:a,timeout:c,errorCode:d,signal:r,signalDescription:f,exitCode:o,isCanceled:l})}: ${t}`,m=Object.prototype.toString.call(n)==="[object Error]"
|
|
25
|
-
${n.message}`:h,P=[
|
|
26
|
-
`);return m?(n.originalMessage=n.message,n.message=P):n=new Error(P),n.shortMessage
|
|
27
|
-
`)},"logCommand"),Ys=1e3*1e3*100,Ks=s(({env:u,extendEnv:D,preferLocal:e,localDir:n,execPath:r})=>{const o=D?{...y.env,...u}:u;return e?Io({env:o,cwd:n,execPath:r}):o},"getEnv"),Vs=s((u,D,e={})=>{const n=vo._parse(u,D,e);return u=n.command,D=n.args,e=n.options,e={maxBuffer:Ys,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:e.cwd||y.cwd(),execPath:y.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:zs,...e},e.env=Ks(e),e.stdio=Qo(e),y.platform==="win32"&&z.basename(u,".exe")==="cmd"&&D.unshift("/q"),{file:u,args:D,options:e,parsed:n}},"handleArguments"),ED=s((u,D,e)=>typeof D!="string"&&!ln.isBuffer(D)?e===void 0?void 0:"":u.stripFinalNewline?xo(D):D,"handleOutput");function Z(u,D,e){const n=Vs(u,D,e),r=Ws(u,D),o=Us(u,D);Hs(o,n.options),Es(n.options);let t;try{t=De.spawn(n.file,n.args,n.options)}catch(f){const d=new De.ChildProcess,E=Promise.reject(Qe({error:f,stdout:"",stderr:"",all:"",command:r,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return ot(d,E),d}const i=js(t),a=ds(t,n.options,i),l=ps(t,n.options,a),C={isCanceled:!1};t.kill=is.bind(null,t.kill.bind(t)),t.cancel=Cs.bind(null,t,C);const F=Ve(s(async()=>{const[{error:f,exitCode:d,signal:E,timedOut:h},m,w,P]=await _s(t,n.options,l),du=ED(n.options,m),j=ED(n.options,w),Nu=ED(n.options,P);if(f||d!==0||E!==null){const U=Qe({error:f,exitCode:d,signal:E,stdout:du,stderr:j,all:Nu,command:r,escapedCommand:o,parsed:n,timedOut:h,isCanceled:n.options.signal?n.options.signal.aborted:!1,killed:t.killed});if(!n.options.reject)return U;throw U}return{command:r,escapedCommand:o,exitCode:0,stdout:du,stderr:j,all:Nu,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},"handlePromise"));return Ps(t,n.options),t.all=ks(t,n.options),ms(t),ot(t,F),t}s(Z,"execa");let G=!0;const X=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let iu=0;if(X.process&&X.process.env&&X.process.stdout){const{FORCE_COLOR:u,NODE_DISABLE_COLORS:D,NO_COLOR:e,TERM:n,COLORTERM:r}=X.process.env;D||e||u==="0"?G=!1:u==="1"||u==="2"||u==="3"?G=!0:n==="dumb"?G=!1:"CI"in X.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in X.process.env)?G=!0:G=process.stdout.isTTY,G&&(process.platform==="win32"||r&&(r==="truecolor"||r==="24bit")?iu=3:n&&(n.endsWith("-256color")||n.endsWith("256"))?iu=2:iu=1)}let it={enabled:G,supportLevel:iu};function au(u,D,e=1){const n=`\x1B[${u}m`,r=`\x1B[${D}m`,o=new RegExp(`\\x1b\\[${D}m`,"g");return t=>it.enabled&&it.supportLevel>=e?n+(""+t).replace(o,n)+r:""+t}s(au,"kolorist");const pD=au(2,22),at=au(30,39),vu=au(31,39),cu=au(32,39),ct=au(46,49),hD="\x1B",b=`${hD}[`,Js="\x07",mD={to(u,D){return D?`${b}${D+1};${u+1}H`:`${b}${u+1}G`},move(u,D){let e="";return u<0?e+=`${b}${-u}D`:u>0&&(e+=`${b}${u}C`),D<0?e+=`${b}${-D}A`:D>0&&(e+=`${b}${D}B`),e},up:s((u=1)=>`${b}${u}A`,"up"),down:s((u=1)=>`${b}${u}B`,"down"),forward:s((u=1)=>`${b}${u}C`,"forward"),backward:s((u=1)=>`${b}${u}D`,"backward"),nextLine:s((u=1)=>`${b}E`.repeat(u),"nextLine"),prevLine:s((u=1)=>`${b}F`.repeat(u),"prevLine"),left:`${b}G`,hide:`${b}?25l`,show:`${b}?25h`,save:`${hD}7`,restore:`${hD}8`},Zs={up:s((u=1)=>`${b}S`.repeat(u),"up"),down:s((u=1)=>`${b}T`.repeat(u),"down")},Xs={screen:`${b}2J`,up:s((u=1)=>`${b}1J`.repeat(u),"up"),down:s((u=1)=>`${b}J`.repeat(u),"down"),line:`${b}2K`,lineEnd:`${b}K`,lineStart:`${b}1K`,lines(u){let D="";for(let e=0;e<u;e++)D+=this.line+(e<u-1?mD.up():"");return u&&(D+=mD.left),D}};var v={cursor:mD,scroll:Zs,erase:Xs,beep:Js},gD={exports:{}};let xu=process||{},lt=xu.argv||[],Su=xu.env||{},Qs=!(Su.NO_COLOR||lt.includes("--no-color"))&&(!!Su.FORCE_COLOR||lt.includes("--color")||xu.platform==="win32"||(xu.stdout||{}).isTTY&&Su.TERM!=="dumb"||!!Su.CI),ui=s((u,D,e=u)=>n=>{let r=""+n,o=r.indexOf(D,u.length);return~o?u+Di(r,D,e,o)+D:u+r+D},"formatter"),Di=s((u,D,e,n)=>{let r="",o=0;do r+=u.substring(o,n)+e,o=n+D.length,n=u.indexOf(D,o);while(~n);return r+u.substring(o)},"replaceClose"),Ft=s((u=Qs)=>{let D=u?ui:()=>String;return{isColorSupported:u,reset:D("\x1B[0m","\x1B[0m"),bold:D("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:D("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:D("\x1B[3m","\x1B[23m"),underline:D("\x1B[4m","\x1B[24m"),inverse:D("\x1B[7m","\x1B[27m"),hidden:D("\x1B[8m","\x1B[28m"),strikethrough:D("\x1B[9m","\x1B[29m"),black:D("\x1B[30m","\x1B[39m"),red:D("\x1B[31m","\x1B[39m"),green:D("\x1B[32m","\x1B[39m"),yellow:D("\x1B[33m","\x1B[39m"),blue:D("\x1B[34m","\x1B[39m"),magenta:D("\x1B[35m","\x1B[39m"),cyan:D("\x1B[36m","\x1B[39m"),white:D("\x1B[37m","\x1B[39m"),gray:D("\x1B[90m","\x1B[39m"),bgBlack:D("\x1B[40m","\x1B[49m"),bgRed:D("\x1B[41m","\x1B[49m"),bgGreen:D("\x1B[42m","\x1B[49m"),bgYellow:D("\x1B[43m","\x1B[49m"),bgBlue:D("\x1B[44m","\x1B[49m"),bgMagenta:D("\x1B[45m","\x1B[49m"),bgCyan:D("\x1B[46m","\x1B[49m"),bgWhite:D("\x1B[47m","\x1B[49m"),blackBright:D("\x1B[90m","\x1B[39m"),redBright:D("\x1B[91m","\x1B[39m"),greenBright:D("\x1B[92m","\x1B[39m"),yellowBright:D("\x1B[93m","\x1B[39m"),blueBright:D("\x1B[94m","\x1B[39m"),magentaBright:D("\x1B[95m","\x1B[39m"),cyanBright:D("\x1B[96m","\x1B[39m"),whiteBright:D("\x1B[97m","\x1B[39m"),bgBlackBright:D("\x1B[100m","\x1B[49m"),bgRedBright:D("\x1B[101m","\x1B[49m"),bgGreenBright:D("\x1B[102m","\x1B[49m"),bgYellowBright:D("\x1B[103m","\x1B[49m"),bgBlueBright:D("\x1B[104m","\x1B[49m"),bgMagentaBright:D("\x1B[105m","\x1B[49m"),bgCyanBright:D("\x1B[106m","\x1B[49m"),bgWhiteBright:D("\x1B[107m","\x1B[49m")}},"createColors");gD.exports=Ft(),gD.exports.createColors=Ft;var ei=gD.exports,p=H(ei);function ti({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")}s(ti,"q$1");function Ct(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(ti(),"")}s(Ct,"S$1");function ft(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}s(ft,"j");var dt={exports:{}};(function(u){var D={};u.exports=D,D.eastAsianWidth=function(n){var r=n.charCodeAt(0),o=n.length==2?n.charCodeAt(1):0,t=r;return 55296<=r&&r<=56319&&56320<=o&&o<=57343&&(r&=1023,o&=1023,t=r<<10|o,t+=65536),t==12288||65281<=t&&t<=65376||65504<=t&&t<=65510?"F":t==8361||65377<=t&&t<=65470||65474<=t&&t<=65479||65482<=t&&t<=65487||65490<=t&&t<=65495||65498<=t&&t<=65500||65512<=t&&t<=65518?"H":4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12289<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||110592<=t&&t<=110593||127488<=t&&t<=127490||127504<=t&&t<=127546||127552<=t&&t<=127560||127568<=t&&t<=127569||131072<=t&&t<=194367||177984<=t&&t<=196605||196608<=t&&t<=262141?"W":32<=t&&t<=126||162<=t&&t<=163||165<=t&&t<=166||t==172||t==175||10214<=t&&t<=10221||10629<=t&&t<=10630?"Na":t==161||t==164||167<=t&&t<=168||t==170||173<=t&&t<=174||176<=t&&t<=180||182<=t&&t<=186||188<=t&&t<=191||t==198||t==208||215<=t&&t<=216||222<=t&&t<=225||t==230||232<=t&&t<=234||236<=t&&t<=237||t==240||242<=t&&t<=243||247<=t&&t<=250||t==252||t==254||t==257||t==273||t==275||t==283||294<=t&&t<=295||t==299||305<=t&&t<=307||t==312||319<=t&&t<=322||t==324||328<=t&&t<=331||t==333||338<=t&&t<=339||358<=t&&t<=359||t==363||t==462||t==464||t==466||t==468||t==470||t==472||t==474||t==476||t==593||t==609||t==708||t==711||713<=t&&t<=715||t==717||t==720||728<=t&&t<=731||t==733||t==735||768<=t&&t<=879||913<=t&&t<=929||931<=t&&t<=937||945<=t&&t<=961||963<=t&&t<=969||t==1025||1040<=t&&t<=1103||t==1105||t==8208||8211<=t&&t<=8214||8216<=t&&t<=8217||8220<=t&&t<=8221||8224<=t&&t<=8226||8228<=t&&t<=8231||t==8240||8242<=t&&t<=8243||t==8245||t==8251||t==8254||t==8308||t==8319||8321<=t&&t<=8324||t==8364||t==8451||t==8453||t==8457||t==8467||t==8470||8481<=t&&t<=8482||t==8486||t==8491||8531<=t&&t<=8532||8539<=t&&t<=8542||8544<=t&&t<=8555||8560<=t&&t<=8569||t==8585||8592<=t&&t<=8601||8632<=t&&t<=8633||t==8658||t==8660||t==8679||t==8704||8706<=t&&t<=8707||8711<=t&&t<=8712||t==8715||t==8719||t==8721||t==8725||t==8730||8733<=t&&t<=8736||t==8739||t==8741||8743<=t&&t<=8748||t==8750||8756<=t&&t<=8759||8764<=t&&t<=8765||t==8776||t==8780||t==8786||8800<=t&&t<=8801||8804<=t&&t<=8807||8810<=t&&t<=8811||8814<=t&&t<=8815||8834<=t&&t<=8835||8838<=t&&t<=8839||t==8853||t==8857||t==8869||t==8895||t==8978||9312<=t&&t<=9449||9451<=t&&t<=9547||9552<=t&&t<=9587||9600<=t&&t<=9615||9618<=t&&t<=9621||9632<=t&&t<=9633||9635<=t&&t<=9641||9650<=t&&t<=9651||9654<=t&&t<=9655||9660<=t&&t<=9661||9664<=t&&t<=9665||9670<=t&&t<=9672||t==9675||9678<=t&&t<=9681||9698<=t&&t<=9701||t==9711||9733<=t&&t<=9734||t==9737||9742<=t&&t<=9743||9748<=t&&t<=9749||t==9756||t==9758||t==9792||t==9794||9824<=t&&t<=9825||9827<=t&&t<=9829||9831<=t&&t<=9834||9836<=t&&t<=9837||t==9839||9886<=t&&t<=9887||9918<=t&&t<=9919||9924<=t&&t<=9933||9935<=t&&t<=9953||t==9955||9960<=t&&t<=9983||t==10045||t==10071||10102<=t&&t<=10111||11093<=t&&t<=11097||12872<=t&&t<=12879||57344<=t&&t<=63743||65024<=t&&t<=65039||t==65533||127232<=t&&t<=127242||127248<=t&&t<=127277||127280<=t&&t<=127337||127344<=t&&t<=127386||917760<=t&&t<=917999||983040<=t&&t<=1048573||1048576<=t&&t<=1114109?"A":"N"},D.characterLength=function(n){var r=this.eastAsianWidth(n);return r=="F"||r=="W"||r=="A"?2:1};function e(n){return n.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}s(e,"F"),D.length=function(n){for(var r=e(n),o=0,t=0;t<r.length;t++)o=o+this.characterLength(r[t]);return o},D.slice=function(n,r,o){textLen=D.length(n),r=r||0,o=o||1,r<0&&(r=textLen+r),o<0&&(o=textLen+o);for(var t="",i=0,a=e(n),l=0;l<a.length;l++){var C=a[l],c=D.length(C);if(i>=r-(c==2?1:0))if(i+c<=o)t+=C;else break;i+=c}return t}})(dt);var ni=dt.exports;const ri=ft(ni);var oi=s(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},"X");const si=ft(oi);function lu(u,D={}){if(typeof u!="string"||u.length===0||(D={ambiguousIsNarrow:!0,...D},u=Ct(u),u.length===0))return 0;u=u.replace(si()," ");const e=D.ambiguousIsNarrow?1:2;let n=0;for(const r of u){const o=r.codePointAt(0);if(!(o<=31||o>=127&&o<=159||o>=768&&o<=879))switch(ri.eastAsianWidth(r)){case"F":case"W":n+=2;break;case"A":n+=e;break;default:n+=1}}return n}s(lu,"A");const BD=10,Et=s((u=0)=>D=>`\x1B[${D+u}m`,"T"),pt=s((u=0)=>D=>`\x1B[${38+u};5;${D}m`,"P"),ht=s((u=0)=>(D,e,n)=>`\x1B[${38+u};2;${D};${e};${n}m`,"W"),B={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(B.modifier);const ii=Object.keys(B.color),ai=Object.keys(B.bgColor);[...ii,...ai];function ci(){const u=new Map;for(const[D,e]of Object.entries(B)){for(const[n,r]of Object.entries(e))B[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[n]=B[n],u.set(r[0],r[1]);Object.defineProperty(B,D,{value:e,enumerable:!1})}return Object.defineProperty(B,"codes",{value:u,enumerable:!1}),B.color.close="\x1B[39m",B.bgColor.close="\x1B[49m",B.color.ansi=Et(),B.color.ansi256=pt(),B.color.ansi16m=ht(),B.bgColor.ansi=Et(BD),B.bgColor.ansi256=pt(BD),B.bgColor.ansi16m=ht(BD),Object.defineProperties(B,{rgbToAnsi256:{value:s((D,e,n)=>D===e&&e===n?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(n/255*5),"value"),enumerable:!1},hexToRgb:{value:s(D=>{const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[n]=e;n.length===3&&(n=[...n].map(o=>o+o).join(""));const r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},"value"),enumerable:!1},hexToAnsi256:{value:s(D=>B.rgbToAnsi256(...B.hexToRgb(D)),"value"),enumerable:!1},ansi256ToAnsi:{value:s(D=>{if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,n,r;if(D>=232)e=((D-232)*10+8)/255,n=e,r=e;else{D-=16;const i=D%36;e=Math.floor(D/36)/5,n=Math.floor(i/6)/5,r=i%6/5}const o=Math.max(e,n,r)*2;if(o===0)return 30;let t=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(e));return o===2&&(t+=60),t},"value"),enumerable:!1},rgbToAnsi:{value:s((D,e,n)=>B.ansi256ToAnsi(B.rgbToAnsi256(D,e,n)),"value"),enumerable:!1},hexToAnsi:{value:s(D=>B.ansi256ToAnsi(B.hexToAnsi256(D)),"value"),enumerable:!1}}),B}s(ci,"tD");const li=ci(),Ou=new Set(["\x1B","\x9B"]),Fi=39,bD="\x07",mt="[",Ci="]",gt="m",yD=`${Ci}8;;`,Bt=s(u=>`${Ou.values().next().value}${mt}${u}${gt}`,"N"),bt=s(u=>`${Ou.values().next().value}${yD}${u}${bD}`,"L"),fi=s(u=>u.split(" ").map(D=>lu(D)),"iD"),AD=s((u,D,e)=>{const n=[...D];let r=!1,o=!1,t=lu(Ct(u[u.length-1]));for(const[i,a]of n.entries()){const l=lu(a);if(t+l<=e?u[u.length-1]+=a:(u.push(a),t=0),Ou.has(a)&&(r=!0,o=n.slice(i+1).join("").startsWith(yD)),r){o?a===bD&&(r=!1,o=!1):a===gt&&(r=!1);continue}t+=l,t===e&&i<n.length-1&&(u.push(""),t=0)}!t&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"y$1"),di=s(u=>{const D=u.split(" ");let e=D.length;for(;e>0&&!(lu(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},"rD"),Ei=s((u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let n="",r,o;const t=fi(u);let i=[""];for(const[l,C]of u.split(" ").entries()){e.trim!==!1&&(i[i.length-1]=i[i.length-1].trimStart());let c=lu(i[i.length-1]);if(l!==0&&(c>=D&&(e.wordWrap===!1||e.trim===!1)&&(i.push(""),c=0),(c>0||e.trim===!1)&&(i[i.length-1]+=" ",c++)),e.hard&&t[l]>D){const F=D-c,f=1+Math.floor((t[l]-F-1)/D);Math.floor((t[l]-1)/D)<f&&i.push(""),AD(i,C,D);continue}if(c+t[l]>D&&c>0&&t[l]>0){if(e.wordWrap===!1&&c<D){AD(i,C,D);continue}i.push("")}if(c+t[l]>D&&e.wordWrap===!1){AD(i,C,D);continue}i[i.length-1]+=C}e.trim!==!1&&(i=i.map(l=>di(l)));const a=[...i.join(`
|
|
28
|
-
`)];for(const[l,C]of a.entries()){if(n+=C,Ou.has(C)){const{groups:F}=new RegExp(`(?:\\${mt}(?<code>\\d+)m|\\${yD}(?<uri>.*)${bD})`).exec(a.slice(l).join(""))||{groups:{}};if(F.code!==void 0){const f=Number.parseFloat(F.code);r=f===
|
|
24
|
+
${D}`,"wrappedToString"),Mo=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),jo=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),No=s((u,D,e)=>{const n=e===""?"":`with ${e.trim()}() `,r=Ro.bind(null,n,D.toString());Object.defineProperty(r,"name",jo),Object.defineProperty(u,"toString",{...Mo,value:r})},"changeToString");function Lo(u,D,{ignoreNonConfigurable:e=!1}={}){const{name:n}=u;for(const r of Reflect.ownKeys(D))Po(u,D,r,e);return _o(u,D),No(u,D,n),u}s(Lo,"mimicFunction");const bu=new WeakMap,Ve=s((u,D={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let e,n=0;const r=u.displayName||u.name||"<anonymous>",o=s(function(...t){if(bu.set(o,++n),n===1)e=u.apply(this,t),u=null;else if(D.throw===!0)throw new Error(`Function \`${r}\` can only be called once`);return e},"onetime");return Lo(o,u),bu.set(o,n),o},"onetime");Ve.callCount=u=>{if(!bu.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return bu.get(u)};const Go=s(()=>{const u=Ze-Je+1;return Array.from({length:u},Wo)},"getRealtimeSignals"),Wo=s((u,D)=>({name:`SIGRT${D+1}`,number:Je+D,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),"getRealtimeSignal"),Je=34,Ze=64,Uo=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],Xe=s(()=>{const u=Go();return[...Uo,...u].map(zo)},"getSignals"),zo=s(({name:u,number:D,description:e,action:n,forced:r=!1,standard:o})=>{const{signals:{[u]:t}}=re,i=t!==void 0;return{name:u,number:i?t:D,description:e,supported:i,action:n,forced:r,standard:o}},"normalizeSignal"),qo=s(()=>{const u=Xe();return Object.fromEntries(u.map(Ho))},"getSignalsByName"),Ho=s(({name:u,number:D,description:e,supported:n,action:r,forced:o,standard:t})=>[u,{name:u,number:D,description:e,supported:n,action:r,forced:o,standard:t}],"getSignalByName"),Yo=qo(),Ko=s(()=>{const u=Xe(),D=Ze+1,e=Array.from({length:D},(n,r)=>Vo(r,u));return Object.assign({},...e)},"getSignalsByNumber"),Vo=s((u,D)=>{const e=Jo(u,D);if(e===void 0)return{};const{name:n,description:r,supported:o,action:t,forced:i,standard:a}=e;return{[u]:{name:n,number:u,description:r,supported:o,action:t,forced:i,standard:a}}},"getSignalByNumber"),Jo=s((u,D)=>{const e=D.find(({name:n})=>re.signals[n]===u);return e!==void 0?e:D.find(n=>n.number===u)},"findSignalByNumber");Ko();const Zo=s(({timedOut:u,timeout:D,errorCode:e,signal:n,signalDescription:r,exitCode:o,isCanceled:t})=>u?`timed out after ${D} milliseconds`:t?"was canceled":e!==void 0?`failed with ${e}`:n!==void 0?`was killed with ${n} (${r})`:o!==void 0?`failed with exit code ${o}`:"failed","getErrorPrefix"),Qe=s(({stdout:u,stderr:D,all:e,error:n,signal:r,exitCode:o,command:t,escapedCommand:i,timedOut:a,isCanceled:l,killed:C,parsed:{options:{timeout:c,cwd:F=y.cwd()}}})=>{o=o===null?void 0:o,r=r===null?void 0:r;const f=r===void 0?void 0:Yo[r].description,d=n&&n.code,h=`Command ${Zo({timedOut:a,timeout:c,errorCode:d,signal:r,signalDescription:f,exitCode:o,isCanceled:l})}: ${t}`,m=Object.prototype.toString.call(n)==="[object Error]",$=m?`${h}
|
|
25
|
+
${n.message}`:h,P=[$,D,u].filter(Boolean).join(`
|
|
26
|
+
`);return m?(n.originalMessage=n.message,n.message=P):n=new Error(P),n.shortMessage=$,n.command=t,n.escapedCommand=i,n.exitCode=o,n.signal=r,n.signalDescription=f,n.stdout=u,n.stderr=D,n.cwd=F,e!==void 0&&(n.all=e),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!a,n.isCanceled=l,n.killed=C&&!a,n},"makeError"),yu=["stdin","stdout","stderr"],Xo=s(u=>yu.some(D=>u[D]!==void 0),"hasAlias"),Qo=s(u=>{if(!u)return;const{stdio:D}=u;if(D===void 0)return yu.map(n=>u[n]);if(Xo(u))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${yu.map(n=>`\`${n}\``).join(", ")}`);if(typeof D=="string")return D;if(!Array.isArray(D))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof D}\``);const e=Math.max(D.length,yu.length);return Array.from({length:e},(n,r)=>D[r])},"normalizeStdio");var V={exports:{}},iD={exports:{}},ut;function us(){return ut||(ut=1,function(u){u.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&u.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&u.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(iD)),iD.exports}s(us,"requireSignals");var g=A.process;const L=s(function(u){return 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"},"processOk");if(!L(g))V.exports=function(){return function(){}};else{var Ds=oe,ru=us(),es=/^win/i.test(g.platform),Au=se;typeof Au!="function"&&(Au=Au.EventEmitter);var v;g.__signal_exit_emitter__?v=g.__signal_exit_emitter__:(v=g.__signal_exit_emitter__=new Au,v.count=0,v.emitted={}),v.infinite||(v.setMaxListeners(1/0),v.infinite=!0),V.exports=function(u,D){if(!L(A.process))return function(){};Ds.equal(typeof u,"function","a callback must be provided for exit handler"),ou===!1&&Dt();var e="exit";D&&D.alwaysLast&&(e="afterexit");var n=s(function(){v.removeListener(e,u),v.listeners("exit").length===0&&v.listeners("afterexit").length===0&&aD()},"remove");return v.on(e,u),n};var aD=s(function(){!ou||!L(A.process)||(ou=!1,ru.forEach(function(D){try{g.removeListener(D,cD[D])}catch{}}),g.emit=lD,g.reallyExit=et,v.count-=1)},"unload");V.exports.unload=aD;var J=s(function(D,e,n){v.emitted[D]||(v.emitted[D]=!0,v.emit(D,e,n))},"emit"),cD={};ru.forEach(function(u){cD[u]=s(function(){if(L(A.process)){var e=g.listeners(u);e.length===v.count&&(aD(),J("exit",null,u),J("afterexit",null,u),es&&u==="SIGHUP"&&(u="SIGINT"),g.kill(g.pid,u))}},"listener")}),V.exports.signals=function(){return ru};var ou=!1,Dt=s(function(){ou||!L(A.process)||(ou=!0,v.count+=1,ru=ru.filter(function(D){try{return g.on(D,cD[D]),!0}catch{return!1}}),g.emit=ns,g.reallyExit=ts)},"load");V.exports.load=Dt;var et=g.reallyExit,ts=s(function(D){L(A.process)&&(g.exitCode=D||0,J("exit",g.exitCode,null),J("afterexit",g.exitCode,null),et.call(g,g.exitCode))},"processReallyExit"),lD=g.emit,ns=s(function(D,e){if(D==="exit"&&L(A.process)){e!==void 0&&(g.exitCode=e);var n=lD.apply(this,arguments);return J("exit",g.exitCode,null),J("afterexit",g.exitCode,null),n}else return lD.apply(this,arguments)},"processEmit")}var rs=V.exports,os=H(rs);const ss=1e3*5,is=s((u,D="SIGTERM",e={})=>{const n=u(D);return as(u,D,e,n),n},"spawnedKill"),as=s((u,D,e,n)=>{if(!cs(D,e,n))return;const r=Fs(e),o=setTimeout(()=>{u("SIGKILL")},r);o.unref&&o.unref()},"setKillTimeout"),cs=s((u,{forceKillAfterTimeout:D},e)=>ls(u)&&D!==!1&&e,"shouldForceKill"),ls=s(u=>u===fn.constants.signals.SIGTERM||typeof u=="string"&&u.toUpperCase()==="SIGTERM","isSigterm"),Fs=s(({forceKillAfterTimeout:u=!0})=>{if(u===!0)return ss;if(!Number.isFinite(u)||u<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${u}\` (${typeof u})`);return u},"getForceKillAfterTimeout"),Cs=s((u,D)=>{u.kill()&&(D.isCanceled=!0)},"spawnedCancel"),fs=s((u,D,e)=>{u.kill(D),e(Object.assign(new Error("Timed out"),{timedOut:!0,signal:D}))},"timeoutKill"),ds=s((u,{timeout:D,killSignal:e="SIGTERM"},n)=>{if(D===0||D===void 0)return n;let r;const o=new Promise((i,a)=>{r=setTimeout(()=>{fs(u,e,a)},D)}),t=n.finally(()=>{clearTimeout(r)});return Promise.race([o,t])},"setupTimeout"),Es=s(({timeout:u})=>{if(u!==void 0&&(!Number.isFinite(u)||u<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${u}\` (${typeof u})`)},"validateTimeout"),ps=s(async(u,{cleanup:D,detached:e},n)=>{if(!D||e)return n;const r=os(()=>{u.kill()});return n.finally(()=>{r()})},"setExitHandler");function tt(u){return u!==null&&typeof u=="object"&&typeof u.pipe=="function"}s(tt,"isStream");function nt(u){return tt(u)&&u.writable!==!1&&typeof u._write=="function"&&typeof u._writableState=="object"}s(nt,"isWritableStream");const hs=s(u=>u instanceof Fn&&typeof u.then=="function","isExecaChildProcess"),FD=s((u,D,e)=>{if(typeof e=="string")return u[D].pipe(dn(e)),u;if(nt(e))return u[D].pipe(e),u;if(!hs(e))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!nt(e.stdin))throw new TypeError("The target child process's stdin must be available.");return u[D].pipe(e.stdin),e},"pipeToTarget"),ms=s(u=>{u.stdout!==null&&(u.pipeStdout=FD.bind(void 0,u,"stdout")),u.stderr!==null&&(u.pipeStderr=FD.bind(void 0,u,"stderr")),u.all!==void 0&&(u.pipeAll=FD.bind(void 0,u,"all"))},"addPipeMethods");var su={exports:{}};const{PassThrough:gs}=Wu;var Bs=s(u=>{u={...u};const{array:D}=u;let{encoding:e}=u;const n=e==="buffer";let r=!1;D?r=!(e||n):e=e||"utf8",n&&(e=null);const o=new gs({objectMode:r});e&&o.setEncoding(e);let t=0;const i=[];return o.on("data",a=>{i.push(a),r?t=i.length:t+=a.length}),o.getBufferedValue=()=>D?i:n?Buffer.concat(i,t):i.join(""),o.getBufferedLength=()=>t,o},"bufferStream$1");const{constants:bs}=pn,ys=Wu,{promisify:As}=ie,ws=Bs,$s=As(ys.pipeline),JD=class JD extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};s(JD,"MaxBufferError");let wu=JD;async function CD(u,D){if(!u)throw new Error("Expected a stream");D={maxBuffer:1/0,...D};const{maxBuffer:e}=D,n=ws(D);return await new Promise((r,o)=>{const t=s(i=>{i&&n.getBufferedLength()<=bs.MAX_LENGTH&&(i.bufferedData=n.getBufferedValue()),o(i)},"rejectPromise");(async()=>{try{await $s(u,n),r()}catch(i){t(i)}})(),n.on("data",()=>{n.getBufferedLength()>e&&t(new wu)})}),n.getBufferedValue()}s(CD,"getStream"),su.exports=CD,su.exports.buffer=(u,D)=>CD(u,{...D,encoding:"buffer"}),su.exports.array=(u,D)=>CD(u,{...D,array:!0}),su.exports.MaxBufferError=wu;var vs=su.exports,rt=H(vs);const{PassThrough:xs}=Wu;var Ss=s(function(){var u=[],D=new xs({objectMode:!0});return D.setMaxListeners(0),D.add=e,D.isEmpty=n,D.on("unpipe",r),Array.prototype.slice.call(arguments).forEach(e),D;function e(o){return Array.isArray(o)?(o.forEach(e),this):(u.push(o),o.once("end",r.bind(null,o)),o.once("error",D.emit.bind(D,"error")),o.pipe(D,{end:!1}),this)}s(e,"add");function n(){return u.length==0}s(n,"isEmpty");function r(o){u=u.filter(function(t){return t!==o}),!u.length&&D.readable&&D.end()}s(r,"remove")},"mergeStream"),Os=H(Ss);const Ts=s(u=>{if(u!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},"validateInputOptions"),Is=s(({input:u,inputFile:D})=>typeof D!="string"?u:(Ts(u),En(D)),"getInput"),Ps=s((u,D)=>{const e=Is(D);e!==void 0&&(tt(e)?e.pipe(u.stdin):u.stdin.end(e))},"handleInput"),ks=s((u,{all:D})=>{if(!D||!u.stdout&&!u.stderr)return;const e=Os();return u.stdout&&e.add(u.stdout),u.stderr&&e.add(u.stderr),e},"makeAllStream"),fD=s(async(u,D)=>{if(!(!u||D===void 0)){u.destroy();try{return await D}catch(e){return e.bufferedData}}},"getBufferedData"),dD=s((u,{encoding:D,buffer:e,maxBuffer:n})=>{if(!(!u||!e))return D?rt(u,{encoding:D,maxBuffer:n}):rt.buffer(u,{maxBuffer:n})},"getStreamPromise"),_s=s(async({stdout:u,stderr:D,all:e},{encoding:n,buffer:r,maxBuffer:o},t)=>{const i=dD(u,{encoding:n,buffer:r,maxBuffer:o}),a=dD(D,{encoding:n,buffer:r,maxBuffer:o}),l=dD(e,{encoding:n,buffer:r,maxBuffer:o*2});try{return await Promise.all([t,i,a,l])}catch(C){return Promise.all([{error:C,signal:C.signal,timedOut:C.timedOut},fD(u,i),fD(D,a),fD(e,l)])}},"getSpawnedResult"),Rs=(async()=>{})().constructor.prototype,Ms=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(Rs,u)]),ot=s((u,D)=>{for(const[e,n]of Ms){const r=typeof D=="function"?(...o)=>Reflect.apply(n.value,D(),o):n.value.bind(D);Reflect.defineProperty(u,e,{...n,value:r})}},"mergePromise"),js=s(u=>new Promise((D,e)=>{u.on("exit",(n,r)=>{D({exitCode:n,signal:r})}),u.on("error",n=>{e(n)}),u.stdin&&u.stdin.on("error",n=>{e(n)})}),"getSpawnedPromise"),st=s((u,D=[])=>Array.isArray(D)?[u,...D]:[u],"normalizeArgs"),Ns=/^[\w.-]+$/,Ls=/"/g,Gs=s(u=>typeof u!="string"||Ns.test(u)?u:`"${u.replace(Ls,'\\"')}"`,"escapeArg"),Ws=s((u,D)=>st(u,D).join(" "),"joinCommand"),Us=s((u,D)=>st(u,D).map(e=>Gs(e)).join(" "),"getEscapedCommand"),zs=hn("execa").enabled,$u=s((u,D)=>String(u).padStart(D,"0"),"padField"),qs=s(()=>{const u=new Date;return`${$u(u.getHours(),2)}:${$u(u.getMinutes(),2)}:${$u(u.getSeconds(),2)}.${$u(u.getMilliseconds(),3)}`},"getTimestamp"),Hs=s((u,{verbose:D})=>{D&&y.stderr.write(`[${qs()}] ${u}
|
|
27
|
+
`)},"logCommand"),Ys=1e3*1e3*100,Ks=s(({env:u,extendEnv:D,preferLocal:e,localDir:n,execPath:r})=>{const o=D?{...y.env,...u}:u;return e?Io({env:o,cwd:n,execPath:r}):o},"getEnv"),Vs=s((u,D,e={})=>{const n=vo._parse(u,D,e);return u=n.command,D=n.args,e=n.options,e={maxBuffer:Ys,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:e.cwd||y.cwd(),execPath:y.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:zs,...e},e.env=Ks(e),e.stdio=Qo(e),y.platform==="win32"&&z.basename(u,".exe")==="cmd"&&D.unshift("/q"),{file:u,args:D,options:e,parsed:n}},"handleArguments"),ED=s((u,D,e)=>typeof D!="string"&&!ln.isBuffer(D)?e===void 0?void 0:"":u.stripFinalNewline?xo(D):D,"handleOutput");function Z(u,D,e){const n=Vs(u,D,e),r=Ws(u,D),o=Us(u,D);Hs(o,n.options),Es(n.options);let t;try{t=De.spawn(n.file,n.args,n.options)}catch(f){const d=new De.ChildProcess,E=Promise.reject(Qe({error:f,stdout:"",stderr:"",all:"",command:r,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return ot(d,E),d}const i=js(t),a=ds(t,n.options,i),l=ps(t,n.options,a),C={isCanceled:!1};t.kill=is.bind(null,t.kill.bind(t)),t.cancel=Cs.bind(null,t,C);const F=Ve(s(async()=>{const[{error:f,exitCode:d,signal:E,timedOut:h},m,$,P]=await _s(t,n.options,l),du=ED(n.options,m),j=ED(n.options,$),Nu=ED(n.options,P);if(f||d!==0||E!==null){const U=Qe({error:f,exitCode:d,signal:E,stdout:du,stderr:j,all:Nu,command:r,escapedCommand:o,parsed:n,timedOut:h,isCanceled:n.options.signal?n.options.signal.aborted:!1,killed:t.killed});if(!n.options.reject)return U;throw U}return{command:r,escapedCommand:o,exitCode:0,stdout:du,stderr:j,all:Nu,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},"handlePromise"));return Ps(t,n.options),t.all=ks(t,n.options),ms(t),ot(t,F),t}s(Z,"execa");let G=!0;const X=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let iu=0;if(X.process&&X.process.env&&X.process.stdout){const{FORCE_COLOR:u,NODE_DISABLE_COLORS:D,NO_COLOR:e,TERM:n,COLORTERM:r}=X.process.env;D||e||u==="0"?G=!1:u==="1"||u==="2"||u==="3"?G=!0:n==="dumb"?G=!1:"CI"in X.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in X.process.env)?G=!0:G=process.stdout.isTTY,G&&(process.platform==="win32"||r&&(r==="truecolor"||r==="24bit")?iu=3:n&&(n.endsWith("-256color")||n.endsWith("256"))?iu=2:iu=1)}let it={enabled:G,supportLevel:iu};function au(u,D,e=1){const n=`\x1B[${u}m`,r=`\x1B[${D}m`,o=new RegExp(`\\x1b\\[${D}m`,"g");return t=>it.enabled&&it.supportLevel>=e?n+(""+t).replace(o,n)+r:""+t}s(au,"kolorist");const pD=au(2,22),at=au(30,39),vu=au(31,39),cu=au(32,39),ct=au(46,49),hD="\x1B",b=`${hD}[`,Js="\x07",mD={to(u,D){return D?`${b}${D+1};${u+1}H`:`${b}${u+1}G`},move(u,D){let e="";return u<0?e+=`${b}${-u}D`:u>0&&(e+=`${b}${u}C`),D<0?e+=`${b}${-D}A`:D>0&&(e+=`${b}${D}B`),e},up:s((u=1)=>`${b}${u}A`,"up"),down:s((u=1)=>`${b}${u}B`,"down"),forward:s((u=1)=>`${b}${u}C`,"forward"),backward:s((u=1)=>`${b}${u}D`,"backward"),nextLine:s((u=1)=>`${b}E`.repeat(u),"nextLine"),prevLine:s((u=1)=>`${b}F`.repeat(u),"prevLine"),left:`${b}G`,hide:`${b}?25l`,show:`${b}?25h`,save:`${hD}7`,restore:`${hD}8`},Zs={up:s((u=1)=>`${b}S`.repeat(u),"up"),down:s((u=1)=>`${b}T`.repeat(u),"down")},Xs={screen:`${b}2J`,up:s((u=1)=>`${b}1J`.repeat(u),"up"),down:s((u=1)=>`${b}J`.repeat(u),"down"),line:`${b}2K`,lineEnd:`${b}K`,lineStart:`${b}1K`,lines(u){let D="";for(let e=0;e<u;e++)D+=this.line+(e<u-1?mD.up():"");return u&&(D+=mD.left),D}};var w={cursor:mD,scroll:Zs,erase:Xs,beep:Js},gD={exports:{}};let xu=process||{},lt=xu.argv||[],Su=xu.env||{},Qs=!(Su.NO_COLOR||lt.includes("--no-color"))&&(!!Su.FORCE_COLOR||lt.includes("--color")||xu.platform==="win32"||(xu.stdout||{}).isTTY&&Su.TERM!=="dumb"||!!Su.CI),ui=s((u,D,e=u)=>n=>{let r=""+n,o=r.indexOf(D,u.length);return~o?u+Di(r,D,e,o)+D:u+r+D},"formatter"),Di=s((u,D,e,n)=>{let r="",o=0;do r+=u.substring(o,n)+e,o=n+D.length,n=u.indexOf(D,o);while(~n);return r+u.substring(o)},"replaceClose"),Ft=s((u=Qs)=>{let D=u?ui:()=>String;return{isColorSupported:u,reset:D("\x1B[0m","\x1B[0m"),bold:D("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:D("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:D("\x1B[3m","\x1B[23m"),underline:D("\x1B[4m","\x1B[24m"),inverse:D("\x1B[7m","\x1B[27m"),hidden:D("\x1B[8m","\x1B[28m"),strikethrough:D("\x1B[9m","\x1B[29m"),black:D("\x1B[30m","\x1B[39m"),red:D("\x1B[31m","\x1B[39m"),green:D("\x1B[32m","\x1B[39m"),yellow:D("\x1B[33m","\x1B[39m"),blue:D("\x1B[34m","\x1B[39m"),magenta:D("\x1B[35m","\x1B[39m"),cyan:D("\x1B[36m","\x1B[39m"),white:D("\x1B[37m","\x1B[39m"),gray:D("\x1B[90m","\x1B[39m"),bgBlack:D("\x1B[40m","\x1B[49m"),bgRed:D("\x1B[41m","\x1B[49m"),bgGreen:D("\x1B[42m","\x1B[49m"),bgYellow:D("\x1B[43m","\x1B[49m"),bgBlue:D("\x1B[44m","\x1B[49m"),bgMagenta:D("\x1B[45m","\x1B[49m"),bgCyan:D("\x1B[46m","\x1B[49m"),bgWhite:D("\x1B[47m","\x1B[49m"),blackBright:D("\x1B[90m","\x1B[39m"),redBright:D("\x1B[91m","\x1B[39m"),greenBright:D("\x1B[92m","\x1B[39m"),yellowBright:D("\x1B[93m","\x1B[39m"),blueBright:D("\x1B[94m","\x1B[39m"),magentaBright:D("\x1B[95m","\x1B[39m"),cyanBright:D("\x1B[96m","\x1B[39m"),whiteBright:D("\x1B[97m","\x1B[39m"),bgBlackBright:D("\x1B[100m","\x1B[49m"),bgRedBright:D("\x1B[101m","\x1B[49m"),bgGreenBright:D("\x1B[102m","\x1B[49m"),bgYellowBright:D("\x1B[103m","\x1B[49m"),bgBlueBright:D("\x1B[104m","\x1B[49m"),bgMagentaBright:D("\x1B[105m","\x1B[49m"),bgCyanBright:D("\x1B[106m","\x1B[49m"),bgWhiteBright:D("\x1B[107m","\x1B[49m")}},"createColors");gD.exports=Ft(),gD.exports.createColors=Ft;var ei=gD.exports,p=H(ei);function ti({onlyFirst:u=!1}={}){const D=["[\\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(D,u?void 0:"g")}s(ti,"q$1");const ni=ti();function Ct(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(ni,"")}s(Ct,"S$1");function ft(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}s(ft,"T");var dt={exports:{}};(function(u){var D={};u.exports=D,D.eastAsianWidth=function(n){var r=n.charCodeAt(0),o=n.length==2?n.charCodeAt(1):0,t=r;return 55296<=r&&r<=56319&&56320<=o&&o<=57343&&(r&=1023,o&=1023,t=r<<10|o,t+=65536),t==12288||65281<=t&&t<=65376||65504<=t&&t<=65510?"F":t==8361||65377<=t&&t<=65470||65474<=t&&t<=65479||65482<=t&&t<=65487||65490<=t&&t<=65495||65498<=t&&t<=65500||65512<=t&&t<=65518?"H":4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12289<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||110592<=t&&t<=110593||127488<=t&&t<=127490||127504<=t&&t<=127546||127552<=t&&t<=127560||127568<=t&&t<=127569||131072<=t&&t<=194367||177984<=t&&t<=196605||196608<=t&&t<=262141?"W":32<=t&&t<=126||162<=t&&t<=163||165<=t&&t<=166||t==172||t==175||10214<=t&&t<=10221||10629<=t&&t<=10630?"Na":t==161||t==164||167<=t&&t<=168||t==170||173<=t&&t<=174||176<=t&&t<=180||182<=t&&t<=186||188<=t&&t<=191||t==198||t==208||215<=t&&t<=216||222<=t&&t<=225||t==230||232<=t&&t<=234||236<=t&&t<=237||t==240||242<=t&&t<=243||247<=t&&t<=250||t==252||t==254||t==257||t==273||t==275||t==283||294<=t&&t<=295||t==299||305<=t&&t<=307||t==312||319<=t&&t<=322||t==324||328<=t&&t<=331||t==333||338<=t&&t<=339||358<=t&&t<=359||t==363||t==462||t==464||t==466||t==468||t==470||t==472||t==474||t==476||t==593||t==609||t==708||t==711||713<=t&&t<=715||t==717||t==720||728<=t&&t<=731||t==733||t==735||768<=t&&t<=879||913<=t&&t<=929||931<=t&&t<=937||945<=t&&t<=961||963<=t&&t<=969||t==1025||1040<=t&&t<=1103||t==1105||t==8208||8211<=t&&t<=8214||8216<=t&&t<=8217||8220<=t&&t<=8221||8224<=t&&t<=8226||8228<=t&&t<=8231||t==8240||8242<=t&&t<=8243||t==8245||t==8251||t==8254||t==8308||t==8319||8321<=t&&t<=8324||t==8364||t==8451||t==8453||t==8457||t==8467||t==8470||8481<=t&&t<=8482||t==8486||t==8491||8531<=t&&t<=8532||8539<=t&&t<=8542||8544<=t&&t<=8555||8560<=t&&t<=8569||t==8585||8592<=t&&t<=8601||8632<=t&&t<=8633||t==8658||t==8660||t==8679||t==8704||8706<=t&&t<=8707||8711<=t&&t<=8712||t==8715||t==8719||t==8721||t==8725||t==8730||8733<=t&&t<=8736||t==8739||t==8741||8743<=t&&t<=8748||t==8750||8756<=t&&t<=8759||8764<=t&&t<=8765||t==8776||t==8780||t==8786||8800<=t&&t<=8801||8804<=t&&t<=8807||8810<=t&&t<=8811||8814<=t&&t<=8815||8834<=t&&t<=8835||8838<=t&&t<=8839||t==8853||t==8857||t==8869||t==8895||t==8978||9312<=t&&t<=9449||9451<=t&&t<=9547||9552<=t&&t<=9587||9600<=t&&t<=9615||9618<=t&&t<=9621||9632<=t&&t<=9633||9635<=t&&t<=9641||9650<=t&&t<=9651||9654<=t&&t<=9655||9660<=t&&t<=9661||9664<=t&&t<=9665||9670<=t&&t<=9672||t==9675||9678<=t&&t<=9681||9698<=t&&t<=9701||t==9711||9733<=t&&t<=9734||t==9737||9742<=t&&t<=9743||9748<=t&&t<=9749||t==9756||t==9758||t==9792||t==9794||9824<=t&&t<=9825||9827<=t&&t<=9829||9831<=t&&t<=9834||9836<=t&&t<=9837||t==9839||9886<=t&&t<=9887||9918<=t&&t<=9919||9924<=t&&t<=9933||9935<=t&&t<=9953||t==9955||9960<=t&&t<=9983||t==10045||t==10071||10102<=t&&t<=10111||11093<=t&&t<=11097||12872<=t&&t<=12879||57344<=t&&t<=63743||65024<=t&&t<=65039||t==65533||127232<=t&&t<=127242||127248<=t&&t<=127277||127280<=t&&t<=127337||127344<=t&&t<=127386||917760<=t&&t<=917999||983040<=t&&t<=1048573||1048576<=t&&t<=1114109?"A":"N"},D.characterLength=function(n){var r=this.eastAsianWidth(n);return r=="F"||r=="W"||r=="A"?2:1};function e(n){return n.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}s(e,"F"),D.length=function(n){for(var r=e(n),o=0,t=0;t<r.length;t++)o=o+this.characterLength(r[t]);return o},D.slice=function(n,r,o){textLen=D.length(n),r=r||0,o=o||1,r<0&&(r=textLen+r),o<0&&(o=textLen+o);for(var t="",i=0,a=e(n),l=0;l<a.length;l++){var C=a[l],c=D.length(C);if(i>=r-(c==2?1:0))if(i+c<=o)t+=C;else break;i+=c}return t}})(dt);var ri=dt.exports;const oi=ft(ri);var si=s(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},"DD");const ii=ft(si);function lu(u,D={}){if(typeof u!="string"||u.length===0||(D={ambiguousIsNarrow:!0,...D},u=Ct(u),u.length===0))return 0;u=u.replace(ii()," ");const e=D.ambiguousIsNarrow?1:2;let n=0;for(const r of u){const o=r.codePointAt(0);if(!(o<=31||o>=127&&o<=159||o>=768&&o<=879))switch(oi.eastAsianWidth(r)){case"F":case"W":n+=2;break;case"A":n+=e;break;default:n+=1}}return n}s(lu,"A");const BD=10,Et=s((u=0)=>D=>`\x1B[${D+u}m`,"M"),pt=s((u=0)=>D=>`\x1B[${38+u};5;${D}m`,"P"),ht=s((u=0)=>(D,e,n)=>`\x1B[${38+u};2;${D};${e};${n}m`,"W"),B={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(B.modifier);const ai=Object.keys(B.color),ci=Object.keys(B.bgColor);[...ai,...ci];function li(){const u=new Map;for(const[D,e]of Object.entries(B)){for(const[n,r]of Object.entries(e))B[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[n]=B[n],u.set(r[0],r[1]);Object.defineProperty(B,D,{value:e,enumerable:!1})}return Object.defineProperty(B,"codes",{value:u,enumerable:!1}),B.color.close="\x1B[39m",B.bgColor.close="\x1B[49m",B.color.ansi=Et(),B.color.ansi256=pt(),B.color.ansi16m=ht(),B.bgColor.ansi=Et(BD),B.bgColor.ansi256=pt(BD),B.bgColor.ansi16m=ht(BD),Object.defineProperties(B,{rgbToAnsi256:{value:s((D,e,n)=>D===e&&e===n?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(n/255*5),"value"),enumerable:!1},hexToRgb:{value:s(D=>{const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[n]=e;n.length===3&&(n=[...n].map(o=>o+o).join(""));const r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},"value"),enumerable:!1},hexToAnsi256:{value:s(D=>B.rgbToAnsi256(...B.hexToRgb(D)),"value"),enumerable:!1},ansi256ToAnsi:{value:s(D=>{if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,n,r;if(D>=232)e=((D-232)*10+8)/255,n=e,r=e;else{D-=16;const i=D%36;e=Math.floor(D/36)/5,n=Math.floor(i/6)/5,r=i%6/5}const o=Math.max(e,n,r)*2;if(o===0)return 30;let t=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(e));return o===2&&(t+=60),t},"value"),enumerable:!1},rgbToAnsi:{value:s((D,e,n)=>B.ansi256ToAnsi(B.rgbToAnsi256(D,e,n)),"value"),enumerable:!1},hexToAnsi:{value:s(D=>B.ansi256ToAnsi(B.hexToAnsi256(D)),"value"),enumerable:!1}}),B}s(li,"tD");const Fi=li(),Ou=new Set(["\x1B","\x9B"]),Ci=39,bD="\x07",mt="[",fi="]",gt="m",yD=`${fi}8;;`,Bt=s(u=>`${Ou.values().next().value}${mt}${u}${gt}`,"N"),bt=s(u=>`${Ou.values().next().value}${yD}${u}${bD}`,"L"),di=s(u=>u.split(" ").map(D=>lu(D)),"rD"),AD=s((u,D,e)=>{const n=[...D];let r=!1,o=!1,t=lu(Ct(u[u.length-1]));for(const[i,a]of n.entries()){const l=lu(a);if(t+l<=e?u[u.length-1]+=a:(u.push(a),t=0),Ou.has(a)&&(r=!0,o=n.slice(i+1).join("").startsWith(yD)),r){o?a===bD&&(r=!1,o=!1):a===gt&&(r=!1);continue}t+=l,t===e&&i<n.length-1&&(u.push(""),t=0)}!t&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"y$1"),Ei=s(u=>{const D=u.split(" ");let e=D.length;for(;e>0&&!(lu(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},"ED"),pi=s((u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let n="",r,o;const t=di(u);let i=[""];for(const[l,C]of u.split(" ").entries()){e.trim!==!1&&(i[i.length-1]=i[i.length-1].trimStart());let c=lu(i[i.length-1]);if(l!==0&&(c>=D&&(e.wordWrap===!1||e.trim===!1)&&(i.push(""),c=0),(c>0||e.trim===!1)&&(i[i.length-1]+=" ",c++)),e.hard&&t[l]>D){const F=D-c,f=1+Math.floor((t[l]-F-1)/D);Math.floor((t[l]-1)/D)<f&&i.push(""),AD(i,C,D);continue}if(c+t[l]>D&&c>0&&t[l]>0){if(e.wordWrap===!1&&c<D){AD(i,C,D);continue}i.push("")}if(c+t[l]>D&&e.wordWrap===!1){AD(i,C,D);continue}i[i.length-1]+=C}e.trim!==!1&&(i=i.map(l=>Ei(l)));const a=[...i.join(`
|
|
28
|
+
`)];for(const[l,C]of a.entries()){if(n+=C,Ou.has(C)){const{groups:F}=new RegExp(`(?:\\${mt}(?<code>\\d+)m|\\${yD}(?<uri>.*)${bD})`).exec(a.slice(l).join(""))||{groups:{}};if(F.code!==void 0){const f=Number.parseFloat(F.code);r=f===Ci?void 0:f}else F.uri!==void 0&&(o=F.uri.length===0?void 0:F.uri)}const c=Fi.codes.get(Number(r));a[l+1]===`
|
|
29
29
|
`?(o&&(n+=bt("")),r&&c&&(n+=Bt(c))):C===`
|
|
30
|
-
`&&(r&&c&&(n+=Bt(r)),o&&(n+=bt(o)))}return n},"
|
|
30
|
+
`&&(r&&c&&(n+=Bt(r)),o&&(n+=bt(o)))}return n},"oD");function yt(u,D,e){return String(u).normalize().replace(/\r\n/g,`
|
|
31
31
|
`).split(`
|
|
32
|
-
`).map(n=>
|
|
33
|
-
`)}s(yt,"R");var
|
|
32
|
+
`).map(n=>pi(n,D,e)).join(`
|
|
33
|
+
`)}s(yt,"R");var hi=Object.defineProperty,mi=s((u,D,e)=>D in u?hi(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,"aD"),k=s((u,D,e)=>(mi(u,typeof D!="symbol"?D+"":D,e),e),"a$1");function gi(u,D){if(u===D)return;const e=u.split(`
|
|
34
34
|
`),n=D.split(`
|
|
35
|
-
`),r=[];for(let o=0;o<Math.max(e.length,n.length);o++)e[o]!==n[o]&&r.push(o);return r}s(
|
|
35
|
+
`),r=[];for(let o=0;o<Math.max(e.length,n.length);o++)e[o]!==n[o]&&r.push(o);return r}s(gi,"hD");const At=Symbol("clack:cancel");function wt(u){return u===At}s(wt,"lD");function Tu(u,D){u.isTTY&&u.setRawMode(D)}s(Tu,"v");const $t=new Map([["k","up"],["j","down"],["h","left"],["l","right"]]),Bi=new Set(["up","down","left","right","space","enter"]);let vt=(Du=class{constructor({render:D,input:e=ee,output:n=te,...r},o=!0){k(this,"input"),k(this,"output"),k(this,"rl"),k(this,"opts"),k(this,"_track",!1),k(this,"_render"),k(this,"_cursor",0),k(this,"state","initial"),k(this,"value"),k(this,"error",""),k(this,"subscribers",new Map),k(this,"_prevFrame",""),this.opts=r,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=D.bind(this),this._track=o,this.input=e,this.output=n}prompt(){const D=new mn(0);return D._write=(e,n,r)=>{this._track&&(this.value=this.rl.line.replace(/\t/g,""),this._cursor=this.rl.cursor,this.emit("value",this.value)),r()},this.input.pipe(D),this.rl=ae.createInterface({input:this.input,output:D,tabSize:2,prompt:"",escapeCodeTimeout:50}),ae.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),Tu(this.input,!0),this.output.on("resize",this.render),this.render(),new Promise((e,n)=>{this.once("submit",()=>{this.output.write(w.cursor.show),this.output.off("resize",this.render),Tu(this.input,!1),e(this.value)}),this.once("cancel",()=>{this.output.write(w.cursor.show),this.output.off("resize",this.render),Tu(this.input,!1),e(At)})})}on(D,e){const n=this.subscribers.get(D)??[];n.push({cb:e}),this.subscribers.set(D,n)}once(D,e){const n=this.subscribers.get(D)??[];n.push({cb:e,once:!0}),this.subscribers.set(D,n)}emit(D,...e){const n=this.subscribers.get(D)??[],r=[];for(const o of n)o.cb(...e),o.once&&r.push(()=>n.splice(n.indexOf(o),1));for(const o of r)o()}unsubscribe(){this.subscribers.clear()}onKeypress(D,e){if(this.state==="error"&&(this.state="active"),e?.name&&!this._track&&$t.has(e.name)&&this.emit("cursor",$t.get(e.name)),e?.name&&Bi.has(e.name)&&this.emit("cursor",e.name),D&&(D.toLowerCase()==="y"||D.toLowerCase()==="n")&&this.emit("confirm",D.toLowerCase()==="y"),D===" "&&this.opts.placeholder&&(this.value||(this.rl.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),D&&this.emit("key",D.toLowerCase()),e?.name==="return"){if(this.opts.validate){const n=this.opts.validate(this.value);n&&(this.error=n,this.state="error",this.rl.write(this.value))}this.state!=="error"&&(this.state="submit")}D===""&&(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(`
|
|
36
36
|
`),Tu(this.input,!1),this.rl.close(),this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){const D=yt(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
|
|
37
|
-
`).length-1;this.output.write(
|
|
38
|
-
`);this.output.write(r[n]),this._prevFrame=D,this.output.write(
|
|
37
|
+
`).length-1;this.output.write(w.cursor.move(-999,D*-1))}render(){const D=yt(this._render(this)??"",process.stdout.columns,{hard:!0});if(D!==this._prevFrame){if(this.state==="initial")this.output.write(w.cursor.hide);else{const e=gi(this._prevFrame,D);if(this.restoreCursor(),e&&e?.length===1){const n=e[0];this.output.write(w.cursor.move(0,n)),this.output.write(w.erase.lines(1));const r=D.split(`
|
|
38
|
+
`);this.output.write(r[n]),this._prevFrame=D,this.output.write(w.cursor.move(0,r.length-n-1));return}else if(e&&e?.length>1){const n=e[0];this.output.write(w.cursor.move(0,n)),this.output.write(w.erase.down());const r=D.split(`
|
|
39
39
|
`).slice(n);this.output.write(r.join(`
|
|
40
|
-
`)),this._prevFrame=D;return}this.output.write(
|
|
40
|
+
`)),this._prevFrame=D;return}this.output.write(w.erase.down())}this.output.write(D),this.state==="initial"&&(this.state="active"),this._prevFrame=D}}},s(Du,"x"),Du);const ZD=class ZD extends vt{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",e=>{this.output.write(w.cursor.move(0,-1)),this.value=e,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};s(ZD,"BD");let wD=ZD;var bi=Object.defineProperty,yi=s((u,D,e)=>D in u?bi(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,"yD"),xt=s((u,D,e)=>(yi(u,typeof D!="symbol"?D+"":D,e),e),"Z");let Ai=(eu=class extends vt{constructor(D){super(D,!1),xt(this,"options"),xt(this,"cursor",0),this.options=D.options,this.cursor=this.options.findIndex(({value:e})=>e===D.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",e=>{switch(e){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}},s(eu,"$D"),eu);const wi=globalThis.process.platform.startsWith("win");function $i({input:u=ee,output:D=te,overwrite:e=!0,hideCursor:n=!0}={}){const r=Eu.createInterface({input:u,output:D,prompt:"",tabSize:1});Eu.emitKeypressEvents(u,r),u.isTTY&&u.setRawMode(!0);const o=s((t,{name:i})=>{if(String(t)===""){n&&D.write(w.cursor.show),process.exit(0);return}if(!e)return;let a=i==="return"?0:-1,l=i==="return"?-1:0;Eu.moveCursor(D,a,l,()=>{Eu.clearLine(D,1,()=>{u.once("keypress",o)})})},"C");return n&&D.write(w.cursor.hide),u.once("keypress",o),()=>{u.off("keypress",o),n&&D.write(w.cursor.show),u.isTTY&&!wi&&u.setRawMode(!1),r.terminal=!1,r.close()}}s($i,"OD");function vi(){return y.platform!=="win32"?y.env.TERM!=="linux":!!y.env.CI||!!y.env.WT_SESSION||!!y.env.TERMINUS_SUBLIME||y.env.ConEmuTask==="{cmd::Cmder}"||y.env.TERM_PROGRAM==="Terminus-Sublime"||y.env.TERM_PROGRAM==="vscode"||y.env.TERM==="xterm-256color"||y.env.TERM==="alacritty"||y.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}s(vi,"q");const $D=vi(),R=s((u,D)=>$D?u:D,"o"),xi=R("\u25C6","*"),St=R("\u25A0","x"),Ot=R("\u25B2","x"),Tt=R("\u25C7","o"),Si=R("\u250C","T"),I=R("\u2502","|"),vD=R("\u2514","\u2014"),xD=R("\u25CF",">"),SD=R("\u25CB"," "),It=s(u=>{switch(u){case"initial":case"active":return p.cyan(xi);case"cancel":return p.red(St);case"error":return p.yellow(Ot);case"submit":return p.green(Tt)}},"y"),Oi=s(u=>{const D=u.active??"Yes",e=u.inactive??"No";return new wD({active:D,inactive:e,initialValue:u.initialValue??!0,render(){const n=`${p.gray(I)}
|
|
41
41
|
${It(this.state)} ${u.message}
|
|
42
42
|
`,r=this.value?D:e;switch(this.state){case"submit":return`${n}${p.gray(I)} ${p.dim(r)}`;case"cancel":return`${n}${p.gray(I)} ${p.strikethrough(p.dim(r))}
|
|
43
43
|
${p.gray(I)}`;default:return`${n}${p.cyan(I)} ${this.value?`${p.green(xD)} ${D}`:`${p.dim(SD)} ${p.dim(D)}`} ${p.dim("/")} ${this.value?`${p.dim(SD)} ${p.dim(e)}`:`${p.green(xD)} ${e}`}
|
|
44
44
|
${p.cyan(vD)}
|
|
45
|
-
`}}}).prompt()},"se"),
|
|
45
|
+
`}}}).prompt()},"se"),Ti=s(u=>{const D=s((n,r)=>{const o=n.label??String(n.value);return r==="active"?`${p.green(xD)} ${o} ${n.hint?p.dim(`(${n.hint})`):""}`:r==="selected"?`${p.dim(o)}`:r==="cancelled"?`${p.strikethrough(p.dim(o))}`:`${p.dim(SD)} ${p.dim(o)}`},"n");let e=0;return new Ai({options:u.options,initialValue:u.initialValue,render(){const n=`${p.gray(I)}
|
|
46
46
|
${It(this.state)} ${u.message}
|
|
47
47
|
`;switch(this.state){case"submit":return`${n}${p.gray(I)} ${D(this.options[this.cursor],"selected")}`;case"cancel":return`${n}${p.gray(I)} ${D(this.options[this.cursor],"cancelled")}
|
|
48
48
|
${p.gray(I)}`;default:{const r=u.maxItems===void 0?1/0:Math.max(u.maxItems,5);this.cursor>=e+r-3?e=Math.max(Math.min(this.cursor-r+3,this.options.length-r),0):this.cursor<e+2&&(e=Math.max(this.cursor-2,0));const o=r<this.options.length&&e>0,t=r<this.options.length&&e+r<this.options.length;return`${n}${p.cyan(I)} ${this.options.slice(e,e+r).map((i,a,l)=>a===0&&o||a===l.length-1&&t?p.dim("..."):D(i,a+e===this.cursor?"active":"inactive")).join(`
|
|
49
49
|
${p.cyan(I)} `)}
|
|
50
50
|
${p.cyan(vD)}
|
|
51
|
-
`}}}}).prompt()},"ie"),Pt=s((u="")=>{process.stdout.write(`${p.gray(
|
|
51
|
+
`}}}}).prompt()},"ie"),Pt=s((u="")=>{process.stdout.write(`${p.gray(Si)} ${u}
|
|
52
52
|
`)},"oe"),W=s((u="")=>{process.stdout.write(`${p.gray(I)}
|
|
53
53
|
${p.gray(vD)} ${u}
|
|
54
54
|
|
|
55
|
-
`)},"$e"),OD=s(()=>{const u=$D?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],D=$D?80:120;let e,n,r=!1,o="";const t=s((C="")=>{r=!0,e
|
|
56
|
-
`);let c=0,F=0;n=setInterval(()=>{const f=p.magenta(u[c]),d=".".repeat(Math.floor(F)).slice(0,3);process.stdout.write(
|
|
55
|
+
`)},"$e"),OD=s(()=>{const u=$D?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],D=$D?80:120;let e,n,r=!1,o="";const t=s((C="")=>{r=!0,e=$i(),o=C.replace(/\.+$/,""),process.stdout.write(`${p.gray(I)}
|
|
56
|
+
`);let c=0,F=0;n=setInterval(()=>{const f=p.magenta(u[c]),d=".".repeat(Math.floor(F)).slice(0,3);process.stdout.write(w.cursor.move(-999,0)),process.stdout.write(w.erase.down(1)),process.stdout.write(`${f} ${o}${d}`),c=c+1<u.length?c+1:0,F=F<u.length?F+.125:0},D)},"l"),i=s((C="",c=0)=>{o=C??o,r=!1,clearInterval(n);const F=c===0?p.green(Tt):c===1?p.red(St):p.red(Ot);process.stdout.write(w.cursor.move(-999,0)),process.stdout.write(w.erase.down(1)),process.stdout.write(`${F} ${o}
|
|
57
57
|
`),e()},"u"),a=s((C="")=>{o=C??o},"m"),l=s(C=>{const c=C>1?"Something went wrong":"Canceled";r&&i(c,C)},"$");return process.on("uncaughtExceptionMonitor",()=>l(2)),process.on("unhandledRejection",()=>l(2)),process.on("SIGINT",()=>l(1)),process.on("SIGTERM",()=>l(1)),process.on("exit",l),{start:t,stop:i,message:a}},"de"),XD=class XD extends Error{};s(XD,"KnownError");let S=XD;const TD=" ",Iu=s(u=>{u instanceof Error&&!(u instanceof S)&&(u.stack&&console.error(pD(u.stack.split(`
|
|
58
58
|
`).slice(1).join(`
|
|
59
59
|
`))),console.error(`
|
|
60
60
|
${TD}${pD(`aicommit v${Ie}`)}`),console.error(`
|
|
61
61
|
${TD}Please open a Bug report with the information above:`),console.error(`${TD}https://github.com/NegoZiatoR/ai-commit/issues/new/choose`))},"handleCliError"),kt=s(async()=>{const{stdout:u,failed:D}=await Z("git",["rev-parse","--show-toplevel"],{reject:!1});if(D)throw new S("The current directory must be a Git repository!");return u},"assertGitRepo"),ID=s(u=>`:(exclude)${u}`,"excludeFromDiff"),_t=["package-lock.json","*.lock"].map(ID),Rt=s(async u=>{const D=["diff","--cached","--diff-algorithm=minimal"],{stdout:e}=await Z("git",[...D,"--name-only",..._t,...u?u.map(ID):[]]);if(!e)return;const{stdout:n}=await Z("git",[...D,..._t,...u?u.map(ID):[]]);return{files:e.split(`
|
|
62
|
-
`),diff:n}},"getStagedDiff"),
|
|
62
|
+
`),diff:n}},"getStagedDiff"),Ii=s(u=>`Detected ${u.length.toLocaleString()} staged file${u.length>1?"s":""}`,"getDetectedMessage"),{hasOwnProperty:PD}=Object.prototype,kD=s((u,D={})=>{typeof D=="string"&&(D={section:D}),D.align=D.align===!0,D.newline=D.newline===!0,D.sort=D.sort===!0,D.whitespace=D.whitespace===!0||D.align===!0,D.platform=D.platform||typeof process<"u"&&process.platform,D.bracketedArray=D.bracketedArray!==!1;const e=D.platform==="win32"?`\r
|
|
63
63
|
`:`
|
|
64
|
-
`,n=D.whitespace?" = ":"=",r=[],o=D.sort?Object.keys(u).sort():Object.keys(u);let t=0;D.align&&(t=M(o.filter(l=>u[l]===null||Array.isArray(u[l])||typeof u[l]!="object").map(l=>Array.isArray(u[l])?`${l}[]`:l).concat([""]).reduce((l,C)=>M(l).length>=M(C).length?l:C)).length);let i="";const a=D.bracketedArray?"[]":"";for(const l of o){const C=u[l];if(C&&Array.isArray(C))for(const c of C)i+=M(`${l}${a}`).padEnd(t," ")+n+M(c)+e;else C&&typeof C=="object"?r.push(l):i+=M(l).padEnd(t," ")+n+M(C)+e}D.section&&i.length&&(i="["+M(D.section)+"]"+(D.newline?e+e:e)+i);for(const l of r){const C=Mt(l,".").join("\\."),c=(D.section?D.section+".":"")+C,F=kD(u[l],{...D,section:c});i.length&&F.length&&(i+=e),i+=F}return i},"encode");function Mt(u,D){var e=0,n=0,r=0,o=[];do if(r=u.indexOf(D,e),r!==-1){if(e=r+D.length,r>0&&u[r-1]==="\\")continue;o.push(u.slice(n,r)),n=r+D.length}while(r!==-1);return o.push(u.slice(n)),o}s(Mt,"splitSections");const jt=s((u,D={})=>{D.bracketedArray=D.bracketedArray!==!1;const e=Object.create(null);let n=e,r=null;const o=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,t=u.split(/[\r\n]+/g),i={};for(const l of t){if(!l||l.match(/^\s*[;#]/)||l.match(/^\s*$/))continue;const C=l.match(o);if(!C)continue;if(C[1]!==void 0){if(r=Pu(C[1]),r==="__proto__"){n=Object.create(null);continue}n=e[r]=e[r]||Object.create(null);continue}const c=Pu(C[2]);let F;D.bracketedArray?F=c.length>2&&c.slice(-2)==="[]":(i[c]=(i?.[c]||0)+1,F=i[c]>1);const f=F&&c.endsWith("[]")?c.slice(0,-2):c;if(f==="__proto__")continue;const d=C[3]?Pu(C[4]):!0,E=d==="true"||d==="false"||d==="null"?JSON.parse(d):d;F&&(PD.call(n,f)?Array.isArray(n[f])||(n[f]=[n[f]]):n[f]=[]),Array.isArray(n[f])?n[f].push(E):n[f]=E}const a=[];for(const l of Object.keys(e)){if(!PD.call(e,l)||typeof e[l]!="object"||Array.isArray(e[l]))continue;const C=Mt(l,".");n=e;const c=C.pop(),F=c.replace(/\\\./g,".");for(const f of C)f!=="__proto__"&&((!PD.call(n,f)||typeof n[f]!="object")&&(n[f]=Object.create(null)),n=n[f]);n===e&&F===c||(n[F]=e[l],a.push(l))}for(const l of a)delete e[l];return e},"decode"),Nt=s(u=>u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'"),"isQuoted"),M=s(u=>typeof u!="string"||u.match(/[=\r\n]/)||u.match(/^\[/)||u.length>1&&Nt(u)||u!==u.trim()?JSON.stringify(u):u.split(";").join("\\;").split("#").join("\\#"),"safe"),Pu=s(u=>{if(u=(u||"").trim(),Nt(u)){u.charAt(0)==="'"&&(u=u.slice(1,-1));try{u=JSON.parse(u)}catch{}}else{let D=!1,e="";for(let n=0,r=u.length;n<r;n++){const o=u.charAt(n);if(D)"\\;#".indexOf(o)!==-1?e+=o:e+="\\"+o,D=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?D=!0:e+=o}}return D&&(e+="\\"),e.trim()}return u},"unsafe");var Ii={parse:jt,decode:jt,stringify:kD,encode:kD,safe:M,unsafe:Pu},Lt=H(Ii);const Gt=s(u=>T.lstat(u).then(()=>!0,()=>!1),"fileExists"),Pi=["","conventional"],{hasOwnProperty:ki}=Object.prototype,Wt=s((u,D)=>ki.call(u,D),"hasOwn"),x=s((u,D,e)=>{if(!D)throw new S(`Invalid config property ${u}: ${e}`)},"parseAssert"),ku={OPENAI_KEY(u){if(!u)throw new S("Please set your OpenAI API key via `aicommit config set OPENAI_KEY=<your token>`");return x("OPENAI_KEY",u.startsWith("sk-"),'Must start with "sk-"'),u},locale(u){return u?(x("locale",u,"Cannot be empty"),x("locale",/^[a-z-]+$/i.test(u),"Must be a valid locale (letters and dashes/underscores). You can consult the list of codes in: https://wikipedia.org/wiki/List_of_ISO_639-1_codes"),u):"en"},generate(u){if(!u)return 1;x("generate",/^\d+$/.test(u),"Must be an integer");const D=Number(u);return x("generate",D>0,"Must be greater than 0"),x("generate",D<=5,"Must be less or equal to 5"),D},type(u){return u?(x("type",Pi.includes(u),"Invalid commit type"),u):""},proxy(u){if(!(!u||u.length===0))return x("proxy",/^https?:\/\//.test(u),"Must be a valid URL"),u},model(u){return!u||u.length===0?"gpt-4o-mini":u},timeout(u){if(!u)return 1e4;x("timeout",/^\d+$/.test(u),"Must be an integer");const D=Number(u);return x("timeout",D>=500,"Must be greater than 500ms"),D},temperature(u){if(!u)return .2;x("temperature",/^(2|\d)(\.\d{1,2})?$/.test(u),"Must be decimal between 0 and 2");const D=Number(u);return x("temperature",D>0,"Must be greater than 0"),x("temperature",D<=2,"Must be less than or equal to 2"),D},"max-length"(u){if(!u)return 50;x("max-length",/^\d+$/.test(u),"Must be an integer");const D=Number(u);return x("max-length",D>=20,"Must be greater than 20 characters"),D},"auto-confirm"(u){return u?typeof u=="boolean"?u:(x("auto-confirm",/^(?:true|false)$/.test(u),"Must be a boolean"),u==="true"):!1},"prepend-reference"(u){return u?typeof u=="boolean"?u:(x("prepend-reference",/^(?:true|false)$/.test(u),"Must be a boolean"),u==="true"):!1}},_D=q.join(ce.homedir(),".aicommit"),Ut=s(async()=>{if(!await Gt(_D))return Object.create(null);const D=await T.readFile(_D,"utf8");return Lt.parse(D)},"readConfigFile"),RD=s(async(u,D)=>{const e=await Ut(),n={};for(const r of Object.keys(ku)){const o=ku[r],t=u?.[r]??e[r];if(D)try{n[r]=o(t)}catch{}else n[r]=o(t)}return n},"getConfig"),_i=s(async u=>{const D=await Ut();for(const[e,n]of u){if(!Wt(ku,e))throw new S(`Invalid config property: ${e}`);const r=ku[e](n);D[e]=r}await T.writeFile(_D,Lt.stringify(D),"utf8")},"setConfigs");var MD={},jD={exports:{}},_u={exports:{}},ND,zt;function Ri(){if(zt)return ND;zt=1;var u=1e3,D=u*60,e=D*60,n=e*24,r=n*7,o=n*365.25;ND=s(function(C,c){c=c||{};var F=typeof C;if(F==="string"&&C.length>0)return t(C);if(F==="number"&&isFinite(C))return c.long?a(C):i(C);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(C))},"ms");function t(C){if(C=String(C),!(C.length>100)){var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(C);if(c){var F=parseFloat(c[1]),f=(c[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return F*o;case"weeks":case"week":case"w":return F*r;case"days":case"day":case"d":return F*n;case"hours":case"hour":case"hrs":case"hr":case"h":return F*e;case"minutes":case"minute":case"mins":case"min":case"m":return F*D;case"seconds":case"second":case"secs":case"sec":case"s":return F*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return F;default:return}}}}s(t,"parse");function i(C){var c=Math.abs(C);return c>=n?Math.round(C/n)+"d":c>=e?Math.round(C/e)+"h":c>=D?Math.round(C/D)+"m":c>=u?Math.round(C/u)+"s":C+"ms"}s(i,"fmtShort");function a(C){var c=Math.abs(C);return c>=n?l(C,c,n,"day"):c>=e?l(C,c,e,"hour"):c>=D?l(C,c,D,"minute"):c>=u?l(C,c,u,"second"):C+" ms"}s(a,"fmtLong");function l(C,c,F,f){var d=c>=F*1.5;return Math.round(C/F)+" "+f+(d?"s":"")}return s(l,"plural"),ND}s(Ri,"requireMs");var LD,qt;function Ht(){if(qt)return LD;qt=1;function u(D){n.debug=n,n.default=n,n.coerce=l,n.disable=t,n.enable=o,n.enabled=i,n.humanize=Ri(),n.destroy=C,Object.keys(D).forEach(c=>{n[c]=D[c]}),n.names=[],n.skips=[],n.formatters={};function e(c){let F=0;for(let f=0;f<c.length;f++)F=(F<<5)-F+c.charCodeAt(f),F|=0;return n.colors[Math.abs(F)%n.colors.length]}s(e,"selectColor"),n.selectColor=e;function n(c){let F,f=null,d,E;function h(...m){if(!h.enabled)return;const w=h,P=Number(new Date),du=P-(F||P);w.diff=du,w.prev=F,w.curr=P,F=P,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let j=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(U,sn)=>{if(U==="%%")return"%";j++;const ue=n.formatters[sn];if(typeof ue=="function"){const an=m[j];U=ue.call(w,an),m.splice(j,1),j--}return U}),n.formatArgs.call(w,m),(w.log||n.log).apply(w,m)}return s(h,"debug"),h.namespace=c,h.useColors=n.useColors(),h.color=n.selectColor(c),h.extend=r,h.destroy=n.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:s(()=>f!==null?f:(d!==n.namespaces&&(d=n.namespaces,E=n.enabled(c)),E),"get"),set:s(m=>{f=m},"set")}),typeof n.init=="function"&&n.init(h),h}s(n,"createDebug");function r(c,F){const f=n(this.namespace+(typeof F>"u"?":":F)+c);return f.log=this.log,f}s(r,"extend");function o(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let F;const f=(typeof c=="string"?c:"").split(/[\s,]+/),d=f.length;for(F=0;F<d;F++)f[F]&&(c=f[F].replace(/\*/g,".*?"),c[0]==="-"?n.skips.push(new RegExp("^"+c.slice(1)+"$")):n.names.push(new RegExp("^"+c+"$")))}s(o,"enable");function t(){const c=[...n.names.map(a),...n.skips.map(a).map(F=>"-"+F)].join(",");return n.enable(""),c}s(t,"disable");function i(c){if(c[c.length-1]==="*")return!0;let F,f;for(F=0,f=n.skips.length;F<f;F++)if(n.skips[F].test(c))return!1;for(F=0,f=n.names.length;F<f;F++)if(n.names[F].test(c))return!0;return!1}s(i,"enabled");function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}s(a,"toNamespace");function l(c){return c instanceof Error?c.stack||c.message:c}s(l,"coerce");function C(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s(C,"destroy"),n.enable(n.load()),n}return s(u,"setup"),LD=u,LD}s(Ht,"requireCommon");var Yt;function Mi(){return Yt||(Yt=1,function(u,D){D.formatArgs=n,D.save=r,D.load=o,D.useColors=e,D.storage=t(),D.destroy=(()=>{let a=!1;return()=>{a||(a=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),D.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function e(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let a;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}s(e,"useColors");function n(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+u.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;a.splice(1,0,l,"color: inherit");let C=0,c=0;a[0].replace(/%[a-zA-Z%]/g,F=>{F!=="%%"&&(C++,F==="%c"&&(c=C))}),a.splice(c,0,l)}s(n,"formatArgs"),D.log=console.debug||console.log||(()=>{});function r(a){try{a?D.storage.setItem("debug",a):D.storage.removeItem("debug")}catch{}}s(r,"save");function o(){let a;try{a=D.storage.getItem("debug")}catch{}return!a&&typeof process<"u"&&"env"in process&&(a=process.env.DEBUG),a}s(o,"load");function t(){try{return localStorage}catch{}}s(t,"localstorage"),u.exports=Ht()(D);const{formatters:i}=u.exports;i.j=function(a){try{return JSON.stringify(a)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(_u,_u.exports)),_u.exports}s(Mi,"requireBrowser");var Ru={exports:{}},GD,Kt;function ji(){return Kt||(Kt=1,GD=s((u,D=process.argv)=>{const e=u.startsWith("-")?"":u.length===1?"-":"--",n=D.indexOf(e+u),r=D.indexOf("--");return n!==-1&&(r===-1||n<r)},"hasFlag")),GD}s(ji,"requireHasFlag");var WD,Vt;function Ni(){if(Vt)return WD;Vt=1;const u=ce,D=Lu,e=ji(),{env:n}=process;let r;e("no-color")||e("no-colors")||e("color=false")||e("color=never")?r=0:(e("color")||e("colors")||e("color=true")||e("color=always"))&&(r=1),"FORCE_COLOR"in n&&(n.FORCE_COLOR==="true"?r=1:n.FORCE_COLOR==="false"?r=0:r=n.FORCE_COLOR.length===0?1:Math.min(parseInt(n.FORCE_COLOR,10),3));function o(a){return a===0?!1:{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}s(o,"translateLevel");function t(a,l){if(r===0)return 0;if(e("color=16m")||e("color=full")||e("color=truecolor"))return 3;if(e("color=256"))return 2;if(a&&!l&&r===void 0)return 0;const C=r||0;if(n.TERM==="dumb")return C;if(process.platform==="win32"){const c=u.release().split(".");return Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(c=>c in n)||n.CI_NAME==="codeship"?1:C;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if(n.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in n){const c=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:C}s(t,"supportsColor");function i(a){const l=t(a,a&&a.isTTY);return o(l)}return s(i,"getSupportLevel"),WD={supportsColor:i,stdout:o(t(!0,D.isatty(1))),stderr:o(t(!0,D.isatty(2)))},WD}s(Ni,"requireSupportsColor");var Jt;function Li(){return Jt||(Jt=1,function(u,D){const e=Lu,n=ie;D.init=C,D.log=i,D.formatArgs=o,D.save=a,D.load=l,D.useColors=r,D.destroy=n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),D.colors=[6,2,3,4,5,1];try{const F=Ni();F&&(F.stderr||F).level>=2&&(D.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}D.inspectOpts=Object.keys(process.env).filter(F=>/^debug_/i.test(F)).reduce((F,f)=>{const d=f.substring(6).toLowerCase().replace(/_([a-z])/g,(h,m)=>m.toUpperCase());let E=process.env[f];return/^(yes|on|true|enabled)$/i.test(E)?E=!0:/^(no|off|false|disabled)$/i.test(E)?E=!1:E==="null"?E=null:E=Number(E),F[d]=E,F},{});function r(){return"colors"in D.inspectOpts?!!D.inspectOpts.colors:e.isatty(process.stderr.fd)}s(r,"useColors");function o(F){const{namespace:f,useColors:d}=this;if(d){const E=this.color,h="\x1B[3"+(E<8?E:"8;5;"+E),m=` ${h};1m${f} \x1B[0m`;F[0]=m+F[0].split(`
|
|
64
|
+
`,n=D.whitespace?" = ":"=",r=[],o=D.sort?Object.keys(u).sort():Object.keys(u);let t=0;D.align&&(t=M(o.filter(l=>u[l]===null||Array.isArray(u[l])||typeof u[l]!="object").map(l=>Array.isArray(u[l])?`${l}[]`:l).concat([""]).reduce((l,C)=>M(l).length>=M(C).length?l:C)).length);let i="";const a=D.bracketedArray?"[]":"";for(const l of o){const C=u[l];if(C&&Array.isArray(C))for(const c of C)i+=M(`${l}${a}`).padEnd(t," ")+n+M(c)+e;else C&&typeof C=="object"?r.push(l):i+=M(l).padEnd(t," ")+n+M(C)+e}D.section&&i.length&&(i="["+M(D.section)+"]"+(D.newline?e+e:e)+i);for(const l of r){const C=Mt(l,".").join("\\."),c=(D.section?D.section+".":"")+C,F=kD(u[l],{...D,section:c});i.length&&F.length&&(i+=e),i+=F}return i},"encode");function Mt(u,D){var e=0,n=0,r=0,o=[];do if(r=u.indexOf(D,e),r!==-1){if(e=r+D.length,r>0&&u[r-1]==="\\")continue;o.push(u.slice(n,r)),n=r+D.length}while(r!==-1);return o.push(u.slice(n)),o}s(Mt,"splitSections");const jt=s((u,D={})=>{D.bracketedArray=D.bracketedArray!==!1;const e=Object.create(null);let n=e,r=null;const o=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,t=u.split(/[\r\n]+/g),i={};for(const l of t){if(!l||l.match(/^\s*[;#]/)||l.match(/^\s*$/))continue;const C=l.match(o);if(!C)continue;if(C[1]!==void 0){if(r=Pu(C[1]),r==="__proto__"){n=Object.create(null);continue}n=e[r]=e[r]||Object.create(null);continue}const c=Pu(C[2]);let F;D.bracketedArray?F=c.length>2&&c.slice(-2)==="[]":(i[c]=(i?.[c]||0)+1,F=i[c]>1);const f=F&&c.endsWith("[]")?c.slice(0,-2):c;if(f==="__proto__")continue;const d=C[3]?Pu(C[4]):!0,E=d==="true"||d==="false"||d==="null"?JSON.parse(d):d;F&&(PD.call(n,f)?Array.isArray(n[f])||(n[f]=[n[f]]):n[f]=[]),Array.isArray(n[f])?n[f].push(E):n[f]=E}const a=[];for(const l of Object.keys(e)){if(!PD.call(e,l)||typeof e[l]!="object"||Array.isArray(e[l]))continue;const C=Mt(l,".");n=e;const c=C.pop(),F=c.replace(/\\\./g,".");for(const f of C)f!=="__proto__"&&((!PD.call(n,f)||typeof n[f]!="object")&&(n[f]=Object.create(null)),n=n[f]);n===e&&F===c||(n[F]=e[l],a.push(l))}for(const l of a)delete e[l];return e},"decode"),Nt=s(u=>u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'"),"isQuoted"),M=s(u=>typeof u!="string"||u.match(/[=\r\n]/)||u.match(/^\[/)||u.length>1&&Nt(u)||u!==u.trim()?JSON.stringify(u):u.split(";").join("\\;").split("#").join("\\#"),"safe"),Pu=s(u=>{if(u=(u||"").trim(),Nt(u)){u.charAt(0)==="'"&&(u=u.slice(1,-1));try{u=JSON.parse(u)}catch{}}else{let D=!1,e="";for(let n=0,r=u.length;n<r;n++){const o=u.charAt(n);if(D)"\\;#".indexOf(o)!==-1?e+=o:e+="\\"+o,D=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?D=!0:e+=o}}return D&&(e+="\\"),e.trim()}return u},"unsafe");var Pi={parse:jt,decode:jt,stringify:kD,encode:kD,safe:M,unsafe:Pu},Lt=H(Pi);const Gt=s(u=>T.lstat(u).then(()=>!0,()=>!1),"fileExists"),ki=["","conventional"],{hasOwnProperty:_i}=Object.prototype,Wt=s((u,D)=>_i.call(u,D),"hasOwn"),x=s((u,D,e)=>{if(!D)throw new S(`Invalid config property ${u}: ${e}`)},"parseAssert"),ku={OPENAI_KEY(u){if(!u)throw new S("Please set your OpenAI API key via `aicommit config set OPENAI_KEY=<your token>`");return x("OPENAI_KEY",u.startsWith("sk-"),'Must start with "sk-"'),u},locale(u){return u?(x("locale",u,"Cannot be empty"),x("locale",/^[a-z-]+$/i.test(u),"Must be a valid locale (letters and dashes/underscores). You can consult the list of codes in: https://wikipedia.org/wiki/List_of_ISO_639-1_codes"),u):"en"},generate(u){if(!u)return 1;x("generate",/^\d+$/.test(u),"Must be an integer");const D=Number(u);return x("generate",D>0,"Must be greater than 0"),x("generate",D<=5,"Must be less or equal to 5"),D},type(u){return u?(x("type",ki.includes(u),"Invalid commit type"),u):""},proxy(u){if(!(!u||u.length===0))return x("proxy",/^https?:\/\//.test(u),"Must be a valid URL"),u},model(u){return!u||u.length===0?"gpt-4o-mini":u},timeout(u){if(!u)return 1e4;x("timeout",/^\d+$/.test(u),"Must be an integer");const D=Number(u);return x("timeout",D>=500,"Must be greater than 500ms"),D},temperature(u){if(!u)return .2;x("temperature",/^(2|\d)(\.\d{1,2})?$/.test(u),"Must be decimal between 0 and 2");const D=Number(u);return x("temperature",D>0,"Must be greater than 0"),x("temperature",D<=2,"Must be less than or equal to 2"),D},"max-length"(u){if(!u)return 50;x("max-length",/^\d+$/.test(u),"Must be an integer");const D=Number(u);return x("max-length",D>=20,"Must be greater than 20 characters"),D},"auto-confirm"(u){return u?typeof u=="boolean"?u:(x("auto-confirm",/^(?:true|false)$/.test(u),"Must be a boolean"),u==="true"):!1},"prepend-reference"(u){return u?typeof u=="boolean"?u:(x("prepend-reference",/^(?:true|false)$/.test(u),"Must be a boolean"),u==="true"):!1}},_D=q.join(ce.homedir(),".aicommit"),Ut=s(async()=>{if(!await Gt(_D))return Object.create(null);const D=await T.readFile(_D,"utf8");return Lt.parse(D)},"readConfigFile"),RD=s(async(u,D)=>{const e=await Ut(),n={};for(const r of Object.keys(ku)){const o=ku[r],t=u?.[r]??e[r];if(D)try{n[r]=o(t)}catch{}else n[r]=o(t)}return n},"getConfig"),Ri=s(async u=>{const D=await Ut();for(const[e,n]of u){if(!Wt(ku,e))throw new S(`Invalid config property: ${e}`);const r=ku[e](n);D[e]=r}await T.writeFile(_D,Lt.stringify(D),"utf8")},"setConfigs");var MD={},jD={exports:{}},_u={exports:{}},ND,zt;function Mi(){if(zt)return ND;zt=1;var u=1e3,D=u*60,e=D*60,n=e*24,r=n*7,o=n*365.25;ND=s(function(C,c){c=c||{};var F=typeof C;if(F==="string"&&C.length>0)return t(C);if(F==="number"&&isFinite(C))return c.long?a(C):i(C);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(C))},"ms");function t(C){if(C=String(C),!(C.length>100)){var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(C);if(c){var F=parseFloat(c[1]),f=(c[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return F*o;case"weeks":case"week":case"w":return F*r;case"days":case"day":case"d":return F*n;case"hours":case"hour":case"hrs":case"hr":case"h":return F*e;case"minutes":case"minute":case"mins":case"min":case"m":return F*D;case"seconds":case"second":case"secs":case"sec":case"s":return F*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return F;default:return}}}}s(t,"parse");function i(C){var c=Math.abs(C);return c>=n?Math.round(C/n)+"d":c>=e?Math.round(C/e)+"h":c>=D?Math.round(C/D)+"m":c>=u?Math.round(C/u)+"s":C+"ms"}s(i,"fmtShort");function a(C){var c=Math.abs(C);return c>=n?l(C,c,n,"day"):c>=e?l(C,c,e,"hour"):c>=D?l(C,c,D,"minute"):c>=u?l(C,c,u,"second"):C+" ms"}s(a,"fmtLong");function l(C,c,F,f){var d=c>=F*1.5;return Math.round(C/F)+" "+f+(d?"s":"")}return s(l,"plural"),ND}s(Mi,"requireMs");var LD,qt;function Ht(){if(qt)return LD;qt=1;function u(D){n.debug=n,n.default=n,n.coerce=l,n.disable=t,n.enable=o,n.enabled=i,n.humanize=Mi(),n.destroy=C,Object.keys(D).forEach(c=>{n[c]=D[c]}),n.names=[],n.skips=[],n.formatters={};function e(c){let F=0;for(let f=0;f<c.length;f++)F=(F<<5)-F+c.charCodeAt(f),F|=0;return n.colors[Math.abs(F)%n.colors.length]}s(e,"selectColor"),n.selectColor=e;function n(c){let F,f=null,d,E;function h(...m){if(!h.enabled)return;const $=h,P=Number(new Date),du=P-(F||P);$.diff=du,$.prev=F,$.curr=P,F=P,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let j=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(U,sn)=>{if(U==="%%")return"%";j++;const ue=n.formatters[sn];if(typeof ue=="function"){const an=m[j];U=ue.call($,an),m.splice(j,1),j--}return U}),n.formatArgs.call($,m),($.log||n.log).apply($,m)}return s(h,"debug"),h.namespace=c,h.useColors=n.useColors(),h.color=n.selectColor(c),h.extend=r,h.destroy=n.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:s(()=>f!==null?f:(d!==n.namespaces&&(d=n.namespaces,E=n.enabled(c)),E),"get"),set:s(m=>{f=m},"set")}),typeof n.init=="function"&&n.init(h),h}s(n,"createDebug");function r(c,F){const f=n(this.namespace+(typeof F>"u"?":":F)+c);return f.log=this.log,f}s(r,"extend");function o(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let F;const f=(typeof c=="string"?c:"").split(/[\s,]+/),d=f.length;for(F=0;F<d;F++)f[F]&&(c=f[F].replace(/\*/g,".*?"),c[0]==="-"?n.skips.push(new RegExp("^"+c.slice(1)+"$")):n.names.push(new RegExp("^"+c+"$")))}s(o,"enable");function t(){const c=[...n.names.map(a),...n.skips.map(a).map(F=>"-"+F)].join(",");return n.enable(""),c}s(t,"disable");function i(c){if(c[c.length-1]==="*")return!0;let F,f;for(F=0,f=n.skips.length;F<f;F++)if(n.skips[F].test(c))return!1;for(F=0,f=n.names.length;F<f;F++)if(n.names[F].test(c))return!0;return!1}s(i,"enabled");function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}s(a,"toNamespace");function l(c){return c instanceof Error?c.stack||c.message:c}s(l,"coerce");function C(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s(C,"destroy"),n.enable(n.load()),n}return s(u,"setup"),LD=u,LD}s(Ht,"requireCommon");var Yt;function ji(){return Yt||(Yt=1,function(u,D){D.formatArgs=n,D.save=r,D.load=o,D.useColors=e,D.storage=t(),D.destroy=(()=>{let a=!1;return()=>{a||(a=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),D.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function e(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let a;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}s(e,"useColors");function n(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+u.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;a.splice(1,0,l,"color: inherit");let C=0,c=0;a[0].replace(/%[a-zA-Z%]/g,F=>{F!=="%%"&&(C++,F==="%c"&&(c=C))}),a.splice(c,0,l)}s(n,"formatArgs"),D.log=console.debug||console.log||(()=>{});function r(a){try{a?D.storage.setItem("debug",a):D.storage.removeItem("debug")}catch{}}s(r,"save");function o(){let a;try{a=D.storage.getItem("debug")}catch{}return!a&&typeof process<"u"&&"env"in process&&(a=process.env.DEBUG),a}s(o,"load");function t(){try{return localStorage}catch{}}s(t,"localstorage"),u.exports=Ht()(D);const{formatters:i}=u.exports;i.j=function(a){try{return JSON.stringify(a)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(_u,_u.exports)),_u.exports}s(ji,"requireBrowser");var Ru={exports:{}},GD,Kt;function Ni(){return Kt||(Kt=1,GD=s((u,D=process.argv)=>{const e=u.startsWith("-")?"":u.length===1?"-":"--",n=D.indexOf(e+u),r=D.indexOf("--");return n!==-1&&(r===-1||n<r)},"hasFlag")),GD}s(Ni,"requireHasFlag");var WD,Vt;function Li(){if(Vt)return WD;Vt=1;const u=ce,D=Lu,e=Ni(),{env:n}=process;let r;e("no-color")||e("no-colors")||e("color=false")||e("color=never")?r=0:(e("color")||e("colors")||e("color=true")||e("color=always"))&&(r=1),"FORCE_COLOR"in n&&(n.FORCE_COLOR==="true"?r=1:n.FORCE_COLOR==="false"?r=0:r=n.FORCE_COLOR.length===0?1:Math.min(parseInt(n.FORCE_COLOR,10),3));function o(a){return a===0?!1:{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}s(o,"translateLevel");function t(a,l){if(r===0)return 0;if(e("color=16m")||e("color=full")||e("color=truecolor"))return 3;if(e("color=256"))return 2;if(a&&!l&&r===void 0)return 0;const C=r||0;if(n.TERM==="dumb")return C;if(process.platform==="win32"){const c=u.release().split(".");return Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(c=>c in n)||n.CI_NAME==="codeship"?1:C;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if(n.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in n){const c=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:C}s(t,"supportsColor");function i(a){const l=t(a,a&&a.isTTY);return o(l)}return s(i,"getSupportLevel"),WD={supportsColor:i,stdout:o(t(!0,D.isatty(1))),stderr:o(t(!0,D.isatty(2)))},WD}s(Li,"requireSupportsColor");var Jt;function Gi(){return Jt||(Jt=1,function(u,D){const e=Lu,n=ie;D.init=C,D.log=i,D.formatArgs=o,D.save=a,D.load=l,D.useColors=r,D.destroy=n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),D.colors=[6,2,3,4,5,1];try{const F=Li();F&&(F.stderr||F).level>=2&&(D.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}D.inspectOpts=Object.keys(process.env).filter(F=>/^debug_/i.test(F)).reduce((F,f)=>{const d=f.substring(6).toLowerCase().replace(/_([a-z])/g,(h,m)=>m.toUpperCase());let E=process.env[f];return/^(yes|on|true|enabled)$/i.test(E)?E=!0:/^(no|off|false|disabled)$/i.test(E)?E=!1:E==="null"?E=null:E=Number(E),F[d]=E,F},{});function r(){return"colors"in D.inspectOpts?!!D.inspectOpts.colors:e.isatty(process.stderr.fd)}s(r,"useColors");function o(F){const{namespace:f,useColors:d}=this;if(d){const E=this.color,h="\x1B[3"+(E<8?E:"8;5;"+E),m=` ${h};1m${f} \x1B[0m`;F[0]=m+F[0].split(`
|
|
65
65
|
`).join(`
|
|
66
66
|
`+m),F.push(h+"m+"+u.exports.humanize(this.diff)+"\x1B[0m")}else F[0]=t()+f+" "+F[0]}s(o,"formatArgs");function t(){return D.inspectOpts.hideDate?"":new Date().toISOString()+" "}s(t,"getDate");function i(...F){return process.stderr.write(n.formatWithOptions(D.inspectOpts,...F)+`
|
|
67
67
|
`)}s(i,"log");function a(F){F?process.env.DEBUG=F:delete process.env.DEBUG}s(a,"save");function l(){return process.env.DEBUG}s(l,"load");function C(F){F.inspectOpts={};const f=Object.keys(D.inspectOpts);for(let d=0;d<f.length;d++)F.inspectOpts[f[d]]=D.inspectOpts[f[d]]}s(C,"init"),u.exports=Ht()(D);const{formatters:c}=u.exports;c.o=function(F){return this.inspectOpts.colors=this.useColors,n.inspect(F,this.inspectOpts).split(`
|
|
68
|
-
`).map(f=>f.trim()).join(" ")},c.O=function(F){return this.inspectOpts.colors=this.useColors,n.inspect(F,this.inspectOpts)}}(Ru,Ru.exports)),Ru.exports}s(
|
|
69
|
-
`).some(D=>D.indexOf("(https.js:")!==-1||D.indexOf("node:https:")!==-1)}s(qD,"isSecureEndpoint");function Mu(u,D){return new Mu.Agent(u,D)}s(Mu,"createAgent"),function(u){const e=class e extends
|
|
68
|
+
`).map(f=>f.trim()).join(" ")},c.O=function(F){return this.inspectOpts.colors=this.useColors,n.inspect(F,this.inspectOpts)}}(Ru,Ru.exports)),Ru.exports}s(Gi,"requireNode"),typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?jD.exports=ji():jD.exports=Gi();var UD=jD.exports,zD={};Object.defineProperty(zD,"__esModule",{value:!0});function Wi(u){return function(D,e){return new Promise((n,r)=>{u.call(this,D,e,(o,t)=>{o?r(o):n(t)})})}}s(Wi,"promisify"),zD.default=Wi;var Zt=A&&A.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};const Ui=se,zi=Zt(UD),qi=Zt(zD),Fu=zi.default("agent-base");function Hi(u){return!!u&&typeof u.addRequest=="function"}s(Hi,"isAgent");function qD(){const{stack:u}=new Error;return typeof u!="string"?!1:u.split(`
|
|
69
|
+
`).some(D=>D.indexOf("(https.js:")!==-1||D.indexOf("node:https:")!==-1)}s(qD,"isSecureEndpoint");function Mu(u,D){return new Mu.Agent(u,D)}s(Mu,"createAgent"),function(u){const e=class e extends Ui.EventEmitter{constructor(r,o){super();let t=o;typeof r=="function"?this.callback=r:r&&(t=r),this.timeout=null,t&&typeof t.timeout=="number"&&(this.timeout=t.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:qD()?443:80}set defaultPort(r){this.explicitDefaultPort=r}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:qD()?"https:":"http:"}set protocol(r){this.explicitProtocol=r}callback(r,o,t){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(r,o){const t=Object.assign({},o);typeof t.secureEndpoint!="boolean"&&(t.secureEndpoint=qD()),t.host==null&&(t.host="localhost"),t.port==null&&(t.port=t.secureEndpoint?443:80),t.protocol==null&&(t.protocol=t.secureEndpoint?"https:":"http:"),t.host&&t.path&&delete t.path,delete t.agent,delete t.hostname,delete t._defaultAgent,delete t.defaultPort,delete t.createConnection,r._last=!0,r.shouldKeepAlive=!1;let i=!1,a=null;const l=t.timeout||this.timeout,C=s(d=>{r._hadError||(r.emit("error",d),r._hadError=!0)},"onerror"),c=s(()=>{a=null,i=!0;const d=new Error(`A "socket" was not created for HTTP request before ${l}ms`);d.code="ETIMEOUT",C(d)},"ontimeout"),F=s(d=>{i||(a!==null&&(clearTimeout(a),a=null),C(d))},"callbackError"),f=s(d=>{if(i)return;if(a!=null&&(clearTimeout(a),a=null),Hi(d)){Fu("Callback returned another Agent instance %o",d.constructor.name),d.addRequest(r,t);return}if(d){d.once("free",()=>{this.freeSocket(d,t)}),r.onSocket(d);return}const E=new Error(`no Duplex stream was returned to agent-base for \`${r.method} ${r.path}\``);C(E)},"onsocket");if(typeof this.callback!="function"){C(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(Fu("Converting legacy callback function to promise"),this.promisifiedCallback=qi.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(a=setTimeout(c,l)),"port"in t&&typeof t.port!="number"&&(t.port=Number(t.port));try{Fu("Resolving socket for %o request: %o",t.protocol,`${r.method} ${r.path}`),Promise.resolve(this.promisifiedCallback(r,t)).then(f,F)}catch(d){Promise.reject(d).catch(F)}}freeSocket(r,o){Fu("Freeing socket %o %o",r.constructor.name,o),r.destroy()}destroy(){Fu("Destroying agent %o",this.constructor.name)}};s(e,"Agent");let D=e;u.Agent=D,u.prototype=u.Agent.prototype}(Mu||(Mu={}));var Yi=Mu,HD={},Ki=A&&A.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(HD,"__esModule",{value:!0});const Vi=Ki(UD),Cu=Vi.default("https-proxy-agent:parse-proxy-response");function Ji(u){return new Promise((D,e)=>{let n=0;const r=[];function o(){const c=u.read();c?C(c):u.once("readable",o)}s(o,"read");function t(){u.removeListener("end",a),u.removeListener("error",l),u.removeListener("close",i),u.removeListener("readable",o)}s(t,"cleanup");function i(c){Cu("onclose had error %o",c)}s(i,"onclose");function a(){Cu("onend")}s(a,"onend");function l(c){t(),Cu("onerror %o",c),e(c)}s(l,"onerror");function C(c){r.push(c),n+=c.length;const F=Buffer.concat(r,n);if(F.indexOf(`\r
|
|
70
70
|
\r
|
|
71
71
|
`)===-1){Cu("have not received end of HTTP headers yet..."),o();return}const d=F.toString("ascii",0,F.indexOf(`\r
|
|
72
|
-
`)),E=+d.split(" ")[1];Cu("got proxy server response: %o",d),D({statusCode:E,buffered:F})}s(C,"ondata"),u.on("error",l),u.on("close",i),u.on("end",a),o()})}s(
|
|
73
|
-
`;n.auth&&(t["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:l,port:C,secureEndpoint:c}=e;
|
|
74
|
-
`;const F=
|
|
75
|
-
`);const{statusCode:f,buffered:d}=yield F;if(f===200){if(D.once("socket",
|
|
76
|
-
${
|
|
77
|
-
${JSON.stringify({docs:"Documentation only changes",style:"Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",refactor:"A code change that neither fixes a bug nor adds a feature",perf:"A code change that improves performance",test:"Adding missing tests or correcting existing tests",build:"Changes that affect the build system or external dependencies",ci:"Changes to our CI configuration files and scripts",chore:"Other changes that don't modify src or test files",revert:"Reverts a previous commit",feat:"A new feature",fix:"A bug fix",data:"Data only changes"},null,2)}`},
|
|
78
|
-
`),"generatePrompt"),
|
|
72
|
+
`)),E=+d.split(" ")[1];Cu("got proxy server response: %o",d),D({statusCode:E,buffered:F})}s(C,"ondata"),u.on("error",l),u.on("close",i),u.on("end",a),o()})}s(Ji,"parseProxyResponse"),HD.default=Ji;var Zi=A&&A.__awaiter||function(u,D,e,n){function r(o){return o instanceof e?o:new e(function(t){t(o)})}return s(r,"adopt"),new(e||(e=Promise))(function(o,t){function i(C){try{l(n.next(C))}catch(c){t(c)}}s(i,"fulfilled");function a(C){try{l(n.throw(C))}catch(c){t(c)}}s(a,"rejected");function l(C){C.done?o(C.value):r(C.value).then(i,a)}s(l,"step"),l((n=n.apply(u,D||[])).next())})},Q=A&&A.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(MD,"__esModule",{value:!0});const Xt=Q(Bn),Qt=Q(bn),Xi=Q(yn),Qi=Q(oe),ua=Q(UD),Da=Yi,ea=Q(HD),fu=ua.default("https-proxy-agent:agent"),QD=class QD extends Da.Agent{constructor(D){let e;if(typeof D=="string"?e=Xi.default.parse(D):e=D,!e)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");fu("creating new HttpsProxyAgent instance: %o",e),super(e);const n=Object.assign({},e);this.secureProxy=e.secureProxy||ra(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(D,e){return Zi(this,void 0,void 0,function*(){const{proxy:n,secureProxy:r}=this;let o;r?(fu("Creating `tls.Socket`: %o",n),o=Qt.default.connect(n)):(fu("Creating `net.Socket`: %o",n),o=Xt.default.connect(n));const t=Object.assign({},n.headers);let a=`CONNECT ${`${e.host}:${e.port}`} HTTP/1.1\r
|
|
73
|
+
`;n.auth&&(t["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:l,port:C,secureEndpoint:c}=e;na(C,c)||(l+=`:${C}`),t.Host=l,t.Connection="close";for(const h of Object.keys(t))a+=`${h}: ${t[h]}\r
|
|
74
|
+
`;const F=ea.default(o);o.write(`${a}\r
|
|
75
|
+
`);const{statusCode:f,buffered:d}=yield F;if(f===200){if(D.once("socket",ta),e.secureEndpoint){fu("Upgrading socket connection to TLS");const h=e.servername||e.host;return Qt.default.connect(Object.assign(Object.assign({},oa(e,"host","hostname","path","port")),{socket:o,servername:h}))}return o}o.destroy();const E=new Xt.default.Socket({writable:!1});return E.readable=!0,D.once("socket",h=>{fu("replaying proxy buffer for failed request"),Qi.default(h.listenerCount("data")>0),h.push(d),h.push(null)}),E})}};s(QD,"HttpsProxyAgent");let YD=QD;MD.default=YD;function ta(u){u.resume()}s(ta,"resume");function na(u,D){return!!(!D&&u===80||D&&u===443)}s(na,"isDefaultPort");function ra(u){return typeof u=="string"?/^https:?$/i.test(u):!1}s(ra,"isHTTPS");function oa(u,...D){const e={};let n;for(n in u)D.includes(n)||(e[n]=u[n]);return e}s(oa,"omit");var sa=A&&A.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};const KD=sa(MD);function un(u){return new KD.default(u)}s(un,"createHttpsProxyAgent"),function(u){u.HttpsProxyAgent=KD.default,u.prototype=KD.default.prototype}(un||(un={}));const ia={"":"<commit message>",conventional:"<type>(<optional scope>): <commit message>"},aa=s(u=>`The output response must be in format:
|
|
76
|
+
${ia[u]}`,"specifyCommitFormat"),ca={"":"",conventional:`Choose a type from the type-to-description JSON below that best describes the git diff:
|
|
77
|
+
${JSON.stringify({docs:"Documentation only changes",style:"Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",refactor:"A code change that neither fixes a bug nor adds a feature",perf:"A code change that improves performance",test:"Adding missing tests or correcting existing tests",build:"Changes that affect the build system or external dependencies",ci:"Changes to our CI configuration files and scripts",chore:"Other changes that don't modify src or test files",revert:"Reverts a previous commit",feat:"A new feature",fix:"A bug fix",data:"Data only changes"},null,2)}`},la=s((u,D,e)=>["Generate a concise git commit message written in present tense for the following code diff with the given specifications below:",`Message language: ${u}`,`Commit message must be a maximum of ${D} characters.`,"Exclude anything unnecessary such as translation. Your entire response will be passed directly into git commit.","Try to focus on why the code changes was made and not only summarize the changes.",ca[e],aa(e)].filter(Boolean).join(`
|
|
78
|
+
`),"generatePrompt"),Fa=s(async(u,D,e,n,r,o)=>new Promise((t,i)=>{const a=JSON.stringify(n),l=gn.request({port:443,hostname:u,path:D,method:"POST",headers:{...e,"Content-Type":"application/json","Content-Length":Buffer.byteLength(a)},timeout:r,agent:void 0},C=>{const c=[];C.on("data",F=>c.push(F)),C.on("end",()=>{t({request:l,response:C,data:Buffer.concat(c).toString()})})});l.on("error",i),l.on("timeout",()=>{l.destroy(),i(new S(`Time out error: request took over ${r}ms. Try increasing the \`timeout\` config, or checking the OpenAI API status https://status.openai.com`))}),l.write(a),l.end()}),"httpsPost"),Ca=s(async(u,D,e,n)=>{const{response:r,data:o}=await Fa("api.openai.com","/v1/chat/completions",{Authorization:`Bearer ${u}`},D,e);if(!r.statusCode||r.statusCode<200||r.statusCode>299){let t=`OpenAI API Error: ${r.statusCode} - ${r.statusMessage}`;throw o&&(t+=`
|
|
79
79
|
|
|
80
80
|
${o}`),r.statusCode===500&&(t+=`
|
|
81
81
|
|
|
82
|
-
Check the API status: https://status.openai.com`),new S(t)}return JSON.parse(o)},"createChatCompletion"),
|
|
82
|
+
Check the API status: https://status.openai.com`),new S(t)}return JSON.parse(o)},"createChatCompletion"),fa=s(u=>u.trim().replace(/[\n\r]/g,"").replace(/(\w)\.$/,"$1"),"sanitizeMessage"),da=s(u=>Array.from(new Set(u)),"deduplicateMessages"),Dn=s(async(u,D,e,n,r,o,t,i,a)=>{try{const l=await Ca(u,{model:D,messages:[{role:"system",content:la(e,o,t)},{role:"user",content:n}],temperature:a,top_p:1,frequency_penalty:0,presence_penalty:0,max_tokens:300,stream:!1,n:r},i);return da(l.choices.filter(C=>C.message?.content).map(C=>fa(C.message.content)))}catch(l){const C=l;throw C.code==="ENOTFOUND"?new S(`Error connecting to ${C.hostname} (${C.syscall}). Are you connected to the internet?`):C}},"generateCommitMessage");var Ea=s(async(u,D,e,n,r)=>(async()=>{Pt(ct(at(" aicommit "))),await kt();const o=OD();e&&await Z("git",["add","--update"]),o.start("Detecting staged files");const t=await Rt(D);if(!t)throw o.stop("Detecting staged files"),new S("No staged changes found. Stage your changes manually, or automatically stage all changes with the `--all` flag.");o.stop(`${Ii(t.files)}:
|
|
83
83
|
${t.files.map(F=>` ${F}`).join(`
|
|
84
84
|
`)}`);const{env:i}=process,a=await RD({OPENAI_KEY:i.OPENAI_KEY||i.OPENAI_API_KEY,proxy:i.https_proxy||i.HTTPS_PROXY||i.http_proxy||i.HTTP_PROXY,generate:u?.toString(),type:n?.toString()}),l=OD();l.start("The AI is analyzing your changes");let C;try{C=await Dn(a.OPENAI_KEY,a.model,a.locale,t.diff,a.generate,a["max-length"],a.type,a.timeout,a.temperature)}finally{l.stop("Changes analyzed")}if(C.length===0)throw new S("No commit messages were generated. Try again.");let c;if(C.length===1){[c]=C;let F;if(a["auto-confirm"]?(F=!0,W(`${cu("\u2714")} Auto confirmed commit message.
|
|
85
85
|
|
|
86
86
|
${c}
|
|
87
|
-
`)):F=await
|
|
87
|
+
`)):F=await Oi({message:`Use this commit message?
|
|
88
88
|
|
|
89
89
|
${c}
|
|
90
|
-
`}),!F||wt(F)){W("Commit cancelled");return}}else{const F=await
|
|
90
|
+
`}),!F||wt(F)){W("Commit cancelled");return}}else{const F=await Ti({message:`Pick a commit message to use: ${pD("(Ctrl+c to exit)")}`,options:C.map(f=>({label:f,value:f}))});if(wt(F)){W("Commit cancelled");return}c=F}if(a["prepend-reference"]){const{stdout:F}=await Z("git",["branch","--show-current"]),f=F.match(/([a-zA-Z])+-([0-9]+)/)?.[0];f?.length&&(c=`${f?.toUpperCase()}: ${c}`)}await Z("git",["commit","-m",c,...r]),W(`${cu("\u2714")} Successfully committed!`)})().catch(o=>{W(`${vu("\u2716")} ${o.message}`),Iu(o),process.exit(1)}),"aicommit");const[VD,pa]=process.argv.slice(2);var ha=s(()=>(async()=>{if(!VD)throw new S('Commit message file path is missing. This file should be called from the "prepare-commit-msg" git hook');if(pa)return;const u=await Rt();if(!u)return;Pt(ct(at(" aicommit ")));const{env:D}=process,e=await RD({proxy:D.https_proxy||D.HTTPS_PROXY||D.http_proxy||D.HTTP_PROXY}),n=OD();n.start("The AI is analyzing your changes");let r;try{r=await Dn(e.OPENAI_KEY,e.model,e.locale,u.diff,e.generate,e["max-length"],e.type,e.timeout,e.temperature)}finally{n.stop("Changes analyzed")}const t=await T.readFile(VD,"utf8")!=="",i=r.length>1;let a="";t&&(a=`# \u{1F916} AI generated commit${i?"s":""}
|
|
91
91
|
`),i?(t&&(a+=`# Select one of the following messages by uncommeting:
|
|
92
92
|
`),a+=`
|
|
93
93
|
${r.map(l=>`# ${l}`).join(`
|
|
94
94
|
`)}`):(t&&(a+=`# Edit the message below and commit:
|
|
95
95
|
`),a+=`
|
|
96
96
|
${r[0]}
|
|
97
|
-
`),await T.appendFile(VD,a),W(`${cu("\u2714")} Saved commit message!`)})().catch(u=>{W(`${vu("\u2716")} ${u.message}`),Iu(u),process.exit(1)}),"prepareCommitMessageHook"),
|
|
97
|
+
`),await T.appendFile(VD,a),W(`${cu("\u2714")} Saved commit message!`)})().catch(u=>{W(`${vu("\u2716")} ${u.message}`),Iu(u),process.exit(1)}),"prepareCommitMessageHook"),ma=Te({name:"config",parameters:["<mode>","<key=value...>"]},u=>{(async()=>{const{mode:D,keyValue:e}=u._;if(D==="get"){const n=await RD({},!0);for(const r of e)Wt(n,r)&&console.log(`${r}=${n[r]}`);return}if(D==="set"){await Ri(e.map(n=>n.split("=")));return}throw new S(`Invalid mode: ${D}`)})().catch(D=>{console.error(`${vu("\u2716")} ${D.message}`),Iu(D),process.exit(1)})});const en="prepare-commit-msg",tn=`.git/hooks/${en}`,ju=An(new URL("cli.mjs",import.meta.url)),ga=process.argv[1].replace(/\\/g,"/").endsWith(`/${tn}`),nn=process.platform==="win32",rn=`
|
|
98
98
|
#!/usr/bin/env node
|
|
99
99
|
import(${JSON.stringify(wn(ju))})
|
|
100
|
-
`.trim();var
|
|
100
|
+
`.trim();var Ba=Te({name:"hook",parameters:["<install/uninstall>"]},u=>{(async()=>{const D=await kt(),{installUninstall:e}=u._,n=q.join(D,tn),r=await Gt(n);if(e==="install"){if(r){if(await T.realpath(n).catch(()=>{})===ju){console.warn("The hook is already installed");return}throw new S(`A different ${en} hook seems to be installed. Please remove it before installing aicommit.`)}await T.mkdir(q.dirname(n),{recursive:!0}),nn?await T.writeFile(n,rn):(await T.symlink(ju,n,"file"),await T.chmod(n,493)),console.log(`${cu("\u2714")} Hook installed`);return}if(e==="uninstall"){if(!r){console.warn("Hook is not installed");return}if(nn){if(await T.readFile(n,"utf8")!==rn){console.warn("Hook is not installed");return}}else if(await T.realpath(n)!==ju){console.warn("Hook is not installed");return}await T.rm(n),console.log(`${cu("\u2714")} Hook uninstalled`);return}throw new S(`Invalid mode: ${e}`)})().catch(D=>{console.error(`${vu("\u2716")} ${D.message}`),Iu(D),process.exit(1)})});const on=process.argv.slice(2);zr({name:"aicommit",version:Ie,flags:{generate:{type:Number,description:"Number of messages to generate (Warning: generating multiple costs more) (default: 1)",alias:"g"},exclude:{type:[String],description:"Files to exclude from AI analysis",alias:"x"},all:{type:Boolean,description:"Automatically stage changes in tracked files for the commit",alias:"a",default:!1},type:{type:String,description:"Type of commit message to generate",alias:"t"}},commands:[ma,Ba],help:{description:qr},ignoreArgv:s(u=>u==="unknown-flag"||u==="argument","ignoreArgv")},u=>{ga?ha():Ea(u.flags.generate,u.flags.exclude,u.flags.all,u.flags.type,on)},on);
|