@negoziator/ai-commit 2.9.2 → 2.13.0

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.
@@ -0,0 +1,85 @@
1
+ var ct=Object.defineProperty;var s=(u,D)=>ct(u,"name",{value:D,configurable:!0});var V;import lt from"tty";import{Buffer as Ft}from"node:buffer";import K from"node:path";import yD,{ChildProcess as Ct}from"node:child_process";import x,{stdout as wD,stdin as vD}from"node:process";import Et from"child_process";import N from"path";import bu from"fs";import{fileURLToPath as $D}from"node:url";import ft,{constants as xD}from"node:os";import dt from"assert";import pt from"events";import{createWriteStream as mt,createReadStream as ht}from"node:fs";import gt from"buffer";import yu from"stream";import Bt from"util";import{debuglog as At}from"node:util";import*as eu from"node:readline";import SD from"node:readline";import{Writable as bt}from"node:stream";import O from"fs/promises";import yt from"os";import{fileURLToPath as wt,pathToFileURL as vt}from"url";const $t="known-flag",xt="unknown-flag",St="argument",{stringify:Z}=JSON,Ot=/\B([A-Z])/g,It=s(u=>u.replace(Ot,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:Tt}=Object.prototype,J=s((u,D)=>Tt.call(u,D),"w$3"),Pt=s(u=>Array.isArray(u),"L$4"),OD=s(u=>typeof u=="function"?[u,!1]:Pt(u)?[u[0],!0]:OD(u.type),"b$3"),Rt=s((u,D)=>u===Boolean?D!=="false":D,"d$4"),kt=s((u,D)=>typeof D=="boolean"?D:u===Number&&D===""?Number.NaN:u(D),"m$2"),_t=/[\s.:=]/,Nt=s(u=>{const D=`Flag name ${Z(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 t=u.match(_t);if(t)throw new Error(`${D} cannot contain ${Z(t?.[0])}`)},"B$1"),Mt=s(u=>{const D={},t=s((r,n)=>{if(J(D,r))throw new Error(`Duplicate flags named ${Z(r)}`);D[r]=n},"r");for(const r in u){if(!J(u,r))continue;Nt(r);const n=u[r],i=[[],...OD(n),n];t(r,i);const e=It(r);if(r!==e&&t(e,i),"alias"in n&&typeof n.alias=="string"){const{alias:a}=n,o=`Flag alias ${Z(a)} for flag ${Z(r)}`;if(a.length===0)throw new Error(`${o} cannot be empty`);if(a.length>1)throw new Error(`${o} must be a single character`);t(a,i)}}return D},"K$2"),jt=s((u,D)=>{const t={};for(const r in u){if(!J(u,r))continue;const[n,,i,e]=D[r];if(n.length===0&&"default"in e){let{default:a}=e;typeof a=="function"&&(a=a()),t[r]=a}else t[r]=i?n:n.pop()}return t},"_$3"),tu="--",Lt=/[.:=]/,Gt=/^-{1,2}\w/,Ut=s(u=>{if(!Gt.test(u))return;const D=!u.startsWith(tu);let t=u.slice(D?1:2),r;const n=t.match(Lt);if(n){const{index:i}=n;r=t.slice(i+1),t=t.slice(0,i)}return[t,r,D]},"N$1"),Wt=s((u,{onFlag:D,onArgument:t})=>{let r;const n=s((i,e)=>{if(typeof r!="function")return!0;r(i,e),r=void 0},"o");for(let i=0;i<u.length;i+=1){const e=u[i];if(e===tu){n();const o=u.slice(i+1);t?.(o,[i],!0);break}const a=Ut(e);if(a){if(n(),!D)continue;const[o,c,l]=a;if(l)for(let F=0;F<o.length;F+=1){n();const C=F===o.length-1;r=D(o[F],C?c:void 0,[i,F+1,C])}else r=D(o,c,[i])}else n(e,[i])&&t?.([e],[i])}n()},"$$2"),qt=s((u,D)=>{for(const[t,r,n]of D.reverse()){if(r){const i=u[t];let e=i.slice(0,r);if(n||(e+=i.slice(r+1)),e!=="-"){u[t]=e;continue}}u.splice(t,1)}},"E"),Kt=s((u,D=process.argv.slice(2),{ignore:t}={})=>{const r=[],n=Mt(u),i={},e=[];return e[tu]=[],Wt(D,{onFlag(a,o,c){const l=J(n,a);if(!t?.(l?$t:xt,a,o)){if(l){const[F,C]=n[a],E=Rt(C,o),d=s((g,f)=>{r.push(c),f&&r.push(f),F.push(kt(C,g||""))},"p");return E===void 0?d:d(E)}J(i,a)||(i[a]=[]),i[a].push(o===void 0?!0:o),r.push(c)}},onArgument(a,o,c){t?.(St,D[o[0]])||(e.push(...a),c?(e[tu]=a,D.splice(o[0])):r.push(o))}}),qt(D,r),{flags:jt(u,n),unknownFlags:i,_:e}},"U$2");var Yt=Object.create,ru=Object.defineProperty,zt=Object.defineProperties,Ht=Object.getOwnPropertyDescriptor,Vt=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertyNames,ID=Object.getOwnPropertySymbols,Jt=Object.getPrototypeOf,TD=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,PD=s((u,D,t)=>D in u?ru(u,D,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[D]=t,"W$3"),nu=s((u,D)=>{for(var t in D||(D={}))TD.call(D,t)&&PD(u,t,D[t]);if(ID)for(var t of ID(D))Xt.call(D,t)&&PD(u,t,D[t]);return u},"p$1"),wu=s((u,D)=>zt(u,Vt(D)),"c"),Qt=s(u=>ru(u,"__esModule",{value:!0}),"nD$1"),ur=s((u,D)=>()=>(u&&(D=u(u=0)),D),"rD$1"),Dr=s((u,D)=>()=>(D||u((D={exports:{}}).exports,D),D.exports),"iD$1"),er=s((u,D,t,r)=>{if(D&&typeof D=="object"||typeof D=="function")for(let n of Zt(D))!TD.call(u,n)&&n!=="default"&&ru(u,n,{get:s(()=>D[n],"get"),enumerable:!(r=Ht(D,n))||r.enumerable});return u},"oD$1"),tr=s((u,D)=>er(Qt(ru(u!=null?Yt(Jt(u)):{},"default",{value:u,enumerable:!0})),u),"BD$1"),I=ur(()=>{}),rr=Dr((u,D)=>{I(),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}});I(),I(),I();var nr=s(u=>{var D,t,r;let n=(D=process.stdout.columns)!=null?D:Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(n)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:n}:{columns:(t=u.columns)!=null?t:[],stdoutColumns:(r=u.stdoutColumns)!=null?r:n}},"v");I(),I(),I(),I(),I();function ir({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(ir,"w$2");function RD(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(ir(),"")}s(RD,"d$3"),I();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$2");var sr=tr(rr());function j(u){if(typeof u!="string"||u.length===0||(u=RD(u),u.length===0))return 0;u=u.replace((0,sr.default)()," ");let D=0;for(let t=0;t<u.length;t++){let r=u.codePointAt(t);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&t++,D+=or(r)?2:1)}return D}s(j,"g");var kD=s(u=>Math.max(...u.split(`
2
+ `).map(j)),"b$2"),ar=s(u=>{let D=[];for(let t of u){let{length:r}=t,n=r-D.length;for(let i=0;i<n;i+=1)D.push(0);for(let i=0;i<r;i+=1){let e=kD(t[i]);e>D[i]&&(D[i]=e)}}return D},"k$3");I();var _D=/^\d+%$/,ND={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},cr=s((u,D)=>{var t;let r=[];for(let n=0;n<u.length;n+=1){let i=(t=D[n])!=null?t:"auto";if(typeof i=="number"||i==="auto"||i==="content-width"||typeof i=="string"&&_D.test(i)){r.push(wu(nu({},ND),{width:i,contentWidth:u[n]}));continue}if(i&&typeof i=="object"){let e=wu(nu(nu({},ND),i),{contentWidth:u[n]});e.horizontalPadding=e.paddingLeft+e.paddingRight,r.push(e);continue}throw new Error(`Invalid column width: ${JSON.stringify(i)}`)}return r},"sD$1");function lr(u,D){for(let t of u){let{width:r}=t;if(r==="content-width"&&(t.width=t.contentWidth),r==="auto"){let o=Math.min(20,t.contentWidth);t.width=o,t.autoOverflow=t.contentWidth-o}if(typeof r=="string"&&_D.test(r)){let o=Number.parseFloat(r.slice(0,-1))/100;t.width=Math.floor(D*o)-(t.paddingLeft+t.paddingRight)}let{horizontalPadding:n}=t,i=1,e=i+n;if(e>=D){let o=e-D,c=Math.ceil(t.paddingLeft/n*o),l=o-c;t.paddingLeft-=c,t.paddingRight-=l,t.horizontalPadding=t.paddingLeft+t.paddingRight}t.paddingLeftString=t.paddingLeft?" ".repeat(t.paddingLeft):"",t.paddingRightString=t.paddingRight?" ".repeat(t.paddingRight):"";let a=D-t.horizontalPadding;t.width=Math.max(Math.min(t.width,a),i)}}s(lr,"aD$1");var MD=s(()=>Object.assign([],{columns:0}),"G$3");function Fr(u,D){let t=[MD()],[r]=t;for(let n of u){let i=n.width+n.horizontalPadding;r.columns+i>D&&(r=MD(),t.push(r)),r.push(n),r.columns+=i}for(let n of t){let i=n.reduce((C,E)=>C+E.width+E.horizontalPadding,0),e=D-i;if(e===0)continue;let a=n.filter(C=>"autoOverflow"in C),o=a.filter(C=>C.autoOverflow>0),c=o.reduce((C,E)=>C+E.autoOverflow,0),l=Math.min(c,e);for(let C of o){let E=Math.floor(C.autoOverflow/c*l);C.width+=E,e-=E}let F=Math.floor(e/a.length);for(let C=0;C<a.length;C+=1){let E=a[C];C===a.length-1?E.width+=e:E.width+=F,e-=F}}return t}s(Fr,"lD$1");function Cr(u,D,t){let r=cr(t,D);return lr(r,u),Fr(r,u)}s(Cr,"Z$1"),I(),I(),I();var vu=10,jD=s((u=0)=>D=>`\x1B[${D+u}m`,"U$1"),LD=s((u=0)=>D=>`\x1B[${38+u};5;${D}m`,"V$3"),GD=s((u=0)=>(D,t,r)=>`\x1B[${38+u};2;${D};${t};${r}m`,"Y$2");function Er(){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[t,r]of Object.entries(D)){for(let[n,i]of Object.entries(r))D[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=D[n],u.set(i[0],i[1]);Object.defineProperty(D,t,{value:r,enumerable:!1})}return Object.defineProperty(D,"codes",{value:u,enumerable:!1}),D.color.close="\x1B[39m",D.bgColor.close="\x1B[49m",D.color.ansi=jD(),D.color.ansi256=LD(),D.color.ansi16m=GD(),D.bgColor.ansi=jD(vu),D.bgColor.ansi256=LD(vu),D.bgColor.ansi16m=GD(vu),Object.defineProperties(D,{rgbToAnsi256:{value:s((t,r,n)=>t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),"value"),enumerable:!1},hexToRgb:{value:s(t=>{let r=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!r)return[0,0,0];let{colorString:n}=r.groups;n.length===3&&(n=n.split("").map(e=>e+e).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},"value"),enumerable:!1},hexToAnsi256:{value:s(t=>D.rgbToAnsi256(...D.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value:s(t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let o=t%36;r=Math.floor(t/36)/5,n=Math.floor(o/6)/5,i=o%6/5}let e=Math.max(r,n,i)*2;if(e===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return e===2&&(a+=60),a},"value"),enumerable:!1},rgbToAnsi:{value:s((t,r,n)=>D.ansi256ToAnsi(D.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:s(t=>D.ansi256ToAnsi(D.hexToAnsi256(t)),"value"),enumerable:!1}}),D}s(Er,"AD$1");var fr=Er(),dr=fr,iu=new Set(["\x1B","\x9B"]),pr=39,$u="\x07",UD="[",mr="]",WD="m",xu=`${mr}8;;`,qD=s(u=>`${iu.values().next().value}${UD}${u}${WD}`,"J$2"),KD=s(u=>`${iu.values().next().value}${xu}${u}${$u}`,"Q"),hr=s(u=>u.split(" ").map(D=>j(D)),"hD$1"),Su=s((u,D,t)=>{let r=[...D],n=!1,i=!1,e=j(RD(u[u.length-1]));for(let[a,o]of r.entries()){let c=j(o);if(e+c<=t?u[u.length-1]+=o:(u.push(o),e=0),iu.has(o)&&(n=!0,i=r.slice(a+1).join("").startsWith(xu)),n){i?o===$u&&(n=!1,i=!1):o===WD&&(n=!1);continue}e+=c,e===t&&a<r.length-1&&(u.push(""),e=0)}!e&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"S$1"),gr=s(u=>{let D=u.split(" "),t=D.length;for(;t>0&&!(j(D[t-1])>0);)t--;return t===D.length?u:D.slice(0,t).join(" ")+D.slice(t).join("")},"cD"),Br=s((u,D,t={})=>{if(t.trim!==!1&&u.trim()==="")return"";let r="",n,i,e=hr(u),a=[""];for(let[c,l]of u.split(" ").entries()){t.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let F=j(a[a.length-1]);if(c!==0&&(F>=D&&(t.wordWrap===!1||t.trim===!1)&&(a.push(""),F=0),(F>0||t.trim===!1)&&(a[a.length-1]+=" ",F++)),t.hard&&e[c]>D){let C=D-F,E=1+Math.floor((e[c]-C-1)/D);Math.floor((e[c]-1)/D)<E&&a.push(""),Su(a,l,D);continue}if(F+e[c]>D&&F>0&&e[c]>0){if(t.wordWrap===!1&&F<D){Su(a,l,D);continue}a.push("")}if(F+e[c]>D&&t.wordWrap===!1){Su(a,l,D);continue}a[a.length-1]+=l}t.trim!==!1&&(a=a.map(c=>gr(c)));let o=[...a.join(`
3
+ `)];for(let[c,l]of o.entries()){if(r+=l,iu.has(l)){let{groups:C}=new RegExp(`(?:\\${UD}(?<code>\\d+)m|\\${xu}(?<uri>.*)${$u})`).exec(o.slice(c).join(""))||{groups:{}};if(C.code!==void 0){let E=Number.parseFloat(C.code);n=E===pr?void 0:E}else C.uri!==void 0&&(i=C.uri.length===0?void 0:C.uri)}let F=dr.codes.get(Number(n));o[c+1]===`
4
+ `?(i&&(r+=KD("")),n&&F&&(r+=qD(F))):l===`
5
+ `&&(n&&F&&(r+=qD(n)),i&&(r+=KD(i)))}return r},"dD$1");function Ar(u,D,t){return String(u).normalize().replace(/\r\n/g,`
6
+ `).split(`
7
+ `).map(r=>Br(r,D,t)).join(`
8
+ `)}s(Ar,"T$1");var YD=s(u=>Array.from({length:u}).fill(""),"X");function br(u,D){let t=[],r=0;for(let n of u){let i=0,e=n.map(o=>{var c;let l=(c=D[r])!=null?c:"";r+=1,o.preprocess&&(l=o.preprocess(l)),kD(l)>o.width&&(l=Ar(l,o.width,{hard:!0}));let F=l.split(`
9
+ `);if(o.postprocess){let{postprocess:C}=o;F=F.map((E,d)=>C.call(o,E,d))}return o.paddingTop&&F.unshift(...YD(o.paddingTop)),o.paddingBottom&&F.push(...YD(o.paddingBottom)),F.length>i&&(i=F.length),wu(nu({},o),{lines:F})}),a=[];for(let o=0;o<i;o+=1){let c=e.map(l=>{var F;let C=(F=l.lines[o])!=null?F:"",E=Number.isFinite(l.width)?" ".repeat(l.width-j(C)):"",d=l.paddingLeftString;return l.align==="right"&&(d+=E),d+=C,l.align==="left"&&(d+=E),d+l.paddingRightString}).join("");a.push(c)}t.push(a.join(`
10
+ `))}return t.join(`
11
+ `)}s(br,"P$3");function yr(u,D){if(!u||u.length===0)return"";let t=ar(u),r=t.length;if(r===0)return"";let{stdoutColumns:n,columns:i}=nr(D);if(i.length>r)throw new Error(`${i.length} columns defined, but only ${r} columns found`);let e=Cr(n,i,t);return u.map(a=>br(e,a)).join(`
12
+ `)}s(yr,"mD"),I();var wr=["<",">","=",">=","<="];function vr(u){if(!wr.includes(u))throw new TypeError(`Invalid breakpoint operator: ${u}`)}s(vr,"xD$1");function $r(u){let D=Object.keys(u).map(t=>{let[r,n]=t.split(" ");vr(r);let i=Number.parseInt(n,10);if(Number.isNaN(i))throw new TypeError(`Invalid breakpoint value: ${n}`);let e=u[t];return{operator:r,breakpoint:i,value:e}}).sort((t,r)=>r.breakpoint-t.breakpoint);return t=>{var r;return(r=D.find(({operator:n,breakpoint:i})=>n==="="&&t===i||n===">"&&t>i||n==="<"&&t<i||n===">="&&t>=i||n==="<="&&t<=i))==null?void 0:r.value}}s($r,"wD");const xr=s(u=>u.replace(/[\W_]([a-z\d])?/gi,(D,t)=>t?t.toUpperCase():""),"P$2"),Sr=s(u=>u.replace(/\B([A-Z])/g,"-$1").toLowerCase(),"q"),Or={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:s(u=>u.trim(),"preprocess")},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function Ir(u){let D=!1;return{type:"table",data:{tableData:Object.keys(u).sort((t,r)=>t.localeCompare(r)).map(t=>{const r=u[t],n="alias"in r;return n&&(D=!0),{name:t,flag:r,flagFormatted:`--${Sr(t)}`,aliasesEnabled:D,aliasFormatted:n?`-${r.alias}`:void 0}}).map(t=>(t.aliasesEnabled=D,[{type:"flagName",data:t},{type:"flagDescription",data:t}])),tableBreakpoints:Or}}}s(Ir,"D");const zD=s(u=>!u||(u.version??(u.help?u.help.version:void 0)),"A"),HD=s(u=>{const D="parent"in u&&u.parent?.name;return(D?`${D} `:"")+u.name},"C$1");function Tr(u){const D=[];u.name&&D.push(HD(u));const t=zD(u)??("parent"in u&&zD(u.parent));if(t&&D.push(`v${t}`),D.length!==0)return{id:"name",type:"text",data:`${D.join(" ")}
13
+ `}}s(Tr,"R$1");function Pr(u){const{help:D}=u;if(!(!D||!D.description))return{id:"description",type:"text",data:`${D.description}
14
+ `}}s(Pr,"L$2");function Rr(u){const D=u.help||{};if("usage"in D)return D.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(D.usage)?D.usage.join(`
15
+ `):D.usage}}:void 0;if(u.name){const t=[],r=[HD(u)];if(u.flags&&Object.keys(u.flags).length>0&&r.push("[flags...]"),u.parameters&&u.parameters.length>0){const{parameters:n}=u,i=n.indexOf("--"),e=i>-1&&n.slice(i+1).some(a=>a.startsWith("<"));r.push(n.map(a=>a!=="--"?a:e?"--":"[--]").join(" "))}if(r.length>1&&t.push(r.join(" ")),"commands"in u&&u.commands?.length&&t.push(`${u.name} <command>`),t.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:t.join(`
16
+ `)}}}}s(Rr,"T");function kr(u){return!("commands"in u)||!u.commands?.length?void 0:{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:u.commands.map(D=>[D.options.name,D.options.help?D.options.help.description:""]),tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}s(kr,"_$1");function _r(u){if(!(!u.flags||Object.keys(u.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:Ir(u.flags),indentBody:0}}}s(_r,"k$2");function Nr(u){const{help:D}=u;if(!D||!D.examples||D.examples.length===0)return;let{examples:t}=D;if(Array.isArray(t)&&(t=t.join(`
17
+ `)),t)return{id:"examples",type:"section",data:{title:"Examples:",body:t}}}s(Nr,"F");function Mr(u){if(!("alias"in u)||!u.alias)return;const{alias:D}=u;return{id:"aliases",type:"section",data:{title:"Aliases:",body:Array.isArray(D)?D.join(", "):D}}}s(Mr,"H");const jr=s(u=>[Tr,Pr,Rr,kr,_r,Nr,Mr].map(D=>D(u)).filter(Boolean),"U"),Lr=lt.WriteStream.prototype.hasColors();let Gr=(V=class{text(D){return D}bold(D){return Lr?`\x1B[1m${D}\x1B[22m`:D.toLocaleUpperCase()}indentText({text:D,spaces:t}){return D.replace(/^/gm," ".repeat(t))}heading(D){return this.bold(D)}section({title:D,body:t,indentBody:r=2}){return`${(D?`${this.heading(D)}
18
+ `:"")+(t?this.indentText({text:this.render(t),spaces:r}):"")}
19
+ `}table({tableData:D,tableOptions:t,tableBreakpoints:r}){return yr(D.map(n=>n.map(i=>this.render(i))),r?$r(r):t)}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:t,flagFormatted:r,aliasesEnabled:n,aliasFormatted:i}=D;let e="";if(i?e+=`${i}, `:n&&(e+=" "),e+=r,"placeholder"in t&&typeof t.placeholder=="string")e+=`${this.flagOperator(D)}${t.placeholder}`;else{const a=this.flagParameter("type"in t?t.type:t);a&&(e+=`${this.flagOperator(D)}${a}`)}return e}flagDefault(D){return JSON.stringify(D)}flagDescription({flag:D}){let t="description"in D?D.description??"":"";if("default"in D){let{default:r}=D;typeof r=="function"&&(r=r()),r&&(t+=` (default: ${this.flagDefault(r)})`)}return t}render(D){if(typeof D=="string")return D;if(Array.isArray(D))return D.map(t=>this.render(t)).join(`
20
+ `);if("type"in D&&this[D.type]){const t=this[D.type];if(typeof t=="function")return t.call(this,D.data)}throw new Error(`Invalid node type: ${JSON.stringify(D)}`)}},s(V,"J"),V);const Ou=s(u=>u.length>0&&!u.includes(" "),"y$1"),{stringify:k}=JSON,Ur=/[|\\{}()[\]^$+*?.]/;function Iu(u){const D=[];let t,r;for(const n of u){if(r)throw new Error(`Invalid parameter: Spread parameter ${k(r)} must be last`);const i=n[0],e=n[n.length-1];let a;if(i==="<"&&e===">"&&(a=!0,t))throw new Error(`Invalid parameter: Required parameter ${k(n)} cannot come after optional parameter ${k(t)}`);if(i==="["&&e==="]"&&(a=!1,t=n),a===void 0)throw new Error(`Invalid parameter: ${k(n)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let o=n.slice(1,-1);const c=o.slice(-3)==="...";c&&(r=n,o=o.slice(0,-3));const l=o.match(Ur);if(l)throw new Error(`Invalid parameter: ${k(n)}. Invalid character found ${k(l[0])}`);D.push({name:o,required:a,spread:c})}return D}s(Iu,"w$1");function Tu(u,D,t,r){for(let n=0;n<D.length;n+=1){const{name:i,required:e,spread:a}=D[n],o=xr(i);if(o in u)throw new Error(`Invalid parameter: ${k(i)} is used more than once.`);const c=a?t.slice(n):t[n];if(a&&(n=D.length),e&&(!c||a&&c.length===0))return console.error(`Error: Missing required parameter ${k(i)}
21
+ `),r(),process.exit(1);u[o]=c}}s(Tu,"b$1");function Wr(u){return u===void 0||u!==!1}s(Wr,"W$2");function VD(u,D,t,r){const n={...D.flags},i=D.version;i&&(n.version={type:Boolean,description:"Show version"});const{help:e}=D,a=Wr(e);a&&!("help"in n)&&(n.help={type:Boolean,alias:"h",description:"Show help"});const o=Kt(n,r,{ignore:D.ignoreArgv}),c=s(()=>{console.log(D.version)},"f");if(i&&o.flags.version===!0)return c(),process.exit(0);const l=new Gr,F=a&&e?.render?e.render:d=>l.render(d),C=s(d=>{const g=jr({...D,...d?{help:d}:{},flags:n});console.log(F(g,l))},"u");if(a&&o.flags.help===!0)return C(),process.exit(0);if(D.parameters){let{parameters:d}=D,g=o._;const f=d.indexOf("--"),p=d.slice(f+1),m=Object.create(null);if(f>-1&&p.length>0){d=d.slice(0,f);const A=o._["--"];g=g.slice(0,-A.length||void 0),Tu(m,Iu(d),g,C),Tu(m,Iu(p),A,C)}else Tu(m,Iu(d),g,C);Object.assign(o._,m)}const E={...o,showVersion:c,showHelp:C};return typeof t=="function"&&t(E),{command:u,...E}}s(VD,"x$1");function qr(u,D){const t=new Map;for(const r of D){const n=[r.options.name],{alias:i}=r.options;i&&(Array.isArray(i)?n.push(...i):n.push(i));for(const e of n){if(t.has(e))throw new Error(`Duplicate command name found: ${k(e)}`);t.set(e,r)}}return t.get(u)}s(qr,"z$1");function Kr(u,D,t=process.argv.slice(2)){if(!u)throw new Error("Options is required");if("name"in u&&(!u.name||!Ou(u.name)))throw new Error(`Invalid script name: ${k(u.name)}`);const r=t[0];if(u.commands&&r&&Ou(r)){const n=qr(r,u.commands);if(n)return VD(n.options.name,{...n.options,parent:u},n.callback,t.slice(1))}return VD(void 0,u,D,t)}s(Kr,"Z");function ZD(u,D){if(!u)throw new Error("Command options are required");const{name:t}=u;if(t===void 0)throw new Error("Command name is required");if(!Ou(t))throw new Error(`Invalid command name ${JSON.stringify(t)}. Command names must be one word.`);return{options:u,callback:D}}s(ZD,"G$2");var Yr="2.13.0",zr="Writes your git commit messages for you with AI",Pu={version:Yr,description:zr},M=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function L(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}s(L,"getDefaultExportFromCjs");var G={exports:{}},Ru,JD;function Hr(){if(JD)return Ru;JD=1,Ru=r,r.sync=n;var u=bu;function D(i,e){var a=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!a||(a=a.split(";"),a.indexOf("")!==-1))return!0;for(var o=0;o<a.length;o++){var c=a[o].toLowerCase();if(c&&i.substr(-c.length).toLowerCase()===c)return!0}return!1}s(D,"checkPathExt");function t(i,e,a){return!i.isSymbolicLink()&&!i.isFile()?!1:D(e,a)}s(t,"checkStat");function r(i,e,a){u.stat(i,function(o,c){a(o,o?!1:t(c,i,e))})}s(r,"isexe");function n(i,e){return t(u.statSync(i),i,e)}return s(n,"sync"),Ru}s(Hr,"requireWindows");var ku,XD;function Vr(){if(XD)return ku;XD=1,ku=D,D.sync=t;var u=bu;function D(i,e,a){u.stat(i,function(o,c){a(o,o?!1:r(c,e))})}s(D,"isexe");function t(i,e){return r(u.statSync(i),e)}s(t,"sync");function r(i,e){return i.isFile()&&n(i,e)}s(r,"checkStat");function n(i,e){var a=i.mode,o=i.uid,c=i.gid,l=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),F=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),C=parseInt("100",8),E=parseInt("010",8),d=parseInt("001",8),g=C|E,f=a&d||a&E&&c===F||a&C&&o===l||a&g&&l===0;return f}return s(n,"checkMode"),ku}s(Vr,"requireMode");var _u,QD;function Zr(){if(QD)return _u;QD=1;var u;process.platform==="win32"||M.TESTING_WINDOWS?u=Hr():u=Vr(),_u=D,D.sync=t;function D(r,n,i){if(typeof n=="function"&&(i=n,n={}),!i){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(e,a){D(r,n||{},function(o,c){o?a(o):e(c)})})}u(r,n||{},function(e,a){e&&(e.code==="EACCES"||n&&n.ignoreErrors)&&(e=null,a=!1),i(e,a)})}s(D,"isexe");function t(r,n){try{return u.sync(r,n||{})}catch(i){if(n&&n.ignoreErrors||i.code==="EACCES")return!1;throw i}}return s(t,"sync"),_u}s(Zr,"requireIsexe");var Nu,ue;function Jr(){if(ue)return Nu;ue=1;const u=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",D=N,t=u?";":":",r=Zr(),n=s(o=>Object.assign(new Error(`not found: ${o}`),{code:"ENOENT"}),"getNotFoundError"),i=s((o,c)=>{const l=c.colon||t,F=o.match(/\//)||u&&o.match(/\\/)?[""]:[...u?[process.cwd()]:[],...(c.path||process.env.PATH||"").split(l)],C=u?c.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",E=u?C.split(l):[""];return u&&o.indexOf(".")!==-1&&E[0]!==""&&E.unshift(""),{pathEnv:F,pathExt:E,pathExtExe:C}},"getPathInfo"),e=s((o,c,l)=>{typeof c=="function"&&(l=c,c={}),c||(c={});const{pathEnv:F,pathExt:C,pathExtExe:E}=i(o,c),d=[],g=s(p=>new Promise((m,A)=>{if(p===F.length)return c.all&&d.length?m(d):A(n(o));const h=F[p],b=/^".*"$/.test(h)?h.slice(1,-1):h,$=D.join(b,o),P=!b&&/^\.[\\\/]/.test(o)?o.slice(0,2)+$:$;m(f(P,p,0))}),"step"),f=s((p,m,A)=>new Promise((h,b)=>{if(A===C.length)return h(g(m+1));const $=C[A];r(p+$,{pathExt:E},(P,Au)=>{if(!P&&Au)if(c.all)d.push(p+$);else return h(p+$);return h(f(p,m,A+1))})}),"subStep");return l?g(0).then(p=>l(null,p),l):g(0)},"which"),a=s((o,c)=>{c=c||{};const{pathEnv:l,pathExt:F,pathExtExe:C}=i(o,c),E=[];for(let d=0;d<l.length;d++){const g=l[d],f=/^".*"$/.test(g)?g.slice(1,-1):g,p=D.join(f,o),m=!f&&/^\.[\\\/]/.test(o)?o.slice(0,2)+p:p;for(let A=0;A<F.length;A++){const h=m+F[A];try{if(r.sync(h,{pathExt:C}))if(c.all)E.push(h);else return h}catch{}}}if(c.all&&E.length)return E;if(c.nothrow)return null;throw n(o)},"whichSync");return Nu=e,e.sync=a,Nu}s(Jr,"requireWhich");var ou={exports:{}},De;function Xr(){if(De)return ou.exports;De=1;const u=s((D={})=>{const t=D.env||process.env;return(D.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"},"pathKey");return ou.exports=u,ou.exports.default=u,ou.exports}s(Xr,"requirePathKey");var Mu,ee;function Qr(){if(ee)return Mu;ee=1;const u=N,D=Jr(),t=Xr();function r(i,e){const a=i.options.env||process.env,o=process.cwd(),c=i.options.cwd!=null,l=c&&process.chdir!==void 0&&!process.chdir.disabled;if(l)try{process.chdir(i.options.cwd)}catch{}let F;try{F=D.sync(i.command,{path:a[t({env:a})],pathExt:e?u.delimiter:void 0})}catch{}finally{l&&process.chdir(o)}return F&&(F=u.resolve(c?i.options.cwd:"",F)),F}s(r,"resolveCommandAttempt");function n(i){return r(i)||r(i,!0)}return s(n,"resolveCommand"),Mu=n,Mu}s(Qr,"requireResolveCommand");var su={},te;function un(){if(te)return su;te=1;const u=/([()\][%!^"`<>&|;, *?])/g;function D(r){return r=r.replace(u,"^$1"),r}s(D,"escapeCommand");function t(r,n){return r=`${r}`,r=r.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),r=r.replace(/(?=(\\+?)?)\1$/,"$1$1"),r=`"${r}"`,r=r.replace(u,"^$1"),n&&(r=r.replace(u,"^$1")),r}return s(t,"escapeArgument"),su.command=D,su.argument=t,su}s(un,"require_escape");var ju,re;function Dn(){return re||(re=1,ju=/^#!(.*)/),ju}s(Dn,"requireShebangRegex");var Lu,ne;function en(){if(ne)return Lu;ne=1;const u=Dn();return Lu=s((D="")=>{const t=D.match(u);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i},"shebangCommand"),Lu}s(en,"requireShebangCommand");var Gu,ie;function tn(){if(ie)return Gu;ie=1;const u=bu,D=en();function t(r){const i=Buffer.alloc(150);let e;try{e=u.openSync(r,"r"),u.readSync(e,i,0,150,0),u.closeSync(e)}catch{}return D(i.toString())}return s(t,"readShebang"),Gu=t,Gu}s(tn,"requireReadShebang");var Uu,oe;function rn(){if(oe)return Uu;oe=1;const u=N,D=Qr(),t=un(),r=tn(),n=process.platform==="win32",i=/\.(?:com|exe)$/i,e=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function a(l){l.file=D(l);const F=l.file&&r(l.file);return F?(l.args.unshift(l.file),l.command=F,D(l)):l.file}s(a,"detectShebang");function o(l){if(!n)return l;const F=a(l),C=!i.test(F);if(l.options.forceShell||C){const E=e.test(F);l.command=u.normalize(l.command),l.command=t.command(l.command),l.args=l.args.map(g=>t.argument(g,E));const d=[l.command].concat(l.args).join(" ");l.args=["/d","/s","/c",`"${d}"`],l.command=process.env.comspec||"cmd.exe",l.options.windowsVerbatimArguments=!0}return l}s(o,"parseNonShell");function c(l,F,C){F&&!Array.isArray(F)&&(C=F,F=null),F=F?F.slice(0):[],C=Object.assign({},C);const E={command:l,args:F,options:C,file:void 0,original:{command:l,args:F}};return C.shell?E:o(E)}return s(c,"parse"),Uu=c,Uu}s(rn,"requireParse");var Wu,se;function nn(){if(se)return Wu;se=1;const u=process.platform==="win32";function D(i,e){return Object.assign(new Error(`${e} ${i.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${i.command}`,path:i.command,spawnargs:i.args})}s(D,"notFoundError");function t(i,e){if(!u)return;const a=i.emit;i.emit=function(o,c){if(o==="exit"){const l=r(c,e);if(l)return a.call(i,"error",l)}return a.apply(i,arguments)}}s(t,"hookChildProcess");function r(i,e){return u&&i===1&&!e.file?D(e.original,"spawn"):null}s(r,"verifyENOENT");function n(i,e){return u&&i===1&&!e.file?D(e.original,"spawnSync"):null}return s(n,"verifyENOENTSync"),Wu={hookChildProcess:t,verifyENOENT:r,verifyENOENTSync:n,notFoundError:D},Wu}s(nn,"requireEnoent");var ae;function on(){if(ae)return G.exports;ae=1;const u=Et,D=rn(),t=nn();function r(i,e,a){const o=D(i,e,a),c=u.spawn(o.command,o.args,o.options);return t.hookChildProcess(c,o),c}s(r,"spawn");function n(i,e,a){const o=D(i,e,a),c=u.spawnSync(o.command,o.args,o.options);return c.error=c.error||t.verifyENOENTSync(c.status,o),c}return s(n,"spawnSync"),G.exports=r,G.exports.spawn=r,G.exports.sync=n,G.exports._parse=D,G.exports._enoent=t,G.exports}s(on,"requireCrossSpawn");var sn=on(),an=L(sn);function cn(u){const D=typeof u=="string"?`
22
+ `:10,t=typeof u=="string"?"\r":13;return u[u.length-1]===D&&(u=u.slice(0,-1)),u[u.length-1]===t&&(u=u.slice(0,-1)),u}s(cn,"stripFinalNewline");function ce(u={}){const{env:D=process.env,platform:t=process.platform}=u;return t!=="win32"?"PATH":Object.keys(D).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"}s(ce,"pathKey");const ln=s(({cwd:u=x.cwd(),path:D=x.env[ce()],preferLocal:t=!0,execPath:r=x.execPath,addExecPath:n=!0}={})=>{const i=u instanceof URL?$D(u):u,e=K.resolve(i),a=[];return t&&Fn(a,e),n&&Cn(a,r,e),[...a,D].join(K.delimiter)},"npmRunPath"),Fn=s((u,D)=>{let t;for(;t!==D;)u.push(K.join(D,"node_modules/.bin")),t=D,D=K.resolve(D,"..")},"applyPreferLocal"),Cn=s((u,D,t)=>{const r=D instanceof URL?$D(D):D;u.push(K.resolve(t,r,".."))},"applyExecPath"),En=s(({env:u=x.env,...D}={})=>{u={...u};const t=ce({env:u});return D.path=u[t],u[t]=ln(D),u},"npmRunPathEnv"),fn=s((u,D,t,r)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;const n=Object.getOwnPropertyDescriptor(u,t),i=Object.getOwnPropertyDescriptor(D,t);!dn(n,i)&&r||Object.defineProperty(u,t,i)},"copyProperty"),dn=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"),pn=s((u,D)=>{const t=Object.getPrototypeOf(D);t!==Object.getPrototypeOf(u)&&Object.setPrototypeOf(u,t)},"changePrototype"),mn=s((u,D)=>`/* Wrapped ${u}*/
23
+ ${D}`,"wrappedToString"),hn=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),gn=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Bn=s((u,D,t)=>{const r=t===""?"":`with ${t.trim()}() `,n=mn.bind(null,r,D.toString());Object.defineProperty(n,"name",gn),Object.defineProperty(u,"toString",{...hn,value:n})},"changeToString");function An(u,D,{ignoreNonConfigurable:t=!1}={}){const{name:r}=u;for(const n of Reflect.ownKeys(D))fn(u,D,n,t);return pn(u,D),Bn(u,D,r),u}s(An,"mimicFunction");const au=new WeakMap,le=s((u,D={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let t,r=0;const n=u.displayName||u.name||"<anonymous>",i=s(function(...e){if(au.set(i,++r),r===1)t=u.apply(this,e),u=null;else if(D.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return t},"onetime2");return An(i,u),au.set(i,r),i},"onetime");le.callCount=u=>{if(!au.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return au.get(u)};const bn=s(()=>{const u=Ce-Fe+1;return Array.from({length:u},yn)},"getRealtimeSignals"),yn=s((u,D)=>({name:`SIGRT${D+1}`,number:Fe+D,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),"getRealtimeSignal"),Fe=34,Ce=64,wn=[{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"}],Ee=s(()=>{const u=bn();return[...wn,...u].map(vn)},"getSignals"),vn=s(({name:u,number:D,description:t,action:r,forced:n=!1,standard:i})=>{const{signals:{[u]:e}}=xD,a=e!==void 0;return{name:u,number:a?e:D,description:t,supported:a,action:r,forced:n,standard:i}},"normalizeSignal"),$n=s(()=>{const u=Ee();return Object.fromEntries(u.map(xn))},"getSignalsByName"),xn=s(({name:u,number:D,description:t,supported:r,action:n,forced:i,standard:e})=>[u,{name:u,number:D,description:t,supported:r,action:n,forced:i,standard:e}],"getSignalByName"),Sn=$n(),On=s(()=>{const u=Ee(),D=Ce+1,t=Array.from({length:D},(r,n)=>In(n,u));return Object.assign({},...t)},"getSignalsByNumber"),In=s((u,D)=>{const t=Tn(u,D);if(t===void 0)return{};const{name:r,description:n,supported:i,action:e,forced:a,standard:o}=t;return{[u]:{name:r,number:u,description:n,supported:i,action:e,forced:a,standard:o}}},"getSignalByNumber"),Tn=s((u,D)=>{const t=D.find(({name:r})=>xD.signals[r]===u);return t!==void 0?t:D.find(r=>r.number===u)},"findSignalByNumber");On();const Pn=s(({timedOut:u,timeout:D,errorCode:t,signal:r,signalDescription:n,exitCode:i,isCanceled:e})=>u?`timed out after ${D} milliseconds`:e?"was canceled":t!==void 0?`failed with ${t}`:r!==void 0?`was killed with ${r} (${n})`:i!==void 0?`failed with exit code ${i}`:"failed","getErrorPrefix"),fe=s(({stdout:u,stderr:D,all:t,error:r,signal:n,exitCode:i,command:e,escapedCommand:a,timedOut:o,isCanceled:c,killed:l,parsed:{options:{timeout:F,cwd:C=x.cwd()}}})=>{i=i===null?void 0:i,n=n===null?void 0:n;const E=n===void 0?void 0:Sn[n].description,d=r&&r.code,f=`Command ${Pn({timedOut:o,timeout:F,errorCode:d,signal:n,signalDescription:E,exitCode:i,isCanceled:c})}: ${e}`,p=Object.prototype.toString.call(r)==="[object Error]",m=p?`${f}
24
+ ${r.message}`:f,A=[m,D,u].filter(Boolean).join(`
25
+ `);return p?(r.originalMessage=r.message,r.message=A):r=new Error(A),r.shortMessage=m,r.command=e,r.escapedCommand=a,r.exitCode=i,r.signal=n,r.signalDescription=E,r.stdout=u,r.stderr=D,r.cwd=C,t!==void 0&&(r.all=t),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!o,r.isCanceled=c,r.killed=l&&!o,r},"makeError"),cu=["stdin","stdout","stderr"],Rn=s(u=>cu.some(D=>u[D]!==void 0),"hasAlias"),kn=s(u=>{if(!u)return;const{stdio:D}=u;if(D===void 0)return cu.map(r=>u[r]);if(Rn(u))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${cu.map(r=>`\`${r}\``).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 t=Math.max(D.length,cu.length);return Array.from({length:t},(r,n)=>D[n])},"normalizeStdio");var U={exports:{}},qu={exports:{}},de;function _n(){return de||(de=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")})(qu)),qu.exports}s(_n,"requireSignals");var pe;function Nn(){if(pe)return U.exports;pe=1;var u=M.process;const D=s(function(f){return f&&typeof f=="object"&&typeof f.removeListener=="function"&&typeof f.emit=="function"&&typeof f.reallyExit=="function"&&typeof f.listeners=="function"&&typeof f.kill=="function"&&typeof f.pid=="number"&&typeof f.on=="function"},"processOk");if(!D(u))U.exports=function(){return function(){}};else{var t=dt,r=_n(),n=/^win/i.test(u.platform),i=pt;typeof i!="function"&&(i=i.EventEmitter);var e;u.__signal_exit_emitter__?e=u.__signal_exit_emitter__:(e=u.__signal_exit_emitter__=new i,e.count=0,e.emitted={}),e.infinite||(e.setMaxListeners(1/0),e.infinite=!0),U.exports=function(f,p){if(!D(M.process))return function(){};t.equal(typeof f,"function","a callback must be provided for exit handler"),l===!1&&F();var m="exit";p&&p.alwaysLast&&(m="afterexit");var A=s(function(){e.removeListener(m,f),e.listeners("exit").length===0&&e.listeners("afterexit").length===0&&a()},"remove");return e.on(m,f),A};var a=s(function(){!l||!D(M.process)||(l=!1,r.forEach(function(p){try{u.removeListener(p,c[p])}catch{}}),u.emit=d,u.reallyExit=C,e.count-=1)},"unload2");U.exports.unload=a;var o=s(function(p,m,A){e.emitted[p]||(e.emitted[p]=!0,e.emit(p,m,A))},"emit2"),c={};r.forEach(function(f){c[f]=s(function(){if(D(M.process)){var m=u.listeners(f);m.length===e.count&&(a(),o("exit",null,f),o("afterexit",null,f),n&&f==="SIGHUP"&&(f="SIGINT"),u.kill(u.pid,f))}},"listener")}),U.exports.signals=function(){return r};var l=!1,F=s(function(){l||!D(M.process)||(l=!0,e.count+=1,r=r.filter(function(p){try{return u.on(p,c[p]),!0}catch{return!1}}),u.emit=g,u.reallyExit=E)},"load2");U.exports.load=F;var C=u.reallyExit,E=s(function(p){D(M.process)&&(u.exitCode=p||0,o("exit",u.exitCode,null),o("afterexit",u.exitCode,null),C.call(u,u.exitCode))},"processReallyExit2"),d=u.emit,g=s(function(p,m){if(p==="exit"&&D(M.process)){m!==void 0&&(u.exitCode=m);var A=d.apply(this,arguments);return o("exit",u.exitCode,null),o("afterexit",u.exitCode,null),A}else return d.apply(this,arguments)},"processEmit2")}return U.exports}s(Nn,"requireSignalExit");var Mn=Nn(),jn=L(Mn);const Ln=1e3*5,Gn=s((u,D="SIGTERM",t={})=>{const r=u(D);return Un(u,D,t,r),r},"spawnedKill"),Un=s((u,D,t,r)=>{if(!Wn(D,t,r))return;const n=Kn(t),i=setTimeout(()=>{u("SIGKILL")},n);i.unref&&i.unref()},"setKillTimeout"),Wn=s((u,{forceKillAfterTimeout:D},t)=>qn(u)&&D!==!1&&t,"shouldForceKill"),qn=s(u=>u===ft.constants.signals.SIGTERM||typeof u=="string"&&u.toUpperCase()==="SIGTERM","isSigterm"),Kn=s(({forceKillAfterTimeout:u=!0})=>{if(u===!0)return Ln;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"),Yn=s((u,D)=>{u.kill()&&(D.isCanceled=!0)},"spawnedCancel"),zn=s((u,D,t)=>{u.kill(D),t(Object.assign(new Error("Timed out"),{timedOut:!0,signal:D}))},"timeoutKill"),Hn=s((u,{timeout:D,killSignal:t="SIGTERM"},r)=>{if(D===0||D===void 0)return r;let n;const i=new Promise((a,o)=>{n=setTimeout(()=>{zn(u,t,o)},D)}),e=r.finally(()=>{clearTimeout(n)});return Promise.race([i,e])},"setupTimeout"),Vn=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"),Zn=s(async(u,{cleanup:D,detached:t},r)=>{if(!D||t)return r;const n=jn(()=>{u.kill()});return r.finally(()=>{n()})},"setExitHandler");function me(u){return u!==null&&typeof u=="object"&&typeof u.pipe=="function"}s(me,"isStream");function he(u){return me(u)&&u.writable!==!1&&typeof u._write=="function"&&typeof u._writableState=="object"}s(he,"isWritableStream");const Jn=s(u=>u instanceof Ct&&typeof u.then=="function","isExecaChildProcess"),Ku=s((u,D,t)=>{if(typeof t=="string")return u[D].pipe(mt(t)),u;if(he(t))return u[D].pipe(t),u;if(!Jn(t))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!he(t.stdin))throw new TypeError("The target child process's stdin must be available.");return u[D].pipe(t.stdin),t},"pipeToTarget"),Xn=s(u=>{u.stdout!==null&&(u.pipeStdout=Ku.bind(void 0,u,"stdout")),u.stderr!==null&&(u.pipeStderr=Ku.bind(void 0,u,"stderr")),u.all!==void 0&&(u.pipeAll=Ku.bind(void 0,u,"all"))},"addPipeMethods");var Y={exports:{}},Yu,ge;function Qn(){if(ge)return Yu;ge=1;const{PassThrough:u}=yu;return Yu=s(D=>{D={...D};const{array:t}=D;let{encoding:r}=D;const n=r==="buffer";let i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);const e=new u({objectMode:i});r&&e.setEncoding(r);let a=0;const o=[];return e.on("data",c=>{o.push(c),i?a=o.length:a+=c.length}),e.getBufferedValue=()=>t?o:n?Buffer.concat(o,a):o.join(""),e.getBufferedLength=()=>a,e},"bufferStream"),Yu}s(Qn,"requireBufferStream");var Be;function ui(){if(Be)return Y.exports;Be=1;const{constants:u}=gt,D=yu,{promisify:t}=Bt,r=Qn(),n=t(D.pipeline),a=class a extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};s(a,"MaxBufferError");let i=a;async function e(o,c){if(!o)throw new Error("Expected a stream");c={maxBuffer:1/0,...c};const{maxBuffer:l}=c,F=r(c);return await new Promise((C,E)=>{const d=s(g=>{g&&F.getBufferedLength()<=u.MAX_LENGTH&&(g.bufferedData=F.getBufferedValue()),E(g)},"rejectPromise");(async()=>{try{await n(o,F),C()}catch(g){d(g)}})(),F.on("data",()=>{F.getBufferedLength()>l&&d(new i)})}),F.getBufferedValue()}return s(e,"getStream"),Y.exports=e,Y.exports.buffer=(o,c)=>e(o,{...c,encoding:"buffer"}),Y.exports.array=(o,c)=>e(o,{...c,array:!0}),Y.exports.MaxBufferError=i,Y.exports}s(ui,"requireGetStream");var Di=ui(),Ae=L(Di),zu,be;function ei(){if(be)return zu;be=1;const{PassThrough:u}=yu;return zu=s(function(){var D=[],t=new u({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(e){return Array.isArray(e)?(e.forEach(r),this):(D.push(e),e.once("end",i.bind(null,e)),e.once("error",t.emit.bind(t,"error")),e.pipe(t,{end:!1}),this)}s(r,"add");function n(){return D.length==0}s(n,"isEmpty");function i(e){D=D.filter(function(a){return a!==e}),!D.length&&t.readable&&t.end()}s(i,"remove")},"mergeStream$1"),zu}s(ei,"requireMergeStream");var ti=ei(),ri=L(ti);const ni=s(u=>{if(u!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},"validateInputOptions"),ii=s(({input:u,inputFile:D})=>typeof D!="string"?u:(ni(u),ht(D)),"getInput"),oi=s((u,D)=>{const t=ii(D);t!==void 0&&(me(t)?t.pipe(u.stdin):u.stdin.end(t))},"handleInput"),si=s((u,{all:D})=>{if(!D||!u.stdout&&!u.stderr)return;const t=ri();return u.stdout&&t.add(u.stdout),u.stderr&&t.add(u.stderr),t},"makeAllStream"),Hu=s(async(u,D)=>{if(!(!u||D===void 0)){u.destroy();try{return await D}catch(t){return t.bufferedData}}},"getBufferedData"),Vu=s((u,{encoding:D,buffer:t,maxBuffer:r})=>{if(!(!u||!t))return D?Ae(u,{encoding:D,maxBuffer:r}):Ae.buffer(u,{maxBuffer:r})},"getStreamPromise"),ai=s(async({stdout:u,stderr:D,all:t},{encoding:r,buffer:n,maxBuffer:i},e)=>{const a=Vu(u,{encoding:r,buffer:n,maxBuffer:i}),o=Vu(D,{encoding:r,buffer:n,maxBuffer:i}),c=Vu(t,{encoding:r,buffer:n,maxBuffer:i*2});try{return await Promise.all([e,a,o,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},Hu(u,a),Hu(D,o),Hu(t,c)])}},"getSpawnedResult"),ci=(async()=>{})().constructor.prototype,li=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(ci,u)]),ye=s((u,D)=>{for(const[t,r]of li){const n=typeof D=="function"?(...i)=>Reflect.apply(r.value,D(),i):r.value.bind(D);Reflect.defineProperty(u,t,{...r,value:n})}},"mergePromise"),Fi=s(u=>new Promise((D,t)=>{u.on("exit",(r,n)=>{D({exitCode:r,signal:n})}),u.on("error",r=>{t(r)}),u.stdin&&u.stdin.on("error",r=>{t(r)})}),"getSpawnedPromise"),we=s((u,D=[])=>Array.isArray(D)?[u,...D]:[u],"normalizeArgs"),Ci=/^[\w.-]+$/,Ei=/"/g,fi=s(u=>typeof u!="string"||Ci.test(u)?u:`"${u.replace(Ei,'\\"')}"`,"escapeArg"),di=s((u,D)=>we(u,D).join(" "),"joinCommand"),pi=s((u,D)=>we(u,D).map(t=>fi(t)).join(" "),"getEscapedCommand"),mi=At("execa").enabled,lu=s((u,D)=>String(u).padStart(D,"0"),"padField"),hi=s(()=>{const u=new Date;return`${lu(u.getHours(),2)}:${lu(u.getMinutes(),2)}:${lu(u.getSeconds(),2)}.${lu(u.getMilliseconds(),3)}`},"getTimestamp"),gi=s((u,{verbose:D})=>{D&&x.stderr.write(`[${hi()}] ${u}
26
+ `)},"logCommand"),Bi=1e3*1e3*100,Ai=s(({env:u,extendEnv:D,preferLocal:t,localDir:r,execPath:n})=>{const i=D?{...x.env,...u}:u;return t?En({env:i,cwd:r,execPath:n}):i},"getEnv"),bi=s((u,D,t={})=>{const r=an._parse(u,D,t);return u=r.command,D=r.args,t=r.options,t={maxBuffer:Bi,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:t.cwd||x.cwd(),execPath:x.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:mi,...t},t.env=Ai(t),t.stdio=kn(t),x.platform==="win32"&&K.basename(u,".exe")==="cmd"&&D.unshift("/q"),{file:u,args:D,options:t,parsed:r}},"handleArguments"),Zu=s((u,D,t)=>typeof D!="string"&&!Ft.isBuffer(D)?t===void 0?void 0:"":u.stripFinalNewline?cn(D):D,"handleOutput");function z(u,D,t){const r=bi(u,D,t),n=di(u,D),i=pi(u,D);gi(i,r.options),Vn(r.options);let e;try{e=yD.spawn(r.file,r.args,r.options)}catch(E){const d=new yD.ChildProcess,g=Promise.reject(fe({error:E,stdout:"",stderr:"",all:"",command:n,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return ye(d,g),d}const a=Fi(e),o=Hn(e,r.options,a),c=Zn(e,r.options,o),l={isCanceled:!1};e.kill=Gn.bind(null,e.kill.bind(e)),e.cancel=Yn.bind(null,e,l);const C=le(s(async()=>{const[{error:E,exitCode:d,signal:g,timedOut:f},p,m,A]=await ai(e,r.options,c),h=Zu(r.options,p),b=Zu(r.options,m),$=Zu(r.options,A);if(E||d!==0||g!==null){const P=fe({error:E,exitCode:d,signal:g,stdout:h,stderr:b,all:$,command:n,escapedCommand:i,parsed:r,timedOut:f,isCanceled:l.isCanceled||(r.options.signal?r.options.signal.aborted:!1),killed:e.killed});if(!r.options.reject)return P;throw P}return{command:n,escapedCommand:i,exitCode:0,stdout:h,stderr:b,all:$,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},"handlePromise"));return oi(e,r.options),e.all=si(e,r.options),Xn(e),ye(e,C),e}s(z,"execa");let W=!0;const H=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let X=0;if(H.process&&H.process.env&&H.process.stdout){const{FORCE_COLOR:u,NODE_DISABLE_COLORS:D,NO_COLOR:t,TERM:r,COLORTERM:n}=H.process.env;D||t||u==="0"?W=!1:u==="1"||u==="2"||u==="3"?W=!0:r==="dumb"?W=!1:"CI"in H.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(i=>i in H.process.env)?W=!0:W=process.stdout.isTTY,W&&(process.platform==="win32"||n&&(n==="truecolor"||n==="24bit")?X=3:r&&(r.endsWith("-256color")||r.endsWith("256"))?X=2:X=1)}let ve={enabled:W,supportLevel:X};function Q(u,D,t=1){const r=`\x1B[${u}m`,n=`\x1B[${D}m`,i=new RegExp(`\\x1b\\[${D}m`,"g");return e=>ve.enabled&&ve.supportLevel>=t?r+(""+e).replace(i,r)+n:""+e}s(Q,"kolorist");const Ju=Q(2,22),$e=Q(30,39),Fu=Q(31,39),uu=Q(32,39),xe=Q(46,49);var Xu,Se;function yi(){if(Se)return Xu;Se=1;const u="\x1B",D=`${u}[`,t="\x07",r={to(e,a){return a?`${D}${a+1};${e+1}H`:`${D}${e+1}G`},move(e,a){let o="";return e<0?o+=`${D}${-e}D`:e>0&&(o+=`${D}${e}C`),a<0?o+=`${D}${-a}A`:a>0&&(o+=`${D}${a}B`),o},up:s((e=1)=>`${D}${e}A`,"up"),down:s((e=1)=>`${D}${e}B`,"down"),forward:s((e=1)=>`${D}${e}C`,"forward"),backward:s((e=1)=>`${D}${e}D`,"backward"),nextLine:s((e=1)=>`${D}E`.repeat(e),"nextLine"),prevLine:s((e=1)=>`${D}F`.repeat(e),"prevLine"),left:`${D}G`,hide:`${D}?25l`,show:`${D}?25h`,save:`${u}7`,restore:`${u}8`},n={up:s((e=1)=>`${D}S`.repeat(e),"up"),down:s((e=1)=>`${D}T`.repeat(e),"down")},i={screen:`${D}2J`,up:s((e=1)=>`${D}1J`.repeat(e),"up"),down:s((e=1)=>`${D}J`.repeat(e),"down"),line:`${D}2K`,lineEnd:`${D}K`,lineStart:`${D}1K`,lines(e){let a="";for(let o=0;o<e;o++)a+=this.line+(o<e-1?r.up():"");return e&&(a+=r.left),a}};return Xu={cursor:r,scroll:n,erase:i,beep:t},Xu}s(yi,"requireSrc");var S=yi(),Cu={exports:{}},Oe;function wi(){if(Oe)return Cu.exports;Oe=1;let u=process||{},D=u.argv||[],t=u.env||{},r=!(t.NO_COLOR||D.includes("--no-color"))&&(!!t.FORCE_COLOR||D.includes("--color")||u.platform==="win32"||(u.stdout||{}).isTTY&&t.TERM!=="dumb"||!!t.CI),n=s((a,o,c=a)=>l=>{let F=""+l,C=F.indexOf(o,a.length);return~C?a+i(F,o,c,C)+o:a+F+o},"formatter"),i=s((a,o,c,l)=>{let F="",C=0;do F+=a.substring(C,l)+c,C=l+o.length,l=a.indexOf(o,C);while(~l);return F+a.substring(C)},"replaceClose"),e=s((a=r)=>{let o=a?n:()=>String;return{isColorSupported:a,reset:o("\x1B[0m","\x1B[0m"),bold:o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:o("\x1B[3m","\x1B[23m"),underline:o("\x1B[4m","\x1B[24m"),inverse:o("\x1B[7m","\x1B[27m"),hidden:o("\x1B[8m","\x1B[28m"),strikethrough:o("\x1B[9m","\x1B[29m"),black:o("\x1B[30m","\x1B[39m"),red:o("\x1B[31m","\x1B[39m"),green:o("\x1B[32m","\x1B[39m"),yellow:o("\x1B[33m","\x1B[39m"),blue:o("\x1B[34m","\x1B[39m"),magenta:o("\x1B[35m","\x1B[39m"),cyan:o("\x1B[36m","\x1B[39m"),white:o("\x1B[37m","\x1B[39m"),gray:o("\x1B[90m","\x1B[39m"),bgBlack:o("\x1B[40m","\x1B[49m"),bgRed:o("\x1B[41m","\x1B[49m"),bgGreen:o("\x1B[42m","\x1B[49m"),bgYellow:o("\x1B[43m","\x1B[49m"),bgBlue:o("\x1B[44m","\x1B[49m"),bgMagenta:o("\x1B[45m","\x1B[49m"),bgCyan:o("\x1B[46m","\x1B[49m"),bgWhite:o("\x1B[47m","\x1B[49m"),blackBright:o("\x1B[90m","\x1B[39m"),redBright:o("\x1B[91m","\x1B[39m"),greenBright:o("\x1B[92m","\x1B[39m"),yellowBright:o("\x1B[93m","\x1B[39m"),blueBright:o("\x1B[94m","\x1B[39m"),magentaBright:o("\x1B[95m","\x1B[39m"),cyanBright:o("\x1B[96m","\x1B[39m"),whiteBright:o("\x1B[97m","\x1B[39m"),bgBlackBright:o("\x1B[100m","\x1B[49m"),bgRedBright:o("\x1B[101m","\x1B[49m"),bgGreenBright:o("\x1B[102m","\x1B[49m"),bgYellowBright:o("\x1B[103m","\x1B[49m"),bgBlueBright:o("\x1B[104m","\x1B[49m"),bgMagentaBright:o("\x1B[105m","\x1B[49m"),bgCyanBright:o("\x1B[106m","\x1B[49m"),bgWhiteBright:o("\x1B[107m","\x1B[49m")}},"createColors");return Cu.exports=e(),Cu.exports.createColors=e,Cu.exports}s(wi,"requirePicocolors");var vi=wi(),B=L(vi);function $i({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($i,"DD");const xi=$i();function Ie(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(xi,"")}s(Ie,"P$1");function Te(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}s(Te,"L$1");var Pe={exports:{}};(function(u){var D={};u.exports=D,D.eastAsianWidth=function(r){var n=r.charCodeAt(0),i=r.length==2?r.charCodeAt(1):0,e=n;return 55296<=n&&n<=56319&&56320<=i&&i<=57343&&(n&=1023,i&=1023,e=n<<10|i,e+=65536),e==12288||65281<=e&&e<=65376||65504<=e&&e<=65510?"F":e==8361||65377<=e&&e<=65470||65474<=e&&e<=65479||65482<=e&&e<=65487||65490<=e&&e<=65495||65498<=e&&e<=65500||65512<=e&&e<=65518?"H":4352<=e&&e<=4447||4515<=e&&e<=4519||4602<=e&&e<=4607||9001<=e&&e<=9002||11904<=e&&e<=11929||11931<=e&&e<=12019||12032<=e&&e<=12245||12272<=e&&e<=12283||12289<=e&&e<=12350||12353<=e&&e<=12438||12441<=e&&e<=12543||12549<=e&&e<=12589||12593<=e&&e<=12686||12688<=e&&e<=12730||12736<=e&&e<=12771||12784<=e&&e<=12830||12832<=e&&e<=12871||12880<=e&&e<=13054||13056<=e&&e<=19903||19968<=e&&e<=42124||42128<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||55216<=e&&e<=55238||55243<=e&&e<=55291||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65106||65108<=e&&e<=65126||65128<=e&&e<=65131||110592<=e&&e<=110593||127488<=e&&e<=127490||127504<=e&&e<=127546||127552<=e&&e<=127560||127568<=e&&e<=127569||131072<=e&&e<=194367||177984<=e&&e<=196605||196608<=e&&e<=262141?"W":32<=e&&e<=126||162<=e&&e<=163||165<=e&&e<=166||e==172||e==175||10214<=e&&e<=10221||10629<=e&&e<=10630?"Na":e==161||e==164||167<=e&&e<=168||e==170||173<=e&&e<=174||176<=e&&e<=180||182<=e&&e<=186||188<=e&&e<=191||e==198||e==208||215<=e&&e<=216||222<=e&&e<=225||e==230||232<=e&&e<=234||236<=e&&e<=237||e==240||242<=e&&e<=243||247<=e&&e<=250||e==252||e==254||e==257||e==273||e==275||e==283||294<=e&&e<=295||e==299||305<=e&&e<=307||e==312||319<=e&&e<=322||e==324||328<=e&&e<=331||e==333||338<=e&&e<=339||358<=e&&e<=359||e==363||e==462||e==464||e==466||e==468||e==470||e==472||e==474||e==476||e==593||e==609||e==708||e==711||713<=e&&e<=715||e==717||e==720||728<=e&&e<=731||e==733||e==735||768<=e&&e<=879||913<=e&&e<=929||931<=e&&e<=937||945<=e&&e<=961||963<=e&&e<=969||e==1025||1040<=e&&e<=1103||e==1105||e==8208||8211<=e&&e<=8214||8216<=e&&e<=8217||8220<=e&&e<=8221||8224<=e&&e<=8226||8228<=e&&e<=8231||e==8240||8242<=e&&e<=8243||e==8245||e==8251||e==8254||e==8308||e==8319||8321<=e&&e<=8324||e==8364||e==8451||e==8453||e==8457||e==8467||e==8470||8481<=e&&e<=8482||e==8486||e==8491||8531<=e&&e<=8532||8539<=e&&e<=8542||8544<=e&&e<=8555||8560<=e&&e<=8569||e==8585||8592<=e&&e<=8601||8632<=e&&e<=8633||e==8658||e==8660||e==8679||e==8704||8706<=e&&e<=8707||8711<=e&&e<=8712||e==8715||e==8719||e==8721||e==8725||e==8730||8733<=e&&e<=8736||e==8739||e==8741||8743<=e&&e<=8748||e==8750||8756<=e&&e<=8759||8764<=e&&e<=8765||e==8776||e==8780||e==8786||8800<=e&&e<=8801||8804<=e&&e<=8807||8810<=e&&e<=8811||8814<=e&&e<=8815||8834<=e&&e<=8835||8838<=e&&e<=8839||e==8853||e==8857||e==8869||e==8895||e==8978||9312<=e&&e<=9449||9451<=e&&e<=9547||9552<=e&&e<=9587||9600<=e&&e<=9615||9618<=e&&e<=9621||9632<=e&&e<=9633||9635<=e&&e<=9641||9650<=e&&e<=9651||9654<=e&&e<=9655||9660<=e&&e<=9661||9664<=e&&e<=9665||9670<=e&&e<=9672||e==9675||9678<=e&&e<=9681||9698<=e&&e<=9701||e==9711||9733<=e&&e<=9734||e==9737||9742<=e&&e<=9743||9748<=e&&e<=9749||e==9756||e==9758||e==9792||e==9794||9824<=e&&e<=9825||9827<=e&&e<=9829||9831<=e&&e<=9834||9836<=e&&e<=9837||e==9839||9886<=e&&e<=9887||9918<=e&&e<=9919||9924<=e&&e<=9933||9935<=e&&e<=9953||e==9955||9960<=e&&e<=9983||e==10045||e==10071||10102<=e&&e<=10111||11093<=e&&e<=11097||12872<=e&&e<=12879||57344<=e&&e<=63743||65024<=e&&e<=65039||e==65533||127232<=e&&e<=127242||127248<=e&&e<=127277||127280<=e&&e<=127337||127344<=e&&e<=127386||917760<=e&&e<=917999||983040<=e&&e<=1048573||1048576<=e&&e<=1114109?"A":"N"},D.characterLength=function(r){var n=this.eastAsianWidth(r);return n=="F"||n=="W"||n=="A"?2:1};function t(r){return r.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}s(t,"t"),D.length=function(r){for(var n=t(r),i=0,e=0;e<n.length;e++)i=i+this.characterLength(n[e]);return i},D.slice=function(r,n,i){textLen=D.length(r),n=n||0,i=i||1,n<0&&(n=textLen+n),i<0&&(i=textLen+i);for(var e="",a=0,o=t(r),c=0;c<o.length;c++){var l=o[c],F=D.length(l);if(a>=n-(F==2?1:0))if(a+F<=i)e+=l;else break;a+=F}return e}})(Pe);var Si=Pe.exports;const Oi=Te(Si);var Ii=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},"FD");const Ti=Te(Ii);function Du(u,D={}){if(typeof u!="string"||u.length===0||(D={ambiguousIsNarrow:!0,...D},u=Ie(u),u.length===0))return 0;u=u.replace(Ti()," ");const t=D.ambiguousIsNarrow?1:2;let r=0;for(const n of u){const i=n.codePointAt(0);if(!(i<=31||i>=127&&i<=159||i>=768&&i<=879))switch(Oi.eastAsianWidth(n)){case"F":case"W":r+=2;break;case"A":r+=t;break;default:r+=1}}return r}s(Du,"p");const Qu=10,Re=s((u=0)=>D=>`\x1B[${D+u}m`,"N"),ke=s((u=0)=>D=>`\x1B[${38+u};5;${D}m`,"I"),_e=s((u=0)=>(D,t,r)=>`\x1B[${38+u};2;${D};${t};${r}m`,"R"),w={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(w.modifier);const Pi=Object.keys(w.color),Ri=Object.keys(w.bgColor);[...Pi,...Ri];function ki(){const u=new Map;for(const[D,t]of Object.entries(w)){for(const[r,n]of Object.entries(t))w[r]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},t[r]=w[r],u.set(n[0],n[1]);Object.defineProperty(w,D,{value:t,enumerable:!1})}return Object.defineProperty(w,"codes",{value:u,enumerable:!1}),w.color.close="\x1B[39m",w.bgColor.close="\x1B[49m",w.color.ansi=Re(),w.color.ansi256=ke(),w.color.ansi16m=_e(),w.bgColor.ansi=Re(Qu),w.bgColor.ansi256=ke(Qu),w.bgColor.ansi16m=_e(Qu),Object.defineProperties(w,{rgbToAnsi256:{value:s((D,t,r)=>D===t&&t===r?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),"value"),enumerable:!1},hexToRgb:{value:s(D=>{const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!t)return[0,0,0];let[r]=t;r.length===3&&(r=[...r].map(i=>i+i).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,n&255]},"value"),enumerable:!1},hexToAnsi256:{value:s(D=>w.rgbToAnsi256(...w.hexToRgb(D)),"value"),enumerable:!1},ansi256ToAnsi:{value:s(D=>{if(D<8)return 30+D;if(D<16)return 90+(D-8);let t,r,n;if(D>=232)t=((D-232)*10+8)/255,r=t,n=t;else{D-=16;const a=D%36;t=Math.floor(D/36)/5,r=Math.floor(a/6)/5,n=a%6/5}const i=Math.max(t,r,n)*2;if(i===0)return 30;let e=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));return i===2&&(e+=60),e},"value"),enumerable:!1},rgbToAnsi:{value:s((D,t,r)=>w.ansi256ToAnsi(w.rgbToAnsi256(D,t,r)),"value"),enumerable:!1},hexToAnsi:{value:s(D=>w.ansi256ToAnsi(w.hexToAnsi256(D)),"value"),enumerable:!1}}),w}s(ki,"rD");const _i=ki(),Eu=new Set(["\x1B","\x9B"]),Ni=39,uD="\x07",Ne="[",Mi="]",Me="m",DD=`${Mi}8;;`,je=s(u=>`${Eu.values().next().value}${Ne}${u}${Me}`,"z"),Le=s(u=>`${Eu.values().next().value}${DD}${u}${uD}`,"K"),ji=s(u=>u.split(" ").map(D=>Du(D)),"aD"),eD=s((u,D,t)=>{const r=[...D];let n=!1,i=!1,e=Du(Ie(u[u.length-1]));for(const[a,o]of r.entries()){const c=Du(o);if(e+c<=t?u[u.length-1]+=o:(u.push(o),e=0),Eu.has(o)&&(n=!0,i=r.slice(a+1).join("").startsWith(DD)),n){i?o===uD&&(n=!1,i=!1):o===Me&&(n=!1);continue}e+=c,e===t&&a<r.length-1&&(u.push(""),e=0)}!e&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"k$1"),Li=s(u=>{const D=u.split(" ");let t=D.length;for(;t>0&&!(Du(D[t-1])>0);)t--;return t===D.length?u:D.slice(0,t).join(" ")+D.slice(t).join("")},"hD"),Gi=s((u,D,t={})=>{if(t.trim!==!1&&u.trim()==="")return"";let r="",n,i;const e=ji(u);let a=[""];for(const[c,l]of u.split(" ").entries()){t.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let F=Du(a[a.length-1]);if(c!==0&&(F>=D&&(t.wordWrap===!1||t.trim===!1)&&(a.push(""),F=0),(F>0||t.trim===!1)&&(a[a.length-1]+=" ",F++)),t.hard&&e[c]>D){const C=D-F,E=1+Math.floor((e[c]-C-1)/D);Math.floor((e[c]-1)/D)<E&&a.push(""),eD(a,l,D);continue}if(F+e[c]>D&&F>0&&e[c]>0){if(t.wordWrap===!1&&F<D){eD(a,l,D);continue}a.push("")}if(F+e[c]>D&&t.wordWrap===!1){eD(a,l,D);continue}a[a.length-1]+=l}t.trim!==!1&&(a=a.map(c=>Li(c)));const o=[...a.join(`
27
+ `)];for(const[c,l]of o.entries()){if(r+=l,Eu.has(l)){const{groups:C}=new RegExp(`(?:\\${Ne}(?<code>\\d+)m|\\${DD}(?<uri>.*)${uD})`).exec(o.slice(c).join(""))||{groups:{}};if(C.code!==void 0){const E=Number.parseFloat(C.code);n=E===Ni?void 0:E}else C.uri!==void 0&&(i=C.uri.length===0?void 0:C.uri)}const F=_i.codes.get(Number(n));o[c+1]===`
28
+ `?(i&&(r+=Le("")),n&&F&&(r+=je(F))):l===`
29
+ `&&(n&&F&&(r+=je(n)),i&&(r+=Le(i)))}return r},"lD");function Ge(u,D,t){return String(u).normalize().replace(/\r\n/g,`
30
+ `).split(`
31
+ `).map(r=>Gi(r,D,t)).join(`
32
+ `)}s(Ge,"Y$1");const Ui=["up","down","left","right","space","enter","cancel"],fu={actions:new Set(Ui),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function tD(u,D){if(typeof u=="string")return fu.aliases.get(u)===D;for(const t of u)if(t!==void 0&&tD(t,D))return!0;return!1}s(tD,"$");function Wi(u,D){if(u===D)return;const t=u.split(`
33
+ `),r=D.split(`
34
+ `),n=[];for(let i=0;i<Math.max(t.length,r.length);i++)t[i]!==r[i]&&n.push(i);return n}s(Wi,"BD");const qi=globalThis.process.platform.startsWith("win"),rD=Symbol("clack:cancel");function Ue(u){return u===rD}s(Ue,"pD");function du(u,D){const t=u;t.isTTY&&t.setRawMode(D)}s(du,"m");function Ki({input:u=vD,output:D=wD,overwrite:t=!0,hideCursor:r=!0}={}){const n=eu.createInterface({input:u,output:D,prompt:"",tabSize:1});eu.emitKeypressEvents(u,n),u.isTTY&&u.setRawMode(!0);const i=s((e,{name:a,sequence:o})=>{const c=String(e);if(tD([c,a,o],"cancel")){r&&D.write(S.cursor.show),process.exit(0);return}if(!t)return;const l=a==="return"?0:-1,F=a==="return"?-1:0;eu.moveCursor(D,l,F,()=>{eu.clearLine(D,1,()=>{u.once("keypress",i)})})},"i");return r&&D.write(S.cursor.hide),u.once("keypress",i),()=>{u.off("keypress",i),r&&D.write(S.cursor.show),u.isTTY&&!qi&&u.setRawMode(!1),n.terminal=!1,n.close()}}s(Ki,"fD");var Yi=Object.defineProperty,zi=s((u,D,t)=>D in u?Yi(u,D,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[D]=t,"vD"),R=s((u,D,t)=>(zi(u,typeof D!="symbol"?D+"":D,t),t),"h");const gD=class gD{constructor(D,t=!0){R(this,"input"),R(this,"output"),R(this,"_abortSignal"),R(this,"rl"),R(this,"opts"),R(this,"_render"),R(this,"_track",!1),R(this,"_prevFrame",""),R(this,"_subscribers",new Map),R(this,"_cursor",0),R(this,"state","initial"),R(this,"error",""),R(this,"value");const{input:r=vD,output:n=wD,render:i,signal:e,...a}=D;this.opts=a,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=i.bind(this),this._track=t,this._abortSignal=e,this.input=r,this.output=n}unsubscribe(){this._subscribers.clear()}setSubscriber(D,t){const r=this._subscribers.get(D)??[];r.push(t),this._subscribers.set(D,r)}on(D,t){this.setSubscriber(D,{cb:t})}once(D,t){this.setSubscriber(D,{cb:t,once:!0})}emit(D,...t){const r=this._subscribers.get(D)??[],n=[];for(const i of r)i.cb(...t),i.once&&n.push(()=>r.splice(r.indexOf(i),1));for(const i of n)i()}prompt(){return new Promise((D,t)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),D(rD);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}const r=new bt;r._write=(n,i,e)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),e()},this.input.pipe(r),this.rl=SD.createInterface({input:this.input,output:r,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),SD.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),du(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(S.cursor.show),this.output.off("resize",this.render),du(this.input,!1),D(this.value)}),this.once("cancel",()=>{this.output.write(S.cursor.show),this.output.off("resize",this.render),du(this.input,!1),D(rD)})})}onKeypress(D,t){if(this.state==="error"&&(this.state="active"),t?.name&&(!this._track&&fu.aliases.has(t.name)&&this.emit("cursor",fu.aliases.get(t.name)),fu.actions.has(t.name)&&this.emit("cursor",t.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()),t?.name==="return"){if(this.opts.validate){const r=this.opts.validate(this.value);r&&(this.error=r instanceof Error?r.message:r,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}tD([D,t?.name,t?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
35
+ `),du(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){const D=Ge(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
36
+ `).length-1;this.output.write(S.cursor.move(-999,D*-1))}render(){const D=Ge(this._render(this)??"",process.stdout.columns,{hard:!0});if(D!==this._prevFrame){if(this.state==="initial")this.output.write(S.cursor.hide);else{const t=Wi(this._prevFrame,D);if(this.restoreCursor(),t&&t?.length===1){const r=t[0];this.output.write(S.cursor.move(0,r)),this.output.write(S.erase.lines(1));const n=D.split(`
37
+ `);this.output.write(n[r]),this._prevFrame=D,this.output.write(S.cursor.move(0,n.length-r-1));return}if(t&&t?.length>1){const r=t[0];this.output.write(S.cursor.move(0,r)),this.output.write(S.erase.down());const n=D.split(`
38
+ `).slice(r);this.output.write(n.join(`
39
+ `)),this._prevFrame=D;return}this.output.write(S.erase.down())}this.output.write(D),this.state==="initial"&&(this.state="active"),this._prevFrame=D}}};s(gD,"x");let pu=gD;const BD=class BD extends pu{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(D){super(D,!1),this.value=!!D.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",t=>{this.output.write(S.cursor.move(0,-1)),this.value=t,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};s(BD,"dD");let nD=BD;var Hi=Object.defineProperty,Vi=s((u,D,t)=>D in u?Hi(u,D,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[D]=t,"PD"),We=s((u,D,t)=>(Vi(u,typeof D!="symbol"?D+"":D,t),t),"J");const AD=class AD extends pu{constructor(D){super(D,!1),We(this,"options"),We(this,"cursor",0),this.options=D.options,this.cursor=this.options.findIndex(({value:t})=>t===D.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",t=>{switch(t){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}};s(AD,"LD");let iD=AD;function Zi(){return x.platform!=="win32"?x.env.TERM!=="linux":!!x.env.CI||!!x.env.WT_SESSION||!!x.env.TERMINUS_SUBLIME||x.env.ConEmuTask==="{cmd::Cmder}"||x.env.TERM_PROGRAM==="Terminus-Sublime"||x.env.TERM_PROGRAM==="vscode"||x.env.TERM==="xterm-256color"||x.env.TERM==="alacritty"||x.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}s(Zi,"ce");const oD=Zi(),_=s((u,D)=>oD?u:D,"u"),Ji=_("\u25C6","*"),qe=_("\u25A0","x"),Ke=_("\u25B2","x"),Ye=_("\u25C7","o"),Xi=_("\u250C","T"),T=_("\u2502","|"),sD=_("\u2514","\u2014"),aD=_("\u25CF",">"),cD=_("\u25CB"," "),ze=s(u=>{switch(u){case"initial":case"active":return B.cyan(Ji);case"cancel":return B.red(qe);case"error":return B.yellow(Ke);case"submit":return B.green(Ye)}},"b"),Qi=s(u=>{const{cursor:D,options:t,style:r}=u,n=u.maxItems??Number.POSITIVE_INFINITY,i=Math.max(process.stdout.rows-4,0),e=Math.min(i,Math.max(n,5));let a=0;D>=a+e-3?a=Math.max(Math.min(D-e+3,t.length-e),0):D<a+2&&(a=Math.max(D-2,0));const o=e<t.length&&a>0,c=e<t.length&&a+e<t.length;return t.slice(a,a+e).map((l,F,C)=>{const E=F===0&&o,d=F===C.length-1&&c;return E||d?B.dim("..."):r(l,F+a===D)})},"G"),uo=s(u=>{const D=u.active??"Yes",t=u.inactive??"No";return new nD({active:D,inactive:t,initialValue:u.initialValue??!0,render(){const r=`${B.gray(T)}
40
+ ${ze(this.state)} ${u.message}
41
+ `,n=this.value?D:t;switch(this.state){case"submit":return`${r}${B.gray(T)} ${B.dim(n)}`;case"cancel":return`${r}${B.gray(T)} ${B.strikethrough(B.dim(n))}
42
+ ${B.gray(T)}`;default:return`${r}${B.cyan(T)} ${this.value?`${B.green(aD)} ${D}`:`${B.dim(cD)} ${B.dim(D)}`} ${B.dim("/")} ${this.value?`${B.dim(cD)} ${B.dim(t)}`:`${B.green(aD)} ${t}`}
43
+ ${B.cyan(sD)}
44
+ `}}}).prompt()},"ye"),Do=s(u=>{const D=s((t,r)=>{const n=t.label??String(t.value);switch(r){case"selected":return`${B.dim(n)}`;case"active":return`${B.green(aD)} ${n} ${t.hint?B.dim(`(${t.hint})`):""}`;case"cancelled":return`${B.strikethrough(B.dim(n))}`;default:return`${B.dim(cD)} ${B.dim(n)}`}},"n");return new iD({options:u.options,initialValue:u.initialValue,render(){const t=`${B.gray(T)}
45
+ ${ze(this.state)} ${u.message}
46
+ `;switch(this.state){case"submit":return`${t}${B.gray(T)} ${D(this.options[this.cursor],"selected")}`;case"cancel":return`${t}${B.gray(T)} ${D(this.options[this.cursor],"cancelled")}
47
+ ${B.gray(T)}`;default:return`${t}${B.cyan(T)} ${Qi({cursor:this.cursor,options:this.options,maxItems:u.maxItems,style:s((r,n)=>D(r,n?"active":"inactive"),"style")}).join(`
48
+ ${B.cyan(T)} `)}
49
+ ${B.cyan(sD)}
50
+ `}}}).prompt()},"ve"),He=s((u="")=>{process.stdout.write(`${B.gray(Xi)} ${u}
51
+ `)},"Ie"),q=s((u="")=>{process.stdout.write(`${B.gray(T)}
52
+ ${B.gray(sD)} ${u}
53
+
54
+ `)},"Se");`${B.gray(T)}`;const lD=s(({indicator:u="dots"}={})=>{const D=oD?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],t=oD?80:120,r=process.env.CI==="true";let n,i,e=!1,a="",o,c=performance.now();const l=s(h=>{const b=h>1?"Something went wrong":"Canceled";e&&A(b,h)},"p"),F=s(()=>l(2),"v"),C=s(()=>l(1),"f"),E=s(()=>{process.on("uncaughtExceptionMonitor",F),process.on("unhandledRejection",F),process.on("SIGINT",C),process.on("SIGTERM",C),process.on("exit",l)},"j"),d=s(()=>{process.removeListener("uncaughtExceptionMonitor",F),process.removeListener("unhandledRejection",F),process.removeListener("SIGINT",C),process.removeListener("SIGTERM",C),process.removeListener("exit",l)},"E"),g=s(()=>{if(o===void 0)return;r&&process.stdout.write(`
55
+ `);const h=o.split(`
56
+ `);process.stdout.write(S.cursor.move(-999,h.length-1)),process.stdout.write(S.erase.down(h.length))},"B"),f=s(h=>h.replace(/\.+$/,""),"R"),p=s(h=>{const b=(performance.now()-h)/1e3,$=Math.floor(b/60),P=Math.floor(b%60);return $>0?`[${$}m ${P}s]`:`[${P}s]`},"O"),m=s((h="")=>{e=!0,n=Ki(),a=f(h),c=performance.now(),process.stdout.write(`${B.gray(T)}
57
+ `);let b=0,$=0;E(),i=setInterval(()=>{if(r&&a===o)return;g(),o=a;const P=B.magenta(D[b]);if(r)process.stdout.write(`${P} ${a}...`);else if(u==="timer")process.stdout.write(`${P} ${a} ${p(c)}`);else{const Au=".".repeat(Math.floor($)).slice(0,3);process.stdout.write(`${P} ${a}${Au}`)}b=b+1<D.length?b+1:0,$=$<D.length?$+.125:0},t)},"H"),A=s((h="",b=0)=>{e=!1,clearInterval(i),g();const $=b===0?B.green(Ye):b===1?B.red(qe):B.red(Ke);a=f(h??a),u==="timer"?process.stdout.write(`${$} ${a} ${p(c)}
58
+ `):process.stdout.write(`${$} ${a}
59
+ `),d(),n()},"N");return{start:m,stop:A,message:s((h="")=>{a=f(h??a)},"message")}},"Y"),bD=class bD extends Error{};s(bD,"KnownError");let y=bD;const FD=" ",mu=s(u=>{u instanceof Error&&!(u instanceof y)&&(u.stack&&console.error(Ju(u.stack.split(`
60
+ `).slice(1).join(`
61
+ `))),console.error(`
62
+ ${FD}${Ju(`aicommit v${Pu.version}`)}`),console.error(`
63
+ ${FD}Please open a Bug report with the information above:`),console.error(`${FD}https://github.com/NegoZiatoR/ai-commit/issues/new/choose`))},"handleCliError"),CD=s(async()=>{const{stdout:u,failed:D}=await z("git",["rev-parse","--show-toplevel"],{reject:!1});if(D)throw new y("The current directory must be a Git repository!");return u},"assertGitRepo"),ED=s(u=>`:(exclude)${u}`,"excludeFromDiff"),Ve=["package-lock.json","*.lock"].map(ED),Ze=s(async u=>{const D=["diff","--cached","--diff-algorithm=minimal"],{stdout:t}=await z("git",[...D,"--name-only",...Ve,...u?u.map(ED):[]]);if(!t)return;const{stdout:r}=await z("git",[...D,...Ve,...u?u.map(ED):[]]);return{files:t.split(`
64
+ `),diff:r}},"getStagedDiff"),eo=s(u=>`Detected ${u.length.toLocaleString()} staged file${u.length>1?"s":""}`,"getDetectedMessage");var fD,Je;function to(){if(Je)return fD;Je=1;const{hasOwnProperty:u}=Object.prototype,D=s((a,o={})=>{typeof o=="string"&&(o={section:o}),o.align=o.align===!0,o.newline=o.newline===!0,o.sort=o.sort===!0,o.whitespace=o.whitespace===!0||o.align===!0,o.platform=o.platform||typeof process<"u"&&process.platform,o.bracketedArray=o.bracketedArray!==!1;const c=o.platform==="win32"?`\r
65
+ `:`
66
+ `,l=o.whitespace?" = ":"=",F=[],C=o.sort?Object.keys(a).sort():Object.keys(a);let E=0;o.align&&(E=i(C.filter(f=>a[f]===null||Array.isArray(a[f])||typeof a[f]!="object").map(f=>Array.isArray(a[f])?`${f}[]`:f).concat([""]).reduce((f,p)=>i(f).length>=i(p).length?f:p)).length);let d="";const g=o.bracketedArray?"[]":"";for(const f of C){const p=a[f];if(p&&Array.isArray(p))for(const m of p)d+=i(`${f}${g}`).padEnd(E," ")+l+i(m)+c;else p&&typeof p=="object"?F.push(f):d+=i(f).padEnd(E," ")+l+i(p)+c}o.section&&d.length&&(d="["+i(o.section)+"]"+(o.newline?c+c:c)+d);for(const f of F){const p=t(f,".").join("\\."),m=(o.section?o.section+".":"")+p,A=D(a[f],{...o,section:m});d.length&&A.length&&(d+=c),d+=A}return d},"encode");function t(a,o){var c=0,l=0,F=0,C=[];do if(F=a.indexOf(o,c),F!==-1){if(c=F+o.length,F>0&&a[F-1]==="\\")continue;C.push(a.slice(l,F)),l=F+o.length}while(F!==-1);return C.push(a.slice(l)),C}s(t,"splitSections");const r=s((a,o={})=>{o.bracketedArray=o.bracketedArray!==!1;const c=Object.create(null);let l=c,F=null;const C=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,E=a.split(/[\r\n]+/g),d={};for(const f of E){if(!f||f.match(/^\s*[;#]/)||f.match(/^\s*$/))continue;const p=f.match(C);if(!p)continue;if(p[1]!==void 0){if(F=e(p[1]),F==="__proto__"){l=Object.create(null);continue}l=c[F]=c[F]||Object.create(null);continue}const m=e(p[2]);let A;o.bracketedArray?A=m.length>2&&m.slice(-2)==="[]":(d[m]=(d?.[m]||0)+1,A=d[m]>1);const h=A&&m.endsWith("[]")?m.slice(0,-2):m;if(h==="__proto__")continue;const b=p[3]?e(p[4]):!0,$=b==="true"||b==="false"||b==="null"?JSON.parse(b):b;A&&(u.call(l,h)?Array.isArray(l[h])||(l[h]=[l[h]]):l[h]=[]),Array.isArray(l[h])?l[h].push($):l[h]=$}const g=[];for(const f of Object.keys(c)){if(!u.call(c,f)||typeof c[f]!="object"||Array.isArray(c[f]))continue;const p=t(f,".");l=c;const m=p.pop(),A=m.replace(/\\\./g,".");for(const h of p)h!=="__proto__"&&((!u.call(l,h)||typeof l[h]!="object")&&(l[h]=Object.create(null)),l=l[h]);l===c&&A===m||(l[A]=c[f],g.push(f))}for(const f of g)delete c[f];return c},"decode"),n=s(a=>a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"),"isQuoted"),i=s(a=>typeof a!="string"||a.match(/[=\r\n]/)||a.match(/^\[/)||a.length>1&&n(a)||a!==a.trim()?JSON.stringify(a):a.split(";").join("\\;").split("#").join("\\#"),"safe"),e=s(a=>{if(a=(a||"").trim(),n(a)){a.charAt(0)==="'"&&(a=a.slice(1,-1));try{a=JSON.parse(a)}catch{}}else{let o=!1,c="";for(let l=0,F=a.length;l<F;l++){const C=a.charAt(l);if(o)"\\;#".indexOf(C)!==-1?c+=C:c+="\\"+C,o=!1;else{if(";#".indexOf(C)!==-1)break;C==="\\"?o=!0:c+=C}}return o&&(c+="\\"),c.trim()}return a},"unsafe");return fD={parse:r,decode:r,stringify:D,encode:D,safe:i,unsafe:e},fD}s(to,"requireIni");var ro=to(),Xe=L(ro);const hu=s(u=>O.lstat(u).then(()=>!0,()=>!1),"fileExists"),dD=s(async u=>{try{let D;try{D=u||await CD()}catch(e){if(e instanceof y&&e.message.includes("Git repository"))return;throw e}const t=N.join(D,".ai-commit.json");if(!await hu(t))return;const n=await O.readFile(t,"utf8");return JSON.parse(n)}catch(D){if(D instanceof y)throw D;return}},"getProjectConfig");function no(u){const D={},t=u.split(`
67
+ `);for(const r of t){const n=r.trim();if(!n||n.startsWith("#"))continue;const i=n.match(/^([A-Z_][A-Z0-9_]*)\s*=\s*(.*)$/i);if(!i)continue;const[,e,a]=i;let o=a.trim();(o.startsWith('"')&&o.endsWith('"')||o.startsWith("'")&&o.endsWith("'"))&&(o=o.slice(1,-1)),D[e]=o}return D}s(no,"parseEnvContent");async function Qe(u){const{filename:D=".env",directory:t=process.cwd(),override:r=!1}=u||{},n=N.join(t,D);if(!await hu(n))return{};try{const e=await O.readFile(n,"utf8"),a=no(e);for(const[o,c]of Object.entries(a))(r||process.env[o]===void 0)&&(process.env[o]=c);return a}catch{return{}}}s(Qe,"loadEnvFile");async function io(){process.env.NODE_ENV==="test"?await Qe({filename:".env.local"}):await Qe({filename:".env"})}s(io,"loadEnvironment");const ut=["openai","anthropic","azure-openai","ollama","custom"],oo=["","conventional"],{hasOwnProperty:so}=Object.prototype,Dt=s((u,D)=>so.call(u,D),"hasOwn"),v=s((u,D,t)=>{if(!D)throw new y(`Invalid config property ${u}: ${t}`)},"parseAssert"),gu={provider(u){return u?(v("provider",ut.includes(u),`Must be one of: ${ut.join(", ")}`),u):"openai"},OPENAI_KEY(u){if(u)return v("OPENAI_KEY",u.startsWith("sk-"),'Must start with "sk-"'),u},ANTHROPIC_KEY(u){if(u)return v("ANTHROPIC_KEY",u.startsWith("sk-ant-"),'Must start with "sk-ant-"'),u},AZURE_OPENAI_KEY(u){return u},AZURE_ENDPOINT(u){if(u)return v("AZURE_ENDPOINT",/^https?:\/\//.test(u),"Must be a valid URL"),u},OLLAMA_ENDPOINT(u){return u?(v("OLLAMA_ENDPOINT",/^https?:\/\//.test(u),"Must be a valid URL"),u):"http://localhost:11434"},CUSTOM_ENDPOINT(u){if(u)return v("CUSTOM_ENDPOINT",/^https?:\/\//.test(u),"Must be a valid URL"),u},CUSTOM_KEY(u){return u},locale(u){return u?(v("locale",u,"Cannot be empty"),v("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;v("generate",/^\d+$/.test(u),"Must be an integer");const D=Number(u);return v("generate",D>0,"Must be greater than 0"),v("generate",D<=5,"Must be less or equal to 5"),D},type(u){return u?(v("type",oo.includes(u),"Invalid commit type"),u):""},proxy(u){if(!(!u||u.length===0))return v("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;v("timeout",/^\d+$/.test(u),"Must be an integer");const D=Number(u);return v("timeout",D>=500,"Must be greater than 500ms"),D},temperature(u){if(!u)return .2;v("temperature",/^(2|\d)(\.\d{1,2})?$/.test(u),"Must be decimal between 0 and 2");const D=Number(u);return v("temperature",D>0,"Must be greater than 0"),v("temperature",D<=2,"Must be less than or equal to 2"),D},"max-length"(u){if(!u)return 50;v("max-length",/^\d+$/.test(u),"Must be an integer");const D=Number(u);return v("max-length",D>=20,"Must be greater than 20 characters"),D},"max-completion-tokens"(u){if(!u)return 1e4;v("max-completion-tokens",/^\d+$/.test(u),"Must be an integer");const D=Number(u);return v("max-completion-tokens",D>0,"Must be greater than 0"),D},"auto-confirm"(u){return u?typeof u=="boolean"?u:(v("auto-confirm",/^(?:true|false)$/.test(u),"Must be a boolean"),u==="true"):!1},"prepend-reference"(u){return u?typeof u=="boolean"?u:(v("prepend-reference",/^(?:true|false)$/.test(u),"Must be a boolean"),u==="true"):!1}},pD=N.join(yt.homedir(),".aicommit"),et=s(async()=>{if(!await hu(pD))return Object.create(null);const D=await O.readFile(pD,"utf8");return Xe.parse(D)},"readConfigFile"),ao=s(u=>{const D=u.provider;switch(D){case"openai":if(!u.OPENAI_KEY)throw new y("Please set your OpenAI API key via `aicommit config set OPENAI_KEY=<your token>`");break;case"anthropic":if(!u.ANTHROPIC_KEY)throw new y("Please set your Anthropic API key via `aicommit config set ANTHROPIC_KEY=<your token>`\nGet your API key from: https://console.anthropic.com/");break;case"azure-openai":if(!u.AZURE_OPENAI_KEY)throw new y("Please set your Azure OpenAI API key via `aicommit config set AZURE_OPENAI_KEY=<your token>`");if(!u.AZURE_ENDPOINT)throw new y("Please set your Azure OpenAI endpoint via `aicommit config set AZURE_ENDPOINT=<your endpoint>`");break;case"ollama":break;case"custom":if(!u.CUSTOM_ENDPOINT)throw new y("Please set your custom endpoint via `aicommit config set CUSTOM_ENDPOINT=<your endpoint>`");break;default:throw new y(`Unknown provider: ${D}`)}},"validateProviderConfig"),mD=s(async(u,D)=>{await io();const t=await et(),r=await dD(),n={};for(const e of Object.keys(gu)){const a=gu[e];let o=r?.[e]??u?.[e]??process.env[e]??t[e];if(typeof o=="boolean"&&(o=o.toString()),D)try{n[e]=a(o)}catch{}else n[e]=a(o)}const i=n;return D||ao(i),i},"getConfig"),co=s(async u=>{const D=await et();for(const[t,r]of u){if(!Dt(gu,t))throw new y(`Invalid config property: ${t}`);const n=gu[t](r);D[t]=n}await O.writeFile(pD,Xe.stringify(D),"utf8")},"setConfigs"),tt={openai:s(()=>import("./openai-foHbhRVW.mjs"),"openai"),anthropic:s(()=>import("./anthropic-DJVOPReW.mjs"),"anthropic"),"azure-openai":s(()=>import("./azure-openai-tXzyzZc3.mjs"),"azure-openai"),ollama:s(()=>import("./ollama-D2s8lKyO.mjs"),"ollama"),custom:s(()=>import("./custom-ChlxDLUY.mjs"),"custom")};async function rt(u,D){const t=tt[u];if(!t)throw new y(`Unknown provider type: ${u}. Supported providers: ${Object.keys(tt).join(", ")}`);try{const n=(await t()).default;return new n(D)}catch(r){throw r instanceof y?r:r.code==="ERR_MODULE_NOT_FOUND"?new y(`Provider "${u}" is not yet implemented. Currently supported: openai`):new y(`Failed to initialize provider "${u}": ${r.message}`)}}s(rt,"createProvider");var lo=s(async(u,D,t,r,n)=>(async()=>{He(xe($e(" aicommit "))),await CD();const i=lD();t&&await z("git",["add","--update"]),i.start("Detecting staged files");const e=await Ze(D);if(!e)throw i.stop("Detecting staged files"),new y("No staged changes found. Stage your changes manually, or automatically stage all changes with the `--all` flag.");i.stop(`${eo(e.files)}:
68
+ ${e.files.map(C=>` ${C}`).join(`
69
+ `)}`);const{env:a}=process,o=await mD({OPENAI_KEY:a.OPENAI_KEY||a.OPENAI_API_KEY,proxy:a.https_proxy||a.HTTPS_PROXY||a.http_proxy||a.HTTP_PROXY,generate:u?.toString(),type:r?.toString()}),c=lD();c.start("The AI is analyzing your changes");let l;try{const C={model:o.model,locale:o.locale,maxLength:o["max-length"],type:o.type,timeout:o.timeout,temperature:o.temperature,maxCompletionTokens:o["max-completion-tokens"],proxy:o.proxy};let E;switch(o.provider){case"openai":E={...C,apiKey:o.OPENAI_KEY};break;case"anthropic":E={...C,apiKey:o.ANTHROPIC_KEY};break;case"azure-openai":E={...C,apiKey:o.AZURE_OPENAI_KEY,endpoint:o.AZURE_ENDPOINT};break;case"ollama":E={...C,endpoint:o.OLLAMA_ENDPOINT};break;case"custom":E={...C,endpoint:o.CUSTOM_ENDPOINT,apiKey:o.CUSTOM_KEY};break;default:E={...C,apiKey:o.OPENAI_KEY}}const d=await rt(o.provider,E),g=await dD();l=(await d.generateCommitMessage({diff:e.diff,completions:o.generate,projectConfig:g})).messages}finally{c.stop("Changes analyzed")}if(l.length===0)throw new y("No commit messages were generated. Try again.");let F;if(l.length===1){[F]=l;let C;if(o["auto-confirm"]?(C=!0,q(`${uu("\u2714")} Auto confirmed commit message.
70
+
71
+ ${F}
72
+ `)):C=await uo({message:`Use this commit message?
73
+
74
+ ${F}
75
+ `}),!C||Ue(C)){q("Commit cancelled");return}}else{const C=await Do({message:`Pick a commit message to use: ${Ju("(Ctrl+c to exit)")}`,options:l.map(E=>({label:E,value:E}))});if(Ue(C)){q("Commit cancelled");return}F=C}if(o["prepend-reference"]){const{stdout:C}=await z("git",["branch","--show-current"]),E=C.match(/([a-zA-Z])+-([0-9]+)/)?.[0];E?.length&&(F=`${E?.toUpperCase()}: ${F}`)}await z("git",["commit","-m",F,...n]),q(`${uu("\u2714")} Successfully committed!`)})().catch(i=>{q(`${Fu("\u2716")} ${i.message}`),mu(i),process.exit(1)}),"aicommit");const[hD,Fo]=process.argv.slice(2);var Co=s(()=>(async()=>{if(!hD)throw new y('Commit message file path is missing. This file should be called from the "prepare-commit-msg" git hook');if(Fo)return;const u=await Ze();if(!u)return;He(xe($e(" aicommit ")));const{env:D}=process,t=await mD({proxy:D.https_proxy||D.HTTPS_PROXY||D.http_proxy||D.HTTP_PROXY}),r=lD();r.start("The AI is analyzing your changes");let n;try{const c={model:t.model,locale:t.locale,maxLength:t["max-length"],type:t.type,timeout:t.timeout,temperature:t.temperature,maxCompletionTokens:t["max-completion-tokens"],proxy:t.proxy};let l;switch(t.provider){case"openai":l={...c,apiKey:t.OPENAI_KEY};break;case"anthropic":l={...c,apiKey:t.ANTHROPIC_KEY};break;case"azure-openai":l={...c,apiKey:t.AZURE_OPENAI_KEY,endpoint:t.AZURE_ENDPOINT};break;case"ollama":l={...c,endpoint:t.OLLAMA_ENDPOINT};break;case"custom":l={...c,endpoint:t.CUSTOM_ENDPOINT,apiKey:t.CUSTOM_KEY};break;default:l={...c,apiKey:t.OPENAI_KEY}}const F=await rt(t.provider,l),C=await dD();n=(await F.generateCommitMessage({diff:u.diff,completions:t.generate,projectConfig:C})).messages}finally{r.stop("Changes analyzed")}const e=await O.readFile(hD,"utf8")!=="",a=n.length>1;let o="";e&&(o=`# \u{1F916} AI generated commit${a?"s":""}
76
+ `),a?(e&&(o+=`# Select one of the following messages by uncommeting:
77
+ `),o+=`
78
+ ${n.map(c=>`# ${c}`).join(`
79
+ `)}`):(e&&(o+=`# Edit the message below and commit:
80
+ `),o+=`
81
+ ${n[0]}
82
+ `),await O.appendFile(hD,o),q(`${uu("\u2714")} Saved commit message!`)})().catch(u=>{q(`${Fu("\u2716")} ${u.message}`),mu(u),process.exit(1)}),"prepareCommitMessageHook"),Eo=ZD({name:"config",parameters:["<mode>","<key=value...>"]},u=>{(async()=>{const{mode:D,keyValue:t}=u._;if(D==="get"){const r=await mD({},!0);for(const n of t)Dt(r,n)&&console.log(`${n}=${r[n]}`);return}if(D==="set"){await co(t.map(r=>r.split("=")));return}throw new y(`Invalid mode: ${D}`)})().catch(D=>{console.error(`${Fu("\u2716")} ${D.message}`),mu(D),process.exit(1)})});const nt="prepare-commit-msg",it=`.git/hooks/${nt}`,Bu=wt(new URL("cli.mjs",import.meta.url)),fo=process.argv[1].replace(/\\/g,"/").endsWith(`/${it}`),ot=process.platform==="win32",st=`
83
+ #!/usr/bin/env node
84
+ import(${JSON.stringify(vt(Bu))})
85
+ `.trim();var po=ZD({name:"hook",parameters:["<install/uninstall>"]},u=>{(async()=>{const D=await CD(),{installUninstall:t}=u._,r=N.join(D,it),n=await hu(r);if(t==="install"){if(n){if(await O.realpath(r).catch(()=>{})===Bu){console.warn("The hook is already installed");return}throw new y(`A different ${nt} hook seems to be installed. Please remove it before installing aicommit.`)}await O.mkdir(N.dirname(r),{recursive:!0}),ot?await O.writeFile(r,st):(await O.symlink(Bu,r,"file"),await O.chmod(r,493)),console.log(`${uu("\u2714")} Hook installed`);return}if(t==="uninstall"){if(!n){console.warn("Hook is not installed");return}if(ot){if(await O.readFile(r,"utf8")!==st){console.warn("Hook is not installed");return}}else if(await O.realpath(r)!==Bu){console.warn("Hook is not installed");return}await O.rm(r),console.log(`${uu("\u2714")} Hook uninstalled`);return}throw new y(`Invalid mode: ${t}`)})().catch(D=>{console.error(`${Fu("\u2716")} ${D.message}`),mu(D),process.exit(1)})});const at=process.argv.slice(2);Kr({name:"aicommit",version:Pu.version,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:[Eo,po],help:{description:Pu.description},ignoreArgv:s(u=>u==="unknown-flag"||u==="argument","ignoreArgv")},u=>{fo?Co():lo(u.flags.generate,u.flags.exclude,u.flags.all,u.flags.type,at)},at);export{y as K,L as g};