tsx 3.8.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -5
- package/dist/cli.cjs +26 -26
- package/dist/cli.js +25 -25
- package/dist/loader.cjs +1 -1
- package/dist/loader.js +1 -1
- package/dist/package-09e0298a.cjs +1 -0
- package/dist/package-4f7aaad4.js +1 -0
- package/dist/{pkgroll_create-require-cf14dfa9.cjs → pkgroll_create-require-03df4aab.cjs} +0 -0
- package/dist/{pkgroll_create-require-08349338.js → pkgroll_create-require-2f711411.js} +0 -0
- package/dist/pkgroll_create-require-315607d1.cjs +1 -0
- package/dist/pkgroll_create-require-d260ac03.js +1 -0
- package/dist/repl.cjs +3 -3
- package/dist/repl.js +3 -3
- package/package.json +39 -70
- package/dist/package-403547c0.cjs +0 -1
- package/dist/package-46c43c2a.js +0 -1
package/dist/cli.cjs
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
"use strict";var Mn=Object.defineProperty,Wn=Object.defineProperties;var jn=Object.getOwnPropertyDescriptors;var wu=Object.getOwnPropertySymbols;var Gn=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable;var Ru=(t,e,u)=>e in t?Mn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,M=(t,e)=>{for(var u in e||(e={}))Gn.call(e,u)&&Ru(t,u,e[u]);if(wu)for(var u of wu(e))Un.call(e,u)&&Ru(t,u,e[u]);return t},oe=(t,e)=>Wn(t,jn(e));var Me=require("./pkgroll_create-require-cf14dfa9.cjs"),Kn=require("tty"),Vn=require("./package-403547c0.cjs"),bu=require("url"),zn=require("child_process"),Yn=require("path"),qn=require("fs"),Xn=require("events"),Qn=require("util"),Zn=require("stream"),Jn=require("os");require("module");function ie(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var es=ie(Kn),ts=ie(zn),z=ie(Yn),ae=ie(qn),us=ie(Xn),we=ie(Qn),rs=ie(Zn),vu=ie(Jn);const Bu=/-(\w)/g,$u=t=>t.replace(Bu,(e,u)=>u.toUpperCase()),Su=/\B([A-Z])/g,ns=t=>t.replace(Su,"-$1").toLowerCase(),{stringify:Re}=JSON,{hasOwnProperty:ss}=Object.prototype,We=(t,e)=>ss.call(t,e),is=/^--?/,Ds=/[.:=]/,os=t=>{let e=t.replace(is,""),u;const r=e.match(Ds);if(r!=null&&r.index){const n=r.index;u=e.slice(n+1),e=e.slice(0,n)}return{flagName:e,flagValue:u}},as=/[\s.:=]/,ls=(t,e)=>{const u=`Invalid flag name ${Re(e)}:`;if(e.length===0)throw new Error(`${u} flag name cannot be empty}`);if(e.length===1)throw new Error(`${u} single characters are reserved for aliases`);const r=e.match(as);if(r)throw new Error(`${u} flag name cannot contain the character ${Re(r==null?void 0:r[0])}`);let n;if(Bu.test(e)?n=$u(e):Su.test(e)&&(n=ns(e)),n&&We(t,n))throw new Error(`${u} collides with flag ${Re(n)}`)};function cs(t){const e=new Map;for(const u in t){if(!We(t,u))continue;ls(t,u);const r=t[u];if(r&&typeof r=="object"){const{alias:n}=r;if(typeof n=="string"){if(n.length===0)throw new Error(`Invalid flag alias ${Re(u)}: flag alias cannot be empty`);if(n.length>1)throw new Error(`Invalid flag alias ${Re(u)}: flag aliases can only be a single-character`);if(e.has(n))throw new Error(`Flag collision: Alias "${n}" is already used`);e.set(n,{name:u,schema:r})}}}return e}const fs=t=>!t||typeof t=="function"?!1:Array.isArray(t)||Array.isArray(t.type),hs=t=>{const e={};for(const u in t)We(t,u)&&(e[u]=fs(t[u])?[]:void 0);return e},ct=(t,e)=>t===Number&&e===""?Number.NaN:t===Boolean?e!=="false":e,ds=(t,e)=>{for(const u in t){if(!We(t,u))continue;const r=t[u];if(!r)continue;const n=e[u];if(!(n!==void 0&&!(Array.isArray(n)&&n.length===0))&&"default"in r){let s=r.default;typeof s=="function"&&(s=s()),e[u]=s}}},Tu=(t,e)=>{if(!e)throw new Error(`Missing type on flag "${t}"`);return typeof e=="function"?e:Array.isArray(e)?e[0]:Tu(t,e.type)},Es=/^-[\da-z]+/i,ps=/^--[\w-]{2,}/,ft="--";function ht(t,e=process.argv.slice(2),u={}){const r=cs(t),n={flags:hs(t),unknownFlags:{},_:Object.assign([],{[ft]:[]})};let s;const i=(o,a,c)=>{const f=Tu(o,a);c=ct(f,c),c!==void 0&&!Number.isNaN(c)?Array.isArray(n.flags[o])?n.flags[o].push(f(c)):n.flags[o]=f(c):s=l=>{Array.isArray(n.flags[o])?n.flags[o].push(f(ct(f,l||""))):n.flags[o]=f(ct(f,l||"")),s=void 0}},D=(o,a)=>{o in n.unknownFlags||(n.unknownFlags[o]=[]),a!==void 0?n.unknownFlags[o].push(a):s=(c=!0)=>{n.unknownFlags[o].push(c),s=void 0}};for(let o=0;o<e.length;o+=1){const a=e[o];if(a===ft){const f=e.slice(o+1);n._[ft]=f,n._.push(...f);break}const c=Es.test(a);if(ps.test(a)||c){s&&s();const f=os(a),{flagValue:l}=f;let{flagName:p}=f;if(c){for(let F=0;F<p.length;F+=1){const y=p[F],b=r.get(y),P=F===p.length-1;b?i(b.name,b.schema,P?l:!0):u!=null&&u.ignoreUnknown?n._.push(a):D(y,P?l:!0)}continue}let C=t[p];if(!C){const F=$u(p);C=t[F],C&&(p=F)}if(!C){u!=null&&u.ignoreUnknown?n._.push(a):D(p,l);continue}i(p,C,l)}else s?s(a):n._.push(a)}return s&&s(),ds(t,n.flags),n}var Cs=Object.create,je=Object.defineProperty,Fs=Object.defineProperties,gs=Object.getOwnPropertyDescriptor,_s=Object.getOwnPropertyDescriptors,ms=Object.getOwnPropertyNames,xu=Object.getOwnPropertySymbols,As=Object.getPrototypeOf,Ou=Object.prototype.hasOwnProperty,ys=Object.prototype.propertyIsEnumerable,Pu=(t,e,u)=>e in t?je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,Ge=(t,e)=>{for(var u in e||(e={}))Ou.call(e,u)&&Pu(t,u,e[u]);if(xu)for(var u of xu(e))ys.call(e,u)&&Pu(t,u,e[u]);return t},dt=(t,e)=>Fs(t,_s(e)),ws=t=>je(t,"__esModule",{value:!0}),Rs=(t,e)=>()=>(t&&(e=t(t=0)),e),bs=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),vs=(t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ms(e))!Ou.call(t,n)&&(u||n!=="default")&&je(t,n,{get:()=>e[n],enumerable:!(r=gs(e,n))||r.enumerable});return t},Bs=(t,e)=>vs(ws(je(t!=null?Cs(As(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),K=Rs(()=>{}),$s=bs((t,e)=>{K(),e.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}});K(),K(),K();var Ss=t=>{var e,u,r;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(n)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:n}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(r=t.stdoutColumns)!=null?r:n}};K(),K(),K(),K(),K();function Ts({onlyFirst:t=!1}={}){let e=["[\\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(e,t?void 0:"g")}function Nu(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Ts(),"")}K();function xs(t){return Number.isInteger(t)?t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141):!1}var Os=Bs($s(),1);function le(t){if(typeof t!="string"||t.length===0||(t=Nu(t),t.length===0))return 0;t=t.replace((0,Os.default)()," ");let e=0;for(let u=0;u<t.length;u++){let r=t.codePointAt(u);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&u++,e+=xs(r)?2:1)}return e}var Hu=t=>Math.max(...t.split(`
|
|
2
|
-
`).map(
|
|
3
|
-
`)];for(let[a,c]of o.entries()){if(
|
|
4
|
-
`?(s&&(
|
|
5
|
-
`&&(
|
|
1
|
+
"use strict";var Ie=require("./pkgroll_create-require-315607d1.cjs"),xr=require("tty"),Or=require("./package-09e0298a.cjs"),Au=require("url"),Nr=require("child_process"),Hr=require("path"),Pr=require("fs"),Lr=require("events"),Ir=require("util"),kr=require("stream"),Mr=require("os");require("module");function se(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Wr=se(xr),Gr=se(Nr),K=se(Hr),De=se(Pr),jr=se(Lr),Ae=se(Ir),Ur=se(kr),yu=se(Mr);const wu=/-(\w)/g,Ru=t=>t.replace(wu,(e,u)=>u.toUpperCase()),bu=/\B([A-Z])/g,Kr=t=>t.replace(bu,"-$1").toLowerCase(),{stringify:ye}=JSON,{hasOwnProperty:Vr}=Object.prototype,ke=(t,e)=>Vr.call(t,e),zr=/^--?/,Yr=/[.:=]/,qr=t=>{let e=t.replace(zr,""),u;const n=e.match(Yr);if(n!=null&&n.index){const r=n.index;u=e.slice(r+1),e=e.slice(0,r)}return{flagName:e,flagValue:u}},Xr=/[\s.:=]/,Qr=(t,e)=>{const u=`Invalid flag name ${ye(e)}:`;if(e.length===0)throw new Error(`${u} flag name cannot be empty}`);if(e.length===1)throw new Error(`${u} single characters are reserved for aliases`);const n=e.match(Xr);if(n)throw new Error(`${u} flag name cannot contain the character ${ye(n==null?void 0:n[0])}`);let r;if(wu.test(e)?r=Ru(e):bu.test(e)&&(r=Kr(e)),r&&ke(t,r))throw new Error(`${u} collides with flag ${ye(r)}`)};function Zr(t){const e=new Map;for(const u in t){if(!ke(t,u))continue;Qr(t,u);const n=t[u];if(n&&typeof n=="object"){const{alias:r}=n;if(typeof r=="string"){if(r.length===0)throw new Error(`Invalid flag alias ${ye(u)}: flag alias cannot be empty`);if(r.length>1)throw new Error(`Invalid flag alias ${ye(u)}: flag aliases can only be a single-character`);if(e.has(r))throw new Error(`Flag collision: Alias "${r}" is already used`);e.set(r,{name:u,schema:n})}}}return e}const Jr=t=>!t||typeof t=="function"?!1:Array.isArray(t)||Array.isArray(t.type),es=t=>{const e={};for(const u in t)ke(t,u)&&(e[u]=Jr(t[u])?[]:void 0);return e},at=(t,e)=>t===Number&&e===""?Number.NaN:t===Boolean?e!=="false":e,ts=(t,e)=>{for(const u in t){if(!ke(t,u))continue;const n=t[u];if(!n)continue;const r=e[u];if(!(r!==void 0&&!(Array.isArray(r)&&r.length===0))&&"default"in n){let s=n.default;typeof s=="function"&&(s=s()),e[u]=s}}},vu=(t,e)=>{if(!e)throw new Error(`Missing type on flag "${t}"`);return typeof e=="function"?e:Array.isArray(e)?e[0]:vu(t,e.type)},us=/^-[\da-z]+/i,ns=/^--[\w-]{2,}/,lt="--";function ct(t,e=process.argv.slice(2),u={}){const n=Zr(t),r={flags:es(t),unknownFlags:{},_:Object.assign([],{[lt]:[]})};let s;const i=(o,a,c)=>{const f=vu(o,a);c=at(f,c),c!==void 0&&!Number.isNaN(c)?Array.isArray(r.flags[o])?r.flags[o].push(f(c)):r.flags[o]=f(c):s=l=>{Array.isArray(r.flags[o])?r.flags[o].push(f(at(f,l||""))):r.flags[o]=f(at(f,l||"")),s=void 0}},D=(o,a)=>{o in r.unknownFlags||(r.unknownFlags[o]=[]),a!==void 0?r.unknownFlags[o].push(a):s=(c=!0)=>{r.unknownFlags[o].push(c),s=void 0}};for(let o=0;o<e.length;o+=1){const a=e[o];if(a===lt){const f=e.slice(o+1);r._[lt]=f,r._.push(...f);break}const c=us.test(a);if(ns.test(a)||c){s&&s();const f=qr(a),{flagValue:l}=f;let{flagName:p}=f;if(c){for(let F=0;F<p.length;F+=1){const y=p[F],b=n.get(y),N=F===p.length-1;b?i(b.name,b.schema,N?l:!0):u!=null&&u.ignoreUnknown?r._.push(a):D(y,N?l:!0)}continue}let C=t[p];if(!C){const F=Ru(p);C=t[F],C&&(p=F)}if(!C){u!=null&&u.ignoreUnknown?r._.push(a):D(p,l);continue}i(p,C,l)}else s?s(a):r._.push(a)}return s&&s(),ts(t,r.flags),r}var rs=Object.create,Me=Object.defineProperty,ss=Object.defineProperties,is=Object.getOwnPropertyDescriptor,Ds=Object.getOwnPropertyDescriptors,os=Object.getOwnPropertyNames,Bu=Object.getOwnPropertySymbols,as=Object.getPrototypeOf,$u=Object.prototype.hasOwnProperty,ls=Object.prototype.propertyIsEnumerable,Su=(t,e,u)=>e in t?Me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,We=(t,e)=>{for(var u in e||(e={}))$u.call(e,u)&&Su(t,u,e[u]);if(Bu)for(var u of Bu(e))ls.call(e,u)&&Su(t,u,e[u]);return t},ft=(t,e)=>ss(t,Ds(e)),cs=t=>Me(t,"__esModule",{value:!0}),fs=(t,e)=>()=>(t&&(e=t(t=0)),e),hs=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ds=(t,e,u,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of os(e))!$u.call(t,r)&&(u||r!=="default")&&Me(t,r,{get:()=>e[r],enumerable:!(n=is(e,r))||n.enumerable});return t},Es=(t,e)=>ds(cs(Me(t!=null?rs(as(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),U=fs(()=>{}),ps=hs((t,e)=>{U(),e.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}});U(),U(),U();var Cs=t=>{var e,u,n;let r=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(r)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:r}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(n=t.stdoutColumns)!=null?n:r}};U(),U(),U(),U(),U();function Fs({onlyFirst:t=!1}={}){let e=["[\\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(e,t?void 0:"g")}function Tu(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Fs(),"")}U();function gs(t){return Number.isInteger(t)?t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141):!1}var _s=Es(ps(),1);function oe(t){if(typeof t!="string"||t.length===0||(t=Tu(t),t.length===0))return 0;t=t.replace((0,_s.default)()," ");let e=0;for(let u=0;u<t.length;u++){let n=t.codePointAt(u);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&u++,e+=gs(n)?2:1)}return e}var xu=t=>Math.max(...t.split(`
|
|
2
|
+
`).map(oe)),ms=t=>{let e=[];for(let u of t){let{length:n}=u,r=n-e.length;for(let s=0;s<r;s+=1)e.push(0);for(let s=0;s<n;s+=1){let i=xu(u[s]);i>e[s]&&(e[s]=i)}}return e};U();var Ou=/^\d+%$/,Nu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},As=(t,e)=>{var u;let n=[];for(let r=0;r<t.length;r+=1){let s=(u=e[r])!=null?u:"auto";if(typeof s=="number"||s==="auto"||s==="content-width"||typeof s=="string"&&Ou.test(s)){n.push(ft(We({},Nu),{width:s,contentWidth:t[r]}));continue}if(s&&typeof s=="object"){let i=ft(We(We({},Nu),s),{contentWidth:t[r]});i.horizontalPadding=i.paddingLeft+i.paddingRight,n.push(i);continue}throw new Error(`Invalid column width: ${JSON.stringify(s)}`)}return n};function ys(t,e){for(let u of t){let{width:n}=u;if(n==="content-width"&&(u.width=u.contentWidth),n==="auto"){let o=Math.min(20,u.contentWidth);u.width=o,u.autoOverflow=u.contentWidth-o}if(typeof n=="string"&&Ou.test(n)){let o=Number.parseFloat(n.slice(0,-1))/100;u.width=Math.floor(e*o)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:r}=u,s=1,i=s+r;if(i>=e){let o=i-e,a=Math.ceil(u.paddingLeft/r*o),c=o-a;u.paddingLeft-=a,u.paddingRight-=c,u.horizontalPadding=u.paddingLeft+u.paddingRight}u.paddingLeftString=u.paddingLeft?" ".repeat(u.paddingLeft):"",u.paddingRightString=u.paddingRight?" ".repeat(u.paddingRight):"";let D=e-u.horizontalPadding;u.width=Math.max(Math.min(u.width,D),s)}}var Hu=()=>Object.assign([],{columns:0});function ws(t,e){let u=[Hu()],[n]=u;for(let r of t){let s=r.width+r.horizontalPadding;n.columns+s>e&&(n=Hu(),u.push(n)),n.push(r),n.columns+=s}for(let r of u){let s=r.reduce((l,p)=>l+p.width+p.horizontalPadding,0),i=e-s;if(i===0)continue;let D=r.filter(l=>"autoOverflow"in l),o=D.filter(l=>l.autoOverflow>0),a=o.reduce((l,p)=>l+p.autoOverflow,0),c=Math.min(a,i);for(let l of o){let p=Math.floor(l.autoOverflow/a*c);l.width+=p,i-=p}let f=Math.floor(i/D.length);for(let l=0;l<D.length;l+=1){let p=D[l];l===D.length-1?p.width+=i:p.width+=f,i-=f}}return u}function Rs(t,e,u){let n=As(u,e);return ys(n,t),ws(n,t)}U(),U(),U();var ht=10,Pu=(t=0)=>e=>`\x1B[${e+t}m`,Lu=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Iu=(t=0)=>(e,u,n)=>`\x1B[${38+t};2;${e};${u};${n}m`;function bs(){let t=new Map,e={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]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[u,n]of Object.entries(e)){for(let[r,s]of Object.entries(n))e[r]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[r]=e[r],t.set(s[0],s[1]);Object.defineProperty(e,u,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=Pu(),e.color.ansi256=Lu(),e.color.ansi16m=Iu(),e.bgColor.ansi=Pu(ht),e.bgColor.ansi256=Lu(ht),e.bgColor.ansi16m=Iu(ht),Object.defineProperties(e,{rgbToAnsi256:{value:(u,n,r)=>u===n&&n===r?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:u=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!n)return[0,0,0];let{colorString:r}=n.groups;r.length===3&&(r=r.split("").map(i=>i+i).join(""));let s=Number.parseInt(r,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:u=>e.rgbToAnsi256(...e.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let n,r,s;if(u>=232)n=((u-232)*10+8)/255,r=n,s=n;else{u-=16;let o=u%36;n=Math.floor(u/36)/5,r=Math.floor(o/6)/5,s=o%6/5}let i=Math.max(n,r,s)*2;if(i===0)return 30;let D=30+(Math.round(s)<<2|Math.round(r)<<1|Math.round(n));return i===2&&(D+=60),D},enumerable:!1},rgbToAnsi:{value:(u,n,r)=>e.ansi256ToAnsi(e.rgbToAnsi256(u,n,r)),enumerable:!1},hexToAnsi:{value:u=>e.ansi256ToAnsi(e.hexToAnsi256(u)),enumerable:!1}}),e}var vs=bs(),Bs=vs,Ge=new Set(["\x1B","\x9B"]),$s=39,dt="\x07",ku="[",Ss="]",Mu="m",Et=`${Ss}8;;`,Wu=t=>`${Ge.values().next().value}${ku}${t}${Mu}`,Gu=t=>`${Ge.values().next().value}${Et}${t}${dt}`,Ts=t=>t.split(" ").map(e=>oe(e)),pt=(t,e,u)=>{let n=[...e],r=!1,s=!1,i=oe(Tu(t[t.length-1]));for(let[D,o]of n.entries()){let a=oe(o);if(i+a<=u?t[t.length-1]+=o:(t.push(o),i=0),Ge.has(o)&&(r=!0,s=n.slice(D+1).join("").startsWith(Et)),r){s?o===dt&&(r=!1,s=!1):o===Mu&&(r=!1);continue}i+=a,i===u&&D<n.length-1&&(t.push(""),i=0)}!i&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},xs=t=>{let e=t.split(" "),u=e.length;for(;u>0&&!(oe(e[u-1])>0);)u--;return u===e.length?t:e.slice(0,u).join(" ")+e.slice(u).join("")},Os=(t,e,u={})=>{if(u.trim!==!1&&t.trim()==="")return"";let n="",r,s,i=Ts(t),D=[""];for(let[a,c]of t.split(" ").entries()){u.trim!==!1&&(D[D.length-1]=D[D.length-1].trimStart());let f=oe(D[D.length-1]);if(a!==0&&(f>=e&&(u.wordWrap===!1||u.trim===!1)&&(D.push(""),f=0),(f>0||u.trim===!1)&&(D[D.length-1]+=" ",f++)),u.hard&&i[a]>e){let l=e-f,p=1+Math.floor((i[a]-l-1)/e);Math.floor((i[a]-1)/e)<p&&D.push(""),pt(D,c,e);continue}if(f+i[a]>e&&f>0&&i[a]>0){if(u.wordWrap===!1&&f<e){pt(D,c,e);continue}D.push("")}if(f+i[a]>e&&u.wordWrap===!1){pt(D,c,e);continue}D[D.length-1]+=c}u.trim!==!1&&(D=D.map(a=>xs(a)));let o=[...D.join(`
|
|
3
|
+
`)];for(let[a,c]of o.entries()){if(n+=c,Ge.has(c)){let{groups:l}=new RegExp(`(?:\\${ku}(?<code>\\d+)m|\\${Et}(?<uri>.*)${dt})`).exec(o.slice(a).join(""))||{groups:{}};if(l.code!==void 0){let p=Number.parseFloat(l.code);r=p===$s?void 0:p}else l.uri!==void 0&&(s=l.uri.length===0?void 0:l.uri)}let f=Bs.codes.get(Number(r));o[a+1]===`
|
|
4
|
+
`?(s&&(n+=Gu("")),r&&f&&(n+=Wu(f))):c===`
|
|
5
|
+
`&&(r&&f&&(n+=Wu(r)),s&&(n+=Gu(s)))}return n};function Ns(t,e,u){return String(t).normalize().replace(/\r\n/g,`
|
|
6
6
|
`).split(`
|
|
7
|
-
`).map(
|
|
8
|
-
`)}var
|
|
9
|
-
`);if(o.postprocess){let{postprocess:l}=o;f=f.map((p,C)=>l.call(o,p,C))}return o.paddingTop&&f.unshift(...
|
|
7
|
+
`).map(n=>Os(n,e,u)).join(`
|
|
8
|
+
`)}var ju=t=>Array.from({length:t}).fill("");function Hs(t,e){let u=[],n=0;for(let r of t){let s=0,i=r.map(o=>{var a;let c=(a=e[n])!=null?a:"";n+=1,o.preprocess&&(c=o.preprocess(c)),xu(c)>o.width&&(c=Ns(c,o.width,{hard:!0}));let f=c.split(`
|
|
9
|
+
`);if(o.postprocess){let{postprocess:l}=o;f=f.map((p,C)=>l.call(o,p,C))}return o.paddingTop&&f.unshift(...ju(o.paddingTop)),o.paddingBottom&&f.push(...ju(o.paddingBottom)),f.length>s&&(s=f.length),ft(We({},o),{lines:f})}),D=[];for(let o=0;o<s;o+=1){let a=i.map(c=>{var f;let l=(f=c.lines[o])!=null?f:"",p=Number.isFinite(c.width)?" ".repeat(c.width-oe(l)):"",C=c.paddingLeftString;return c.align==="right"&&(C+=p),C+=l,c.align==="left"&&(C+=p),C+c.paddingRightString}).join("");D.push(a)}u.push(D.join(`
|
|
10
10
|
`))}return u.join(`
|
|
11
|
-
`)}function
|
|
12
|
-
`)}
|
|
13
|
-
`}}function
|
|
14
|
-
`}}function
|
|
15
|
-
`):u.usage}}:void 0;if(t.name){const
|
|
16
|
-
`)}}}}function
|
|
17
|
-
`)),u)return{id:"examples",type:"section",data:{title:"Examples:",body:u}}}function
|
|
18
|
-
`:"")+(u?this.indentText({text:this.render(u),spaces:
|
|
19
|
-
`}table({tableData:e,tableOptions:u,tableBreakpoints:
|
|
20
|
-
`);if("type"in e&&this[e.type]){const u=this[e.type];if(typeof u=="function")return u.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const
|
|
21
|
-
`),r(),process.exit(1);t[o]=a}}function gi(t){return t===void 0||t!==!1}function Zu(t,e,u,r){const n=Ee({},e.flags),s=e.version;s&&(n.version={type:Boolean,description:"Show version"});const{help:i}=e,D=gi(i);D&&!("help"in n)&&(n.help={type:Boolean,alias:"h",description:"Show help"});const o=ht(n,r),a=()=>{console.log(e.version)};if(s&&o.flags.version===!0)return a(),process.exit(0);const c=new fi,f=D&&(i==null?void 0:i.render)?i.render:C=>c.render(C),l=C=>{const F=li(_t(Ee(Ee({},e),C?{help:C}:{}),{flags:n}));console.log(f(F,c))};if(D&&o.flags.help===!0)return l(),process.exit(0);if(e.parameters){let{parameters:C}=e,F=o._;const y=C.indexOf("--"),b=C.slice(y+1),P=Object.create(null);if(y>-1&&b.length>0){C=C.slice(0,y);const $=o._["--"];F=F.slice(0,-$.length||void 0),At(P,mt(C),F,l),At(P,mt(b),$,l)}else At(P,mt(C),F,l);Object.assign(o._,P)}const p=_t(Ee({},o),{showVersion:a,showHelp:l});return typeof u=="function"&&u(p),Ee({command:t},p)}function _i(t,e){const u=new Map;for(const r of e){const n=[r.options.name],{alias:s}=r.options;s&&(Array.isArray(s)?n.push(...s):n.push(s));for(const i of n){if(u.has(i))throw new Error(`Duplicate command name found: ${ee(i)}`);u.set(i,r)}}return u.get(t)}function mi(t,e,u=process.argv.slice(2)){if(!t)throw new Error("Options is required");if("name"in t&&(!t.name||!gt.test(t.name)))throw new Error(`Invalid script name: ${ee(t.name)}`);const r=u[0];if(t.commands&>.test(r)){const n=_i(r,t.commands);if(n)return Zu(n.options.name,_t(Ee({},n.options),{parent:t}),n.callback,u.slice(1))}return Zu(void 0,t,e,u)}function Ai(t,e){if(!t)throw new Error("Command options are required");const{name:u}=t;if(t.name===void 0)throw new Error("Command name is required");if(!gt.test(u))throw new Error(`Invalid command name ${JSON.stringify(u)}. Command names must be one word.`);return{options:t,callback:e}}var yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pe={exports:{}},yt,Ju;function wi(){if(Ju)return yt;Ju=1,yt=r,r.sync=n;var t=ae.default;function e(s,i){var D=i.pathExt!==void 0?i.pathExt:process.env.PATHEXT;if(!D||(D=D.split(";"),D.indexOf("")!==-1))return!0;for(var o=0;o<D.length;o++){var a=D[o].toLowerCase();if(a&&s.substr(-a.length).toLowerCase()===a)return!0}return!1}function u(s,i,D){return!s.isSymbolicLink()&&!s.isFile()?!1:e(i,D)}function r(s,i,D){t.stat(s,function(o,a){D(o,o?!1:u(a,s,i))})}function n(s,i){return u(t.statSync(s),s,i)}return yt}var wt,er;function Ri(){if(er)return wt;er=1,wt=e,e.sync=u;var t=ae.default;function e(s,i,D){t.stat(s,function(o,a){D(o,o?!1:r(a,i))})}function u(s,i){return r(t.statSync(s),i)}function r(s,i){return s.isFile()&&n(s,i)}function n(s,i){var D=s.mode,o=s.uid,a=s.gid,c=i.uid!==void 0?i.uid:process.getuid&&process.getuid(),f=i.gid!==void 0?i.gid:process.getgid&&process.getgid(),l=parseInt("100",8),p=parseInt("010",8),C=parseInt("001",8),F=l|p,y=D&C||D&p&&a===f||D&l&&o===c||D&F&&c===0;return y}return wt}var Ke;process.platform==="win32"||yi.TESTING_WINDOWS?Ke=wi():Ke=Ri();var bi=Rt;Rt.sync=vi;function Rt(t,e,u){if(typeof e=="function"&&(u=e,e={}),!u){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(r,n){Rt(t,e||{},function(s,i){s?n(s):r(i)})})}Ke(t,e||{},function(r,n){r&&(r.code==="EACCES"||e&&e.ignoreErrors)&&(r=null,n=!1),u(r,n)})}function vi(t,e){try{return Ke.sync(t,e||{})}catch(u){if(e&&e.ignoreErrors||u.code==="EACCES")return!1;throw u}}const Ce=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",tr=z.default,Bi=Ce?";":":",ur=bi,rr=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),nr=(t,e)=>{const u=e.colon||Bi,r=t.match(/\//)||Ce&&t.match(/\\/)?[""]:[...Ce?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(u)],n=Ce?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Ce?n.split(u):[""];return Ce&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:r,pathExt:s,pathExtExe:n}},sr=(t,e,u)=>{typeof e=="function"&&(u=e,e={}),e||(e={});const{pathEnv:r,pathExt:n,pathExtExe:s}=nr(t,e),i=[],D=a=>new Promise((c,f)=>{if(a===r.length)return e.all&&i.length?c(i):f(rr(t));const l=r[a],p=/^".*"$/.test(l)?l.slice(1,-1):l,C=tr.join(p,t),F=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+C:C;c(o(F,a,0))}),o=(a,c,f)=>new Promise((l,p)=>{if(f===n.length)return l(D(c+1));const C=n[f];ur(a+C,{pathExt:s},(F,y)=>{if(!F&&y)if(e.all)i.push(a+C);else return l(a+C);return l(o(a,c,f+1))})});return u?D(0).then(a=>u(null,a),u):D(0)},$i=(t,e)=>{e=e||{};const{pathEnv:u,pathExt:r,pathExtExe:n}=nr(t,e),s=[];for(let i=0;i<u.length;i++){const D=u[i],o=/^".*"$/.test(D)?D.slice(1,-1):D,a=tr.join(o,t),c=!o&&/^\.[\\\/]/.test(t)?t.slice(0,2)+a:a;for(let f=0;f<r.length;f++){const l=c+r[f];try{if(ur.sync(l,{pathExt:n}))if(e.all)s.push(l);else return l}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw rr(t)};var Si=sr;sr.sync=$i;var bt={exports:{}};const ir=(t={})=>{const e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};bt.exports=ir,bt.exports.default=ir;const Dr=z.default,Ti=Si,xi=bt.exports;function or(t,e){const u=t.options.env||process.env,r=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let i;try{i=Ti.sync(t.command,{path:u[xi({env:u})],pathExt:e?Dr.delimiter:void 0})}catch{}finally{s&&process.chdir(r)}return i&&(i=Dr.resolve(n?t.options.cwd:"",i)),i}function Oi(t){return or(t)||or(t,!0)}var Pi=Oi,vt={};const Bt=/([()\][%!^"`<>&|;, *?])/g;function Ni(t){return t=t.replace(Bt,"^$1"),t}function Hi(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Bt,"^$1"),e&&(t=t.replace(Bt,"^$1")),t}vt.command=Ni,vt.argument=Hi;var Ii=/^#!(.*)/;const Li=Ii;var ki=(t="")=>{const e=t.match(Li);if(!e)return null;const[u,r]=e[0].replace(/#! ?/,"").split(" "),n=u.split("/").pop();return n==="env"?r:r?`${n} ${r}`:n};const $t=ae.default,Mi=ki;function Wi(t){const u=Buffer.alloc(150);let r;try{r=$t.openSync(t,"r"),$t.readSync(r,u,0,150,0),$t.closeSync(r)}catch{}return Mi(u.toString())}var ji=Wi;const Gi=z.default,ar=Pi,lr=vt,Ui=ji,Ki=process.platform==="win32",Vi=/\.(?:com|exe)$/i,zi=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Yi(t){t.file=ar(t);const e=t.file&&Ui(t.file);return e?(t.args.unshift(t.file),t.command=e,ar(t)):t.file}function qi(t){if(!Ki)return t;const e=Yi(t),u=!Vi.test(e);if(t.options.forceShell||u){const r=zi.test(e);t.command=Gi.normalize(t.command),t.command=lr.command(t.command),t.args=t.args.map(s=>lr.argument(s,r));const n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Xi(t,e,u){e&&!Array.isArray(e)&&(u=e,e=null),e=e?e.slice(0):[],u=Object.assign({},u);const r={command:t,args:e,options:u,file:void 0,original:{command:t,args:e}};return u.shell?r:qi(r)}var Qi=Xi;const St=process.platform==="win32";function Tt(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Zi(t,e){if(!St)return;const u=t.emit;t.emit=function(r,n){if(r==="exit"){const s=cr(n,e);if(s)return u.call(t,"error",s)}return u.apply(t,arguments)}}function cr(t,e){return St&&t===1&&!e.file?Tt(e.original,"spawn"):null}function Ji(t,e){return St&&t===1&&!e.file?Tt(e.original,"spawnSync"):null}var eD={hookChildProcess:Zi,verifyENOENT:cr,verifyENOENTSync:Ji,notFoundError:Tt};const fr=ts.default,xt=Qi,Ot=eD;function hr(t,e,u){const r=xt(t,e,u),n=fr.spawn(r.command,r.args,r.options);return Ot.hookChildProcess(n,r),n}function tD(t,e,u){const r=xt(t,e,u),n=fr.spawnSync(r.command,r.args,r.options);return n.error=n.error||Ot.verifyENOENTSync(n.status,r),n}pe.exports=hr,pe.exports.spawn=hr,pe.exports.sync=tD,pe.exports._parse=xt,pe.exports._enoent=Ot;var uD=Object.defineProperty,dr=Object.getOwnPropertySymbols,rD=Object.prototype.hasOwnProperty,nD=Object.prototype.propertyIsEnumerable,Er=(t,e,u)=>e in t?uD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,sD=(t,e)=>{for(var u in e||(e={}))rD.call(e,u)&&Er(t,u,e[u]);if(dr)for(var u of dr(e))nD.call(e,u)&&Er(t,u,e[u]);return t};function pr(t,e){const u=sD({},process.env),r=["inherit","inherit","inherit"];return e&&(e.noCache&&(u.ESBK_DISABLE_CACHE="1"),e.tsconfigPath&&(u.ESBK_TSCONFIG_PATH=e.tsconfigPath),e.ipc&&r.push("ipc")),pe.exports(process.execPath,["--require",Me.require.resolve("./suppress-warnings.cjs"),"--loader",bu.pathToFileURL(Me.require.resolve("./loader.js")).toString(),...t],{stdio:r,env:u})}var Pt={exports:{}},Ve={};const iD=z.default,te="\\\\/",Cr=`[^${te}]`,ue="\\.",DD="\\+",oD="\\?",ze="\\/",aD="(?=.)",Fr="[^/]",Nt=`(?:${ze}|$)`,gr=`(?:^|${ze})`,Ht=`${ue}{1,2}${Nt}`,lD=`(?!${ue})`,cD=`(?!${gr}${Ht})`,fD=`(?!${ue}{0,1}${Nt})`,hD=`(?!${Ht})`,dD=`[^.${ze}]`,ED=`${Fr}*?`,_r={DOT_LITERAL:ue,PLUS_LITERAL:DD,QMARK_LITERAL:oD,SLASH_LITERAL:ze,ONE_CHAR:aD,QMARK:Fr,END_ANCHOR:Nt,DOTS_SLASH:Ht,NO_DOT:lD,NO_DOTS:cD,NO_DOT_SLASH:fD,NO_DOTS_SLASH:hD,QMARK_NO_DOT:dD,STAR:ED,START_ANCHOR:gr},pD=oe(M({},_r),{SLASH_LITERAL:`[${te}]`,QMARK:Cr,STAR:`${Cr}*?`,DOTS_SLASH:`${ue}{1,2}(?:[${te}]|$)`,NO_DOT:`(?!${ue})`,NO_DOTS:`(?!(?:^|[${te}])${ue}{1,2}(?:[${te}]|$))`,NO_DOT_SLASH:`(?!${ue}{0,1}(?:[${te}]|$))`,NO_DOTS_SLASH:`(?!${ue}{1,2}(?:[${te}]|$))`,QMARK_NO_DOT:`[^.${te}]`,START_ANCHOR:`(?:^|[${te}])`,END_ANCHOR:`(?:[${te}]|$)`}),CD={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var Ye={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:CD,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:iD.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?pD:_r}};(function(t){const e=z.default,u=process.platform==="win32",{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:i}=Ye;t.isObject=D=>D!==null&&typeof D=="object"&&!Array.isArray(D),t.hasRegexChars=D=>s.test(D),t.isRegexChar=D=>D.length===1&&t.hasRegexChars(D),t.escapeRegex=D=>D.replace(i,"\\$1"),t.toPosixSlashes=D=>D.replace(r,"/"),t.removeBackslashes=D=>D.replace(n,o=>o==="\\"?"":o),t.supportsLookbehinds=()=>{const D=process.version.slice(1).split(".").map(Number);return D.length===3&&D[0]>=9||D[0]===8&&D[1]>=10},t.isWindows=D=>D&&typeof D.windows=="boolean"?D.windows:u===!0||e.sep==="\\",t.escapeLast=(D,o,a)=>{const c=D.lastIndexOf(o,a);return c===-1?D:D[c-1]==="\\"?t.escapeLast(D,o,c-1):`${D.slice(0,c)}\\${D.slice(c)}`},t.removePrefix=(D,o={})=>{let a=D;return a.startsWith("./")&&(a=a.slice(2),o.prefix="./"),a},t.wrapOutput=(D,o={},a={})=>{const c=a.contains?"":"^",f=a.contains?"":"$";let l=`${c}(?:${D})${f}`;return o.negated===!0&&(l=`(?:^(?!${l}).*$)`),l}})(Ve);const mr=Ve,{CHAR_ASTERISK:It,CHAR_AT:FD,CHAR_BACKWARD_SLASH:be,CHAR_COMMA:gD,CHAR_DOT:Lt,CHAR_EXCLAMATION_MARK:kt,CHAR_FORWARD_SLASH:Ar,CHAR_LEFT_CURLY_BRACE:Mt,CHAR_LEFT_PARENTHESES:Wt,CHAR_LEFT_SQUARE_BRACKET:_D,CHAR_PLUS:mD,CHAR_QUESTION_MARK:yr,CHAR_RIGHT_CURLY_BRACE:AD,CHAR_RIGHT_PARENTHESES:wr,CHAR_RIGHT_SQUARE_BRACKET:yD}=Ye,Rr=t=>t===Ar||t===be,br=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},wD=(t,e)=>{const u=e||{},r=t.length-1,n=u.parts===!0||u.scanToEnd===!0,s=[],i=[],D=[];let o=t,a=-1,c=0,f=0,l=!1,p=!1,C=!1,F=!1,y=!1,b=!1,P=!1,$=!1,Q=!1,W=!1,ne=0,j,m,v={value:"",depth:0,isGlob:!1};const k=()=>a>=r,E=()=>o.charCodeAt(a+1),x=()=>(j=m,o.charCodeAt(++a));for(;a<r;){m=x();let G;if(m===be){P=v.backslashes=!0,m=x(),m===Mt&&(b=!0);continue}if(b===!0||m===Mt){for(ne++;k()!==!0&&(m=x());){if(m===be){P=v.backslashes=!0,x();continue}if(m===Mt){ne++;continue}if(b!==!0&&m===Lt&&(m=x())===Lt){if(l=v.isBrace=!0,C=v.isGlob=!0,W=!0,n===!0)continue;break}if(b!==!0&&m===gD){if(l=v.isBrace=!0,C=v.isGlob=!0,W=!0,n===!0)continue;break}if(m===AD&&(ne--,ne===0)){b=!1,l=v.isBrace=!0,W=!0;break}}if(n===!0)continue;break}if(m===Ar){if(s.push(a),i.push(v),v={value:"",depth:0,isGlob:!1},W===!0)continue;if(j===Lt&&a===c+1){c+=2;continue}f=a+1;continue}if(u.noext!==!0&&(m===mD||m===FD||m===It||m===yr||m===kt)===!0&&E()===Wt){if(C=v.isGlob=!0,F=v.isExtglob=!0,W=!0,m===kt&&a===c&&(Q=!0),n===!0){for(;k()!==!0&&(m=x());){if(m===be){P=v.backslashes=!0,m=x();continue}if(m===wr){C=v.isGlob=!0,W=!0;break}}continue}break}if(m===It){if(j===It&&(y=v.isGlobstar=!0),C=v.isGlob=!0,W=!0,n===!0)continue;break}if(m===yr){if(C=v.isGlob=!0,W=!0,n===!0)continue;break}if(m===_D){for(;k()!==!0&&(G=x());){if(G===be){P=v.backslashes=!0,x();continue}if(G===yD){p=v.isBracket=!0,C=v.isGlob=!0,W=!0;break}}if(n===!0)continue;break}if(u.nonegate!==!0&&m===kt&&a===c){$=v.negated=!0,c++;continue}if(u.noparen!==!0&&m===Wt){if(C=v.isGlob=!0,n===!0){for(;k()!==!0&&(m=x());){if(m===Wt){P=v.backslashes=!0,m=x();continue}if(m===wr){W=!0;break}}continue}break}if(C===!0){if(W=!0,n===!0)continue;break}}u.noext===!0&&(F=!1,C=!1);let S=o,se="",h="";c>0&&(se=o.slice(0,c),o=o.slice(c),f-=c),S&&C===!0&&f>0?(S=o.slice(0,f),h=o.slice(f)):C===!0?(S="",h=o):S=o,S&&S!==""&&S!=="/"&&S!==o&&Rr(S.charCodeAt(S.length-1))&&(S=S.slice(0,-1)),u.unescape===!0&&(h&&(h=mr.removeBackslashes(h)),S&&P===!0&&(S=mr.removeBackslashes(S)));const d={prefix:se,input:t,start:c,base:S,glob:h,isBrace:l,isBracket:p,isGlob:C,isExtglob:F,isGlobstar:y,negated:$,negatedExtglob:Q};if(u.tokens===!0&&(d.maxDepth=0,Rr(m)||i.push(v),d.tokens=i),u.parts===!0||u.tokens===!0){let G;for(let R=0;R<s.length;R++){const Z=G?G+1:c,J=s[R],V=t.slice(Z,J);u.tokens&&(R===0&&c!==0?(i[R].isPrefix=!0,i[R].value=se):i[R].value=V,br(i[R]),d.maxDepth+=i[R].depth),(R!==0||V!=="")&&D.push(V),G=J}if(G&&G+1<t.length){const R=t.slice(G+1);D.push(R),u.tokens&&(i[i.length-1].value=R,br(i[i.length-1]),d.maxDepth+=i[i.length-1].depth)}d.slashes=s,d.parts=D}return d};var RD=wD;const qe=Ye,Y=Ve,{MAX_LENGTH:Xe,POSIX_REGEX_SOURCE:bD,REGEX_NON_SPECIAL_CHARS:vD,REGEX_SPECIAL_CHARS_BACKREF:BD,REPLACEMENTS:vr}=qe,$D=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();const u=`[${t.join("-")}]`;try{new RegExp(u)}catch{return t.map(n=>Y.escapeRegex(n)).join("..")}return u},Fe=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,jt=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=vr[t]||t;const u=M({},e),r=typeof u.maxLength=="number"?Math.min(Xe,u.maxLength):Xe;let n=t.length;if(n>r)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${r}`);const s={type:"bos",value:"",output:u.prepend||""},i=[s],D=u.capture?"":"?:",o=Y.isWindows(e),a=qe.globChars(o),c=qe.extglobChars(a),{DOT_LITERAL:f,PLUS_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:C,DOTS_SLASH:F,NO_DOT:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:P,QMARK:$,QMARK_NO_DOT:Q,STAR:W,START_ANCHOR:ne}=a,j=_=>`(${D}(?:(?!${ne}${_.dot?F:f}).)*?)`,m=u.dot?"":y,v=u.dot?$:Q;let k=u.bash===!0?j(u):W;u.capture&&(k=`(${k})`),typeof u.noext=="boolean"&&(u.noextglob=u.noext);const E={input:t,index:-1,start:0,dot:u.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};t=Y.removePrefix(t,E),n=t.length;const x=[],S=[],se=[];let h=s,d;const G=()=>E.index===n-1,R=E.peek=(_=1)=>t[E.index+_],Z=E.advance=()=>t[++E.index]||"",J=()=>t.slice(E.index+1),V=(_="",T=0)=>{E.consumed+=_,E.index+=T},He=_=>{E.output+=_.output!=null?_.output:_.value,V(_.value)},Ln=()=>{let _=1;for(;R()==="!"&&(R(2)!=="("||R(3)==="?");)Z(),E.start++,_++;return _%2===0?!1:(E.negated=!0,E.start++,!0)},Ie=_=>{E[_]++,se.push(_)},De=_=>{E[_]--,se.pop()},w=_=>{if(h.type==="globstar"){const T=E.braces>0&&(_.type==="comma"||_.type==="brace"),g=_.extglob===!0||x.length&&(_.type==="pipe"||_.type==="paren");_.type!=="slash"&&_.type!=="paren"&&!T&&!g&&(E.output=E.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=k,E.output+=h.output)}if(x.length&&_.type!=="paren"&&(x[x.length-1].inner+=_.value),(_.value||_.output)&&He(_),h&&h.type==="text"&&_.type==="text"){h.value+=_.value,h.output=(h.output||"")+_.value;return}_.prev=h,i.push(_),h=_},Le=(_,T)=>{const g=oe(M({},c[T]),{conditions:1,inner:""});g.prev=h,g.parens=E.parens,g.output=E.output;const A=(u.capture?"(":"")+g.open;Ie("parens"),w({type:_,value:T,output:E.output?"":C}),w({type:"paren",extglob:!0,value:Z(),output:A}),x.push(g)},kn=_=>{let T=_.close+(u.capture?")":""),g;if(_.type==="negate"){let A=k;if(_.inner&&_.inner.length>1&&_.inner.includes("/")&&(A=j(u)),(A!==k||G()||/^\)+$/.test(J()))&&(T=_.close=`)$))${A}`),_.inner.includes("*")&&(g=J())&&/^\.[^\\/.]+$/.test(g)){const O=jt(g,oe(M({},e),{fastpaths:!1})).output;T=_.close=`)${O})${A})`}_.prev.type==="bos"&&(E.negatedExtglob=!0)}w({type:"paren",extglob:!0,value:d,output:T}),De("parens")};if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let _=!1,T=t.replace(BD,(g,A,O,U,H,lt)=>U==="\\"?(_=!0,g):U==="?"?A?A+U+(H?$.repeat(H.length):""):lt===0?v+(H?$.repeat(H.length):""):$.repeat(O.length):U==="."?f.repeat(O.length):U==="*"?A?A+U+(H?k:""):k:A?g:`\\${g}`);return _===!0&&(u.unescape===!0?T=T.replace(/\\/g,""):T=T.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),T===t&&u.contains===!0?(E.output=t,E):(E.output=Y.wrapOutput(T,E,e),E)}for(;!G();){if(d=Z(),d==="\0")continue;if(d==="\\"){const g=R();if(g==="/"&&u.bash!==!0||g==="."||g===";")continue;if(!g){d+="\\",w({type:"text",value:d});continue}const A=/^\\+/.exec(J());let O=0;if(A&&A[0].length>2&&(O=A[0].length,E.index+=O,O%2!==0&&(d+="\\")),u.unescape===!0?d=Z():d+=Z(),E.brackets===0){w({type:"text",value:d});continue}}if(E.brackets>0&&(d!=="]"||h.value==="["||h.value==="[^")){if(u.posix!==!1&&d===":"){const g=h.value.slice(1);if(g.includes("[")&&(h.posix=!0,g.includes(":"))){const A=h.value.lastIndexOf("["),O=h.value.slice(0,A),U=h.value.slice(A+2),H=bD[U];if(H){h.value=O+H,E.backtrack=!0,Z(),!s.output&&i.indexOf(h)===1&&(s.output=C);continue}}}(d==="["&&R()!==":"||d==="-"&&R()==="]")&&(d=`\\${d}`),d==="]"&&(h.value==="["||h.value==="[^")&&(d=`\\${d}`),u.posix===!0&&d==="!"&&h.value==="["&&(d="^"),h.value+=d,He({value:d});continue}if(E.quotes===1&&d!=='"'){d=Y.escapeRegex(d),h.value+=d,He({value:d});continue}if(d==='"'){E.quotes=E.quotes===1?0:1,u.keepQuotes===!0&&w({type:"text",value:d});continue}if(d==="("){Ie("parens"),w({type:"paren",value:d});continue}if(d===")"){if(E.parens===0&&u.strictBrackets===!0)throw new SyntaxError(Fe("opening","("));const g=x[x.length-1];if(g&&E.parens===g.parens+1){kn(x.pop());continue}w({type:"paren",value:d,output:E.parens?")":"\\)"}),De("parens");continue}if(d==="["){if(u.nobracket===!0||!J().includes("]")){if(u.nobracket!==!0&&u.strictBrackets===!0)throw new SyntaxError(Fe("closing","]"));d=`\\${d}`}else Ie("brackets");w({type:"bracket",value:d});continue}if(d==="]"){if(u.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){w({type:"text",value:d,output:`\\${d}`});continue}if(E.brackets===0){if(u.strictBrackets===!0)throw new SyntaxError(Fe("opening","["));w({type:"text",value:d,output:`\\${d}`});continue}De("brackets");const g=h.value.slice(1);if(h.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(d=`/${d}`),h.value+=d,He({value:d}),u.literalBrackets===!1||Y.hasRegexChars(g))continue;const A=Y.escapeRegex(h.value);if(E.output=E.output.slice(0,-h.value.length),u.literalBrackets===!0){E.output+=A,h.value=A;continue}h.value=`(${D}${A}|${h.value})`,E.output+=h.value;continue}if(d==="{"&&u.nobrace!==!0){Ie("braces");const g={type:"brace",value:d,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};S.push(g),w(g);continue}if(d==="}"){const g=S[S.length-1];if(u.nobrace===!0||!g){w({type:"text",value:d,output:d});continue}let A=")";if(g.dots===!0){const O=i.slice(),U=[];for(let H=O.length-1;H>=0&&(i.pop(),O[H].type!=="brace");H--)O[H].type!=="dots"&&U.unshift(O[H].value);A=$D(U,u),E.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){const O=E.output.slice(0,g.outputIndex),U=E.tokens.slice(g.tokensIndex);g.value=g.output="\\{",d=A="\\}",E.output=O;for(const H of U)E.output+=H.output||H.value}w({type:"brace",value:d,output:A}),De("braces"),S.pop();continue}if(d==="|"){x.length>0&&x[x.length-1].conditions++,w({type:"text",value:d});continue}if(d===","){let g=d;const A=S[S.length-1];A&&se[se.length-1]==="braces"&&(A.comma=!0,g="|"),w({type:"comma",value:d,output:g});continue}if(d==="/"){if(h.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",i.pop(),h=s;continue}w({type:"slash",value:d,output:p});continue}if(d==="."){if(E.braces>0&&h.type==="dot"){h.value==="."&&(h.output=f);const g=S[S.length-1];h.type="dots",h.output+=d,h.value+=d,g.dots=!0;continue}if(E.braces+E.parens===0&&h.type!=="bos"&&h.type!=="slash"){w({type:"text",value:d,output:f});continue}w({type:"dot",value:d,output:f});continue}if(d==="?"){if(!(h&&h.value==="(")&&u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Le("qmark",d);continue}if(h&&h.type==="paren"){const A=R();let O=d;if(A==="<"&&!Y.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(A)||A==="<"&&!/<([!=]|\w+>)/.test(J()))&&(O=`\\${d}`),w({type:"text",value:d,output:O});continue}if(u.dot!==!0&&(h.type==="slash"||h.type==="bos")){w({type:"qmark",value:d,output:Q});continue}w({type:"qmark",value:d,output:$});continue}if(d==="!"){if(u.noextglob!==!0&&R()==="("&&(R(2)!=="?"||!/[!=<:]/.test(R(3)))){Le("negate",d);continue}if(u.nonegate!==!0&&E.index===0){Ln();continue}}if(d==="+"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Le("plus",d);continue}if(h&&h.value==="("||u.regex===!1){w({type:"plus",value:d,output:l});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||E.parens>0){w({type:"plus",value:d});continue}w({type:"plus",value:l});continue}if(d==="@"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){w({type:"at",extglob:!0,value:d,output:""});continue}w({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);const g=vD.exec(J());g&&(d+=g[0],E.index+=g[0].length),w({type:"text",value:d});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=d,h.output=k,E.backtrack=!0,E.globstar=!0,V(d);continue}let _=J();if(u.noextglob!==!0&&/^\([^?]/.test(_)){Le("star",d);continue}if(h.type==="star"){if(u.noglobstar===!0){V(d);continue}const g=h.prev,A=g.prev,O=g.type==="slash"||g.type==="bos",U=A&&(A.type==="star"||A.type==="globstar");if(u.bash===!0&&(!O||_[0]&&_[0]!=="/")){w({type:"star",value:d,output:""});continue}const H=E.braces>0&&(g.type==="comma"||g.type==="brace"),lt=x.length&&(g.type==="pipe"||g.type==="paren");if(!O&&g.type!=="paren"&&!H&&!lt){w({type:"star",value:d,output:""});continue}for(;_.slice(0,3)==="/**";){const ke=t[E.index+4];if(ke&&ke!=="/")break;_=_.slice(3),V("/**",3)}if(g.type==="bos"&&G()){h.type="globstar",h.value+=d,h.output=j(u),E.output=h.output,E.globstar=!0,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!U&&G()){E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=j(u)+(u.strictSlashes?")":"|$)"),h.value+=d,E.globstar=!0,E.output+=g.output+h.output,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&_[0]==="/"){const ke=_[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=`${j(u)}${p}|${p}${ke})`,h.value+=d,E.output+=g.output+h.output,E.globstar=!0,V(d+Z()),w({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&_[0]==="/"){h.type="globstar",h.value+=d,h.output=`(?:^|${p}|${j(u)}${p})`,E.output=h.output,E.globstar=!0,V(d+Z()),w({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-h.output.length),h.type="globstar",h.output=j(u),h.value+=d,E.output+=h.output,E.globstar=!0,V(d);continue}const T={type:"star",value:d,output:k};if(u.bash===!0){T.output=".*?",(h.type==="bos"||h.type==="slash")&&(T.output=m+T.output),w(T);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&u.regex===!0){T.output=d,w(T);continue}(E.index===E.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(E.output+=b,h.output+=b):u.dot===!0?(E.output+=P,h.output+=P):(E.output+=m,h.output+=m),R()!=="*"&&(E.output+=C,h.output+=C)),w(T)}for(;E.brackets>0;){if(u.strictBrackets===!0)throw new SyntaxError(Fe("closing","]"));E.output=Y.escapeLast(E.output,"["),De("brackets")}for(;E.parens>0;){if(u.strictBrackets===!0)throw new SyntaxError(Fe("closing",")"));E.output=Y.escapeLast(E.output,"("),De("parens")}for(;E.braces>0;){if(u.strictBrackets===!0)throw new SyntaxError(Fe("closing","}"));E.output=Y.escapeLast(E.output,"{"),De("braces")}if(u.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&w({type:"maybe_slash",value:"",output:`${p}?`}),E.backtrack===!0){E.output="";for(const _ of E.tokens)E.output+=_.output!=null?_.output:_.value,_.suffix&&(E.output+=_.suffix)}return E};jt.fastpaths=(t,e)=>{const u=M({},e),r=typeof u.maxLength=="number"?Math.min(Xe,u.maxLength):Xe,n=t.length;if(n>r)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${r}`);t=vr[t]||t;const s=Y.isWindows(e),{DOT_LITERAL:i,SLASH_LITERAL:D,ONE_CHAR:o,DOTS_SLASH:a,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:l,STAR:p,START_ANCHOR:C}=qe.globChars(s),F=u.dot?f:c,y=u.dot?l:c,b=u.capture?"":"?:",P={negated:!1,prefix:""};let $=u.bash===!0?".*?":p;u.capture&&($=`(${$})`);const Q=m=>m.noglobstar===!0?$:`(${b}(?:(?!${C}${m.dot?a:i}).)*?)`,W=m=>{switch(m){case"*":return`${F}${o}${$}`;case".*":return`${i}${o}${$}`;case"*.*":return`${F}${$}${i}${o}${$}`;case"*/*":return`${F}${$}${D}${o}${y}${$}`;case"**":return F+Q(u);case"**/*":return`(?:${F}${Q(u)}${D})?${y}${o}${$}`;case"**/*.*":return`(?:${F}${Q(u)}${D})?${y}${$}${i}${o}${$}`;case"**/.*":return`(?:${F}${Q(u)}${D})?${i}${o}${$}`;default:{const v=/^(.*?)\.(\w+)$/.exec(m);if(!v)return;const k=W(v[1]);return k?k+i+v[2]:void 0}}},ne=Y.removePrefix(t,P);let j=W(ne);return j&&u.strictSlashes!==!0&&(j+=`${D}?`),j};var SD=jt;const TD=z.default,xD=RD,Gt=SD,Ut=Ve,OD=Ye,PD=t=>t&&typeof t=="object"&&!Array.isArray(t),N=(t,e,u=!1)=>{if(Array.isArray(t)){const c=t.map(l=>N(l,e,u));return l=>{for(const p of c){const C=p(l);if(C)return C}return!1}}const r=PD(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");const n=e||{},s=Ut.isWindows(e),i=r?N.compileRe(t,e):N.makeRe(t,e,!1,!0),D=i.state;delete i.state;let o=()=>!1;if(n.ignore){const c=oe(M({},e),{ignore:null,onMatch:null,onResult:null});o=N(n.ignore,c,u)}const a=(c,f=!1)=>{const{isMatch:l,match:p,output:C}=N.test(c,i,e,{glob:t,posix:s}),F={glob:t,state:D,regex:i,posix:s,input:c,output:C,match:p,isMatch:l};return typeof n.onResult=="function"&&n.onResult(F),l===!1?(F.isMatch=!1,f?F:!1):o(c)?(typeof n.onIgnore=="function"&&n.onIgnore(F),F.isMatch=!1,f?F:!1):(typeof n.onMatch=="function"&&n.onMatch(F),f?F:!0)};return u&&(a.state=D),a};N.test=(t,e,u,{glob:r,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};const s=u||{},i=s.format||(n?Ut.toPosixSlashes:null);let D=t===r,o=D&&i?i(t):t;return D===!1&&(o=i?i(t):t,D=o===r),(D===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?D=N.matchBase(t,e,u,n):D=e.exec(o)),{isMatch:Boolean(D),match:D,output:o}},N.matchBase=(t,e,u,r=Ut.isWindows(u))=>(e instanceof RegExp?e:N.makeRe(e,u)).test(TD.basename(t)),N.isMatch=(t,e,u)=>N(e,u)(t),N.parse=(t,e)=>Array.isArray(t)?t.map(u=>N.parse(u,e)):Gt(t,oe(M({},e),{fastpaths:!1})),N.scan=(t,e)=>xD(t,e),N.compileRe=(t,e,u=!1,r=!1)=>{if(u===!0)return t.output;const n=e||{},s=n.contains?"":"^",i=n.contains?"":"$";let D=`${s}(?:${t.output})${i}`;t&&t.negated===!0&&(D=`^(?!${D}).*$`);const o=N.toRegex(D,e);return r===!0&&(o.state=t),o},N.makeRe=(t,e={},u=!1,r=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=Gt.fastpaths(t,e)),n.output||(n=Gt(t,e)),N.compileRe(n,e,u,r)},N.toRegex=(t,e)=>{try{const u=e||{};return new RegExp(t,u.flags||(u.nocase?"i":""))}catch(u){if(e&&e.debug===!0)throw u;return/$^/}},N.constants=OD;var ND=N;(function(t){t.exports=ND})(Pt);const ve=ae.default,{Readable:HD}=rs.default,Be=z.default,{promisify:Qe}=we.default,Kt=Pt.exports,ID=Qe(ve.readdir),LD=Qe(ve.stat),Br=Qe(ve.lstat),kD=Qe(ve.realpath),MD="!",$r="READDIRP_RECURSIVE_ERROR",WD=new Set(["ENOENT","EPERM","EACCES","ELOOP",$r]),Vt="files",Sr="directories",Ze="files_directories",Je="all",Tr=[Vt,Sr,Ze,Je],jD=t=>WD.has(t.code),[xr,GD]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),UD=process.platform==="win32"&&(xr>10||xr===10&&GD>=5),Or=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){const e=Kt(t.trim());return u=>e(u.basename)}if(Array.isArray(t)){const e=[],u=[];for(const r of t){const n=r.trim();n.charAt(0)===MD?u.push(Kt(n.slice(1))):e.push(Kt(n))}return u.length>0?e.length>0?r=>e.some(n=>n(r.basename))&&!u.some(n=>n(r.basename)):r=>!u.some(n=>n(r.basename)):r=>e.some(n=>n(r.basename))}}};class at extends HD{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:Vt,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});const u=M(M({},at.defaultOptions),e),{root:r,type:n}=u;this._fileFilter=Or(u.fileFilter),this._directoryFilter=Or(u.directoryFilter);const s=u.lstat?Br:LD;UD?this._stat=i=>s(i,{bigint:!0}):this._stat=s,this._maxDepth=u.depth,this._wantsDir=[Sr,Ze,Je].includes(n),this._wantsFile=[Vt,Ze,Je].includes(n),this._wantsEverything=n===Je,this._root=Be.resolve(r),this._isDirent="Dirent"in ve&&!u.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(r,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){const{path:u,depth:r,files:n=[]}=this.parent||{};if(n.length>0){const s=n.splice(0,e).map(i=>this._formatEntry(i,u));for(const i of await Promise.all(s)){if(this.destroyed)return;const D=await this._getEntryType(i);D==="directory"&&this._directoryFilter(i)?(r<=this._maxDepth&&this.parents.push(this._exploreDir(i.fullPath,r+1)),this._wantsDir&&(this.push(i),e--)):(D==="file"||this._includeAsFile(i))&&this._fileFilter(i)&&this._wantsFile&&(this.push(i),e--)}}else{const s=this.parents.pop();if(!s){this.push(null);break}if(this.parent=await s,this.destroyed)return}}}catch(u){this.destroy(u)}finally{this.reading=!1}}}async _exploreDir(e,u){let r;try{r=await ID(e,this._rdOptions)}catch(n){this._onError(n)}return{files:r,depth:u,path:e}}async _formatEntry(e,u){let r;try{const n=this._isDirent?e.name:e,s=Be.resolve(Be.join(u,n));r={path:Be.relative(this._root,s),fullPath:s,basename:n},r[this._statsProp]=this._isDirent?e:await this._stat(s)}catch(n){this._onError(n)}return r}_onError(e){jD(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){const u=e&&e[this._statsProp];if(!!u){if(u.isFile())return"file";if(u.isDirectory())return"directory";if(u&&u.isSymbolicLink()){const r=e.fullPath;try{const n=await kD(r),s=await Br(n);if(s.isFile())return"file";if(s.isDirectory()){const i=n.length;if(r.startsWith(n)&&r.substr(i,1)===Be.sep){const D=new Error(`Circular symlink detected: "${r}" points to "${n}"`);return D.code=$r,this._onError(D)}return"directory"}}catch(n){this._onError(n)}}}}_includeAsFile(e){const u=e&&e[this._statsProp];return u&&this._wantsEverything&&!u.isDirectory()}}const ge=(t,e={})=>{let u=e.entryType||e.type;if(u==="both"&&(u=Ze),u&&(e.type=u),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(u&&!Tr.includes(u))throw new Error(`readdirp: Invalid type passed. Use one of ${Tr.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new at(e)},KD=(t,e={})=>new Promise((u,r)=>{const n=[];ge(t,e).on("data",s=>n.push(s)).on("end",()=>u(n)).on("error",s=>r(s))});ge.promise=KD,ge.ReaddirpStream=at,ge.default=ge;var VD=ge,zt={exports:{}};/*!
|
|
11
|
+
`)}function Ps(t,e){if(!t||t.length===0)return"";let u=ms(t),n=u.length;if(n===0)return"";let{stdoutColumns:r,columns:s}=Cs(e);if(s.length>n)throw new Error(`${s.length} columns defined, but only ${n} columns found`);let i=Rs(r,s,u);return t.map(D=>Hs(i,D)).join(`
|
|
12
|
+
`)}U();var Ls=["<",">","=",">=","<="];function Is(t){if(!Ls.includes(t))throw new TypeError(`Invalid breakpoint operator: ${t}`)}function ks(t){let e=Object.keys(t).map(u=>{let[n,r]=u.split(" ");Is(n);let s=Number.parseInt(r,10);if(Number.isNaN(s))throw new TypeError(`Invalid breakpoint value: ${r}`);let i=t[u];return{operator:n,breakpoint:s,value:i}}).sort((u,n)=>n.breakpoint-u.breakpoint);return u=>{var n;return(n=e.find(({operator:r,breakpoint:s})=>r==="="&&u===s||r===">"&&u>s||r==="<"&&u<s||r===">="&&u>=s||r==="<="&&u<=s))==null?void 0:n.value}}const Ms=t=>t.replace(/[-_ ](\w)/g,(e,u)=>u.toUpperCase()),Ws=t=>t.replace(/\B([A-Z])/g,"-$1").toLowerCase(),Gs={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:t=>t.trim()},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function js(t){let e=!1;const u=Object.keys(t).sort((n,r)=>n.localeCompare(r)).map(n=>{const r=t[n],s="alias"in r;return s&&(e=!0),{name:n,flag:r,flagFormatted:`--${Ws(n)}`,aliasesEnabled:e,aliasFormatted:s?`-${r.alias}`:void 0}}).map(n=>(n.aliasesEnabled=e,[{type:"flagName",data:n},{type:"flagDescription",data:n}]));return{type:"table",data:{tableData:u,tableBreakpoints:Gs}}}const Uu=t=>{var e;return!t||((e=t.version)!=null?e:t.help?t.help.version:void 0)},Ku=t=>{var e;const u="parent"in t&&((e=t.parent)==null?void 0:e.name);return(u?`${u} `:"")+t.name};function Us(t){var e;const u=[];t.name&&u.push(Ku(t));const n=(e=Uu(t))!=null?e:"parent"in t&&Uu(t.parent);if(n&&u.push(`v${n}`),u.length!==0)return{id:"name",type:"text",data:`${u.join(" ")}
|
|
13
|
+
`}}function Ks(t){const{help:e}=t;if(!(!e||!e.description))return{id:"description",type:"text",data:`${e.description}
|
|
14
|
+
`}}function Vs(t){var e;const u=t.help||{};if("usage"in u)return u.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(u.usage)?u.usage.join(`
|
|
15
|
+
`):u.usage}}:void 0;if(t.name){const n=[],r=[Ku(t)];if(t.flags&&Object.keys(t.flags).length>0&&r.push("[flags...]"),t.parameters&&t.parameters.length>0){const{parameters:s}=t,i=s.indexOf("--"),D=i>-1&&s.slice(i+1).some(o=>o.startsWith("<"));r.push(s.map(o=>o!=="--"?o:D?"--":"[--]").join(" "))}if(r.length>1&&n.push(r.join(" ")),"commands"in t&&((e=t.commands)==null?void 0:e.length)&&n.push(`${t.name} <command>`),n.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:n.join(`
|
|
16
|
+
`)}}}}function zs(t){var e;if(!("commands"in t)||!((e=t.commands)!=null&&e.length))return;const u=t.commands.map(n=>[n.options.name,n.options.help?n.options.help.description:""]);return{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:u,tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}function Ys(t){if(!(!t.flags||Object.keys(t.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:js(t.flags),indentBody:0}}}function qs(t){const{help:e}=t;if(!e||!e.examples||e.examples.length===0)return;let{examples:u}=e;if(Array.isArray(u)&&(u=u.join(`
|
|
17
|
+
`)),u)return{id:"examples",type:"section",data:{title:"Examples:",body:u}}}function Xs(t){if(!("alias"in t)||!t.alias)return;const{alias:e}=t,u=Array.isArray(e)?e.join(", "):e;return{id:"aliases",type:"section",data:{title:"Aliases:",body:u}}}const Qs=t=>[Us,Ks,Vs,zs,Ys,qs,Xs].map(e=>e(t)).filter(e=>Boolean(e)),Zs=Wr.default.WriteStream.prototype.hasColors();class Js{text(e){return e}bold(e){return Zs?`\x1B[1m${e}\x1B[22m`:e.toLocaleUpperCase()}indentText({text:e,spaces:u}){return e.replace(/^/gm," ".repeat(u))}heading(e){return this.bold(e)}section({title:e,body:u,indentBody:n=2}){return`${(e?`${this.heading(e)}
|
|
18
|
+
`:"")+(u?this.indentText({text:this.render(u),spaces:n}):"")}
|
|
19
|
+
`}table({tableData:e,tableOptions:u,tableBreakpoints:n}){return Ps(e.map(r=>r.map(s=>this.render(s))),n?ks(n):u)}flagParameter(e){return e===Boolean?"":e===String?"<string>":e===Number?"<number>":Array.isArray(e)?this.flagParameter(e[0]):"<value>"}flagOperator(e){return" "}flagName(e){const{flag:u,flagFormatted:n,aliasesEnabled:r,aliasFormatted:s}=e;let i="";if(s?i+=`${s}, `:r&&(i+=" "),i+=n,"placeholder"in u&&typeof u.placeholder=="string")i+=`${this.flagOperator(e)}${u.placeholder}`;else{const D=this.flagParameter("type"in u?u.type:u);D&&(i+=`${this.flagOperator(e)}${D}`)}return i}flagDefault(e){return JSON.stringify(e)}flagDescription({flag:e}){var u;let n="description"in e&&(u=e.description)!=null?u:"";if("default"in e){let{default:r}=e;typeof r=="function"&&(r=r()),r&&(n+=` (default: ${this.flagDefault(r)})`)}return n}render(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(u=>this.render(u)).join(`
|
|
20
|
+
`);if("type"in e&&this[e.type]){const u=this[e.type];if(typeof u=="function")return u.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const Ct=/^[\w.-]+$/;var ei=Object.defineProperty,ti=Object.defineProperties,ui=Object.getOwnPropertyDescriptors,Vu=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable,zu=(t,e,u)=>e in t?ei(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,he=(t,e)=>{for(var u in e||(e={}))ni.call(e,u)&&zu(t,u,e[u]);if(Vu)for(var u of Vu(e))ri.call(e,u)&&zu(t,u,e[u]);return t},Ft=(t,e)=>ti(t,ui(e));const{stringify:J}=JSON,si=/[|\\{}()[\]^$+*?.]/;function gt(t){const e=[];let u,n;for(const r of t){if(n)throw new Error(`Invalid parameter: Spread parameter ${J(n)} must be last`);const s=r[0],i=r[r.length-1];let D;if(s==="<"&&i===">"&&(D=!0,u))throw new Error(`Invalid parameter: Required parameter ${J(r)} cannot come after optional parameter ${J(u)}`);if(s==="["&&i==="]"&&(D=!1,u=r),D===void 0)throw new Error(`Invalid parameter: ${J(r)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let o=r.slice(1,-1);const a=o.slice(-3)==="...";a&&(n=r,o=o.slice(0,-3));const c=o.match(si);if(c)throw new Error(`Invalid parameter: ${J(r)}. Invalid character found ${J(c[0])}`);e.push({name:o,required:D,spread:a})}return e}function _t(t,e,u,n){for(let r=0;r<e.length;r+=1){const{name:s,required:i,spread:D}=e[r],o=Ms(s);if(o in t)throw new Error(`Invalid parameter: ${J(s)} is used more than once.`);const a=D?u.slice(r):u[r];if(D&&(r=e.length),i&&(!a||D&&a.length===0))return console.error(`Error: Missing required parameter ${J(s)}
|
|
21
|
+
`),n(),process.exit(1);t[o]=a}}function ii(t){return t===void 0||t!==!1}function Yu(t,e,u,n){const r=he({},e.flags),s=e.version;s&&(r.version={type:Boolean,description:"Show version"});const{help:i}=e,D=ii(i);D&&!("help"in r)&&(r.help={type:Boolean,alias:"h",description:"Show help"});const o=ct(r,n),a=()=>{console.log(e.version)};if(s&&o.flags.version===!0)return a(),process.exit(0);const c=new Js,f=D&&(i==null?void 0:i.render)?i.render:C=>c.render(C),l=C=>{const F=Qs(Ft(he(he({},e),C?{help:C}:{}),{flags:r}));console.log(f(F,c))};if(D&&o.flags.help===!0)return l(),process.exit(0);if(e.parameters){let{parameters:C}=e,F=o._;const y=C.indexOf("--"),b=C.slice(y+1),N=Object.create(null);if(y>-1&&b.length>0){C=C.slice(0,y);const $=o._["--"];F=F.slice(0,-$.length||void 0),_t(N,gt(C),F,l),_t(N,gt(b),$,l)}else _t(N,gt(C),F,l);Object.assign(o._,N)}const p=Ft(he({},o),{showVersion:a,showHelp:l});return typeof u=="function"&&u(p),he({command:t},p)}function Di(t,e){const u=new Map;for(const n of e){const r=[n.options.name],{alias:s}=n.options;s&&(Array.isArray(s)?r.push(...s):r.push(s));for(const i of r){if(u.has(i))throw new Error(`Duplicate command name found: ${J(i)}`);u.set(i,n)}}return u.get(t)}function oi(t,e,u=process.argv.slice(2)){if(!t)throw new Error("Options is required");if("name"in t&&(!t.name||!Ct.test(t.name)))throw new Error(`Invalid script name: ${J(t.name)}`);const n=u[0];if(t.commands&&Ct.test(n)){const r=Di(n,t.commands);if(r)return Yu(r.options.name,Ft(he({},r.options),{parent:t}),r.callback,u.slice(1))}return Yu(void 0,t,e,u)}function ai(t,e){if(!t)throw new Error("Command options are required");const{name:u}=t;if(t.name===void 0)throw new Error("Command name is required");if(!Ct.test(u))throw new Error(`Invalid command name ${JSON.stringify(u)}. Command names must be one word.`);return{options:t,callback:e}}var li=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},de={exports:{}},mt,qu;function ci(){if(qu)return mt;qu=1,mt=n,n.sync=r;var t=De.default;function e(s,i){var D=i.pathExt!==void 0?i.pathExt:process.env.PATHEXT;if(!D||(D=D.split(";"),D.indexOf("")!==-1))return!0;for(var o=0;o<D.length;o++){var a=D[o].toLowerCase();if(a&&s.substr(-a.length).toLowerCase()===a)return!0}return!1}function u(s,i,D){return!s.isSymbolicLink()&&!s.isFile()?!1:e(i,D)}function n(s,i,D){t.stat(s,function(o,a){D(o,o?!1:u(a,s,i))})}function r(s,i){return u(t.statSync(s),s,i)}return mt}var At,Xu;function fi(){if(Xu)return At;Xu=1,At=e,e.sync=u;var t=De.default;function e(s,i,D){t.stat(s,function(o,a){D(o,o?!1:n(a,i))})}function u(s,i){return n(t.statSync(s),i)}function n(s,i){return s.isFile()&&r(s,i)}function r(s,i){var D=s.mode,o=s.uid,a=s.gid,c=i.uid!==void 0?i.uid:process.getuid&&process.getuid(),f=i.gid!==void 0?i.gid:process.getgid&&process.getgid(),l=parseInt("100",8),p=parseInt("010",8),C=parseInt("001",8),F=l|p,y=D&C||D&p&&a===f||D&l&&o===c||D&F&&c===0;return y}return At}var je;process.platform==="win32"||li.TESTING_WINDOWS?je=ci():je=fi();var hi=yt;yt.sync=di;function yt(t,e,u){if(typeof e=="function"&&(u=e,e={}),!u){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,r){yt(t,e||{},function(s,i){s?r(s):n(i)})})}je(t,e||{},function(n,r){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,r=!1),u(n,r)})}function di(t,e){try{return je.sync(t,e||{})}catch(u){if(e&&e.ignoreErrors||u.code==="EACCES")return!1;throw u}}const Ee=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Qu=K.default,Ei=Ee?";":":",Zu=hi,Ju=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),en=(t,e)=>{const u=e.colon||Ei,n=t.match(/\//)||Ee&&t.match(/\\/)?[""]:[...Ee?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(u)],r=Ee?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Ee?r.split(u):[""];return Ee&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:r}},tn=(t,e,u)=>{typeof e=="function"&&(u=e,e={}),e||(e={});const{pathEnv:n,pathExt:r,pathExtExe:s}=en(t,e),i=[],D=a=>new Promise((c,f)=>{if(a===n.length)return e.all&&i.length?c(i):f(Ju(t));const l=n[a],p=/^".*"$/.test(l)?l.slice(1,-1):l,C=Qu.join(p,t),F=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+C:C;c(o(F,a,0))}),o=(a,c,f)=>new Promise((l,p)=>{if(f===r.length)return l(D(c+1));const C=r[f];Zu(a+C,{pathExt:s},(F,y)=>{if(!F&&y)if(e.all)i.push(a+C);else return l(a+C);return l(o(a,c,f+1))})});return u?D(0).then(a=>u(null,a),u):D(0)},pi=(t,e)=>{e=e||{};const{pathEnv:u,pathExt:n,pathExtExe:r}=en(t,e),s=[];for(let i=0;i<u.length;i++){const D=u[i],o=/^".*"$/.test(D)?D.slice(1,-1):D,a=Qu.join(o,t),c=!o&&/^\.[\\\/]/.test(t)?t.slice(0,2)+a:a;for(let f=0;f<n.length;f++){const l=c+n[f];try{if(Zu.sync(l,{pathExt:r}))if(e.all)s.push(l);else return l}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Ju(t)};var Ci=tn;tn.sync=pi;var wt={exports:{}};const un=(t={})=>{const e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};wt.exports=un,wt.exports.default=un;const nn=K.default,Fi=Ci,gi=wt.exports;function rn(t,e){const u=t.options.env||process.env,n=process.cwd(),r=t.options.cwd!=null,s=r&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let i;try{i=Fi.sync(t.command,{path:u[gi({env:u})],pathExt:e?nn.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return i&&(i=nn.resolve(r?t.options.cwd:"",i)),i}function _i(t){return rn(t)||rn(t,!0)}var mi=_i,Rt={};const bt=/([()\][%!^"`<>&|;, *?])/g;function Ai(t){return t=t.replace(bt,"^$1"),t}function yi(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(bt,"^$1"),e&&(t=t.replace(bt,"^$1")),t}Rt.command=Ai,Rt.argument=yi;var wi=/^#!(.*)/;const Ri=wi;var bi=(t="")=>{const e=t.match(Ri);if(!e)return null;const[u,n]=e[0].replace(/#! ?/,"").split(" "),r=u.split("/").pop();return r==="env"?n:n?`${r} ${n}`:r};const vt=De.default,vi=bi;function Bi(t){const u=Buffer.alloc(150);let n;try{n=vt.openSync(t,"r"),vt.readSync(n,u,0,150,0),vt.closeSync(n)}catch{}return vi(u.toString())}var $i=Bi;const Si=K.default,sn=mi,Dn=Rt,Ti=$i,xi=process.platform==="win32",Oi=/\.(?:com|exe)$/i,Ni=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Hi(t){t.file=sn(t);const e=t.file&&Ti(t.file);return e?(t.args.unshift(t.file),t.command=e,sn(t)):t.file}function Pi(t){if(!xi)return t;const e=Hi(t),u=!Oi.test(e);if(t.options.forceShell||u){const n=Ni.test(e);t.command=Si.normalize(t.command),t.command=Dn.command(t.command),t.args=t.args.map(s=>Dn.argument(s,n));const r=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${r}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Li(t,e,u){e&&!Array.isArray(e)&&(u=e,e=null),e=e?e.slice(0):[],u=Object.assign({},u);const n={command:t,args:e,options:u,file:void 0,original:{command:t,args:e}};return u.shell?n:Pi(n)}var Ii=Li;const Bt=process.platform==="win32";function $t(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function ki(t,e){if(!Bt)return;const u=t.emit;t.emit=function(n,r){if(n==="exit"){const s=on(r,e);if(s)return u.call(t,"error",s)}return u.apply(t,arguments)}}function on(t,e){return Bt&&t===1&&!e.file?$t(e.original,"spawn"):null}function Mi(t,e){return Bt&&t===1&&!e.file?$t(e.original,"spawnSync"):null}var Wi={hookChildProcess:ki,verifyENOENT:on,verifyENOENTSync:Mi,notFoundError:$t};const an=Gr.default,St=Ii,Tt=Wi;function ln(t,e,u){const n=St(t,e,u),r=an.spawn(n.command,n.args,n.options);return Tt.hookChildProcess(r,n),r}function Gi(t,e,u){const n=St(t,e,u),r=an.spawnSync(n.command,n.args,n.options);return r.error=r.error||Tt.verifyENOENTSync(r.status,n),r}de.exports=ln,de.exports.spawn=ln,de.exports.sync=Gi,de.exports._parse=St,de.exports._enoent=Tt;function cn(t,e){const u={...process.env},n=["inherit","inherit","inherit"];return e&&(e.noCache&&(u.ESBK_DISABLE_CACHE="1"),e.tsconfigPath&&(u.ESBK_TSCONFIG_PATH=e.tsconfigPath),e.ipc&&n.push("ipc")),de.exports(process.execPath,["--require",Ie.require.resolve("./suppress-warnings.cjs"),"--loader",Au.pathToFileURL(Ie.require.resolve("./loader.js")).toString(),...t],{stdio:n,env:u})}var xt={exports:{}},Ue={};const ji=K.default,ee="\\\\/",fn=`[^${ee}]`,te="\\.",Ui="\\+",Ki="\\?",Ke="\\/",Vi="(?=.)",hn="[^/]",Ot=`(?:${Ke}|$)`,dn=`(?:^|${Ke})`,Nt=`${te}{1,2}${Ot}`,zi=`(?!${te})`,Yi=`(?!${dn}${Nt})`,qi=`(?!${te}{0,1}${Ot})`,Xi=`(?!${Nt})`,Qi=`[^.${Ke}]`,Zi=`${hn}*?`,En={DOT_LITERAL:te,PLUS_LITERAL:Ui,QMARK_LITERAL:Ki,SLASH_LITERAL:Ke,ONE_CHAR:Vi,QMARK:hn,END_ANCHOR:Ot,DOTS_SLASH:Nt,NO_DOT:zi,NO_DOTS:Yi,NO_DOT_SLASH:qi,NO_DOTS_SLASH:Xi,QMARK_NO_DOT:Qi,STAR:Zi,START_ANCHOR:dn},Ji={...En,SLASH_LITERAL:`[${ee}]`,QMARK:fn,STAR:`${fn}*?`,DOTS_SLASH:`${te}{1,2}(?:[${ee}]|$)`,NO_DOT:`(?!${te})`,NO_DOTS:`(?!(?:^|[${ee}])${te}{1,2}(?:[${ee}]|$))`,NO_DOT_SLASH:`(?!${te}{0,1}(?:[${ee}]|$))`,NO_DOTS_SLASH:`(?!${te}{1,2}(?:[${ee}]|$))`,QMARK_NO_DOT:`[^.${ee}]`,START_ANCHOR:`(?:^|[${ee}])`,END_ANCHOR:`(?:[${ee}]|$)`},eD={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var Ve={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:eD,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:ji.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?Ji:En}};(function(t){const e=K.default,u=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:i}=Ve;t.isObject=D=>D!==null&&typeof D=="object"&&!Array.isArray(D),t.hasRegexChars=D=>s.test(D),t.isRegexChar=D=>D.length===1&&t.hasRegexChars(D),t.escapeRegex=D=>D.replace(i,"\\$1"),t.toPosixSlashes=D=>D.replace(n,"/"),t.removeBackslashes=D=>D.replace(r,o=>o==="\\"?"":o),t.supportsLookbehinds=()=>{const D=process.version.slice(1).split(".").map(Number);return D.length===3&&D[0]>=9||D[0]===8&&D[1]>=10},t.isWindows=D=>D&&typeof D.windows=="boolean"?D.windows:u===!0||e.sep==="\\",t.escapeLast=(D,o,a)=>{const c=D.lastIndexOf(o,a);return c===-1?D:D[c-1]==="\\"?t.escapeLast(D,o,c-1):`${D.slice(0,c)}\\${D.slice(c)}`},t.removePrefix=(D,o={})=>{let a=D;return a.startsWith("./")&&(a=a.slice(2),o.prefix="./"),a},t.wrapOutput=(D,o={},a={})=>{const c=a.contains?"":"^",f=a.contains?"":"$";let l=`${c}(?:${D})${f}`;return o.negated===!0&&(l=`(?:^(?!${l}).*$)`),l}})(Ue);const pn=Ue,{CHAR_ASTERISK:Ht,CHAR_AT:tD,CHAR_BACKWARD_SLASH:we,CHAR_COMMA:uD,CHAR_DOT:Pt,CHAR_EXCLAMATION_MARK:Lt,CHAR_FORWARD_SLASH:Cn,CHAR_LEFT_CURLY_BRACE:It,CHAR_LEFT_PARENTHESES:kt,CHAR_LEFT_SQUARE_BRACKET:nD,CHAR_PLUS:rD,CHAR_QUESTION_MARK:Fn,CHAR_RIGHT_CURLY_BRACE:sD,CHAR_RIGHT_PARENTHESES:gn,CHAR_RIGHT_SQUARE_BRACKET:iD}=Ve,_n=t=>t===Cn||t===we,mn=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},DD=(t,e)=>{const u=e||{},n=t.length-1,r=u.parts===!0||u.scanToEnd===!0,s=[],i=[],D=[];let o=t,a=-1,c=0,f=0,l=!1,p=!1,C=!1,F=!1,y=!1,b=!1,N=!1,$=!1,X=!1,M=!1,ne=0,W,m,v={value:"",depth:0,isGlob:!1};const k=()=>a>=n,E=()=>o.charCodeAt(a+1),x=()=>(W=m,o.charCodeAt(++a));for(;a<n;){m=x();let G;if(m===we){N=v.backslashes=!0,m=x(),m===It&&(b=!0);continue}if(b===!0||m===It){for(ne++;k()!==!0&&(m=x());){if(m===we){N=v.backslashes=!0,x();continue}if(m===It){ne++;continue}if(b!==!0&&m===Pt&&(m=x())===Pt){if(l=v.isBrace=!0,C=v.isGlob=!0,M=!0,r===!0)continue;break}if(b!==!0&&m===uD){if(l=v.isBrace=!0,C=v.isGlob=!0,M=!0,r===!0)continue;break}if(m===sD&&(ne--,ne===0)){b=!1,l=v.isBrace=!0,M=!0;break}}if(r===!0)continue;break}if(m===Cn){if(s.push(a),i.push(v),v={value:"",depth:0,isGlob:!1},M===!0)continue;if(W===Pt&&a===c+1){c+=2;continue}f=a+1;continue}if(u.noext!==!0&&(m===rD||m===tD||m===Ht||m===Fn||m===Lt)===!0&&E()===kt){if(C=v.isGlob=!0,F=v.isExtglob=!0,M=!0,m===Lt&&a===c&&(X=!0),r===!0){for(;k()!==!0&&(m=x());){if(m===we){N=v.backslashes=!0,m=x();continue}if(m===gn){C=v.isGlob=!0,M=!0;break}}continue}break}if(m===Ht){if(W===Ht&&(y=v.isGlobstar=!0),C=v.isGlob=!0,M=!0,r===!0)continue;break}if(m===Fn){if(C=v.isGlob=!0,M=!0,r===!0)continue;break}if(m===nD){for(;k()!==!0&&(G=x());){if(G===we){N=v.backslashes=!0,x();continue}if(G===iD){p=v.isBracket=!0,C=v.isGlob=!0,M=!0;break}}if(r===!0)continue;break}if(u.nonegate!==!0&&m===Lt&&a===c){$=v.negated=!0,c++;continue}if(u.noparen!==!0&&m===kt){if(C=v.isGlob=!0,r===!0){for(;k()!==!0&&(m=x());){if(m===kt){N=v.backslashes=!0,m=x();continue}if(m===gn){M=!0;break}}continue}break}if(C===!0){if(M=!0,r===!0)continue;break}}u.noext===!0&&(F=!1,C=!1);let S=o,re="",h="";c>0&&(re=o.slice(0,c),o=o.slice(c),f-=c),S&&C===!0&&f>0?(S=o.slice(0,f),h=o.slice(f)):C===!0?(S="",h=o):S=o,S&&S!==""&&S!=="/"&&S!==o&&_n(S.charCodeAt(S.length-1))&&(S=S.slice(0,-1)),u.unescape===!0&&(h&&(h=pn.removeBackslashes(h)),S&&N===!0&&(S=pn.removeBackslashes(S)));const d={prefix:re,input:t,start:c,base:S,glob:h,isBrace:l,isBracket:p,isGlob:C,isExtglob:F,isGlobstar:y,negated:$,negatedExtglob:X};if(u.tokens===!0&&(d.maxDepth=0,_n(m)||i.push(v),d.tokens=i),u.parts===!0||u.tokens===!0){let G;for(let R=0;R<s.length;R++){const Q=G?G+1:c,Z=s[R],V=t.slice(Q,Z);u.tokens&&(R===0&&c!==0?(i[R].isPrefix=!0,i[R].value=re):i[R].value=V,mn(i[R]),d.maxDepth+=i[R].depth),(R!==0||V!=="")&&D.push(V),G=Z}if(G&&G+1<t.length){const R=t.slice(G+1);D.push(R),u.tokens&&(i[i.length-1].value=R,mn(i[i.length-1]),d.maxDepth+=i[i.length-1].depth)}d.slashes=s,d.parts=D}return d};var oD=DD;const ze=Ve,z=Ue,{MAX_LENGTH:Ye,POSIX_REGEX_SOURCE:aD,REGEX_NON_SPECIAL_CHARS:lD,REGEX_SPECIAL_CHARS_BACKREF:cD,REPLACEMENTS:An}=ze,fD=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();const u=`[${t.join("-")}]`;try{new RegExp(u)}catch{return t.map(r=>z.escapeRegex(r)).join("..")}return u},pe=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Mt=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=An[t]||t;const u={...e},n=typeof u.maxLength=="number"?Math.min(Ye,u.maxLength):Ye;let r=t.length;if(r>n)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${n}`);const s={type:"bos",value:"",output:u.prepend||""},i=[s],D=u.capture?"":"?:",o=z.isWindows(e),a=ze.globChars(o),c=ze.extglobChars(a),{DOT_LITERAL:f,PLUS_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:C,DOTS_SLASH:F,NO_DOT:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:N,QMARK:$,QMARK_NO_DOT:X,STAR:M,START_ANCHOR:ne}=a,W=_=>`(${D}(?:(?!${ne}${_.dot?F:f}).)*?)`,m=u.dot?"":y,v=u.dot?$:X;let k=u.bash===!0?W(u):M;u.capture&&(k=`(${k})`),typeof u.noext=="boolean"&&(u.noextglob=u.noext);const E={input:t,index:-1,start:0,dot:u.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};t=z.removePrefix(t,E),r=t.length;const x=[],S=[],re=[];let h=s,d;const G=()=>E.index===r-1,R=E.peek=(_=1)=>t[E.index+_],Q=E.advance=()=>t[++E.index]||"",Z=()=>t.slice(E.index+1),V=(_="",T=0)=>{E.consumed+=_,E.index+=T},Ne=_=>{E.output+=_.output!=null?_.output:_.value,V(_.value)},Sr=()=>{let _=1;for(;R()==="!"&&(R(2)!=="("||R(3)==="?");)Q(),E.start++,_++;return _%2===0?!1:(E.negated=!0,E.start++,!0)},He=_=>{E[_]++,re.push(_)},ie=_=>{E[_]--,re.pop()},w=_=>{if(h.type==="globstar"){const T=E.braces>0&&(_.type==="comma"||_.type==="brace"),g=_.extglob===!0||x.length&&(_.type==="pipe"||_.type==="paren");_.type!=="slash"&&_.type!=="paren"&&!T&&!g&&(E.output=E.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=k,E.output+=h.output)}if(x.length&&_.type!=="paren"&&(x[x.length-1].inner+=_.value),(_.value||_.output)&&Ne(_),h&&h.type==="text"&&_.type==="text"){h.value+=_.value,h.output=(h.output||"")+_.value;return}_.prev=h,i.push(_),h=_},Pe=(_,T)=>{const g={...c[T],conditions:1,inner:""};g.prev=h,g.parens=E.parens,g.output=E.output;const A=(u.capture?"(":"")+g.open;He("parens"),w({type:_,value:T,output:E.output?"":C}),w({type:"paren",extglob:!0,value:Q(),output:A}),x.push(g)},Tr=_=>{let T=_.close+(u.capture?")":""),g;if(_.type==="negate"){let A=k;if(_.inner&&_.inner.length>1&&_.inner.includes("/")&&(A=W(u)),(A!==k||G()||/^\)+$/.test(Z()))&&(T=_.close=`)$))${A}`),_.inner.includes("*")&&(g=Z())&&/^\.[^\\/.]+$/.test(g)){const O=Mt(g,{...e,fastpaths:!1}).output;T=_.close=`)${O})${A})`}_.prev.type==="bos"&&(E.negatedExtglob=!0)}w({type:"paren",extglob:!0,value:d,output:T}),ie("parens")};if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let _=!1,T=t.replace(cD,(g,A,O,j,P,ot)=>j==="\\"?(_=!0,g):j==="?"?A?A+j+(P?$.repeat(P.length):""):ot===0?v+(P?$.repeat(P.length):""):$.repeat(O.length):j==="."?f.repeat(O.length):j==="*"?A?A+j+(P?k:""):k:A?g:`\\${g}`);return _===!0&&(u.unescape===!0?T=T.replace(/\\/g,""):T=T.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),T===t&&u.contains===!0?(E.output=t,E):(E.output=z.wrapOutput(T,E,e),E)}for(;!G();){if(d=Q(),d==="\0")continue;if(d==="\\"){const g=R();if(g==="/"&&u.bash!==!0||g==="."||g===";")continue;if(!g){d+="\\",w({type:"text",value:d});continue}const A=/^\\+/.exec(Z());let O=0;if(A&&A[0].length>2&&(O=A[0].length,E.index+=O,O%2!==0&&(d+="\\")),u.unescape===!0?d=Q():d+=Q(),E.brackets===0){w({type:"text",value:d});continue}}if(E.brackets>0&&(d!=="]"||h.value==="["||h.value==="[^")){if(u.posix!==!1&&d===":"){const g=h.value.slice(1);if(g.includes("[")&&(h.posix=!0,g.includes(":"))){const A=h.value.lastIndexOf("["),O=h.value.slice(0,A),j=h.value.slice(A+2),P=aD[j];if(P){h.value=O+P,E.backtrack=!0,Q(),!s.output&&i.indexOf(h)===1&&(s.output=C);continue}}}(d==="["&&R()!==":"||d==="-"&&R()==="]")&&(d=`\\${d}`),d==="]"&&(h.value==="["||h.value==="[^")&&(d=`\\${d}`),u.posix===!0&&d==="!"&&h.value==="["&&(d="^"),h.value+=d,Ne({value:d});continue}if(E.quotes===1&&d!=='"'){d=z.escapeRegex(d),h.value+=d,Ne({value:d});continue}if(d==='"'){E.quotes=E.quotes===1?0:1,u.keepQuotes===!0&&w({type:"text",value:d});continue}if(d==="("){He("parens"),w({type:"paren",value:d});continue}if(d===")"){if(E.parens===0&&u.strictBrackets===!0)throw new SyntaxError(pe("opening","("));const g=x[x.length-1];if(g&&E.parens===g.parens+1){Tr(x.pop());continue}w({type:"paren",value:d,output:E.parens?")":"\\)"}),ie("parens");continue}if(d==="["){if(u.nobracket===!0||!Z().includes("]")){if(u.nobracket!==!0&&u.strictBrackets===!0)throw new SyntaxError(pe("closing","]"));d=`\\${d}`}else He("brackets");w({type:"bracket",value:d});continue}if(d==="]"){if(u.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){w({type:"text",value:d,output:`\\${d}`});continue}if(E.brackets===0){if(u.strictBrackets===!0)throw new SyntaxError(pe("opening","["));w({type:"text",value:d,output:`\\${d}`});continue}ie("brackets");const g=h.value.slice(1);if(h.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(d=`/${d}`),h.value+=d,Ne({value:d}),u.literalBrackets===!1||z.hasRegexChars(g))continue;const A=z.escapeRegex(h.value);if(E.output=E.output.slice(0,-h.value.length),u.literalBrackets===!0){E.output+=A,h.value=A;continue}h.value=`(${D}${A}|${h.value})`,E.output+=h.value;continue}if(d==="{"&&u.nobrace!==!0){He("braces");const g={type:"brace",value:d,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};S.push(g),w(g);continue}if(d==="}"){const g=S[S.length-1];if(u.nobrace===!0||!g){w({type:"text",value:d,output:d});continue}let A=")";if(g.dots===!0){const O=i.slice(),j=[];for(let P=O.length-1;P>=0&&(i.pop(),O[P].type!=="brace");P--)O[P].type!=="dots"&&j.unshift(O[P].value);A=fD(j,u),E.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){const O=E.output.slice(0,g.outputIndex),j=E.tokens.slice(g.tokensIndex);g.value=g.output="\\{",d=A="\\}",E.output=O;for(const P of j)E.output+=P.output||P.value}w({type:"brace",value:d,output:A}),ie("braces"),S.pop();continue}if(d==="|"){x.length>0&&x[x.length-1].conditions++,w({type:"text",value:d});continue}if(d===","){let g=d;const A=S[S.length-1];A&&re[re.length-1]==="braces"&&(A.comma=!0,g="|"),w({type:"comma",value:d,output:g});continue}if(d==="/"){if(h.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",i.pop(),h=s;continue}w({type:"slash",value:d,output:p});continue}if(d==="."){if(E.braces>0&&h.type==="dot"){h.value==="."&&(h.output=f);const g=S[S.length-1];h.type="dots",h.output+=d,h.value+=d,g.dots=!0;continue}if(E.braces+E.parens===0&&h.type!=="bos"&&h.type!=="slash"){w({type:"text",value:d,output:f});continue}w({type:"dot",value:d,output:f});continue}if(d==="?"){if(!(h&&h.value==="(")&&u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Pe("qmark",d);continue}if(h&&h.type==="paren"){const A=R();let O=d;if(A==="<"&&!z.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(A)||A==="<"&&!/<([!=]|\w+>)/.test(Z()))&&(O=`\\${d}`),w({type:"text",value:d,output:O});continue}if(u.dot!==!0&&(h.type==="slash"||h.type==="bos")){w({type:"qmark",value:d,output:X});continue}w({type:"qmark",value:d,output:$});continue}if(d==="!"){if(u.noextglob!==!0&&R()==="("&&(R(2)!=="?"||!/[!=<:]/.test(R(3)))){Pe("negate",d);continue}if(u.nonegate!==!0&&E.index===0){Sr();continue}}if(d==="+"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Pe("plus",d);continue}if(h&&h.value==="("||u.regex===!1){w({type:"plus",value:d,output:l});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||E.parens>0){w({type:"plus",value:d});continue}w({type:"plus",value:l});continue}if(d==="@"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){w({type:"at",extglob:!0,value:d,output:""});continue}w({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);const g=lD.exec(Z());g&&(d+=g[0],E.index+=g[0].length),w({type:"text",value:d});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=d,h.output=k,E.backtrack=!0,E.globstar=!0,V(d);continue}let _=Z();if(u.noextglob!==!0&&/^\([^?]/.test(_)){Pe("star",d);continue}if(h.type==="star"){if(u.noglobstar===!0){V(d);continue}const g=h.prev,A=g.prev,O=g.type==="slash"||g.type==="bos",j=A&&(A.type==="star"||A.type==="globstar");if(u.bash===!0&&(!O||_[0]&&_[0]!=="/")){w({type:"star",value:d,output:""});continue}const P=E.braces>0&&(g.type==="comma"||g.type==="brace"),ot=x.length&&(g.type==="pipe"||g.type==="paren");if(!O&&g.type!=="paren"&&!P&&!ot){w({type:"star",value:d,output:""});continue}for(;_.slice(0,3)==="/**";){const Le=t[E.index+4];if(Le&&Le!=="/")break;_=_.slice(3),V("/**",3)}if(g.type==="bos"&&G()){h.type="globstar",h.value+=d,h.output=W(u),E.output=h.output,E.globstar=!0,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!j&&G()){E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=W(u)+(u.strictSlashes?")":"|$)"),h.value+=d,E.globstar=!0,E.output+=g.output+h.output,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&_[0]==="/"){const Le=_[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=`${W(u)}${p}|${p}${Le})`,h.value+=d,E.output+=g.output+h.output,E.globstar=!0,V(d+Q()),w({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&_[0]==="/"){h.type="globstar",h.value+=d,h.output=`(?:^|${p}|${W(u)}${p})`,E.output=h.output,E.globstar=!0,V(d+Q()),w({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-h.output.length),h.type="globstar",h.output=W(u),h.value+=d,E.output+=h.output,E.globstar=!0,V(d);continue}const T={type:"star",value:d,output:k};if(u.bash===!0){T.output=".*?",(h.type==="bos"||h.type==="slash")&&(T.output=m+T.output),w(T);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&u.regex===!0){T.output=d,w(T);continue}(E.index===E.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(E.output+=b,h.output+=b):u.dot===!0?(E.output+=N,h.output+=N):(E.output+=m,h.output+=m),R()!=="*"&&(E.output+=C,h.output+=C)),w(T)}for(;E.brackets>0;){if(u.strictBrackets===!0)throw new SyntaxError(pe("closing","]"));E.output=z.escapeLast(E.output,"["),ie("brackets")}for(;E.parens>0;){if(u.strictBrackets===!0)throw new SyntaxError(pe("closing",")"));E.output=z.escapeLast(E.output,"("),ie("parens")}for(;E.braces>0;){if(u.strictBrackets===!0)throw new SyntaxError(pe("closing","}"));E.output=z.escapeLast(E.output,"{"),ie("braces")}if(u.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&w({type:"maybe_slash",value:"",output:`${p}?`}),E.backtrack===!0){E.output="";for(const _ of E.tokens)E.output+=_.output!=null?_.output:_.value,_.suffix&&(E.output+=_.suffix)}return E};Mt.fastpaths=(t,e)=>{const u={...e},n=typeof u.maxLength=="number"?Math.min(Ye,u.maxLength):Ye,r=t.length;if(r>n)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${n}`);t=An[t]||t;const s=z.isWindows(e),{DOT_LITERAL:i,SLASH_LITERAL:D,ONE_CHAR:o,DOTS_SLASH:a,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:l,STAR:p,START_ANCHOR:C}=ze.globChars(s),F=u.dot?f:c,y=u.dot?l:c,b=u.capture?"":"?:",N={negated:!1,prefix:""};let $=u.bash===!0?".*?":p;u.capture&&($=`(${$})`);const X=m=>m.noglobstar===!0?$:`(${b}(?:(?!${C}${m.dot?a:i}).)*?)`,M=m=>{switch(m){case"*":return`${F}${o}${$}`;case".*":return`${i}${o}${$}`;case"*.*":return`${F}${$}${i}${o}${$}`;case"*/*":return`${F}${$}${D}${o}${y}${$}`;case"**":return F+X(u);case"**/*":return`(?:${F}${X(u)}${D})?${y}${o}${$}`;case"**/*.*":return`(?:${F}${X(u)}${D})?${y}${$}${i}${o}${$}`;case"**/.*":return`(?:${F}${X(u)}${D})?${i}${o}${$}`;default:{const v=/^(.*?)\.(\w+)$/.exec(m);if(!v)return;const k=M(v[1]);return k?k+i+v[2]:void 0}}},ne=z.removePrefix(t,N);let W=M(ne);return W&&u.strictSlashes!==!0&&(W+=`${D}?`),W};var hD=Mt;const dD=K.default,ED=oD,Wt=hD,Gt=Ue,pD=Ve,CD=t=>t&&typeof t=="object"&&!Array.isArray(t),H=(t,e,u=!1)=>{if(Array.isArray(t)){const c=t.map(l=>H(l,e,u));return l=>{for(const p of c){const C=p(l);if(C)return C}return!1}}const n=CD(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");const r=e||{},s=Gt.isWindows(e),i=n?H.compileRe(t,e):H.makeRe(t,e,!1,!0),D=i.state;delete i.state;let o=()=>!1;if(r.ignore){const c={...e,ignore:null,onMatch:null,onResult:null};o=H(r.ignore,c,u)}const a=(c,f=!1)=>{const{isMatch:l,match:p,output:C}=H.test(c,i,e,{glob:t,posix:s}),F={glob:t,state:D,regex:i,posix:s,input:c,output:C,match:p,isMatch:l};return typeof r.onResult=="function"&&r.onResult(F),l===!1?(F.isMatch=!1,f?F:!1):o(c)?(typeof r.onIgnore=="function"&&r.onIgnore(F),F.isMatch=!1,f?F:!1):(typeof r.onMatch=="function"&&r.onMatch(F),f?F:!0)};return u&&(a.state=D),a};H.test=(t,e,u,{glob:n,posix:r}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};const s=u||{},i=s.format||(r?Gt.toPosixSlashes:null);let D=t===n,o=D&&i?i(t):t;return D===!1&&(o=i?i(t):t,D=o===n),(D===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?D=H.matchBase(t,e,u,r):D=e.exec(o)),{isMatch:Boolean(D),match:D,output:o}},H.matchBase=(t,e,u,n=Gt.isWindows(u))=>(e instanceof RegExp?e:H.makeRe(e,u)).test(dD.basename(t)),H.isMatch=(t,e,u)=>H(e,u)(t),H.parse=(t,e)=>Array.isArray(t)?t.map(u=>H.parse(u,e)):Wt(t,{...e,fastpaths:!1}),H.scan=(t,e)=>ED(t,e),H.compileRe=(t,e,u=!1,n=!1)=>{if(u===!0)return t.output;const r=e||{},s=r.contains?"":"^",i=r.contains?"":"$";let D=`${s}(?:${t.output})${i}`;t&&t.negated===!0&&(D=`^(?!${D}).*$`);const o=H.toRegex(D,e);return n===!0&&(o.state=t),o},H.makeRe=(t,e={},u=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let r={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(r.output=Wt.fastpaths(t,e)),r.output||(r=Wt(t,e)),H.compileRe(r,e,u,n)},H.toRegex=(t,e)=>{try{const u=e||{};return new RegExp(t,u.flags||(u.nocase?"i":""))}catch(u){if(e&&e.debug===!0)throw u;return/$^/}},H.constants=pD;var FD=H;(function(t){t.exports=FD})(xt);const Re=De.default,{Readable:gD}=Ur.default,be=K.default,{promisify:qe}=Ae.default,jt=xt.exports,_D=qe(Re.readdir),mD=qe(Re.stat),yn=qe(Re.lstat),AD=qe(Re.realpath),yD="!",wn="READDIRP_RECURSIVE_ERROR",wD=new Set(["ENOENT","EPERM","EACCES","ELOOP",wn]),Ut="files",Rn="directories",Xe="files_directories",Qe="all",bn=[Ut,Rn,Xe,Qe],RD=t=>wD.has(t.code),[vn,bD]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),vD=process.platform==="win32"&&(vn>10||vn===10&&bD>=5),Bn=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){const e=jt(t.trim());return u=>e(u.basename)}if(Array.isArray(t)){const e=[],u=[];for(const n of t){const r=n.trim();r.charAt(0)===yD?u.push(jt(r.slice(1))):e.push(jt(r))}return u.length>0?e.length>0?n=>e.some(r=>r(n.basename))&&!u.some(r=>r(n.basename)):n=>!u.some(r=>r(n.basename)):n=>e.some(r=>r(n.basename))}}};class Dt extends gD{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:Ut,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});const u={...Dt.defaultOptions,...e},{root:n,type:r}=u;this._fileFilter=Bn(u.fileFilter),this._directoryFilter=Bn(u.directoryFilter);const s=u.lstat?yn:mD;vD?this._stat=i=>s(i,{bigint:!0}):this._stat=s,this._maxDepth=u.depth,this._wantsDir=[Rn,Xe,Qe].includes(r),this._wantsFile=[Ut,Xe,Qe].includes(r),this._wantsEverything=r===Qe,this._root=be.resolve(n),this._isDirent="Dirent"in Re&&!u.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(n,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){const{path:u,depth:n,files:r=[]}=this.parent||{};if(r.length>0){const s=r.splice(0,e).map(i=>this._formatEntry(i,u));for(const i of await Promise.all(s)){if(this.destroyed)return;const D=await this._getEntryType(i);D==="directory"&&this._directoryFilter(i)?(n<=this._maxDepth&&this.parents.push(this._exploreDir(i.fullPath,n+1)),this._wantsDir&&(this.push(i),e--)):(D==="file"||this._includeAsFile(i))&&this._fileFilter(i)&&this._wantsFile&&(this.push(i),e--)}}else{const s=this.parents.pop();if(!s){this.push(null);break}if(this.parent=await s,this.destroyed)return}}}catch(u){this.destroy(u)}finally{this.reading=!1}}}async _exploreDir(e,u){let n;try{n=await _D(e,this._rdOptions)}catch(r){this._onError(r)}return{files:n,depth:u,path:e}}async _formatEntry(e,u){let n;try{const r=this._isDirent?e.name:e,s=be.resolve(be.join(u,r));n={path:be.relative(this._root,s),fullPath:s,basename:r},n[this._statsProp]=this._isDirent?e:await this._stat(s)}catch(r){this._onError(r)}return n}_onError(e){RD(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){const u=e&&e[this._statsProp];if(!!u){if(u.isFile())return"file";if(u.isDirectory())return"directory";if(u&&u.isSymbolicLink()){const n=e.fullPath;try{const r=await AD(n),s=await yn(r);if(s.isFile())return"file";if(s.isDirectory()){const i=r.length;if(n.startsWith(r)&&n.substr(i,1)===be.sep){const D=new Error(`Circular symlink detected: "${n}" points to "${r}"`);return D.code=wn,this._onError(D)}return"directory"}}catch(r){this._onError(r)}}}}_includeAsFile(e){const u=e&&e[this._statsProp];return u&&this._wantsEverything&&!u.isDirectory()}}const Ce=(t,e={})=>{let u=e.entryType||e.type;if(u==="both"&&(u=Xe),u&&(e.type=u),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(u&&!bn.includes(u))throw new Error(`readdirp: Invalid type passed. Use one of ${bn.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new Dt(e)},BD=(t,e={})=>new Promise((u,n)=>{const r=[];Ce(t,e).on("data",s=>r.push(s)).on("end",()=>u(r)).on("error",s=>n(s))});Ce.promise=BD,Ce.ReaddirpStream=Dt,Ce.default=Ce;var $D=Ce,Kt={exports:{}};/*!
|
|
22
22
|
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
23
23
|
*
|
|
24
24
|
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
25
25
|
* Released under the MIT License.
|
|
26
|
-
*/var
|
|
26
|
+
*/var $n=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var u=t.length;if(u<=1)return t;var n="";if(u>4&&t[3]==="\\"){var r=t[2];(r==="?"||r===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),n="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),n+s.join("/")};Object.defineProperty(Kt.exports,"__esModule",{value:!0});const Sn=xt.exports,SD=$n,Tn="!",TD={returnIndex:!1},xD=t=>Array.isArray(t)?t:[t],OD=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){const u=Sn(t,e);return n=>t===n||u(n)}return t instanceof RegExp?u=>t.test(u):u=>!1},xn=(t,e,u,n)=>{const r=Array.isArray(u),s=r?u[0]:u;if(!r&&typeof s!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(s));const i=SD(s);for(let o=0;o<e.length;o++){const a=e[o];if(a(i))return n?-1:!1}const D=r&&[i].concat(u.slice(1));for(let o=0;o<t.length;o++){const a=t[o];if(r?a(...D):a(i))return n?o:!0}return n?-1:!1},Vt=(t,e,u=TD)=>{if(t==null)throw new TypeError("anymatch: specify first argument");const n=typeof u=="boolean"?{returnIndex:u}:u,r=n.returnIndex||!1,s=xD(t),i=s.filter(o=>typeof o=="string"&&o.charAt(0)===Tn).map(o=>o.slice(1)).map(o=>Sn(o,n)),D=s.filter(o=>typeof o!="string"||typeof o=="string"&&o.charAt(0)!==Tn).map(o=>OD(o,n));return e==null?(o,a=!1)=>xn(D,i,o,typeof a=="boolean"?a:!1):xn(D,i,e,r)};Vt.default=Vt,Kt.exports=Vt;/*!
|
|
27
27
|
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
28
28
|
*
|
|
29
29
|
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
30
30
|
* Licensed under the MIT License.
|
|
31
|
-
*/var
|
|
31
|
+
*/var ND=function(e){if(typeof e!="string"||e==="")return!1;for(var u;u=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(u[2])return!0;e=e.slice(u.index+u[0].length)}return!1};/*!
|
|
32
32
|
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
33
33
|
*
|
|
34
34
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
35
35
|
* Released under the MIT License.
|
|
36
|
-
*/var
|
|
36
|
+
*/var HD=ND,On={"{":"}","(":")","[":"]"},PD=function(t){if(t[0]==="!")return!0;for(var e=0,u=-2,n=-2,r=-2,s=-2,i=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(i===-1||i>n||(i=t.indexOf("\\",e),i===-1||i>n)))||r!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(r=t.indexOf("}",e),r>e&&(i=t.indexOf("\\",e),i===-1||i>r))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(i=t.indexOf("\\",e),i===-1||i>s))||u!==-1&&t[e]==="("&&t[e+1]!=="|"&&(u<e&&(u=t.indexOf("|",e)),u!==-1&&t[u+1]!==")"&&(s=t.indexOf(")",u),s>u&&(i=t.indexOf("\\",u),i===-1||i>s))))return!0;if(t[e]==="\\"){var D=t[e+1];e+=2;var o=On[D];if(o){var a=t.indexOf(o,e);a!==-1&&(e=a+1)}if(t[e]==="!")return!0}else e++}return!1},LD=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var u=t[e+1];e+=2;var n=On[u];if(n){var r=t.indexOf(n,e);r!==-1&&(e=r+1)}if(t[e]==="!")return!0}else e++}return!1},Nn=function(e,u){if(typeof e!="string"||e==="")return!1;if(HD(e))return!0;var n=PD;return u&&u.strict===!1&&(n=LD),n(e)},ID=Nn,kD=K.default.posix.dirname,MD=yu.default.platform()==="win32",zt="/",WD=/\\/g,GD=/[\{\[].*[\}\]]$/,jD=/(^|[^\\])([\{\[]|\([^\)]+$)/,UD=/\\([\!\*\?\|\[\]\(\)\{\}])/g,KD=function(e,u){var n=Object.assign({flipBackslashes:!0},u);n.flipBackslashes&&MD&&e.indexOf(zt)<0&&(e=e.replace(WD,zt)),GD.test(e)&&(e+=zt),e+="a";do e=kD(e);while(ID(e)||jD.test(e));return e.replace(UD,"$1")},Ze={};(function(t){t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,t.find=(e,u)=>e.nodes.find(n=>n.type===u),t.exceedsLimit=(e,u,n=1,r)=>r===!1||!t.isInteger(e)||!t.isInteger(u)?!1:(Number(u)-Number(e))/Number(n)>=r,t.escapeNode=(e,u=0,n)=>{let r=e.nodes[u];!r||(n&&r.type===n||r.type==="open"||r.type==="close")&&r.escaped!==!0&&(r.value="\\"+r.value,r.escaped=!0)},t.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1,t.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1,t.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0,t.reduce=e=>e.reduce((u,n)=>(n.type==="text"&&u.push(n.value),n.type==="range"&&(n.type="text"),u),[]),t.flatten=(...e)=>{const u=[],n=r=>{for(let s=0;s<r.length;s++){let i=r[s];Array.isArray(i)?n(i):i!==void 0&&u.push(i)}return u};return n(e),u}})(Ze);const Hn=Ze;var Yt=(t,e={})=>{let u=(n,r={})=>{let s=e.escapeInvalid&&Hn.isInvalidBrace(r),i=n.invalid===!0&&e.escapeInvalid===!0,D="";if(n.value)return(s||i)&&Hn.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let o of n.nodes)D+=u(o);return D};return u(t)};/*!
|
|
37
37
|
* is-number <https://github.com/jonschlinkert/is-number>
|
|
38
38
|
*
|
|
39
39
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
40
40
|
* Released under the MIT License.
|
|
41
|
-
*/var
|
|
41
|
+
*/var VD=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1};/*!
|
|
42
42
|
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
43
43
|
*
|
|
44
44
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
45
45
|
* Released under the MIT License.
|
|
46
|
-
*/const
|
|
46
|
+
*/const Pn=VD,ae=(t,e,u)=>{if(Pn(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Pn(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...u};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let r=String(n.relaxZeros),s=String(n.shorthand),i=String(n.capture),D=String(n.wrap),o=t+":"+e+"="+r+s+i+D;if(ae.cache.hasOwnProperty(o))return ae.cache[o].result;let a=Math.min(t,e),c=Math.max(t,e);if(Math.abs(a-c)===1){let F=t+"|"+e;return n.capture?`(${F})`:n.wrap===!1?F:`(?:${F})`}let f=Gn(t)||Gn(e),l={min:t,max:e,a,b:c},p=[],C=[];if(f&&(l.isPadded=f,l.maxLen=String(l.max).length),a<0){let F=c<0?Math.abs(c):1;C=Ln(F,Math.abs(a),l,n),a=l.a=0}return c>=0&&(p=Ln(a,c,l,n)),l.negatives=C,l.positives=p,l.result=zD(C,p),n.capture===!0?l.result=`(${l.result})`:n.wrap!==!1&&p.length+C.length>1&&(l.result=`(?:${l.result})`),ae.cache[o]=l,l.result};function zD(t,e,u){let n=qt(t,e,"-",!1)||[],r=qt(e,t,"",!1)||[],s=qt(t,e,"-?",!0)||[];return n.concat(s).concat(r).join("|")}function YD(t,e){let u=1,n=1,r=kn(t,u),s=new Set([e]);for(;t<=r&&r<=e;)s.add(r),u+=1,r=kn(t,u);for(r=Mn(e+1,n)-1;t<r&&r<=e;)s.add(r),n+=1,r=Mn(e+1,n)-1;return s=[...s],s.sort(QD),s}function qD(t,e,u){if(t===e)return{pattern:t,count:[],digits:0};let n=XD(t,e),r=n.length,s="",i=0;for(let D=0;D<r;D++){let[o,a]=n[D];o===a?s+=o:o!=="0"||a!=="9"?s+=ZD(o,a):i++}return i&&(s+=u.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[i],digits:r}}function Ln(t,e,u,n){let r=YD(t,e),s=[],i=t,D;for(let o=0;o<r.length;o++){let a=r[o],c=qD(String(i),String(a),n),f="";if(!u.isPadded&&D&&D.pattern===c.pattern){D.count.length>1&&D.count.pop(),D.count.push(c.count[0]),D.string=D.pattern+Wn(D.count),i=a+1;continue}u.isPadded&&(f=JD(a,u,n)),c.string=f+c.pattern+Wn(c.count),s.push(c),i=a+1,D=c}return s}function qt(t,e,u,n,r){let s=[];for(let i of t){let{string:D}=i;!n&&!In(e,"string",D)&&s.push(u+D),n&&In(e,"string",D)&&s.push(u+D)}return s}function XD(t,e){let u=[];for(let n=0;n<t.length;n++)u.push([t[n],e[n]]);return u}function QD(t,e){return t>e?1:e>t?-1:0}function In(t,e,u){return t.some(n=>n[e]===u)}function kn(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Mn(t,e){return t-t%Math.pow(10,e)}function Wn(t){let[e=0,u=""]=t;return u||e>1?`{${e+(u?","+u:"")}}`:""}function ZD(t,e,u){return`[${t}${e-t===1?"":"-"}${e}]`}function Gn(t){return/^-?(0+)\d/.test(t)}function JD(t,e,u){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),r=u.relaxZeros!==!1;switch(n){case 0:return"";case 1:return r?"0?":"0";case 2:return r?"0{0,2}":"00";default:return r?`0{0,${n}}`:`0{${n}}`}}ae.cache={},ae.clearCache=()=>ae.cache={};var eo=ae;/*!
|
|
47
47
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
48
48
|
*
|
|
49
49
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
50
50
|
* Licensed under the MIT License.
|
|
51
|
-
*/const
|
|
52
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const Po=Xt,{MAX_LENGTH:nn,CHAR_BACKSLASH:eu,CHAR_BACKTICK:No,CHAR_COMMA:Ho,CHAR_DOT:Io,CHAR_LEFT_PARENTHESES:Lo,CHAR_RIGHT_PARENTHESES:ko,CHAR_LEFT_CURLY_BRACE:Mo,CHAR_RIGHT_CURLY_BRACE:Wo,CHAR_LEFT_SQUARE_BRACKET:sn,CHAR_RIGHT_SQUARE_BRACKET:Dn,CHAR_DOUBLE_QUOTE:jo,CHAR_SINGLE_QUOTE:Go,CHAR_NO_BREAK_SPACE:Uo,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ko}=Oo,Vo=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},r=typeof u.maxLength=="number"?Math.min(nn,u.maxLength):nn;if(t.length>r)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${r})`);let n={type:"root",input:t,nodes:[]},s=[n],i=n,D=n,o=0,a=t.length,c=0,f=0,l;const p=()=>t[c++],C=F=>{if(F.type==="text"&&D.type==="dot"&&(D.type="text"),D&&D.type==="text"&&F.type==="text"){D.value+=F.value;return}return i.nodes.push(F),F.parent=i,F.prev=D,D=F,F};for(C({type:"bos"});c<a;)if(i=s[s.length-1],l=p(),!(l===Ko||l===Uo)){if(l===eu){C({type:"text",value:(e.keepEscaping?l:"")+p()});continue}if(l===Dn){C({type:"text",value:"\\"+l});continue}if(l===sn){o++;let F;for(;c<a&&(F=p());){if(l+=F,F===sn){o++;continue}if(F===eu){l+=p();continue}if(F===Dn&&(o--,o===0))break}C({type:"text",value:l});continue}if(l===Lo){i=C({type:"paren",nodes:[]}),s.push(i),C({type:"text",value:l});continue}if(l===ko){if(i.type!=="paren"){C({type:"text",value:l});continue}i=s.pop(),C({type:"text",value:l}),i=s[s.length-1];continue}if(l===jo||l===Go||l===No){let F=l,y;for(e.keepQuotes!==!0&&(l="");c<a&&(y=p());){if(y===eu){l+=y+p();continue}if(y===F){e.keepQuotes===!0&&(l+=y);break}l+=y}C({type:"text",value:l});continue}if(l===Mo){f++;let F=D.value&&D.value.slice(-1)==="$"||i.dollar===!0;i=C({type:"brace",open:!0,close:!1,dollar:F,depth:f,commas:0,ranges:0,nodes:[]}),s.push(i),C({type:"open",value:l});continue}if(l===Wo){if(i.type!=="brace"){C({type:"text",value:l});continue}let F="close";i=s.pop(),i.close=!0,C({type:F,value:l}),f--,i=s[s.length-1];continue}if(l===Ho&&f>0){if(i.ranges>0){i.ranges=0;let F=i.nodes.shift();i.nodes=[F,{type:"text",value:Po(i)}]}C({type:"comma",value:l}),i.commas++;continue}if(l===Io&&f>0&&i.commas===0){let F=i.nodes;if(f===0||F.length===0){C({type:"text",value:l});continue}if(D.type==="dot"){if(i.range=[],D.value+=l,D.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,D.type="text";continue}i.ranges++,i.args=[];continue}if(D.type==="range"){F.pop();let y=F[F.length-1];y.value+=D.value+l,D=y,i.ranges--;continue}C({type:"dot",value:l});continue}C({type:"text",value:l})}do if(i=s.pop(),i.type!=="root"){i.nodes.forEach(b=>{b.nodes||(b.type==="open"&&(b.isOpen=!0),b.type==="close"&&(b.isClose=!0),b.nodes||(b.type="text"),b.invalid=!0)});let F=s[s.length-1],y=F.nodes.indexOf(i);F.nodes.splice(y,1,...i.nodes)}while(s.length>0);return C({type:"eos"}),n};var zo=Vo;const on=Xt,Yo=$o,qo=xo,Xo=zo,q=(t,e={})=>{let u=[];if(Array.isArray(t))for(let r of t){let n=q.create(r,e);Array.isArray(n)?u.push(...n):u.push(n)}else u=[].concat(q.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u};q.parse=(t,e={})=>Xo(t,e),q.stringify=(t,e={})=>on(typeof t=="string"?q.parse(t,e):t,e),q.compile=(t,e={})=>(typeof t=="string"&&(t=q.parse(t,e)),Yo(t,e)),q.expand=(t,e={})=>{typeof t=="string"&&(t=q.parse(t,e));let u=qo(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},q.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?q.compile(t,e):q.expand(t,e);var Qo=q,an={exports:{}},Zo=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"];(function(t){t.exports=Zo})(an);const Jo=z.default,ea=an.exports,ta=new Set(ea);var ua=t=>ta.has(Jo.extname(t).slice(1).toLowerCase()),ut={};(function(t){const{sep:e}=z.default,{platform:u}=process,r=vu.default;t.EV_ALL="all",t.EV_READY="ready",t.EV_ADD="add",t.EV_CHANGE="change",t.EV_ADD_DIR="addDir",t.EV_UNLINK="unlink",t.EV_UNLINK_DIR="unlinkDir",t.EV_RAW="raw",t.EV_ERROR="error",t.STR_DATA="data",t.STR_END="end",t.STR_CLOSE="close",t.FSEVENT_CREATED="created",t.FSEVENT_MODIFIED="modified",t.FSEVENT_DELETED="deleted",t.FSEVENT_MOVED="moved",t.FSEVENT_CLONED="cloned",t.FSEVENT_UNKNOWN="unknown",t.FSEVENT_TYPE_FILE="file",t.FSEVENT_TYPE_DIRECTORY="directory",t.FSEVENT_TYPE_SYMLINK="symlink",t.KEY_LISTENERS="listeners",t.KEY_ERR="errHandlers",t.KEY_RAW="rawEmitters",t.HANDLER_KEYS=[t.KEY_LISTENERS,t.KEY_ERR,t.KEY_RAW],t.DOT_SLASH=`.${e}`,t.BACK_SLASH_RE=/\\/g,t.DOUBLE_SLASH_RE=/\/\//,t.SLASH_OR_BACK_SLASH_RE=/[/\\]/,t.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,t.REPLACER_RE=/^\.[/\\]/,t.SLASH="/",t.SLASH_SLASH="//",t.BRACE_START="{",t.BANG="!",t.ONE_DOT=".",t.TWO_DOTS="..",t.STAR="*",t.GLOBSTAR="**",t.ROOT_GLOBSTAR="/**/*",t.SLASH_GLOBSTAR="/**",t.DIR_SUFFIX="Dir",t.ANYMATCH_OPTS={dot:!0},t.STRING_TYPE="string",t.FUNCTION_TYPE="function",t.EMPTY_STR="",t.EMPTY_FN=()=>{},t.IDENTITY_FN=n=>n,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=r.type()==="OS400"})(ut);const re=ae.default,I=z.default,{promisify:Se}=we.default,ra=ua,{isWindows:na,isLinux:sa,EMPTY_FN:ia,EMPTY_STR:Da,KEY_LISTENERS:me,KEY_ERR:tu,KEY_RAW:Te,HANDLER_KEYS:oa,EV_CHANGE:rt,EV_ADD:nt,EV_ADD_DIR:aa,EV_ERROR:ln,STR_DATA:la,STR_END:ca,BRACE_START:fa,STAR:ha}=ut,da="watch",Ea=Se(re.open),cn=Se(re.stat),pa=Se(re.lstat),Ca=Se(re.close),uu=Se(re.realpath),Fa={lstat:pa,stat:cn},ru=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},xe=(t,e,u)=>{let r=t[e];r instanceof Set||(t[e]=r=new Set([r])),r.add(u)},ga=t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},Oe=(t,e,u)=>{const r=t[e];r instanceof Set?r.delete(u):r===u&&delete t[e]},fn=t=>t instanceof Set?t.size===0:!t,st=new Map;function hn(t,e,u,r,n){const s=(i,D)=>{u(t),n(i,D,{watchedPath:t}),D&&t!==D&&it(I.resolve(t,D),me,I.join(t,D))};try{return re.watch(t,e,s)}catch(i){r(i)}}const it=(t,e,u,r,n)=>{const s=st.get(t);!s||ru(s[e],i=>{i(u,r,n)})},_a=(t,e,u,r)=>{const{listener:n,errHandler:s,rawEmitter:i}=r;let D=st.get(e),o;if(!u.persistent)return o=hn(t,u,n,s,i),o.close.bind(o);if(D)xe(D,me,n),xe(D,tu,s),xe(D,Te,i);else{if(o=hn(t,u,it.bind(null,e,me),s,it.bind(null,e,Te)),!o)return;o.on(ln,async a=>{const c=it.bind(null,e,tu);if(D.watcherUnusable=!0,na&&a.code==="EPERM")try{const f=await Ea(t,"r");await Ca(f),c(a)}catch{}else c(a)}),D={listeners:n,errHandlers:s,rawEmitters:i,watcher:o},st.set(e,D)}return()=>{Oe(D,me,n),Oe(D,tu,s),Oe(D,Te,i),fn(D.listeners)&&(D.watcher.close(),st.delete(e),oa.forEach(ga(D)),D.watcher=void 0,Object.freeze(D))}},nu=new Map,ma=(t,e,u,r)=>{const{listener:n,rawEmitter:s}=r;let i=nu.get(e);const D=i&&i.options;return D&&(D.persistent<u.persistent||D.interval>u.interval)&&(re.unwatchFile(e),i=void 0),i?(xe(i,me,n),xe(i,Te,s)):(i={listeners:n,rawEmitters:s,options:u,watcher:re.watchFile(e,u,(o,a)=>{ru(i.rawEmitters,f=>{f(rt,e,{curr:o,prev:a})});const c=o.mtimeMs;(o.size!==a.size||c>a.mtimeMs||c===0)&&ru(i.listeners,f=>f(t,o))})},nu.set(e,i)),()=>{Oe(i,me,n),Oe(i,Te,s),fn(i.listeners)&&(nu.delete(e),re.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}};class Aa{constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const r=this.fsw.options,n=I.dirname(e),s=I.basename(e);this.fsw._getWatchedDir(n).add(s);const D=I.resolve(e),o={persistent:r.persistent};u||(u=ia);let a;return r.usePolling?(o.interval=r.enableBinaryInterval&&ra(s)?r.binaryInterval:r.interval,a=ma(e,D,o,{listener:u,rawEmitter:this.fsw._emitRaw})):a=_a(e,D,o,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),a}_handleFile(e,u,r){if(this.fsw.closed)return;const n=I.dirname(e),s=I.basename(e),i=this.fsw._getWatchedDir(n);let D=u;if(i.has(s))return;const o=async(c,f)=>{if(!!this.fsw._throttle(da,e,5)){if(!f||f.mtimeMs===0)try{const l=await cn(e);if(this.fsw.closed)return;const p=l.atimeMs,C=l.mtimeMs;(!p||p<=C||C!==D.mtimeMs)&&this.fsw._emit(rt,e,l),sa&&D.ino!==l.ino?(this.fsw._closeFile(c),D=l,this.fsw._addPathCloser(c,this._watchWithNodeFs(e,o))):D=l}catch{this.fsw._remove(n,s)}else if(i.has(s)){const l=f.atimeMs,p=f.mtimeMs;(!l||l<=p||p!==D.mtimeMs)&&this.fsw._emit(rt,e,f),D=f}}},a=this._watchWithNodeFs(e,o);if(!(r&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(nt,e,0))return;this.fsw._emit(nt,e,u)}return a}async _handleSymlink(e,u,r,n){if(this.fsw.closed)return;const s=e.fullPath,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let D;try{D=await uu(r)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(n)?this.fsw._symlinkPaths.get(s)!==D&&(this.fsw._symlinkPaths.set(s,D),this.fsw._emit(rt,r,e.stats)):(i.add(n),this.fsw._symlinkPaths.set(s,D),this.fsw._emit(nt,r,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(s))return!0;this.fsw._symlinkPaths.set(s,!0)}_handleRead(e,u,r,n,s,i,D){if(e=I.join(e,Da),!r.hasGlob&&(D=this.fsw._throttle("readdir",e,1e3),!D))return;const o=this.fsw._getWatchedDir(r.path),a=new Set;let c=this.fsw._readdirp(e,{fileFilter:f=>r.filterPath(f),directoryFilter:f=>r.filterDir(f),depth:0}).on(la,async f=>{if(this.fsw.closed){c=void 0;return}const l=f.path;let p=I.join(e,l);if(a.add(l),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,p,l))){if(this.fsw.closed){c=void 0;return}(l===n||!n&&!o.has(l))&&(this.fsw._incrReadyCount(),p=I.join(s,I.relative(s,p)),this._addToNodeFs(p,u,r,i+1))}}).on(ln,this._boundHandleError);return new Promise(f=>c.once(ca,()=>{if(this.fsw.closed){c=void 0;return}const l=D?D.clear():!1;f(),o.getChildren().filter(p=>p!==e&&!a.has(p)&&(!r.hasGlob||r.filterPath({fullPath:I.resolve(e,p)}))).forEach(p=>{this.fsw._remove(e,p)}),c=void 0,l&&this._handleRead(e,!1,r,n,s,i,D)}))}async _handleDir(e,u,r,n,s,i,D){const o=this.fsw._getWatchedDir(I.dirname(e)),a=o.has(I.basename(e));!(r&&this.fsw.options.ignoreInitial)&&!s&&!a&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(aa,e,u),o.add(I.basename(e)),this.fsw._getWatchedDir(e);let c,f;const l=this.fsw.options.depth;if((l==null||n<=l)&&!this.fsw._symlinkPaths.has(D)){if(!s&&(await this._handleRead(e,r,i,s,e,n,c),this.fsw.closed))return;f=this._watchWithNodeFs(e,(p,C)=>{C&&C.mtimeMs===0||this._handleRead(p,!1,i,s,e,n,c)})}return f}async _addToNodeFs(e,u,r,n,s){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const D=this.fsw._getWatchHelpers(e,n);!D.hasGlob&&r&&(D.hasGlob=r.hasGlob,D.globFilter=r.globFilter,D.filterPath=o=>r.filterPath(o),D.filterDir=o=>r.filterDir(o));try{const o=await Fa[D.statMethod](D.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(D.watchPath,o))return i(),!1;const a=this.fsw.options.followSymlinks&&!e.includes(ha)&&!e.includes(fa);let c;if(o.isDirectory()){const f=I.resolve(e),l=a?await uu(e):e;if(this.fsw.closed||(c=await this._handleDir(D.watchPath,o,u,n,s,D,l),this.fsw.closed))return;f!==l&&l!==void 0&&this.fsw._symlinkPaths.set(f,l)}else if(o.isSymbolicLink()){const f=a?await uu(e):e;if(this.fsw.closed)return;const l=I.dirname(D.watchPath);if(this.fsw._getWatchedDir(l).add(D.watchPath),this.fsw._emit(nt,D.watchPath,o),c=await this._handleDir(l,o,u,n,e,D,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(I.resolve(e),f)}else c=this._handleFile(D.watchPath,o,u);return i(),this.fsw._addPathCloser(e,c),!1}catch(o){if(this.fsw._handleError(o))return i(),e}}}var ya=Aa,su={exports:{}};const iu=ae.default,L=z.default,{promisify:Du}=we.default;let Ae;try{Ae=Me.require("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(Ae){const t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){const e=Number.parseInt(t[1],10),u=Number.parseInt(t[2],10);e===8&&u<16&&(Ae=void 0)}}const{EV_ADD:ou,EV_CHANGE:wa,EV_ADD_DIR:dn,EV_UNLINK:Dt,EV_ERROR:Ra,STR_DATA:ba,STR_END:va,FSEVENT_CREATED:Ba,FSEVENT_MODIFIED:$a,FSEVENT_DELETED:Sa,FSEVENT_MOVED:Ta,FSEVENT_UNKNOWN:xa,FSEVENT_TYPE_FILE:Oa,FSEVENT_TYPE_DIRECTORY:Pe,FSEVENT_TYPE_SYMLINK:En,ROOT_GLOBSTAR:pn,DIR_SUFFIX:Pa,DOT_SLASH:Cn,FUNCTION_TYPE:au,EMPTY_FN:Na,IDENTITY_FN:Ha}=ut,Ia=t=>isNaN(t)?{}:{depth:t},lu=Du(iu.stat),La=Du(iu.lstat),Fn=Du(iu.realpath),ka={stat:lu,lstat:La},he=new Map,Ma=10,Wa=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),ja=(t,e)=>({stop:Ae.watch(t,e)});function Ga(t,e,u,r){let n=L.extname(e)?L.dirname(e):e;const s=L.dirname(n);let i=he.get(n);Ua(s)&&(n=s);const D=L.resolve(t),o=D!==e,a=(f,l,p)=>{o&&(f=f.replace(e,D)),(f===D||!f.indexOf(D+L.sep))&&u(f,l,p)};let c=!1;for(const f of he.keys())if(e.indexOf(L.resolve(f)+L.sep)===0){n=f,i=he.get(n),c=!0;break}return i||c?i.listeners.add(a):(i={listeners:new Set([a]),rawEmitter:r,watcher:ja(n,(f,l)=>{if(!i.listeners.size)return;const p=Ae.getInfo(f,l);i.listeners.forEach(C=>{C(f,l,p)}),i.rawEmitter(p.event,f,p)})},he.set(n,i)),()=>{const f=i.listeners;if(f.delete(a),!f.size&&(he.delete(n),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}const Ua=t=>{let e=0;for(const u of he.keys())if(u.indexOf(t)===0&&(e++,e>=Ma))return!0;return!1},Ka=()=>Ae&&he.size<128,cu=(t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=L.dirname(t))!==e;)u++;return u},gn=(t,e)=>t.type===Pe&&e.isDirectory()||t.type===En&&e.isSymbolicLink()||t.type===Oa&&e.isFile();class Va{constructor(e){this.fsw=e}checkIgnored(e,u){const r=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,u))return r.add(e),u&&u.isDirectory()&&r.add(e+pn),!0;r.delete(e),r.delete(e+pn)}addOrChange(e,u,r,n,s,i,D,o){const a=s.has(i)?wa:ou;this.handleEvent(a,e,u,r,n,s,i,D,o)}async checkExists(e,u,r,n,s,i,D,o){try{const a=await lu(e);if(this.fsw.closed)return;gn(D,a)?this.addOrChange(e,u,r,n,s,i,D,o):this.handleEvent(Dt,e,u,r,n,s,i,D,o)}catch(a){a.code==="EACCES"?this.addOrChange(e,u,r,n,s,i,D,o):this.handleEvent(Dt,e,u,r,n,s,i,D,o)}}handleEvent(e,u,r,n,s,i,D,o,a){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===Dt){const c=o.type===Pe;(c||i.has(D))&&this.fsw._remove(s,D,c)}else{if(e===ou){if(o.type===Pe&&this.fsw._getWatchedDir(u),o.type===En&&a.followSymlinks){const f=a.depth===void 0?void 0:cu(r,n)+1;return this._addToFsEvents(u,!1,!0,f)}this.fsw._getWatchedDir(s).add(D)}const c=o.type===Pe?e+Pa:e;this.fsw._emit(c,u),c===dn&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,r,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;const s=this.fsw.options,D=Ga(e,u,async(o,a,c)=>{if(this.fsw.closed||s.depth!==void 0&&cu(o,u)>s.depth)return;const f=r(L.join(e,L.relative(e,o)));if(n&&!n(f))return;const l=L.dirname(f),p=L.basename(f),C=this.fsw._getWatchedDir(c.type===Pe?f:l);if(Wa.has(a)||c.event===xa)if(typeof s.ignored===au){let F;try{F=await lu(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,F))return;gn(c,F)?this.addOrChange(f,o,u,l,C,p,c,s):this.handleEvent(Dt,f,o,u,l,C,p,c,s)}else this.checkExists(f,o,u,l,C,p,c,s);else switch(c.event){case Ba:case $a:return this.addOrChange(f,o,u,l,C,p,c,s);case Sa:case Ta:return this.checkExists(f,o,u,l,C,p,c,s)}},this.fsw._emitRaw);return this.fsw._emitReady(),D}async _handleFsEventsSymlink(e,u,r,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const s=await Fn(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(s))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(s||e,i=>{let D=e;return s&&s!==Cn?D=i.replace(s,e):i!==Cn&&(D=L.join(e,i)),r(D)},!1,n)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(e,u,r,n,s){const i=r(e),D=u.isDirectory(),o=this.fsw._getWatchedDir(L.dirname(i)),a=L.basename(i);D&&this.fsw._getWatchedDir(i),!o.has(a)&&(o.add(a),(!n.ignoreInitial||s===!0)&&this.fsw._emit(D?dn:ou,i,u))}initWatch(e,u,r,n){if(this.fsw.closed)return;const s=this._watchWithFsEvents(r.watchPath,L.resolve(e||r.watchPath),n,r.globFilter);this.fsw._addPathCloser(u,s)}async _addToFsEvents(e,u,r,n){if(this.fsw.closed)return;const s=this.fsw.options,i=typeof u===au?u:Ha,D=this.fsw._getWatchHelpers(e);try{const o=await ka[D.statMethod](D.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(D.watchPath,o))throw null;if(o.isDirectory()){if(D.globFilter||this.emitAdd(i(e),o,i,s,r),n&&n>s.depth)return;this.fsw._readdirp(D.watchPath,M({fileFilter:a=>D.filterPath(a),directoryFilter:a=>D.filterDir(a)},Ia(s.depth-(n||0)))).on(ba,a=>{if(this.fsw.closed||a.stats.isDirectory()&&!D.filterPath(a))return;const c=L.join(D.watchPath,a.path),{fullPath:f}=a;if(D.followSymlinks&&a.stats.isSymbolicLink()){const l=s.depth===void 0?void 0:cu(c,L.resolve(D.watchPath))+1;this._handleFsEventsSymlink(c,f,i,l)}else this.emitAdd(c,a.stats,i,s,r)}).on(Ra,Na).on(va,()=>{this.fsw._emitReady()})}else this.emitAdd(D.watchPath,o,i,s,r),this.fsw._emitReady()}catch(o){(!o||this.fsw._handleError(o))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&r!==!0)if(typeof u===au)this.initWatch(void 0,e,D,i);else{let o;try{o=await Fn(D.watchPath)}catch{}this.initWatch(o,e,D,i)}}}su.exports=Va,su.exports.canUse=Ka;const{EventEmitter:za}=us.default,fu=ae.default,B=z.default,{promisify:_n}=we.default,Ya=VD,hu=zt.exports.default,qa=oo,du=kr,Xa=Qo,Qa=Pr,Za=ya,mn=su.exports,{EV_ALL:Eu,EV_READY:Ja,EV_ADD:ot,EV_CHANGE:Ne,EV_UNLINK:An,EV_ADD_DIR:el,EV_UNLINK_DIR:tl,EV_RAW:ul,EV_ERROR:pu,STR_CLOSE:rl,STR_END:nl,BACK_SLASH_RE:sl,DOUBLE_SLASH_RE:yn,SLASH_OR_BACK_SLASH_RE:il,DOT_RE:Dl,REPLACER_RE:ol,SLASH:Cu,SLASH_SLASH:al,BRACE_START:ll,BANG:Fu,ONE_DOT:wn,TWO_DOTS:cl,GLOBSTAR:fl,SLASH_GLOBSTAR:gu,ANYMATCH_OPTS:_u,STRING_TYPE:mu,FUNCTION_TYPE:hl,EMPTY_STR:Au,EMPTY_FN:dl,isWindows:El,isMacos:pl,isIBMi:Cl}=ut,Fl=_n(fu.stat),gl=_n(fu.readdir),yu=(t=[])=>Array.isArray(t)?t:[t],Rn=(t,e=[])=>(t.forEach(u=>{Array.isArray(u)?Rn(u,e):e.push(u)}),e),bn=t=>{const e=Rn(yu(t));if(!e.every(u=>typeof u===mu))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(Bn)},vn=t=>{let e=t.replace(sl,Cu),u=!1;for(e.startsWith(al)&&(u=!0);e.match(yn);)e=e.replace(yn,Cu);return u&&(e=Cu+e),e},Bn=t=>vn(B.normalize(vn(t))),$n=(t=Au)=>e=>typeof e!==mu?e:Bn(B.isAbsolute(e)?e:B.join(t,e)),_l=(t,e)=>B.isAbsolute(t)?t:t.startsWith(Fu)?Fu+B.join(e,t.slice(1)):B.join(e,t),X=(t,e)=>t[e]===void 0;class ml{constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;!u||e!==wn&&e!==cl&&u.add(e)}async remove(e){const{items:u}=this;if(!u||(u.delete(e),u.size>0))return;const r=this.path;try{await gl(r)}catch{this._removeWatcher&&this._removeWatcher(B.dirname(r),B.basename(r))}}has(e){const{items:u}=this;if(!!u)return u.has(e)}getChildren(){const{items:e}=this;if(!!e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}const Al="stat",yl="lstat";class wl{constructor(e,u,r,n){this.fsw=n,this.path=e=e.replace(ol,Au),this.watchPath=u,this.fullWatchPath=B.resolve(u),this.hasGlob=u!==e,e===Au&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&r?void 0:!1,this.globFilter=this.hasGlob?hu(e,void 0,_u):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=r,this.statMethod=r?Al:yl}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return B.join(this.watchPath,B.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:u}=e;if(u&&u.isSymbolicLink())return this.filterDir(e);const r=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===hl?this.globFilter(r):!0)&&this.fsw._isntIgnored(r,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(ll)?Xa.expand(e):[e]).forEach(n=>{u.push(B.relative(this.watchPath,n).split(il))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let r=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((s,i)=>(s===fl&&(r=!0),r||!u[0][i]||hu(s,u[0][i],_u))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class Rl extends za{constructor(e){super();const u={};e&&Object.assign(u,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,X(u,"persistent")&&(u.persistent=!0),X(u,"ignoreInitial")&&(u.ignoreInitial=!1),X(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),X(u,"interval")&&(u.interval=100),X(u,"binaryInterval")&&(u.binaryInterval=300),X(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,X(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),mn.canUse()||(u.useFsEvents=!1),X(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=pl),Cl&&(u.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){const o=n.toLowerCase();o==="false"||o==="0"?u.usePolling=!1:o==="true"||o==="1"?u.usePolling=!0:u.usePolling=!!o}const s=process.env.CHOKIDAR_INTERVAL;s&&(u.interval=Number.parseInt(s,10)),X(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),X(u,"followSymlinks")&&(u.followSymlinks=!0),X(u,"awaitWriteFinish")&&(u.awaitWriteFinish=!1),u.awaitWriteFinish===!0&&(u.awaitWriteFinish={});const i=u.awaitWriteFinish;i&&(i.stabilityThreshold||(i.stabilityThreshold=2e3),i.pollInterval||(i.pollInterval=100),this._pendingWrites=new Map),u.ignored&&(u.ignored=yu(u.ignored));let D=0;this._emitReady=()=>{D++,D>=this._readyCount&&(this._emitReady=dl,this._readyEmitted=!0,process.nextTick(()=>this.emit(Ja)))},this._emitRaw=(...o)=>this.emit(ul,...o),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new mn(this):this._nodeFsHandler=new Za(this),Object.freeze(u)}add(e,u,r){const{cwd:n,disableGlobbing:s}=this.options;this.closed=!1;let i=bn(e);return n&&(i=i.map(D=>{const o=_l(D,n);return s||!du(D)?o:Qa(o)})),i=i.filter(D=>D.startsWith(Fu)?(this._ignoredPaths.add(D.slice(1)),!1):(this._ignoredPaths.delete(D),this._ignoredPaths.delete(D+gu),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount*=2),i.forEach(D=>this._fsEventsHandler._addToFsEvents(D))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async D=>{const o=await this._nodeFsHandler._addToNodeFs(D,!r,0,0,u);return o&&this._emitReady(),o})).then(D=>{this.closed||D.filter(o=>o).forEach(o=>{this.add(B.dirname(o),B.basename(u||o))})})),this}unwatch(e){if(this.closed)return this;const u=bn(e),{cwd:r}=this.options;return u.forEach(n=>{!B.isAbsolute(n)&&!this._closers.has(n)&&(r&&(n=B.join(r,n)),n=B.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+gu),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const e=[];return this._closers.forEach(u=>u.forEach(r=>{const n=r();n instanceof Promise&&e.push(n)})),this._streams.forEach(u=>u.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(u=>u.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(u=>{this[`_${u}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach((u,r)=>{const n=this.options.cwd?B.relative(this.options.cwd,r):r;e[n||wn]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==pu&&this.emit(Eu,...u)}async _emit(e,u,r,n,s){if(this.closed)return;const i=this.options;El&&(u=B.normalize(u)),i.cwd&&(u=B.relative(i.cwd,u));const D=[e,u];s!==void 0?D.push(r,n,s):n!==void 0?D.push(r,n):r!==void 0&&D.push(r);const o=i.awaitWriteFinish;let a;if(o&&(a=this._pendingWrites.get(u)))return a.lastChange=new Date,this;if(i.atomic){if(e===An)return this._pendingUnlinks.set(u,D),setTimeout(()=>{this._pendingUnlinks.forEach((c,f)=>{this.emit(...c),this.emit(Eu,...c),this._pendingUnlinks.delete(f)})},typeof i.atomic=="number"?i.atomic:100),this;e===ot&&this._pendingUnlinks.has(u)&&(e=D[0]=Ne,this._pendingUnlinks.delete(u))}if(o&&(e===ot||e===Ne)&&this._readyEmitted){const c=(f,l)=>{f?(e=D[0]=pu,D[1]=f,this.emitWithAll(e,D)):l&&(D.length>2?D[2]=l:D.push(l),this.emitWithAll(e,D))};return this._awaitWriteFinish(u,o.stabilityThreshold,e,c),this}if(e===Ne&&!this._throttle(Ne,u,50))return this;if(i.alwaysStat&&r===void 0&&(e===ot||e===el||e===Ne)){const c=i.cwd?B.join(i.cwd,u):u;let f;try{f=await Fl(c)}catch{}if(!f||this.closed)return;D.push(f)}return this.emitWithAll(e,D),this}_handleError(e){const u=e&&e.code;return e&&u!=="ENOENT"&&u!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||u!=="EPERM"&&u!=="EACCES")&&this.emit(pu,e),e||this.closed}_throttle(e,u,r){this._throttled.has(e)||this._throttled.set(e,new Map);const n=this._throttled.get(e),s=n.get(u);if(s)return s.count++,!1;let i;const D=()=>{const a=n.get(u),c=a?a.count:0;return n.delete(u),clearTimeout(i),a&&clearTimeout(a.timeoutObject),c};i=setTimeout(D,r);const o={timeoutObject:i,clear:D,count:0};return n.set(u,o),o}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,r,n){let s,i=e;this.options.cwd&&!B.isAbsolute(e)&&(i=B.join(this.options.cwd,e));const D=new Date,o=a=>{fu.stat(i,(c,f)=>{if(c||!this._pendingWrites.has(e)){c&&c.code!=="ENOENT"&&n(c);return}const l=Number(new Date);a&&f.size!==a.size&&(this._pendingWrites.get(e).lastChange=l);const p=this._pendingWrites.get(e);l-p.lastChange>=u?(this._pendingWrites.delete(e),n(void 0,f)):s=setTimeout(o,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:D,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(s),r)}),s=setTimeout(o,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Dl.test(e))return!0;if(!this._userIgnored){const{cwd:r}=this.options,n=this.options.ignored,s=n&&n.map($n(r)),i=yu(s).filter(o=>typeof o===mu&&!du(o)).map(o=>o+gu),D=this._getGlobIgnored().map($n(r)).concat(s,i);this._userIgnored=hu(D,void 0,_u)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const r=u||this.options.disableGlobbing||!du(e)?e:qa(e),n=this.options.followSymlinks;return new wl(e,r,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const u=B.resolve(e);return this._watched.has(u)||this._watched.set(u,new ml(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const r=(e&&Number.parseInt(e.mode,10))&511,n=Number.parseInt(r.toString(8)[0],10);return Boolean(4&n)}_remove(e,u,r){const n=B.join(e,u),s=B.resolve(n);if(r=r!=null?r:this._watched.has(n)||this._watched.has(s),!this._throttle("remove",n,100))return;!r&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(n).getChildren().forEach(l=>this._remove(n,l));const o=this._getWatchedDir(e),a=o.has(u);o.remove(u),this._symlinkPaths.has(s)&&this._symlinkPaths.delete(s);let c=n;if(this.options.cwd&&(c=B.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===ot)return;this._watched.delete(n),this._watched.delete(s);const f=r?tl:An;a&&!this._isIgnored(n)&&this._emit(f,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);const u=B.dirname(e);this._getWatchedDir(u).remove(B.basename(e))}_closeFile(e){const u=this._closers.get(e);!u||(u.forEach(r=>r()),this._closers.delete(e))}_addPathCloser(e,u){if(!u)return;let r=this._closers.get(e);r||(r=[],this._closers.set(e,r)),r.push(u)}_readdirp(e,u){if(this.closed)return;const r=M({type:Eu,alwaysStat:!0,lstat:!0},u);let n=Ya(e,r);return this._streams.add(n),n.once(rl,()=>{n=void 0}),n.once(nl,()=>{n&&(this._streams.delete(n),n=void 0)}),n}}const bl=(t,e)=>{const u=new Rl(e);return u.add(t),u};var vl=bl;let de=!0;const ye=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let Sn=0;if(ye.process&&ye.process.env&&ye.process.stdout){const{FORCE_COLOR:t,NODE_DISABLE_COLORS:e,TERM:u}=ye.process.env;e||t==="0"?de=!1:t==="1"?de=!0:u==="dumb"?de=!1:"CI"in ye.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(r=>r in ye.process.env)?de=!0:de=process.stdout.isTTY,de&&(Sn=u&&u.endsWith("-256color")?2:1)}let Tn={enabled:de,supportLevel:Sn};function xn(t,e,u=1){const r=`\x1B[${t}m`,n=`\x1B[${e}m`,s=new RegExp(`\\x1b\\[${e}m`,"g");return i=>Tn.enabled&&Tn.supportLevel>=u?r+(""+i).replace(s,r)+n:""+i}const Bl=xn(90,39),$l=xn(96,39),Sl=()=>new Date().toLocaleTimeString(),Tl=(...t)=>console.log(Bl(Sl()),$l("[tsx]"),...t),xl="\x1Bc";function Ol(t,e){let u;return()=>{u&&clearTimeout(u),u=setTimeout(()=>t(),e)}}function Pl(t){return t&&"type"in t&&t.type==="dependency"}const On={noCache:{type:Boolean,description:"Disable caching",default:!1},tsconfig:{type:String,description:"Custom tsconfig.json path"},clearScreen:{type:Boolean,description:"Clearing the screen on rerun",default:!0}},Nl=Ai({name:"watch",parameters:["<script path>"],flags:On,help:{description:"Run the script and watch for changes"}},t=>{const e=ht(On,process.argv.slice(3),{ignoreUnknown:!0})._,u={noCache:t.flags.noCache,tsconfigPath:t.flags.tsconfig,clearScreen:t.flags.clearScreen,ipc:!0};let r;const n=Ol(()=>{r&&!r.killed&&r.exitCode===null&&r.kill(),r&&Tl("rerunning"),u.clearScreen&&process.stdout.write(xl),r=pr(e,u),r.on("message",D=>{if(Pl(D)){const o=D.path.startsWith("file:")?bu.fileURLToPath(D.path):D.path;o.startsWith("/")&&i.add(o)}})},100);n();function s(D){r&&r.kill(),process.exit(D)}process.once("SIGINT",()=>s(130)),process.once("SIGTERM",()=>s(143));const i=vl(t._,{ignoreInitial:!0,ignored:["**/.*/**","**/{node_modules,bower_components,vendor}/**","**/dist/**"],ignorePermissionErrors:!0}).on("all",n);process.stdin.on("data",n)});var Hl=Object.defineProperty,Il=Object.defineProperties,Ll=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,kl=Object.prototype.hasOwnProperty,Ml=Object.prototype.propertyIsEnumerable,Nn=(t,e,u)=>e in t?Hl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,Wl=(t,e)=>{for(var u in e||(e={}))kl.call(e,u)&&Nn(t,u,e[u]);if(Pn)for(var u of Pn(e))Ml.call(e,u)&&Nn(t,u,e[u]);return t},jl=(t,e)=>Il(t,Ll(e));const Hn={noCache:{type:Boolean,description:"Disable caching"},tsconfig:{type:String,description:"Custom tsconfig.json path"}},In=jl(Wl({},Hn),{version:{type:Boolean,description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}});mi({name:"tsx",parameters:["[script path]"],commands:[Nl],flags:In,help:!1},t=>{const e=t._.length===0;if(e){if(t.flags.version){console.log(Vn.version);return}if(t.flags.help){t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"});return}process.argv.push(Me.require.resolve("./repl"))}const u=ht(e?In:Hn,process.argv.slice(2),{ignoreUnknown:!0})._;pr(u,{noCache:Boolean(t.flags.noCache),tsconfigPath:t.flags.tsconfig}).on("close",r=>process.exit(r))});
|
|
51
|
+
*/const to=Ae.default,jn=eo,Un=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),uo=t=>e=>t===!0?Number(e):String(e),Xt=t=>typeof t=="number"||typeof t=="string"&&t!=="",ve=t=>Number.isInteger(+t),Qt=t=>{let e=`${t}`,u=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++u]==="0";);return u>0},no=(t,e,u)=>typeof t=="string"||typeof e=="string"?!0:u.stringify===!0,ro=(t,e,u)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return u===!1?String(t):t},Kn=(t,e)=>{let u=t[0]==="-"?"-":"";for(u&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return u?"-"+t:t},so=(t,e)=>{t.negatives.sort((i,D)=>i<D?-1:i>D?1:0),t.positives.sort((i,D)=>i<D?-1:i>D?1:0);let u=e.capture?"":"?:",n="",r="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(r=`-(${u}${t.negatives.join("|")})`),n&&r?s=`${n}|${r}`:s=n||r,e.wrap?`(${u}${s})`:s},Vn=(t,e,u,n)=>{if(u)return jn(t,e,{wrap:!1,...n});let r=String.fromCharCode(t);if(t===e)return r;let s=String.fromCharCode(e);return`[${r}-${s}]`},zn=(t,e,u)=>{if(Array.isArray(t)){let n=u.wrap===!0,r=u.capture?"":"?:";return n?`(${r}${t.join("|")})`:t.join("|")}return jn(t,e,u)},Yn=(...t)=>new RangeError("Invalid range arguments: "+to.inspect(...t)),qn=(t,e,u)=>{if(u.strictRanges===!0)throw Yn([t,e]);return[]},io=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},Do=(t,e,u=1,n={})=>{let r=Number(t),s=Number(e);if(!Number.isInteger(r)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Yn([t,e]);return[]}r===0&&(r=0),s===0&&(s=0);let i=r>s,D=String(t),o=String(e),a=String(u);u=Math.max(Math.abs(u),1);let c=Qt(D)||Qt(o)||Qt(a),f=c?Math.max(D.length,o.length,a.length):0,l=c===!1&&no(t,e,n)===!1,p=n.transform||uo(l);if(n.toRegex&&u===1)return Vn(Kn(t,f),Kn(e,f),!0,n);let C={negatives:[],positives:[]},F=N=>C[N<0?"negatives":"positives"].push(Math.abs(N)),y=[],b=0;for(;i?r>=s:r<=s;)n.toRegex===!0&&u>1?F(r):y.push(ro(p(r,b),f,l)),r=i?r-u:r+u,b++;return n.toRegex===!0?u>1?so(C,n):zn(y,null,{wrap:!1,...n}):y},oo=(t,e,u=1,n={})=>{if(!ve(t)&&t.length>1||!ve(e)&&e.length>1)return qn(t,e,n);let r=n.transform||(l=>String.fromCharCode(l)),s=`${t}`.charCodeAt(0),i=`${e}`.charCodeAt(0),D=s>i,o=Math.min(s,i),a=Math.max(s,i);if(n.toRegex&&u===1)return Vn(o,a,!1,n);let c=[],f=0;for(;D?s>=i:s<=i;)c.push(r(s,f)),s=D?s-u:s+u,f++;return n.toRegex===!0?zn(c,null,{wrap:!1,options:n}):c},Je=(t,e,u,n={})=>{if(e==null&&Xt(t))return[t];if(!Xt(t)||!Xt(e))return qn(t,e,n);if(typeof u=="function")return Je(t,e,1,{transform:u});if(Un(u))return Je(t,e,0,u);let r={...n};return r.capture===!0&&(r.wrap=!0),u=u||r.step||1,ve(u)?ve(t)&&ve(e)?Do(t,e,u,r):oo(t,e,Math.max(Math.abs(u),1),r):u!=null&&!Un(u)?io(u,r):Je(t,e,1,u)};var Xn=Je;const ao=Xn,Qn=Ze,lo=(t,e={})=>{let u=(n,r={})=>{let s=Qn.isInvalidBrace(r),i=n.invalid===!0&&e.escapeInvalid===!0,D=s===!0||i===!0,o=e.escapeInvalid===!0?"\\":"",a="";if(n.isOpen===!0||n.isClose===!0)return o+n.value;if(n.type==="open")return D?o+n.value:"(";if(n.type==="close")return D?o+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":D?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let c=Qn.reduce(n.nodes),f=ao(...c,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return c.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let c of n.nodes)a+=u(c,n);return a};return u(t)};var co=lo;const fo=Xn,Zn=Yt,Fe=Ze,le=(t="",e="",u=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return u?Fe.flatten(e).map(r=>`{${r}}`):e;for(let r of t)if(Array.isArray(r))for(let s of r)n.push(le(s,e,u));else for(let s of e)u===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?le(r,s,u):r+s);return Fe.flatten(n)},ho=(t,e={})=>{let u=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(r,s={})=>{r.queue=[];let i=s,D=s.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,D=i.queue;if(r.invalid||r.dollar){D.push(le(D.pop(),Zn(r,e)));return}if(r.type==="brace"&&r.invalid!==!0&&r.nodes.length===2){D.push(le(D.pop(),["{}"]));return}if(r.nodes&&r.ranges>0){let f=Fe.reduce(r.nodes);if(Fe.exceedsLimit(...f,e.step,u))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=fo(...f,e);l.length===0&&(l=Zn(r,e)),D.push(le(D.pop(),l)),r.nodes=[];return}let o=Fe.encloseBrace(r),a=r.queue,c=r;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,a=c.queue;for(let f=0;f<r.nodes.length;f++){let l=r.nodes[f];if(l.type==="comma"&&r.type==="brace"){f===1&&a.push(""),a.push("");continue}if(l.type==="close"){D.push(le(D.pop(),a,o));continue}if(l.value&&l.type!=="open"){a.push(le(a.pop(),l.value));continue}l.nodes&&n(l,r)}return a};return Fe.flatten(n(t))};var Eo=ho,po={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
52
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const Co=Yt,{MAX_LENGTH:Jn,CHAR_BACKSLASH:Zt,CHAR_BACKTICK:Fo,CHAR_COMMA:go,CHAR_DOT:_o,CHAR_LEFT_PARENTHESES:mo,CHAR_RIGHT_PARENTHESES:Ao,CHAR_LEFT_CURLY_BRACE:yo,CHAR_RIGHT_CURLY_BRACE:wo,CHAR_LEFT_SQUARE_BRACKET:er,CHAR_RIGHT_SQUARE_BRACKET:tr,CHAR_DOUBLE_QUOTE:Ro,CHAR_SINGLE_QUOTE:bo,CHAR_NO_BREAK_SPACE:vo,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Bo}=po,$o=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},n=typeof u.maxLength=="number"?Math.min(Jn,u.maxLength):Jn;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let r={type:"root",input:t,nodes:[]},s=[r],i=r,D=r,o=0,a=t.length,c=0,f=0,l;const p=()=>t[c++],C=F=>{if(F.type==="text"&&D.type==="dot"&&(D.type="text"),D&&D.type==="text"&&F.type==="text"){D.value+=F.value;return}return i.nodes.push(F),F.parent=i,F.prev=D,D=F,F};for(C({type:"bos"});c<a;)if(i=s[s.length-1],l=p(),!(l===Bo||l===vo)){if(l===Zt){C({type:"text",value:(e.keepEscaping?l:"")+p()});continue}if(l===tr){C({type:"text",value:"\\"+l});continue}if(l===er){o++;let F;for(;c<a&&(F=p());){if(l+=F,F===er){o++;continue}if(F===Zt){l+=p();continue}if(F===tr&&(o--,o===0))break}C({type:"text",value:l});continue}if(l===mo){i=C({type:"paren",nodes:[]}),s.push(i),C({type:"text",value:l});continue}if(l===Ao){if(i.type!=="paren"){C({type:"text",value:l});continue}i=s.pop(),C({type:"text",value:l}),i=s[s.length-1];continue}if(l===Ro||l===bo||l===Fo){let F=l,y;for(e.keepQuotes!==!0&&(l="");c<a&&(y=p());){if(y===Zt){l+=y+p();continue}if(y===F){e.keepQuotes===!0&&(l+=y);break}l+=y}C({type:"text",value:l});continue}if(l===yo){f++;let F=D.value&&D.value.slice(-1)==="$"||i.dollar===!0;i=C({type:"brace",open:!0,close:!1,dollar:F,depth:f,commas:0,ranges:0,nodes:[]}),s.push(i),C({type:"open",value:l});continue}if(l===wo){if(i.type!=="brace"){C({type:"text",value:l});continue}let F="close";i=s.pop(),i.close=!0,C({type:F,value:l}),f--,i=s[s.length-1];continue}if(l===go&&f>0){if(i.ranges>0){i.ranges=0;let F=i.nodes.shift();i.nodes=[F,{type:"text",value:Co(i)}]}C({type:"comma",value:l}),i.commas++;continue}if(l===_o&&f>0&&i.commas===0){let F=i.nodes;if(f===0||F.length===0){C({type:"text",value:l});continue}if(D.type==="dot"){if(i.range=[],D.value+=l,D.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,D.type="text";continue}i.ranges++,i.args=[];continue}if(D.type==="range"){F.pop();let y=F[F.length-1];y.value+=D.value+l,D=y,i.ranges--;continue}C({type:"dot",value:l});continue}C({type:"text",value:l})}do if(i=s.pop(),i.type!=="root"){i.nodes.forEach(b=>{b.nodes||(b.type==="open"&&(b.isOpen=!0),b.type==="close"&&(b.isClose=!0),b.nodes||(b.type="text"),b.invalid=!0)});let F=s[s.length-1],y=F.nodes.indexOf(i);F.nodes.splice(y,1,...i.nodes)}while(s.length>0);return C({type:"eos"}),r};var So=$o;const ur=Yt,To=co,xo=Eo,Oo=So,Y=(t,e={})=>{let u=[];if(Array.isArray(t))for(let n of t){let r=Y.create(n,e);Array.isArray(r)?u.push(...r):u.push(r)}else u=[].concat(Y.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u};Y.parse=(t,e={})=>Oo(t,e),Y.stringify=(t,e={})=>ur(typeof t=="string"?Y.parse(t,e):t,e),Y.compile=(t,e={})=>(typeof t=="string"&&(t=Y.parse(t,e)),To(t,e)),Y.expand=(t,e={})=>{typeof t=="string"&&(t=Y.parse(t,e));let u=xo(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},Y.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Y.compile(t,e):Y.expand(t,e);var No=Y,nr={exports:{}},Ho=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"];(function(t){t.exports=Ho})(nr);const Po=K.default,Lo=nr.exports,Io=new Set(Lo);var ko=t=>Io.has(Po.extname(t).slice(1).toLowerCase()),et={};(function(t){const{sep:e}=K.default,{platform:u}=process,n=yu.default;t.EV_ALL="all",t.EV_READY="ready",t.EV_ADD="add",t.EV_CHANGE="change",t.EV_ADD_DIR="addDir",t.EV_UNLINK="unlink",t.EV_UNLINK_DIR="unlinkDir",t.EV_RAW="raw",t.EV_ERROR="error",t.STR_DATA="data",t.STR_END="end",t.STR_CLOSE="close",t.FSEVENT_CREATED="created",t.FSEVENT_MODIFIED="modified",t.FSEVENT_DELETED="deleted",t.FSEVENT_MOVED="moved",t.FSEVENT_CLONED="cloned",t.FSEVENT_UNKNOWN="unknown",t.FSEVENT_TYPE_FILE="file",t.FSEVENT_TYPE_DIRECTORY="directory",t.FSEVENT_TYPE_SYMLINK="symlink",t.KEY_LISTENERS="listeners",t.KEY_ERR="errHandlers",t.KEY_RAW="rawEmitters",t.HANDLER_KEYS=[t.KEY_LISTENERS,t.KEY_ERR,t.KEY_RAW],t.DOT_SLASH=`.${e}`,t.BACK_SLASH_RE=/\\/g,t.DOUBLE_SLASH_RE=/\/\//,t.SLASH_OR_BACK_SLASH_RE=/[/\\]/,t.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,t.REPLACER_RE=/^\.[/\\]/,t.SLASH="/",t.SLASH_SLASH="//",t.BRACE_START="{",t.BANG="!",t.ONE_DOT=".",t.TWO_DOTS="..",t.STAR="*",t.GLOBSTAR="**",t.ROOT_GLOBSTAR="/**/*",t.SLASH_GLOBSTAR="/**",t.DIR_SUFFIX="Dir",t.ANYMATCH_OPTS={dot:!0},t.STRING_TYPE="string",t.FUNCTION_TYPE="function",t.EMPTY_STR="",t.EMPTY_FN=()=>{},t.IDENTITY_FN=r=>r,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=n.type()==="OS400"})(et);const ue=De.default,L=K.default,{promisify:Be}=Ae.default,Mo=ko,{isWindows:Wo,isLinux:Go,EMPTY_FN:jo,EMPTY_STR:Uo,KEY_LISTENERS:ge,KEY_ERR:Jt,KEY_RAW:$e,HANDLER_KEYS:Ko,EV_CHANGE:tt,EV_ADD:ut,EV_ADD_DIR:Vo,EV_ERROR:rr,STR_DATA:zo,STR_END:Yo,BRACE_START:qo,STAR:Xo}=et,Qo="watch",Zo=Be(ue.open),sr=Be(ue.stat),Jo=Be(ue.lstat),ea=Be(ue.close),eu=Be(ue.realpath),ta={lstat:Jo,stat:sr},tu=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},Se=(t,e,u)=>{let n=t[e];n instanceof Set||(t[e]=n=new Set([n])),n.add(u)},ua=t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},Te=(t,e,u)=>{const n=t[e];n instanceof Set?n.delete(u):n===u&&delete t[e]},ir=t=>t instanceof Set?t.size===0:!t,nt=new Map;function Dr(t,e,u,n,r){const s=(i,D)=>{u(t),r(i,D,{watchedPath:t}),D&&t!==D&&rt(L.resolve(t,D),ge,L.join(t,D))};try{return ue.watch(t,e,s)}catch(i){n(i)}}const rt=(t,e,u,n,r)=>{const s=nt.get(t);!s||tu(s[e],i=>{i(u,n,r)})},na=(t,e,u,n)=>{const{listener:r,errHandler:s,rawEmitter:i}=n;let D=nt.get(e),o;if(!u.persistent)return o=Dr(t,u,r,s,i),o.close.bind(o);if(D)Se(D,ge,r),Se(D,Jt,s),Se(D,$e,i);else{if(o=Dr(t,u,rt.bind(null,e,ge),s,rt.bind(null,e,$e)),!o)return;o.on(rr,async a=>{const c=rt.bind(null,e,Jt);if(D.watcherUnusable=!0,Wo&&a.code==="EPERM")try{const f=await Zo(t,"r");await ea(f),c(a)}catch{}else c(a)}),D={listeners:r,errHandlers:s,rawEmitters:i,watcher:o},nt.set(e,D)}return()=>{Te(D,ge,r),Te(D,Jt,s),Te(D,$e,i),ir(D.listeners)&&(D.watcher.close(),nt.delete(e),Ko.forEach(ua(D)),D.watcher=void 0,Object.freeze(D))}},uu=new Map,ra=(t,e,u,n)=>{const{listener:r,rawEmitter:s}=n;let i=uu.get(e);const D=i&&i.options;return D&&(D.persistent<u.persistent||D.interval>u.interval)&&(i.listeners,i.rawEmitters,ue.unwatchFile(e),i=void 0),i?(Se(i,ge,r),Se(i,$e,s)):(i={listeners:r,rawEmitters:s,options:u,watcher:ue.watchFile(e,u,(o,a)=>{tu(i.rawEmitters,f=>{f(tt,e,{curr:o,prev:a})});const c=o.mtimeMs;(o.size!==a.size||c>a.mtimeMs||c===0)&&tu(i.listeners,f=>f(t,o))})},uu.set(e,i)),()=>{Te(i,ge,r),Te(i,$e,s),ir(i.listeners)&&(uu.delete(e),ue.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}};class sa{constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const n=this.fsw.options,r=L.dirname(e),s=L.basename(e);this.fsw._getWatchedDir(r).add(s);const D=L.resolve(e),o={persistent:n.persistent};u||(u=jo);let a;return n.usePolling?(o.interval=n.enableBinaryInterval&&Mo(s)?n.binaryInterval:n.interval,a=ra(e,D,o,{listener:u,rawEmitter:this.fsw._emitRaw})):a=na(e,D,o,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),a}_handleFile(e,u,n){if(this.fsw.closed)return;const r=L.dirname(e),s=L.basename(e),i=this.fsw._getWatchedDir(r);let D=u;if(i.has(s))return;const o=async(c,f)=>{if(!!this.fsw._throttle(Qo,e,5)){if(!f||f.mtimeMs===0)try{const l=await sr(e);if(this.fsw.closed)return;const p=l.atimeMs,C=l.mtimeMs;(!p||p<=C||C!==D.mtimeMs)&&this.fsw._emit(tt,e,l),Go&&D.ino!==l.ino?(this.fsw._closeFile(c),D=l,this.fsw._addPathCloser(c,this._watchWithNodeFs(e,o))):D=l}catch{this.fsw._remove(r,s)}else if(i.has(s)){const l=f.atimeMs,p=f.mtimeMs;(!l||l<=p||p!==D.mtimeMs)&&this.fsw._emit(tt,e,f),D=f}}},a=this._watchWithNodeFs(e,o);if(!(n&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(ut,e,0))return;this.fsw._emit(ut,e,u)}return a}async _handleSymlink(e,u,n,r){if(this.fsw.closed)return;const s=e.fullPath,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let D;try{D=await eu(n)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(r)?this.fsw._symlinkPaths.get(s)!==D&&(this.fsw._symlinkPaths.set(s,D),this.fsw._emit(tt,n,e.stats)):(i.add(r),this.fsw._symlinkPaths.set(s,D),this.fsw._emit(ut,n,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(s))return!0;this.fsw._symlinkPaths.set(s,!0)}_handleRead(e,u,n,r,s,i,D){if(e=L.join(e,Uo),!n.hasGlob&&(D=this.fsw._throttle("readdir",e,1e3),!D))return;const o=this.fsw._getWatchedDir(n.path),a=new Set;let c=this.fsw._readdirp(e,{fileFilter:f=>n.filterPath(f),directoryFilter:f=>n.filterDir(f),depth:0}).on(zo,async f=>{if(this.fsw.closed){c=void 0;return}const l=f.path;let p=L.join(e,l);if(a.add(l),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,p,l))){if(this.fsw.closed){c=void 0;return}(l===r||!r&&!o.has(l))&&(this.fsw._incrReadyCount(),p=L.join(s,L.relative(s,p)),this._addToNodeFs(p,u,n,i+1))}}).on(rr,this._boundHandleError);return new Promise(f=>c.once(Yo,()=>{if(this.fsw.closed){c=void 0;return}const l=D?D.clear():!1;f(),o.getChildren().filter(p=>p!==e&&!a.has(p)&&(!n.hasGlob||n.filterPath({fullPath:L.resolve(e,p)}))).forEach(p=>{this.fsw._remove(e,p)}),c=void 0,l&&this._handleRead(e,!1,n,r,s,i,D)}))}async _handleDir(e,u,n,r,s,i,D){const o=this.fsw._getWatchedDir(L.dirname(e)),a=o.has(L.basename(e));!(n&&this.fsw.options.ignoreInitial)&&!s&&!a&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(Vo,e,u),o.add(L.basename(e)),this.fsw._getWatchedDir(e);let c,f;const l=this.fsw.options.depth;if((l==null||r<=l)&&!this.fsw._symlinkPaths.has(D)){if(!s&&(await this._handleRead(e,n,i,s,e,r,c),this.fsw.closed))return;f=this._watchWithNodeFs(e,(p,C)=>{C&&C.mtimeMs===0||this._handleRead(p,!1,i,s,e,r,c)})}return f}async _addToNodeFs(e,u,n,r,s){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const D=this.fsw._getWatchHelpers(e,r);!D.hasGlob&&n&&(D.hasGlob=n.hasGlob,D.globFilter=n.globFilter,D.filterPath=o=>n.filterPath(o),D.filterDir=o=>n.filterDir(o));try{const o=await ta[D.statMethod](D.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(D.watchPath,o))return i(),!1;const a=this.fsw.options.followSymlinks&&!e.includes(Xo)&&!e.includes(qo);let c;if(o.isDirectory()){const f=L.resolve(e),l=a?await eu(e):e;if(this.fsw.closed||(c=await this._handleDir(D.watchPath,o,u,r,s,D,l),this.fsw.closed))return;f!==l&&l!==void 0&&this.fsw._symlinkPaths.set(f,l)}else if(o.isSymbolicLink()){const f=a?await eu(e):e;if(this.fsw.closed)return;const l=L.dirname(D.watchPath);if(this.fsw._getWatchedDir(l).add(D.watchPath),this.fsw._emit(ut,D.watchPath,o),c=await this._handleDir(l,o,u,r,e,D,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(L.resolve(e),f)}else c=this._handleFile(D.watchPath,o,u);return i(),this.fsw._addPathCloser(e,c),!1}catch(o){if(this.fsw._handleError(o))return i(),e}}}var ia=sa,nu={exports:{}};const ru=De.default,I=K.default,{promisify:su}=Ae.default;let _e;try{_e=Ie.require("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(_e){const t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){const e=Number.parseInt(t[1],10),u=Number.parseInt(t[2],10);e===8&&u<16&&(_e=void 0)}}const{EV_ADD:iu,EV_CHANGE:Da,EV_ADD_DIR:or,EV_UNLINK:st,EV_ERROR:oa,STR_DATA:aa,STR_END:la,FSEVENT_CREATED:ca,FSEVENT_MODIFIED:fa,FSEVENT_DELETED:ha,FSEVENT_MOVED:da,FSEVENT_UNKNOWN:Ea,FSEVENT_TYPE_FILE:pa,FSEVENT_TYPE_DIRECTORY:xe,FSEVENT_TYPE_SYMLINK:ar,ROOT_GLOBSTAR:lr,DIR_SUFFIX:Ca,DOT_SLASH:cr,FUNCTION_TYPE:Du,EMPTY_FN:Fa,IDENTITY_FN:ga}=et,_a=t=>isNaN(t)?{}:{depth:t},ou=su(ru.stat),ma=su(ru.lstat),fr=su(ru.realpath),Aa={stat:ou,lstat:ma},ce=new Map,ya=10,wa=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Ra=(t,e)=>({stop:_e.watch(t,e)});function ba(t,e,u,n){let r=I.extname(e)?I.dirname(e):e;const s=I.dirname(r);let i=ce.get(r);va(s)&&(r=s);const D=I.resolve(t),o=D!==e,a=(f,l,p)=>{o&&(f=f.replace(e,D)),(f===D||!f.indexOf(D+I.sep))&&u(f,l,p)};let c=!1;for(const f of ce.keys())if(e.indexOf(I.resolve(f)+I.sep)===0){r=f,i=ce.get(r),c=!0;break}return i||c?i.listeners.add(a):(i={listeners:new Set([a]),rawEmitter:n,watcher:Ra(r,(f,l)=>{if(!i.listeners.size)return;const p=_e.getInfo(f,l);i.listeners.forEach(C=>{C(f,l,p)}),i.rawEmitter(p.event,f,p)})},ce.set(r,i)),()=>{const f=i.listeners;if(f.delete(a),!f.size&&(ce.delete(r),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}const va=t=>{let e=0;for(const u of ce.keys())if(u.indexOf(t)===0&&(e++,e>=ya))return!0;return!1},Ba=()=>_e&&ce.size<128,au=(t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=I.dirname(t))!==e;)u++;return u},hr=(t,e)=>t.type===xe&&e.isDirectory()||t.type===ar&&e.isSymbolicLink()||t.type===pa&&e.isFile();class $a{constructor(e){this.fsw=e}checkIgnored(e,u){const n=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,u))return n.add(e),u&&u.isDirectory()&&n.add(e+lr),!0;n.delete(e),n.delete(e+lr)}addOrChange(e,u,n,r,s,i,D,o){const a=s.has(i)?Da:iu;this.handleEvent(a,e,u,n,r,s,i,D,o)}async checkExists(e,u,n,r,s,i,D,o){try{const a=await ou(e);if(this.fsw.closed)return;hr(D,a)?this.addOrChange(e,u,n,r,s,i,D,o):this.handleEvent(st,e,u,n,r,s,i,D,o)}catch(a){a.code==="EACCES"?this.addOrChange(e,u,n,r,s,i,D,o):this.handleEvent(st,e,u,n,r,s,i,D,o)}}handleEvent(e,u,n,r,s,i,D,o,a){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===st){const c=o.type===xe;(c||i.has(D))&&this.fsw._remove(s,D,c)}else{if(e===iu){if(o.type===xe&&this.fsw._getWatchedDir(u),o.type===ar&&a.followSymlinks){const f=a.depth===void 0?void 0:au(n,r)+1;return this._addToFsEvents(u,!1,!0,f)}this.fsw._getWatchedDir(s).add(D)}const c=o.type===xe?e+Ca:e;this.fsw._emit(c,u),c===or&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,n,r){if(this.fsw.closed||this.fsw._isIgnored(e))return;const s=this.fsw.options,D=ba(e,u,async(o,a,c)=>{if(this.fsw.closed||s.depth!==void 0&&au(o,u)>s.depth)return;const f=n(I.join(e,I.relative(e,o)));if(r&&!r(f))return;const l=I.dirname(f),p=I.basename(f),C=this.fsw._getWatchedDir(c.type===xe?f:l);if(wa.has(a)||c.event===Ea)if(typeof s.ignored===Du){let F;try{F=await ou(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,F))return;hr(c,F)?this.addOrChange(f,o,u,l,C,p,c,s):this.handleEvent(st,f,o,u,l,C,p,c,s)}else this.checkExists(f,o,u,l,C,p,c,s);else switch(c.event){case ca:case fa:return this.addOrChange(f,o,u,l,C,p,c,s);case ha:case da:return this.checkExists(f,o,u,l,C,p,c,s)}},this.fsw._emitRaw);return this.fsw._emitReady(),D}async _handleFsEventsSymlink(e,u,n,r){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const s=await fr(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(s))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(s||e,i=>{let D=e;return s&&s!==cr?D=i.replace(s,e):i!==cr&&(D=I.join(e,i)),n(D)},!1,r)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(e,u,n,r,s){const i=n(e),D=u.isDirectory(),o=this.fsw._getWatchedDir(I.dirname(i)),a=I.basename(i);D&&this.fsw._getWatchedDir(i),!o.has(a)&&(o.add(a),(!r.ignoreInitial||s===!0)&&this.fsw._emit(D?or:iu,i,u))}initWatch(e,u,n,r){if(this.fsw.closed)return;const s=this._watchWithFsEvents(n.watchPath,I.resolve(e||n.watchPath),r,n.globFilter);this.fsw._addPathCloser(u,s)}async _addToFsEvents(e,u,n,r){if(this.fsw.closed)return;const s=this.fsw.options,i=typeof u===Du?u:ga,D=this.fsw._getWatchHelpers(e);try{const o=await Aa[D.statMethod](D.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(D.watchPath,o))throw null;if(o.isDirectory()){if(D.globFilter||this.emitAdd(i(e),o,i,s,n),r&&r>s.depth)return;this.fsw._readdirp(D.watchPath,{fileFilter:a=>D.filterPath(a),directoryFilter:a=>D.filterDir(a),..._a(s.depth-(r||0))}).on(aa,a=>{if(this.fsw.closed||a.stats.isDirectory()&&!D.filterPath(a))return;const c=I.join(D.watchPath,a.path),{fullPath:f}=a;if(D.followSymlinks&&a.stats.isSymbolicLink()){const l=s.depth===void 0?void 0:au(c,I.resolve(D.watchPath))+1;this._handleFsEventsSymlink(c,f,i,l)}else this.emitAdd(c,a.stats,i,s,n)}).on(oa,Fa).on(la,()=>{this.fsw._emitReady()})}else this.emitAdd(D.watchPath,o,i,s,n),this.fsw._emitReady()}catch(o){(!o||this.fsw._handleError(o))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&n!==!0)if(typeof u===Du)this.initWatch(void 0,e,D,i);else{let o;try{o=await fr(D.watchPath)}catch{}this.initWatch(o,e,D,i)}}}nu.exports=$a,nu.exports.canUse=Ba;const{EventEmitter:Sa}=jr.default,lu=De.default,B=K.default,{promisify:dr}=Ae.default,Ta=$D,cu=Kt.exports.default,xa=KD,fu=Nn,Oa=No,Na=$n,Ha=ia,Er=nu.exports,{EV_ALL:hu,EV_READY:Pa,EV_ADD:it,EV_CHANGE:Oe,EV_UNLINK:pr,EV_ADD_DIR:La,EV_UNLINK_DIR:Ia,EV_RAW:ka,EV_ERROR:du,STR_CLOSE:Ma,STR_END:Wa,BACK_SLASH_RE:Ga,DOUBLE_SLASH_RE:Cr,SLASH_OR_BACK_SLASH_RE:ja,DOT_RE:Ua,REPLACER_RE:Ka,SLASH:Eu,SLASH_SLASH:Va,BRACE_START:za,BANG:pu,ONE_DOT:Fr,TWO_DOTS:Ya,GLOBSTAR:qa,SLASH_GLOBSTAR:Cu,ANYMATCH_OPTS:Fu,STRING_TYPE:gu,FUNCTION_TYPE:Xa,EMPTY_STR:_u,EMPTY_FN:Qa,isWindows:Za,isMacos:Ja,isIBMi:el}=et,tl=dr(lu.stat),ul=dr(lu.readdir),mu=(t=[])=>Array.isArray(t)?t:[t],gr=(t,e=[])=>(t.forEach(u=>{Array.isArray(u)?gr(u,e):e.push(u)}),e),_r=t=>{const e=gr(mu(t));if(!e.every(u=>typeof u===gu))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(Ar)},mr=t=>{let e=t.replace(Ga,Eu),u=!1;for(e.startsWith(Va)&&(u=!0);e.match(Cr);)e=e.replace(Cr,Eu);return u&&(e=Eu+e),e},Ar=t=>mr(B.normalize(mr(t))),yr=(t=_u)=>e=>typeof e!==gu?e:Ar(B.isAbsolute(e)?e:B.join(t,e)),nl=(t,e)=>B.isAbsolute(t)?t:t.startsWith(pu)?pu+B.join(e,t.slice(1)):B.join(e,t),q=(t,e)=>t[e]===void 0;class rl{constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;!u||e!==Fr&&e!==Ya&&u.add(e)}async remove(e){const{items:u}=this;if(!u||(u.delete(e),u.size>0))return;const n=this.path;try{await ul(n)}catch{this._removeWatcher&&this._removeWatcher(B.dirname(n),B.basename(n))}}has(e){const{items:u}=this;if(!!u)return u.has(e)}getChildren(){const{items:e}=this;if(!!e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}const sl="stat",il="lstat";class Dl{constructor(e,u,n,r){this.fsw=r,this.path=e=e.replace(Ka,_u),this.watchPath=u,this.fullWatchPath=B.resolve(u),this.hasGlob=u!==e,e===_u&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&n?void 0:!1,this.globFilter=this.hasGlob?cu(e,void 0,Fu):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=n,this.statMethod=n?sl:il}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return B.join(this.watchPath,B.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:u}=e;if(u&&u.isSymbolicLink())return this.filterDir(e);const n=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===Xa?this.globFilter(n):!0)&&this.fsw._isntIgnored(n,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(za)?Oa.expand(e):[e]).forEach(r=>{u.push(B.relative(this.watchPath,r).split(ja))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let n=!1;this.unmatchedGlob=!this.dirParts.some(r=>r.every((s,i)=>(s===qa&&(n=!0),n||!u[0][i]||cu(s,u[0][i],Fu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class ol extends Sa{constructor(e){super();const u={};e&&Object.assign(u,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,q(u,"persistent")&&(u.persistent=!0),q(u,"ignoreInitial")&&(u.ignoreInitial=!1),q(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),q(u,"interval")&&(u.interval=100),q(u,"binaryInterval")&&(u.binaryInterval=300),q(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,q(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),Er.canUse()||(u.useFsEvents=!1),q(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=Ja),el&&(u.usePolling=!0);const r=process.env.CHOKIDAR_USEPOLLING;if(r!==void 0){const o=r.toLowerCase();o==="false"||o==="0"?u.usePolling=!1:o==="true"||o==="1"?u.usePolling=!0:u.usePolling=!!o}const s=process.env.CHOKIDAR_INTERVAL;s&&(u.interval=Number.parseInt(s,10)),q(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),q(u,"followSymlinks")&&(u.followSymlinks=!0),q(u,"awaitWriteFinish")&&(u.awaitWriteFinish=!1),u.awaitWriteFinish===!0&&(u.awaitWriteFinish={});const i=u.awaitWriteFinish;i&&(i.stabilityThreshold||(i.stabilityThreshold=2e3),i.pollInterval||(i.pollInterval=100),this._pendingWrites=new Map),u.ignored&&(u.ignored=mu(u.ignored));let D=0;this._emitReady=()=>{D++,D>=this._readyCount&&(this._emitReady=Qa,this._readyEmitted=!0,process.nextTick(()=>this.emit(Pa)))},this._emitRaw=(...o)=>this.emit(ka,...o),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new Er(this):this._nodeFsHandler=new Ha(this),Object.freeze(u)}add(e,u,n){const{cwd:r,disableGlobbing:s}=this.options;this.closed=!1;let i=_r(e);return r&&(i=i.map(D=>{const o=nl(D,r);return s||!fu(D)?o:Na(o)})),i=i.filter(D=>D.startsWith(pu)?(this._ignoredPaths.add(D.slice(1)),!1):(this._ignoredPaths.delete(D),this._ignoredPaths.delete(D+Cu),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount*=2),i.forEach(D=>this._fsEventsHandler._addToFsEvents(D))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async D=>{const o=await this._nodeFsHandler._addToNodeFs(D,!n,0,0,u);return o&&this._emitReady(),o})).then(D=>{this.closed||D.filter(o=>o).forEach(o=>{this.add(B.dirname(o),B.basename(u||o))})})),this}unwatch(e){if(this.closed)return this;const u=_r(e),{cwd:n}=this.options;return u.forEach(r=>{!B.isAbsolute(r)&&!this._closers.has(r)&&(n&&(r=B.join(n,r)),r=B.resolve(r)),this._closePath(r),this._ignoredPaths.add(r),this._watched.has(r)&&this._ignoredPaths.add(r+Cu),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const e=[];return this._closers.forEach(u=>u.forEach(n=>{const r=n();r instanceof Promise&&e.push(r)})),this._streams.forEach(u=>u.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(u=>u.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(u=>{this[`_${u}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach((u,n)=>{const r=this.options.cwd?B.relative(this.options.cwd,n):n;e[r||Fr]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==du&&this.emit(hu,...u)}async _emit(e,u,n,r,s){if(this.closed)return;const i=this.options;Za&&(u=B.normalize(u)),i.cwd&&(u=B.relative(i.cwd,u));const D=[e,u];s!==void 0?D.push(n,r,s):r!==void 0?D.push(n,r):n!==void 0&&D.push(n);const o=i.awaitWriteFinish;let a;if(o&&(a=this._pendingWrites.get(u)))return a.lastChange=new Date,this;if(i.atomic){if(e===pr)return this._pendingUnlinks.set(u,D),setTimeout(()=>{this._pendingUnlinks.forEach((c,f)=>{this.emit(...c),this.emit(hu,...c),this._pendingUnlinks.delete(f)})},typeof i.atomic=="number"?i.atomic:100),this;e===it&&this._pendingUnlinks.has(u)&&(e=D[0]=Oe,this._pendingUnlinks.delete(u))}if(o&&(e===it||e===Oe)&&this._readyEmitted){const c=(f,l)=>{f?(e=D[0]=du,D[1]=f,this.emitWithAll(e,D)):l&&(D.length>2?D[2]=l:D.push(l),this.emitWithAll(e,D))};return this._awaitWriteFinish(u,o.stabilityThreshold,e,c),this}if(e===Oe&&!this._throttle(Oe,u,50))return this;if(i.alwaysStat&&n===void 0&&(e===it||e===La||e===Oe)){const c=i.cwd?B.join(i.cwd,u):u;let f;try{f=await tl(c)}catch{}if(!f||this.closed)return;D.push(f)}return this.emitWithAll(e,D),this}_handleError(e){const u=e&&e.code;return e&&u!=="ENOENT"&&u!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||u!=="EPERM"&&u!=="EACCES")&&this.emit(du,e),e||this.closed}_throttle(e,u,n){this._throttled.has(e)||this._throttled.set(e,new Map);const r=this._throttled.get(e),s=r.get(u);if(s)return s.count++,!1;let i;const D=()=>{const a=r.get(u),c=a?a.count:0;return r.delete(u),clearTimeout(i),a&&clearTimeout(a.timeoutObject),c};i=setTimeout(D,n);const o={timeoutObject:i,clear:D,count:0};return r.set(u,o),o}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,n,r){let s,i=e;this.options.cwd&&!B.isAbsolute(e)&&(i=B.join(this.options.cwd,e));const D=new Date,o=a=>{lu.stat(i,(c,f)=>{if(c||!this._pendingWrites.has(e)){c&&c.code!=="ENOENT"&&r(c);return}const l=Number(new Date);a&&f.size!==a.size&&(this._pendingWrites.get(e).lastChange=l);const p=this._pendingWrites.get(e);l-p.lastChange>=u?(this._pendingWrites.delete(e),r(void 0,f)):s=setTimeout(o,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:D,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(s),n)}),s=setTimeout(o,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Ua.test(e))return!0;if(!this._userIgnored){const{cwd:n}=this.options,r=this.options.ignored,s=r&&r.map(yr(n)),i=mu(s).filter(o=>typeof o===gu&&!fu(o)).map(o=>o+Cu),D=this._getGlobIgnored().map(yr(n)).concat(s,i);this._userIgnored=cu(D,void 0,Fu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const n=u||this.options.disableGlobbing||!fu(e)?e:xa(e),r=this.options.followSymlinks;return new Dl(e,n,r,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const u=B.resolve(e);return this._watched.has(u)||this._watched.set(u,new rl(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const n=(e&&Number.parseInt(e.mode,10))&511,r=Number.parseInt(n.toString(8)[0],10);return Boolean(4&r)}_remove(e,u,n){const r=B.join(e,u),s=B.resolve(r);if(n=n!=null?n:this._watched.has(r)||this._watched.has(s),!this._throttle("remove",r,100))return;!n&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(r).getChildren().forEach(l=>this._remove(r,l));const o=this._getWatchedDir(e),a=o.has(u);o.remove(u),this._symlinkPaths.has(s)&&this._symlinkPaths.delete(s);let c=r;if(this.options.cwd&&(c=B.relative(this.options.cwd,r)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===it)return;this._watched.delete(r),this._watched.delete(s);const f=n?Ia:pr;a&&!this._isIgnored(r)&&this._emit(f,r),this.options.useFsEvents||this._closePath(r)}_closePath(e){this._closeFile(e);const u=B.dirname(e);this._getWatchedDir(u).remove(B.basename(e))}_closeFile(e){const u=this._closers.get(e);!u||(u.forEach(n=>n()),this._closers.delete(e))}_addPathCloser(e,u){if(!u)return;let n=this._closers.get(e);n||(n=[],this._closers.set(e,n)),n.push(u)}_readdirp(e,u){if(this.closed)return;const n={type:hu,alwaysStat:!0,lstat:!0,...u};let r=Ta(e,n);return this._streams.add(r),r.once(Ma,()=>{r=void 0}),r.once(Wa,()=>{r&&(this._streams.delete(r),r=void 0)}),r}}const al=(t,e)=>{const u=new ol(e);return u.add(t),u};var ll=al;let fe=!0;const me=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let wr=0;if(me.process&&me.process.env&&me.process.stdout){const{FORCE_COLOR:t,NODE_DISABLE_COLORS:e,TERM:u}=me.process.env;e||t==="0"?fe=!1:t==="1"?fe=!0:u==="dumb"?fe=!1:"CI"in me.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(n=>n in me.process.env)?fe=!0:fe=process.stdout.isTTY,fe&&(wr=u&&u.endsWith("-256color")?2:1)}let Rr={enabled:fe,supportLevel:wr};function br(t,e,u=1){const n=`\x1B[${t}m`,r=`\x1B[${e}m`,s=new RegExp(`\\x1b\\[${e}m`,"g");return i=>Rr.enabled&&Rr.supportLevel>=u?n+(""+i).replace(s,n)+r:""+i}const cl=br(90,39),fl=br(96,39),hl=()=>new Date().toLocaleTimeString(),dl=(...t)=>console.log(cl(hl()),fl("[tsx]"),...t),El="\x1Bc";function pl(t,e){let u;return()=>{u&&clearTimeout(u),u=setTimeout(()=>t(),e)}}function Cl(t){return t&&"type"in t&&t.type==="dependency"}const vr={noCache:{type:Boolean,description:"Disable caching",default:!1},tsconfig:{type:String,description:"Custom tsconfig.json path"},clearScreen:{type:Boolean,description:"Clearing the screen on rerun",default:!0}},Fl=ai({name:"watch",parameters:["<script path>"],flags:vr,help:{description:"Run the script and watch for changes"}},t=>{const e=ct(vr,process.argv.slice(3),{ignoreUnknown:!0})._,u={noCache:t.flags.noCache,tsconfigPath:t.flags.tsconfig,clearScreen:t.flags.clearScreen,ipc:!0};let n;const r=pl(()=>{n&&!n.killed&&n.exitCode===null&&n.kill(),n&&dl("rerunning"),u.clearScreen&&process.stdout.write(El),n=cn(e,u),n.on("message",D=>{if(Cl(D)){const o=D.path.startsWith("file:")?Au.fileURLToPath(D.path):D.path;K.default.isAbsolute(o)&&i.add(o)}})},100);r();function s(D){n&&n.kill(),process.exit(D)}process.once("SIGINT",()=>s(130)),process.once("SIGTERM",()=>s(143));const i=ll(t._,{ignoreInitial:!0,ignored:["**/.*/**","**/{node_modules,bower_components,vendor}/**","**/dist/**"],ignorePermissionErrors:!0}).on("all",r);process.stdin.on("data",r)}),Br={noCache:{type:Boolean,description:"Disable caching"},tsconfig:{type:String,description:"Custom tsconfig.json path"}},$r={...Br,version:{type:Boolean,description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}};oi({name:"tsx",parameters:["[script path]"],commands:[Fl],flags:$r,help:!1},t=>{const e=t._.length===0;if(e){if(t.flags.version){console.log(Or.version);return}if(t.flags.help){t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"});return}process.argv.push(Ie.require.resolve("./repl"))}const u=ct(e?$r:Br,process.argv.slice(2),{ignoreUnknown:!0})._;cn(u,{noCache:Boolean(t.flags.noCache),tsconfigPath:t.flags.tsconfig}).on("close",n=>process.exit(n))});
|