pkgroll 2.15.4 → 2.17.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 +43 -0
- package/dist/cli.mjs +23 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -249,6 +249,40 @@ Sometimes it's useful to use `require()` or `require.resolve()` in ESM. ESM code
|
|
|
249
249
|
|
|
250
250
|
When compiling to ESM, _Pkgroll_ detects `require()` usages and shims it with [`createRequire(import.meta.url)`](https://nodejs.org/api/module.html#modulecreaterequirefilename).
|
|
251
251
|
|
|
252
|
+
### Native modules
|
|
253
|
+
|
|
254
|
+
_pkgroll_ automatically handles native Node.js addons (`.node` files) when you directly import them:
|
|
255
|
+
|
|
256
|
+
```js
|
|
257
|
+
// src/index.js
|
|
258
|
+
import nativeAddon from './native.node'
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
After bundling, the `.node` file will be copied to `dist/natives/` and the import will be automatically rewritten to load from the correct location at runtime.
|
|
262
|
+
|
|
263
|
+
> [!NOTE]
|
|
264
|
+
> - Native modules are platform and architecture-specific. Make sure to distribute the correct `.node` files for your target platforms.
|
|
265
|
+
> - This only works with direct `.node` imports. If you're using packages that dynamically load native modules via `bindings` or `node-pre-gyp`, you'll need to handle them separately.
|
|
266
|
+
|
|
267
|
+
#### Handling dependencies with native modules
|
|
268
|
+
|
|
269
|
+
If you're using packages with native modules (like `chokidar` which depends on `fsevents`):
|
|
270
|
+
|
|
271
|
+
- **If in `dependencies`/`peerDependencies`**: ✅ Works automatically - these are externalized (not bundled)
|
|
272
|
+
- **If in `devDependencies`**: ⚠️ Will be bundled. If they use `bindings()` or `node-pre-gyp` patterns, move them to `dependencies` instead, or use `optionalDependencies` if they're optional.
|
|
273
|
+
|
|
274
|
+
Example - if you have `chokidar` in `devDependencies` and get build errors, move it to `dependencies`:
|
|
275
|
+
|
|
276
|
+
```json
|
|
277
|
+
{
|
|
278
|
+
"dependencies": {
|
|
279
|
+
"chokidar": "^3.0.0"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
This externalizes it (users will need to install it), avoiding the need to bundle its native modules.
|
|
285
|
+
|
|
252
286
|
### Environment variables
|
|
253
287
|
Pass in compile-time environment variables with the `--env` flag.
|
|
254
288
|
|
|
@@ -257,6 +291,15 @@ This will replace all instances of `process.env.NODE_ENV` with `'production'` an
|
|
|
257
291
|
pkgroll --env.NODE_ENV=production
|
|
258
292
|
```
|
|
259
293
|
|
|
294
|
+
### Define
|
|
295
|
+
The `--define` flag allows you to replace specific strings in your code at build time. This is useful for dead code elimination and conditional compilation.
|
|
296
|
+
|
|
297
|
+
```sh
|
|
298
|
+
pkgroll --define.process.env.NODE_ENV='"production"' --define.DEBUG=false
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
Note: Unlike `--env`, values are not automatically JSON stringified, so you need to include quotes for string values.
|
|
302
|
+
|
|
260
303
|
### Minification
|
|
261
304
|
Pass in the `--minify` flag to minify assets.
|
|
262
305
|
```sh
|
package/dist/cli.mjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var ze=Object.defineProperty;var a=(u,e)=>ze(u,"name",{value:e,configurable:!0});import I from"node:fs";import Je from"tty";import{watch as Ke,rollup as Ge}from"rollup";import m from"node:path";import fu from"node:path/posix";import He from"@rollup/plugin-node-resolve";import Ze from"@rollup/plugin-commonjs";import Ye from"@rollup/plugin-json";import Qe from"@rollup/plugin-alias";import Xe from"@rollup/plugin-dynamic-import-vars";import{createFilter as ut}from"@rollup/pluginutils";import{transform as Vu}from"esbuild";import et,{builtinModules as tt}from"node:module";import X from"magic-string";import Dt from"fs";import{attachScopes as nt}from"rollup-pluginutils";import{init as rt,parse as ot}from"cjs-module-lexer";const st="known-flag",it="unknown-flag",at="argument",{stringify:z}=JSON,lt=/\B([A-Z])/g,ct=a(u=>u.replace(lt,"-$1").toLowerCase(),"v$2"),{hasOwnProperty:ft}=Object.prototype,J=a((u,e)=>ft.call(u,e),"w$3"),pt=a(u=>Array.isArray(u),"L$2"),qu=a(u=>typeof u=="function"?[u,!1]:pt(u)?[u[0],!0]:qu(u.type),"b$2"),Ft=a((u,e)=>u===Boolean?e!=="false":e,"d$3"),Ct=a((u,e)=>typeof e=="boolean"?e:u===Number&&e===""?Number.NaN:u(e),"m$2"),dt=/[\s.:=]/,Et=a(u=>{const e=`Flag name ${z(u)}`;if(u.length===0)throw new Error(`${e} cannot be empty`);if(u.length===1)throw new Error(`${e} must be longer than a character`);const D=u.match(dt);if(D)throw new Error(`${e} cannot contain ${z(D?.[0])}`)},"B$1"),ht=a(u=>{const e={},D=a((t,n)=>{if(J(e,t))throw new Error(`Duplicate flags named ${z(t)}`);e[t]=n},"r");for(const t in u){if(!J(u,t))continue;Et(t);const n=u[t],r=[[],...qu(n),n];D(t,r);const o=ct(t);if(t!==o&&D(o,r),"alias"in n&&typeof n.alias=="string"){const{alias:s}=n,i=`Flag alias ${z(s)} for flag ${z(t)}`;if(s.length===0)throw new Error(`${i} cannot be empty`);if(s.length>1)throw new Error(`${i} must be a single character`);D(s,r)}}return e},"K$2"),mt=a((u,e)=>{const D={};for(const t in u){if(!J(u,t))continue;const[n,,r,o]=e[t];if(n.length===0&&"default"in o){let{default:s}=o;typeof s=="function"&&(s=s()),D[t]=s}else D[t]=r?n:n.pop()}return D},"_$3"),uu="--",gt=/[.:=]/,Bt=/^-{1,2}\w/,yt=a(u=>{if(!Bt.test(u))return;const e=!u.startsWith(uu);let D=u.slice(e?1:2),t;const n=D.match(gt);if(n){const{index:r}=n;t=D.slice(r+1),D=D.slice(0,r)}return[D,t,e]},"N"),At=a((u,{onFlag:e,onArgument:D})=>{let t;const n=a((r,o)=>{if(typeof t!="function")return!0;t(r,o),t=void 0},"o");for(let r=0;r<u.length;r+=1){const o=u[r];if(o===uu){n();const i=u.slice(r+1);D?.(i,[r],!0);break}const s=yt(o);if(s){if(n(),!e)continue;const[i,l,f]=s;if(f)for(let F=0;F<i.length;F+=1){n();const c=F===i.length-1;t=e(i[F],c?l:void 0,[r,F+1,c])}else t=e(i,l,[r])}else n(o,[r])&&D?.([o],[r])}n()},"$$2"),bt=a((u,e)=>{for(const[D,t,n]of e.reverse()){if(t){const r=u[D];let o=r.slice(0,t);if(n||(o+=r.slice(t+1)),o!=="-"){u[D]=o;continue}}u.splice(D,1)}},"E$2"),wt=a((u,e=process.argv.slice(2),{ignore:D}={})=>{const t=[],n=ht(u),r={},o=[];return o[uu]=[],At(e,{onFlag(s,i,l){const f=J(n,s);if(!D?.(f?st:it,s,i)){if(f){const[F,c]=n[s],E=Ft(c,i),C=a((h,b)=>{t.push(l),b&&t.push(b),F.push(Ct(c,h||""))},"p");return E===void 0?C:C(E)}J(r,s)||(r[s]=[]),r[s].push(i===void 0?!0:i),t.push(l)}},onArgument(s,i,l){D?.(at,e[i[0]])||(o.push(...s),l?(o[uu]=s,e.splice(i[0])):t.push(i))}}),bt(e,t),{flags:mt(u,n),unknownFlags:r,_:o}},"U$3");var vt=Object.create,eu=Object.defineProperty,$t=Object.defineProperties,xt=Object.getOwnPropertyDescriptor,kt=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertyNames,zu=Object.getOwnPropertySymbols,Ot=Object.getPrototypeOf,Ju=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Ku=a((u,e,D)=>e in u?eu(u,e,{enumerable:!0,configurable:!0,writable:!0,value:D}):u[e]=D,"W$2"),tu=a((u,e)=>{for(var D in e||(e={}))Ju.call(e,D)&&Ku(u,D,e[D]);if(zu)for(var D of zu(e))St.call(e,D)&&Ku(u,D,e[D]);return u},"p$1"),pu=a((u,e)=>$t(u,kt(e)),"c"),Tt=a(u=>eu(u,"__esModule",{value:!0}),"nD"),Pt=a((u,e)=>()=>(u&&(e=u(u=0)),e),"rD"),It=a((u,e)=>()=>(e||u((e={exports:{}}).exports,e),e.exports),"iD"),_t=a((u,e,D,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of jt(e))!Ju.call(u,n)&&n!=="default"&&eu(u,n,{get:a(()=>e[n],"get"),enumerable:!(t=xt(e,n))||t.enumerable});return u},"oD"),Nt=a((u,e)=>_t(Tt(eu(u!=null?vt(Ot(u)):{},"default",{value:u,enumerable:!0})),u),"BD"),k=Pt(()=>{}),Rt=It((u,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 Lt=a(u=>{var e,D,t;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(n)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:n}:{columns:(D=u.columns)!=null?D:[],stdoutColumns:(t=u.stdoutColumns)!=null?t:n}},"v$1");k(),k(),k(),k(),k();function Mt({onlyFirst:u=!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,u?void 0:"g")}a(Mt,"w$2");function Gu(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Mt(),"")}a(Gu,"d$2"),k();function Wt(u){return Number.isInteger(u)?u>=4352&&(u<=4447||u===9001||u===9002||11904<=u&&u<=12871&&u!==12351||12880<=u&&u<=19903||19968<=u&&u<=42182||43360<=u&&u<=43388||44032<=u&&u<=55203||63744<=u&&u<=64255||65040<=u&&u<=65049||65072<=u&&u<=65131||65281<=u&&u<=65376||65504<=u&&u<=65510||110592<=u&&u<=110593||127488<=u&&u<=127569||131072<=u&&u<=262141):!1}a(Wt,"y$1");var Ut=Nt(Rt());function N(u){if(typeof u!="string"||u.length===0||(u=Gu(u),u.length===0))return 0;u=u.replace((0,Ut.default)()," ");let e=0;for(let D=0;D<u.length;D++){let t=u.codePointAt(D);t<=31||t>=127&&t<=159||t>=768&&t<=879||(t>65535&&D++,e+=Wt(t)?2:1)}return e}a(N,"g");var Hu=a(u=>Math.max(...u.split(`
|
|
3
|
-
`).map(N)),"b$1"),
|
|
4
|
-
`)];for(let[l,
|
|
5
|
-
`?(r&&(t+=
|
|
6
|
-
`&&(n&&
|
|
2
|
+
var Ge=Object.defineProperty;var a=(u,e)=>Ge(u,"name",{value:e,configurable:!0});import I from"node:fs";import He from"tty";import{watch as Ze,rollup as Ye}from"rollup";import h from"node:path";import pu from"node:path/posix";import Qe from"@rollup/plugin-node-resolve";import Xe from"@rollup/plugin-commonjs";import ut from"@rollup/plugin-json";import et from"@rollup/plugin-alias";import tt from"@rollup/plugin-dynamic-import-vars";import{createFilter as Dt}from"@rollup/pluginutils";import{transform as zu}from"esbuild";import nt,{builtinModules as rt}from"node:module";import X from"magic-string";import ot from"fs";import{attachScopes as st}from"rollup-pluginutils";import Fu from"node:fs/promises";import{init as it,parse as at}from"cjs-module-lexer";const lt="known-flag",ct="unknown-flag",ft="argument",{stringify:z}=JSON,pt=/\B([A-Z])/g,Ft=a(u=>u.replace(pt,"-$1").toLowerCase(),"v$2"),{hasOwnProperty:dt}=Object.prototype,J=a((u,e)=>dt.call(u,e),"w$3"),Ct=a(u=>Array.isArray(u),"L$2"),Ju=a(u=>typeof u=="function"?[u,!1]:Ct(u)?[u[0],!0]:Ju(u.type),"b$2"),Et=a((u,e)=>u===Boolean?e!=="false":e,"d$3"),ht=a((u,e)=>typeof e=="boolean"?e:u===Number&&e===""?Number.NaN:u(e),"m$2"),mt=/[\s.:=]/,gt=a(u=>{const e=`Flag name ${z(u)}`;if(u.length===0)throw new Error(`${e} cannot be empty`);if(u.length===1)throw new Error(`${e} must be longer than a character`);const D=u.match(mt);if(D)throw new Error(`${e} cannot contain ${z(D?.[0])}`)},"B$1"),Bt=a(u=>{const e={},D=a((t,n)=>{if(J(e,t))throw new Error(`Duplicate flags named ${z(t)}`);e[t]=n},"r");for(const t in u){if(!J(u,t))continue;gt(t);const n=u[t],r=[[],...Ju(n),n];D(t,r);const o=Ft(t);if(t!==o&&D(o,r),"alias"in n&&typeof n.alias=="string"){const{alias:s}=n,i=`Flag alias ${z(s)} for flag ${z(t)}`;if(s.length===0)throw new Error(`${i} cannot be empty`);if(s.length>1)throw new Error(`${i} must be a single character`);D(s,r)}}return e},"K$2"),yt=a((u,e)=>{const D={};for(const t in u){if(!J(u,t))continue;const[n,,r,o]=e[t];if(n.length===0&&"default"in o){let{default:s}=o;typeof s=="function"&&(s=s()),D[t]=s}else D[t]=r?n:n.pop()}return D},"_$3"),uu="--",At=/[.:=]/,bt=/^-{1,2}\w/,wt=a(u=>{if(!bt.test(u))return;const e=!u.startsWith(uu);let D=u.slice(e?1:2),t;const n=D.match(At);if(n){const{index:r}=n;t=D.slice(r+1),D=D.slice(0,r)}return[D,t,e]},"N"),vt=a((u,{onFlag:e,onArgument:D})=>{let t;const n=a((r,o)=>{if(typeof t!="function")return!0;t(r,o),t=void 0},"o");for(let r=0;r<u.length;r+=1){const o=u[r];if(o===uu){n();const i=u.slice(r+1);D?.(i,[r],!0);break}const s=wt(o);if(s){if(n(),!e)continue;const[i,l,c]=s;if(c)for(let p=0;p<i.length;p+=1){n();const f=p===i.length-1;t=e(i[p],f?l:void 0,[r,p+1,f])}else t=e(i,l,[r])}else n(o,[r])&&D?.([o],[r])}n()},"$$2"),$t=a((u,e)=>{for(const[D,t,n]of e.reverse()){if(t){const r=u[D];let o=r.slice(0,t);if(n||(o+=r.slice(t+1)),o!=="-"){u[D]=o;continue}}u.splice(D,1)}},"E$2"),xt=a((u,e=process.argv.slice(2),{ignore:D}={})=>{const t=[],n=Bt(u),r={},o=[];return o[uu]=[],vt(e,{onFlag(s,i,l){const c=J(n,s);if(!D?.(c?lt:ct,s,i)){if(c){const[p,f]=n[s],E=Et(f,i),d=a((m,b)=>{t.push(l),b&&t.push(b),p.push(ht(f,m||""))},"p");return E===void 0?d:d(E)}J(r,s)||(r[s]=[]),r[s].push(i===void 0?!0:i),t.push(l)}},onArgument(s,i,l){D?.(ft,e[i[0]])||(o.push(...s),l?(o[uu]=s,e.splice(i[0])):t.push(i))}}),$t(e,t),{flags:yt(u,n),unknownFlags:r,_:o}},"U$3");var kt=Object.create,eu=Object.defineProperty,jt=Object.defineProperties,Ot=Object.getOwnPropertyDescriptor,St=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertyNames,Ku=Object.getOwnPropertySymbols,Pt=Object.getPrototypeOf,Gu=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Hu=a((u,e,D)=>e in u?eu(u,e,{enumerable:!0,configurable:!0,writable:!0,value:D}):u[e]=D,"W$2"),tu=a((u,e)=>{for(var D in e||(e={}))Gu.call(e,D)&&Hu(u,D,e[D]);if(Ku)for(var D of Ku(e))It.call(e,D)&&Hu(u,D,e[D]);return u},"p$1"),du=a((u,e)=>jt(u,St(e)),"c"),_t=a(u=>eu(u,"__esModule",{value:!0}),"nD"),Nt=a((u,e)=>()=>(u&&(e=u(u=0)),e),"rD"),Rt=a((u,e)=>()=>(e||u((e={exports:{}}).exports,e),e.exports),"iD"),Lt=a((u,e,D,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Tt(e))!Gu.call(u,n)&&n!=="default"&&eu(u,n,{get:a(()=>e[n],"get"),enumerable:!(t=Ot(e,n))||t.enumerable});return u},"oD"),Mt=a((u,e)=>Lt(_t(eu(u!=null?kt(Pt(u)):{},"default",{value:u,enumerable:!0})),u),"BD"),k=Nt(()=>{}),Wt=Rt((u,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 Ut=a(u=>{var e,D,t;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(n)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:n}:{columns:(D=u.columns)!=null?D:[],stdoutColumns:(t=u.stdoutColumns)!=null?t:n}},"v$1");k(),k(),k(),k(),k();function Vt({onlyFirst:u=!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,u?void 0:"g")}a(Vt,"w$2");function Zu(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Vt(),"")}a(Zu,"d$2"),k();function qt(u){return Number.isInteger(u)?u>=4352&&(u<=4447||u===9001||u===9002||11904<=u&&u<=12871&&u!==12351||12880<=u&&u<=19903||19968<=u&&u<=42182||43360<=u&&u<=43388||44032<=u&&u<=55203||63744<=u&&u<=64255||65040<=u&&u<=65049||65072<=u&&u<=65131||65281<=u&&u<=65376||65504<=u&&u<=65510||110592<=u&&u<=110593||127488<=u&&u<=127569||131072<=u&&u<=262141):!1}a(qt,"y$1");var zt=Mt(Wt());function N(u){if(typeof u!="string"||u.length===0||(u=Zu(u),u.length===0))return 0;u=u.replace((0,zt.default)()," ");let e=0;for(let D=0;D<u.length;D++){let t=u.codePointAt(D);t<=31||t>=127&&t<=159||t>=768&&t<=879||(t>65535&&D++,e+=qt(t)?2:1)}return e}a(N,"g");var Yu=a(u=>Math.max(...u.split(`
|
|
3
|
+
`).map(N)),"b$1"),Jt=a(u=>{let e=[];for(let D of u){let{length:t}=D,n=t-e.length;for(let r=0;r<n;r+=1)e.push(0);for(let r=0;r<t;r+=1){let o=Yu(D[r]);o>e[r]&&(e[r]=o)}}return e},"k$1");k();var Qu=/^\d+%$/,Xu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},Kt=a((u,e)=>{var D;let t=[];for(let n=0;n<u.length;n+=1){let r=(D=e[n])!=null?D:"auto";if(typeof r=="number"||r==="auto"||r==="content-width"||typeof r=="string"&&Qu.test(r)){t.push(du(tu({},Xu),{width:r,contentWidth:u[n]}));continue}if(r&&typeof r=="object"){let o=du(tu(tu({},Xu),r),{contentWidth:u[n]});o.horizontalPadding=o.paddingLeft+o.paddingRight,t.push(o);continue}throw new Error(`Invalid column width: ${JSON.stringify(r)}`)}return t},"sD");function Gt(u,e){for(let D of u){let{width:t}=D;if(t==="content-width"&&(D.width=D.contentWidth),t==="auto"){let i=Math.min(20,D.contentWidth);D.width=i,D.autoOverflow=D.contentWidth-i}if(typeof t=="string"&&Qu.test(t)){let i=Number.parseFloat(t.slice(0,-1))/100;D.width=Math.floor(e*i)-(D.paddingLeft+D.paddingRight)}let{horizontalPadding:n}=D,r=1,o=r+n;if(o>=e){let i=o-e,l=Math.ceil(D.paddingLeft/n*i),c=i-l;D.paddingLeft-=l,D.paddingRight-=c,D.horizontalPadding=D.paddingLeft+D.paddingRight}D.paddingLeftString=D.paddingLeft?" ".repeat(D.paddingLeft):"",D.paddingRightString=D.paddingRight?" ".repeat(D.paddingRight):"";let s=e-D.horizontalPadding;D.width=Math.max(Math.min(D.width,s),r)}}a(Gt,"aD");var ue=a(()=>Object.assign([],{columns:0}),"G$1");function Ht(u,e){let D=[ue()],[t]=D;for(let n of u){let r=n.width+n.horizontalPadding;t.columns+r>e&&(t=ue(),D.push(t)),t.push(n),t.columns+=r}for(let n of D){let r=n.reduce((f,E)=>f+E.width+E.horizontalPadding,0),o=e-r;if(o===0)continue;let s=n.filter(f=>"autoOverflow"in f),i=s.filter(f=>f.autoOverflow>0),l=i.reduce((f,E)=>f+E.autoOverflow,0),c=Math.min(l,o);for(let f of i){let E=Math.floor(f.autoOverflow/l*c);f.width+=E,o-=E}let p=Math.floor(o/s.length);for(let f=0;f<s.length;f+=1){let E=s[f];f===s.length-1?E.width+=o:E.width+=p,o-=p}}return D}a(Ht,"lD");function Zt(u,e,D){let t=Kt(D,e);return Gt(t,u),Ht(t,u)}a(Zt,"Z$2"),k(),k(),k();var Cu=10,ee=a((u=0)=>e=>`\x1B[${e+u}m`,"U$2"),te=a((u=0)=>e=>`\x1B[${38+u};5;${e}m`,"V$2"),De=a((u=0)=>(e,D,t)=>`\x1B[${38+u};2;${e};${D};${t}m`,"Y$1");function Yt(){let u=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[D,t]of Object.entries(e)){for(let[n,r]of Object.entries(t))e[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},t[n]=e[n],u.set(r[0],r[1]);Object.defineProperty(e,D,{value:t,enumerable:!1})}return Object.defineProperty(e,"codes",{value:u,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=ee(),e.color.ansi256=te(),e.color.ansi16m=De(),e.bgColor.ansi=ee(Cu),e.bgColor.ansi256=te(Cu),e.bgColor.ansi16m=De(Cu),Object.defineProperties(e,{rgbToAnsi256:{value:a((D,t,n)=>D===t&&t===n?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),"value"),enumerable:!1},hexToRgb:{value:a(D=>{let t=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(D.toString(16));if(!t)return[0,0,0];let{colorString:n}=t.groups;n.length===3&&(n=n.split("").map(o=>o+o).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},"value"),enumerable:!1},hexToAnsi256:{value:a(D=>e.rgbToAnsi256(...e.hexToRgb(D)),"value"),enumerable:!1},ansi256ToAnsi:{value:a(D=>{if(D<8)return 30+D;if(D<16)return 90+(D-8);let t,n,r;if(D>=232)t=((D-232)*10+8)/255,n=t,r=t;else{D-=16;let i=D%36;t=Math.floor(D/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let o=Math.max(t,n,r)*2;if(o===0)return 30;let s=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return o===2&&(s+=60),s},"value"),enumerable:!1},rgbToAnsi:{value:a((D,t,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(D,t,n)),"value"),enumerable:!1},hexToAnsi:{value:a(D=>e.ansi256ToAnsi(e.hexToAnsi256(D)),"value"),enumerable:!1}}),e}a(Yt,"AD");var Qt=Yt(),Xt=Qt,Du=new Set(["\x1B","\x9B"]),uD=39,Eu="\x07",ne="[",eD="]",re="m",hu=`${eD}8;;`,oe=a(u=>`${Du.values().next().value}${ne}${u}${re}`,"J$1"),se=a(u=>`${Du.values().next().value}${hu}${u}${Eu}`,"Q$1"),tD=a(u=>u.split(" ").map(e=>N(e)),"hD"),mu=a((u,e,D)=>{let t=[...e],n=!1,r=!1,o=N(Zu(u[u.length-1]));for(let[s,i]of t.entries()){let l=N(i);if(o+l<=D?u[u.length-1]+=i:(u.push(i),o=0),Du.has(i)&&(n=!0,r=t.slice(s+1).join("").startsWith(hu)),n){r?i===Eu&&(n=!1,r=!1):i===re&&(n=!1);continue}o+=l,o===D&&s<t.length-1&&(u.push(""),o=0)}!o&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"S"),DD=a(u=>{let e=u.split(" "),D=e.length;for(;D>0&&!(N(e[D-1])>0);)D--;return D===e.length?u:e.slice(0,D).join(" ")+e.slice(D).join("")},"cD"),nD=a((u,e,D={})=>{if(D.trim!==!1&&u.trim()==="")return"";let t="",n,r,o=tD(u),s=[""];for(let[l,c]of u.split(" ").entries()){D.trim!==!1&&(s[s.length-1]=s[s.length-1].trimStart());let p=N(s[s.length-1]);if(l!==0&&(p>=e&&(D.wordWrap===!1||D.trim===!1)&&(s.push(""),p=0),(p>0||D.trim===!1)&&(s[s.length-1]+=" ",p++)),D.hard&&o[l]>e){let f=e-p,E=1+Math.floor((o[l]-f-1)/e);Math.floor((o[l]-1)/e)<E&&s.push(""),mu(s,c,e);continue}if(p+o[l]>e&&p>0&&o[l]>0){if(D.wordWrap===!1&&p<e){mu(s,c,e);continue}s.push("")}if(p+o[l]>e&&D.wordWrap===!1){mu(s,c,e);continue}s[s.length-1]+=c}D.trim!==!1&&(s=s.map(l=>DD(l)));let i=[...s.join(`
|
|
4
|
+
`)];for(let[l,c]of i.entries()){if(t+=c,Du.has(c)){let{groups:f}=new RegExp(`(?:\\${ne}(?<code>\\d+)m|\\${hu}(?<uri>.*)${Eu})`).exec(i.slice(l).join(""))||{groups:{}};if(f.code!==void 0){let E=Number.parseFloat(f.code);n=E===uD?void 0:E}else f.uri!==void 0&&(r=f.uri.length===0?void 0:f.uri)}let p=Xt.codes.get(Number(n));i[l+1]===`
|
|
5
|
+
`?(r&&(t+=se("")),n&&p&&(t+=oe(p))):c===`
|
|
6
|
+
`&&(n&&p&&(t+=oe(n)),r&&(t+=se(r)))}return t},"dD");function rD(u,e,D){return String(u).normalize().replace(/\r\n/g,`
|
|
7
7
|
`).split(`
|
|
8
|
-
`).map(t=>
|
|
9
|
-
`)}a(
|
|
10
|
-
`);if(i.postprocess){let{postprocess:
|
|
8
|
+
`).map(t=>nD(t,e,D)).join(`
|
|
9
|
+
`)}a(rD,"T$1");var ie=a(u=>Array.from({length:u}).fill(""),"X$1");function oD(u,e){let D=[],t=0;for(let n of u){let r=0,o=n.map(i=>{var l;let c=(l=e[t])!=null?l:"";t+=1,i.preprocess&&(c=i.preprocess(c)),Yu(c)>i.width&&(c=rD(c,i.width,{hard:!0}));let p=c.split(`
|
|
10
|
+
`);if(i.postprocess){let{postprocess:f}=i;p=p.map((E,d)=>f.call(i,E,d))}return i.paddingTop&&p.unshift(...ie(i.paddingTop)),i.paddingBottom&&p.push(...ie(i.paddingBottom)),p.length>r&&(r=p.length),du(tu({},i),{lines:p})}),s=[];for(let i=0;i<r;i+=1){let l=o.map(c=>{var p;let f=(p=c.lines[i])!=null?p:"",E=Number.isFinite(c.width)?" ".repeat(c.width-N(f)):"",d=c.paddingLeftString;return c.align==="right"&&(d+=E),d+=f,c.align==="left"&&(d+=E),d+c.paddingRightString}).join("");s.push(l)}D.push(s.join(`
|
|
11
11
|
`))}return D.join(`
|
|
12
|
-
`)}a(
|
|
13
|
-
`)}a(
|
|
14
|
-
`}}a(
|
|
15
|
-
`}}a(
|
|
16
|
-
`):e.usage}}:void 0;if(u.name){const D=[],t=[
|
|
17
|
-
`)}}}}a(
|
|
18
|
-
`)),D)return{id:"examples",type:"section",data:{title:"Examples:",body:D}}}a(
|
|
12
|
+
`)}a(oD,"P$2");function sD(u,e){if(!u||u.length===0)return"";let D=Jt(u),t=D.length;if(t===0)return"";let{stdoutColumns:n,columns:r}=Ut(e);if(r.length>t)throw new Error(`${r.length} columns defined, but only ${t} columns found`);let o=Zt(n,r,D);return u.map(s=>oD(o,s)).join(`
|
|
13
|
+
`)}a(sD,"mD"),k();var iD=["<",">","=",">=","<="];function aD(u){if(!iD.includes(u))throw new TypeError(`Invalid breakpoint operator: ${u}`)}a(aD,"xD");function lD(u){let e=Object.keys(u).map(D=>{let[t,n]=D.split(" ");aD(t);let r=Number.parseInt(n,10);if(Number.isNaN(r))throw new TypeError(`Invalid breakpoint value: ${n}`);let o=u[D];return{operator:t,breakpoint:r,value:o}}).sort((D,t)=>t.breakpoint-D.breakpoint);return D=>{var t;return(t=e.find(({operator:n,breakpoint:r})=>n==="="&&D===r||n===">"&&D>r||n==="<"&&D<r||n===">="&&D>=r||n==="<="&&D<=r))==null?void 0:t.value}}a(lD,"wD");const cD=a(u=>u.replace(/[\W_]([a-z\d])?/gi,(e,D)=>D?D.toUpperCase():""),"P$1"),fD=a(u=>u.replace(/\B([A-Z])/g,"-$1").toLowerCase(),"q$1"),pD={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:a(u=>u.trim(),"preprocess")},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function FD(u){let e=!1;return{type:"table",data:{tableData:Object.keys(u).sort((D,t)=>D.localeCompare(t)).map(D=>{const t=u[D],n="alias"in t;return n&&(e=!0),{name:D,flag:t,flagFormatted:`--${fD(D)}`,aliasesEnabled:e,aliasFormatted:n?`-${t.alias}`:void 0}}).map(D=>(D.aliasesEnabled=e,[{type:"flagName",data:D},{type:"flagDescription",data:D}])),tableBreakpoints:pD}}}a(FD,"D");const ae=a(u=>!u||(u.version??(u.help?u.help.version:void 0)),"A$1"),le=a(u=>{const e="parent"in u&&u.parent?.name;return(e?`${e} `:"")+u.name},"C$1");function dD(u){const e=[];u.name&&e.push(le(u));const D=ae(u)??("parent"in u&&ae(u.parent));if(D&&e.push(`v${D}`),e.length!==0)return{id:"name",type:"text",data:`${e.join(" ")}
|
|
14
|
+
`}}a(dD,"R$2");function CD(u){const{help:e}=u;if(!(!e||!e.description))return{id:"description",type:"text",data:`${e.description}
|
|
15
|
+
`}}a(CD,"L");function ED(u){const e=u.help||{};if("usage"in e)return e.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(e.usage)?e.usage.join(`
|
|
16
|
+
`):e.usage}}:void 0;if(u.name){const D=[],t=[le(u)];if(u.flags&&Object.keys(u.flags).length>0&&t.push("[flags...]"),u.parameters&&u.parameters.length>0){const{parameters:n}=u,r=n.indexOf("--"),o=r>-1&&n.slice(r+1).some(s=>s.startsWith("<"));t.push(n.map(s=>s!=="--"?s:o?"--":"[--]").join(" "))}if(t.length>1&&D.push(t.join(" ")),"commands"in u&&u.commands?.length&&D.push(`${u.name} <command>`),D.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:D.join(`
|
|
17
|
+
`)}}}}a(ED,"T");function hD(u){return!("commands"in u)||!u.commands?.length?void 0:{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:u.commands.map(e=>[e.options.name,e.options.help?e.options.help.description:""]),tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}a(hD,"_$1");function mD(u){if(!(!u.flags||Object.keys(u.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:FD(u.flags),indentBody:0}}}a(mD,"k");function gD(u){const{help:e}=u;if(!e||!e.examples||e.examples.length===0)return;let{examples:D}=e;if(Array.isArray(D)&&(D=D.join(`
|
|
18
|
+
`)),D)return{id:"examples",type:"section",data:{title:"Examples:",body:D}}}a(gD,"F");function BD(u){if(!("alias"in u)||!u.alias)return;const{alias:e}=u;return{id:"aliases",type:"section",data:{title:"Aliases:",body:Array.isArray(e)?e.join(", "):e}}}a(BD,"H$1");const yD=a(u=>[dD,CD,ED,hD,mD,gD,BD].map(e=>e(u)).filter(Boolean),"U$1"),AD=He.WriteStream.prototype.hasColors();class bD{static{a(this,"J")}text(e){return e}bold(e){return AD?`\x1B[1m${e}\x1B[22m`:e.toLocaleUpperCase()}indentText({text:e,spaces:D}){return e.replace(/^/gm," ".repeat(D))}heading(e){return this.bold(e)}section({title:e,body:D,indentBody:t=2}){return`${(e?`${this.heading(e)}
|
|
19
19
|
`:"")+(D?this.indentText({text:this.render(D),spaces:t}):"")}
|
|
20
|
-
`}table({tableData:e,tableOptions:D,tableBreakpoints:t}){return
|
|
21
|
-
`);if("type"in e&&this[e.type]){const D=this[e.type];if(typeof D=="function")return D.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const
|
|
22
|
-
`),t(),process.exit(1);u[i]=l}}a(
|
|
23
|
-
`),{code:o.toString(),map:r.sourcemap?o.generateMap({hires:!0}):void 0}},"renderChunk"),writeBundle:a(async(t,n)=>{const r=new Set(Object.keys(n).map(o=>$(
|
|
24
|
-
`;break;case 114:
|
|
25
|
-
`),s++,l=t,o=14;switch(
|
|
20
|
+
`}table({tableData:e,tableOptions:D,tableBreakpoints:t}){return sD(e.map(n=>n.map(r=>this.render(r))),t?lD(t):D)}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:D,flagFormatted:t,aliasesEnabled:n,aliasFormatted:r}=e;let o="";if(r?o+=`${r}, `:n&&(o+=" "),o+=t,"placeholder"in D&&typeof D.placeholder=="string")o+=`${this.flagOperator(e)}${D.placeholder}`;else{const s=this.flagParameter("type"in D?D.type:D);s&&(o+=`${this.flagOperator(e)}${s}`)}return o}flagDefault(e){return JSON.stringify(e)}flagDescription({flag:e}){let D="description"in e?e.description??"":"";if("default"in e){let{default:t}=e;typeof t=="function"&&(t=t()),t&&(D+=` (default: ${this.flagDefault(t)})`)}return D}render(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(D=>this.render(D)).join(`
|
|
21
|
+
`);if("type"in e&&this[e.type]){const D=this[e.type];if(typeof D=="function")return D.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const ce=a(u=>u.length>0&&!u.includes(" "),"y"),{stringify:P}=JSON,wD=/[|\\{}()[\]^$+*?.]/;function gu(u){const e=[];let D,t;for(const n of u){if(t)throw new Error(`Invalid parameter: Spread parameter ${P(t)} must be last`);const r=n[0],o=n[n.length-1];let s;if(r==="<"&&o===">"&&(s=!0,D))throw new Error(`Invalid parameter: Required parameter ${P(n)} cannot come after optional parameter ${P(D)}`);if(r==="["&&o==="]"&&(s=!1,D=n),s===void 0)throw new Error(`Invalid parameter: ${P(n)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let i=n.slice(1,-1);const l=i.slice(-3)==="...";l&&(t=n,i=i.slice(0,-3));const c=i.match(wD);if(c)throw new Error(`Invalid parameter: ${P(n)}. Invalid character found ${P(c[0])}`);e.push({name:i,required:s,spread:l})}return e}a(gu,"w$1");function Bu(u,e,D,t){for(let n=0;n<e.length;n+=1){const{name:r,required:o,spread:s}=e[n],i=cD(r);if(i in u)throw new Error(`Invalid parameter: ${P(r)} is used more than once.`);const l=s?D.slice(n):D[n];if(s&&(n=e.length),o&&(!l||s&&l.length===0))return console.error(`Error: Missing required parameter ${P(r)}
|
|
22
|
+
`),t(),process.exit(1);u[i]=l}}a(Bu,"b");function vD(u){return u===void 0||u!==!1}a(vD,"W$1");function fe(u,e,D,t){const n={...e.flags},r=e.version;r&&(n.version={type:Boolean,description:"Show version"});const{help:o}=e,s=vD(o);s&&!("help"in n)&&(n.help={type:Boolean,alias:"h",description:"Show help"});const i=xt(n,t,{ignore:e.ignoreArgv}),l=a(()=>{console.log(e.version)},"f");if(r&&i.flags.version===!0)return l(),process.exit(0);const c=new bD,p=s&&o?.render?o.render:d=>c.render(d),f=a(d=>{const m=yD({...e,...d?{help:d}:{},flags:n});console.log(p(m,c))},"u");if(s&&i.flags.help===!0)return f(),process.exit(0);if(e.parameters){let{parameters:d}=e,m=i._;const b=d.indexOf("--"),O=d.slice(b+1),A=Object.create(null);if(b>-1&&O.length>0){d=d.slice(0,b);const C=i._["--"];m=m.slice(0,-C.length||void 0),Bu(A,gu(d),m,f),Bu(A,gu(O),C,f)}else Bu(A,gu(d),m,f);Object.assign(i._,A)}const E={...i,showVersion:l,showHelp:f};return typeof D=="function"&&D(E),{command:u,...E}}a(fe,"x$1");function $D(u,e){const D=new Map;for(const t of e){const n=[t.options.name],{alias:r}=t.options;r&&(Array.isArray(r)?n.push(...r):n.push(r));for(const o of n){if(D.has(o))throw new Error(`Duplicate command name found: ${P(o)}`);D.set(o,t)}}return D.get(u)}a($D,"z$1");function xD(u,e,D=process.argv.slice(2)){if(!u)throw new Error("Options is required");if("name"in u&&(!u.name||!ce(u.name)))throw new Error(`Invalid script name: ${P(u.name)}`);const t=D[0];if(u.commands&&t&&ce(t)){const n=$D(t,u.commands);if(n)return fe(n.options.name,{...n.options,parent:u},n.callback,D.slice(1))}return fe(void 0,u,e,D)}a(xD,"Z$1");var kD="2.17.0";const yu=a(u=>I.promises.access(u).then(()=>!0,()=>!1),"fsExists");let R=!0;const W=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let K=0;if(W.process&&W.process.env&&W.process.stdout){const{FORCE_COLOR:u,NODE_DISABLE_COLORS:e,NO_COLOR:D,TERM:t,COLORTERM:n}=W.process.env;e||D||u==="0"?R=!1:u==="1"||u==="2"||u==="3"?R=!0:t==="dumb"?R=!1:"CI"in W.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(r=>r in W.process.env)?R=!0:R=process.stdout.isTTY,R&&(process.platform==="win32"||n&&(n==="truecolor"||n==="24bit")?K=3:t&&(t.endsWith("-256color")||t.endsWith("256"))?K=2:K=1)}let pe={enabled:R,supportLevel:K};function jD(u,e,D=1){const t=`\x1B[${u}m`,n=`\x1B[${e}m`,r=new RegExp(`\\x1b\\[${e}m`,"g");return o=>pe.enabled&&pe.supportLevel>=D?t+(""+o).replace(r,t)+n:""+o}a(jD,"kolorist");const OD=jD(2,22),SD=/^[/.]/,$=a((u,e)=>(!h.isAbsolute(u)&&!SD.test(u)&&(u=`./${u}`),e&&!u.endsWith("/")&&(u+="/"),u),"normalizePath"),TD=a(()=>new Date().toLocaleTimeString(),"currentTime"),nu=a((...u)=>console.log(OD(TD()),...u),"log"),PD=process.cwd(),Au=a(u=>$(h.relative(PD,u)),"formatPath"),ID=a(async u=>{const e=h.join(u,"package.json");if(!await yu(e))throw new Error(`package.json not found at: ${e}`);const t=await I.promises.readFile(e,"utf8");let n;try{n=JSON.parse(t)}catch(r){throw new Error(`Failed to parse ${Au(e)}: ${r.message}`)}return{packageJson:n,packageJsonPath:e}},"readPackageJson"),_D=a(u=>{let e=!1;if(u.includes("=")){const[D,t]=u.split("=");u=t,e=D==="bin"||D==="binary"}return{type:"legacy",source:"cli",outputPath:$(u),isExecutable:e}},"parseCliInputFlag"),ND=a(({imports:u},e)=>{const D={};if(u)for(const t in u){if(t.startsWith("#"))continue;const n=u[t];typeof n=="string"&&(D[t]=h.join(e,n))}return D},"getAliases"),RD=a(u=>{const{publishConfig:e}=u;if(!e)return;const D=["bin","main","exports","types","module"];for(const t of D)e[t]&&(u[t]=e[t])},"applyPublishConfig"),L=a(u=>{if(u.endsWith(".mjs"))return"module";if(u.endsWith(".cjs"))return"commonjs";if(u.endsWith(".d.ts")||u.endsWith(".d.cts")||u.endsWith(".d.mts"))return"types"},"getFileType"),LD=a(u=>u[0]===".","isPath"),Fe=a(u=>u.slice(1).filter(e=>typeof e=="string"&&e[0]!=="."),"getConditions"),bu=a((u,e,D=["exports"])=>u?typeof u=="string"?[{source:{type:"package.json",path:[...D]},type:"exportmap",conditions:[],format:L(u)||e,outputPath:$(u)}]:Array.isArray(u)?u.flatMap((t,n)=>{const r=[...D,n];return typeof t=="string"?LD(t)?{source:{type:"package.json",path:[...r]},type:"exportmap",conditions:Fe(r),format:L(t)||e,outputPath:$(t)}:[]:bu(t,e,r)}):Object.entries(u).flatMap(([t,n])=>{const r=[...D,t];if(typeof n=="string"){const o=Fe(r),s={type:"exportmap",source:{type:"package.json",path:r},outputPath:$(n),conditions:o};return o.includes("types")?{...s,format:"types"}:{...s,format:L(n)||e}}return bu(n,e,r)}):[],"parseExportsMap"),MD=a((u,e)=>{const D=[],t=u.main;t&&D.push({source:{type:"package.json",path:["main"]},type:"legacy",format:L(t)??e,outputPath:$(t)});const n=u.module;n&&D.push({source:{type:"package.json",path:["module"]},type:"legacy",format:"module",outputPath:$(n)});const r=u.types;r&&D.push({source:{type:"package.json",path:["types"]},type:"legacy",format:"types",outputPath:$(r)});const{bin:o}=u;if(o)if(typeof o=="string")D.push({source:{type:"package.json",path:["bin"]},type:"binary",format:L(o)??e,outputPath:$(o)});else for(const[s,i]of Object.entries(o))D.push({source:{type:"package.json",path:["bin",s]},type:"binary",format:L(i)??e,outputPath:$(i)});if(u.exports){const s=bu(u.exports,e);for(const i of s)D.push(i)}return D},"getPackageExports"),WD=a(async(u,e)=>{for(const D of e){const t=u+D;if(await yu(t))return{srcExtension:D,sourcePath:t}}},"tryExtensions"),wu={".d.ts":[".d.ts",".d.mts",".d.cts",".ts",".tsx",".mts",".cts"],".d.mts":[".d.mts",".d.ts",".d.cts",".ts",".tsx",".mts",".cts"],".d.cts":[".d.cts",".d.ts",".d.mts",".ts",".tsx",".mts",".cts"],".js":[".js",".ts",".tsx",".mts",".cts"],".mjs":[".mjs",".js",".cjs",".mts",".cts",".ts",".tsx"],".cjs":[".cjs",".js",".mjs",".mts",".cts",".ts",".tsx"]},de=Object.keys(wu),UD=a(async(u,e)=>{const{outputPath:D}=u,t=de.find(o=>D.endsWith(o));if(!t)return{error:`Unsupported extension (must be ${de.join("|")})`,exportEntry:u};const n=D.slice(e.dist.length,-t.length),r=await WD(pu.join(e.srcResolved,n),wu[t]);return r?{exportEntry:u,distExtension:t,srcdist:e,...r}:{error:`Source file not found: ${pu.join(e.src,n)}(${wu[t].join("|")})`,exportEntry:u}},"getSourcePath"),VD=a(async(u,e,D)=>{RD(e);const t=e.type??"commonjs",n=MD(e,t);D.length>0&&n.push(...D.map(o=>({...o,format:L(o.outputPath)??t})));const r=new Map;return await Promise.all(n.map(o=>{const s=u.find(({dist:l})=>o.outputPath.startsWith(l));if(!s)return{exportEntry:o,error:"Ignoring file outside of dist directories"};const i=r.get(o.outputPath);if(i){if(i.format!==o.format)throw new Error(`Conflicting export types "${i.format}" & "${o.format}" found for ${o.outputPath}`)}else r.set(o.outputPath,o);return UD(o,s)}))},"getEntryPoints"),qD=["peerDependencies","dependencies","optionalDependencies"],vu="@types/",Ce=a((u,e,D=!1)=>{const t=[],{devDependencies:n}=u;for(const r of qD){const o=u[r];if(!o)continue;const s=Object.keys(o);for(const i of s)if(!(i in e))if(i.startsWith(vu)){if(D){let l=i.slice(vu.length);l.includes("__")&&(l=`@${l.replace("__","/")}`),t.push(l)}}else{if(n&&D){const l=vu+i.replace("@","").replace("/","__");n[l]&&!(l in o)&&console.warn(`Recommendation: "${l}" is externalized because "${i}" is in "${r}". Place "${l}" in "${r}" as well so users don't have missing types.`)}t.push(i)}}return t.flatMap(r=>[r,new RegExp(`^${r}/`)])},"getExternalDependencies"),G=Symbol("entry"),zD=a(u=>{const e=Dt(/\.([cm]?[jt]s|[jt]sx)$/);return{name:"esbuild-transform",transform:a(async(D,t)=>{if(!e(t))return null;const n=await zu(D,{...u,supported:{"import-meta":!0},loader:"default",sourcefile:t.replace(/\.[cm]ts/,".ts")});return{code:n.code,map:n.map||null}},"transform")}},"esbuildTransform"),JD=a(u=>{if(u==="es")return"esm";if(u==="cjs"||u==="iife")return u},"getEsbuildFormat"),KD=a(u=>({name:"esbuild-minify",renderChunk:a(async(e,D,t)=>{const n=await zu(e,{...u,format:JD(t.format),minify:!0,keepNames:!0});return{code:n.code,map:n.map||null}},"renderChunk")}),"esbuildMinify"),$u=a((u,e)=>u[0]-e[0]||u[1]-e[1]||u[2]-e[2],"compareSemver"),Ee=a(({target:u})=>{const e=u.some(D=>{if(D=D.trim(),!D.startsWith("node"))return;const t=D.slice(4).split(".").map(Number),n=[t[0],t[1]??0,t[2]??0];return!($u(n,[12,20,0])>=0&&$u(n,[13,0,0])<0||$u(n,[14,13,1])>=0)});return{name:"node-builtins",resolveId:a(D=>{const t=D.startsWith("node:");if(e&&t&&(D=D.slice(5)),rt.includes(D)||t)return{id:D,external:!0}},"resolveId")}},"nodeBuiltins"),GD=a(u=>{const e=u.filter(t=>t.exportEntry.type==="binary");if(e.length===0)return{name:"patch-binary"};let D;return{name:"patch-binary",options:a(()=>{D=new Set(e.flatMap(t=>t.inputNames))},"options"),renderChunk:a((t,n,r)=>{if(!n.isEntry||!n.facadeModuleId||!D.has(n.name))return;const o=new X(t);return o.prepend(`#!/usr/bin/env node
|
|
23
|
+
`),{code:o.toString(),map:r.sourcemap?o.generateMap({hires:!0}):void 0}},"renderChunk"),writeBundle:a(async(t,n)=>{const r=new Set(Object.keys(n).map(o=>$(pu.join(t.dir,o))));await Promise.all(e.map(async({exportEntry:o})=>{const{outputPath:s}=o;r.has(s)&&await I.promises.chmod(s,493)}))},"writeBundle")}},"patchBinary"),he=a(()=>{const u=/\.(?:[mc]?js|jsx)$/;return{name:"resolve-js-to-ts",resolveId(e,D,t){return D&&u.test(e)?this.resolve(e.replace(/js(x?)$/,"ts$1"),D,t):null}}},"resolveJsToTs"),me=a(u=>u!==null&&typeof u=="object","A"),U=a((u,e)=>Object.assign(new Error(`[${u}]: ${e}`),{code:u}),"a"),ge="ERR_INVALID_PACKAGE_CONFIG",xu="ERR_INVALID_PACKAGE_TARGET",HD="ERR_PACKAGE_PATH_NOT_EXPORTED",ZD=/^\d+$/,YD=/^(\.{1,2}|node_modules)$/i,QD=/\/|\\/;var Be=(u=>(u.Export="exports",u.Import="imports",u))(Be||{});const ku=a((u,e,D,t,n)=>{if(e==null)return[];if(typeof e=="string"){const[r,...o]=e.split(QD);if(r===".."||o.some(s=>YD.test(s)))throw U(xu,`Invalid "${u}" target "${e}" defined in the package config`);return[n?e.replace(/\*/g,n):e]}if(Array.isArray(e))return e.flatMap(r=>ku(u,r,D,t,n));if(me(e)){for(const r of Object.keys(e)){if(ZD.test(r))throw U(ge,"Cannot contain numeric property keys");if(r==="default"||t.includes(r))return ku(u,e[r],D,t,n)}return[]}throw U(xu,`Invalid "${u}" target "${e}"`)},"f"),H="*",XD=a((u,e)=>{const D=u.indexOf(H),t=e.indexOf(H);return D===t?e.length>u.length:t>D},"m");function un(u,e){if(!e.includes(H)&&u.hasOwnProperty(e))return[e];let D,t;for(const n of Object.keys(u))if(n.includes(H)){const[r,o,s]=n.split(H);if(s===void 0&&e.startsWith(r)&&e.endsWith(o)){const i=e.slice(r.length,-o.length||void 0);i&&(!D||XD(D,n))&&(D=n,t=i)}}return[D,t]}a(un,"d");const en=a(u=>Object.keys(u).reduce((e,D)=>{const t=D===""||D[0]!==".";if(e===void 0||e===t)return t;throw U(ge,'"exports" cannot contain some keys starting with "." and some not')},void 0),"p"),tn=/^\w+:/,Dn=a((u,e,D)=>{if(!u)throw new Error('"exports" is required');e=e===""?".":`./${e}`,(typeof u=="string"||Array.isArray(u)||me(u)&&en(u))&&(u={".":u});const[t,n]=un(u,e),r=ku(Be.Export,u[t],e,D,n);if(r.length===0)throw U(HD,e==="."?'No "exports" main defined':`Package subpath '${e}' is not defined by "exports"`);for(const o of r)if(!o.startsWith("./")&&!tn.test(o))throw U(xu,`Invalid "exports" target "${o}" defined in the package config`);return r},"v");var nn=Object.defineProperty,F=a((u,e)=>nn(u,"name",{value:e,configurable:!0}),"o");function j(u){return u.startsWith("\\\\?\\")?u:u.replace(/\\/g,"/")}a(j,"E"),F(j,"slash");const ju=F(u=>{const e=I[u];return(D,...t)=>{const n=`${u}:${t.join(":")}`;let r=D?.get(n);return r===void 0&&(r=Reflect.apply(e,I,t),D?.set(n,r)),r}},"cacheFs"),S=ju("existsSync"),rn=ju("readFileSync"),ru=ju("statSync"),ye=F((u,e,D)=>{for(;;){const t=h.posix.join(u,e);if(S(D,t))return t;const n=h.dirname(u);if(n===u)return;u=n}},"findUp"),Ou=/^\.{1,2}(\/.*)?$/,Su=F(u=>{const e=j(u);return Ou.test(e)?e:`./${e}`},"normalizeRelativePath");function Ae(u,e=!1){const D=u.length;let t=0,n="",r=0,o=16,s=0,i=0,l=0,c=0,p=0;function f(C,B){let g=0,w=0;for(;g<C;){let x=u.charCodeAt(t);if(x>=48&&x<=57)w=w*16+x-48;else if(x>=65&&x<=70)w=w*16+x-65+10;else if(x>=97&&x<=102)w=w*16+x-97+10;else break;t++,g++}return g<C&&(w=-1),w}a(f,"_"),F(f,"scanHexDigits");function E(C){t=C,n="",r=0,o=16,p=0}a(E,"d"),F(E,"setPosition");function d(){let C=t;if(u.charCodeAt(t)===48)t++;else for(t++;t<u.length&&M(u.charCodeAt(t));)t++;if(t<u.length&&u.charCodeAt(t)===46)if(t++,t<u.length&&M(u.charCodeAt(t)))for(t++;t<u.length&&M(u.charCodeAt(t));)t++;else return p=3,u.substring(C,t);let B=t;if(t<u.length&&(u.charCodeAt(t)===69||u.charCodeAt(t)===101))if(t++,(t<u.length&&u.charCodeAt(t)===43||u.charCodeAt(t)===45)&&t++,t<u.length&&M(u.charCodeAt(t))){for(t++;t<u.length&&M(u.charCodeAt(t));)t++;B=t}else p=3;return u.substring(C,B)}a(d,"A"),F(d,"scanNumber");function m(){let C="",B=t;for(;;){if(t>=D){C+=u.substring(B,t),p=2;break}const g=u.charCodeAt(t);if(g===34){C+=u.substring(B,t),t++;break}if(g===92){if(C+=u.substring(B,t),t++,t>=D){p=2;break}switch(u.charCodeAt(t++)){case 34:C+='"';break;case 92:C+="\\";break;case 47:C+="/";break;case 98:C+="\b";break;case 102:C+="\f";break;case 110:C+=`
|
|
24
|
+
`;break;case 114:C+="\r";break;case 116:C+=" ";break;case 117:const w=f(4);w>=0?C+=String.fromCharCode(w):p=4;break;default:p=5}B=t;continue}if(g>=0&&g<=31)if(V(g)){C+=u.substring(B,t),p=2;break}else p=6;t++}return C}a(m,"w"),F(m,"scanString");function b(){if(n="",p=0,r=t,i=s,c=l,t>=D)return r=D,o=17;let C=u.charCodeAt(t);if(ou(C)){do t++,n+=String.fromCharCode(C),C=u.charCodeAt(t);while(ou(C));return o=15}if(V(C))return t++,n+=String.fromCharCode(C),C===13&&u.charCodeAt(t)===10&&(t++,n+=`
|
|
25
|
+
`),s++,l=t,o=14;switch(C){case 123:return t++,o=1;case 125:return t++,o=2;case 91:return t++,o=3;case 93:return t++,o=4;case 58:return t++,o=6;case 44:return t++,o=5;case 34:return t++,n=m(),o=10;case 47:const B=t-1;if(u.charCodeAt(t+1)===47){for(t+=2;t<D&&!V(u.charCodeAt(t));)t++;return n=u.substring(B,t),o=12}if(u.charCodeAt(t+1)===42){t+=2;const g=D-1;let w=!1;for(;t<g;){const x=u.charCodeAt(t);if(x===42&&u.charCodeAt(t+1)===47){t+=2,w=!0;break}t++,V(x)&&(x===13&&u.charCodeAt(t)===10&&t++,s++,l=t)}return w||(t++,p=1),n=u.substring(B,t),o=13}return n+=String.fromCharCode(C),t++,o=16;case 45:if(n+=String.fromCharCode(C),t++,t===D||!M(u.charCodeAt(t)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=d(),o=11;default:for(;t<D&&O(C);)t++,C=u.charCodeAt(t);if(r!==t){switch(n=u.substring(r,t),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(C),t++,o=16}}a(b,"y"),F(b,"scanNext");function O(C){if(ou(C)||V(C))return!1;switch(C){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}a(O,"I"),F(O,"isUnknownContentCharacter");function A(){let C;do C=b();while(C>=12&&C<=15);return C}return a(A,"L"),F(A,"scanNextNonTrivia"),{setPosition:E,getPosition:F(()=>t,"getPosition"),scan:e?A:b,getToken:F(()=>o,"getToken"),getTokenValue:F(()=>n,"getTokenValue"),getTokenOffset:F(()=>r,"getTokenOffset"),getTokenLength:F(()=>t-r,"getTokenLength"),getTokenStartLine:F(()=>i,"getTokenStartLine"),getTokenStartCharacter:F(()=>r-c,"getTokenStartCharacter"),getTokenError:F(()=>p,"getTokenError")}}a(Ae,"je"),F(Ae,"createScanner");function ou(u){return u===32||u===9}a(ou,"Q"),F(ou,"isWhiteSpace");function V(u){return u===10||u===13}a(V,"x"),F(V,"isLineBreak");function M(u){return u>=48&&u<=57}a(M,"U"),F(M,"isDigit");var be;(function(u){u[u.lineFeed=10]="lineFeed",u[u.carriageReturn=13]="carriageReturn",u[u.space=32]="space",u[u._0=48]="_0",u[u._1=49]="_1",u[u._2=50]="_2",u[u._3=51]="_3",u[u._4=52]="_4",u[u._5=53]="_5",u[u._6=54]="_6",u[u._7=55]="_7",u[u._8=56]="_8",u[u._9=57]="_9",u[u.a=97]="a",u[u.b=98]="b",u[u.c=99]="c",u[u.d=100]="d",u[u.e=101]="e",u[u.f=102]="f",u[u.g=103]="g",u[u.h=104]="h",u[u.i=105]="i",u[u.j=106]="j",u[u.k=107]="k",u[u.l=108]="l",u[u.m=109]="m",u[u.n=110]="n",u[u.o=111]="o",u[u.p=112]="p",u[u.q=113]="q",u[u.r=114]="r",u[u.s=115]="s",u[u.t=116]="t",u[u.u=117]="u",u[u.v=118]="v",u[u.w=119]="w",u[u.x=120]="x",u[u.y=121]="y",u[u.z=122]="z",u[u.A=65]="A",u[u.B=66]="B",u[u.C=67]="C",u[u.D=68]="D",u[u.E=69]="E",u[u.F=70]="F",u[u.G=71]="G",u[u.H=72]="H",u[u.I=73]="I",u[u.J=74]="J",u[u.K=75]="K",u[u.L=76]="L",u[u.M=77]="M",u[u.N=78]="N",u[u.O=79]="O",u[u.P=80]="P",u[u.Q=81]="Q",u[u.R=82]="R",u[u.S=83]="S",u[u.T=84]="T",u[u.U=85]="U",u[u.V=86]="V",u[u.W=87]="W",u[u.X=88]="X",u[u.Y=89]="Y",u[u.Z=90]="Z",u[u.asterisk=42]="asterisk",u[u.backslash=92]="backslash",u[u.closeBrace=125]="closeBrace",u[u.closeBracket=93]="closeBracket",u[u.colon=58]="colon",u[u.comma=44]="comma",u[u.dot=46]="dot",u[u.doubleQuote=34]="doubleQuote",u[u.minus=45]="minus",u[u.openBrace=123]="openBrace",u[u.openBracket=91]="openBracket",u[u.plus=43]="plus",u[u.slash=47]="slash",u[u.formFeed=12]="formFeed",u[u.tab=9]="tab"})(be||(be={})),new Array(20).fill(0).map((u,e)=>" ".repeat(e));const q=200;new Array(q).fill(0).map((u,e)=>`
|
|
26
26
|
`+" ".repeat(e)),new Array(q).fill(0).map((u,e)=>"\r"+" ".repeat(e)),new Array(q).fill(0).map((u,e)=>`\r
|
|
27
27
|
`+" ".repeat(e)),new Array(q).fill(0).map((u,e)=>`
|
|
28
28
|
`+" ".repeat(e)),new Array(q).fill(0).map((u,e)=>"\r"+" ".repeat(e)),new Array(q).fill(0).map((u,e)=>`\r
|
|
29
|
-
`+" ".repeat(e));var su;(function(u){u.DEFAULT={allowTrailingComma:!1}})(su||(su={}));function Ae(u,e=[],D=su.DEFAULT){let t=null,n=[];const r=[];function o(s){Array.isArray(n)?n.push(s):t!==null&&(n[t]=s)}return a(o,"u"),p(o,"onValue"),be(u,{onObjectBegin:p(()=>{const s={};o(s),r.push(n),n=s,t=null},"onObjectBegin"),onObjectProperty:p(s=>{t=s},"onObjectProperty"),onObjectEnd:p(()=>{n=r.pop()},"onObjectEnd"),onArrayBegin:p(()=>{const s=[];o(s),r.push(n),n=s,t=null},"onArrayBegin"),onArrayEnd:p(()=>{n=r.pop()},"onArrayEnd"),onLiteralValue:o,onError:p((s,i,l)=>{e.push({error:s,offset:i,length:l})},"onError")},D),n[0]}a(Ae,"ye"),p(Ae,"parse$1");function be(u,e,D=su.DEFAULT){const t=Be(u,!1),n=[];function r(y){return y?()=>y(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}a(r,"i"),p(r,"toNoArgVisit");function o(y){return y?()=>y(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>n.slice()):()=>!0}a(o,"u"),p(o,"toNoArgVisitWithPath");function s(y){return y?v=>y(v,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}a(s,"f"),p(s,"toOneArgVisit");function i(y){return y?v=>y(v,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>n.slice()):()=>!0}a(i,"r"),p(i,"toOneArgVisitWithPath");const l=o(e.onObjectBegin),f=i(e.onObjectProperty),F=r(e.onObjectEnd),c=o(e.onArrayBegin),E=r(e.onArrayEnd),C=i(e.onLiteralValue),h=s(e.onSeparator),b=r(e.onComment),O=s(e.onError),A=D&&D.disallowComments,d=D&&D.allowTrailingComma;function B(){for(;;){const y=t.scan();switch(t.getTokenError()){case 4:g(14);break;case 5:g(15);break;case 3:g(13);break;case 1:A||g(11);break;case 2:g(12);break;case 6:g(16);break}switch(y){case 12:case 13:A?g(10):b();break;case 16:g(1);break;case 15:case 14:break;default:return y}}}a(B,"k"),p(B,"scanNext");function g(y,v=[],Uu=[]){if(O(y),v.length+Uu.length>0){let Q=t.getToken();for(;Q!==17;){if(v.indexOf(Q)!==-1){B();break}else if(Uu.indexOf(Q)!==-1)break;Q=B()}}}a(g,"p"),p(g,"handleError");function w(y){const v=t.getTokenValue();return y?C(v):(f(v),n.push(v)),B(),!0}a(w,"F"),p(w,"parseString");function x(){switch(t.getToken()){case 11:const y=t.getTokenValue();let v=Number(y);isNaN(v)&&(g(2),v=0),C(v);break;case 7:C(null);break;case 8:C(!0);break;case 9:C(!1);break;default:return!1}return B(),!0}a(x,"j"),p(x,"parseLiteral");function Lu(){return t.getToken()!==10?(g(3,[],[2,5]),!1):(w(!1),t.getToken()===6?(h(":"),B(),Y()||g(4,[],[2,5])):g(5,[],[2,5]),n.pop(),!0)}a(Lu,"a"),p(Lu,"parseProperty");function Mu(){l(),B();let y=!1;for(;t.getToken()!==2&&t.getToken()!==17;){if(t.getToken()===5){if(y||g(4,[],[]),h(","),B(),t.getToken()===2&&d)break}else y&&g(6,[],[]);Lu()||g(4,[],[2,5]),y=!0}return F(),t.getToken()!==2?g(7,[2],[]):B(),!0}a(Mu,"N"),p(Mu,"parseObject");function Wu(){c(),B();let y=!0,v=!1;for(;t.getToken()!==4&&t.getToken()!==17;){if(t.getToken()===5){if(v||g(4,[],[]),h(","),B(),t.getToken()===4&&d)break}else v&&g(6,[],[]);y?(n.push(0),y=!1):n[n.length-1]++,Y()||g(4,[],[4,5]),v=!0}return E(),y||n.pop(),t.getToken()!==4?g(8,[4],[]):B(),!0}a(Wu,"be"),p(Wu,"parseArray");function Y(){switch(t.getToken()){case 3:return Wu();case 1:return Mu();case 10:return w(!0);default:return x()}}return a(Y,"J"),p(Y,"parseValue"),B(),t.getToken()===17?D.allowEmptyContent?!0:(g(4,[],[]),!1):Y()?(t.getToken()!==17&&g(9,[],[]),!0):(g(4,[],[]),!1)}a(be,"Fe"),p(be,"visit");var we;(function(u){u[u.None=0]="None",u[u.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",u[u.UnexpectedEndOfString=2]="UnexpectedEndOfString",u[u.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",u[u.InvalidUnicode=4]="InvalidUnicode",u[u.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",u[u.InvalidCharacter=6]="InvalidCharacter"})(we||(we={}));var ve;(function(u){u[u.OpenBraceToken=1]="OpenBraceToken",u[u.CloseBraceToken=2]="CloseBraceToken",u[u.OpenBracketToken=3]="OpenBracketToken",u[u.CloseBracketToken=4]="CloseBracketToken",u[u.CommaToken=5]="CommaToken",u[u.ColonToken=6]="ColonToken",u[u.NullKeyword=7]="NullKeyword",u[u.TrueKeyword=8]="TrueKeyword",u[u.FalseKeyword=9]="FalseKeyword",u[u.StringLiteral=10]="StringLiteral",u[u.NumericLiteral=11]="NumericLiteral",u[u.LineCommentTrivia=12]="LineCommentTrivia",u[u.BlockCommentTrivia=13]="BlockCommentTrivia",u[u.LineBreakTrivia=14]="LineBreakTrivia",u[u.Trivia=15]="Trivia",u[u.Unknown=16]="Unknown",u[u.EOF=17]="EOF"})(ve||(ve={}));const Dn=Ae;var $e;(function(u){u[u.InvalidSymbol=1]="InvalidSymbol",u[u.InvalidNumberFormat=2]="InvalidNumberFormat",u[u.PropertyNameExpected=3]="PropertyNameExpected",u[u.ValueExpected=4]="ValueExpected",u[u.ColonExpected=5]="ColonExpected",u[u.CommaExpected=6]="CommaExpected",u[u.CloseBraceExpected=7]="CloseBraceExpected",u[u.CloseBracketExpected=8]="CloseBracketExpected",u[u.EndOfFileExpected=9]="EndOfFileExpected",u[u.InvalidCommentToken=10]="InvalidCommentToken",u[u.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",u[u.UnexpectedEndOfString=12]="UnexpectedEndOfString",u[u.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",u[u.InvalidUnicode=14]="InvalidUnicode",u[u.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",u[u.InvalidCharacter=16]="InvalidCharacter"})($e||($e={}));const xe=p((u,e)=>Dn(tn(e,u,"utf8")),"readJsonc"),Ou=Symbol("implicitBaseUrl"),_="${configDir}",nn=p(()=>{const{findPnpApi:u}=et;return u&&u(process.cwd())},"getPnpApi"),Su=p((u,e,D,t)=>{const n=`resolveFromPackageJsonPath:${u}:${e}:${D}`;if(t!=null&&t.has(n))return t.get(n);const r=xe(u,t);if(!r)return;let o=e||"tsconfig.json";if(!D&&r.exports)try{const[s]=un(r.exports,e,["require","types"]);o=s}catch{return!1}else!e&&r.tsconfig&&(o=r.tsconfig);return o=m.join(u,"..",o),t?.set(n,o),o},"resolveFromPackageJsonPath"),Tu="package.json",Pu="tsconfig.json",rn=p((u,e,D)=>{let t=u;if(u===".."&&(t=m.join(t,Pu)),u[0]==="."&&(t=m.resolve(e,t)),m.isAbsolute(t)){if(S(D,t)){if(ru(D,t).isFile())return t}else if(!t.endsWith(".json")){const E=`${t}.json`;if(S(D,E))return E}return}const[n,...r]=u.split("/"),o=n[0]==="@"?`${n}/${r.shift()}`:n,s=r.join("/"),i=nn();if(i){const{resolveRequest:E}=i;try{if(o===u){const C=E(m.join(o,Tu),e);if(C){const h=Su(C,s,!1,D);if(h&&S(D,h))return h}}else{let C;try{C=E(u,e,{extensions:[".json"]})}catch{C=E(m.join(u,Pu),e)}if(C)return C}}catch{}}const l=ge(m.resolve(e),m.join("node_modules",o),D);if(!l||!ru(D,l).isDirectory())return;const f=m.join(l,Tu);if(S(D,f)){const E=Su(f,s,!1,D);if(E===!1)return;if(E&&S(D,E)&&ru(D,E).isFile())return E}const F=m.join(l,s),c=F.endsWith(".json");if(!c){const E=`${F}.json`;if(S(D,E))return E}if(S(D,F)){if(ru(D,F).isDirectory()){const E=m.join(F,Tu);if(S(D,E)){const h=Su(E,"",!0,D);if(h&&S(D,h))return h}const C=m.join(F,Pu);if(S(D,C))return C}else if(c)return F}},"resolveExtendsPath"),Iu=p((u,e)=>ju(m.relative(u,e)),"pathRelative"),ke=["files","include","exclude"],on=p((u,e,D,t)=>{const n=rn(u,e,t);if(!n)throw new Error(`File '${u}' not found.`);if(D.has(n))throw new Error(`Circularity detected while resolving configuration: ${n}`);D.add(n);const r=m.dirname(n),o=je(n,t,D);delete o.references;const{compilerOptions:s}=o;if(s){const{baseUrl:i}=s;i&&!i.startsWith(_)&&(s.baseUrl=j(m.relative(e,m.join(r,i)))||"./");let{outDir:l}=s;l&&(l.startsWith(_)||(l=m.relative(e,m.join(r,l))),s.outDir=j(l)||"./")}for(const i of ke){const l=o[i];l&&(o[i]=l.map(f=>f.startsWith(_)?f:j(m.relative(e,m.join(r,f)))))}return o},"resolveExtends"),sn=["outDir","declarationDir"],je=p((u,e,D=new Set)=>{let t;try{t=xe(u,e)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${u}`)}if(typeof t!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${u}`);const n=m.dirname(u);if(t.compilerOptions){const{compilerOptions:r}=t;r.paths&&!r.baseUrl&&(r[Ou]=n)}if(t.extends){const r=Array.isArray(t.extends)?t.extends:[t.extends];delete t.extends;for(const o of r.reverse()){const s=on(o,n,new Set(D),e),i={...s,...t,compilerOptions:{...s.compilerOptions,...t.compilerOptions}};s.watchOptions&&(i.watchOptions={...s.watchOptions,...t.watchOptions}),t=i}}if(t.compilerOptions){const{compilerOptions:r}=t,o=["baseUrl","rootDir"];for(const s of o){const i=r[s];if(i&&!i.startsWith(_)){const l=m.resolve(n,i),f=Iu(n,l);r[s]=f}}for(const s of sn){let i=r[s];i&&(Array.isArray(t.exclude)||(t.exclude=[]),t.exclude.includes(i)||t.exclude.push(i),i.startsWith(_)||(i=ju(i)),r[s]=i)}}else t.compilerOptions={};if(t.include?(t.include=t.include.map(j),t.files&&delete t.files):t.files&&(t.files=t.files.map(r=>r.startsWith(_)?r:ju(r))),t.watchOptions){const{watchOptions:r}=t;r.excludeDirectories&&(r.excludeDirectories=r.excludeDirectories.map(o=>j(m.resolve(n,o))))}return t},"_parseTsconfig"),iu=p((u,e)=>{if(u.startsWith(_))return j(m.join(e,u.slice(_.length)))},"interpolateConfigDir"),an=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],ln=p(u=>{if(u.strict){const e=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const D of e)u[D]===void 0&&(u[D]=!0)}if(u.target){let e=u.target.toLowerCase();e==="es2015"&&(e="es6"),u.target=e,e==="esnext"&&(u.module!=null||(u.module="es6"),u.useDefineForClassFields!=null||(u.useDefineForClassFields=!0)),(e==="es6"||e==="es2016"||e==="es2017"||e==="es2018"||e==="es2019"||e==="es2020"||e==="es2021"||e==="es2022"||e==="es2023"||e==="es2024")&&(u.module!=null||(u.module="es6")),(e==="es2022"||e==="es2023"||e==="es2024")&&(u.useDefineForClassFields!=null||(u.useDefineForClassFields=!0))}if(u.module){let e=u.module.toLowerCase();e==="es2015"&&(e="es6"),u.module=e,(e==="es6"||e==="es2020"||e==="es2022"||e==="esnext"||e==="none"||e==="system"||e==="umd"||e==="amd")&&(u.moduleResolution!=null||(u.moduleResolution="classic")),e==="system"&&(u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0)),(e==="node16"||e==="nodenext"||e==="preserve")&&(u.esModuleInterop!=null||(u.esModuleInterop=!0),u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0)),(e==="node16"||e==="nodenext")&&(u.moduleDetection!=null||(u.moduleDetection="force"),u.useDefineForClassFields!=null||(u.useDefineForClassFields=!0)),e==="node16"&&(u.target!=null||(u.target="es2022"),u.moduleResolution!=null||(u.moduleResolution="node16")),e==="nodenext"&&(u.target!=null||(u.target="esnext"),u.moduleResolution!=null||(u.moduleResolution="nodenext")),e==="preserve"&&(u.moduleResolution!=null||(u.moduleResolution="bundler"))}if(u.moduleResolution){let e=u.moduleResolution.toLowerCase();e==="node"&&(e="node10"),u.moduleResolution=e,(e==="node16"||e==="nodenext"||e==="bundler")&&(u.resolvePackageJsonExports!=null||(u.resolvePackageJsonExports=!0),u.resolvePackageJsonImports!=null||(u.resolvePackageJsonImports=!0)),e==="bundler"&&(u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0),u.resolveJsonModule!=null||(u.resolveJsonModule=!0))}u.esModuleInterop&&(u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0)),u.verbatimModuleSyntax&&(u.isolatedModules!=null||(u.isolatedModules=!0),u.preserveConstEnums!=null||(u.preserveConstEnums=!0)),u.isolatedModules&&(u.preserveConstEnums!=null||(u.preserveConstEnums=!0))},"normalizeCompilerOptions"),Oe=p((u,e=new Map)=>{const D=m.resolve(u),t=je(D,e),n=m.dirname(D),{compilerOptions:r}=t;if(r){for(const s of an){const i=r[s];if(i){const l=iu(i,n);r[s]=l?Iu(n,l):i}}for(const s of["rootDirs","typeRoots"]){const i=r[s];i&&(r[s]=i.map(l=>{const f=iu(l,n);return f?Iu(n,f):l}))}const{paths:o}=r;if(o)for(const s of Object.keys(o))o[s]=o[s].map(i=>{var l;return(l=iu(i,n))!=null?l:i});ln(r)}for(const o of ke){const s=t[o];s&&(t[o]=s.map(i=>{var l;return(l=iu(i,n))!=null?l:i}))}return t},"parseTsconfig"),cn=p((u=process.cwd(),e="tsconfig.json",D=new Map)=>{const t=ge(j(u),e,D);if(!t)return null;const n=Oe(t,D);return{path:t,config:n}},"getTsconfig"),fn=/\*/g,Se=p((u,e)=>{const D=u.match(fn);if(D&&D.length>1)throw new Error(e)},"assertStarCount"),pn=p(u=>{if(u.includes("*")){const[e,D]=u.split("*");return{prefix:e,suffix:D}}return u},"parsePattern"),Fn=p(({prefix:u,suffix:e},D)=>D.startsWith(u)&&D.endsWith(e),"isPatternMatch"),Cn=p((u,e,D)=>Object.entries(u).map(([t,n])=>(Se(t,`Pattern '${t}' can have at most one '*' character.`),{pattern:pn(t),substitutions:n.map(r=>{if(Se(r,`Substitution '${r}' in pattern '${t}' can have at most one '*' character.`),!e&&!ku.test(r))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return m.resolve(D,r)})})),"parsePaths"),dn=p(u=>{const{compilerOptions:e}=u.config;if(!e)return null;const{baseUrl:D,paths:t}=e;if(!D&&!t)return null;const n=Ou in e&&e[Ou],r=m.resolve(m.dirname(u.path),D||n||"."),o=t?Cn(t,D,r):[];return s=>{if(ku.test(s))return[];const i=[];for(const c of o){if(c.pattern===s)return c.substitutions.map(j);typeof c.pattern!="string"&&i.push(c)}let l,f=-1;for(const c of i)Fn(c.pattern,s)&&c.pattern.prefix.length>f&&(f=c.pattern.prefix.length,l=c);if(!l)return D?[j(m.join(r,s))]:[];const F=s.slice(l.pattern.prefix.length,s.length-l.pattern.suffix.length);return l.substitutions.map(c=>j(c.replace("*",F)))}},"createPathsMatcher"),Te=p(u=>{let e="";for(let D=0;D<u.length;D+=1){const t=u[D],n=t.toUpperCase();e+=t===n?t.toLowerCase():n}return e},"s"),En=65,hn=97,mn=p(()=>Math.floor(Math.random()*26),"m"),gn=p(u=>Array.from({length:u},()=>String.fromCodePoint(mn()+(Math.random()>.5?En:hn))).join(""),"S"),Bn=p((u=Dt)=>{const e=process.execPath;if(u.existsSync(e))return!u.existsSync(Te(e));const D=`/${gn(10)}`;u.writeFileSync(D,"");const t=!u.existsSync(Te(D));return u.unlinkSync(D),t},"l"),{join:au}=m.posix,_u={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},yn=p(u=>{const e=[..._u.ts],D=[..._u.cts],t=[..._u.mts];return u!=null&&u.allowJs&&(e.push(".js",".jsx"),D.push(".cjs"),t.push(".mjs")),[...e,...D,...t]},"getSupportedExtensions"),An=p(u=>{const e=[];if(!u)return e;const{outDir:D,declarationDir:t}=u;return D&&e.push(D),t&&e.push(t),e},"getDefaultExcludeSpec"),Pe=p(u=>u.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),bn=["node_modules","bower_components","jspm_packages"],Nu=`(?!(${bn.join("|")})(/|$))`,wn=/(?:^|\/)[^.*?]+$/,Ie="**/*",lu="[^/]",Ru="[^./]",_e=process.platform==="win32";p(({config:u,path:e},D=Bn())=>{if("extends"in u)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!m.isAbsolute(e))throw new Error("The tsconfig path must be absolute");_e&&(e=j(e));const t=m.dirname(e),{files:n,include:r,exclude:o,compilerOptions:s}=u,i=n?.map(C=>au(t,C)),l=yn(s),f=D?"":"i",F=(o||An(s)).map(C=>{const h=au(t,C),b=Pe(h).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${lu}*`).replaceAll(String.raw`\?`,lu);return new RegExp(`^${b}($|/)`,f)}),c=n||r?r:[Ie],E=c?c.map(C=>{let h=au(t,C);wn.test(h)&&(h=au(h,Ie));const b=Pe(h).replaceAll(String.raw`/\*\*`,`(/${Nu}${Ru}${lu}*)*?`).replaceAll(/(\/)?\\\*/g,(O,A)=>{const d=`(${Ru}|(\\.(?!min\\.js$))?)*`;return A?`/${Nu}${Ru}${d}`:d}).replaceAll(/(\/)?\\\?/g,(O,A)=>{const d=lu;return A?`/${Nu}${d}`:d});return new RegExp(`^${b}$`,f)}):void 0;return C=>{if(!m.isAbsolute(C))throw new Error("filePath must be absolute");if(_e&&(C=j(C)),i!=null&&i.includes(C)||!(!l.some(h=>C.endsWith(h))||F.some(h=>h.test(C)))&&E&&E.some(h=>h.test(C)))return u}},"createFilesMatcher");const Ne="resolve-tsconfig-paths",vn=a(u=>u[0]===".","isRelative"),$n=a(u=>u[0]==="/"||/^[\s\S]:/.test(u),"isAbsolute"),Re=a(u=>{const e=dn(u);return e?{name:Ne,async resolveId(D,t,n){if(!t||vn(D)||$n(D)||D.startsWith("\0"))return null;const r=e(D);for(const o of r){const s=await this.resolve(o,t,{skipSelf:!0,...n});if(s)return s}return null}}:{name:Ne}},"resolveTsconfigPaths"),Le=/^#!.*/,xn=a(()=>({name:"strip-hashbang",transform:a(u=>{if(!Le.test(u))return null;const e=new X(u);return e.replace(Le,""),{code:e.toString(),map:e.generateMap({hires:!0})}},"transform")}),"stripHashbang");class kn{static{a(this,"WalkerBase")}constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:a(()=>this.should_skip=!0,"skip"),remove:a(()=>this.should_remove=!0,"remove"),replace:a(e=>this.replacement=e,"replace")}}replace(e,D,t,n){e&&D&&(t!=null?e[D][t]=n:e[D]=n)}remove(e,D,t){e&&D&&(t!=null?e[D].splice(t,1):delete e[D])}}class jn extends kn{static{a(this,"SyncWalker")}constructor(e,D){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:a(()=>this.should_skip=!0,"skip"),remove:a(()=>this.should_remove=!0,"remove"),replace:a(t=>this.replacement=t,"replace")},this.enter=e,this.leave=D}visit(e,D,t,n){if(e){if(this.enter){const o=this.should_skip,s=this.should_remove,i=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,D,t,n),this.replacement&&(e=this.replacement,this.replace(D,t,n,e)),this.should_remove&&this.remove(D,t,n);const l=this.should_skip,f=this.should_remove;if(this.should_skip=o,this.should_remove=s,this.replacement=i,l)return e;if(f)return null}let r;for(r in e){const o=e[r];if(o&&typeof o=="object")if(Array.isArray(o)){const s=o;for(let i=0;i<s.length;i+=1){const l=s[i];Me(l)&&(this.visit(l,e,r,i)||i--)}}else Me(o)&&this.visit(o,e,r,null)}if(this.leave){const o=this.replacement,s=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,D,t,n),this.replacement&&(e=this.replacement,this.replace(D,t,n,e)),this.should_remove&&this.remove(D,t,n);const i=this.should_remove;if(this.replacement=o,this.should_remove=s,i)return null}}return e}}function Me(u){return u!==null&&typeof u=="object"&&"type"in u&&typeof u.type=="string"}a(Me,"isNode");function On(u,{enter:e,leave:D}){return new jn(e,D).visit(u,null)}a(On,"walk");const Sn=a(()=>{const u='import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);';return{name:"esmInjectCreateRequire",renderChunk(e,D,t){if(t.format!=="es"||!/\brequire\b/.test(e))return null;const n=this.parse(e);let r=nt(n,"scope"),o=!1;if(On(n,{enter(i,l){i.scope&&(r=i.scope),!(i.type!=="Identifier"||i.name!=="require")&&(l?.type==="Property"&&l.key===i&&!l.compute||l?.type!=="MemberExpression"&&(r.contains("require")||(o=!0,this.skip())))},leave:a(i=>{i.scope&&(r=r.parent)},"leave")}),!o)return null;const s=new X(e);return s.prepend(u),{code:s.toString(),map:s.generateMap({hires:!0})}}}},"esmInjectCreateRequire"),cu=a(u=>u.replace("\0","").split("?")[0],"cleanRollupId"),Tn=a(u=>{try{return ot(u)}catch{return{exports:[],reexports:[]}}},"safeParse"),Pn=a(()=>{const u=new Map,e=a((D,t=new Set)=>{const n=cu(D);if(t.has(n))return[];t.add(n);const r=u.get(n);if(!r)return[];const o=[...r.exports];for(const s of r.reexports)o.push(...e(s,t));return o},"getFinalExports");return{name:"cjs-annotate-exports",buildStart:a(async()=>{await rt(),u.clear()},"buildStart"),async transform(D,t){const n=cu(t);if(!/\.c?js$/.test(n)||!D.includes("exports"))return;const{exports:r,reexports:o}=Tn(D);if(r.length===0&&o.length===0)return;const i=(await Promise.all(o.map(async l=>{const f=await this.resolve(l,t);return f?cu(f.id):""}))).filter(Boolean);u.set(n,{exports:r,reexports:i})},renderChunk:{order:"post",handler(D,t,n){if(n.format!=="cjs"||!t.isEntry||!t.facadeModuleId)return null;const r=cu(t.facadeModuleId),o=[...new Set(e(r))];if(o.length>0){const s=new X(D);return s.append(`
|
|
30
|
-
0&&(module.exports={${o.join(",")}});`),{code:s.toString(),map:s.generateMap({hires:!0})}}}}}},"cjsAnnotateExports"),
|
|
29
|
+
`+" ".repeat(e));var su;(function(u){u.DEFAULT={allowTrailingComma:!1}})(su||(su={}));function we(u,e=[],D=su.DEFAULT){let t=null,n=[];const r=[];function o(s){Array.isArray(n)?n.push(s):t!==null&&(n[t]=s)}return a(o,"u"),F(o,"onValue"),ve(u,{onObjectBegin:F(()=>{const s={};o(s),r.push(n),n=s,t=null},"onObjectBegin"),onObjectProperty:F(s=>{t=s},"onObjectProperty"),onObjectEnd:F(()=>{n=r.pop()},"onObjectEnd"),onArrayBegin:F(()=>{const s=[];o(s),r.push(n),n=s,t=null},"onArrayBegin"),onArrayEnd:F(()=>{n=r.pop()},"onArrayEnd"),onLiteralValue:o,onError:F((s,i,l)=>{e.push({error:s,offset:i,length:l})},"onError")},D),n[0]}a(we,"ye"),F(we,"parse$1");function ve(u,e,D=su.DEFAULT){const t=Ae(u,!1),n=[];function r(y){return y?()=>y(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}a(r,"i"),F(r,"toNoArgVisit");function o(y){return y?()=>y(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>n.slice()):()=>!0}a(o,"u"),F(o,"toNoArgVisitWithPath");function s(y){return y?v=>y(v,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}a(s,"f"),F(s,"toOneArgVisit");function i(y){return y?v=>y(v,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>n.slice()):()=>!0}a(i,"r"),F(i,"toOneArgVisitWithPath");const l=o(e.onObjectBegin),c=i(e.onObjectProperty),p=r(e.onObjectEnd),f=o(e.onArrayBegin),E=r(e.onArrayEnd),d=i(e.onLiteralValue),m=s(e.onSeparator),b=r(e.onComment),O=s(e.onError),A=D&&D.disallowComments,C=D&&D.allowTrailingComma;function B(){for(;;){const y=t.scan();switch(t.getTokenError()){case 4:g(14);break;case 5:g(15);break;case 3:g(13);break;case 1:A||g(11);break;case 2:g(12);break;case 6:g(16);break}switch(y){case 12:case 13:A?g(10):b();break;case 16:g(1);break;case 15:case 14:break;default:return y}}}a(B,"k"),F(B,"scanNext");function g(y,v=[],qu=[]){if(O(y),v.length+qu.length>0){let Q=t.getToken();for(;Q!==17;){if(v.indexOf(Q)!==-1){B();break}else if(qu.indexOf(Q)!==-1)break;Q=B()}}}a(g,"p"),F(g,"handleError");function w(y){const v=t.getTokenValue();return y?d(v):(c(v),n.push(v)),B(),!0}a(w,"F"),F(w,"parseString");function x(){switch(t.getToken()){case 11:const y=t.getTokenValue();let v=Number(y);isNaN(v)&&(g(2),v=0),d(v);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return!1}return B(),!0}a(x,"j"),F(x,"parseLiteral");function Wu(){return t.getToken()!==10?(g(3,[],[2,5]),!1):(w(!1),t.getToken()===6?(m(":"),B(),Y()||g(4,[],[2,5])):g(5,[],[2,5]),n.pop(),!0)}a(Wu,"a"),F(Wu,"parseProperty");function Uu(){l(),B();let y=!1;for(;t.getToken()!==2&&t.getToken()!==17;){if(t.getToken()===5){if(y||g(4,[],[]),m(","),B(),t.getToken()===2&&C)break}else y&&g(6,[],[]);Wu()||g(4,[],[2,5]),y=!0}return p(),t.getToken()!==2?g(7,[2],[]):B(),!0}a(Uu,"N"),F(Uu,"parseObject");function Vu(){f(),B();let y=!0,v=!1;for(;t.getToken()!==4&&t.getToken()!==17;){if(t.getToken()===5){if(v||g(4,[],[]),m(","),B(),t.getToken()===4&&C)break}else v&&g(6,[],[]);y?(n.push(0),y=!1):n[n.length-1]++,Y()||g(4,[],[4,5]),v=!0}return E(),y||n.pop(),t.getToken()!==4?g(8,[4],[]):B(),!0}a(Vu,"be"),F(Vu,"parseArray");function Y(){switch(t.getToken()){case 3:return Vu();case 1:return Uu();case 10:return w(!0);default:return x()}}return a(Y,"J"),F(Y,"parseValue"),B(),t.getToken()===17?D.allowEmptyContent?!0:(g(4,[],[]),!1):Y()?(t.getToken()!==17&&g(9,[],[]),!0):(g(4,[],[]),!1)}a(ve,"Fe"),F(ve,"visit");var $e;(function(u){u[u.None=0]="None",u[u.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",u[u.UnexpectedEndOfString=2]="UnexpectedEndOfString",u[u.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",u[u.InvalidUnicode=4]="InvalidUnicode",u[u.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",u[u.InvalidCharacter=6]="InvalidCharacter"})($e||($e={}));var xe;(function(u){u[u.OpenBraceToken=1]="OpenBraceToken",u[u.CloseBraceToken=2]="CloseBraceToken",u[u.OpenBracketToken=3]="OpenBracketToken",u[u.CloseBracketToken=4]="CloseBracketToken",u[u.CommaToken=5]="CommaToken",u[u.ColonToken=6]="ColonToken",u[u.NullKeyword=7]="NullKeyword",u[u.TrueKeyword=8]="TrueKeyword",u[u.FalseKeyword=9]="FalseKeyword",u[u.StringLiteral=10]="StringLiteral",u[u.NumericLiteral=11]="NumericLiteral",u[u.LineCommentTrivia=12]="LineCommentTrivia",u[u.BlockCommentTrivia=13]="BlockCommentTrivia",u[u.LineBreakTrivia=14]="LineBreakTrivia",u[u.Trivia=15]="Trivia",u[u.Unknown=16]="Unknown",u[u.EOF=17]="EOF"})(xe||(xe={}));const on=we;var ke;(function(u){u[u.InvalidSymbol=1]="InvalidSymbol",u[u.InvalidNumberFormat=2]="InvalidNumberFormat",u[u.PropertyNameExpected=3]="PropertyNameExpected",u[u.ValueExpected=4]="ValueExpected",u[u.ColonExpected=5]="ColonExpected",u[u.CommaExpected=6]="CommaExpected",u[u.CloseBraceExpected=7]="CloseBraceExpected",u[u.CloseBracketExpected=8]="CloseBracketExpected",u[u.EndOfFileExpected=9]="EndOfFileExpected",u[u.InvalidCommentToken=10]="InvalidCommentToken",u[u.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",u[u.UnexpectedEndOfString=12]="UnexpectedEndOfString",u[u.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",u[u.InvalidUnicode=14]="InvalidUnicode",u[u.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",u[u.InvalidCharacter=16]="InvalidCharacter"})(ke||(ke={}));const je=F((u,e)=>on(rn(e,u,"utf8")),"readJsonc"),Tu=Symbol("implicitBaseUrl"),_="${configDir}",sn=F(()=>{const{findPnpApi:u}=nt;return u&&u(process.cwd())},"getPnpApi"),Pu=F((u,e,D,t)=>{const n=`resolveFromPackageJsonPath:${u}:${e}:${D}`;if(t!=null&&t.has(n))return t.get(n);const r=je(u,t);if(!r)return;let o=e||"tsconfig.json";if(!D&&r.exports)try{const[s]=Dn(r.exports,e,["require","types"]);o=s}catch{return!1}else!e&&r.tsconfig&&(o=r.tsconfig);return o=h.join(u,"..",o),t?.set(n,o),o},"resolveFromPackageJsonPath"),Iu="package.json",_u="tsconfig.json",an=F((u,e,D)=>{let t=u;if(u===".."&&(t=h.join(t,_u)),u[0]==="."&&(t=h.resolve(e,t)),h.isAbsolute(t)){if(S(D,t)){if(ru(D,t).isFile())return t}else if(!t.endsWith(".json")){const E=`${t}.json`;if(S(D,E))return E}return}const[n,...r]=u.split("/"),o=n[0]==="@"?`${n}/${r.shift()}`:n,s=r.join("/"),i=sn();if(i){const{resolveRequest:E}=i;try{if(o===u){const d=E(h.join(o,Iu),e);if(d){const m=Pu(d,s,!1,D);if(m&&S(D,m))return m}}else{let d;try{d=E(u,e,{extensions:[".json"]})}catch{d=E(h.join(u,_u),e)}if(d)return d}}catch{}}const l=ye(h.resolve(e),h.join("node_modules",o),D);if(!l||!ru(D,l).isDirectory())return;const c=h.join(l,Iu);if(S(D,c)){const E=Pu(c,s,!1,D);if(E===!1)return;if(E&&S(D,E)&&ru(D,E).isFile())return E}const p=h.join(l,s),f=p.endsWith(".json");if(!f){const E=`${p}.json`;if(S(D,E))return E}if(S(D,p)){if(ru(D,p).isDirectory()){const E=h.join(p,Iu);if(S(D,E)){const m=Pu(E,"",!0,D);if(m&&S(D,m))return m}const d=h.join(p,_u);if(S(D,d))return d}else if(f)return p}},"resolveExtendsPath"),Nu=F((u,e)=>Su(h.relative(u,e)),"pathRelative"),Oe=["files","include","exclude"],ln=F((u,e,D,t)=>{const n=an(u,e,t);if(!n)throw new Error(`File '${u}' not found.`);if(D.has(n))throw new Error(`Circularity detected while resolving configuration: ${n}`);D.add(n);const r=h.dirname(n),o=Se(n,t,D);delete o.references;const{compilerOptions:s}=o;if(s){const{baseUrl:i}=s;i&&!i.startsWith(_)&&(s.baseUrl=j(h.relative(e,h.join(r,i)))||"./");let{outDir:l}=s;l&&(l.startsWith(_)||(l=h.relative(e,h.join(r,l))),s.outDir=j(l)||"./")}for(const i of Oe){const l=o[i];l&&(o[i]=l.map(c=>c.startsWith(_)?c:j(h.relative(e,h.join(r,c)))))}return o},"resolveExtends"),cn=["outDir","declarationDir"],Se=F((u,e,D=new Set)=>{let t;try{t=je(u,e)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${u}`)}if(typeof t!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${u}`);const n=h.dirname(u);if(t.compilerOptions){const{compilerOptions:r}=t;r.paths&&!r.baseUrl&&(r[Tu]=n)}if(t.extends){const r=Array.isArray(t.extends)?t.extends:[t.extends];delete t.extends;for(const o of r.reverse()){const s=ln(o,n,new Set(D),e),i={...s,...t,compilerOptions:{...s.compilerOptions,...t.compilerOptions}};s.watchOptions&&(i.watchOptions={...s.watchOptions,...t.watchOptions}),t=i}}if(t.compilerOptions){const{compilerOptions:r}=t,o=["baseUrl","rootDir"];for(const s of o){const i=r[s];if(i&&!i.startsWith(_)){const l=h.resolve(n,i),c=Nu(n,l);r[s]=c}}for(const s of cn){let i=r[s];i&&(Array.isArray(t.exclude)||(t.exclude=[]),t.exclude.includes(i)||t.exclude.push(i),i.startsWith(_)||(i=Su(i)),r[s]=i)}}else t.compilerOptions={};if(t.include?(t.include=t.include.map(j),t.files&&delete t.files):t.files&&(t.files=t.files.map(r=>r.startsWith(_)?r:Su(r))),t.watchOptions){const{watchOptions:r}=t;r.excludeDirectories&&(r.excludeDirectories=r.excludeDirectories.map(o=>j(h.resolve(n,o))))}return t},"_parseTsconfig"),iu=F((u,e)=>{if(u.startsWith(_))return j(h.join(e,u.slice(_.length)))},"interpolateConfigDir"),fn=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],pn=F(u=>{if(u.strict){const e=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const D of e)u[D]===void 0&&(u[D]=!0)}if(u.target){let e=u.target.toLowerCase();e==="es2015"&&(e="es6"),u.target=e,e==="esnext"&&(u.module!=null||(u.module="es6"),u.useDefineForClassFields!=null||(u.useDefineForClassFields=!0)),(e==="es6"||e==="es2016"||e==="es2017"||e==="es2018"||e==="es2019"||e==="es2020"||e==="es2021"||e==="es2022"||e==="es2023"||e==="es2024")&&(u.module!=null||(u.module="es6")),(e==="es2022"||e==="es2023"||e==="es2024")&&(u.useDefineForClassFields!=null||(u.useDefineForClassFields=!0))}if(u.module){let e=u.module.toLowerCase();e==="es2015"&&(e="es6"),u.module=e,(e==="es6"||e==="es2020"||e==="es2022"||e==="esnext"||e==="none"||e==="system"||e==="umd"||e==="amd")&&(u.moduleResolution!=null||(u.moduleResolution="classic")),e==="system"&&(u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0)),(e==="node16"||e==="nodenext"||e==="preserve")&&(u.esModuleInterop!=null||(u.esModuleInterop=!0),u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0)),(e==="node16"||e==="nodenext")&&(u.moduleDetection!=null||(u.moduleDetection="force"),u.useDefineForClassFields!=null||(u.useDefineForClassFields=!0)),e==="node16"&&(u.target!=null||(u.target="es2022"),u.moduleResolution!=null||(u.moduleResolution="node16")),e==="nodenext"&&(u.target!=null||(u.target="esnext"),u.moduleResolution!=null||(u.moduleResolution="nodenext")),e==="preserve"&&(u.moduleResolution!=null||(u.moduleResolution="bundler"))}if(u.moduleResolution){let e=u.moduleResolution.toLowerCase();e==="node"&&(e="node10"),u.moduleResolution=e,(e==="node16"||e==="nodenext"||e==="bundler")&&(u.resolvePackageJsonExports!=null||(u.resolvePackageJsonExports=!0),u.resolvePackageJsonImports!=null||(u.resolvePackageJsonImports=!0)),e==="bundler"&&(u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0),u.resolveJsonModule!=null||(u.resolveJsonModule=!0))}u.esModuleInterop&&(u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0)),u.verbatimModuleSyntax&&(u.isolatedModules!=null||(u.isolatedModules=!0),u.preserveConstEnums!=null||(u.preserveConstEnums=!0)),u.isolatedModules&&(u.preserveConstEnums!=null||(u.preserveConstEnums=!0))},"normalizeCompilerOptions"),Te=F((u,e=new Map)=>{const D=h.resolve(u),t=Se(D,e),n=h.dirname(D),{compilerOptions:r}=t;if(r){for(const s of fn){const i=r[s];if(i){const l=iu(i,n);r[s]=l?Nu(n,l):i}}for(const s of["rootDirs","typeRoots"]){const i=r[s];i&&(r[s]=i.map(l=>{const c=iu(l,n);return c?Nu(n,c):l}))}const{paths:o}=r;if(o)for(const s of Object.keys(o))o[s]=o[s].map(i=>{var l;return(l=iu(i,n))!=null?l:i});pn(r)}for(const o of Oe){const s=t[o];s&&(t[o]=s.map(i=>{var l;return(l=iu(i,n))!=null?l:i}))}return t},"parseTsconfig"),Fn=F((u=process.cwd(),e="tsconfig.json",D=new Map)=>{const t=ye(j(u),e,D);if(!t)return null;const n=Te(t,D);return{path:t,config:n}},"getTsconfig"),dn=/\*/g,Pe=F((u,e)=>{const D=u.match(dn);if(D&&D.length>1)throw new Error(e)},"assertStarCount"),Cn=F(u=>{if(u.includes("*")){const[e,D]=u.split("*");return{prefix:e,suffix:D}}return u},"parsePattern"),En=F(({prefix:u,suffix:e},D)=>D.startsWith(u)&&D.endsWith(e),"isPatternMatch"),hn=F((u,e,D)=>Object.entries(u).map(([t,n])=>(Pe(t,`Pattern '${t}' can have at most one '*' character.`),{pattern:Cn(t),substitutions:n.map(r=>{if(Pe(r,`Substitution '${r}' in pattern '${t}' can have at most one '*' character.`),!e&&!Ou.test(r))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return h.resolve(D,r)})})),"parsePaths"),mn=F(u=>{const{compilerOptions:e}=u.config;if(!e)return null;const{baseUrl:D,paths:t}=e;if(!D&&!t)return null;const n=Tu in e&&e[Tu],r=h.resolve(h.dirname(u.path),D||n||"."),o=t?hn(t,D,r):[];return s=>{if(Ou.test(s))return[];const i=[];for(const f of o){if(f.pattern===s)return f.substitutions.map(j);typeof f.pattern!="string"&&i.push(f)}let l,c=-1;for(const f of i)En(f.pattern,s)&&f.pattern.prefix.length>c&&(c=f.pattern.prefix.length,l=f);if(!l)return D?[j(h.join(r,s))]:[];const p=s.slice(l.pattern.prefix.length,s.length-l.pattern.suffix.length);return l.substitutions.map(f=>j(f.replace("*",p)))}},"createPathsMatcher"),Ie=F(u=>{let e="";for(let D=0;D<u.length;D+=1){const t=u[D],n=t.toUpperCase();e+=t===n?t.toLowerCase():n}return e},"s"),gn=65,Bn=97,yn=F(()=>Math.floor(Math.random()*26),"m"),An=F(u=>Array.from({length:u},()=>String.fromCodePoint(yn()+(Math.random()>.5?gn:Bn))).join(""),"S"),bn=F((u=ot)=>{const e=process.execPath;if(u.existsSync(e))return!u.existsSync(Ie(e));const D=`/${An(10)}`;u.writeFileSync(D,"");const t=!u.existsSync(Ie(D));return u.unlinkSync(D),t},"l"),{join:au}=h.posix,Ru={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},wn=F(u=>{const e=[...Ru.ts],D=[...Ru.cts],t=[...Ru.mts];return u!=null&&u.allowJs&&(e.push(".js",".jsx"),D.push(".cjs"),t.push(".mjs")),[...e,...D,...t]},"getSupportedExtensions"),vn=F(u=>{const e=[];if(!u)return e;const{outDir:D,declarationDir:t}=u;return D&&e.push(D),t&&e.push(t),e},"getDefaultExcludeSpec"),_e=F(u=>u.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),$n=["node_modules","bower_components","jspm_packages"],Lu=`(?!(${$n.join("|")})(/|$))`,xn=/(?:^|\/)[^.*?]+$/,Ne="**/*",lu="[^/]",Mu="[^./]",Re=process.platform==="win32";F(({config:u,path:e},D=bn())=>{if("extends"in u)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!h.isAbsolute(e))throw new Error("The tsconfig path must be absolute");Re&&(e=j(e));const t=h.dirname(e),{files:n,include:r,exclude:o,compilerOptions:s}=u,i=n?.map(d=>au(t,d)),l=wn(s),c=D?"":"i",p=(o||vn(s)).map(d=>{const m=au(t,d),b=_e(m).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${lu}*`).replaceAll(String.raw`\?`,lu);return new RegExp(`^${b}($|/)`,c)}),f=n||r?r:[Ne],E=f?f.map(d=>{let m=au(t,d);xn.test(m)&&(m=au(m,Ne));const b=_e(m).replaceAll(String.raw`/\*\*`,`(/${Lu}${Mu}${lu}*)*?`).replaceAll(/(\/)?\\\*/g,(O,A)=>{const C=`(${Mu}|(\\.(?!min\\.js$))?)*`;return A?`/${Lu}${Mu}${C}`:C}).replaceAll(/(\/)?\\\?/g,(O,A)=>{const C=lu;return A?`/${Lu}${C}`:C});return new RegExp(`^${b}$`,c)}):void 0;return d=>{if(!h.isAbsolute(d))throw new Error("filePath must be absolute");if(Re&&(d=j(d)),i!=null&&i.includes(d)||!(!l.some(m=>d.endsWith(m))||p.some(m=>m.test(d)))&&E&&E.some(m=>m.test(d)))return u}},"createFilesMatcher");const Le="resolve-tsconfig-paths",kn=a(u=>u[0]===".","isRelative"),jn=a(u=>u[0]==="/"||/^[\s\S]:/.test(u),"isAbsolute"),Me=a(u=>{const e=mn(u);return e?{name:Le,async resolveId(D,t,n){if(!t||kn(D)||jn(D)||D.startsWith("\0"))return null;const r=e(D);for(const o of r){const s=await this.resolve(o,t,{skipSelf:!0,...n});if(s)return s}return null}}:{name:Le}},"resolveTsconfigPaths"),We=/^#!.*/,On=a(()=>({name:"strip-hashbang",transform:a(u=>{if(!We.test(u))return null;const e=new X(u);return e.replace(We,""),{code:e.toString(),map:e.generateMap({hires:!0})}},"transform")}),"stripHashbang");class Sn{static{a(this,"WalkerBase")}constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:a(()=>this.should_skip=!0,"skip"),remove:a(()=>this.should_remove=!0,"remove"),replace:a(e=>this.replacement=e,"replace")}}replace(e,D,t,n){e&&D&&(t!=null?e[D][t]=n:e[D]=n)}remove(e,D,t){e&&D&&(t!=null?e[D].splice(t,1):delete e[D])}}class Tn extends Sn{static{a(this,"SyncWalker")}constructor(e,D){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:a(()=>this.should_skip=!0,"skip"),remove:a(()=>this.should_remove=!0,"remove"),replace:a(t=>this.replacement=t,"replace")},this.enter=e,this.leave=D}visit(e,D,t,n){if(e){if(this.enter){const o=this.should_skip,s=this.should_remove,i=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,D,t,n),this.replacement&&(e=this.replacement,this.replace(D,t,n,e)),this.should_remove&&this.remove(D,t,n);const l=this.should_skip,c=this.should_remove;if(this.should_skip=o,this.should_remove=s,this.replacement=i,l)return e;if(c)return null}let r;for(r in e){const o=e[r];if(o&&typeof o=="object")if(Array.isArray(o)){const s=o;for(let i=0;i<s.length;i+=1){const l=s[i];Ue(l)&&(this.visit(l,e,r,i)||i--)}}else Ue(o)&&this.visit(o,e,r,null)}if(this.leave){const o=this.replacement,s=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,D,t,n),this.replacement&&(e=this.replacement,this.replace(D,t,n,e)),this.should_remove&&this.remove(D,t,n);const i=this.should_remove;if(this.replacement=o,this.should_remove=s,i)return null}}return e}}function Ue(u){return u!==null&&typeof u=="object"&&"type"in u&&typeof u.type=="string"}a(Ue,"isNode");function Pn(u,{enter:e,leave:D}){return new Tn(e,D).visit(u,null)}a(Pn,"walk");const In=a(()=>{const u='import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);';return{name:"esmInjectCreateRequire",renderChunk(e,D,t){if(t.format!=="es"||!/\brequire\b/.test(e))return null;const n=this.parse(e);let r=st(n,"scope"),o=!1;if(Pn(n,{enter(i,l){i.scope&&(r=i.scope),!(i.type!=="Identifier"||i.name!=="require")&&(l?.type==="Property"&&l.key===i&&!l.compute||l?.type!=="MemberExpression"&&(r.contains("require")||(o=!0,this.skip())))},leave:a(i=>{i.scope&&(r=r.parent)},"leave")}),!o)return null;const s=new X(e);return s.prepend(u),{code:s.toString(),map:s.generateMap({hires:!0})}}}},"esmInjectCreateRequire"),cu="\0natives:",_n=a(u=>{const e=`${u}/natives`,D=new Map;return{name:"native-modules",buildStart:a(()=>{D.clear()},"buildStart"),async resolveId(t,n){if(t.startsWith(cu)||!t.endsWith(".node"))return null;const r=n?h.resolve(h.dirname(n),t):h.resolve(t);try{await Fu.access(r)}catch{return this.warn(`Native module not found: ${r}`),null}const o=h.basename(r);let s=o,i=1;const l=new Set(Array.from(D.values()).map(p=>h.basename(p)));for(;l.has(s);){const p=h.extname(o);s=`${h.basename(o,p)}_${i}${p}`,i+=1}const c=h.join(e,s);return D.set(r,c),cu+r},load(t){if(!t.startsWith(cu))return null;const n=t.slice(cu.length),r=D.get(n);return r?`export default require("${`./${h.relative(u,r)}`.replaceAll("\\","/")}");`:this.error(`Could not find staged native module for: ${n}`)},generateBundle:a(async()=>{D.size!==0&&(await Fu.mkdir(e,{recursive:!0}),await Promise.all(Array.from(D.entries()).map(([t,n])=>Fu.copyFile(t,n))))},"generateBundle")}},"nativeModules"),fu=a(u=>u.replace("\0","").split("?")[0],"cleanRollupId"),Nn=a(u=>{try{return at(u)}catch{return{exports:[],reexports:[]}}},"safeParse"),Rn=a(()=>{const u=new Map,e=a((D,t=new Set)=>{const n=fu(D);if(t.has(n))return[];t.add(n);const r=u.get(n);if(!r)return[];const o=[...r.exports];for(const s of r.reexports)o.push(...e(s,t));return o},"getFinalExports");return{name:"cjs-annotate-exports",buildStart:a(async()=>{await it(),u.clear()},"buildStart"),async transform(D,t){const n=fu(t);if(!/\.c?js$/.test(n)||!D.includes("exports"))return;const{exports:r,reexports:o}=Nn(D);if(r.length===0&&o.length===0)return;const i=(await Promise.all(o.map(async l=>{const c=await this.resolve(l,t);return c?fu(c.id):""}))).filter(Boolean);u.set(n,{exports:r,reexports:i})},renderChunk:{order:"post",handler(D,t,n){if(n.format!=="cjs"||!t.isEntry||!t.facadeModuleId)return null;const r=fu(t.facadeModuleId),o=[...new Set(e(r))];if(o.length>0){const s=new X(D);return s.append(`
|
|
30
|
+
0&&(module.exports={${o.join(",")}});`),{code:s.toString(),map:s.generateMap({hires:!0})}}}}}},"cjsAnnotateExports"),Ln=a((u,e,D,t,n)=>{const r=Object.fromEntries(u.env.map(({key:i,value:l})=>[`process.env.${i}`,JSON.stringify(l)])),o=Object.fromEntries(u.define.map(({key:i,value:l})=>[i,l])),s={target:u.target,tsconfigRaw:t?.config,define:{...r,...o}};return{input:{},preserveEntrySignatures:"strict",plugins:[Ee(u),...t?[Me(t)]:[],he(),et({entries:e}),Qe({extensions:[".mjs",".js",".ts",".jsx",".tsx",".json"],exportConditions:u.exportCondition}),On(),ut(),zD(s),Rn(),Xe({ignoreDynamicRequires:!0,extensions:[".js",".ts",".jsx",".tsx"],transformMixedEsModules:!0}),tt({warnOnError:!0}),In(),_n(n),...u.minify?[KD(s)]:[],GD(D)],output:[],external:[]}},"getPkgConfig"),Mn=a(async(u,e)=>{const[D,t]=await Promise.all([import("./rollup-plugin-dts-DZbgIFrg.mjs"),import("./local-typescript-loader-CSvrvK-x.mjs")]);return{input:{},preserveEntrySignatures:"strict",plugins:[Ee(u),...e?[Me(e)]:[],he(),D.default({respectExternal:!0,compilerOptions:{composite:!1,preserveSymlinks:!1,module:t.default.ModuleKind.Preserve,moduleResolution:t.default.ModuleResolutionKind.Bundler},tsconfig:e?.path})],output:[],external:[]}},"getDtsConfig"),Wn=a(u=>{if(u.length===0)return"";const e=u.map(r=>r.split("/")),D=e[0],t=Math.min(...e.map(r=>r.length)),n=[];for(let r=0;r<t;r+=1){const o=D[r];if(e.every(s=>s[r]===o))n.push(o);else break}return n.length===0?"/":n.join("/")||"/"},"getCommonPath"),Un=a(async(u,e,D,t,n,r)=>{const o=$(Wn(u.map(({dist:i})=>i)),!0);for(const i of u)i.distPrefix=i.dist.slice(o.length);const s=Object.create(null);for(const i of e){const{sourcePath:l,srcdist:c,srcExtension:p,distExtension:f,exportEntry:E}=i,d=c.distPrefix+l.slice(c.srcResolved.length,-p.length);if(i.inputNames=[d],E.format==="types"){let A=s.dts;A||(A=await Mn(D,r),A.external=Ce(n,t,!0),s.dts=A),A.input[d]||(A.input[d]=l);const C=A.output;if(C[f])C[f][G].inputNames.push(d);else{const B={dir:o,entryFileNames:`[name]${f}`,chunkFileNames:`${c.distPrefix}[name]-[hash]${f}`,exports:"auto",format:"esm",[G]:i};C.push(B),C[f]=B}continue}let m=s.pkg;if(!m){const A=u[0].dist;m=Ln(D,t,e,r,A),m.external=Ce(n,t),s.pkg=m}m.input[d]||(m.input[d]=l);const b=m.output,O=`${E.format}-${f}`;if(b[O])b[O][G].inputNames.push(d);else{const A={dir:o,exports:"auto",format:E.format,sourcemap:D.sourcemap,entryFileNames:`[name]${f}`,chunkFileNames:`${c.distPrefix}[name]-[hash]${f}`,[G]:i};b.push(A),b[O]=A}}return Object.values(s)},"getRollupConfigs"),Vn=a(u=>{if(!u)return Fn();const e=h.resolve(u),D=Te(e);return{path:e,config:D}},"getTsconfig"),qn=a(async u=>{await yu(u)&&await I.promises.rm(u,{recursive:!0,force:!0})},"cleanDist"),zn=a(u=>({name:"filter-unnecessary-outputs",generateBundle:a((e,D)=>{const t=Object.keys(D).filter(o=>D[o].type==="chunk"),n=[];for(const o of t){const s=D[o];s.isEntry&&u.includes(s.name)&&n.push(o)}const r=new Set;for(;n.length>0;){const o=n.shift(),s=D[o];if(!s||r.has(o))continue;r.add(o);const i=[...s.imports,...s.dynamicImports];for(const l of i)n.push(l)}for(const o of t)r.has(o)||delete D[o]},"generateBundle")}),"filterUnnecessaryOutputs"),{stringify:Ve}=JSON,qe=a(u=>{const[e,D]=u.split("=",2);return{key:e,value:D}},"keyValue"),T=xD({name:"pkgroll",version:kD,flags:{input:{type:[_D],alias:"i",description:"Dist paths for source files to bundle (Only use if you cannot use package.json entries)"},src:{type:String,description:"Source directory (Deprecated, use `srcdist` instead)",default:"./src"},dist:{type:String,description:"Distribution directory (Deprecated, use `srcdist` instead)",default:"./dist"},srcdist:{type:[String],description:"Source and distribution folder pairs (eg. default `src:dist`)"},minify:{type:Boolean,description:"Minify output",alias:"m",default:!1},target:{type:[String],default:[`node${process.versions.node}`],description:"Environments to support. `target` in tsconfig.json is automatically added. Defaults to the current Node.js version.",alias:"t"},tsconfig:{type:String,description:"Custom tsconfig.json file path",alias:"p"},watch:{type:Boolean,description:"Watch mode",alias:"w",default:!1},env:{type:[qe],description:"Compile-time environment variables (eg. --env.NODE_ENV=production)"},define:{type:[qe],description:"Targeted strings to replace (eg. --define.process.env.NODE_ENV='production')"},exportCondition:{type:[String],description:"Export conditions for resolving dependency export and import maps (eg. --export-condition=node)"},sourcemap:{type:a(u=>{if(u==="")return!0;if(u==="inline")return u;throw new Error(`Invalid sourcemap option ${Ve(u)}`)},"type"),description:"Sourcemap generation. Provide `inline` option for inline sourcemap (eg. --sourcemap, --sourcemap=inline)"},cleanDist:{type:Boolean,description:"Clean dist before bundling",default:!1}},help:{description:"Minimalistic package bundler",render:a((u,e)=>(e.flagOperator=D=>D.name==="env"?".key=":" ",e.render(u)),"render")}}),ze=process.cwd(),Z=[];if(T.flags.srcdist.length>0)for(const u of T.flags.srcdist){const[e,D]=u.split(":",2);if(!e||!D)throw new Error(`Invalid src:dist pair ${Ve(u)}. Expected format: src:dist`);Z.push({src:$(e,!0),srcResolved:$(I.realpathSync.native(e),!0),dist:$(D,!0)})}else Z.push({src:$(T.flags.src,!0),srcResolved:$(I.realpathSync.native(T.flags.src),!0),dist:$(T.flags.dist,!0)});const Je=Vn(T.flags.tsconfig),Ke=Je?.config.compilerOptions?.target;Ke&&T.flags.target.push(Ke),(async()=>{const{packageJson:u}=await ID(ze),e=await VD(Z,u,T.flags.input);for(const n of e)"error"in n&&console.warn("Warning:",n.error);const D=e.filter(n=>!("error"in n));if(D.length===0)throw new Error("No entry points found");const t=await Un(Z,D,T.flags,ND(u,ze),u,Je);T.flags.cleanDist&&await Promise.all(Z.map(({dist:n})=>qn(n))),T.flags.watch?(nu("Watch initialized"),t.map(async n=>{Ze(n).on("event",async o=>{if(o.code==="BUNDLE_START"){const s=Array.isArray(o.input)?o.input:Object.values(o.input);nu("Building",...s.map(Au))}if(o.code==="BUNDLE_END"){await Promise.all(n.output.map(i=>o.result.write(i)));const s=Array.isArray(o.input)?o.input:Object.values(o.input);nu("Built",...s.map(Au))}o.code==="ERROR"&&nu("Error:",o.error.message)})})):await Promise.all(t.map(async n=>{const r=await Ye(n);return Promise.all(n.output.map(o=>{const s=o[G].inputNames;return o.plugins=[zn(s)],r.write(o)}))}))})().catch(u=>{console.error(u),process.exit(1)});
|