git-publish 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +22 -22
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -1,27 +1,27 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var fD=Object.defineProperty;var n=(u,D)=>fD(u,"name",{value:D,configurable:!0});var f=require("node:path"),M=require("node:fs/promises"),dD=require("node:os"),B=require("node:process"),hD=require("node:util"),mu=require("node:url"),gD=require("node:child_process"),X=require("node:events"),wu=require("node:stream/promises"),BD=require("node:readline/promises"),mD=require("tasuku"),bu=require("tty"),wD=require("os"),bD=require("node:fs"),AD=require("tar-fs"),yD=require("gunzip-maybe");function vD(u){var D=Object.create(null);return u&&Object.keys(u).forEach(function(e){if(e!=="default"){var t=Object.getOwnPropertyDescriptor(u,e);Object.defineProperty(D,e,t.get?t:{enumerable:!0,get:n(function(){return u[e]},"get")})}}),D.default=u,Object.freeze(D)}n(vD,"_interopNamespaceDefault");var $D=vD(BD);const OD=n(u=>({start:B.hrtime.bigint(),command:u.map(D=>TD(hD.stripVTControlCharacters(D))).join(" "),state:{stdout:"",stderr:"",output:""}}),"getContext"),TD=n(u=>/[^\w./-]/.test(u)?`'${u.replaceAll("'","'\\''")}'`:u,"getCommandPart"),MD=n(({stdin:u,stdout:D,stderr:e,stdio:t=[u,D,e],env:r,preferLocal:o,cwd:i=".",...a})=>{const s=i instanceof URL?mu.fileURLToPath(i):f.resolve(i),l=r?{...B.env,...r}:void 0,c=t[0]?.string;return{...a,input:c,stdio:c===void 0?t:["pipe",...t.slice(1)],env:o?kD(l??B.env,s):l,cwd:s}},"getOptions"),kD=n(({Path:u="",PATH:D=u,...e},t)=>{const r=D.split(f.delimiter),o=Au([],f.resolve(t)).map(i=>f.join(i,"node_modules/.bin")).filter(i=>!r.includes(i));return{...e,PATH:[...o,D].filter(Boolean).join(f.delimiter)}},"addLocalPath"),Au=n((u,D)=>u.at(-1)===D?u:Au([...u,D],f.resolve(D,"..")),"getLocalPaths"),RD=n(async(u,D,e)=>await SD(u,e)?[Q(u),D.map(t=>LD(t)),{...e,shell:!0}]:[u,D,e],"applyForceShell"),SD=n(async(u,{shell:D,cwd:e,env:t=B.env})=>B.platform==="win32"&&!D&&!await xD(u,e,t),"shouldForceShell"),xD=n((u,D,{Path:e="",PATH:t=e})=>vu.some(r=>u.toLowerCase().endsWith(r))||ID(u,D,t),"isExe"),jD={},yu=n(u=>(...D)=>jD[D.join("\0")]??=u(...D),"memoize"),PD=yu(M.access),ID=yu(async(u,D,e)=>{const t=e.split(f.delimiter).filter(Boolean).map(r=>r.replace(/^"(.*)"$/,"$1"));try{await Promise.any([D,...t].flatMap(r=>vu.map(o=>PD(`${f.resolve(r,u)}${o}`))))}catch{return!1}return!0}),vu=[".exe",".com"],LD=n(u=>Q(Q(`"${u.replaceAll(/(\\*)"/g,'$1$1\\"').replace(/(\\*)$/,"$1$1")}"`)),"escapeArgument"),Q=n(u=>u.replaceAll(/([()\][%!^"`<>&|;, *?])/g,"^$1"),"escapeFile"),ND=n(async(u,{input:D},e)=>{const t=await u;D!==void 0&&t.stdin.end(D);const r=X.once(t,"close");try{return await Promise.race([r,...t.stdio.filter(Boolean).map(o=>_D(o))]),WD(e,Ou(t)),Tu(e)}catch(o){throw await Promise.allSettled([r]),$u(o,t,e)}},"getResult"),_D=n(async u=>{for await(const[D]of X.on(u,"error"))if(!["ERR_STREAM_PREMATURE_CLOSE","EPIPE"].includes(D?.code))throw D},"onStreamError"),WD=n(({command:u},{exitCode:D,signalName:e})=>{if(e!==void 0)throw new W(`Command was terminated with ${e}: ${u}`);if(D!==void 0)throw new W(`Command failed with exit code ${D}: ${u}`)},"checkFailure"),$u=n((u,D,e)=>Object.assign(qD(u,e),Ou(D),Tu(e)),"getResultError"),qD=n((u,{command:D})=>u instanceof W?u:new W(`Command failed: ${D}`,{cause:u}),"getErrorInstance");class W extends Error{static{n(this,"SubprocessError")}name="SubprocessError"}const Ou=n(({exitCode:u,signalCode:D})=>({...u<1?{}:{exitCode:u},...D===null?{}:{signalName:D}}),"getErrorOutput"),Tu=n(({state:{stdout:u,stderr:D,output:e},command:t,start:r})=>({stdout:uu(u),stderr:uu(D),output:uu(e),command:t,durationMs:Number(B.hrtime.bigint()-r)/1e6}),"getOutputs"),uu=n(u=>u.at(-1)===`
3
- `?u.slice(0,u.at(-2)==="\r"?-2:-1):u,"getOutput"),GD=n(async(u,D,e,t)=>{try{["node","node.exe"].includes(u.toLowerCase())&&(u=B.execPath,D=[...B.execArgv.filter(o=>!o.startsWith("--inspect")),...D]),[u,D,e]=await RD(u,D,e),[u,D,e]=zD(u,D,e);const r=gD.spawn(u,D,e);return Mu(r.stdout,t,"stdout"),Mu(r.stderr,t,"stderr"),r.once("error",()=>{}),await X.once(r,"spawn"),r}catch(r){throw $u(r,{},t)}},"spawnSubprocess"),zD=n((u,D,e)=>e.shell&&D.length>0?[[u,...D].join(" "),[],e]:[u,D,e],"concatenateShell"),Mu=n((u,{state:D},e)=>{u&&(u.setEncoding("utf8"),D.isIterating||(D.isIterating=!1,u.on("data",t=>{D[e]+=t,D.output+=t})))},"bufferOutput"),UD=n(async u=>{const[[D,e]]=await Promise.all([Promise.allSettled(u),HD(u)]);if(e.reason)throw e.reason.pipedFrom=D.reason??D.value,e.reason;if(D.reason)throw D.reason;return{...e.value,pipedFrom:D.value}},"handlePipe"),HD=n(async u=>{try{const[{stdout:D},{stdin:e}]=await Promise.all(u.map(({nodeChildProcess:t})=>t));if(e===null)throw new Error('The "stdin" option must be set on the first "spawn()" call in the pipeline.');if(D===null)throw new Error('The "stdout" option must be set on the last "spawn()" call in the pipeline.');wu.pipeline(D,e).catch(()=>{})}catch(D){throw await Promise.allSettled(u.map(({nodeChildProcess:e})=>VD(e))),D}},"pipeStreams"),VD=n(async u=>{const{stdin:D}=await u;D.end()},"closeStdin"),ku=n(async function*(u,{state:D},e){if(D.isIterating===!1)throw new Error(`The subprocess must be iterated right away, for example:
4
- for await (const line of spawn(...)) { ... }`);D.isIterating=!0;try{const{[e]:t}=await u.nodeChildProcess;if(!t)return;YD(u),yield*$D.createInterface({input:t})}finally{await u}},"lineIterator"),YD=n(async u=>{try{await u}catch{}},"handleErrors"),JD=n(async function*(...u){try{let D=[];for(;u.length>0;){D=u.map((i,a)=>D[a]??ZD(i));const[{value:e,done:t},r]=await Promise.race(D.map((i,a)=>Promise.all([i,a]))),[o]=u.splice(r,1);D.splice(r,1),t||(u.push(o),yield e)}}finally{await Promise.all(u.map(D=>D.return()))}},"combineAsyncIterators"),ZD=n(async u=>{try{return await u.next()}catch(D){await u.throw(D)}},"getNext");function g(u,D,e,t){const[r=[],o={}]=Array.isArray(D)?[D,e]:[[],D],i=OD([u,...r]),a=MD(o),s=GD(u,r,a,i);let l=ND(s,a,i);Object.assign(l,{nodeChildProcess:s}),l=t?UD([t,l]):l;const c=ku(l,i,"stdout"),F=ku(l,i,"stderr");return Object.assign(l,{nodeChildProcess:s,stdout:c,stderr:F,[Symbol.asyncIterator]:()=>JD(c,F),pipe:n((C,E,p)=>g(C,E,p,l),"pipe")})}n(g,"spawn");const KD="known-flag",XD="unknown-flag",QD="argument",{stringify:P}=JSON,ue=/\B([A-Z])/g,De=n(u=>u.replace(ue,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:ee}=Object.prototype,I=n((u,D)=>ee.call(u,D),"w$2"),te=n(u=>Array.isArray(u),"L$2"),Ru=n(u=>typeof u=="function"?[u,!1]:te(u)?[u[0],!0]:Ru(u.type),"b$2"),re=n((u,D)=>u===Boolean?D!=="false":D,"d$2"),oe=n((u,D)=>typeof D=="boolean"?D:u===Number&&D===""?Number.NaN:u(D),"m$1"),ne=/[\s.:=]/,ie=n(u=>{const D=`Flag name ${P(u)}`;if(u.length===0)throw new Error(`${D} cannot be empty`);if(u.length===1)throw new Error(`${D} must be longer than a character`);const e=u.match(ne);if(e)throw new Error(`${D} cannot contain ${P(e?.[0])}`)},"B"),ae=n(u=>{const D={},e=n((t,r)=>{if(I(D,t))throw new Error(`Duplicate flags named ${P(t)}`);D[t]=r},"r");for(const t in u){if(!I(u,t))continue;ie(t);const r=u[t],o=[[],...Ru(r),r];e(t,o);const i=De(t);if(t!==i&&e(i,o),"alias"in r&&typeof r.alias=="string"){const{alias:a}=r,s=`Flag alias ${P(a)} for flag ${P(t)}`;if(a.length===0)throw new Error(`${s} cannot be empty`);if(a.length>1)throw new Error(`${s} must be a single character`);e(a,o)}}return D},"K$1"),se=n((u,D)=>{const e={};for(const t in u){if(!I(u,t))continue;const[r,,o,i]=D[t];if(r.length===0&&"default"in i){let{default:a}=i;typeof a=="function"&&(a=a()),e[t]=a}else e[t]=o?r:r.pop()}return e},"_$2"),q="--",le=/[.:=]/,Fe=/^-{1,2}\w/,ce=n(u=>{if(!Fe.test(u))return;const D=!u.startsWith(q);let e=u.slice(D?1:2),t;const r=e.match(le);if(r){const{index:o}=r;t=e.slice(o+1),e=e.slice(0,o)}return[e,t,D]},"N"),Ce=n((u,{onFlag:D,onArgument:e})=>{let t;const r=n((o,i)=>{if(typeof t!="function")return!0;t(o,i),t=void 0},"o");for(let o=0;o<u.length;o+=1){const i=u[o];if(i===q){r();const s=u.slice(o+1);e?.(s,[o],!0);break}const a=ce(i);if(a){if(r(),!D)continue;const[s,l,c]=a;if(c)for(let F=0;F<s.length;F+=1){r();const C=F===s.length-1;t=D(s[F],C?l:void 0,[o,F+1,C])}else t=D(s,l,[o])}else r(i,[o])&&e?.([i],[o])}r()},"$$1"),Ee=n((u,D)=>{for(const[e,t,r]of D.reverse()){if(t){const o=u[e];let i=o.slice(0,t);if(r||(i+=o.slice(t+1)),i!=="-"){u[e]=i;continue}}u.splice(e,1)}},"E"),pe=n((u,D=process.argv.slice(2),{ignore:e}={})=>{const t=[],r=ae(u),o={},i=[];return i[q]=[],Ce(D,{onFlag(a,s,l){const c=I(r,a);if(!e?.(c?KD:XD,a,s)){if(c){const[F,C]=r[a],E=re(C,s),p=n((m,A)=>{t.push(l),A&&t.push(A),F.push(oe(C,m||""))},"p");return E===void 0?p:p(E)}I(o,a)||(o[a]=[]),o[a].push(s===void 0?!0:s),t.push(l)}},onArgument(a,s,l){e?.(QD,D[s[0]])||(i.push(...a),l?(i[q]=a,D.splice(s[0])):t.push(s))}}),Ee(D,t),{flags:se(u,r),unknownFlags:o,_:i}},"U$2");var fe=Object.create,G=Object.defineProperty,de=Object.defineProperties,he=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertyNames,Su=Object.getOwnPropertySymbols,me=Object.getPrototypeOf,xu=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ju=n((u,D,e)=>D in u?G(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,"W$1"),z=n((u,D)=>{for(var e in D||(D={}))xu.call(D,e)&&ju(u,e,D[e]);if(Su)for(var e of Su(D))we.call(D,e)&&ju(u,e,D[e]);return u},"p"),Du=n((u,D)=>de(u,ge(D)),"c"),be=n(u=>G(u,"__esModule",{value:!0}),"nD"),Ae=n((u,D)=>()=>(u&&(D=u(u=0)),D),"rD"),ye=n((u,D)=>()=>(D||u((D={exports:{}}).exports,D),D.exports),"iD"),ve=n((u,D,e,t)=>{if(D&&typeof D=="object"||typeof D=="function")for(let r of Be(D))!xu.call(u,r)&&r!=="default"&&G(u,r,{get:n(()=>D[r],"get"),enumerable:!(t=he(D,r))||t.enumerable});return u},"oD"),$e=n((u,D)=>ve(be(G(u!=null?fe(me(u)):{},"default",{value:u,enumerable:!0})),u),"BD"),h=Ae(()=>{}),Oe=ye((u,D)=>{h(),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}});h(),h(),h();var Te=n(u=>{var D,e,t;let r=(D=process.stdout.columns)!=null?D:Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(r)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:r}:{columns:(e=u.columns)!=null?e:[],stdoutColumns:(t=u.stdoutColumns)!=null?t:r}},"v");h(),h(),h(),h(),h();function Me({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")}n(Me,"w$1");function Pu(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Me(),"")}n(Pu,"d$1"),h();function ke(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}n(ke,"y$1");var Re=$e(Oe());function k(u){if(typeof u!="string"||u.length===0||(u=Pu(u),u.length===0))return 0;u=u.replace((0,Re.default)()," ");let D=0;for(let e=0;e<u.length;e++){let t=u.codePointAt(e);t<=31||t>=127&&t<=159||t>=768&&t<=879||(t>65535&&e++,D+=ke(t)?2:1)}return D}n(k,"g");var Iu=n(u=>Math.max(...u.split(`
5
- `).map(k)),"b$1"),Se=n(u=>{let D=[];for(let e of u){let{length:t}=e,r=t-D.length;for(let o=0;o<r;o+=1)D.push(0);for(let o=0;o<t;o+=1){let i=Iu(e[o]);i>D[o]&&(D[o]=i)}}return D},"k$1");h();var Lu=/^\d+%$/,Nu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},xe=n((u,D)=>{var e;let t=[];for(let r=0;r<u.length;r+=1){let o=(e=D[r])!=null?e:"auto";if(typeof o=="number"||o==="auto"||o==="content-width"||typeof o=="string"&&Lu.test(o)){t.push(Du(z({},Nu),{width:o,contentWidth:u[r]}));continue}if(o&&typeof o=="object"){let i=Du(z(z({},Nu),o),{contentWidth:u[r]});i.horizontalPadding=i.paddingLeft+i.paddingRight,t.push(i);continue}throw new Error(`Invalid column width: ${JSON.stringify(o)}`)}return t},"sD");function je(u,D){for(let e of u){let{width:t}=e;if(t==="content-width"&&(e.width=e.contentWidth),t==="auto"){let s=Math.min(20,e.contentWidth);e.width=s,e.autoOverflow=e.contentWidth-s}if(typeof t=="string"&&Lu.test(t)){let s=Number.parseFloat(t.slice(0,-1))/100;e.width=Math.floor(D*s)-(e.paddingLeft+e.paddingRight)}let{horizontalPadding:r}=e,o=1,i=o+r;if(i>=D){let s=i-D,l=Math.ceil(e.paddingLeft/r*s),c=s-l;e.paddingLeft-=l,e.paddingRight-=c,e.horizontalPadding=e.paddingLeft+e.paddingRight}e.paddingLeftString=e.paddingLeft?" ".repeat(e.paddingLeft):"",e.paddingRightString=e.paddingRight?" ".repeat(e.paddingRight):"";let a=D-e.horizontalPadding;e.width=Math.max(Math.min(e.width,a),o)}}n(je,"aD");var _u=n(()=>Object.assign([],{columns:0}),"G");function Pe(u,D){let e=[_u()],[t]=e;for(let r of u){let o=r.width+r.horizontalPadding;t.columns+o>D&&(t=_u(),e.push(t)),t.push(r),t.columns+=o}for(let r of e){let o=r.reduce((C,E)=>C+E.width+E.horizontalPadding,0),i=D-o;if(i===0)continue;let a=r.filter(C=>"autoOverflow"in C),s=a.filter(C=>C.autoOverflow>0),l=s.reduce((C,E)=>C+E.autoOverflow,0),c=Math.min(l,i);for(let C of s){let E=Math.floor(C.autoOverflow/l*c);C.width+=E,i-=E}let F=Math.floor(i/a.length);for(let C=0;C<a.length;C+=1){let E=a[C];C===a.length-1?E.width+=i:E.width+=F,i-=F}}return e}n(Pe,"lD");function Ie(u,D,e){let t=xe(e,D);return je(t,u),Pe(t,u)}n(Ie,"Z$1"),h(),h(),h();var eu=10,Wu=n((u=0)=>D=>`\x1B[${D+u}m`,"U$1"),qu=n((u=0)=>D=>`\x1B[${38+u};5;${D}m`,"V$1"),Gu=n((u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,"Y");function Le(){let u=new Map,D={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};D.color.gray=D.color.blackBright,D.bgColor.bgGray=D.bgColor.bgBlackBright,D.color.grey=D.color.blackBright,D.bgColor.bgGrey=D.bgColor.bgBlackBright;for(let[e,t]of Object.entries(D)){for(let[r,o]of Object.entries(t))D[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},t[r]=D[r],u.set(o[0],o[1]);Object.defineProperty(D,e,{value:t,enumerable:!1})}return Object.defineProperty(D,"codes",{value:u,enumerable:!1}),D.color.close="\x1B[39m",D.bgColor.close="\x1B[49m",D.color.ansi=Wu(),D.color.ansi256=qu(),D.color.ansi16m=Gu(),D.bgColor.ansi=Wu(eu),D.bgColor.ansi256=qu(eu),D.bgColor.ansi16m=Gu(eu),Object.defineProperties(D,{rgbToAnsi256:{value:n((e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),"value"),enumerable:!1},hexToRgb:{value:n(e=>{let t=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(e.toString(16));if(!t)return[0,0,0];let{colorString:r}=t.groups;r.length===3&&(r=r.split("").map(i=>i+i).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},"value"),enumerable:!1},hexToAnsi256:{value:n(e=>D.rgbToAnsi256(...D.hexToRgb(e)),"value"),enumerable:!1},ansi256ToAnsi:{value:n(e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,r,o;if(e>=232)t=((e-232)*10+8)/255,r=t,o=t;else{e-=16;let s=e%36;t=Math.floor(e/36)/5,r=Math.floor(s/6)/5,o=s%6/5}let i=Math.max(t,r,o)*2;if(i===0)return 30;let a=30+(Math.round(o)<<2|Math.round(r)<<1|Math.round(t));return i===2&&(a+=60),a},"value"),enumerable:!1},rgbToAnsi:{value:n((e,t,r)=>D.ansi256ToAnsi(D.rgbToAnsi256(e,t,r)),"value"),enumerable:!1},hexToAnsi:{value:n(e=>D.ansi256ToAnsi(D.hexToAnsi256(e)),"value"),enumerable:!1}}),D}n(Le,"AD");var Ne=Le(),_e=Ne,U=new Set(["\x1B","\x9B"]),We=39,tu="\x07",zu="[",qe="]",Uu="m",ru=`${qe}8;;`,Hu=n(u=>`${U.values().next().value}${zu}${u}${Uu}`,"J$1"),Vu=n(u=>`${U.values().next().value}${ru}${u}${tu}`,"Q"),Ge=n(u=>u.split(" ").map(D=>k(D)),"hD"),ou=n((u,D,e)=>{let t=[...D],r=!1,o=!1,i=k(Pu(u[u.length-1]));for(let[a,s]of t.entries()){let l=k(s);if(i+l<=e?u[u.length-1]+=s:(u.push(s),i=0),U.has(s)&&(r=!0,o=t.slice(a+1).join("").startsWith(ru)),r){o?s===tu&&(r=!1,o=!1):s===Uu&&(r=!1);continue}i+=l,i===e&&a<t.length-1&&(u.push(""),i=0)}!i&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"S"),ze=n(u=>{let D=u.split(" "),e=D.length;for(;e>0&&!(k(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},"cD"),Ue=n((u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let t="",r,o,i=Ge(u),a=[""];for(let[l,c]of u.split(" ").entries()){e.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let F=k(a[a.length-1]);if(l!==0&&(F>=D&&(e.wordWrap===!1||e.trim===!1)&&(a.push(""),F=0),(F>0||e.trim===!1)&&(a[a.length-1]+=" ",F++)),e.hard&&i[l]>D){let C=D-F,E=1+Math.floor((i[l]-C-1)/D);Math.floor((i[l]-1)/D)<E&&a.push(""),ou(a,c,D);continue}if(F+i[l]>D&&F>0&&i[l]>0){if(e.wordWrap===!1&&F<D){ou(a,c,D);continue}a.push("")}if(F+i[l]>D&&e.wordWrap===!1){ou(a,c,D);continue}a[a.length-1]+=c}e.trim!==!1&&(a=a.map(l=>ze(l)));let s=[...a.join(`
6
- `)];for(let[l,c]of s.entries()){if(t+=c,U.has(c)){let{groups:C}=new RegExp(`(?:\\${zu}(?<code>\\d+)m|\\${ru}(?<uri>.*)${tu})`).exec(s.slice(l).join(""))||{groups:{}};if(C.code!==void 0){let E=Number.parseFloat(C.code);r=E===We?void 0:E}else C.uri!==void 0&&(o=C.uri.length===0?void 0:C.uri)}let F=_e.codes.get(Number(r));s[l+1]===`
7
- `?(o&&(t+=Vu("")),r&&F&&(t+=Hu(F))):c===`
8
- `&&(r&&F&&(t+=Hu(r)),o&&(t+=Vu(o)))}return t},"dD");function He(u,D,e){return String(u).normalize().replace(/\r\n/g,`
2
+ "use strict";var gD=Object.defineProperty;var n=(u,D)=>gD(u,"name",{value:D,configurable:!0});var f=require("node:path"),m=require("node:fs/promises"),mD=require("node:os"),y=require("node:process"),BD=require("node:util"),bu=require("node:url"),wD=require("node:child_process"),uu=require("node:events"),Au=require("node:stream/promises"),bD=require("node:readline/promises"),AD=require("tasuku"),yu=require("tty"),yD=require("os"),vD=require("node:fs"),$D=require("fast-glob"),OD=require("tar-fs"),TD=require("gunzip-maybe");function MD(u){var D=Object.create(null);return u&&Object.keys(u).forEach(function(e){if(e!=="default"){var t=Object.getOwnPropertyDescriptor(u,e);Object.defineProperty(D,e,t.get?t:{enumerable:!0,get:n(function(){return u[e]},"get")})}}),D.default=u,Object.freeze(D)}n(MD,"_interopNamespaceDefault");var kD=MD(bD);const RD=n(u=>({start:y.hrtime.bigint(),command:u.map(D=>jD(BD.stripVTControlCharacters(D))).join(" "),state:{stdout:"",stderr:"",output:""}}),"getContext"),jD=n(u=>/[^\w./-]/.test(u)?`'${u.replaceAll("'","'\\''")}'`:u,"getCommandPart"),SD=n(({stdin:u,stdout:D,stderr:e,stdio:t=[u,D,e],env:r,preferLocal:o,cwd:i=".",...a})=>{const s=i instanceof URL?bu.fileURLToPath(i):f.resolve(i),l=r?{...y.env,...r}:void 0,C=t[0]?.string;return{...a,input:C,stdio:C===void 0?t:["pipe",...t.slice(1)],env:o?xD(l??y.env,s):l,cwd:s}},"getOptions"),xD=n(({Path:u="",PATH:D=u,...e},t)=>{const r=D.split(f.delimiter),o=vu([],f.resolve(t)).map(i=>f.join(i,"node_modules/.bin")).filter(i=>!r.includes(i));return{...e,PATH:[...o,D].filter(Boolean).join(f.delimiter)}},"addLocalPath"),vu=n((u,D)=>u.at(-1)===D?u:vu([...u,D],f.resolve(D,"..")),"getLocalPaths"),PD=n(async(u,D,e)=>await ID(u,e)?[Du(u),D.map(t=>qD(t)),{...e,shell:!0}]:[u,D,e],"applyForceShell"),ID=n(async(u,{shell:D,cwd:e,env:t=y.env})=>y.platform==="win32"&&!D&&!await _D(u,e,t),"shouldForceShell"),_D=n((u,D,{Path:e="",PATH:t=e})=>Ou.some(r=>u.toLowerCase().endsWith(r))||WD(u,D,t),"isExe"),ND={},$u=n(u=>(...D)=>ND[D.join("\0")]??=u(...D),"memoize"),LD=$u(m.access),WD=$u(async(u,D,e)=>{const t=e.split(f.delimiter).filter(Boolean).map(r=>r.replace(/^"(.*)"$/,"$1"));try{await Promise.any([D,...t].flatMap(r=>Ou.map(o=>LD(`${f.resolve(r,u)}${o}`))))}catch{return!1}return!0}),Ou=[".exe",".com"],qD=n(u=>Du(Du(`"${u.replaceAll(/(\\*)"/g,'$1$1\\"').replace(/(\\*)$/,"$1$1")}"`)),"escapeArgument"),Du=n(u=>u.replaceAll(/([()\][%!^"`<>&|;, *?])/g,"^$1"),"escapeFile"),GD=n(async(u,{input:D},e)=>{const t=await u;D!==void 0&&t.stdin.end(D);const r=uu.once(t,"close");try{return await Promise.race([r,...t.stdio.filter(Boolean).map(o=>zD(o))]),UD(e,Mu(t)),ku(e)}catch(o){throw await Promise.allSettled([r]),Tu(o,t,e)}},"getResult"),zD=n(async u=>{for await(const[D]of uu.on(u,"error"))if(!["ERR_STREAM_PREMATURE_CLOSE","EPIPE"].includes(D?.code))throw D},"onStreamError"),UD=n(({command:u},{exitCode:D,signalName:e})=>{if(e!==void 0)throw new W(`Command was terminated with ${e}: ${u}`);if(D!==void 0)throw new W(`Command failed with exit code ${D}: ${u}`)},"checkFailure"),Tu=n((u,D,e)=>Object.assign(HD(u,e),Mu(D),ku(e)),"getResultError"),HD=n((u,{command:D})=>u instanceof W?u:new W(`Command failed: ${D}`,{cause:u}),"getErrorInstance");class W extends Error{static{n(this,"SubprocessError")}name="SubprocessError"}const Mu=n(({exitCode:u,signalCode:D})=>({...u<1?{}:{exitCode:u},...D===null?{}:{signalName:D}}),"getErrorOutput"),ku=n(({state:{stdout:u,stderr:D,output:e},command:t,start:r})=>({stdout:eu(u),stderr:eu(D),output:eu(e),command:t,durationMs:Number(y.hrtime.bigint()-r)/1e6}),"getOutputs"),eu=n(u=>u.at(-1)===`
3
+ `?u.slice(0,u.at(-2)==="\r"?-2:-1):u,"getOutput"),VD=n(async(u,D,e,t)=>{try{["node","node.exe"].includes(u.toLowerCase())&&(u=y.execPath,D=[...y.execArgv.filter(o=>!o.startsWith("--inspect")),...D]),[u,D,e]=await PD(u,D,e),[u,D,e]=YD(u,D,e);const r=wD.spawn(u,D,e);return Ru(r.stdout,t,"stdout"),Ru(r.stderr,t,"stderr"),r.once("error",()=>{}),await uu.once(r,"spawn"),r}catch(r){throw Tu(r,{},t)}},"spawnSubprocess"),YD=n((u,D,e)=>e.shell&&D.length>0?[[u,...D].join(" "),[],e]:[u,D,e],"concatenateShell"),Ru=n((u,{state:D},e)=>{u&&(u.setEncoding("utf8"),D.isIterating||(D.isIterating=!1,u.on("data",t=>{D[e]+=t,D.output+=t})))},"bufferOutput"),JD=n(async u=>{const[[D,e]]=await Promise.all([Promise.allSettled(u),ZD(u)]);if(e.reason)throw e.reason.pipedFrom=D.reason??D.value,e.reason;if(D.reason)throw D.reason;return{...e.value,pipedFrom:D.value}},"handlePipe"),ZD=n(async u=>{try{const[{stdout:D},{stdin:e}]=await Promise.all(u.map(({nodeChildProcess:t})=>t));if(e===null)throw new Error('The "stdin" option must be set on the first "spawn()" call in the pipeline.');if(D===null)throw new Error('The "stdout" option must be set on the last "spawn()" call in the pipeline.');Au.pipeline(D,e).catch(()=>{})}catch(D){throw await Promise.allSettled(u.map(({nodeChildProcess:e})=>KD(e))),D}},"pipeStreams"),KD=n(async u=>{const{stdin:D}=await u;D.end()},"closeStdin"),ju=n(async function*(u,{state:D},e){if(D.isIterating===!1)throw new Error(`The subprocess must be iterated right away, for example:
4
+ for await (const line of spawn(...)) { ... }`);D.isIterating=!0;try{const{[e]:t}=await u.nodeChildProcess;if(!t)return;XD(u),yield*kD.createInterface({input:t})}finally{await u}},"lineIterator"),XD=n(async u=>{try{await u}catch{}},"handleErrors"),QD=n(async function*(...u){try{let D=[];for(;u.length>0;){D=u.map((i,a)=>D[a]??ue(i));const[{value:e,done:t},r]=await Promise.race(D.map((i,a)=>Promise.all([i,a]))),[o]=u.splice(r,1);D.splice(r,1),t||(u.push(o),yield e)}}finally{await Promise.all(u.map(D=>D.return()))}},"combineAsyncIterators"),ue=n(async u=>{try{return await u.next()}catch(D){await u.throw(D)}},"getNext");function B(u,D,e,t){const[r=[],o={}]=Array.isArray(D)?[D,e]:[[],D],i=RD([u,...r]),a=SD(o),s=VD(u,r,a,i);let l=GD(s,a,i);Object.assign(l,{nodeChildProcess:s}),l=t?JD([t,l]):l;const C=ju(l,i,"stdout"),c=ju(l,i,"stderr");return Object.assign(l,{nodeChildProcess:s,stdout:C,stderr:c,[Symbol.asyncIterator]:()=>QD(C,c),pipe:n((E,F,p)=>B(E,F,p,l),"pipe")})}n(B,"spawn");const De="known-flag",ee="unknown-flag",te="argument",{stringify:P}=JSON,re=/\B([A-Z])/g,oe=n(u=>u.replace(re,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:ne}=Object.prototype,I=n((u,D)=>ne.call(u,D),"w$2"),ie=n(u=>Array.isArray(u),"L$2"),Su=n(u=>typeof u=="function"?[u,!1]:ie(u)?[u[0],!0]:Su(u.type),"b$2"),ae=n((u,D)=>u===Boolean?D!=="false":D,"d$2"),se=n((u,D)=>typeof D=="boolean"?D:u===Number&&D===""?Number.NaN:u(D),"m$1"),le=/[\s.:=]/,ce=n(u=>{const D=`Flag name ${P(u)}`;if(u.length===0)throw new Error(`${D} cannot be empty`);if(u.length===1)throw new Error(`${D} must be longer than a character`);const e=u.match(le);if(e)throw new Error(`${D} cannot contain ${P(e?.[0])}`)},"B"),Fe=n(u=>{const D={},e=n((t,r)=>{if(I(D,t))throw new Error(`Duplicate flags named ${P(t)}`);D[t]=r},"r");for(const t in u){if(!I(u,t))continue;ce(t);const r=u[t],o=[[],...Su(r),r];e(t,o);const i=oe(t);if(t!==i&&e(i,o),"alias"in r&&typeof r.alias=="string"){const{alias:a}=r,s=`Flag alias ${P(a)} for flag ${P(t)}`;if(a.length===0)throw new Error(`${s} cannot be empty`);if(a.length>1)throw new Error(`${s} must be a single character`);e(a,o)}}return D},"K$1"),Ce=n((u,D)=>{const e={};for(const t in u){if(!I(u,t))continue;const[r,,o,i]=D[t];if(r.length===0&&"default"in i){let{default:a}=i;typeof a=="function"&&(a=a()),e[t]=a}else e[t]=o?r:r.pop()}return e},"_$2"),q="--",Ee=/[.:=]/,pe=/^-{1,2}\w/,fe=n(u=>{if(!pe.test(u))return;const D=!u.startsWith(q);let e=u.slice(D?1:2),t;const r=e.match(Ee);if(r){const{index:o}=r;t=e.slice(o+1),e=e.slice(0,o)}return[e,t,D]},"N"),de=n((u,{onFlag:D,onArgument:e})=>{let t;const r=n((o,i)=>{if(typeof t!="function")return!0;t(o,i),t=void 0},"o");for(let o=0;o<u.length;o+=1){const i=u[o];if(i===q){r();const s=u.slice(o+1);e?.(s,[o],!0);break}const a=fe(i);if(a){if(r(),!D)continue;const[s,l,C]=a;if(C)for(let c=0;c<s.length;c+=1){r();const E=c===s.length-1;t=D(s[c],E?l:void 0,[o,c+1,E])}else t=D(s,l,[o])}else r(i,[o])&&e?.([i],[o])}r()},"$$1"),he=n((u,D)=>{for(const[e,t,r]of D.reverse()){if(t){const o=u[e];let i=o.slice(0,t);if(r||(i+=o.slice(t+1)),i!=="-"){u[e]=i;continue}}u.splice(e,1)}},"E"),ge=n((u,D=process.argv.slice(2),{ignore:e}={})=>{const t=[],r=Fe(u),o={},i=[];return i[q]=[],de(D,{onFlag(a,s,l){const C=I(r,a);if(!e?.(C?De:ee,a,s)){if(C){const[c,E]=r[a],F=ae(E,s),p=n((d,h)=>{t.push(l),h&&t.push(h),c.push(se(E,d||""))},"p");return F===void 0?p:p(F)}I(o,a)||(o[a]=[]),o[a].push(s===void 0?!0:s),t.push(l)}},onArgument(a,s,l){e?.(te,D[s[0]])||(i.push(...a),l?(i[q]=a,D.splice(s[0])):t.push(s))}}),he(D,t),{flags:Ce(u,r),unknownFlags:o,_:i}},"U$2");var me=Object.create,G=Object.defineProperty,Be=Object.defineProperties,we=Object.getOwnPropertyDescriptor,be=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertyNames,xu=Object.getOwnPropertySymbols,ye=Object.getPrototypeOf,Pu=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Iu=n((u,D,e)=>D in u?G(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,"W$1"),z=n((u,D)=>{for(var e in D||(D={}))Pu.call(D,e)&&Iu(u,e,D[e]);if(xu)for(var e of xu(D))ve.call(D,e)&&Iu(u,e,D[e]);return u},"p"),tu=n((u,D)=>Be(u,be(D)),"c"),$e=n(u=>G(u,"__esModule",{value:!0}),"nD"),Oe=n((u,D)=>()=>(u&&(D=u(u=0)),D),"rD"),Te=n((u,D)=>()=>(D||u((D={exports:{}}).exports,D),D.exports),"iD"),Me=n((u,D,e,t)=>{if(D&&typeof D=="object"||typeof D=="function")for(let r of Ae(D))!Pu.call(u,r)&&r!=="default"&&G(u,r,{get:n(()=>D[r],"get"),enumerable:!(t=we(D,r))||t.enumerable});return u},"oD"),ke=n((u,D)=>Me($e(G(u!=null?me(ye(u)):{},"default",{value:u,enumerable:!0})),u),"BD"),b=Oe(()=>{}),Re=Te((u,D)=>{b(),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}});b(),b(),b();var je=n(u=>{var D,e,t;let r=(D=process.stdout.columns)!=null?D:Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(r)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:r}:{columns:(e=u.columns)!=null?e:[],stdoutColumns:(t=u.stdoutColumns)!=null?t:r}},"v");b(),b(),b(),b(),b();function Se({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")}n(Se,"w$1");function _u(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Se(),"")}n(_u,"d$1"),b();function xe(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}n(xe,"y$1");var Pe=ke(Re());function k(u){if(typeof u!="string"||u.length===0||(u=_u(u),u.length===0))return 0;u=u.replace((0,Pe.default)()," ");let D=0;for(let e=0;e<u.length;e++){let t=u.codePointAt(e);t<=31||t>=127&&t<=159||t>=768&&t<=879||(t>65535&&e++,D+=xe(t)?2:1)}return D}n(k,"g");var Nu=n(u=>Math.max(...u.split(`
5
+ `).map(k)),"b$1"),Ie=n(u=>{let D=[];for(let e of u){let{length:t}=e,r=t-D.length;for(let o=0;o<r;o+=1)D.push(0);for(let o=0;o<t;o+=1){let i=Nu(e[o]);i>D[o]&&(D[o]=i)}}return D},"k$1");b();var Lu=/^\d+%$/,Wu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},_e=n((u,D)=>{var e;let t=[];for(let r=0;r<u.length;r+=1){let o=(e=D[r])!=null?e:"auto";if(typeof o=="number"||o==="auto"||o==="content-width"||typeof o=="string"&&Lu.test(o)){t.push(tu(z({},Wu),{width:o,contentWidth:u[r]}));continue}if(o&&typeof o=="object"){let i=tu(z(z({},Wu),o),{contentWidth:u[r]});i.horizontalPadding=i.paddingLeft+i.paddingRight,t.push(i);continue}throw new Error(`Invalid column width: ${JSON.stringify(o)}`)}return t},"sD");function Ne(u,D){for(let e of u){let{width:t}=e;if(t==="content-width"&&(e.width=e.contentWidth),t==="auto"){let s=Math.min(20,e.contentWidth);e.width=s,e.autoOverflow=e.contentWidth-s}if(typeof t=="string"&&Lu.test(t)){let s=Number.parseFloat(t.slice(0,-1))/100;e.width=Math.floor(D*s)-(e.paddingLeft+e.paddingRight)}let{horizontalPadding:r}=e,o=1,i=o+r;if(i>=D){let s=i-D,l=Math.ceil(e.paddingLeft/r*s),C=s-l;e.paddingLeft-=l,e.paddingRight-=C,e.horizontalPadding=e.paddingLeft+e.paddingRight}e.paddingLeftString=e.paddingLeft?" ".repeat(e.paddingLeft):"",e.paddingRightString=e.paddingRight?" ".repeat(e.paddingRight):"";let a=D-e.horizontalPadding;e.width=Math.max(Math.min(e.width,a),o)}}n(Ne,"aD");var qu=n(()=>Object.assign([],{columns:0}),"G");function Le(u,D){let e=[qu()],[t]=e;for(let r of u){let o=r.width+r.horizontalPadding;t.columns+o>D&&(t=qu(),e.push(t)),t.push(r),t.columns+=o}for(let r of e){let o=r.reduce((E,F)=>E+F.width+F.horizontalPadding,0),i=D-o;if(i===0)continue;let a=r.filter(E=>"autoOverflow"in E),s=a.filter(E=>E.autoOverflow>0),l=s.reduce((E,F)=>E+F.autoOverflow,0),C=Math.min(l,i);for(let E of s){let F=Math.floor(E.autoOverflow/l*C);E.width+=F,i-=F}let c=Math.floor(i/a.length);for(let E=0;E<a.length;E+=1){let F=a[E];E===a.length-1?F.width+=i:F.width+=c,i-=c}}return e}n(Le,"lD");function We(u,D,e){let t=_e(e,D);return Ne(t,u),Le(t,u)}n(We,"Z$1"),b(),b(),b();var ru=10,Gu=n((u=0)=>D=>`\x1B[${D+u}m`,"U$1"),zu=n((u=0)=>D=>`\x1B[${38+u};5;${D}m`,"V$1"),Uu=n((u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,"Y");function qe(){let u=new Map,D={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};D.color.gray=D.color.blackBright,D.bgColor.bgGray=D.bgColor.bgBlackBright,D.color.grey=D.color.blackBright,D.bgColor.bgGrey=D.bgColor.bgBlackBright;for(let[e,t]of Object.entries(D)){for(let[r,o]of Object.entries(t))D[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},t[r]=D[r],u.set(o[0],o[1]);Object.defineProperty(D,e,{value:t,enumerable:!1})}return Object.defineProperty(D,"codes",{value:u,enumerable:!1}),D.color.close="\x1B[39m",D.bgColor.close="\x1B[49m",D.color.ansi=Gu(),D.color.ansi256=zu(),D.color.ansi16m=Uu(),D.bgColor.ansi=Gu(ru),D.bgColor.ansi256=zu(ru),D.bgColor.ansi16m=Uu(ru),Object.defineProperties(D,{rgbToAnsi256:{value:n((e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),"value"),enumerable:!1},hexToRgb:{value:n(e=>{let t=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(e.toString(16));if(!t)return[0,0,0];let{colorString:r}=t.groups;r.length===3&&(r=r.split("").map(i=>i+i).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},"value"),enumerable:!1},hexToAnsi256:{value:n(e=>D.rgbToAnsi256(...D.hexToRgb(e)),"value"),enumerable:!1},ansi256ToAnsi:{value:n(e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,r,o;if(e>=232)t=((e-232)*10+8)/255,r=t,o=t;else{e-=16;let s=e%36;t=Math.floor(e/36)/5,r=Math.floor(s/6)/5,o=s%6/5}let i=Math.max(t,r,o)*2;if(i===0)return 30;let a=30+(Math.round(o)<<2|Math.round(r)<<1|Math.round(t));return i===2&&(a+=60),a},"value"),enumerable:!1},rgbToAnsi:{value:n((e,t,r)=>D.ansi256ToAnsi(D.rgbToAnsi256(e,t,r)),"value"),enumerable:!1},hexToAnsi:{value:n(e=>D.ansi256ToAnsi(D.hexToAnsi256(e)),"value"),enumerable:!1}}),D}n(qe,"AD");var Ge=qe(),ze=Ge,U=new Set(["\x1B","\x9B"]),Ue=39,ou="\x07",Hu="[",He="]",Vu="m",nu=`${He}8;;`,Yu=n(u=>`${U.values().next().value}${Hu}${u}${Vu}`,"J$1"),Ju=n(u=>`${U.values().next().value}${nu}${u}${ou}`,"Q"),Ve=n(u=>u.split(" ").map(D=>k(D)),"hD"),iu=n((u,D,e)=>{let t=[...D],r=!1,o=!1,i=k(_u(u[u.length-1]));for(let[a,s]of t.entries()){let l=k(s);if(i+l<=e?u[u.length-1]+=s:(u.push(s),i=0),U.has(s)&&(r=!0,o=t.slice(a+1).join("").startsWith(nu)),r){o?s===ou&&(r=!1,o=!1):s===Vu&&(r=!1);continue}i+=l,i===e&&a<t.length-1&&(u.push(""),i=0)}!i&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"S"),Ye=n(u=>{let D=u.split(" "),e=D.length;for(;e>0&&!(k(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},"cD"),Je=n((u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let t="",r,o,i=Ve(u),a=[""];for(let[l,C]of u.split(" ").entries()){e.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let c=k(a[a.length-1]);if(l!==0&&(c>=D&&(e.wordWrap===!1||e.trim===!1)&&(a.push(""),c=0),(c>0||e.trim===!1)&&(a[a.length-1]+=" ",c++)),e.hard&&i[l]>D){let E=D-c,F=1+Math.floor((i[l]-E-1)/D);Math.floor((i[l]-1)/D)<F&&a.push(""),iu(a,C,D);continue}if(c+i[l]>D&&c>0&&i[l]>0){if(e.wordWrap===!1&&c<D){iu(a,C,D);continue}a.push("")}if(c+i[l]>D&&e.wordWrap===!1){iu(a,C,D);continue}a[a.length-1]+=C}e.trim!==!1&&(a=a.map(l=>Ye(l)));let s=[...a.join(`
6
+ `)];for(let[l,C]of s.entries()){if(t+=C,U.has(C)){let{groups:E}=new RegExp(`(?:\\${Hu}(?<code>\\d+)m|\\${nu}(?<uri>.*)${ou})`).exec(s.slice(l).join(""))||{groups:{}};if(E.code!==void 0){let F=Number.parseFloat(E.code);r=F===Ue?void 0:F}else E.uri!==void 0&&(o=E.uri.length===0?void 0:E.uri)}let c=ze.codes.get(Number(r));s[l+1]===`
7
+ `?(o&&(t+=Ju("")),r&&c&&(t+=Yu(c))):C===`
8
+ `&&(r&&c&&(t+=Yu(r)),o&&(t+=Ju(o)))}return t},"dD");function Ze(u,D,e){return String(u).normalize().replace(/\r\n/g,`
9
9
  `).split(`
10
- `).map(t=>Ue(t,D,e)).join(`
11
- `)}n(He,"T$1");var Yu=n(u=>Array.from({length:u}).fill(""),"X");function Ve(u,D){let e=[],t=0;for(let r of u){let o=0,i=r.map(s=>{var l;let c=(l=D[t])!=null?l:"";t+=1,s.preprocess&&(c=s.preprocess(c)),Iu(c)>s.width&&(c=He(c,s.width,{hard:!0}));let F=c.split(`
12
- `);if(s.postprocess){let{postprocess:C}=s;F=F.map((E,p)=>C.call(s,E,p))}return s.paddingTop&&F.unshift(...Yu(s.paddingTop)),s.paddingBottom&&F.push(...Yu(s.paddingBottom)),F.length>o&&(o=F.length),Du(z({},s),{lines:F})}),a=[];for(let s=0;s<o;s+=1){let l=i.map(c=>{var F;let C=(F=c.lines[s])!=null?F:"",E=Number.isFinite(c.width)?" ".repeat(c.width-k(C)):"",p=c.paddingLeftString;return c.align==="right"&&(p+=E),p+=C,c.align==="left"&&(p+=E),p+c.paddingRightString}).join("");a.push(l)}e.push(a.join(`
10
+ `).map(t=>Je(t,D,e)).join(`
11
+ `)}n(Ze,"T$1");var Zu=n(u=>Array.from({length:u}).fill(""),"X");function Ke(u,D){let e=[],t=0;for(let r of u){let o=0,i=r.map(s=>{var l;let C=(l=D[t])!=null?l:"";t+=1,s.preprocess&&(C=s.preprocess(C)),Nu(C)>s.width&&(C=Ze(C,s.width,{hard:!0}));let c=C.split(`
12
+ `);if(s.postprocess){let{postprocess:E}=s;c=c.map((F,p)=>E.call(s,F,p))}return s.paddingTop&&c.unshift(...Zu(s.paddingTop)),s.paddingBottom&&c.push(...Zu(s.paddingBottom)),c.length>o&&(o=c.length),tu(z({},s),{lines:c})}),a=[];for(let s=0;s<o;s+=1){let l=i.map(C=>{var c;let E=(c=C.lines[s])!=null?c:"",F=Number.isFinite(C.width)?" ".repeat(C.width-k(E)):"",p=C.paddingLeftString;return C.align==="right"&&(p+=F),p+=E,C.align==="left"&&(p+=F),p+C.paddingRightString}).join("");a.push(l)}e.push(a.join(`
13
13
  `))}return e.join(`
14
- `)}n(Ve,"P$1");function Ye(u,D){if(!u||u.length===0)return"";let e=Se(u),t=e.length;if(t===0)return"";let{stdoutColumns:r,columns:o}=Te(D);if(o.length>t)throw new Error(`${o.length} columns defined, but only ${t} columns found`);let i=Ie(r,o,e);return u.map(a=>Ve(i,a)).join(`
15
- `)}n(Ye,"mD"),h();var Je=["<",">","=",">=","<="];function Ze(u){if(!Je.includes(u))throw new TypeError(`Invalid breakpoint operator: ${u}`)}n(Ze,"xD");function Ke(u){let D=Object.keys(u).map(e=>{let[t,r]=e.split(" ");Ze(t);let o=Number.parseInt(r,10);if(Number.isNaN(o))throw new TypeError(`Invalid breakpoint value: ${r}`);let i=u[e];return{operator:t,breakpoint:o,value:i}}).sort((e,t)=>t.breakpoint-e.breakpoint);return e=>{var t;return(t=D.find(({operator:r,breakpoint:o})=>r==="="&&e===o||r===">"&&e>o||r==="<"&&e<o||r===">="&&e>=o||r==="<="&&e<=o))==null?void 0:t.value}}n(Ke,"wD");const Xe=n(u=>u.replace(/[\W_]([a-z\d])?/gi,(D,e)=>e?e.toUpperCase():""),"P"),Qe=n(u=>u.replace(/\B([A-Z])/g,"-$1").toLowerCase(),"q"),ut={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:n(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 Dt(u){let D=!1;return{type:"table",data:{tableData:Object.keys(u).sort((e,t)=>e.localeCompare(t)).map(e=>{const t=u[e],r="alias"in t;return r&&(D=!0),{name:e,flag:t,flagFormatted:`--${Qe(e)}`,aliasesEnabled:D,aliasFormatted:r?`-${t.alias}`:void 0}}).map(e=>(e.aliasesEnabled=D,[{type:"flagName",data:e},{type:"flagDescription",data:e}])),tableBreakpoints:ut}}}n(Dt,"D");const Ju=n(u=>!u||(u.version??(u.help?u.help.version:void 0)),"A"),Zu=n(u=>{const D="parent"in u&&u.parent?.name;return(D?`${D} `:"")+u.name},"C");function et(u){const D=[];u.name&&D.push(Zu(u));const e=Ju(u)??("parent"in u&&Ju(u.parent));if(e&&D.push(`v${e}`),D.length!==0)return{id:"name",type:"text",data:`${D.join(" ")}
16
- `}}n(et,"R");function tt(u){const{help:D}=u;if(!(!D||!D.description))return{id:"description",type:"text",data:`${D.description}
17
- `}}n(tt,"L");function rt(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(`
18
- `):D.usage}}:void 0;if(u.name){const e=[],t=[Zu(u)];if(u.flags&&Object.keys(u.flags).length>0&&t.push("[flags...]"),u.parameters&&u.parameters.length>0){const{parameters:r}=u,o=r.indexOf("--"),i=o>-1&&r.slice(o+1).some(a=>a.startsWith("<"));t.push(r.map(a=>a!=="--"?a:i?"--":"[--]").join(" "))}if(t.length>1&&e.push(t.join(" ")),"commands"in u&&u.commands?.length&&e.push(`${u.name} <command>`),e.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:e.join(`
19
- `)}}}}n(rt,"T");function ot(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}}}n(ot,"_");function nt(u){if(!(!u.flags||Object.keys(u.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:Dt(u.flags),indentBody:0}}}n(nt,"k");function it(u){const{help:D}=u;if(!D||!D.examples||D.examples.length===0)return;let{examples:e}=D;if(Array.isArray(e)&&(e=e.join(`
20
- `)),e)return{id:"examples",type:"section",data:{title:"Examples:",body:e}}}n(it,"F");function at(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}}}n(at,"H");const st=n(u=>[et,tt,rt,ot,nt,it,at].map(D=>D(u)).filter(Boolean),"U"),lt=bu.WriteStream.prototype.hasColors();class Ft{static{n(this,"J")}text(D){return D}bold(D){return lt?`\x1B[1m${D}\x1B[22m`:D.toLocaleUpperCase()}indentText({text:D,spaces:e}){return D.replace(/^/gm," ".repeat(e))}heading(D){return this.bold(D)}section({title:D,body:e,indentBody:t=2}){return`${(D?`${this.heading(D)}
14
+ `)}n(Ke,"P$1");function Xe(u,D){if(!u||u.length===0)return"";let e=Ie(u),t=e.length;if(t===0)return"";let{stdoutColumns:r,columns:o}=je(D);if(o.length>t)throw new Error(`${o.length} columns defined, but only ${t} columns found`);let i=We(r,o,e);return u.map(a=>Ke(i,a)).join(`
15
+ `)}n(Xe,"mD"),b();var Qe=["<",">","=",">=","<="];function ut(u){if(!Qe.includes(u))throw new TypeError(`Invalid breakpoint operator: ${u}`)}n(ut,"xD");function Dt(u){let D=Object.keys(u).map(e=>{let[t,r]=e.split(" ");ut(t);let o=Number.parseInt(r,10);if(Number.isNaN(o))throw new TypeError(`Invalid breakpoint value: ${r}`);let i=u[e];return{operator:t,breakpoint:o,value:i}}).sort((e,t)=>t.breakpoint-e.breakpoint);return e=>{var t;return(t=D.find(({operator:r,breakpoint:o})=>r==="="&&e===o||r===">"&&e>o||r==="<"&&e<o||r===">="&&e>=o||r==="<="&&e<=o))==null?void 0:t.value}}n(Dt,"wD");const et=n(u=>u.replace(/[\W_]([a-z\d])?/gi,(D,e)=>e?e.toUpperCase():""),"P"),tt=n(u=>u.replace(/\B([A-Z])/g,"-$1").toLowerCase(),"q"),rt={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:n(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 ot(u){let D=!1;return{type:"table",data:{tableData:Object.keys(u).sort((e,t)=>e.localeCompare(t)).map(e=>{const t=u[e],r="alias"in t;return r&&(D=!0),{name:e,flag:t,flagFormatted:`--${tt(e)}`,aliasesEnabled:D,aliasFormatted:r?`-${t.alias}`:void 0}}).map(e=>(e.aliasesEnabled=D,[{type:"flagName",data:e},{type:"flagDescription",data:e}])),tableBreakpoints:rt}}}n(ot,"D");const Ku=n(u=>!u||(u.version??(u.help?u.help.version:void 0)),"A"),Xu=n(u=>{const D="parent"in u&&u.parent?.name;return(D?`${D} `:"")+u.name},"C");function nt(u){const D=[];u.name&&D.push(Xu(u));const e=Ku(u)??("parent"in u&&Ku(u.parent));if(e&&D.push(`v${e}`),D.length!==0)return{id:"name",type:"text",data:`${D.join(" ")}
16
+ `}}n(nt,"R");function it(u){const{help:D}=u;if(!(!D||!D.description))return{id:"description",type:"text",data:`${D.description}
17
+ `}}n(it,"L");function at(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(`
18
+ `):D.usage}}:void 0;if(u.name){const e=[],t=[Xu(u)];if(u.flags&&Object.keys(u.flags).length>0&&t.push("[flags...]"),u.parameters&&u.parameters.length>0){const{parameters:r}=u,o=r.indexOf("--"),i=o>-1&&r.slice(o+1).some(a=>a.startsWith("<"));t.push(r.map(a=>a!=="--"?a:i?"--":"[--]").join(" "))}if(t.length>1&&e.push(t.join(" ")),"commands"in u&&u.commands?.length&&e.push(`${u.name} <command>`),e.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:e.join(`
19
+ `)}}}}n(at,"T");function st(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}}}n(st,"_");function lt(u){if(!(!u.flags||Object.keys(u.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:ot(u.flags),indentBody:0}}}n(lt,"k");function ct(u){const{help:D}=u;if(!D||!D.examples||D.examples.length===0)return;let{examples:e}=D;if(Array.isArray(e)&&(e=e.join(`
20
+ `)),e)return{id:"examples",type:"section",data:{title:"Examples:",body:e}}}n(ct,"F");function Ft(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}}}n(Ft,"H");const Ct=n(u=>[nt,it,at,st,lt,ct,Ft].map(D=>D(u)).filter(Boolean),"U"),Et=yu.WriteStream.prototype.hasColors();class pt{static{n(this,"J")}text(D){return D}bold(D){return Et?`\x1B[1m${D}\x1B[22m`:D.toLocaleUpperCase()}indentText({text:D,spaces:e}){return D.replace(/^/gm," ".repeat(e))}heading(D){return this.bold(D)}section({title:D,body:e,indentBody:t=2}){return`${(D?`${this.heading(D)}
21
21
  `:"")+(e?this.indentText({text:this.render(e),spaces:t}):"")}
22
- `}table({tableData:D,tableOptions:e,tableBreakpoints:t}){return Ye(D.map(r=>r.map(o=>this.render(o))),t?Ke(t):e)}flagParameter(D){return D===Boolean?"":D===String?"<string>":D===Number?"<number>":Array.isArray(D)?this.flagParameter(D[0]):"<value>"}flagOperator(D){return" "}flagName(D){const{flag:e,flagFormatted:t,aliasesEnabled:r,aliasFormatted:o}=D;let i="";if(o?i+=`${o}, `:r&&(i+=" "),i+=t,"placeholder"in e&&typeof e.placeholder=="string")i+=`${this.flagOperator(D)}${e.placeholder}`;else{const a=this.flagParameter("type"in e?e.type:e);a&&(i+=`${this.flagOperator(D)}${a}`)}return i}flagDefault(D){return JSON.stringify(D)}flagDescription({flag:D}){let e="description"in D?D.description??"":"";if("default"in D){let{default:t}=D;typeof t=="function"&&(t=t()),t&&(e+=` (default: ${this.flagDefault(t)})`)}return e}render(D){if(typeof D=="string")return D;if(Array.isArray(D))return D.map(e=>this.render(e)).join(`
23
- `);if("type"in D&&this[D.type]){const e=this[D.type];if(typeof e=="function")return e.call(this,D.data)}throw new Error(`Invalid node type: ${JSON.stringify(D)}`)}}const Ku=n(u=>u.length>0&&!u.includes(" "),"y"),{stringify:b}=JSON,ct=/[|\\{}()[\]^$+*?.]/;function nu(u){const D=[];let e,t;for(const r of u){if(t)throw new Error(`Invalid parameter: Spread parameter ${b(t)} must be last`);const o=r[0],i=r[r.length-1];let a;if(o==="<"&&i===">"&&(a=!0,e))throw new Error(`Invalid parameter: Required parameter ${b(r)} cannot come after optional parameter ${b(e)}`);if(o==="["&&i==="]"&&(a=!1,e=r),a===void 0)throw new Error(`Invalid parameter: ${b(r)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let s=r.slice(1,-1);const l=s.slice(-3)==="...";l&&(t=r,s=s.slice(0,-3));const c=s.match(ct);if(c)throw new Error(`Invalid parameter: ${b(r)}. Invalid character found ${b(c[0])}`);D.push({name:s,required:a,spread:l})}return D}n(nu,"w");function iu(u,D,e,t){for(let r=0;r<D.length;r+=1){const{name:o,required:i,spread:a}=D[r],s=Xe(o);if(s in u)throw new Error(`Invalid parameter: ${b(o)} is used more than once.`);const l=a?e.slice(r):e[r];if(a&&(r=D.length),i&&(!l||a&&l.length===0))return console.error(`Error: Missing required parameter ${b(o)}
24
- `),t(),process.exit(1);u[s]=l}}n(iu,"b");function Ct(u){return u===void 0||u!==!1}n(Ct,"W");function Xu(u,D,e,t){const r={...D.flags},o=D.version;o&&(r.version={type:Boolean,description:"Show version"});const{help:i}=D,a=Ct(i);a&&!("help"in r)&&(r.help={type:Boolean,alias:"h",description:"Show help"});const s=pe(r,t,{ignore:D.ignoreArgv}),l=n(()=>{console.log(D.version)},"f");if(o&&s.flags.version===!0)return l(),process.exit(0);const c=new Ft,F=a&&i?.render?i.render:p=>c.render(p),C=n(p=>{const m=st({...D,...p?{help:p}:{},flags:r});console.log(F(m,c))},"u");if(a&&s.flags.help===!0)return C(),process.exit(0);if(D.parameters){let{parameters:p}=D,m=s._;const A=p.indexOf("--"),y=p.slice(A+1),v=Object.create(null);if(A>-1&&y.length>0){p=p.slice(0,A);const d=s._["--"];m=m.slice(0,-d.length||void 0),iu(v,nu(p),m,C),iu(v,nu(y),d,C)}else iu(v,nu(p),m,C);Object.assign(s._,v)}const E={...s,showVersion:l,showHelp:C};return typeof e=="function"&&e(E),{command:u,...E}}n(Xu,"x");function Et(u,D){const e=new Map;for(const t of D){const r=[t.options.name],{alias:o}=t.options;o&&(Array.isArray(o)?r.push(...o):r.push(o));for(const i of r){if(e.has(i))throw new Error(`Duplicate command name found: ${b(i)}`);e.set(i,t)}}return e.get(u)}n(Et,"z");function pt(u,D,e=process.argv.slice(2)){if(!u)throw new Error("Options is required");if("name"in u&&(!u.name||!Ku(u.name)))throw new Error(`Invalid script name: ${b(u.name)}`);const t=e[0];if(u.commands&&t&&Ku(t)){const r=Et(t,u.commands);if(r)return Xu(r.options.name,{...r.options,parent:u},r.callback,e.slice(1))}return Xu(void 0,u,D,e)}n(pt,"Z");let Qu={};const uD=new WeakMap,DD={metric:[{from:0,to:1e3,unit:"B",long:"bytes"},{from:1e3,to:1e6,unit:"kB",long:"kilobytes"},{from:1e6,to:1e9,unit:"MB",long:"megabytes"},{from:1e9,to:1e12,unit:"GB",long:"gigabytes"},{from:1e12,to:1e15,unit:"TB",long:"terabytes"},{from:1e15,to:1e18,unit:"PB",long:"petabytes"},{from:1e18,to:1e21,unit:"EB",long:"exabytes"},{from:1e21,to:1e24,unit:"ZB",long:"zettabytes"},{from:1e24,to:1e27,unit:"YB",long:"yottabytes"}],metric_octet:[{from:0,to:1e3,unit:"o",long:"octets"},{from:1e3,to:1e6,unit:"ko",long:"kilooctets"},{from:1e6,to:1e9,unit:"Mo",long:"megaoctets"},{from:1e9,to:1e12,unit:"Go",long:"gigaoctets"},{from:1e12,to:1e15,unit:"To",long:"teraoctets"},{from:1e15,to:1e18,unit:"Po",long:"petaoctets"},{from:1e18,to:1e21,unit:"Eo",long:"exaoctets"},{from:1e21,to:1e24,unit:"Zo",long:"zettaoctets"},{from:1e24,to:1e27,unit:"Yo",long:"yottaoctets"}],iec:[{from:0,to:Math.pow(1024,1),unit:"B",long:"bytes"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"KiB",long:"kibibytes"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"MiB",long:"mebibytes"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"GiB",long:"gibibytes"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"TiB",long:"tebibytes"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"PiB",long:"pebibytes"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"EiB",long:"exbibytes"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"ZiB",long:"zebibytes"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"YiB",long:"yobibytes"}],iec_octet:[{from:0,to:Math.pow(1024,1),unit:"o",long:"octets"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"Kio",long:"kibioctets"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"Mio",long:"mebioctets"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"Gio",long:"gibioctets"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"Tio",long:"tebioctets"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"Pio",long:"pebioctets"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"Eio",long:"exbioctets"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"Zio",long:"zebioctets"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"Yio",long:"yobioctets"}]};class ft{static{n(this,"ByteSize")}constructor(D,e){e=Object.assign({units:"metric",precision:1,locale:void 0},Qu,e),uD.set(this,e),Object.assign(DD,e.customUnits);const t=D<0?"-":"";D=Math.abs(D);const r=DD[e.units];if(r){const o=r.find(i=>D>=i.from&&D<i.to);if(o){const i=new Intl.NumberFormat(e.locale,{style:"decimal",maximumFractionDigits:e.precision}),a=o.from===0?t+i.format(D):t+i.format(D/o.from);this.value=a,this.unit=o.unit,this.long=o.long}else this.value=t+D,this.unit="",this.long=""}else throw new Error(`Invalid units specified: ${e.units}`)}toString(){const D=uD.get(this);return D.toStringFn?D.toStringFn.bind(this)():`${this.value} ${this.unit}`}}function au(u,D){return new ft(u,D)}n(au,"byteSize"),au.defaultOptions=function(u){Qu=u};let R=!0;const x=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let L=0;if(x.process&&x.process.env&&x.process.stdout){const{FORCE_COLOR:u,NODE_DISABLE_COLORS:D,NO_COLOR:e,TERM:t,COLORTERM:r}=x.process.env;D||e||u==="0"?R=!1:u==="1"||u==="2"||u==="3"?R=!0:t==="dumb"?R=!1:"CI"in x.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in x.process.env)?R=!0:R=process.stdout.isTTY,R&&(process.platform==="win32"||r&&(r==="truecolor"||r==="24bit")?L=3:t&&(t.endsWith("-256color")||t.endsWith("256"))?L=2:L=1)}let eD={enabled:R,supportLevel:L};function su(u,D,e=1){const t=`\x1B[${u}m`,r=`\x1B[${D}m`,o=new RegExp(`\\x1b\\[${D}m`,"g");return i=>eD.enabled&&eD.supportLevel>=e?t+(""+i).replace(o,t)+r:""+i}n(su,"kolorist");const tD=su(2,22),dt=su(36,39),rD=su(94,39),lu=globalThis.window?.document!==void 0;globalThis.process?.versions?.node,globalThis.process?.versions?.bun,globalThis.Deno?.version?.deno,globalThis.process?.versions?.electron,globalThis.navigator?.userAgent?.includes("jsdom"),typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope;const H=globalThis.navigator?.userAgentData?.platform;H==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform,H==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform,H==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform,H==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform;const oD="\x1B]",nD="\x07",V=";";!lu&&B.env.TERM_PROGRAM,!lu&&B.platform,lu||B.cwd;const ht=n((u,D)=>[oD,"8",V,V,D,nD,u,oD,"8",V,V,nD].join(""),"link");function gt(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}n(gt,"getDefaultExportFromCjs");var Fu,iD;function aD(){return iD||(iD=1,Fu=n((u,D=process.argv)=>{const e=u.startsWith("-")?"":u.length===1?"-":"--",t=D.indexOf(e+u),r=D.indexOf("--");return t!==-1&&(r===-1||t<r)},"hasFlag")),Fu}n(aD,"requireHasFlag");var cu,sD;function Bt(){if(sD)return cu;sD=1;const u=wD,D=bu,e=aD(),{env:t}=process;let r;e("no-color")||e("no-colors")||e("color=false")||e("color=never")?r=0:(e("color")||e("colors")||e("color=true")||e("color=always"))&&(r=1),"FORCE_COLOR"in t&&(t.FORCE_COLOR==="true"?r=1:t.FORCE_COLOR==="false"?r=0:r=t.FORCE_COLOR.length===0?1:Math.min(parseInt(t.FORCE_COLOR,10),3));function o(s){return s===0?!1:{level:s,hasBasic:!0,has256:s>=2,has16m:s>=3}}n(o,"translateLevel");function i(s,l){if(r===0)return 0;if(e("color=16m")||e("color=full")||e("color=truecolor"))return 3;if(e("color=256"))return 2;if(s&&!l&&r===void 0)return 0;const c=r||0;if(t.TERM==="dumb")return c;if(process.platform==="win32"){const F=u.release().split(".");return Number(F[0])>=10&&Number(F[2])>=10586?Number(F[2])>=14931?3:2:1}if("CI"in t)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(F=>F in t)||t.CI_NAME==="codeship"?1:c;if("TEAMCITY_VERSION"in t)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(t.TEAMCITY_VERSION)?1:0;if(t.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in t){const F=parseInt((t.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(t.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(t.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(t.TERM)||"COLORTERM"in t?1:c}n(i,"supportsColor");function a(s){const l=i(s,s&&s.isTTY);return o(l)}return n(a,"getSupportLevel"),cu={supportsColor:a,stdout:o(i(!0,D.isatty(1))),stderr:o(i(!0,D.isatty(2)))},cu}n(Bt,"requireSupportsColor");var Cu,lD;function mt(){if(lD)return Cu;lD=1;const u=Bt(),D=aD();function e(r){if(/^\d{3,4}$/.test(r)){const i=/(\d{1,2})(\d{2})/.exec(r)||[];return{major:0,minor:parseInt(i[1],10),patch:parseInt(i[2],10)}}const o=(r||"").split(".").map(i=>parseInt(i,10));return{major:o[0],minor:o[1],patch:o[2]}}n(e,"parseVersion");function t(r){const{CI:o,FORCE_HYPERLINK:i,NETLIFY:a,TEAMCITY_VERSION:s,TERM_PROGRAM:l,TERM_PROGRAM_VERSION:c,VTE_VERSION:F,TERM:C}=process.env;if(i)return!(i.length>0&&parseInt(i,10)===0);if(D("no-hyperlink")||D("no-hyperlinks")||D("hyperlink=false")||D("hyperlink=never"))return!1;if(D("hyperlink=true")||D("hyperlink=always")||a)return!0;if(!u.supportsColor(r)||r&&!r.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32"||o||s)return!1;if(l){const E=e(c||"");switch(l){case"iTerm.app":return E.major===3?E.minor>=1:E.major>3;case"WezTerm":return E.major>=20200620;case"vscode":return E.major>1||E.major===1&&E.minor>=72;case"ghostty":return!0}}if(F){if(F==="0.50.0")return!1;const E=e(F);return E.major>0||E.minor>=50}switch(C){case"alacritty":return!0}return!1}return n(t,"supportsHyperlink"),Cu={supportsHyperlink:t,stdout:t(process.stdout),stderr:t(process.stderr)},Cu}n(mt,"requireSupportsHyperlinks");var wt=mt(),Eu=gt(wt);function N(u,D,{target:e="stdout",...t}={}){return Eu[e]?ht(u,D):t.fallback===!1?u:typeof t.fallback=="function"?t.fallback(u,D):`${u} (\u200B${D}\u200B)`}n(N,"terminalLink"),N.isSupported=Eu.stdout,N.stderr=(u,D,e={})=>N(u,D,{target:"stderr",...e}),N.stderr.isSupported=Eu.stderr;var bt="git-publish",At="2.4.0",yt="Publish your npm package to a GitHub repository branch";const j=n(async(u,D,e)=>(await g(u,D,e)).stdout.trim(),"simpleSpawn"),FD=n(u=>j("git",["status","--porcelain","--untracked-files=no"],u),"gitStatusTracked"),vt=n(async()=>{if(await FD().catch(D=>{throw D.stderr.includes("not a git repository")?new Error("Not in a git repository."):D}))throw new Error("The working tree is not clean. Please commit or stash your changes before publishing.")},"assertCleanTree"),$t=n(async()=>{try{return await j("git",["branch","--show-current"])}catch(u){try{return await j("git",["describe","--tags"])}catch(D){throw new Error(`Failed to get current branch name: ${u.stderr} ${D.stderr}`)}}},"getCurrentBranchOrTagName"),cD=n(async u=>j("git",["rev-parse","--short","HEAD"],u).catch(()=>{}),"getCurrentCommit"),Ot=n(async u=>{const D=await M.readFile(u,"utf8");try{return JSON.parse(D)}catch{throw new Error(`Failed to parse JSON file: ${u}`)}},"readJson"),CD=n(u=>u instanceof URL?mu.fileURLToPath(u):u,"toPath");async function Y(u,{cwd:D=B.cwd(),type:e="file",stopAt:t}={}){let r=f.resolve(CD(D)??"");const{root:o}=f.parse(r);t=f.resolve(r,CD(t??o));const i=f.isAbsolute(u);for(;r;){const a=i?u:f.join(r,u);try{const s=await M.stat(a);if(e==="file"&&s.isFile()||e==="directory"&&s.isDirectory())return a}catch{}if(r===t||r===o)break;r=f.dirname(r)}}n(Y,"findUp");const Tt=n(async(u,D)=>{const e={cwd:u,stopAt:D};return await Y("pnpm-lock.yaml",e)?"pnpm":await Y("yarn.lock",e)?"yarn":await Y("bun.lockb",e)||await Y("bun.lock",e)?"bun":"npm"},"detectPackageManager"),Mt=n(async(u,D,e)=>{await M.mkdir(e,{recursive:!0}),await g(u,u==="bun"?["pm","pack","--destination",e]:["pack","--pack-destination",e],{cwd:D});const o=(await M.readdir(e)).find(i=>i.endsWith(".tgz"));if(!o)throw new Error("No tarball found after pack");return f.join(e,o)},"packPackage"),kt=n(async(u,D)=>{const e=[];return await wu.pipeline(bD.createReadStream(u),yD(),AD.extract(D,{map:n(t=>(t.name.startsWith("package/")&&(t.name=t.name.slice(8)),t.type==="file"&&t.name&&e.push({file:t.name,size:t.size||0}),t),"map")})),e.sort((t,r)=>t.file<r.file?-1:t.file>r.file?1:0),e},"extractTarball"),{stringify:_}=JSON;(async()=>{const u=pt({name:bt,version:At,flags:{branch:{type:String,alias:"b",placeholder:"<branch name>",description:'The branch to publish the package to. Defaults to prefixing "npm/" to the current branch or tag name.'},remote:{type:String,alias:"r",placeholder:"<remote>",description:"The remote to push to.",default:"origin"},fresh:{type:Boolean,alias:"o",description:"Publish without a commit history. Warning: Force-pushes to remote"},dry:{type:Boolean,alias:"d",description:"Dry run mode. Will not commit or push to the remote."},force:{type:Boolean,alias:"f",description:"Skip checks and force publish."}},help:{description:yt}});await vt();const D=process.cwd(),e=await j("git",["rev-parse","--show-toplevel"]),t=f.relative(e,D),r=await $t(),o=await cD(),i="package.json";try{await M.access(i)}catch{throw new Error("No package.json found in current working directory.")}const a=await Ot(i);if(a.private&&!u.flags.force)throw new Error("This package is marked as private. Use --force to publish it anyway.");const{branch:s,remote:l,fresh:c,dry:F}=u.flags,C=s||(t?`npm/${r}-${a.name}`:`npm/${r}`);await mD(`Publishing branch ${_(r)} \u2192 ${_(C)}`,async({task:E,setTitle:p,setStatus:m,setOutput:A})=>{F&&m("Dry run");const y=`git-publish-${Date.now()}-${process.pid}`,v=f.join(dD.tmpdir(),"git-publish",y),d=f.join(v,"worktree"),ED=f.join(v,"pack");let pu=!1,fu;try{fu=await j("git",["remote","get-url",l])}catch{throw new Error(`Git remote ${_(l)} does not exist`)}let du;const hu=await Tt(D,e),pD=await E("Creating worktree",async({setWarning:$})=>{if(F){$("");return}await g("git",["worktree","add","--force",d,"HEAD"])});F||pD.clear();try{const $=await E("Checking out branch",async({setWarning:T})=>{if(F){T("");return}let w=!1;c?w=!0:w="exitCode"in await g("git",["fetch","--depth=1",l,`${C}:${y}`],{cwd:d}).catch(Bu=>Bu),w?await g("git",["checkout","--orphan",y],{cwd:d}):await g("git",["symbolic-ref","HEAD",`refs/heads/${y}`],{cwd:d}),await g("git",["rm","--cached","-r",":/"],{cwd:d}).catch(()=>{}),await g("git",["clean","-fdx"],{cwd:d})});F||$.clear();const O=await E("Packing package",async({setWarning:T})=>{if(F){T("");return}const w=await Mt(hu,D,ED);return await kt(w,d)});F||O.clear();const J=await E("Commiting publish assets",async({setWarning:T})=>{if(F){T("");return}await g("git",["add","-A"],{cwd:d});const w=await O.result;if(!w||w.length===0)throw new Error("No publish files found");const gu=w.reduce((S,{size:K})=>S+K,0);if(console.log(rD(`Publishing ${a.name}`)),console.log(w.map(({file:S,size:K})=>`${S} ${tD(au(K).toString())}`).join(`
22
+ `}table({tableData:D,tableOptions:e,tableBreakpoints:t}){return Xe(D.map(r=>r.map(o=>this.render(o))),t?Dt(t):e)}flagParameter(D){return D===Boolean?"":D===String?"<string>":D===Number?"<number>":Array.isArray(D)?this.flagParameter(D[0]):"<value>"}flagOperator(D){return" "}flagName(D){const{flag:e,flagFormatted:t,aliasesEnabled:r,aliasFormatted:o}=D;let i="";if(o?i+=`${o}, `:r&&(i+=" "),i+=t,"placeholder"in e&&typeof e.placeholder=="string")i+=`${this.flagOperator(D)}${e.placeholder}`;else{const a=this.flagParameter("type"in e?e.type:e);a&&(i+=`${this.flagOperator(D)}${a}`)}return i}flagDefault(D){return JSON.stringify(D)}flagDescription({flag:D}){let e="description"in D?D.description??"":"";if("default"in D){let{default:t}=D;typeof t=="function"&&(t=t()),t&&(e+=` (default: ${this.flagDefault(t)})`)}return e}render(D){if(typeof D=="string")return D;if(Array.isArray(D))return D.map(e=>this.render(e)).join(`
23
+ `);if("type"in D&&this[D.type]){const e=this[D.type];if(typeof e=="function")return e.call(this,D.data)}throw new Error(`Invalid node type: ${JSON.stringify(D)}`)}}const Qu=n(u=>u.length>0&&!u.includes(" "),"y"),{stringify:$}=JSON,ft=/[|\\{}()[\]^$+*?.]/;function au(u){const D=[];let e,t;for(const r of u){if(t)throw new Error(`Invalid parameter: Spread parameter ${$(t)} must be last`);const o=r[0],i=r[r.length-1];let a;if(o==="<"&&i===">"&&(a=!0,e))throw new Error(`Invalid parameter: Required parameter ${$(r)} cannot come after optional parameter ${$(e)}`);if(o==="["&&i==="]"&&(a=!1,e=r),a===void 0)throw new Error(`Invalid parameter: ${$(r)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let s=r.slice(1,-1);const l=s.slice(-3)==="...";l&&(t=r,s=s.slice(0,-3));const C=s.match(ft);if(C)throw new Error(`Invalid parameter: ${$(r)}. Invalid character found ${$(C[0])}`);D.push({name:s,required:a,spread:l})}return D}n(au,"w");function su(u,D,e,t){for(let r=0;r<D.length;r+=1){const{name:o,required:i,spread:a}=D[r],s=et(o);if(s in u)throw new Error(`Invalid parameter: ${$(o)} is used more than once.`);const l=a?e.slice(r):e[r];if(a&&(r=D.length),i&&(!l||a&&l.length===0))return console.error(`Error: Missing required parameter ${$(o)}
24
+ `),t(),process.exit(1);u[s]=l}}n(su,"b");function dt(u){return u===void 0||u!==!1}n(dt,"W");function uD(u,D,e,t){const r={...D.flags},o=D.version;o&&(r.version={type:Boolean,description:"Show version"});const{help:i}=D,a=dt(i);a&&!("help"in r)&&(r.help={type:Boolean,alias:"h",description:"Show help"});const s=ge(r,t,{ignore:D.ignoreArgv}),l=n(()=>{console.log(D.version)},"f");if(o&&s.flags.version===!0)return l(),process.exit(0);const C=new pt,c=a&&i?.render?i.render:p=>C.render(p),E=n(p=>{const d=Ct({...D,...p?{help:p}:{},flags:r});console.log(c(d,C))},"u");if(a&&s.flags.help===!0)return E(),process.exit(0);if(D.parameters){let{parameters:p}=D,d=s._;const h=p.indexOf("--"),A=p.slice(h+1),w=Object.create(null);if(h>-1&&A.length>0){p=p.slice(0,h);const g=s._["--"];d=d.slice(0,-g.length||void 0),su(w,au(p),d,E),su(w,au(A),g,E)}else su(w,au(p),d,E);Object.assign(s._,w)}const F={...s,showVersion:l,showHelp:E};return typeof e=="function"&&e(F),{command:u,...F}}n(uD,"x");function ht(u,D){const e=new Map;for(const t of D){const r=[t.options.name],{alias:o}=t.options;o&&(Array.isArray(o)?r.push(...o):r.push(o));for(const i of r){if(e.has(i))throw new Error(`Duplicate command name found: ${$(i)}`);e.set(i,t)}}return e.get(u)}n(ht,"z");function gt(u,D,e=process.argv.slice(2)){if(!u)throw new Error("Options is required");if("name"in u&&(!u.name||!Qu(u.name)))throw new Error(`Invalid script name: ${$(u.name)}`);const t=e[0];if(u.commands&&t&&Qu(t)){const r=ht(t,u.commands);if(r)return uD(r.options.name,{...r.options,parent:u},r.callback,e.slice(1))}return uD(void 0,u,D,e)}n(gt,"Z");let DD={};const eD=new WeakMap,tD={metric:[{from:0,to:1e3,unit:"B",long:"bytes"},{from:1e3,to:1e6,unit:"kB",long:"kilobytes"},{from:1e6,to:1e9,unit:"MB",long:"megabytes"},{from:1e9,to:1e12,unit:"GB",long:"gigabytes"},{from:1e12,to:1e15,unit:"TB",long:"terabytes"},{from:1e15,to:1e18,unit:"PB",long:"petabytes"},{from:1e18,to:1e21,unit:"EB",long:"exabytes"},{from:1e21,to:1e24,unit:"ZB",long:"zettabytes"},{from:1e24,to:1e27,unit:"YB",long:"yottabytes"}],metric_octet:[{from:0,to:1e3,unit:"o",long:"octets"},{from:1e3,to:1e6,unit:"ko",long:"kilooctets"},{from:1e6,to:1e9,unit:"Mo",long:"megaoctets"},{from:1e9,to:1e12,unit:"Go",long:"gigaoctets"},{from:1e12,to:1e15,unit:"To",long:"teraoctets"},{from:1e15,to:1e18,unit:"Po",long:"petaoctets"},{from:1e18,to:1e21,unit:"Eo",long:"exaoctets"},{from:1e21,to:1e24,unit:"Zo",long:"zettaoctets"},{from:1e24,to:1e27,unit:"Yo",long:"yottaoctets"}],iec:[{from:0,to:Math.pow(1024,1),unit:"B",long:"bytes"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"KiB",long:"kibibytes"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"MiB",long:"mebibytes"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"GiB",long:"gibibytes"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"TiB",long:"tebibytes"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"PiB",long:"pebibytes"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"EiB",long:"exbibytes"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"ZiB",long:"zebibytes"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"YiB",long:"yobibytes"}],iec_octet:[{from:0,to:Math.pow(1024,1),unit:"o",long:"octets"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"Kio",long:"kibioctets"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"Mio",long:"mebioctets"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"Gio",long:"gibioctets"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"Tio",long:"tebioctets"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"Pio",long:"pebioctets"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"Eio",long:"exbioctets"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"Zio",long:"zebioctets"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"Yio",long:"yobioctets"}]};class mt{static{n(this,"ByteSize")}constructor(D,e){e=Object.assign({units:"metric",precision:1,locale:void 0},DD,e),eD.set(this,e),Object.assign(tD,e.customUnits);const t=D<0?"-":"";D=Math.abs(D);const r=tD[e.units];if(r){const o=r.find(i=>D>=i.from&&D<i.to);if(o){const i=new Intl.NumberFormat(e.locale,{style:"decimal",maximumFractionDigits:e.precision}),a=o.from===0?t+i.format(D):t+i.format(D/o.from);this.value=a,this.unit=o.unit,this.long=o.long}else this.value=t+D,this.unit="",this.long=""}else throw new Error(`Invalid units specified: ${e.units}`)}toString(){const D=eD.get(this);return D.toStringFn?D.toStringFn.bind(this)():`${this.value} ${this.unit}`}}function lu(u,D){return new mt(u,D)}n(lu,"byteSize"),lu.defaultOptions=function(u){DD=u};let R=!0;const S=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let _=0;if(S.process&&S.process.env&&S.process.stdout){const{FORCE_COLOR:u,NODE_DISABLE_COLORS:D,NO_COLOR:e,TERM:t,COLORTERM:r}=S.process.env;D||e||u==="0"?R=!1:u==="1"||u==="2"||u==="3"?R=!0:t==="dumb"?R=!1:"CI"in S.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in S.process.env)?R=!0:R=process.stdout.isTTY,R&&(process.platform==="win32"||r&&(r==="truecolor"||r==="24bit")?_=3:t&&(t.endsWith("-256color")||t.endsWith("256"))?_=2:_=1)}let rD={enabled:R,supportLevel:_};function cu(u,D,e=1){const t=`\x1B[${u}m`,r=`\x1B[${D}m`,o=new RegExp(`\\x1b\\[${D}m`,"g");return i=>rD.enabled&&rD.supportLevel>=e?t+(""+i).replace(o,t)+r:""+i}n(cu,"kolorist");const oD=cu(2,22),Bt=cu(36,39),nD=cu(94,39),Fu=globalThis.window?.document!==void 0;globalThis.process?.versions?.node,globalThis.process?.versions?.bun,globalThis.Deno?.version?.deno,globalThis.process?.versions?.electron,globalThis.navigator?.userAgent?.includes("jsdom"),typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope;const H=globalThis.navigator?.userAgentData?.platform;H==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform,H==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform,H==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform,H==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform;const iD="\x1B]",aD="\x07",V=";";!Fu&&y.env.TERM_PROGRAM,!Fu&&y.platform,Fu||y.cwd;const wt=n((u,D)=>[iD,"8",V,V,D,aD,u,iD,"8",V,V,aD].join(""),"link");function bt(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}n(bt,"getDefaultExportFromCjs");var Cu,sD;function lD(){return sD||(sD=1,Cu=n((u,D=process.argv)=>{const e=u.startsWith("-")?"":u.length===1?"-":"--",t=D.indexOf(e+u),r=D.indexOf("--");return t!==-1&&(r===-1||t<r)},"hasFlag")),Cu}n(lD,"requireHasFlag");var Eu,cD;function At(){if(cD)return Eu;cD=1;const u=yD,D=yu,e=lD(),{env:t}=process;let r;e("no-color")||e("no-colors")||e("color=false")||e("color=never")?r=0:(e("color")||e("colors")||e("color=true")||e("color=always"))&&(r=1),"FORCE_COLOR"in t&&(t.FORCE_COLOR==="true"?r=1:t.FORCE_COLOR==="false"?r=0:r=t.FORCE_COLOR.length===0?1:Math.min(parseInt(t.FORCE_COLOR,10),3));function o(s){return s===0?!1:{level:s,hasBasic:!0,has256:s>=2,has16m:s>=3}}n(o,"translateLevel");function i(s,l){if(r===0)return 0;if(e("color=16m")||e("color=full")||e("color=truecolor"))return 3;if(e("color=256"))return 2;if(s&&!l&&r===void 0)return 0;const C=r||0;if(t.TERM==="dumb")return C;if(process.platform==="win32"){const c=u.release().split(".");return Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in t)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(c=>c in t)||t.CI_NAME==="codeship"?1:C;if("TEAMCITY_VERSION"in t)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(t.TEAMCITY_VERSION)?1:0;if(t.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in t){const c=parseInt((t.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(t.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(t.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(t.TERM)||"COLORTERM"in t?1:C}n(i,"supportsColor");function a(s){const l=i(s,s&&s.isTTY);return o(l)}return n(a,"getSupportLevel"),Eu={supportsColor:a,stdout:o(i(!0,D.isatty(1))),stderr:o(i(!0,D.isatty(2)))},Eu}n(At,"requireSupportsColor");var pu,FD;function yt(){if(FD)return pu;FD=1;const u=At(),D=lD();function e(r){if(/^\d{3,4}$/.test(r)){const i=/(\d{1,2})(\d{2})/.exec(r)||[];return{major:0,minor:parseInt(i[1],10),patch:parseInt(i[2],10)}}const o=(r||"").split(".").map(i=>parseInt(i,10));return{major:o[0],minor:o[1],patch:o[2]}}n(e,"parseVersion");function t(r){const{CI:o,FORCE_HYPERLINK:i,NETLIFY:a,TEAMCITY_VERSION:s,TERM_PROGRAM:l,TERM_PROGRAM_VERSION:C,VTE_VERSION:c,TERM:E}=process.env;if(i)return!(i.length>0&&parseInt(i,10)===0);if(D("no-hyperlink")||D("no-hyperlinks")||D("hyperlink=false")||D("hyperlink=never"))return!1;if(D("hyperlink=true")||D("hyperlink=always")||a)return!0;if(!u.supportsColor(r)||r&&!r.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32"||o||s)return!1;if(l){const F=e(C||"");switch(l){case"iTerm.app":return F.major===3?F.minor>=1:F.major>3;case"WezTerm":return F.major>=20200620;case"vscode":return F.major>1||F.major===1&&F.minor>=72;case"ghostty":return!0}}if(c){if(c==="0.50.0")return!1;const F=e(c);return F.major>0||F.minor>=50}switch(E){case"alacritty":return!0}return!1}return n(t,"supportsHyperlink"),pu={supportsHyperlink:t,stdout:t(process.stdout),stderr:t(process.stderr)},pu}n(yt,"requireSupportsHyperlinks");var vt=yt(),fu=bt(vt);function N(u,D,{target:e="stdout",...t}={}){return fu[e]?wt(u,D):t.fallback===!1?u:typeof t.fallback=="function"?t.fallback(u,D):`${u} (\u200B${D}\u200B)`}n(N,"terminalLink"),N.isSupported=fu.stdout,N.stderr=(u,D,e={})=>N(u,D,{target:"stderr",...e}),N.stderr.isSupported=fu.stderr;var $t="git-publish",Ot="2.4.1",Tt="Publish your npm package to a GitHub repository branch";const x=n(async(u,D,e)=>(await B(u,D,e)).stdout.trim(),"simpleSpawn"),CD=n(u=>x("git",["status","--porcelain","--untracked-files=no"],u),"gitStatusTracked"),Mt=n(async()=>{if(await CD().catch(D=>{throw D.stderr.includes("not a git repository")?new Error("Not in a git repository."):D}))throw new Error("The working tree is not clean. Please commit or stash your changes before publishing.")},"assertCleanTree"),kt=n(async()=>{try{return await x("git",["branch","--show-current"])}catch(u){try{return await x("git",["describe","--tags"])}catch(D){throw new Error(`Failed to get current branch name: ${u.stderr} ${D.stderr}`)}}},"getCurrentBranchOrTagName"),ED=n(async u=>x("git",["rev-parse","--short","HEAD"],u).catch(()=>{}),"getCurrentCommit"),pD=n(async u=>{const D=await m.readFile(u,"utf8");try{return JSON.parse(D)}catch{throw new Error(`Failed to parse JSON file: ${u}`)}},"readJson"),fD=n(u=>u instanceof URL?bu.fileURLToPath(u):u,"toPath");async function Y(u,{cwd:D=y.cwd(),type:e="file",stopAt:t}={}){let r=f.resolve(fD(D)??"");const{root:o}=f.parse(r);t=f.resolve(r,fD(t??o));const i=f.isAbsolute(u);for(;r;){const a=i?u:f.join(r,u);try{const s=await m.stat(a);if(e==="file"&&s.isFile()||e==="directory"&&s.isDirectory())return a}catch{}if(r===t||r===o)break;r=f.dirname(r)}}n(Y,"findUp");const Rt=n(async(u,D)=>{const e={cwd:u,stopAt:D};return await Y("pnpm-lock.yaml",e)?"pnpm":await Y("yarn.lock",e)?"yarn":await Y("bun.lockb",e)||await Y("bun.lock",e)?"bun":"npm"},"detectPackageManager"),jt=n(async(u,D)=>{await m.mkdir(f.dirname(D),{recursive:!0}),await m.copyFile(u,D)},"copyFile"),J=n(u=>typeof u=="object"&&u!==null&&"code"in u&&u.code!=="ENOENT","isNotEnoent"),St=n(async(u,D,e,t,r,o)=>{await m.mkdir(e,{recursive:!0});const i=o.length>0,a=f.join(t,"package.json"),s=await pD(a);if(s.files&&s.files.length>0){const F=i?f.join(D,o):D,p=await Promise.all(s.files.map(async h=>{const A=f.join(t,h);try{return(await m.stat(A)).isDirectory()?`${h}/**`:h}catch(w){if(J(w))throw w;return h}})),d=await $D(p,{cwd:t,dot:!0});for(const h of d){const A=f.join(t,h),w=f.join(F,h);await jt(A,w)}}if(i){const F=f.join(D,"node_modules");await m.rm(F,{recursive:!0,force:!0});try{await m.symlink(f.join(r,"node_modules"),F,"dir")}catch(d){if(J(d))throw d}const p=f.join(D,o,"node_modules");await m.rm(p,{recursive:!0,force:!0});try{await m.symlink(f.join(t,"node_modules"),p,"dir")}catch(d){if(J(d))throw d}}else{const F=f.join(D,"node_modules");await m.rm(F,{recursive:!0,force:!0});try{await m.symlink(f.join(t,"node_modules"),F,"dir")}catch(p){if(J(p))throw p}}const l=u==="bun"?["pm","pack","--destination",e]:["pack","--pack-destination",e],C=o?f.join(D,o):D;await B(u,l,{cwd:C});const E=(await m.readdir(e)).find(F=>F.endsWith(".tgz"));if(!E)throw new Error("No tarball found after pack");return f.join(e,E)},"packPackage"),xt=n(async(u,D)=>{const e=[];return await Au.pipeline(vD.createReadStream(u),TD(),OD.extract(D,{map:n(t=>(t.name.startsWith("package/")&&(t.name=t.name.slice(8)),t.type==="file"&&t.name&&e.push({file:t.name,size:t.size||0}),t),"map")})),e.sort((t,r)=>t.file<r.file?-1:t.file>r.file?1:0),e},"extractTarball"),{stringify:L}=JSON;(async()=>{const u=gt({name:$t,version:Ot,flags:{branch:{type:String,alias:"b",placeholder:"<branch name>",description:'The branch to publish the package to. Defaults to prefixing "npm/" to the current branch or tag name.'},remote:{type:String,alias:"r",placeholder:"<remote>",description:"The remote to push to.",default:"origin"},fresh:{type:Boolean,alias:"o",description:"Publish without a commit history. Warning: Force-pushes to remote"},dry:{type:Boolean,alias:"d",description:"Dry run mode. Will not commit or push to the remote."},force:{type:Boolean,alias:"f",description:"Skip checks and force publish."}},help:{description:Tt}});await Mt();const D=process.cwd(),e=await x("git",["rev-parse","--show-toplevel"]),t=f.relative(e,D),r=await kt(),o=await ED(),i="package.json";try{await m.access(i)}catch{throw new Error("No package.json found in current working directory.")}const a=await pD(i);if(a.private&&!u.flags.force)throw new Error("This package is marked as private. Use --force to publish it anyway.");const{branch:s,remote:l,fresh:C,dry:c}=u.flags,E=s||(t?`npm/${r}-${a.name}`:`npm/${r}`);await AD(`Publishing branch ${L(r)} \u2192 ${L(E)}`,async({task:F,setTitle:p,setStatus:d,setOutput:h})=>{c&&d("Dry run");const A=`git-publish-${Date.now()}-${process.pid}`,w=f.join(mD.tmpdir(),"git-publish",A),g=f.join(w,"publish-worktree"),Z=f.join(w,"pack-worktree"),dD=f.join(w,"pack");let du=!1,hu;try{hu=await x("git",["remote","get-url",l])}catch{throw new Error(`Git remote ${L(l)} does not exist`)}let gu;const mu=await Rt(D,e),hD=await F("Creating worktrees",async({setWarning:O})=>{if(c){O("");return}await B("git",["worktree","add","--force",g,"HEAD"]),await B("git",["worktree","add","--force",Z,"HEAD"])});c||hD.clear();try{const O=await F("Checking out branch",async({setWarning:M})=>{if(c){M("");return}let v=!1;C?v=!0:v="exitCode"in await B("git",["fetch","--depth=1",l,`${E}:${A}`],{cwd:g}).catch(wu=>wu),v?await B("git",["checkout","--orphan",A],{cwd:g}):await B("git",["symbolic-ref","HEAD",`refs/heads/${A}`],{cwd:g}),await B("git",["rm","--cached","-r",":/"],{cwd:g}).catch(()=>{}),await B("git",["clean","-fdx"],{cwd:g})});c||O.clear();const T=await F("Packing package",async({setWarning:M})=>{if(c){M("");return}const v=await St(mu,Z,dD,D,e,t);return await xt(v,g)});c||T.clear();const K=await F("Commiting publish assets",async({setWarning:M})=>{if(c){M("");return}await B("git",["add","-A"],{cwd:g});const v=await T.result;if(!v||v.length===0)throw new Error("No publish files found");const Bu=v.reduce((j,{size:Q})=>j+Q,0);if(console.log(nD(`Publishing ${a.name}`)),console.log(v.map(({file:j,size:Q})=>`${j} ${oD(lu(Q).toString())}`).join(`
25
25
  `)),console.log(`
26
- ${rD("Total size")}`,au(gu).toString()),(await FD({cwd:d})).length===0)console.warn("\u26A0\uFE0F No new changes found to commit.");else{let S=`Published from "${r}"`;o&&(S+=` (${o})`),await g("git",["-c","user.name=git-publish","-c","user.email=bot@git-publish","commit","--no-verify","-m",S,"--author=git-publish <bot@git-publish>"],{cwd:d})}du=await cD({cwd:d})});F||J.clear();const Z=await E(`Pushing branch ${_(C)} to remote ${_(l)}`,async({setWarning:T})=>{if(F){T("");return}await g("git",["push",...c?["--force"]:[],"--no-verify",l,`HEAD:${C}`],{cwd:d}),pu=!0});F||Z.clear()}finally{(await E("Cleaning up",async({setWarning:O})=>{if(F){O("");return}await g("git",["worktree","remove","--force",d]),await g("git",["branch","-D",y]),await M.rm(v,{recursive:!0,force:!0})})).clear()}if(pu){const $=fu.match(/github\.com:(.+)\.git$/);if($){const[,O]=$,J=N(`${dt(C)} ${tD(`(${du})`)}`,`https://github.com/${O}/tree/${C}`);p(`Successfully published branch: ${J}`);const Z=["Install command",`${hu} i '${O}#${C}'`].join(`
27
- `);A(Z)}}})})().catch(u=>{console.error("Error:",u.message),process.exit(1)});
26
+ ${nD("Total size")}`,lu(Bu).toString()),(await CD({cwd:g})).length===0)console.warn("\u26A0\uFE0F No new changes found to commit.");else{let j=`Published from "${r}"`;o&&(j+=` (${o})`),await B("git",["-c","user.name=git-publish","-c","user.email=bot@git-publish","commit","--no-verify","-m",j,"--author=git-publish <bot@git-publish>"],{cwd:g})}gu=await ED({cwd:g})});c||K.clear();const X=await F(`Pushing branch ${L(E)} to remote ${L(l)}`,async({setWarning:M})=>{if(c){M("");return}await B("git",["push",...C?["--force"]:[],"--no-verify",l,`HEAD:${E}`],{cwd:g}),du=!0});c||X.clear()}finally{(await F("Cleaning up",async({setWarning:T})=>{if(c){T("");return}await B("git",["worktree","remove","--force",g]),await B("git",["worktree","remove","--force",Z]),await B("git",["branch","-D",A]),await m.rm(w,{recursive:!0,force:!0})})).clear()}if(du){const O=hu.match(/github\.com:(.+)\.git$/);if(O){const[,T]=O,K=N(`${Bt(E)} ${oD(`(${gu})`)}`,`https://github.com/${T}/tree/${E}`);p(`Successfully published branch: ${K}`);const X=["Install command",`${mu} i '${T}#${E}'`].join(`
27
+ `);h(X)}}})})().catch(u=>{console.error("Error:",u.message),process.exit(1)});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-publish",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Publish your npm package to a GitHub repository branch",
5
5
  "keywords": [
6
6
  "npm",
@@ -22,6 +22,7 @@
22
22
  ],
23
23
  "bin": "dist/index.js",
24
24
  "dependencies": {
25
+ "fast-glob": "^3.3.3",
25
26
  "gunzip-maybe": "^1.4.2",
26
27
  "tar-fs": "^3.1.1",
27
28
  "tasuku": "^2.0.2"