turbo-ignore 2.0.13 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +40 -40
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var
|
|
2
|
+
"use strict";var hI=Object.create;var uf=Object.defineProperty;var dI=Object.getOwnPropertyDescriptor;var pI=Object.getOwnPropertyNames;var mI=Object.getPrototypeOf,gI=Object.prototype.hasOwnProperty;var yI=(t,e)=>()=>(t&&(e=t(t=0)),e);var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),_I=(t,e)=>{for(var r in e)uf(t,r,{get:e[r],enumerable:!0})},vI=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of pI(e))!gI.call(t,i)&&i!==r&&uf(t,i,{get:()=>e[i],enumerable:!(n=dI(e,i))||n.enumerable});return t};var le=(t,e,r)=>(r=t!=null?hI(mI(t)):{},vI(e||!t||!t.__esModule?uf(r,"default",{value:t,enumerable:!0}):r,t));var l=yI(()=>{});var po=y(ff=>{l();var Da=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},lf=class extends Da{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};ff.CommanderError=Da;ff.InvalidArgumentError=lf});var Ma=y(df=>{l();var{InvalidArgumentError:bI}=po(),hf=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new bI(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function EI(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}df.Argument=hf;df.humanReadableArgName=EI});var mf=y(v0=>{l();var{humanReadableArgName:wI}=Ma(),pf=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(n).helpOption(!1);s.description(e._helpCommandDescription),i&&s.arguments(i),r.push(s)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let s;n?i?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(s=>!s.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e._args.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e._args.find(r=>r.description)?e._args:[]}subcommandTerm(e){let r=e._args.map(n=>wI(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,s=2,o=2;function a(m,E){if(E){let v=`${m.padEnd(n+o)}${E}`;return r.wrap(v,i-s,n+o)}return m}function c(m){return m.join(`
|
|
3
3
|
`).replace(/^/gm," ".repeat(s))}let u=[`Usage: ${r.commandUsage(e)}`,""],f=r.commandDescription(e);f.length>0&&(u=u.concat([r.wrap(f,i,0),""]));let h=r.visibleArguments(e).map(m=>a(r.argumentTerm(m),r.argumentDescription(m)));h.length>0&&(u=u.concat(["Arguments:",c(h),""]));let d=r.visibleOptions(e).map(m=>a(r.optionTerm(m),r.optionDescription(m)));if(d.length>0&&(u=u.concat(["Options:",c(d),""])),this.showGlobalOptions){let m=r.visibleGlobalOptions(e).map(E=>a(r.optionTerm(E),r.optionDescription(E)));m.length>0&&(u=u.concat(["Global Options:",c(m),""]))}let g=r.visibleCommands(e).map(m=>a(r.subcommandTerm(m),r.subcommandDescription(m)));return g.length>0&&(u=u.concat(["Commands:",c(g),""])),u.join(`
|
|
4
4
|
`)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,i=40){let s=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",o=new RegExp(`[\\n][${s}]+`);if(e.match(o))return e;let a=r-n;if(a<i)return e;let c=e.slice(0,n),u=e.slice(n).replace(`\r
|
|
5
5
|
`,`
|
|
6
6
|
`),f=" ".repeat(n),d="\\s\u200B",g=new RegExp(`
|
|
7
7
|
|.{1,${a-1}}([${d}]|$)|[^${d}]+?([${d}]|$)`,"g"),m=u.match(g)||[];return c+m.map((E,v)=>E===`
|
|
8
8
|
`?"":(v>0?f:"")+E.trimEnd()).join(`
|
|
9
|
-
`)}};v0.Help=pf});var _f=y(Fa=>{l();var{InvalidArgumentError:
|
|
9
|
+
`)}};v0.Help=pf});var _f=y(Fa=>{l();var{InvalidArgumentError:xI}=po(),gf=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=b0(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new xI(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return SI(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},yf=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,n)=>{this.positiveOptions.has(n)&&this.dualOptions.add(n)})}valueFromOption(e,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let i=this.negativeOptions.get(n).presetArg,s=i!==void 0?i:!1;return r.negate===(s===e)}};function SI(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function b0(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}Fa.Option=gf;Fa.splitOptionFlags=b0;Fa.DualOptions=yf});var w0=y(E0=>{l();function AI(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let s=1;t[i-1]===e[n-1]?s=0:s=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function RI(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let n=[],i=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let a=AI(t,o),c=Math.max(t.length,o.length);(c-a)/c>s&&(a<i?(i=a,n=[o]):a===i&&n.push(o))}),n.sort((o,a)=>o.localeCompare(a)),r&&(n=n.map(o=>`--${o}`)),n.length>1?`
|
|
10
10
|
(Did you mean one of ${n.join(", ")}?)`:n.length===1?`
|
|
11
|
-
(Did you mean ${n[0]}?)`:""}E0.suggestSimilar=
|
|
12
|
-
- specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new
|
|
11
|
+
(Did you mean ${n[0]}?)`:""}E0.suggestSimilar=RI});var O0=y(C0=>{l();var CI=require("events").EventEmitter,vf=require("child_process"),Fr=require("path"),bf=require("fs"),Te=require("process"),{Argument:OI,humanReadableArgName:TI}=Ma(),{CommanderError:Ef}=po(),{Help:kI}=mf(),{Option:x0,splitOptionFlags:PI,DualOptions:II}=_f(),{suggestSimilar:S0}=w0(),go=class extends CI{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this._args=[],this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:r=>Te.stdout.write(r),writeErr:r=>Te.stderr.write(r),getOutHelpWidth:()=>Te.stdout.isTTY?Te.stdout.columns:void 0,getErrHelpWidth:()=>Te.stderr.isTTY?Te.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}command(e,r,n){let i=r,s=n;typeof i=="object"&&i!==null&&(s=i,i=null),s=s||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),c=this.createCommand(o);return i&&(c.description(i),c._executableHandler=!0),s.isDefault&&(this._defaultCommandName=c._name),c._hidden=!!(s.noHelp||s.hidden),c._executableFile=s.executableFile||null,a&&c.arguments(a),this.commands.push(c),c.parent=this,c.copyInheritedSettings(this),i?this:c}createCommand(e){return new go(e)}createHelp(){return Object.assign(new kI,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
12
|
+
- specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new OI(e,r)}argument(e,r,n,i){let s=this.createArgument(e,r);return typeof n=="function"?s.default(i).argParser(n):s.default(n),this.addArgument(s),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this._args.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this._args.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
|
|
13
13
|
Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new Ef(e,r,n)),Te.exit(e)}action(e){let r=n=>{let i=this._args.length,s=n.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new x0(e,r)}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let c=this.getOptionValue(n);if(s!==null&&e.parseArg)try{s=e.parseArg(s,c)}catch(u){if(u.code==="commander.invalidArgument"){let f=`${o} ${u.message}`;this.error(f,{exitCode:u.exitCode,code:u.code})}throw u}else s!==null&&e.variadic&&(s=e._concatValue(s,c));s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(n,s,a)};return this.on("option:"+r,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,o,"env")}),this}_optionEx(e,r,n,i,s){if(typeof r=="object"&&r instanceof x0)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,n);if(o.makeOptionMandatory(!!e.mandatory),typeof i=="function")o.default(s).argParser(i);else if(i instanceof RegExp){let a=i;i=(c,u)=>{let f=a.exec(c);return f?f[0]:u},o.default(s).argParser(i)}else o.default(i);return this.addOption(o)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){if(this._passThroughOptions=!!e,!!this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this._storeOptionsAsProperties=!!e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,n){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return mo(this).forEach(n=>{n.getOptionValueSource(e)!==void 0&&(r=n.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=Te.argv,Te.versions&&Te.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":Te.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(f,h){let d=Fr.resolve(f,h);if(bf.existsSync(d))return d;if(i.includes(Fr.extname(h)))return;let g=i.find(m=>bf.existsSync(`${d}${m}`));if(g)return`${d}${g}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let f;try{f=bf.realpathSync(this._scriptPath)}catch{f=this._scriptPath}a=Fr.resolve(Fr.dirname(f),a)}if(a){let f=s(a,o);if(!f&&!e._executableFile&&this._scriptPath){let h=Fr.basename(this._scriptPath,Fr.extname(this._scriptPath));h!==this._name&&(f=s(a,`${h}-${e._name}`))}o=f||o}n=i.includes(Fr.extname(o));let c;Te.platform!=="win32"?n?(r.unshift(o),r=R0(Te.execArgv).concat(r),c=vf.spawn(Te.argv[0],r,{stdio:"inherit"})):c=vf.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=R0(Te.execArgv).concat(r),c=vf.spawn(Te.execPath,r,{stdio:"inherit"})),c.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(h=>{Te.on(h,()=>{c.killed===!1&&c.exitCode===null&&c.kill(h)})});let u=this._exitCallback;u?c.on("close",()=>{u(new Ef(Te.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):c.on("close",Te.exit.bind(Te)),c.on("error",f=>{if(f.code==="ENOENT"){let h=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",d=`'${o}' does not exist
|
|
14
14
|
- if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
15
15
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
16
16
|
- ${h}`;throw new Error(d)}else if(f.code==="EACCES")throw new Error(`'${o}' not executable`);if(!u)Te.exit(1);else{let h=new Ef(1,"commander.executeSubCommandAsync","(error)");h.nestedError=f,u(h)}}),this.runningCommand=c}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);i||this.help({error:!0});let s;return s=this._chainOrCallSubCommandHook(s,i,"preSubcommand"),s=this._chainOrCall(s,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),s}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._helpLongFlag])}_checkNumberOfArguments(){this._args.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this._args.length>0&&this._args[this._args.length-1].variadic)&&this.args.length>this._args.length&&this._excessArguments(this.args)}_processArguments(){let e=(n,i,s)=>{let o=i;if(i!==null&&n.parseArg)try{o=n.parseArg(i,s)}catch(a){if(a.code==="commander.invalidArgument"){let c=`error: command-argument value '${i}' is invalid for argument '${n.name()}'. ${a.message}`;this.error(c,{exitCode:a.exitCode,code:a.code})}throw a}return o};this._checkNumberOfArguments();let r=[];this._args.forEach((n,i)=>{let s=n.defaultValue;n.variadic?i<this.args.length?(s=this.args.slice(i),n.parseArg&&(s=s.reduce((o,a)=>e(n,a,o),n.defaultValue))):s===void 0&&(s=[]):i<this.args.length&&(s=this.args[i],n.parseArg&&(s=e(n,s,n.defaultValue))),r[i]=s}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,i=[];return mo(this).reverse().filter(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(o=>{i.push({hookedCommand:s,callback:o})})}),r==="postAction"&&i.reverse(),i.forEach(s=>{n=this._chainOrCall(n,()=>s.callback(s.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let i=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(s=>{i=this._chainOrCall(i,()=>s(this,r))}),i}_parseCommand(e,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),r=n.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return A0(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),A0(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(s,e,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(s))i(),this._processArguments(),this.parent.emit(s,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(!!e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent)e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})}_checkForConflictingLocalOptions(){let e=this.options.filter(n=>{let i=n.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});e.filter(n=>n.conflictsWith.length>0).forEach(n=>{let i=e.find(s=>n.conflictsWith.includes(s.attributeName()));i&&this._conflictingOption(n,i)})}_checkForConflictingOptions(){for(let e=this;e;e=e.parent)e._checkForConflictingLocalOptions()}parseOptions(e){let r=[],n=[],i=r,s=e.slice();function o(c){return c.length>1&&c[0]==="-"}let a=null;for(;s.length;){let c=s.shift();if(c==="--"){i===n&&i.push(c),i.push(...s);break}if(a&&!o(c)){this.emit(`option:${a.name()}`,c);continue}if(a=null,o(c)){let u=this._findOption(c);if(u){if(u.required){let f=s.shift();f===void 0&&this.optionMissingArgument(u),this.emit(`option:${u.name()}`,f)}else if(u.optional){let f=null;s.length>0&&!o(s[0])&&(f=s.shift()),this.emit(`option:${u.name()}`,f)}else this.emit(`option:${u.name()}`);a=u.variadic?u:null;continue}}if(c.length>2&&c[0]==="-"&&c[1]!=="-"){let u=this._findOption(`-${c[1]}`);if(u){u.required||u.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${u.name()}`,c.slice(2)):(this.emit(`option:${u.name()}`),s.unshift(`-${c.slice(2)}`));continue}}if(/^--[^=]+=/.test(c)){let u=c.indexOf("="),f=this._findOption(c.slice(0,u));if(f&&(f.required||f.optional)){this.emit(`option:${f.name()}`,c.slice(u+1));continue}}if(o(c)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(c)){r.push(c),s.length>0&&n.push(...s);break}else if(c===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(c),s.length>0&&r.push(...s);break}else if(this._defaultCommandName){n.push(c),s.length>0&&n.push(...s);break}}if(this._passThroughOptions){i.push(c),s.length>0&&i.push(...s);break}i.push(c)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return mo(this).reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
|
|
17
17
|
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
18
18
|
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
19
|
-
`),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,s=n.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in Te.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,Te.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new
|
|
20
|
-
`),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this._args.map(n=>
|
|
19
|
+
`),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,s=n.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in Te.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,Te.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new II(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=o=>{let a=o.attributeName(),c=this.getOptionValue(a),u=this.options.find(h=>h.negate&&a===h.attributeName()),f=this.options.find(h=>!h.negate&&a===h.attributeName());return u&&(u.presetArg===void 0&&c===!1||u.presetArg!==void 0&&c===u.presetArg)?u:f||o},i=o=>{let a=n(o),c=a.attributeName();return this.getOptionValueSource(c)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},s=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(a=>a.long).map(a=>a.long);i=i.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);r=S0(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this._args.length,n=r===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),r=S0(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
|
|
20
|
+
`),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this._args.map(n=>TI(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=Fr.basename(e,Fr.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);mo(this).reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this.emit(this._helpLongFlag),this.emit("afterHelp",n),mo(this).forEach(s=>s.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=PI(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=Te.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
|
|
21
21
|
Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,s=>{let o;typeof r=="function"?o=r({error:s.error,command:s.command}):o=r,o&&s.write(`${o}
|
|
22
|
-
`)}),this}};function A0(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function R0(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}function mo(t){let e=[];for(let r=t;r;r=r.parent)e.push(r);return e}C0.Command=go});var I0=y((cr,P0)=>{l();var{Argument:NI}=Ma(),{Command:T0}=O0(),{CommanderError:DI,InvalidArgumentError:k0}=po(),{Help:MI}=mf(),{Option:FI}=_f();cr=P0.exports=new T0;cr.program=cr;cr.Argument=NI;cr.Command=T0;cr.CommanderError=DI;cr.Help=MI;cr.InvalidArgumentError=k0;cr.InvalidOptionArgumentError=k0;cr.Option=FI});var M0=y((yW,qr)=>{l();function wf(t){return qr.exports=wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qr.exports.__esModule=!0,qr.exports.default=qr.exports,wf(t)}qr.exports=wf,qr.exports.__esModule=!0,qr.exports.default=qr.exports});var B0=y((_W,Br)=>{l();var F0=M0().default;function q0(){"use strict";Br.exports=q0=function(){return e},Br.exports.__esModule=!0,Br.exports.default=Br.exports;var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(x,T,k){x[T]=k.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function u(x,T,k){return Object.defineProperty(x,T,{value:k,enumerable:!0,configurable:!0,writable:!0}),x[T]}try{u({},"")}catch{u=function(k,I,Y){return k[I]=Y}}function f(x,T,k,I){var Y=T&&T.prototype instanceof A?T:A,j=Object.create(Y.prototype),ve=new fe(I||[]);return i(j,"_invoke",{value:Q(x,k,ve)}),j}function h(x,T,k){try{return{type:"normal",arg:x.call(T,k)}}catch(I){return{type:"throw",arg:I}}}e.wrap=f;var d="suspendedStart",g="suspendedYield",m="executing",E="completed",v={};function A(){}function P(){}function D(){}var ie={};u(ie,o,function(){return this});var z=Object.getPrototypeOf,ue=z&&z(z(R([])));ue&&ue!==r&&n.call(ue,o)&&(ie=ue);var K=D.prototype=A.prototype=Object.create(ie);function Z(x){["next","throw","return"].forEach(function(T){u(x,T,function(k){return this._invoke(T,k)})})}function F(x,T){function k(Y,j,ve,Ue){var ge=h(x[Y],x,j);if(ge.type!=="throw"){var De=ge.arg,re=De.value;return re&&F0(re)=="object"&&n.call(re,"__await")?T.resolve(re.__await).then(function(pt){k("next",pt,ve,Ue)},function(pt){k("throw",pt,ve,Ue)}):T.resolve(re).then(function(pt){De.value=pt,ve(De)},function(pt){return k("throw",pt,ve,Ue)})}Ue(ge.arg)}var I;i(this,"_invoke",{value:function(j,ve){function Ue(){return new T(function(ge,De){k(j,ve,ge,De)})}return I=I?I.then(Ue,Ue):Ue()}})}function Q(x,T,k){var I=d;return function(Y,j){if(I===m)throw new Error("Generator is already running");if(I===E){if(Y==="throw")throw j;return{value:t,done:!0}}for(k.method=Y,k.arg=j;;){var ve=k.delegate;if(ve){var Ue=C(ve,k);if(Ue){if(Ue===v)continue;return Ue}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(I===d)throw I=E,k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);I=m;var ge=h(x,T,k);if(ge.type==="normal"){if(I=k.done?E:g,ge.arg===v)continue;return{value:ge.arg,done:k.done}}ge.type==="throw"&&(I=E,k.method="throw",k.arg=ge.arg)}}}function C(x,T){var k=T.method,I=x.iterator[k];if(I===t)return T.delegate=null,k==="throw"&&x.iterator.return&&(T.method="return",T.arg=t,C(x,T),T.method==="throw")||k!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+k+"' method")),v;var Y=h(I,x.iterator,T.arg);if(Y.type==="throw")return T.method="throw",T.arg=Y.arg,T.delegate=null,v;var j=Y.arg;return j?j.done?(T[x.resultName]=j.value,T.next=x.nextLoc,T.method!=="return"&&(T.method="next",T.arg=t),T.delegate=null,v):j:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,v)}function ne(x){var T={tryLoc:x[0]};1 in x&&(T.catchLoc=x[1]),2 in x&&(T.finallyLoc=x[2],T.afterLoc=x[3]),this.tryEntries.push(T)}function ee(x){var T=x.completion||{};T.type="normal",delete T.arg,x.completion=T}function fe(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ne,this),this.reset(!0)}function R(x){if(x||x===""){var T=x[o];if(T)return T.call(x);if(typeof x.next=="function")return x;if(!isNaN(x.length)){var k=-1,I=function Y(){for(;++k<x.length;)if(n.call(x,k))return Y.value=x[k],Y.done=!1,Y;return Y.value=t,Y.done=!0,Y};return I.next=I}}throw new TypeError(F0(x)+" is not iterable")}return P.prototype=D,i(K,"constructor",{value:D,configurable:!0}),i(D,"constructor",{value:P,configurable:!0}),P.displayName=u(D,c,"GeneratorFunction"),e.isGeneratorFunction=function(x){var T=typeof x=="function"&&x.constructor;return!!T&&(T===P||(T.displayName||T.name)==="GeneratorFunction")},e.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,D):(x.__proto__=D,u(x,c,"GeneratorFunction")),x.prototype=Object.create(K),x},e.awrap=function(x){return{__await:x}},Z(F.prototype),u(F.prototype,a,function(){return this}),e.AsyncIterator=F,e.async=function(x,T,k,I,Y){Y===void 0&&(Y=Promise);var j=new F(f(x,T,k,I),Y);return e.isGeneratorFunction(T)?j:j.next().then(function(ve){return ve.done?ve.value:j.next()})},Z(K),u(K,c,"Generator"),u(K,o,function(){return this}),u(K,"toString",function(){return"[object Generator]"}),e.keys=function(x){var T=Object(x),k=[];for(var I in T)k.push(I);return k.reverse(),function Y(){for(;k.length;){var j=k.pop();if(j in T)return Y.value=j,Y.done=!1,Y}return Y.done=!0,Y}},e.values=R,fe.prototype={constructor:fe,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(ee),!T)for(var k in this)k.charAt(0)==="t"&&n.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=t)},stop:function(){this.done=!0;var T=this.tryEntries[0].completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var k=this;function I(De,re){return ve.type="throw",ve.arg=T,k.next=De,re&&(k.method="next",k.arg=t),!!re}for(var Y=this.tryEntries.length-1;Y>=0;--Y){var j=this.tryEntries[Y],ve=j.completion;if(j.tryLoc==="root")return I("end");if(j.tryLoc<=this.prev){var Ue=n.call(j,"catchLoc"),ge=n.call(j,"finallyLoc");if(Ue&&ge){if(this.prev<j.catchLoc)return I(j.catchLoc,!0);if(this.prev<j.finallyLoc)return I(j.finallyLoc)}else if(Ue){if(this.prev<j.catchLoc)return I(j.catchLoc,!0)}else{if(!ge)throw new Error("try statement without catch or finally");if(this.prev<j.finallyLoc)return I(j.finallyLoc)}}}},abrupt:function(T,k){for(var I=this.tryEntries.length-1;I>=0;--I){var Y=this.tryEntries[I];if(Y.tryLoc<=this.prev&&n.call(Y,"finallyLoc")&&this.prev<Y.finallyLoc){var j=Y;break}}j&&(T==="break"||T==="continue")&&j.tryLoc<=k&&k<=j.finallyLoc&&(j=null);var ve=j?j.completion:{};return ve.type=T,ve.arg=k,j?(this.method="next",this.next=j.finallyLoc,v):this.complete(ve)},complete:function(T,k){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&k&&(this.next=k),v},finish:function(T){for(var k=this.tryEntries.length-1;k>=0;--k){var I=this.tryEntries[k];if(I.finallyLoc===T)return this.complete(I.completion,I.afterLoc),ee(I),v}},catch:function(T){for(var k=this.tryEntries.length-1;k>=0;--k){var I=this.tryEntries[k];if(I.tryLoc===T){var Y=I.completion;if(Y.type==="throw"){var j=Y.arg;ee(I)}return j}}throw new Error("illegal catch attempt")},delegateYield:function(T,k,I){return this.delegate={iterator:R(T),resultName:k,nextLoc:I},this.method==="next"&&(this.arg=t),v}},e}Br.exports=q0,Br.exports.__esModule=!0,Br.exports.default=Br.exports});var H0=y((vW,j0)=>{l();var qa=B0()();j0.exports=qa;try{regeneratorRuntime=qa}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=qa:Function("r","regeneratorRuntime = r")(qa)}});var U0=y((HW,Tf)=>{"use strict";l();var $0=(t,...e)=>new Promise(r=>{r(t(...e))});Tf.exports=$0;Tf.exports.default=$0});var V0=y(($W,kf)=>{"use strict";l();var qI=U0(),G0=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let e=[],r=0,n=()=>{r--,e.length>0&&e.shift()()},i=(a,c,...u)=>{r++;let f=qI(a,...u);c(f),f.then(n,n)},s=(a,c,...u)=>{r<t?i(a,c,...u):e.push(i.bind(null,a,c,...u))},o=(a,...c)=>new Promise(u=>s(a,u,...c));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.length},clearQueue:{value:()=>{e.length=0}}}),o};kf.exports=G0;kf.exports.default=G0});var Y0=y((UW,Pf)=>{"use strict";l();var W0=V0(),Ba=class extends Error{constructor(e){super(),this.value=e}},BI=async(t,e)=>e(await t),jI=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new Ba(e[0]);return!1},z0=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=W0(r.concurrency),i=[...t].map(o=>[o,n(BI,o,e)]),s=W0(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(jI,o)))}catch(o){if(o instanceof Ba)return o.value;throw o}};Pf.exports=z0;Pf.exports.default=z0});var e_=y((GW,If)=>{"use strict";l();var K0=require("path"),ja=require("fs"),{promisify:Z0}=require("util"),HI=Y0(),$I=Z0(ja.stat),UI=Z0(ja.lstat),J0={directory:"isDirectory",file:"isFile"};function X0({type:t}){if(!(t in J0))throw new Error(`Invalid type specified: ${t}`)}var Q0=(t,e)=>t===void 0||e[J0[t]]();If.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},X0(e);let r=e.allowSymlinks?$I:UI;return HI(t,async n=>{try{let i=await r(K0.resolve(e.cwd,n));return Q0(e.type,i)}catch{return!1}},e)};If.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},X0(e);let r=e.allowSymlinks?ja.statSync:ja.lstatSync;for(let n of t)try{let i=r(K0.resolve(e.cwd,n));if(Q0(e.type,i))return n}catch{}}});var r_=y((VW,Lf)=>{"use strict";l();var t_=require("fs"),{promisify:GI}=require("util"),VI=GI(t_.access);Lf.exports=async t=>{try{return await VI(t),!0}catch{return!1}};Lf.exports.sync=t=>{try{return t_.accessSync(t),!0}catch{return!1}}});var i_=y((WW,Fi)=>{"use strict";l();var hn=require("path"),Ha=e_(),n_=r_(),Nf=Symbol("findUp.stop");Fi.exports=async(t,e={})=>{let r=hn.resolve(e.cwd||""),{root:n}=hn.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return Ha(i,o);let a=await t(o.cwd);return typeof a=="string"?Ha([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Nf)return;if(o)return hn.resolve(r,o);if(r===n)return;r=hn.dirname(r)}};Fi.exports.sync=(t,e={})=>{let r=hn.resolve(e.cwd||""),{root:n}=hn.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return Ha.sync(i,o);let a=t(o.cwd);return typeof a=="string"?Ha.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Nf)return;if(o)return hn.resolve(r,o);if(r===n)return;r=hn.dirname(r)}};Fi.exports.exists=n_;Fi.exports.sync.exists=n_.sync;Fi.exports.stop=Nf});var vt=y(Df=>{"use strict";l();Df.fromCallback=function(t){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")t.apply(this,arguments);else return new Promise((e,r)=>{arguments[arguments.length]=(n,i)=>{if(n)return r(n);e(i)},arguments.length++,t.apply(this,arguments)})},"name",{value:t.name})};Df.fromPromise=function(t){return Object.defineProperty(function(){let e=arguments[arguments.length-1];if(typeof e!="function")return t.apply(this,arguments);t.apply(this,arguments).then(r=>e(null,r),e)},"name",{value:t.name})}});var o_=y((YW,s_)=>{l();var dn=require("constants"),WI=process.cwd,$a=null,zI=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return $a||($a=WI.call(process)),$a};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Mf=process.chdir,process.chdir=function(t){$a=null,Mf.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Mf));var Mf;s_.exports=YI;function YI(t){dn.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,h,d){d&&process.nextTick(d)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,h,d,g){g&&process.nextTick(g)},t.lchownSync=function(){}),zI==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(f){function h(d,g,m){var E=Date.now(),v=0;f(d,g,function A(P){if(P&&(P.code==="EACCES"||P.code==="EPERM"||P.code==="EBUSY")&&Date.now()-E<6e4){setTimeout(function(){t.stat(g,function(D,ie){D&&D.code==="ENOENT"?f(d,g,A):m(P)})},v),v<100&&(v+=10);return}m&&m(P)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(t.rename)),t.read=typeof t.read!="function"?t.read:function(f){function h(d,g,m,E,v,A){var P;if(A&&typeof A=="function"){var D=0;P=function(ie,z,ue){if(ie&&ie.code==="EAGAIN"&&D<10)return D++,f.call(t,d,g,m,E,v,P);A.apply(this,arguments)}}return f.call(t,d,g,m,E,v,P)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(f){return function(h,d,g,m,E){for(var v=0;;)try{return f.call(t,h,d,g,m,E)}catch(A){if(A.code==="EAGAIN"&&v<10){v++;continue}throw A}}}(t.readSync);function e(f){f.lchmod=function(h,d,g){f.open(h,dn.O_WRONLY|dn.O_SYMLINK,d,function(m,E){if(m){g&&g(m);return}f.fchmod(E,d,function(v){f.close(E,function(A){g&&g(v||A)})})})},f.lchmodSync=function(h,d){var g=f.openSync(h,dn.O_WRONLY|dn.O_SYMLINK,d),m=!0,E;try{E=f.fchmodSync(g,d),m=!1}finally{if(m)try{f.closeSync(g)}catch{}else f.closeSync(g)}return E}}function r(f){dn.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,d,g,m){f.open(h,dn.O_SYMLINK,function(E,v){if(E){m&&m(E);return}f.futimes(v,d,g,function(A){f.close(v,function(P){m&&m(A||P)})})})},f.lutimesSync=function(h,d,g){var m=f.openSync(h,dn.O_SYMLINK),E,v=!0;try{E=f.futimesSync(m,d,g),v=!1}finally{if(v)try{f.closeSync(m)}catch{}else f.closeSync(m)}return E}):f.futimes&&(f.lutimes=function(h,d,g,m){m&&process.nextTick(m)},f.lutimesSync=function(){})}function n(f){return f&&function(h,d,g){return f.call(t,h,d,function(m){u(m)&&(m=null),g&&g.apply(this,arguments)})}}function i(f){return f&&function(h,d){try{return f.call(t,h,d)}catch(g){if(!u(g))throw g}}}function s(f){return f&&function(h,d,g,m){return f.call(t,h,d,g,function(E){u(E)&&(E=null),m&&m.apply(this,arguments)})}}function o(f){return f&&function(h,d,g){try{return f.call(t,h,d,g)}catch(m){if(!u(m))throw m}}}function a(f){return f&&function(h,d,g){typeof d=="function"&&(g=d,d=null);function m(E,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),g&&g.apply(this,arguments)}return d?f.call(t,h,d,m):f.call(t,h,m)}}function c(f){return f&&function(h,d){var g=d?f.call(t,h,d):f.call(t,h);return g&&(g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296)),g}}function u(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var u_=y((KW,c_)=>{l();var a_=require("stream").Stream;c_.exports=KI;function KI(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);a_.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,c=o.length;a<c;a++){var u=o[a];this[u]=i[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);a_.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var c=s[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var f_=y((ZW,l_)=>{"use strict";l();l_.exports=JI;var ZI=Object.getPrototypeOf||function(t){return t.__proto__};function JI(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:ZI(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var je=y((JW,Bf)=>{l();var Ne=require("fs"),XI=o_(),QI=u_(),eL=f_(),Ua=require("util"),Qe,Va;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Qe=Symbol.for("graceful-fs.queue"),Va=Symbol.for("graceful-fs.previous")):(Qe="___graceful-fs.queue",Va="___graceful-fs.previous");function tL(){}function p_(t,e){Object.defineProperty(t,Qe,{get:function(){return e}})}var Kn=tL;Ua.debuglog?Kn=Ua.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Kn=function(){var t=Ua.format.apply(Ua,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
23
|
-
GFS4: `),console.error(t)});Ne[Qe]||(h_=global[Qe]||[],p_(Ne,h_),Ne.close=function(t){function e(r,n){return t.call(Ne,r,function(i){i||d_(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Va,{value:t}),e}(Ne.close),Ne.closeSync=function(t){function e(r){t.apply(Ne,arguments),d_()}return Object.defineProperty(e,Va,{value:t}),e}(Ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Kn(Ne[Qe]),require("assert").equal(Ne[Qe].length,0)}));var h_;global[Qe]||p_(global,Ne[Qe]);Bf.exports=Ff(eL(Ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ne.__patched&&(Bf.exports=Ff(Ne),Ne.__patched=!0);function Ff(t){XI(t),t.gracefulify=Ff,t.createReadStream=z,t.createWriteStream=ue;var e=t.readFile;t.readFile=r;function r(F,Q,C){return typeof Q=="function"&&(C=Q,Q=null),ne(F,Q,C);function ne(ee,fe,R,x){return e(ee,fe,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?qi([ne,[ee,fe,R],T,x||Date.now(),Date.now()]):typeof R=="function"&&R.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(F,Q,C,ne){return typeof C=="function"&&(ne=C,C=null),ee(F,Q,C,ne);function ee(fe,R,x,T,k){return n(fe,R,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?qi([ee,[fe,R,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(F,Q,C,ne){return typeof C=="function"&&(ne=C,C=null),ee(F,Q,C,ne);function ee(fe,R,x,T,k){return s(fe,R,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?qi([ee,[fe,R,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(F,Q,C,ne){return typeof C=="function"&&(ne=C,C=0),ee(F,Q,C,ne);function ee(fe,R,x,T,k){return a(fe,R,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?qi([ee,[fe,R,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var u=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(F,Q,C){typeof Q=="function"&&(C=Q,Q=null);var ne=f.test(process.version)?function(R,x,T,k){return u(R,ee(R,x,T,k))}:function(R,x,T,k){return u(R,x,ee(R,x,T,k))};return ne(F,Q,C);function ee(fe,R,x,T){return function(k,I){k&&(k.code==="EMFILE"||k.code==="ENFILE")?qi([ne,[fe,R,x],k,T||Date.now(),Date.now()]):(I&&I.sort&&I.sort(),typeof x=="function"&&x.call(this,k,I))}}}if(process.version.substr(0,4)==="v0.8"){var d=QI(t);A=d.ReadStream,D=d.WriteStream}var g=t.ReadStream;g&&(A.prototype=Object.create(g.prototype),A.prototype.open=P);var m=t.WriteStream;m&&(D.prototype=Object.create(m.prototype),D.prototype.open=ie),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(F){A=F},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return D},set:function(F){D=F},enumerable:!0,configurable:!0});var E=A;Object.defineProperty(t,"FileReadStream",{get:function(){return E},set:function(F){E=F},enumerable:!0,configurable:!0});var v=D;Object.defineProperty(t,"FileWriteStream",{get:function(){return v},set:function(F){v=F},enumerable:!0,configurable:!0});function A(F,Q){return this instanceof A?(g.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function P(){var F=this;Z(F.path,F.flags,F.mode,function(Q,C){Q?(F.autoClose&&F.destroy(),F.emit("error",Q)):(F.fd=C,F.emit("open",C),F.read())})}function D(F,Q){return this instanceof D?(m.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function ie(){var F=this;Z(F.path,F.flags,F.mode,function(Q,C){Q?(F.destroy(),F.emit("error",Q)):(F.fd=C,F.emit("open",C))})}function z(F,Q){return new t.ReadStream(F,Q)}function ue(F,Q){return new t.WriteStream(F,Q)}var K=t.open;t.open=Z;function Z(F,Q,C,ne){return typeof C=="function"&&(ne=C,C=null),ee(F,Q,C,ne);function ee(fe,R,x,T,k){return K(fe,R,x,function(I,Y){I&&(I.code==="EMFILE"||I.code==="ENFILE")?qi([ee,[fe,R,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return t}function qi(t){Kn("ENQUEUE",t[0].name,t[1]),Ne[Qe].push(t),qf()}var Ga;function d_(){for(var t=Date.now(),e=0;e<Ne[Qe].length;++e)Ne[Qe][e].length>2&&(Ne[Qe][e][3]=t,Ne[Qe][e][4]=t);qf()}function qf(){if(clearTimeout(Ga),Ga=void 0,Ne[Qe].length!==0){var t=Ne[Qe].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)Kn("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){Kn("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),u=Math.min(c*1.2,100);a>=u?(Kn("RETRY",e.name,r),e.apply(null,r.concat([i]))):Ne[Qe].push(t)}Ga===void 0&&(Ga=setTimeout(qf,0))}}});var jf=y(Zn=>{"use strict";l();var m_=vt().fromCallback,Gt=je(),rL=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof Gt[t]=="function");Object.keys(Gt).forEach(t=>{t!=="promises"&&(Zn[t]=Gt[t])});rL.forEach(t=>{Zn[t]=m_(Gt[t])});Zn.exists=function(t,e){return typeof e=="function"?Gt.exists(t,e):new Promise(r=>Gt.exists(t,r))};Zn.read=function(t,e,r,n,i,s){return typeof s=="function"?Gt.read(t,e,r,n,i,s):new Promise((o,a)=>{Gt.read(t,e,r,n,i,(c,u,f)=>{if(c)return a(c);o({bytesRead:u,buffer:f})})})};Zn.write=function(t,e,...r){return typeof r[r.length-1]=="function"?Gt.write(t,e,...r):new Promise((n,i)=>{Gt.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof Gt.realpath.native=="function"&&(Zn.realpath.native=m_(Gt.realpath.native))});var $f=y((QW,y_)=>{"use strict";l();var Hf=require("path");function g_(t){return t=Hf.normalize(Hf.resolve(t)).split(Hf.sep),t.length>0?t[0]:null}var nL=/[<>:"|?*]/;function iL(t){let e=g_(t);return t=t.replace(e,""),nL.test(t)}y_.exports={getRootPath:g_,invalidWin32Path:iL}});var v_=y((ez,__)=>{"use strict";l();var sL=je(),Uf=require("path"),oL=$f().invalidWin32Path,aL=parseInt("0777",8);function Gf(t,e,r,n){if(typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e}),process.platform==="win32"&&oL(t)){let o=new Error(t+" contains invalid WIN32 path characters.");return o.code="EINVAL",r(o)}let i=e.mode,s=e.fs||sL;i===void 0&&(i=aL&~process.umask()),n||(n=null),r=r||function(){},t=Uf.resolve(t),s.mkdir(t,i,o=>{if(!o)return n=n||t,r(null,n);switch(o.code){case"ENOENT":if(Uf.dirname(t)===t)return r(o);Gf(Uf.dirname(t),e,(a,c)=>{a?r(a,c):Gf(t,e,r,c)});break;default:s.stat(t,(a,c)=>{a||!c.isDirectory()?r(o,n):r(null,n)});break}})}__.exports=Gf});var E_=y((tz,b_)=>{"use strict";l();var cL=je(),Vf=require("path"),uL=$f().invalidWin32Path,lL=parseInt("0777",8);function Wf(t,e,r){(!e||typeof e!="object")&&(e={mode:e});let n=e.mode,i=e.fs||cL;if(process.platform==="win32"&&uL(t)){let s=new Error(t+" contains invalid WIN32 path characters.");throw s.code="EINVAL",s}n===void 0&&(n=lL&~process.umask()),r||(r=null),t=Vf.resolve(t);try{i.mkdirSync(t,n),r=r||t}catch(s){if(s.code==="ENOENT"){if(Vf.dirname(t)===t)throw s;r=Wf(Vf.dirname(t),e,r),Wf(t,e,r)}else{let o;try{o=i.statSync(t)}catch{throw s}if(!o.isDirectory())throw s}}return r}b_.exports=Wf});var Pt=y((rz,w_)=>{"use strict";l();var fL=vt().fromCallback,zf=fL(v_()),Yf=E_();w_.exports={mkdirs:zf,mkdirsSync:Yf,mkdirp:zf,mkdirpSync:Yf,ensureDir:zf,ensureDirSync:Yf}});var Kf=y((nz,S_)=>{"use strict";l();var rt=je(),x_=require("os"),Wa=require("path");function hL(){let t=Wa.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));t=Wa.join(x_.tmpdir(),t);let e=new Date(1435410243862);rt.writeFileSync(t,"https://github.com/jprichardson/node-fs-extra/pull/141");let r=rt.openSync(t,"r+");return rt.futimesSync(r,e,e),rt.closeSync(r),rt.statSync(t).mtime>1435410243e3}function dL(t){let e=Wa.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=Wa.join(x_.tmpdir(),e);let r=new Date(1435410243862);rt.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",n=>{if(n)return t(n);rt.open(e,"r+",(i,s)=>{if(i)return t(i);rt.futimes(s,r,r,o=>{if(o)return t(o);rt.close(s,a=>{if(a)return t(a);rt.stat(e,(c,u)=>{if(c)return t(c);t(null,u.mtime>1435410243e3)})})})})})}function pL(t){if(typeof t=="number")return Math.floor(t/1e3)*1e3;if(t instanceof Date)return new Date(Math.floor(t.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function mL(t,e,r,n){rt.open(t,"r+",(i,s)=>{if(i)return n(i);rt.futimes(s,e,r,o=>{rt.close(s,a=>{n&&n(o||a)})})})}function gL(t,e,r){let n=rt.openSync(t,"r+");return rt.futimesSync(n,e,r),rt.closeSync(n)}S_.exports={hasMillisRes:dL,hasMillisResSync:hL,timeRemoveMillis:pL,utimesMillis:mL,utimesMillisSync:gL}});var Eo=y((iz,k_)=>{"use strict";l();var Vt=je(),bt=require("path"),A_=10,R_=5,yL=0,Jf=process.versions.node.split("."),C_=Number.parseInt(Jf[0],10),O_=Number.parseInt(Jf[1],10),_L=Number.parseInt(Jf[2],10);function vo(){if(C_>A_)return!0;if(C_===A_){if(O_>R_)return!0;if(O_===R_&&_L>=yL)return!0}return!1}function vL(t,e,r){vo()?Vt.stat(t,{bigint:!0},(n,i)=>{if(n)return r(n);Vt.stat(e,{bigint:!0},(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))}):Vt.stat(t,(n,i)=>{if(n)return r(n);Vt.stat(e,(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))})}function bL(t,e){let r,n;vo()?r=Vt.statSync(t,{bigint:!0}):r=Vt.statSync(t);try{vo()?n=Vt.statSync(e,{bigint:!0}):n=Vt.statSync(e)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function EL(t,e,r,n){vL(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Xf(t,e)?n(new Error(bo(t,e,r))):n(null,{srcStat:o,destStat:a})})}function wL(t,e,r){let{srcStat:n,destStat:i}=bL(t,e);if(i&&i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev)throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Xf(t,e))throw new Error(bo(t,e,r));return{srcStat:n,destStat:i}}function Zf(t,e,r,n,i){let s=bt.resolve(bt.dirname(t)),o=bt.resolve(bt.dirname(r));if(o===s||o===bt.parse(o).root)return i();vo()?Vt.stat(o,{bigint:!0},(a,c)=>a?a.code==="ENOENT"?i():i(a):c.ino&&c.dev&&c.ino===e.ino&&c.dev===e.dev?i(new Error(bo(t,r,n))):Zf(t,e,o,n,i)):Vt.stat(o,(a,c)=>a?a.code==="ENOENT"?i():i(a):c.ino&&c.dev&&c.ino===e.ino&&c.dev===e.dev?i(new Error(bo(t,r,n))):Zf(t,e,o,n,i))}function T_(t,e,r,n){let i=bt.resolve(bt.dirname(t)),s=bt.resolve(bt.dirname(r));if(s===i||s===bt.parse(s).root)return;let o;try{vo()?o=Vt.statSync(s,{bigint:!0}):o=Vt.statSync(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(o.ino&&o.dev&&o.ino===e.ino&&o.dev===e.dev)throw new Error(bo(t,r,n));return T_(t,e,s,n)}function Xf(t,e){let r=bt.resolve(t).split(bt.sep).filter(i=>i),n=bt.resolve(e).split(bt.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function bo(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}k_.exports={checkPaths:EL,checkPathsSync:wL,checkParentPaths:Zf,checkParentPathsSync:T_,isSrcSubdir:Xf}});var I_=y((sz,P_)=>{"use strict";l();P_.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}});var F_=y((oz,M_)=>{"use strict";l();var ke=je(),wo=require("path"),xL=Pt().mkdirsSync,SL=Kf().utimesMillisSync,xo=Eo();function AL(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
22
|
+
`)}),this}};function A0(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function R0(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}function mo(t){let e=[];for(let r=t;r;r=r.parent)e.push(r);return e}C0.Command=go});var I0=y((cr,P0)=>{l();var{Argument:LI}=Ma(),{Command:T0}=O0(),{CommanderError:NI,InvalidArgumentError:k0}=po(),{Help:DI}=mf(),{Option:MI}=_f();cr=P0.exports=new T0;cr.program=cr;cr.Argument=LI;cr.Command=T0;cr.CommanderError=NI;cr.Help=DI;cr.InvalidArgumentError=k0;cr.InvalidOptionArgumentError=k0;cr.Option=MI});var M0=y((yW,qr)=>{l();function wf(t){return qr.exports=wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qr.exports.__esModule=!0,qr.exports.default=qr.exports,wf(t)}qr.exports=wf,qr.exports.__esModule=!0,qr.exports.default=qr.exports});var B0=y((_W,Br)=>{l();var F0=M0().default;function q0(){"use strict";Br.exports=q0=function(){return e},Br.exports.__esModule=!0,Br.exports.default=Br.exports;var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(x,T,k){x[T]=k.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function u(x,T,k){return Object.defineProperty(x,T,{value:k,enumerable:!0,configurable:!0,writable:!0}),x[T]}try{u({},"")}catch{u=function(k,I,Y){return k[I]=Y}}function f(x,T,k,I){var Y=T&&T.prototype instanceof A?T:A,j=Object.create(Y.prototype),ve=new fe(I||[]);return i(j,"_invoke",{value:Q(x,k,ve)}),j}function h(x,T,k){try{return{type:"normal",arg:x.call(T,k)}}catch(I){return{type:"throw",arg:I}}}e.wrap=f;var d="suspendedStart",g="suspendedYield",m="executing",E="completed",v={};function A(){}function P(){}function D(){}var ie={};u(ie,o,function(){return this});var z=Object.getPrototypeOf,ue=z&&z(z(R([])));ue&&ue!==r&&n.call(ue,o)&&(ie=ue);var K=D.prototype=A.prototype=Object.create(ie);function Z(x){["next","throw","return"].forEach(function(T){u(x,T,function(k){return this._invoke(T,k)})})}function F(x,T){function k(Y,j,ve,Ue){var ge=h(x[Y],x,j);if(ge.type!=="throw"){var De=ge.arg,re=De.value;return re&&F0(re)=="object"&&n.call(re,"__await")?T.resolve(re.__await).then(function(pt){k("next",pt,ve,Ue)},function(pt){k("throw",pt,ve,Ue)}):T.resolve(re).then(function(pt){De.value=pt,ve(De)},function(pt){return k("throw",pt,ve,Ue)})}Ue(ge.arg)}var I;i(this,"_invoke",{value:function(j,ve){function Ue(){return new T(function(ge,De){k(j,ve,ge,De)})}return I=I?I.then(Ue,Ue):Ue()}})}function Q(x,T,k){var I=d;return function(Y,j){if(I===m)throw new Error("Generator is already running");if(I===E){if(Y==="throw")throw j;return{value:t,done:!0}}for(k.method=Y,k.arg=j;;){var ve=k.delegate;if(ve){var Ue=C(ve,k);if(Ue){if(Ue===v)continue;return Ue}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(I===d)throw I=E,k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);I=m;var ge=h(x,T,k);if(ge.type==="normal"){if(I=k.done?E:g,ge.arg===v)continue;return{value:ge.arg,done:k.done}}ge.type==="throw"&&(I=E,k.method="throw",k.arg=ge.arg)}}}function C(x,T){var k=T.method,I=x.iterator[k];if(I===t)return T.delegate=null,k==="throw"&&x.iterator.return&&(T.method="return",T.arg=t,C(x,T),T.method==="throw")||k!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+k+"' method")),v;var Y=h(I,x.iterator,T.arg);if(Y.type==="throw")return T.method="throw",T.arg=Y.arg,T.delegate=null,v;var j=Y.arg;return j?j.done?(T[x.resultName]=j.value,T.next=x.nextLoc,T.method!=="return"&&(T.method="next",T.arg=t),T.delegate=null,v):j:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,v)}function ne(x){var T={tryLoc:x[0]};1 in x&&(T.catchLoc=x[1]),2 in x&&(T.finallyLoc=x[2],T.afterLoc=x[3]),this.tryEntries.push(T)}function ee(x){var T=x.completion||{};T.type="normal",delete T.arg,x.completion=T}function fe(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ne,this),this.reset(!0)}function R(x){if(x||x===""){var T=x[o];if(T)return T.call(x);if(typeof x.next=="function")return x;if(!isNaN(x.length)){var k=-1,I=function Y(){for(;++k<x.length;)if(n.call(x,k))return Y.value=x[k],Y.done=!1,Y;return Y.value=t,Y.done=!0,Y};return I.next=I}}throw new TypeError(F0(x)+" is not iterable")}return P.prototype=D,i(K,"constructor",{value:D,configurable:!0}),i(D,"constructor",{value:P,configurable:!0}),P.displayName=u(D,c,"GeneratorFunction"),e.isGeneratorFunction=function(x){var T=typeof x=="function"&&x.constructor;return!!T&&(T===P||(T.displayName||T.name)==="GeneratorFunction")},e.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,D):(x.__proto__=D,u(x,c,"GeneratorFunction")),x.prototype=Object.create(K),x},e.awrap=function(x){return{__await:x}},Z(F.prototype),u(F.prototype,a,function(){return this}),e.AsyncIterator=F,e.async=function(x,T,k,I,Y){Y===void 0&&(Y=Promise);var j=new F(f(x,T,k,I),Y);return e.isGeneratorFunction(T)?j:j.next().then(function(ve){return ve.done?ve.value:j.next()})},Z(K),u(K,c,"Generator"),u(K,o,function(){return this}),u(K,"toString",function(){return"[object Generator]"}),e.keys=function(x){var T=Object(x),k=[];for(var I in T)k.push(I);return k.reverse(),function Y(){for(;k.length;){var j=k.pop();if(j in T)return Y.value=j,Y.done=!1,Y}return Y.done=!0,Y}},e.values=R,fe.prototype={constructor:fe,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(ee),!T)for(var k in this)k.charAt(0)==="t"&&n.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=t)},stop:function(){this.done=!0;var T=this.tryEntries[0].completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var k=this;function I(De,re){return ve.type="throw",ve.arg=T,k.next=De,re&&(k.method="next",k.arg=t),!!re}for(var Y=this.tryEntries.length-1;Y>=0;--Y){var j=this.tryEntries[Y],ve=j.completion;if(j.tryLoc==="root")return I("end");if(j.tryLoc<=this.prev){var Ue=n.call(j,"catchLoc"),ge=n.call(j,"finallyLoc");if(Ue&&ge){if(this.prev<j.catchLoc)return I(j.catchLoc,!0);if(this.prev<j.finallyLoc)return I(j.finallyLoc)}else if(Ue){if(this.prev<j.catchLoc)return I(j.catchLoc,!0)}else{if(!ge)throw new Error("try statement without catch or finally");if(this.prev<j.finallyLoc)return I(j.finallyLoc)}}}},abrupt:function(T,k){for(var I=this.tryEntries.length-1;I>=0;--I){var Y=this.tryEntries[I];if(Y.tryLoc<=this.prev&&n.call(Y,"finallyLoc")&&this.prev<Y.finallyLoc){var j=Y;break}}j&&(T==="break"||T==="continue")&&j.tryLoc<=k&&k<=j.finallyLoc&&(j=null);var ve=j?j.completion:{};return ve.type=T,ve.arg=k,j?(this.method="next",this.next=j.finallyLoc,v):this.complete(ve)},complete:function(T,k){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&k&&(this.next=k),v},finish:function(T){for(var k=this.tryEntries.length-1;k>=0;--k){var I=this.tryEntries[k];if(I.finallyLoc===T)return this.complete(I.completion,I.afterLoc),ee(I),v}},catch:function(T){for(var k=this.tryEntries.length-1;k>=0;--k){var I=this.tryEntries[k];if(I.tryLoc===T){var Y=I.completion;if(Y.type==="throw"){var j=Y.arg;ee(I)}return j}}throw new Error("illegal catch attempt")},delegateYield:function(T,k,I){return this.delegate={iterator:R(T),resultName:k,nextLoc:I},this.method==="next"&&(this.arg=t),v}},e}Br.exports=q0,Br.exports.__esModule=!0,Br.exports.default=Br.exports});var H0=y((vW,j0)=>{l();var qa=B0()();j0.exports=qa;try{regeneratorRuntime=qa}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=qa:Function("r","regeneratorRuntime = r")(qa)}});var U0=y((HW,Tf)=>{"use strict";l();var $0=(t,...e)=>new Promise(r=>{r(t(...e))});Tf.exports=$0;Tf.exports.default=$0});var V0=y(($W,kf)=>{"use strict";l();var FI=U0(),G0=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let e=[],r=0,n=()=>{r--,e.length>0&&e.shift()()},i=(a,c,...u)=>{r++;let f=FI(a,...u);c(f),f.then(n,n)},s=(a,c,...u)=>{r<t?i(a,c,...u):e.push(i.bind(null,a,c,...u))},o=(a,...c)=>new Promise(u=>s(a,u,...c));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.length},clearQueue:{value:()=>{e.length=0}}}),o};kf.exports=G0;kf.exports.default=G0});var Y0=y((UW,Pf)=>{"use strict";l();var W0=V0(),Ba=class extends Error{constructor(e){super(),this.value=e}},qI=async(t,e)=>e(await t),BI=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new Ba(e[0]);return!1},z0=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=W0(r.concurrency),i=[...t].map(o=>[o,n(qI,o,e)]),s=W0(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(BI,o)))}catch(o){if(o instanceof Ba)return o.value;throw o}};Pf.exports=z0;Pf.exports.default=z0});var e_=y((GW,If)=>{"use strict";l();var K0=require("path"),ja=require("fs"),{promisify:Z0}=require("util"),jI=Y0(),HI=Z0(ja.stat),$I=Z0(ja.lstat),J0={directory:"isDirectory",file:"isFile"};function X0({type:t}){if(!(t in J0))throw new Error(`Invalid type specified: ${t}`)}var Q0=(t,e)=>t===void 0||e[J0[t]]();If.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},X0(e);let r=e.allowSymlinks?HI:$I;return jI(t,async n=>{try{let i=await r(K0.resolve(e.cwd,n));return Q0(e.type,i)}catch{return!1}},e)};If.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},X0(e);let r=e.allowSymlinks?ja.statSync:ja.lstatSync;for(let n of t)try{let i=r(K0.resolve(e.cwd,n));if(Q0(e.type,i))return n}catch{}}});var r_=y((VW,Lf)=>{"use strict";l();var t_=require("fs"),{promisify:UI}=require("util"),GI=UI(t_.access);Lf.exports=async t=>{try{return await GI(t),!0}catch{return!1}};Lf.exports.sync=t=>{try{return t_.accessSync(t),!0}catch{return!1}}});var i_=y((WW,Fi)=>{"use strict";l();var hn=require("path"),Ha=e_(),n_=r_(),Nf=Symbol("findUp.stop");Fi.exports=async(t,e={})=>{let r=hn.resolve(e.cwd||""),{root:n}=hn.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return Ha(i,o);let a=await t(o.cwd);return typeof a=="string"?Ha([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Nf)return;if(o)return hn.resolve(r,o);if(r===n)return;r=hn.dirname(r)}};Fi.exports.sync=(t,e={})=>{let r=hn.resolve(e.cwd||""),{root:n}=hn.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return Ha.sync(i,o);let a=t(o.cwd);return typeof a=="string"?Ha.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Nf)return;if(o)return hn.resolve(r,o);if(r===n)return;r=hn.dirname(r)}};Fi.exports.exists=n_;Fi.exports.sync.exists=n_.sync;Fi.exports.stop=Nf});var vt=y(Df=>{"use strict";l();Df.fromCallback=function(t){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")t.apply(this,arguments);else return new Promise((e,r)=>{arguments[arguments.length]=(n,i)=>{if(n)return r(n);e(i)},arguments.length++,t.apply(this,arguments)})},"name",{value:t.name})};Df.fromPromise=function(t){return Object.defineProperty(function(){let e=arguments[arguments.length-1];if(typeof e!="function")return t.apply(this,arguments);t.apply(this,arguments).then(r=>e(null,r),e)},"name",{value:t.name})}});var o_=y((YW,s_)=>{l();var dn=require("constants"),VI=process.cwd,$a=null,WI=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return $a||($a=VI.call(process)),$a};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Mf=process.chdir,process.chdir=function(t){$a=null,Mf.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Mf));var Mf;s_.exports=zI;function zI(t){dn.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,h,d){d&&process.nextTick(d)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,h,d,g){g&&process.nextTick(g)},t.lchownSync=function(){}),WI==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(f){function h(d,g,m){var E=Date.now(),v=0;f(d,g,function A(P){if(P&&(P.code==="EACCES"||P.code==="EPERM"||P.code==="EBUSY")&&Date.now()-E<6e4){setTimeout(function(){t.stat(g,function(D,ie){D&&D.code==="ENOENT"?f(d,g,A):m(P)})},v),v<100&&(v+=10);return}m&&m(P)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(t.rename)),t.read=typeof t.read!="function"?t.read:function(f){function h(d,g,m,E,v,A){var P;if(A&&typeof A=="function"){var D=0;P=function(ie,z,ue){if(ie&&ie.code==="EAGAIN"&&D<10)return D++,f.call(t,d,g,m,E,v,P);A.apply(this,arguments)}}return f.call(t,d,g,m,E,v,P)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(f){return function(h,d,g,m,E){for(var v=0;;)try{return f.call(t,h,d,g,m,E)}catch(A){if(A.code==="EAGAIN"&&v<10){v++;continue}throw A}}}(t.readSync);function e(f){f.lchmod=function(h,d,g){f.open(h,dn.O_WRONLY|dn.O_SYMLINK,d,function(m,E){if(m){g&&g(m);return}f.fchmod(E,d,function(v){f.close(E,function(A){g&&g(v||A)})})})},f.lchmodSync=function(h,d){var g=f.openSync(h,dn.O_WRONLY|dn.O_SYMLINK,d),m=!0,E;try{E=f.fchmodSync(g,d),m=!1}finally{if(m)try{f.closeSync(g)}catch{}else f.closeSync(g)}return E}}function r(f){dn.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,d,g,m){f.open(h,dn.O_SYMLINK,function(E,v){if(E){m&&m(E);return}f.futimes(v,d,g,function(A){f.close(v,function(P){m&&m(A||P)})})})},f.lutimesSync=function(h,d,g){var m=f.openSync(h,dn.O_SYMLINK),E,v=!0;try{E=f.futimesSync(m,d,g),v=!1}finally{if(v)try{f.closeSync(m)}catch{}else f.closeSync(m)}return E}):f.futimes&&(f.lutimes=function(h,d,g,m){m&&process.nextTick(m)},f.lutimesSync=function(){})}function n(f){return f&&function(h,d,g){return f.call(t,h,d,function(m){u(m)&&(m=null),g&&g.apply(this,arguments)})}}function i(f){return f&&function(h,d){try{return f.call(t,h,d)}catch(g){if(!u(g))throw g}}}function s(f){return f&&function(h,d,g,m){return f.call(t,h,d,g,function(E){u(E)&&(E=null),m&&m.apply(this,arguments)})}}function o(f){return f&&function(h,d,g){try{return f.call(t,h,d,g)}catch(m){if(!u(m))throw m}}}function a(f){return f&&function(h,d,g){typeof d=="function"&&(g=d,d=null);function m(E,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),g&&g.apply(this,arguments)}return d?f.call(t,h,d,m):f.call(t,h,m)}}function c(f){return f&&function(h,d){var g=d?f.call(t,h,d):f.call(t,h);return g&&(g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296)),g}}function u(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var u_=y((KW,c_)=>{l();var a_=require("stream").Stream;c_.exports=YI;function YI(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);a_.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,c=o.length;a<c;a++){var u=o[a];this[u]=i[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);a_.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var c=s[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var f_=y((ZW,l_)=>{"use strict";l();l_.exports=ZI;var KI=Object.getPrototypeOf||function(t){return t.__proto__};function ZI(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:KI(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var je=y((JW,Bf)=>{l();var Ne=require("fs"),JI=o_(),XI=u_(),QI=f_(),Ua=require("util"),Qe,Va;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Qe=Symbol.for("graceful-fs.queue"),Va=Symbol.for("graceful-fs.previous")):(Qe="___graceful-fs.queue",Va="___graceful-fs.previous");function eL(){}function p_(t,e){Object.defineProperty(t,Qe,{get:function(){return e}})}var Kn=eL;Ua.debuglog?Kn=Ua.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Kn=function(){var t=Ua.format.apply(Ua,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
23
|
+
GFS4: `),console.error(t)});Ne[Qe]||(h_=global[Qe]||[],p_(Ne,h_),Ne.close=function(t){function e(r,n){return t.call(Ne,r,function(i){i||d_(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Va,{value:t}),e}(Ne.close),Ne.closeSync=function(t){function e(r){t.apply(Ne,arguments),d_()}return Object.defineProperty(e,Va,{value:t}),e}(Ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Kn(Ne[Qe]),require("assert").equal(Ne[Qe].length,0)}));var h_;global[Qe]||p_(global,Ne[Qe]);Bf.exports=Ff(QI(Ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ne.__patched&&(Bf.exports=Ff(Ne),Ne.__patched=!0);function Ff(t){JI(t),t.gracefulify=Ff,t.createReadStream=z,t.createWriteStream=ue;var e=t.readFile;t.readFile=r;function r(F,Q,C){return typeof Q=="function"&&(C=Q,Q=null),ne(F,Q,C);function ne(ee,fe,R,x){return e(ee,fe,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?qi([ne,[ee,fe,R],T,x||Date.now(),Date.now()]):typeof R=="function"&&R.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(F,Q,C,ne){return typeof C=="function"&&(ne=C,C=null),ee(F,Q,C,ne);function ee(fe,R,x,T,k){return n(fe,R,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?qi([ee,[fe,R,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(F,Q,C,ne){return typeof C=="function"&&(ne=C,C=null),ee(F,Q,C,ne);function ee(fe,R,x,T,k){return s(fe,R,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?qi([ee,[fe,R,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(F,Q,C,ne){return typeof C=="function"&&(ne=C,C=0),ee(F,Q,C,ne);function ee(fe,R,x,T,k){return a(fe,R,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?qi([ee,[fe,R,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var u=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(F,Q,C){typeof Q=="function"&&(C=Q,Q=null);var ne=f.test(process.version)?function(R,x,T,k){return u(R,ee(R,x,T,k))}:function(R,x,T,k){return u(R,x,ee(R,x,T,k))};return ne(F,Q,C);function ee(fe,R,x,T){return function(k,I){k&&(k.code==="EMFILE"||k.code==="ENFILE")?qi([ne,[fe,R,x],k,T||Date.now(),Date.now()]):(I&&I.sort&&I.sort(),typeof x=="function"&&x.call(this,k,I))}}}if(process.version.substr(0,4)==="v0.8"){var d=XI(t);A=d.ReadStream,D=d.WriteStream}var g=t.ReadStream;g&&(A.prototype=Object.create(g.prototype),A.prototype.open=P);var m=t.WriteStream;m&&(D.prototype=Object.create(m.prototype),D.prototype.open=ie),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(F){A=F},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return D},set:function(F){D=F},enumerable:!0,configurable:!0});var E=A;Object.defineProperty(t,"FileReadStream",{get:function(){return E},set:function(F){E=F},enumerable:!0,configurable:!0});var v=D;Object.defineProperty(t,"FileWriteStream",{get:function(){return v},set:function(F){v=F},enumerable:!0,configurable:!0});function A(F,Q){return this instanceof A?(g.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function P(){var F=this;Z(F.path,F.flags,F.mode,function(Q,C){Q?(F.autoClose&&F.destroy(),F.emit("error",Q)):(F.fd=C,F.emit("open",C),F.read())})}function D(F,Q){return this instanceof D?(m.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function ie(){var F=this;Z(F.path,F.flags,F.mode,function(Q,C){Q?(F.destroy(),F.emit("error",Q)):(F.fd=C,F.emit("open",C))})}function z(F,Q){return new t.ReadStream(F,Q)}function ue(F,Q){return new t.WriteStream(F,Q)}var K=t.open;t.open=Z;function Z(F,Q,C,ne){return typeof C=="function"&&(ne=C,C=null),ee(F,Q,C,ne);function ee(fe,R,x,T,k){return K(fe,R,x,function(I,Y){I&&(I.code==="EMFILE"||I.code==="ENFILE")?qi([ee,[fe,R,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return t}function qi(t){Kn("ENQUEUE",t[0].name,t[1]),Ne[Qe].push(t),qf()}var Ga;function d_(){for(var t=Date.now(),e=0;e<Ne[Qe].length;++e)Ne[Qe][e].length>2&&(Ne[Qe][e][3]=t,Ne[Qe][e][4]=t);qf()}function qf(){if(clearTimeout(Ga),Ga=void 0,Ne[Qe].length!==0){var t=Ne[Qe].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)Kn("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){Kn("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),u=Math.min(c*1.2,100);a>=u?(Kn("RETRY",e.name,r),e.apply(null,r.concat([i]))):Ne[Qe].push(t)}Ga===void 0&&(Ga=setTimeout(qf,0))}}});var jf=y(Zn=>{"use strict";l();var m_=vt().fromCallback,Gt=je(),tL=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof Gt[t]=="function");Object.keys(Gt).forEach(t=>{t!=="promises"&&(Zn[t]=Gt[t])});tL.forEach(t=>{Zn[t]=m_(Gt[t])});Zn.exists=function(t,e){return typeof e=="function"?Gt.exists(t,e):new Promise(r=>Gt.exists(t,r))};Zn.read=function(t,e,r,n,i,s){return typeof s=="function"?Gt.read(t,e,r,n,i,s):new Promise((o,a)=>{Gt.read(t,e,r,n,i,(c,u,f)=>{if(c)return a(c);o({bytesRead:u,buffer:f})})})};Zn.write=function(t,e,...r){return typeof r[r.length-1]=="function"?Gt.write(t,e,...r):new Promise((n,i)=>{Gt.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof Gt.realpath.native=="function"&&(Zn.realpath.native=m_(Gt.realpath.native))});var $f=y((QW,y_)=>{"use strict";l();var Hf=require("path");function g_(t){return t=Hf.normalize(Hf.resolve(t)).split(Hf.sep),t.length>0?t[0]:null}var rL=/[<>:"|?*]/;function nL(t){let e=g_(t);return t=t.replace(e,""),rL.test(t)}y_.exports={getRootPath:g_,invalidWin32Path:nL}});var v_=y((ez,__)=>{"use strict";l();var iL=je(),Uf=require("path"),sL=$f().invalidWin32Path,oL=parseInt("0777",8);function Gf(t,e,r,n){if(typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e}),process.platform==="win32"&&sL(t)){let o=new Error(t+" contains invalid WIN32 path characters.");return o.code="EINVAL",r(o)}let i=e.mode,s=e.fs||iL;i===void 0&&(i=oL&~process.umask()),n||(n=null),r=r||function(){},t=Uf.resolve(t),s.mkdir(t,i,o=>{if(!o)return n=n||t,r(null,n);switch(o.code){case"ENOENT":if(Uf.dirname(t)===t)return r(o);Gf(Uf.dirname(t),e,(a,c)=>{a?r(a,c):Gf(t,e,r,c)});break;default:s.stat(t,(a,c)=>{a||!c.isDirectory()?r(o,n):r(null,n)});break}})}__.exports=Gf});var E_=y((tz,b_)=>{"use strict";l();var aL=je(),Vf=require("path"),cL=$f().invalidWin32Path,uL=parseInt("0777",8);function Wf(t,e,r){(!e||typeof e!="object")&&(e={mode:e});let n=e.mode,i=e.fs||aL;if(process.platform==="win32"&&cL(t)){let s=new Error(t+" contains invalid WIN32 path characters.");throw s.code="EINVAL",s}n===void 0&&(n=uL&~process.umask()),r||(r=null),t=Vf.resolve(t);try{i.mkdirSync(t,n),r=r||t}catch(s){if(s.code==="ENOENT"){if(Vf.dirname(t)===t)throw s;r=Wf(Vf.dirname(t),e,r),Wf(t,e,r)}else{let o;try{o=i.statSync(t)}catch{throw s}if(!o.isDirectory())throw s}}return r}b_.exports=Wf});var Pt=y((rz,w_)=>{"use strict";l();var lL=vt().fromCallback,zf=lL(v_()),Yf=E_();w_.exports={mkdirs:zf,mkdirsSync:Yf,mkdirp:zf,mkdirpSync:Yf,ensureDir:zf,ensureDirSync:Yf}});var Kf=y((nz,S_)=>{"use strict";l();var rt=je(),x_=require("os"),Wa=require("path");function fL(){let t=Wa.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));t=Wa.join(x_.tmpdir(),t);let e=new Date(1435410243862);rt.writeFileSync(t,"https://github.com/jprichardson/node-fs-extra/pull/141");let r=rt.openSync(t,"r+");return rt.futimesSync(r,e,e),rt.closeSync(r),rt.statSync(t).mtime>1435410243e3}function hL(t){let e=Wa.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=Wa.join(x_.tmpdir(),e);let r=new Date(1435410243862);rt.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",n=>{if(n)return t(n);rt.open(e,"r+",(i,s)=>{if(i)return t(i);rt.futimes(s,r,r,o=>{if(o)return t(o);rt.close(s,a=>{if(a)return t(a);rt.stat(e,(c,u)=>{if(c)return t(c);t(null,u.mtime>1435410243e3)})})})})})}function dL(t){if(typeof t=="number")return Math.floor(t/1e3)*1e3;if(t instanceof Date)return new Date(Math.floor(t.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function pL(t,e,r,n){rt.open(t,"r+",(i,s)=>{if(i)return n(i);rt.futimes(s,e,r,o=>{rt.close(s,a=>{n&&n(o||a)})})})}function mL(t,e,r){let n=rt.openSync(t,"r+");return rt.futimesSync(n,e,r),rt.closeSync(n)}S_.exports={hasMillisRes:hL,hasMillisResSync:fL,timeRemoveMillis:dL,utimesMillis:pL,utimesMillisSync:mL}});var Eo=y((iz,k_)=>{"use strict";l();var Vt=je(),bt=require("path"),A_=10,R_=5,gL=0,Jf=process.versions.node.split("."),C_=Number.parseInt(Jf[0],10),O_=Number.parseInt(Jf[1],10),yL=Number.parseInt(Jf[2],10);function vo(){if(C_>A_)return!0;if(C_===A_){if(O_>R_)return!0;if(O_===R_&&yL>=gL)return!0}return!1}function _L(t,e,r){vo()?Vt.stat(t,{bigint:!0},(n,i)=>{if(n)return r(n);Vt.stat(e,{bigint:!0},(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))}):Vt.stat(t,(n,i)=>{if(n)return r(n);Vt.stat(e,(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))})}function vL(t,e){let r,n;vo()?r=Vt.statSync(t,{bigint:!0}):r=Vt.statSync(t);try{vo()?n=Vt.statSync(e,{bigint:!0}):n=Vt.statSync(e)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function bL(t,e,r,n){_L(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Xf(t,e)?n(new Error(bo(t,e,r))):n(null,{srcStat:o,destStat:a})})}function EL(t,e,r){let{srcStat:n,destStat:i}=vL(t,e);if(i&&i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev)throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Xf(t,e))throw new Error(bo(t,e,r));return{srcStat:n,destStat:i}}function Zf(t,e,r,n,i){let s=bt.resolve(bt.dirname(t)),o=bt.resolve(bt.dirname(r));if(o===s||o===bt.parse(o).root)return i();vo()?Vt.stat(o,{bigint:!0},(a,c)=>a?a.code==="ENOENT"?i():i(a):c.ino&&c.dev&&c.ino===e.ino&&c.dev===e.dev?i(new Error(bo(t,r,n))):Zf(t,e,o,n,i)):Vt.stat(o,(a,c)=>a?a.code==="ENOENT"?i():i(a):c.ino&&c.dev&&c.ino===e.ino&&c.dev===e.dev?i(new Error(bo(t,r,n))):Zf(t,e,o,n,i))}function T_(t,e,r,n){let i=bt.resolve(bt.dirname(t)),s=bt.resolve(bt.dirname(r));if(s===i||s===bt.parse(s).root)return;let o;try{vo()?o=Vt.statSync(s,{bigint:!0}):o=Vt.statSync(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(o.ino&&o.dev&&o.ino===e.ino&&o.dev===e.dev)throw new Error(bo(t,r,n));return T_(t,e,s,n)}function Xf(t,e){let r=bt.resolve(t).split(bt.sep).filter(i=>i),n=bt.resolve(e).split(bt.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function bo(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}k_.exports={checkPaths:bL,checkPathsSync:EL,checkParentPaths:Zf,checkParentPathsSync:T_,isSrcSubdir:Xf}});var I_=y((sz,P_)=>{"use strict";l();P_.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}});var F_=y((oz,M_)=>{"use strict";l();var ke=je(),wo=require("path"),wL=Pt().mkdirsSync,xL=Kf().utimesMillisSync,xo=Eo();function SL(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
24
24
|
|
|
25
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=xo.checkPathsSync(t,e,"copy");return xo.checkParentPathsSync(t,n,e,"copy"),
|
|
25
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=xo.checkPathsSync(t,e,"copy");return xo.checkParentPathsSync(t,n,e,"copy"),AL(i,t,e,r)}function AL(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=wo.dirname(r);return ke.existsSync(i)||wL(i),L_(t,e,r,n)}function L_(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return RL(t,e,r,n)}function RL(t,e,r,n){let s=(n.dereference?ke.statSync:ke.lstatSync)(e);if(s.isDirectory())return kL(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return CL(s,t,e,r,n);if(s.isSymbolicLink())return LL(t,e,r,n)}function CL(t,e,r,n,i){return e?OL(t,r,n,i):N_(t,r,n,i)}function OL(t,e,r,n){if(n.overwrite)return ke.unlinkSync(r),N_(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function N_(t,e,r,n){return typeof ke.copyFileSync=="function"?(ke.copyFileSync(e,r),ke.chmodSync(r,t.mode),n.preserveTimestamps?xL(r,t.atime,t.mtime):void 0):TL(t,e,r,n)}function TL(t,e,r,n){let s=I_()(65536),o=ke.openSync(e,"r"),a=ke.openSync(r,"w",t.mode),c=0;for(;c<t.size;){let u=ke.readSync(o,s,0,65536,c);ke.writeSync(a,s,0,u),c+=u}n.preserveTimestamps&&ke.futimesSync(a,t.atime,t.mtime),ke.closeSync(o),ke.closeSync(a)}function kL(t,e,r,n,i){if(!e)return PL(t,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return D_(r,n,i)}function PL(t,e,r,n){return ke.mkdirSync(r),D_(e,r,n),ke.chmodSync(r,t.mode)}function D_(t,e,r){ke.readdirSync(t).forEach(n=>IL(n,t,e,r))}function IL(t,e,r,n){let i=wo.join(e,t),s=wo.join(r,t),{destStat:o}=xo.checkPathsSync(i,s,"copy");return L_(o,i,s,n)}function LL(t,e,r,n){let i=ke.readlinkSync(e);if(n.dereference&&(i=wo.resolve(process.cwd(),i)),t){let s;try{s=ke.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return ke.symlinkSync(i,r);throw o}if(n.dereference&&(s=wo.resolve(process.cwd(),s)),xo.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(ke.statSync(r).isDirectory()&&xo.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return NL(i,r)}else return ke.symlinkSync(i,r)}function NL(t,e){return ke.unlinkSync(e),ke.symlinkSync(t,e)}M_.exports=SL});var Qf=y((az,q_)=>{"use strict";l();q_.exports={copySync:F_()}});var gr=y((cz,j_)=>{"use strict";l();var DL=vt().fromPromise,B_=jf();function ML(t){return B_.access(t).then(()=>!0).catch(()=>!1)}j_.exports={pathExists:DL(ML),pathExistsSync:B_.existsSync}});var K_=y((uz,Y_)=>{"use strict";l();var et=je(),So=require("path"),FL=Pt().mkdirs,qL=gr().pathExists,BL=Kf().utimesMillis,Ao=Eo();function jL(t,e,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
26
26
|
|
|
27
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),Ao.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;Ao.checkParentPaths(t,o,e,"copy",c=>c?n(c):r.filter?U_(H_,a,t,e,r,n):H_(a,t,e,r,n))})}function H_(t,e,r,n,i){let s=So.dirname(r);BL(s,(o,a)=>{if(o)return i(o);if(a)return eh(t,e,r,n,i);qL(s,c=>c?i(c):eh(t,e,r,n,i))})}function U_(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function eh(t,e,r,n,i){return n.filter?U_($_,t,e,r,n,i):$_(t,e,r,n,i)}function $_(t,e,r,n,i){(n.dereference?et.stat:et.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return VL(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return $L(a,t,e,r,n,i);if(a.isSymbolicLink())return YL(t,e,r,n,i)})}function $L(t,e,r,n,i,s){return e?UL(t,r,n,i,s):G_(t,r,n,i,s)}function UL(t,e,r,n,i){if(n.overwrite)et.unlink(r,s=>s?i(s):G_(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function G_(t,e,r,n,i){return typeof et.copyFile=="function"?et.copyFile(e,r,s=>s?i(s):V_(t,r,n,i)):GL(t,e,r,n,i)}function GL(t,e,r,n,i){let s=et.createReadStream(e);s.on("error",o=>i(o)).once("open",()=>{let o=et.createWriteStream(r,{mode:t.mode});o.on("error",a=>i(a)).on("open",()=>s.pipe(o)).once("close",()=>V_(t,r,n,i))})}function V_(t,e,r,n){et.chmod(e,t.mode,i=>i?n(i):r.preserveTimestamps?jL(e,t.atime,t.mtime,n):n())}function VL(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):W_(r,n,i,s):WL(t,r,n,i,s)}function WL(t,e,r,n,i){et.mkdir(r,s=>{if(s)return i(s);W_(e,r,n,o=>o?i(o):et.chmod(r,t.mode,i))})}function W_(t,e,r,n){et.readdir(t,(i,s)=>i?n(i):z_(s,t,e,r,n))}function z_(t,e,r,n,i){let s=t.pop();return s?zL(t,s,e,r,n,i):i()}function zL(t,e,r,n,i,s){let o=So.join(r,e),a=So.join(n,e);Ao.checkPaths(o,a,"copy",(c,u)=>{if(c)return s(c);let{destStat:f}=u;eh(f,o,a,i,h=>h?s(h):z_(t,r,n,i,s))})}function YL(t,e,r,n,i){et.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=So.resolve(process.cwd(),o)),t)et.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?et.symlink(o,r,i):i(a):(n.dereference&&(c=So.resolve(process.cwd(),c)),Ao.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):t.isDirectory()&&Ao.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):KL(o,r,i)));else return et.symlink(o,r,i)})}function KL(t,e,r){et.unlink(e,n=>n?r(n):et.symlink(t,e,r))}Y_.exports=HL});var th=y((lz,Z_)=>{"use strict";l();var ZL=vt().fromCallback;Z_.exports={copy:ZL(K_())}});var sv=y((fz,iv)=>{"use strict";l();var J_=je(),tv=require("path"),_e=require("assert"),Ro=process.platform==="win32";function rv(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||J_[r],r=r+"Sync",t[r]=t[r]||J_[r]}),t.maxBusyTries=t.maxBusyTries||3}function rh(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),_e(t,"rimraf: missing path"),_e.strictEqual(typeof t,"string","rimraf: path should be a string"),_e.strictEqual(typeof r,"function","rimraf: callback function required"),_e(e,"rimraf: invalid options argument provided"),_e.strictEqual(typeof e,"object","rimraf: options should be object"),rv(e),X_(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>X_(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function X_(t,e,r){_e(t),_e(e),_e(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Ro)return Q_(t,e,n,r);if(i&&i.isDirectory())return za(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Ro?Q_(t,e,s,r):za(t,e,s,r);if(s.code==="EISDIR")return za(t,e,s,r)}return r(s)})})}function Q_(t,e,r,n){_e(t),_e(e),_e(typeof n=="function"),r&&_e(r instanceof Error),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?za(t,e,r,n):e.unlink(t,n)})})}function ev(t,e,r){let n;_e(t),_e(e),r&&_e(r instanceof Error);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Ya(t,e,r):e.unlinkSync(t)}function za(t,e,r,n){_e(t),_e(e),r&&_e(r instanceof Error),_e(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?JL(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function JL(t,e,r){_e(t),_e(e),_e(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(a=>{rh(tv.join(t,a),e,c=>{if(!o){if(c)return r(o=c);--s===0&&e.rmdir(t,r)}})})})}function nv(t,e){let r;e=e||{},rv(e),_e(t,"rimraf: missing path"),_e.strictEqual(typeof t,"string","rimraf: path should be a string"),_e(e,"rimraf: missing options"),_e.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Ro&&ev(t,e,n)}try{r&&r.isDirectory()?Ya(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Ro?ev(t,e,n):Ya(t,e,n);if(n.code!=="EISDIR")throw n;Ya(t,e,n)}}function Ya(t,e,r){_e(t),_e(e),r&&_e(r instanceof Error);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")XL(t,e);else if(n.code!=="ENOENT")throw n}}function XL(t,e){if(_e(t),_e(e),e.readdirSync(t).forEach(r=>nv(tv.join(t,r),e)),Ro){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}iv.exports=rh;rh.sync=nv});var Co=y((hz,av)=>{"use strict";l();var QL=vt().fromCallback,ov=sv();av.exports={remove:QL(ov),removeSync:ov.sync}});var mv=y((dz,pv)=>{"use strict";l();var eN=vt().fromCallback,lv=je(),fv=require("path"),hv=Pt(),dv=Co(),cv=eN(function(e,r){r=r||function(){},lv.readdir(e,(n,i)=>{if(n)return hv.mkdirs(e,r);i=i.map(o=>fv.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();dv.remove(o,a=>{if(a)return r(a);s()})}})});function uv(t){let e;try{e=lv.readdirSync(t)}catch{return hv.mkdirsSync(t)}e.forEach(r=>{r=fv.join(t,r),dv.removeSync(r)})}pv.exports={emptyDirSync:uv,emptydirSync:uv,emptyDir:cv,emptydir:cv}});var vv=y((pz,_v)=>{"use strict";l();var tN=vt().fromCallback,gv=require("path"),Oo=je(),yv=Pt(),rN=gr().pathExists;function nN(t,e){function r(){Oo.writeFile(t,"",n=>{if(n)return e(n);e()})}Oo.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=gv.dirname(t);rN(s,(o,a)=>{if(o)return e(o);if(a)return r();yv.mkdirs(s,c=>{if(c)return e(c);r()})})})}function iN(t){let e;try{e=Oo.statSync(t)}catch{}if(e&&e.isFile())return;let r=gv.dirname(t);Oo.existsSync(r)||yv.mkdirsSync(r),Oo.writeFileSync(t,"")}_v.exports={createFile:tN(nN),createFileSync:iN}});var Sv=y((mz,xv)=>{"use strict";l();var sN=vt().fromCallback,Ev=require("path"),Jn=je(),wv=Pt(),bv=gr().pathExists;function oN(t,e,r){function n(i,s){Jn.link(i,s,o=>{if(o)return r(o);r(null)})}bv(e,(i,s)=>{if(i)return r(i);if(s)return r(null);Jn.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=Ev.dirname(e);bv(a,(c,u)=>{if(c)return r(c);if(u)return n(t,e);wv.mkdirs(a,f=>{if(f)return r(f);n(t,e)})})})})}function aN(t,e){if(Jn.existsSync(e))return;try{Jn.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=Ev.dirname(e);return Jn.existsSync(n)||wv.mkdirsSync(n),Jn.linkSync(t,e)}xv.exports={createLink:sN(oN),createLinkSync:aN}});var Rv=y((gz,Av)=>{"use strict";l();var pn=require("path"),To=je(),cN=gr().pathExists;function uN(t,e,r){if(pn.isAbsolute(t))return To.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=pn.dirname(e),i=pn.join(n,t);return cN(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):To.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:pn.relative(n,t)})))}}function lN(t,e){let r;if(pn.isAbsolute(t)){if(r=To.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=pn.dirname(e),i=pn.join(n,t);if(r=To.existsSync(i),r)return{toCwd:i,toDst:t};if(r=To.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:pn.relative(n,t)}}}Av.exports={symlinkPaths:uN,symlinkPathsSync:lN}});var Tv=y((yz,Ov)=>{"use strict";l();var Cv=je();function fN(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);Cv.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function hN(t,e){let r;if(e)return e;try{r=Cv.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Ov.exports={symlinkType:fN,symlinkTypeSync:hN}});var Mv=y((_z,Dv)=>{"use strict";l();var dN=vt().fromCallback,Pv=require("path"),Bi=je(),Iv=Pt(),pN=Iv.mkdirs,mN=Iv.mkdirsSync,Lv=Rv(),gN=Lv.symlinkPaths,yN=Lv.symlinkPathsSync,Nv=Tv(),_N=Nv.symlinkType,vN=Nv.symlinkTypeSync,kv=gr().pathExists;function bN(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,kv(e,(i,s)=>{if(i)return n(i);if(s)return n(null);gN(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,_N(a.toCwd,r,(c,u)=>{if(c)return n(c);let f=Pv.dirname(e);kv(f,(h,d)=>{if(h)return n(h);if(d)return Bi.symlink(t,e,u,n);pN(f,g=>{if(g)return n(g);Bi.symlink(t,e,u,n)})})})})})}function EN(t,e,r){if(Bi.existsSync(e))return;let i=yN(t,e);t=i.toDst,r=vN(i.toCwd,r);let s=Pv.dirname(e);return Bi.existsSync(s)||mN(s),Bi.symlinkSync(t,e,r)}Dv.exports={createSymlink:dN(bN),createSymlinkSync:EN}});var qv=y((vz,Fv)=>{"use strict";l();var Ka=vv(),Za=Sv(),Ja=Mv();Fv.exports={createFile:Ka.createFile,createFileSync:Ka.createFileSync,ensureFile:Ka.createFile,ensureFileSync:Ka.createFileSync,createLink:Za.createLink,createLinkSync:Za.createLinkSync,ensureLink:Za.createLink,ensureLinkSync:Za.createLinkSync,createSymlink:Ja.createSymlink,createSymlinkSync:Ja.createSymlinkSync,ensureSymlink:Ja.createSymlink,ensureSymlinkSync:Ja.createSymlinkSync}});var $v=y((bz,Hv)=>{l();var ji;try{ji=je()}catch{ji=require("fs")}function wN(t,e,r){r==null&&(r=e,e={}),typeof e=="string"&&(e={encoding:e}),e=e||{};var n=e.fs||ji,i=!0;"throws"in e&&(i=e.throws),n.readFile(t,e,function(s,o){if(s)return r(s);o=jv(o);var a;try{a=JSON.parse(o,e?e.reviver:null)}catch(c){return i?(c.message=t+": "+c.message,r(c)):r(null,null)}r(null,a)})}function xN(t,e){e=e||{},typeof e=="string"&&(e={encoding:e});var r=e.fs||ji,n=!0;"throws"in e&&(n=e.throws);try{var i=r.readFileSync(t,e);return i=jv(i),JSON.parse(i,e.reviver)}catch(s){if(n)throw s.message=t+": "+s.message,s;return null}}function Bv(t,e){var r,n=`
|
|
28
|
-
`;typeof e=="object"&&e!==null&&(e.spaces&&(r=e.spaces),e.EOL&&(n=e.EOL));var i=JSON.stringify(t,e?e.replacer:null,r);return i.replace(/\n/g,n)+n}function SN(t,e,r,n){n==null&&(n=r,r={}),r=r||{};var i=r.fs||ji,s="";try{s=Bv(e,r)}catch(o){n&&n(o,null);return}i.writeFile(t,s,r,n)}function AN(t,e,r){r=r||{};var n=r.fs||ji,i=Bv(e,r);return n.writeFileSync(t,i,r)}function jv(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,""),t}var RN={readFile:wN,readFileSync:xN,writeFile:SN,writeFileSync:AN};Hv.exports=RN});var Qa=y((Ez,Gv)=>{"use strict";l();var Uv=vt().fromCallback,Xa=$v();Gv.exports={readJson:Uv(Xa.readFile),readJsonSync:Xa.readFileSync,writeJson:Uv(Xa.writeFile),writeJsonSync:Xa.writeFileSync}});var zv=y((wz,Wv)=>{"use strict";l();var CN=require("path"),ON=Pt(),TN=gr().pathExists,Vv=Qa();function kN(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=CN.dirname(t);TN(i,(s,o)=>{if(s)return n(s);if(o)return Vv.writeJson(t,e,r,n);ON.mkdirs(i,a=>{if(a)return n(a);Vv.writeJson(t,e,r,n)})})}Wv.exports=kN});var Kv=y((xz,Yv)=>{"use strict";l();var PN=je(),IN=require("path"),LN=Pt(),NN=Qa();function DN(t,e,r){let n=IN.dirname(t);PN.existsSync(n)||LN.mkdirsSync(n),NN.writeJsonSync(t,e,r)}Yv.exports=DN});var Jv=y((Sz,Zv)=>{"use strict";l();var MN=vt().fromCallback,mt=Qa();mt.outputJson=MN(zv());mt.outputJsonSync=Kv();mt.outputJSON=mt.outputJson;mt.outputJSONSync=mt.outputJsonSync;mt.writeJSON=mt.writeJson;mt.writeJSONSync=mt.writeJsonSync;mt.readJSON=mt.readJson;mt.readJSONSync=mt.readJsonSync;Zv.exports=mt});var nb=y((Az,rb)=>{"use strict";l();var eb=je(),FN=require("path"),qN=Qf().copySync,tb=Co().removeSync,BN=Pt().mkdirpSync,Xv=Eo();function jN(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=Xv.checkPathsSync(t,e,"move");return Xv.checkParentPathsSync(t,i,e,"move"),BN(FN.dirname(e)),HN(t,e,n)}function HN(t,e,r){if(r)return tb(e),Qv(t,e,r);if(eb.existsSync(e))throw new Error("dest already exists.");return Qv(t,e,r)}function Qv(t,e,r){try{eb.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return $N(t,e,r)}}function $N(t,e,r){return qN(t,e,{overwrite:r,errorOnExist:!0}),tb(t)}rb.exports=jN});var sb=y((Rz,ib)=>{"use strict";l();ib.exports={moveSync:nb()}});var lb=y((Cz,ub)=>{"use strict";l();var UN=je(),GN=require("path"),VN=th().copy,cb=Co().remove,WN=Pt().mkdirp,zN=gr().pathExists,ob=Eo();function YN(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;ob.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;ob.checkParentPaths(t,a,e,"move",c=>{if(c)return n(c);WN(GN.dirname(e),u=>u?n(u):KN(t,e,i,n))})})}function KN(t,e,r,n){if(r)return cb(e,i=>i?n(i):ab(t,e,r,n));zN(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):ab(t,e,r,n))}function ab(t,e,r,n){UN.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):ZN(t,e,r,n):n())}function ZN(t,e,r,n){VN(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):cb(t,n))}ub.exports=YN});var hb=y((Oz,fb)=>{"use strict";l();var JN=vt().fromCallback;fb.exports={move:JN(lb())}});var gb=y((Tz,mb)=>{"use strict";l();var XN=vt().fromCallback,ko=je(),db=require("path"),pb=Pt(),QN=gr().pathExists;function e5(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=db.dirname(t);QN(i,(s,o)=>{if(s)return n(s);if(o)return ko.writeFile(t,e,r,n);pb.mkdirs(i,a=>{if(a)return n(a);ko.writeFile(t,e,r,n)})})}function t5(t,...e){let r=db.dirname(t);if(ko.existsSync(r))return ko.writeFileSync(t,...e);pb.mkdirsSync(r),ko.writeFileSync(t,...e)}mb.exports={outputFile:XN(e5),outputFileSync:t5}});var _b=y((kz,nh)=>{"use strict";l();nh.exports=Object.assign({},jf(),Qf(),th(),mv(),qv(),Jv(),Pt(),sb(),hb(),gb(),gr(),Co());var yb=require("fs");Object.getOwnPropertyDescriptor(yb,"promises")&&Object.defineProperty(nh.exports,"promises",{get(){return yb.promises}})});var aE=y(Vi=>{"use strict";l();Object.defineProperty(Vi,"__esModule",{value:!0});Vi.splitWhen=Vi.flatten=void 0;function kM(t){return t.reduce((e,r)=>[].concat(e,r),[])}Vi.flatten=kM;function PM(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}Vi.splitWhen=PM});var cE=y(uc=>{"use strict";l();Object.defineProperty(uc,"__esModule",{value:!0});uc.isEnoentCodeError=void 0;function IM(t){return t.code==="ENOENT"}uc.isEnoentCodeError=IM});var uE=y(lc=>{"use strict";l();Object.defineProperty(lc,"__esModule",{value:!0});lc.createDirentFromStats=void 0;var Eh=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function LM(t,e){return new Eh(t,e)}lc.createDirentFromStats=LM});var lE=y(_r=>{"use strict";l();Object.defineProperty(_r,"__esModule",{value:!0});_r.removeLeadingDotSegment=_r.escape=_r.makeAbsolute=_r.unixify=void 0;var NM=require("path"),DM=2,MM=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function FM(t){return t.replace(/\\/g,"/")}_r.unixify=FM;function qM(t,e){return NM.resolve(t,e)}_r.makeAbsolute=qM;function BM(t){return t.replace(MM,"\\$2")}_r.escape=BM;function jM(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(DM)}return t}_r.removeLeadingDotSegment=jM});var hE=y((eY,fE)=>{l();fE.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var mE=y((tY,pE)=>{l();var HM=hE(),dE={"{":"}","(":")","[":"]"},$M=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var c=dE[a];if(c){var u=t.indexOf(c,e);u!==-1&&(e=u+1)}if(t[e]==="!")return!0}else e++}return!1},UM=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=dE[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};pE.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(HM(e))return!0;var n=$M;return r&&r.strict===!1&&(n=UM),n(e)}});var yE=y((rY,gE)=>{"use strict";l();var GM=mE(),VM=require("path").posix.dirname,WM=require("os").platform()==="win32",wh="/",zM=/\\/g,YM=/[\{\[].*[\}\]]$/,KM=/(^|[^\\])([\{\[]|\([^\)]+$)/,ZM=/\\([\!\*\?\|\[\]\(\)\{\}])/g;gE.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&WM&&e.indexOf(wh)<0&&(e=e.replace(zM,wh)),YM.test(e)&&(e+=wh),e+="a";do e=VM(e);while(GM(e)||KM.test(e));return e.replace(ZM,"$1")}});var fc=y(Wt=>{"use strict";l();Wt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Wt.find=(t,e)=>t.nodes.find(r=>r.type===e);Wt.exceedsLimit=(t,e,r=1,n)=>n===!1||!Wt.isInteger(t)||!Wt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;Wt.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Wt.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;Wt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Wt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Wt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Wt.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var hc=y((iY,vE)=>{"use strict";l();var _E=fc();vE.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&_E.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&_E.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)a+=r(c);return a};return r(t)}});var EE=y((sY,bE)=>{"use strict";l();bE.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var kE=y((oY,TE)=>{"use strict";l();var wE=EE(),ei=(t,e,r)=>{if(wE(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(wE(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),c=t+":"+e+"="+i+s+o+a;if(ei.cache.hasOwnProperty(c))return ei.cache[c].result;let u=Math.min(t,e),f=Math.max(t,e);if(Math.abs(u-f)===1){let E=t+"|"+e;return n.capture?`(${E})`:n.wrap===!1?E:`(?:${E})`}let h=OE(t)||OE(e),d={min:t,max:e,a:u,b:f},g=[],m=[];if(h&&(d.isPadded=h,d.maxLen=String(d.max).length),u<0){let E=f<0?Math.abs(f):1;m=xE(E,Math.abs(u),d,n),u=d.a=0}return f>=0&&(g=xE(u,f,d,n)),d.negatives=m,d.positives=g,d.result=JM(m,g,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&g.length+m.length>1&&(d.result=`(?:${d.result})`),ei.cache[c]=d,d.result};function JM(t,e,r){let n=xh(t,e,"-",!1,r)||[],i=xh(e,t,"",!1,r)||[],s=xh(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function XM(t,e){let r=1,n=1,i=AE(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=AE(t,r);for(i=RE(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=RE(e+1,n)-1;return s=[...s],s.sort(tF),s}function QM(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=eF(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[c,u]=n[a];c===u?s+=c:c!=="0"||u!=="9"?s+=rF(c,u,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function xE(t,e,r,n){let i=XM(t,e),s=[],o=t,a;for(let c=0;c<i.length;c++){let u=i[c],f=QM(String(o),String(u),n),h="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+CE(a.count),o=u+1;continue}r.isPadded&&(h=nF(u,r,n)),f.string=h+f.pattern+CE(f.count),s.push(f),o=u+1,a=f}return s}function xh(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!SE(e,"string",a)&&s.push(r+a),n&&SE(e,"string",a)&&s.push(r+a)}return s}function eF(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function tF(t,e){return t>e?1:e>t?-1:0}function SE(t,e,r){return t.some(n=>n[e]===r)}function AE(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function RE(t,e){return t-t%Math.pow(10,e)}function CE(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function rF(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function OE(t){return/^-?(0+)\d/.test(t)}function nF(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}ei.cache={};ei.clearCache=()=>ei.cache={};TE.exports=ei});var Rh=y((aY,qE)=>{"use strict";l();var iF=require("util"),LE=kE(),PE=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),sF=t=>e=>t===!0?Number(e):String(e),Sh=t=>typeof t=="number"||typeof t=="string"&&t!=="",Fo=t=>Number.isInteger(+t),Ah=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},oF=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,aF=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},IE=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},cF=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",i="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,e.wrap?`(${r}${s})`:s},NE=(t,e,r,n)=>{if(r)return LE(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},DE=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return LE(t,e,r)},ME=(...t)=>new RangeError("Invalid range arguments: "+iF.inspect(...t)),FE=(t,e,r)=>{if(r.strictRanges===!0)throw ME([t,e]);return[]},uF=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},lF=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw ME([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),c=String(e),u=String(r);r=Math.max(Math.abs(r),1);let f=Ah(a)||Ah(c)||Ah(u),h=f?Math.max(a.length,c.length,u.length):0,d=f===!1&&oF(t,e,n)===!1,g=n.transform||sF(d);if(n.toRegex&&r===1)return NE(IE(t,h),IE(e,h),!0,n);let m={negatives:[],positives:[]},E=P=>m[P<0?"negatives":"positives"].push(Math.abs(P)),v=[],A=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?E(i):v.push(aF(g(i,A),h,d)),i=o?i-r:i+r,A++;return n.toRegex===!0?r>1?cF(m,n):DE(v,null,{wrap:!1,...n}):v},fF=(t,e,r=1,n={})=>{if(!Fo(t)&&t.length>1||!Fo(e)&&e.length>1)return FE(t,e,n);let i=n.transform||(d=>String.fromCharCode(d)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,c=Math.min(s,o),u=Math.max(s,o);if(n.toRegex&&r===1)return NE(c,u,!1,n);let f=[],h=0;for(;a?s>=o:s<=o;)f.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?DE(f,null,{wrap:!1,options:n}):f},dc=(t,e,r,n={})=>{if(e==null&&Sh(t))return[t];if(!Sh(t)||!Sh(e))return FE(t,e,n);if(typeof r=="function")return dc(t,e,1,{transform:r});if(PE(r))return dc(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Fo(r)?Fo(t)&&Fo(e)?lF(t,e,r,i):fF(t,e,Math.max(Math.abs(r),1),i):r!=null&&!PE(r)?uF(r,i):dc(t,e,1,r)};qE.exports=dc});var HE=y((cY,jE)=>{"use strict";l();var hF=Rh(),BE=fc(),dF=(t,e={})=>{let r=(n,i={})=>{let s=BE.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,c=e.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0||n.isClose===!0)return c+n.value;if(n.type==="open")return a?c+n.value:"(";if(n.type==="close")return a?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=BE.reduce(n.nodes),h=hF(...f,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return f.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let f of n.nodes)u+=r(f,n);return u};return r(t)};jE.exports=dF});var GE=y((uY,UE)=>{"use strict";l();var pF=Rh(),$E=hc(),Wi=fc(),ti=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Wi.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(ti(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?ti(i,s,r):i+s);return Wi.flatten(n)},mF=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(ti(a.pop(),$E(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(ti(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=Wi.reduce(i.nodes);if(Wi.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=pF(...h,e);d.length===0&&(d=$E(i,e)),a.push(ti(a.pop(),d)),i.nodes=[];return}let c=Wi.encloseBrace(i),u=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=f.queue;for(let h=0;h<i.nodes.length;h++){let d=i.nodes[h];if(d.type==="comma"&&i.type==="brace"){h===1&&u.push(""),u.push("");continue}if(d.type==="close"){a.push(ti(a.pop(),u,c));continue}if(d.value&&d.type!=="open"){u.push(ti(u.pop(),d.value));continue}d.nodes&&n(d,i)}return u};return Wi.flatten(n(t))};UE.exports=mF});var WE=y((lY,VE)=>{"use strict";l();VE.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
29
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var JE=y((fY,ZE)=>{"use strict";l();var gF=hc(),{MAX_LENGTH:zE,CHAR_BACKSLASH:Ch,CHAR_BACKTICK:yF,CHAR_COMMA:_F,CHAR_DOT:vF,CHAR_LEFT_PARENTHESES:bF,CHAR_RIGHT_PARENTHESES:EF,CHAR_LEFT_CURLY_BRACE:wF,CHAR_RIGHT_CURLY_BRACE:xF,CHAR_LEFT_SQUARE_BRACKET:YE,CHAR_RIGHT_SQUARE_BRACKET:KE,CHAR_DOUBLE_QUOTE:SF,CHAR_SINGLE_QUOTE:AF,CHAR_NO_BREAK_SPACE:RF,CHAR_ZERO_WIDTH_NOBREAK_SPACE:CF}=WE(),OF=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(zE,r.maxLength):zE;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,c=0,u=t.length,f=0,h=0,d,g={},m=()=>t[f++],E=v=>{if(v.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&v.type==="text"){a.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=a,a=v,v};for(E({type:"bos"});f<u;)if(o=s[s.length-1],d=m(),!(d===CF||d===RF)){if(d===Ch){E({type:"text",value:(e.keepEscaping?d:"")+m()});continue}if(d===KE){E({type:"text",value:"\\"+d});continue}if(d===YE){c++;let v=!0,A;for(;f<u&&(A=m());){if(d+=A,A===YE){c++;continue}if(A===Ch){d+=m();continue}if(A===KE&&(c--,c===0))break}E({type:"text",value:d});continue}if(d===bF){o=E({type:"paren",nodes:[]}),s.push(o),E({type:"text",value:d});continue}if(d===EF){if(o.type!=="paren"){E({type:"text",value:d});continue}o=s.pop(),E({type:"text",value:d}),o=s[s.length-1];continue}if(d===SF||d===AF||d===yF){let v=d,A;for(e.keepQuotes!==!0&&(d="");f<u&&(A=m());){if(A===Ch){d+=A+m();continue}if(A===v){e.keepQuotes===!0&&(d+=A);break}d+=A}E({type:"text",value:d});continue}if(d===wF){h++;let v=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=E({type:"brace",open:!0,close:!1,dollar:v,depth:h,commas:0,ranges:0,nodes:[]}),s.push(o),E({type:"open",value:d});continue}if(d===xF){if(o.type!=="brace"){E({type:"text",value:d});continue}let v="close";o=s.pop(),o.close=!0,E({type:v,value:d}),h--,o=s[s.length-1];continue}if(d===_F&&h>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:gF(o)}]}E({type:"comma",value:d}),o.commas++;continue}if(d===vF&&h>0&&o.commas===0){let v=o.nodes;if(h===0||v.length===0){E({type:"text",value:d});continue}if(a.type==="dot"){if(o.range=[],a.value+=d,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){v.pop();let A=v[v.length-1];A.value+=a.value+d,a=A,o.ranges--;continue}E({type:"dot",value:d});continue}E({type:"text",value:d})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});let v=s[s.length-1],A=v.nodes.indexOf(o);v.nodes.splice(A,1,...o.nodes)}while(s.length>0);return E({type:"eos"}),i};ZE.exports=OF});var ew=y((hY,QE)=>{"use strict";l();var XE=hc(),TF=HE(),kF=GE(),PF=JE(),It=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=It.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(It.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};It.parse=(t,e={})=>PF(t,e);It.stringify=(t,e={})=>XE(typeof t=="string"?It.parse(t,e):t,e);It.compile=(t,e={})=>(typeof t=="string"&&(t=It.parse(t,e)),TF(t,e));It.expand=(t,e={})=>{typeof t=="string"&&(t=It.parse(t,e));let r=kF(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};It.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?It.compile(t,e):It.expand(t,e);QE.exports=It});var qo=y((dY,sw)=>{"use strict";l();var IF=require("path"),vr="\\\\/",tw=`[^${vr}]`,$r="\\.",LF="\\+",NF="\\?",pc="\\/",DF="(?=.)",rw="[^/]",Oh=`(?:${pc}|$)`,nw=`(?:^|${pc})`,Th=`${$r}{1,2}${Oh}`,MF=`(?!${$r})`,FF=`(?!${nw}${Th})`,qF=`(?!${$r}{0,1}${Oh})`,BF=`(?!${Th})`,jF=`[^.${pc}]`,HF=`${rw}*?`,iw={DOT_LITERAL:$r,PLUS_LITERAL:LF,QMARK_LITERAL:NF,SLASH_LITERAL:pc,ONE_CHAR:DF,QMARK:rw,END_ANCHOR:Oh,DOTS_SLASH:Th,NO_DOT:MF,NO_DOTS:FF,NO_DOT_SLASH:qF,NO_DOTS_SLASH:BF,QMARK_NO_DOT:jF,STAR:HF,START_ANCHOR:nw},$F={...iw,SLASH_LITERAL:`[${vr}]`,QMARK:tw,STAR:`${tw}*?`,DOTS_SLASH:`${$r}{1,2}(?:[${vr}]|$)`,NO_DOT:`(?!${$r})`,NO_DOTS:`(?!(?:^|[${vr}])${$r}{1,2}(?:[${vr}]|$))`,NO_DOT_SLASH:`(?!${$r}{0,1}(?:[${vr}]|$))`,NO_DOTS_SLASH:`(?!${$r}{1,2}(?:[${vr}]|$))`,QMARK_NO_DOT:`[^.${vr}]`,START_ANCHOR:`(?:^|[${vr}])`,END_ANCHOR:`(?:[${vr}]|$)`},UF={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};sw.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:UF,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:IF.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?$F:iw}}});var Bo=y(xt=>{"use strict";l();var GF=require("path"),VF=process.platform==="win32",{REGEX_BACKSLASH:WF,REGEX_REMOVE_BACKSLASH:zF,REGEX_SPECIAL_CHARS:YF,REGEX_SPECIAL_CHARS_GLOBAL:KF}=qo();xt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);xt.hasRegexChars=t=>YF.test(t);xt.isRegexChar=t=>t.length===1&&xt.hasRegexChars(t);xt.escapeRegex=t=>t.replace(KF,"\\$1");xt.toPosixSlashes=t=>t.replace(WF,"/");xt.removeBackslashes=t=>t.replace(zF,e=>e==="\\"?"":e);xt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};xt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:VF===!0||GF.sep==="\\";xt.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?xt.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};xt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};xt.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var dw=y((mY,hw)=>{"use strict";l();var ow=Bo(),{CHAR_ASTERISK:kh,CHAR_AT:ZF,CHAR_BACKWARD_SLASH:jo,CHAR_COMMA:JF,CHAR_DOT:Ph,CHAR_EXCLAMATION_MARK:Ih,CHAR_FORWARD_SLASH:fw,CHAR_LEFT_CURLY_BRACE:Lh,CHAR_LEFT_PARENTHESES:Nh,CHAR_LEFT_SQUARE_BRACKET:XF,CHAR_PLUS:QF,CHAR_QUESTION_MARK:aw,CHAR_RIGHT_CURLY_BRACE:eq,CHAR_RIGHT_PARENTHESES:cw,CHAR_RIGHT_SQUARE_BRACKET:tq}=qo(),uw=t=>t===fw||t===jo,lw=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},rq=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],c=t,u=-1,f=0,h=0,d=!1,g=!1,m=!1,E=!1,v=!1,A=!1,P=!1,D=!1,ie=!1,z=!1,ue=0,K,Z,F={value:"",depth:0,isGlob:!1},Q=()=>u>=n,C=()=>c.charCodeAt(u+1),ne=()=>(K=Z,c.charCodeAt(++u));for(;u<n;){Z=ne();let T;if(Z===jo){P=F.backslashes=!0,Z=ne(),Z===Lh&&(A=!0);continue}if(A===!0||Z===Lh){for(ue++;Q()!==!0&&(Z=ne());){if(Z===jo){P=F.backslashes=!0,ne();continue}if(Z===Lh){ue++;continue}if(A!==!0&&Z===Ph&&(Z=ne())===Ph){if(d=F.isBrace=!0,m=F.isGlob=!0,z=!0,i===!0)continue;break}if(A!==!0&&Z===JF){if(d=F.isBrace=!0,m=F.isGlob=!0,z=!0,i===!0)continue;break}if(Z===eq&&(ue--,ue===0)){A=!1,d=F.isBrace=!0,z=!0;break}}if(i===!0)continue;break}if(Z===fw){if(s.push(u),o.push(F),F={value:"",depth:0,isGlob:!1},z===!0)continue;if(K===Ph&&u===f+1){f+=2;continue}h=u+1;continue}if(r.noext!==!0&&(Z===QF||Z===ZF||Z===kh||Z===aw||Z===Ih)===!0&&C()===Nh){if(m=F.isGlob=!0,E=F.isExtglob=!0,z=!0,Z===Ih&&u===f&&(ie=!0),i===!0){for(;Q()!==!0&&(Z=ne());){if(Z===jo){P=F.backslashes=!0,Z=ne();continue}if(Z===cw){m=F.isGlob=!0,z=!0;break}}continue}break}if(Z===kh){if(K===kh&&(v=F.isGlobstar=!0),m=F.isGlob=!0,z=!0,i===!0)continue;break}if(Z===aw){if(m=F.isGlob=!0,z=!0,i===!0)continue;break}if(Z===XF){for(;Q()!==!0&&(T=ne());){if(T===jo){P=F.backslashes=!0,ne();continue}if(T===tq){g=F.isBracket=!0,m=F.isGlob=!0,z=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&Z===Ih&&u===f){D=F.negated=!0,f++;continue}if(r.noparen!==!0&&Z===Nh){if(m=F.isGlob=!0,i===!0){for(;Q()!==!0&&(Z=ne());){if(Z===Nh){P=F.backslashes=!0,Z=ne();continue}if(Z===cw){z=!0;break}}continue}break}if(m===!0){if(z=!0,i===!0)continue;break}}r.noext===!0&&(E=!1,m=!1);let ee=c,fe="",R="";f>0&&(fe=c.slice(0,f),c=c.slice(f),h-=f),ee&&m===!0&&h>0?(ee=c.slice(0,h),R=c.slice(h)):m===!0?(ee="",R=c):ee=c,ee&&ee!==""&&ee!=="/"&&ee!==c&&uw(ee.charCodeAt(ee.length-1))&&(ee=ee.slice(0,-1)),r.unescape===!0&&(R&&(R=ow.removeBackslashes(R)),ee&&P===!0&&(ee=ow.removeBackslashes(ee)));let x={prefix:fe,input:t,start:f,base:ee,glob:R,isBrace:d,isBracket:g,isGlob:m,isExtglob:E,isGlobstar:v,negated:D,negatedExtglob:ie};if(r.tokens===!0&&(x.maxDepth=0,uw(Z)||o.push(F),x.tokens=o),r.parts===!0||r.tokens===!0){let T;for(let k=0;k<s.length;k++){let I=T?T+1:f,Y=s[k],j=t.slice(I,Y);r.tokens&&(k===0&&f!==0?(o[k].isPrefix=!0,o[k].value=fe):o[k].value=j,lw(o[k]),x.maxDepth+=o[k].depth),(k!==0||j!=="")&&a.push(j),T=Y}if(T&&T+1<t.length){let k=t.slice(T+1);a.push(k),r.tokens&&(o[o.length-1].value=k,lw(o[o.length-1]),x.maxDepth+=o[o.length-1].depth)}x.slashes=s,x.parts=a}return x};hw.exports=rq});var gw=y((gY,mw)=>{"use strict";l();var mc=qo(),Lt=Bo(),{MAX_LENGTH:gc,POSIX_REGEX_SOURCE:nq,REGEX_NON_SPECIAL_CHARS:iq,REGEX_SPECIAL_CHARS_BACKREF:sq,REPLACEMENTS:pw}=mc,oq=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>Lt.escapeRegex(i)).join("..")}return r},zi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Dh=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=pw[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(gc,r.maxLength):gc,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",c=Lt.isWindows(e),u=mc.globChars(c),f=mc.extglobChars(u),{DOT_LITERAL:h,PLUS_LITERAL:d,SLASH_LITERAL:g,ONE_CHAR:m,DOTS_SLASH:E,NO_DOT:v,NO_DOT_SLASH:A,NO_DOTS_SLASH:P,QMARK:D,QMARK_NO_DOT:ie,STAR:z,START_ANCHOR:ue}=u,K=B=>`(${a}(?:(?!${ue}${B.dot?E:h}).)*?)`,Z=r.dot?"":v,F=r.dot?D:ie,Q=r.bash===!0?K(r):z;r.capture&&(Q=`(${Q})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let C={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Lt.removePrefix(t,C),i=t.length;let ne=[],ee=[],fe=[],R=s,x,T=()=>C.index===i-1,k=C.peek=(B=1)=>t[C.index+B],I=C.advance=()=>t[++C.index]||"",Y=()=>t.slice(C.index+1),j=(B="",Ee=0)=>{C.consumed+=B,C.index+=Ee},ve=B=>{C.output+=B.output!=null?B.output:B.value,j(B.value)},Ue=()=>{let B=1;for(;k()==="!"&&(k(2)!=="("||k(3)==="?");)I(),C.start++,B++;return B%2===0?!1:(C.negated=!0,C.start++,!0)},ge=B=>{C[B]++,fe.push(B)},De=B=>{C[B]--,fe.pop()},re=B=>{if(R.type==="globstar"){let Ee=C.braces>0&&(B.type==="comma"||B.type==="brace"),q=B.extglob===!0||ne.length&&(B.type==="pipe"||B.type==="paren");B.type!=="slash"&&B.type!=="paren"&&!Ee&&!q&&(C.output=C.output.slice(0,-R.output.length),R.type="star",R.value="*",R.output=Q,C.output+=R.output)}if(ne.length&&B.type!=="paren"&&(ne[ne.length-1].inner+=B.value),(B.value||B.output)&&ve(B),R&&R.type==="text"&&B.type==="text"){R.value+=B.value,R.output=(R.output||"")+B.value;return}B.prev=R,o.push(B),R=B},pt=(B,Ee)=>{let q={...f[Ee],conditions:1,inner:""};q.prev=R,q.parens=C.parens,q.output=C.output;let _=(r.capture?"(":"")+q.open;ge("parens"),re({type:B,value:Ee,output:C.output?"":m}),re({type:"paren",extglob:!0,value:I(),output:_}),ne.push(q)},kt=B=>{let Ee=B.close+(r.capture?")":""),q;if(B.type==="negate"){let _=Q;if(B.inner&&B.inner.length>1&&B.inner.includes("/")&&(_=K(r)),(_!==Q||T()||/^\)+$/.test(Y()))&&(Ee=B.close=`)$))${_}`),B.inner.includes("*")&&(q=Y())&&/^\.[^\\/.]+$/.test(q)){let S=Dh(q,{...e,fastpaths:!1}).output;Ee=B.close=`)${S})${_})`}B.prev.type==="bos"&&(C.negatedExtglob=!0)}re({type:"paren",extglob:!0,value:x,output:Ee}),De("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let B=!1,Ee=t.replace(sq,(q,_,S,b,L,$)=>b==="\\"?(B=!0,q):b==="?"?_?_+b+(L?D.repeat(L.length):""):$===0?F+(L?D.repeat(L.length):""):D.repeat(S.length):b==="."?h.repeat(S.length):b==="*"?_?_+b+(L?Q:""):Q:_?q:`\\${q}`);return B===!0&&(r.unescape===!0?Ee=Ee.replace(/\\/g,""):Ee=Ee.replace(/\\+/g,q=>q.length%2===0?"\\\\":q?"\\":"")),Ee===t&&r.contains===!0?(C.output=t,C):(C.output=Lt.wrapOutput(Ee,C,e),C)}for(;!T();){if(x=I(),x==="\0")continue;if(x==="\\"){let q=k();if(q==="/"&&r.bash!==!0||q==="."||q===";")continue;if(!q){x+="\\",re({type:"text",value:x});continue}let _=/^\\+/.exec(Y()),S=0;if(_&&_[0].length>2&&(S=_[0].length,C.index+=S,S%2!==0&&(x+="\\")),r.unescape===!0?x=I():x+=I(),C.brackets===0){re({type:"text",value:x});continue}}if(C.brackets>0&&(x!=="]"||R.value==="["||R.value==="[^")){if(r.posix!==!1&&x===":"){let q=R.value.slice(1);if(q.includes("[")&&(R.posix=!0,q.includes(":"))){let _=R.value.lastIndexOf("["),S=R.value.slice(0,_),b=R.value.slice(_+2),L=nq[b];if(L){R.value=S+L,C.backtrack=!0,I(),!s.output&&o.indexOf(R)===1&&(s.output=m);continue}}}(x==="["&&k()!==":"||x==="-"&&k()==="]")&&(x=`\\${x}`),x==="]"&&(R.value==="["||R.value==="[^")&&(x=`\\${x}`),r.posix===!0&&x==="!"&&R.value==="["&&(x="^"),R.value+=x,ve({value:x});continue}if(C.quotes===1&&x!=='"'){x=Lt.escapeRegex(x),R.value+=x,ve({value:x});continue}if(x==='"'){C.quotes=C.quotes===1?0:1,r.keepQuotes===!0&&re({type:"text",value:x});continue}if(x==="("){ge("parens"),re({type:"paren",value:x});continue}if(x===")"){if(C.parens===0&&r.strictBrackets===!0)throw new SyntaxError(zi("opening","("));let q=ne[ne.length-1];if(q&&C.parens===q.parens+1){kt(ne.pop());continue}re({type:"paren",value:x,output:C.parens?")":"\\)"}),De("parens");continue}if(x==="["){if(r.nobracket===!0||!Y().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(zi("closing","]"));x=`\\${x}`}else ge("brackets");re({type:"bracket",value:x});continue}if(x==="]"){if(r.nobracket===!0||R&&R.type==="bracket"&&R.value.length===1){re({type:"text",value:x,output:`\\${x}`});continue}if(C.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(zi("opening","["));re({type:"text",value:x,output:`\\${x}`});continue}De("brackets");let q=R.value.slice(1);if(R.posix!==!0&&q[0]==="^"&&!q.includes("/")&&(x=`/${x}`),R.value+=x,ve({value:x}),r.literalBrackets===!1||Lt.hasRegexChars(q))continue;let _=Lt.escapeRegex(R.value);if(C.output=C.output.slice(0,-R.value.length),r.literalBrackets===!0){C.output+=_,R.value=_;continue}R.value=`(${a}${_}|${R.value})`,C.output+=R.value;continue}if(x==="{"&&r.nobrace!==!0){ge("braces");let q={type:"brace",value:x,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};ee.push(q),re(q);continue}if(x==="}"){let q=ee[ee.length-1];if(r.nobrace===!0||!q){re({type:"text",value:x,output:x});continue}let _=")";if(q.dots===!0){let S=o.slice(),b=[];for(let L=S.length-1;L>=0&&(o.pop(),S[L].type!=="brace");L--)S[L].type!=="dots"&&b.unshift(S[L].value);_=oq(b,r),C.backtrack=!0}if(q.comma!==!0&&q.dots!==!0){let S=C.output.slice(0,q.outputIndex),b=C.tokens.slice(q.tokensIndex);q.value=q.output="\\{",x=_="\\}",C.output=S;for(let L of b)C.output+=L.output||L.value}re({type:"brace",value:x,output:_}),De("braces"),ee.pop();continue}if(x==="|"){ne.length>0&&ne[ne.length-1].conditions++,re({type:"text",value:x});continue}if(x===","){let q=x,_=ee[ee.length-1];_&&fe[fe.length-1]==="braces"&&(_.comma=!0,q="|"),re({type:"comma",value:x,output:q});continue}if(x==="/"){if(R.type==="dot"&&C.index===C.start+1){C.start=C.index+1,C.consumed="",C.output="",o.pop(),R=s;continue}re({type:"slash",value:x,output:g});continue}if(x==="."){if(C.braces>0&&R.type==="dot"){R.value==="."&&(R.output=h);let q=ee[ee.length-1];R.type="dots",R.output+=x,R.value+=x,q.dots=!0;continue}if(C.braces+C.parens===0&&R.type!=="bos"&&R.type!=="slash"){re({type:"text",value:x,output:h});continue}re({type:"dot",value:x,output:h});continue}if(x==="?"){if(!(R&&R.value==="(")&&r.noextglob!==!0&&k()==="("&&k(2)!=="?"){pt("qmark",x);continue}if(R&&R.type==="paren"){let _=k(),S=x;if(_==="<"&&!Lt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(R.value==="("&&!/[!=<:]/.test(_)||_==="<"&&!/<([!=]|\w+>)/.test(Y()))&&(S=`\\${x}`),re({type:"text",value:x,output:S});continue}if(r.dot!==!0&&(R.type==="slash"||R.type==="bos")){re({type:"qmark",value:x,output:ie});continue}re({type:"qmark",value:x,output:D});continue}if(x==="!"){if(r.noextglob!==!0&&k()==="("&&(k(2)!=="?"||!/[!=<:]/.test(k(3)))){pt("negate",x);continue}if(r.nonegate!==!0&&C.index===0){Ue();continue}}if(x==="+"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){pt("plus",x);continue}if(R&&R.value==="("||r.regex===!1){re({type:"plus",value:x,output:d});continue}if(R&&(R.type==="bracket"||R.type==="paren"||R.type==="brace")||C.parens>0){re({type:"plus",value:x});continue}re({type:"plus",value:d});continue}if(x==="@"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){re({type:"at",extglob:!0,value:x,output:""});continue}re({type:"text",value:x});continue}if(x!=="*"){(x==="$"||x==="^")&&(x=`\\${x}`);let q=iq.exec(Y());q&&(x+=q[0],C.index+=q[0].length),re({type:"text",value:x});continue}if(R&&(R.type==="globstar"||R.star===!0)){R.type="star",R.star=!0,R.value+=x,R.output=Q,C.backtrack=!0,C.globstar=!0,j(x);continue}let B=Y();if(r.noextglob!==!0&&/^\([^?]/.test(B)){pt("star",x);continue}if(R.type==="star"){if(r.noglobstar===!0){j(x);continue}let q=R.prev,_=q.prev,S=q.type==="slash"||q.type==="bos",b=_&&(_.type==="star"||_.type==="globstar");if(r.bash===!0&&(!S||B[0]&&B[0]!=="/")){re({type:"star",value:x,output:""});continue}let L=C.braces>0&&(q.type==="comma"||q.type==="brace"),$=ne.length&&(q.type==="pipe"||q.type==="paren");if(!S&&q.type!=="paren"&&!L&&!$){re({type:"star",value:x,output:""});continue}for(;B.slice(0,3)==="/**";){let H=t[C.index+4];if(H&&H!=="/")break;B=B.slice(3),j("/**",3)}if(q.type==="bos"&&T()){R.type="globstar",R.value+=x,R.output=K(r),C.output=R.output,C.globstar=!0,j(x);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&!b&&T()){C.output=C.output.slice(0,-(q.output+R.output).length),q.output=`(?:${q.output}`,R.type="globstar",R.output=K(r)+(r.strictSlashes?")":"|$)"),R.value+=x,C.globstar=!0,C.output+=q.output+R.output,j(x);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&B[0]==="/"){let H=B[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(q.output+R.output).length),q.output=`(?:${q.output}`,R.type="globstar",R.output=`${K(r)}${g}|${g}${H})`,R.value+=x,C.output+=q.output+R.output,C.globstar=!0,j(x+I()),re({type:"slash",value:"/",output:""});continue}if(q.type==="bos"&&B[0]==="/"){R.type="globstar",R.value+=x,R.output=`(?:^|${g}|${K(r)}${g})`,C.output=R.output,C.globstar=!0,j(x+I()),re({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-R.output.length),R.type="globstar",R.output=K(r),R.value+=x,C.output+=R.output,C.globstar=!0,j(x);continue}let Ee={type:"star",value:x,output:Q};if(r.bash===!0){Ee.output=".*?",(R.type==="bos"||R.type==="slash")&&(Ee.output=Z+Ee.output),re(Ee);continue}if(R&&(R.type==="bracket"||R.type==="paren")&&r.regex===!0){Ee.output=x,re(Ee);continue}(C.index===C.start||R.type==="slash"||R.type==="dot")&&(R.type==="dot"?(C.output+=A,R.output+=A):r.dot===!0?(C.output+=P,R.output+=P):(C.output+=Z,R.output+=Z),k()!=="*"&&(C.output+=m,R.output+=m)),re(Ee)}for(;C.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(zi("closing","]"));C.output=Lt.escapeLast(C.output,"["),De("brackets")}for(;C.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(zi("closing",")"));C.output=Lt.escapeLast(C.output,"("),De("parens")}for(;C.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(zi("closing","}"));C.output=Lt.escapeLast(C.output,"{"),De("braces")}if(r.strictSlashes!==!0&&(R.type==="star"||R.type==="bracket")&&re({type:"maybe_slash",value:"",output:`${g}?`}),C.backtrack===!0){C.output="";for(let B of C.tokens)C.output+=B.output!=null?B.output:B.value,B.suffix&&(C.output+=B.suffix)}return C};Dh.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(gc,r.maxLength):gc,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=pw[t]||t;let s=Lt.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:h,NO_DOTS_SLASH:d,STAR:g,START_ANCHOR:m}=mc.globChars(s),E=r.dot?h:f,v=r.dot?d:f,A=r.capture?"":"?:",P={negated:!1,prefix:""},D=r.bash===!0?".*?":g;r.capture&&(D=`(${D})`);let ie=Z=>Z.noglobstar===!0?D:`(${A}(?:(?!${m}${Z.dot?u:o}).)*?)`,z=Z=>{switch(Z){case"*":return`${E}${c}${D}`;case".*":return`${o}${c}${D}`;case"*.*":return`${E}${D}${o}${c}${D}`;case"*/*":return`${E}${D}${a}${c}${v}${D}`;case"**":return E+ie(r);case"**/*":return`(?:${E}${ie(r)}${a})?${v}${c}${D}`;case"**/*.*":return`(?:${E}${ie(r)}${a})?${v}${D}${o}${c}${D}`;case"**/.*":return`(?:${E}${ie(r)}${a})?${o}${c}${D}`;default:{let F=/^(.*?)\.(\w+)$/.exec(Z);if(!F)return;let Q=z(F[1]);return Q?Q+o+F[2]:void 0}}},ue=Lt.removePrefix(t,P),K=z(ue);return K&&r.strictSlashes!==!0&&(K+=`${a}?`),K};mw.exports=Dh});var _w=y((yY,yw)=>{"use strict";l();var aq=require("path"),cq=dw(),Mh=gw(),Fh=Bo(),uq=qo(),lq=t=>t&&typeof t=="object"&&!Array.isArray(t),Fe=(t,e,r=!1)=>{if(Array.isArray(t)){let f=t.map(d=>Fe(d,e,r));return d=>{for(let g of f){let m=g(d);if(m)return m}return!1}}let n=lq(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=Fh.isWindows(e),o=n?Fe.compileRe(t,e):Fe.makeRe(t,e,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(i.ignore){let f={...e,ignore:null,onMatch:null,onResult:null};c=Fe(i.ignore,f,r)}let u=(f,h=!1)=>{let{isMatch:d,match:g,output:m}=Fe.test(f,o,e,{glob:t,posix:s}),E={glob:t,state:a,regex:o,posix:s,input:f,output:m,match:g,isMatch:d};return typeof i.onResult=="function"&&i.onResult(E),d===!1?(E.isMatch=!1,h?E:!1):c(f)?(typeof i.onIgnore=="function"&&i.onIgnore(E),E.isMatch=!1,h?E:!1):(typeof i.onMatch=="function"&&i.onMatch(E),h?E:!0)};return r&&(u.state=a),u};Fe.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Fh.toPosixSlashes:null),a=t===n,c=a&&o?o(t):t;return a===!1&&(c=o?o(t):t,a=c===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Fe.matchBase(t,e,r,i):a=e.exec(c)),{isMatch:Boolean(a),match:a,output:c}};Fe.matchBase=(t,e,r,n=Fh.isWindows(r))=>(e instanceof RegExp?e:Fe.makeRe(e,r)).test(aq.basename(t));Fe.isMatch=(t,e,r)=>Fe(e,r)(t);Fe.parse=(t,e)=>Array.isArray(t)?t.map(r=>Fe.parse(r,e)):Mh(t,{...e,fastpaths:!1});Fe.scan=(t,e)=>cq(t,e);Fe.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let c=Fe.toRegex(a,e);return n===!0&&(c.state=t),c};Fe.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=Mh.fastpaths(t,e)),i.output||(i=Mh(t,e)),Fe.compileRe(i,e,r,n)};Fe.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Fe.constants=uq;yw.exports=Fe});var bw=y((_Y,vw)=>{"use strict";l();vw.exports=_w()});var Aw=y((vY,Sw)=>{"use strict";l();var ww=require("util"),xw=ew(),br=bw(),qh=Bo(),Ew=t=>t===""||t==="./",Pe=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<e.length;f++){let h=br(String(e[f]),{...r,onResult:a},!0),d=h.state.negated||h.state.negatedExtglob;d&&o++;for(let g of t){let m=h(g,!0);!(d?!m.isMatch:m.isMatch)||(d?n.add(m.output):(n.delete(m.output),i.add(m.output)))}}let u=(o===e.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(f=>f.replace(/\\/g,"")):e}return u};Pe.match=Pe;Pe.matcher=(t,e)=>br(t,e);Pe.isMatch=(t,e,r)=>br(e,r)(t);Pe.any=Pe.isMatch;Pe.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Pe(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Pe.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ww.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>Pe.contains(t,n,r));if(typeof e=="string"){if(Ew(t)||Ew(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Pe.isMatch(t,e,{...r,contains:!0})};Pe.matchKeys=(t,e,r)=>{if(!qh.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=Pe(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};Pe.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=br(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Pe.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=br(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Pe.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ww.inspect(t)}"`);return[].concat(e).every(n=>br(n,r)(t))};Pe.capture=(t,e,r)=>{let n=qh.isWindows(r),s=br.makeRe(String(t),{...r,capture:!0}).exec(n?qh.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Pe.makeRe=(...t)=>br.makeRe(...t);Pe.scan=(...t)=>br.scan(...t);Pe.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of xw(String(n),e))r.push(br.parse(i,e));return r};Pe.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:xw(t,e)};Pe.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Pe.braces(t,{...e,expand:!0})};Sw.exports=Pe});var Lw=y(se=>{"use strict";l();Object.defineProperty(se,"__esModule",{value:!0});se.matchAny=se.convertPatternsToRe=se.makeRe=se.getPatternParts=se.expandBraceExpansion=se.expandPatternsWithBraceExpansion=se.isAffectDepthOfReadingPattern=se.endsWithSlashGlobStar=se.hasGlobStar=se.getBaseDirectory=se.isPatternRelatedToParentDirectory=se.getPatternsOutsideCurrentDirectory=se.getPatternsInsideCurrentDirectory=se.getPositivePatterns=se.getNegativePatterns=se.isPositivePattern=se.isNegativePattern=se.convertToNegativePattern=se.convertToPositivePattern=se.isDynamicPattern=se.isStaticPattern=void 0;var fq=require("path"),hq=yE(),Bh=Aw(),Rw="**",dq="\\",pq=/[*?]|^!/,mq=/\[[^[]*]/,gq=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,yq=/[!*+?@]\([^(]*\)/,_q=/,|\.\./;function Cw(t,e={}){return!Ow(t,e)}se.isStaticPattern=Cw;function Ow(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(dq)||pq.test(t)||mq.test(t)||gq.test(t)||e.extglob!==!1&&yq.test(t)||e.braceExpansion!==!1&&vq(t))}se.isDynamicPattern=Ow;function vq(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return _q.test(n)}function bq(t){return yc(t)?t.slice(1):t}se.convertToPositivePattern=bq;function Eq(t){return"!"+t}se.convertToNegativePattern=Eq;function yc(t){return t.startsWith("!")&&t[1]!=="("}se.isNegativePattern=yc;function Tw(t){return!yc(t)}se.isPositivePattern=Tw;function wq(t){return t.filter(yc)}se.getNegativePatterns=wq;function xq(t){return t.filter(Tw)}se.getPositivePatterns=xq;function Sq(t){return t.filter(e=>!jh(e))}se.getPatternsInsideCurrentDirectory=Sq;function Aq(t){return t.filter(jh)}se.getPatternsOutsideCurrentDirectory=Aq;function jh(t){return t.startsWith("..")||t.startsWith("./..")}se.isPatternRelatedToParentDirectory=jh;function Rq(t){return hq(t,{flipBackslashes:!1})}se.getBaseDirectory=Rq;function Cq(t){return t.includes(Rw)}se.hasGlobStar=Cq;function kw(t){return t.endsWith("/"+Rw)}se.endsWithSlashGlobStar=kw;function Oq(t){let e=fq.basename(t);return kw(t)||Cw(e)}se.isAffectDepthOfReadingPattern=Oq;function Tq(t){return t.reduce((e,r)=>e.concat(Pw(r)),[])}se.expandPatternsWithBraceExpansion=Tq;function Pw(t){return Bh.braces(t,{expand:!0,nodupes:!0})}se.expandBraceExpansion=Pw;function kq(t,e){let{parts:r}=Bh.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}se.getPatternParts=kq;function Iw(t,e){return Bh.makeRe(t,e)}se.makeRe=Iw;function Pq(t,e){return t.map(r=>Iw(r,e))}se.convertPatternsToRe=Pq;function Iq(t,e){return e.some(r=>r.test(t))}se.matchAny=Iq});var Fw=y((EY,Mw)=>{"use strict";l();var Lq=require("stream"),Nw=Lq.PassThrough,Nq=Array.prototype.slice;Mw.exports=Dq;function Dq(){let t=[],e=Nq.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=Nw(n);function a(){for(let f=0,h=arguments.length;f<h;f++)t.push(Dw(arguments[f],n));return c(),this}function c(){if(r)return;r=!0;let f=t.shift();if(!f){process.nextTick(u);return}Array.isArray(f)||(f=[f]);let h=f.length+1;function d(){--h>0||(r=!1,c())}function g(m){function E(){m.removeListener("merge2UnpipeEnd",E),m.removeListener("end",E),s&&m.removeListener("error",v),d()}function v(A){o.emit("error",A)}if(m._readableState.endEmitted)return d();m.on("merge2UnpipeEnd",E),m.on("end",E),s&&m.on("error",v),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<f.length;m++)g(f[m]);d()}function u(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Dw(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=Dw(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Nw(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Bw=y(_c=>{"use strict";l();Object.defineProperty(_c,"__esModule",{value:!0});_c.merge=void 0;var Mq=Fw();function Fq(t){let e=Mq(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>qw(t)),e.once("end",()=>qw(t)),e}_c.merge=Fq;function qw(t){t.forEach(e=>e.emit("close"))}});var jw=y(Yi=>{"use strict";l();Object.defineProperty(Yi,"__esModule",{value:!0});Yi.isEmpty=Yi.isString=void 0;function qq(t){return typeof t=="string"}Yi.isString=qq;function Bq(t){return t===""}Yi.isEmpty=Bq});var Ur=y(st=>{"use strict";l();Object.defineProperty(st,"__esModule",{value:!0});st.string=st.stream=st.pattern=st.path=st.fs=st.errno=st.array=void 0;var jq=aE();st.array=jq;var Hq=cE();st.errno=Hq;var $q=uE();st.fs=$q;var Uq=lE();st.path=Uq;var Gq=Lw();st.pattern=Gq;var Vq=Bw();st.stream=Vq;var Wq=jw();st.string=Wq});var Uw=y(ot=>{"use strict";l();Object.defineProperty(ot,"__esModule",{value:!0});ot.convertPatternGroupToTask=ot.convertPatternGroupsToTasks=ot.groupPatternsByBaseDirectory=ot.getNegativePatternsAsPositive=ot.getPositivePatterns=ot.convertPatternsToTasks=ot.generate=void 0;var Gr=Ur();function zq(t,e){let r=Hw(t),n=$w(t,e.ignore),i=r.filter(c=>Gr.pattern.isStaticPattern(c,e)),s=r.filter(c=>Gr.pattern.isDynamicPattern(c,e)),o=Hh(i,n,!1),a=Hh(s,n,!0);return o.concat(a)}ot.generate=zq;function Hh(t,e,r){let n=[],i=Gr.pattern.getPatternsOutsideCurrentDirectory(t),s=Gr.pattern.getPatternsInsideCurrentDirectory(t),o=$h(i),a=$h(s);return n.push(...Uh(o,e,r)),"."in a?n.push(Gh(".",s,e,r)):n.push(...Uh(a,e,r)),n}ot.convertPatternsToTasks=Hh;function Hw(t){return Gr.pattern.getPositivePatterns(t)}ot.getPositivePatterns=Hw;function $w(t,e){return Gr.pattern.getNegativePatterns(t).concat(e).map(Gr.pattern.convertToPositivePattern)}ot.getNegativePatternsAsPositive=$w;function $h(t){let e={};return t.reduce((r,n)=>{let i=Gr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}ot.groupPatternsByBaseDirectory=$h;function Uh(t,e,r){return Object.keys(t).map(n=>Gh(n,t[n],e,r))}ot.convertPatternGroupsToTasks=Uh;function Gh(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Gr.pattern.convertToNegativePattern))}}ot.convertPatternGroupToTask=Gh});var Vw=y(Ki=>{"use strict";l();Object.defineProperty(Ki,"__esModule",{value:!0});Ki.removeDuplicateSlashes=Ki.transform=void 0;var Yq=/(?!^)\/{2,}/g;function Kq(t){return t.map(e=>Gw(e))}Ki.transform=Kq;function Gw(t){return t.replace(Yq,"/")}Ki.removeDuplicateSlashes=Gw});var zw=y(vc=>{"use strict";l();Object.defineProperty(vc,"__esModule",{value:!0});vc.read=void 0;function Zq(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){Ww(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){Vh(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Ww(r,s);return}Vh(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Vh(r,o)})})}vc.read=Zq;function Ww(t,e){t(e)}function Vh(t,e){t(null,e)}});var Yw=y(bc=>{"use strict";l();Object.defineProperty(bc,"__esModule",{value:!0});bc.read=void 0;function Jq(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}bc.read=Jq});var Kw=y(yn=>{"use strict";l();Object.defineProperty(yn,"__esModule",{value:!0});yn.createFileSystemAdapter=yn.FILE_SYSTEM_ADAPTER=void 0;var Ec=require("fs");yn.FILE_SYSTEM_ADAPTER={lstat:Ec.lstat,stat:Ec.stat,lstatSync:Ec.lstatSync,statSync:Ec.statSync};function Xq(t){return t===void 0?yn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},yn.FILE_SYSTEM_ADAPTER),t)}yn.createFileSystemAdapter=Xq});var Zw=y(zh=>{"use strict";l();Object.defineProperty(zh,"__esModule",{value:!0});var Qq=Kw(),Wh=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Qq.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};zh.default=Wh});var ri=y(_n=>{"use strict";l();Object.defineProperty(_n,"__esModule",{value:!0});_n.statSync=_n.stat=_n.Settings=void 0;var Jw=zw(),eB=Yw(),Yh=Zw();_n.Settings=Yh.default;function tB(t,e,r){if(typeof e=="function"){Jw.read(t,Kh(),e);return}Jw.read(t,Kh(e),r)}_n.stat=tB;function rB(t,e){let r=Kh(e);return eB.read(t,r)}_n.statSync=rB;function Kh(t={}){return t instanceof Yh.default?t:new Yh.default(t)}});var ex=y((IY,Qw)=>{l();var Xw;Qw.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Xw||(Xw=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var rx=y((LY,tx)=>{l();tx.exports=iB;var nB=ex();function iB(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(c){function u(){e&&e(c,r),e=null}s?nB(u):u()}function a(c,u,f){r[c]=f,(--n===0||u)&&o(u)}n?i?i.forEach(function(c){t[c](function(u,f){a(c,u,f)})}):t.forEach(function(c,u){c(function(f,h){a(u,f,h)})}):o(null),s=!1}});var Zh=y(xc=>{"use strict";l();Object.defineProperty(xc,"__esModule",{value:!0});xc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var wc=process.versions.node.split(".");if(wc[0]===void 0||wc[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var nx=Number.parseInt(wc[0],10),sB=Number.parseInt(wc[1],10),ix=10,oB=10,aB=nx>ix,cB=nx===ix&&sB>=oB;xc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=aB||cB});var sx=y(Sc=>{"use strict";l();Object.defineProperty(Sc,"__esModule",{value:!0});Sc.createDirentFromStats=void 0;var Jh=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function uB(t,e){return new Jh(t,e)}Sc.createDirentFromStats=uB});var Xh=y(Ac=>{"use strict";l();Object.defineProperty(Ac,"__esModule",{value:!0});Ac.fs=void 0;var lB=sx();Ac.fs=lB});var Qh=y(Rc=>{"use strict";l();Object.defineProperty(Rc,"__esModule",{value:!0});Rc.joinPathSegments=void 0;function fB(t,e,r){return t.endsWith(r)?t+e:t+r+e}Rc.joinPathSegments=fB});var fx=y(vn=>{"use strict";l();Object.defineProperty(vn,"__esModule",{value:!0});vn.readdir=vn.readdirWithFileTypes=vn.read=void 0;var hB=ri(),ox=rx(),dB=Zh(),ax=Xh(),cx=Qh();function pB(t,e,r){if(!e.stats&&dB.IS_SUPPORT_READDIR_WITH_FILE_TYPES){ux(t,e,r);return}lx(t,e,r)}vn.read=pB;function ux(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Cc(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:cx.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){ed(r,s);return}let o=s.map(a=>mB(a,e));ox(o,(a,c)=>{if(a!==null){Cc(r,a);return}ed(r,c)})})}vn.readdirWithFileTypes=ux;function mB(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=ax.fs.createDirentFromStats(t.name,i),r(null,t)})}}function lx(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){Cc(r,n);return}let s=i.map(o=>{let a=cx.joinPathSegments(t,o,e.pathSegmentSeparator);return c=>{hB.stat(a,e.fsStatSettings,(u,f)=>{if(u!==null){c(u);return}let h={name:o,path:a,dirent:ax.fs.createDirentFromStats(o,f)};e.stats&&(h.stats=f),c(null,h)})}});ox(s,(o,a)=>{if(o!==null){Cc(r,o);return}ed(r,a)})})}vn.readdir=lx;function Cc(t,e){t(e)}function ed(t,e){t(null,e)}});var gx=y(bn=>{"use strict";l();Object.defineProperty(bn,"__esModule",{value:!0});bn.readdir=bn.readdirWithFileTypes=bn.read=void 0;var gB=ri(),yB=Zh(),hx=Xh(),dx=Qh();function _B(t,e){return!e.stats&&yB.IS_SUPPORT_READDIR_WITH_FILE_TYPES?px(t,e):mx(t,e)}bn.read=_B;function px(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:dx.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=hx.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}bn.readdirWithFileTypes=px;function mx(t,e){return e.fs.readdirSync(t).map(n=>{let i=dx.joinPathSegments(t,n,e.pathSegmentSeparator),s=gB.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:hx.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}bn.readdir=mx});var yx=y(En=>{"use strict";l();Object.defineProperty(En,"__esModule",{value:!0});En.createFileSystemAdapter=En.FILE_SYSTEM_ADAPTER=void 0;var Zi=require("fs");En.FILE_SYSTEM_ADAPTER={lstat:Zi.lstat,stat:Zi.stat,lstatSync:Zi.lstatSync,statSync:Zi.statSync,readdir:Zi.readdir,readdirSync:Zi.readdirSync};function vB(t){return t===void 0?En.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},En.FILE_SYSTEM_ADAPTER),t)}En.createFileSystemAdapter=vB});var _x=y(rd=>{"use strict";l();Object.defineProperty(rd,"__esModule",{value:!0});var bB=require("path"),EB=ri(),wB=yx(),td=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=wB.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,bB.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new EB.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};rd.default=td});var Oc=y(wn=>{"use strict";l();Object.defineProperty(wn,"__esModule",{value:!0});wn.Settings=wn.scandirSync=wn.scandir=void 0;var vx=fx(),xB=gx(),nd=_x();wn.Settings=nd.default;function SB(t,e,r){if(typeof e=="function"){vx.read(t,id(),e);return}vx.read(t,id(e),r)}wn.scandir=SB;function AB(t,e){let r=id(e);return xB.read(t,r)}wn.scandirSync=AB;function id(t={}){return t instanceof nd.default?t:new nd.default(t)}});var Ex=y((UY,bx)=>{"use strict";l();function RB(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}bx.exports=RB});var xx=y((GY,sd)=>{"use strict";l();var CB=Ex();function wx(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=CB(OB),i=null,s=null,o=0,a=null,c={push:E,drain:zt,saturated:zt,pause:f,paused:!1,concurrency:r,running:u,resume:g,idle:m,length:h,getQueue:d,unshift:v,empty:zt,kill:P,killAndDrain:D,error:ie};return c;function u(){return o}function f(){c.paused=!0}function h(){for(var z=i,ue=0;z;)z=z.next,ue++;return ue}function d(){for(var z=i,ue=[];z;)ue.push(z.value),z=z.next;return ue}function g(){if(!!c.paused){c.paused=!1;for(var z=0;z<c.concurrency;z++)o++,A()}}function m(){return o===0&&c.length()===0}function E(z,ue){var K=n.get();K.context=t,K.release=A,K.value=z,K.callback=ue||zt,K.errorHandler=a,o===c.concurrency||c.paused?s?(s.next=K,s=K):(i=K,s=K,c.saturated()):(o++,e.call(t,K.value,K.worked))}function v(z,ue){var K=n.get();K.context=t,K.release=A,K.value=z,K.callback=ue||zt,o===c.concurrency||c.paused?i?(K.next=i,i=K):(i=K,s=K,c.saturated()):(o++,e.call(t,K.value,K.worked))}function A(z){z&&n.release(z);var ue=i;ue?c.paused?o--:(s===i&&(s=null),i=ue.next,ue.next=null,e.call(t,ue.value,ue.worked),s===null&&c.empty()):--o===0&&c.drain()}function P(){i=null,s=null,c.drain=zt}function D(){i=null,s=null,c.drain(),c.drain=zt}function ie(z){a=z}}function zt(){}function OB(){this.value=null,this.callback=zt,this.next=null,this.release=zt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=zt,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function TB(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(f,h){e.call(this,f).then(function(d){h(null,d)},h)}var i=wx(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=c,i.drained=u,i;function a(f){var h=new Promise(function(d,g){s(f,function(m,E){if(m){g(m);return}d(E)})});return h.catch(zt),h}function c(f){var h=new Promise(function(d,g){o(f,function(m,E){if(m){g(m);return}d(E)})});return h.catch(zt),h}function u(){var f=i.drain,h=new Promise(function(d){i.drain=function(){f(),d()}});return h}}sd.exports=wx;sd.exports.promise=TB});var Tc=y(Er=>{"use strict";l();Object.defineProperty(Er,"__esModule",{value:!0});Er.joinPathSegments=Er.replacePathSegmentSeparator=Er.isAppliedFilter=Er.isFatalError=void 0;function kB(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Er.isFatalError=kB;function PB(t,e){return t===null||t(e)}Er.isAppliedFilter=PB;function IB(t,e){return t.split(/[/\\]/).join(e)}Er.replacePathSegmentSeparator=IB;function LB(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Er.joinPathSegments=LB});var cd=y(ad=>{"use strict";l();Object.defineProperty(ad,"__esModule",{value:!0});var NB=Tc(),od=class{constructor(e,r){this._root=e,this._settings=r,this._root=NB.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};ad.default=od});var fd=y(ld=>{"use strict";l();Object.defineProperty(ld,"__esModule",{value:!0});var DB=require("events"),MB=Oc(),FB=xx(),kc=Tc(),qB=cd(),ud=class extends qB.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=MB.scandir,this._emitter=new DB.EventEmitter,this._queue=FB(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!kc.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=kc.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),kc.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&kc.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};ld.default=ud});var Sx=y(dd=>{"use strict";l();Object.defineProperty(dd,"__esModule",{value:!0});var BB=fd(),hd=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new BB.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{jB(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{HB(e,this._storage)}),this._reader.read()}};dd.default=hd;function jB(t,e){t(e)}function HB(t,e){t(null,e)}});var Ax=y(md=>{"use strict";l();Object.defineProperty(md,"__esModule",{value:!0});var $B=require("stream"),UB=fd(),pd=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new UB.default(this._root,this._settings),this._stream=new $B.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};md.default=pd});var Rx=y(yd=>{"use strict";l();Object.defineProperty(yd,"__esModule",{value:!0});var GB=Oc(),Pc=Tc(),VB=cd(),gd=class extends VB.default{constructor(){super(...arguments),this._scandir=GB.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(!!Pc.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Pc.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Pc.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Pc.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};yd.default=gd});var Cx=y(vd=>{"use strict";l();Object.defineProperty(vd,"__esModule",{value:!0});var WB=Rx(),_d=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new WB.default(this._root,this._settings)}read(){return this._reader.read()}};vd.default=_d});var Ox=y(Ed=>{"use strict";l();Object.defineProperty(Ed,"__esModule",{value:!0});var zB=require("path"),YB=Oc(),bd=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,zB.sep),this.fsScandirSettings=new YB.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Ed.default=bd});var Lc=y(wr=>{"use strict";l();Object.defineProperty(wr,"__esModule",{value:!0});wr.Settings=wr.walkStream=wr.walkSync=wr.walk=void 0;var Tx=Sx(),KB=Ax(),ZB=Cx(),wd=Ox();wr.Settings=wd.default;function JB(t,e,r){if(typeof e=="function"){new Tx.default(t,Ic()).read(e);return}new Tx.default(t,Ic(e)).read(r)}wr.walk=JB;function XB(t,e){let r=Ic(e);return new ZB.default(t,r).read()}wr.walkSync=XB;function QB(t,e){let r=Ic(e);return new KB.default(t,r).read()}wr.walkStream=QB;function Ic(t={}){return t instanceof wd.default?t:new wd.default(t)}});var Nc=y(Sd=>{"use strict";l();Object.defineProperty(Sd,"__esModule",{value:!0});var e3=require("path"),t3=ri(),kx=Ur(),xd=class{constructor(e){this._settings=e,this._fsStatSettings=new t3.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return e3.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:kx.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!kx.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Sd.default=xd});var Cd=y(Rd=>{"use strict";l();Object.defineProperty(Rd,"__esModule",{value:!0});var r3=require("stream"),n3=ri(),i3=Lc(),s3=Nc(),Ad=class extends s3.default{constructor(){super(...arguments),this._walkStream=i3.walkStream,this._stat=n3.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new r3.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[s],r).then(c=>{c!==null&&r.entryFilter(c)&&i.push(c),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Rd.default=Ad});var Px=y(Td=>{"use strict";l();Object.defineProperty(Td,"__esModule",{value:!0});var o3=Lc(),a3=Nc(),c3=Cd(),Od=class extends a3.default{constructor(){super(...arguments),this._walkAsync=o3.walk,this._readerStream=new c3.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Td.default=Od});var Ix=y(Pd=>{"use strict";l();Object.defineProperty(Pd,"__esModule",{value:!0});var Ji=Ur(),kd=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=Ji.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return Ji.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Ji.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Ji.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Ji.array.splitWhen(e,r=>r.dynamic&&Ji.pattern.hasGlobStar(r.pattern))}};Pd.default=kd});var Lx=y(Ld=>{"use strict";l();Object.defineProperty(Ld,"__esModule",{value:!0});var u3=Ix(),Id=class extends u3.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((c,u)=>{let f=s.segments[u];return!!(f.dynamic&&f.patternRe.test(c)||!f.dynamic&&f.pattern===c)}))return!0}return!1}};Ld.default=Id});var Nx=y(Dd=>{"use strict";l();Object.defineProperty(Dd,"__esModule",{value:!0});var Dc=Ur(),l3=Lx(),Nd=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new l3.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Dc.pattern.isAffectDepthOfReadingPattern);return Dc.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Dc.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Dc.pattern.matchAny(e,r)}};Dd.default=Nd});var Dx=y(Fd=>{"use strict";l();Object.defineProperty(Fd,"__esModule",{value:!0});var ni=Ur(),Md=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=ni.pattern.convertPatternsToRe(e,this._micromatchOptions),i=ni.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=ni.path.makeAbsolute(this._settings.cwd,e);return ni.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=ni.path.removeLeadingDotSegment(e),s=ni.pattern.matchAny(i,r);return!s&&n?ni.pattern.matchAny(i+"/",r):s}};Fd.default=Md});var Mx=y(Bd=>{"use strict";l();Object.defineProperty(Bd,"__esModule",{value:!0});var f3=Ur(),qd=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return f3.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Bd.default=qd});var qx=y(Hd=>{"use strict";l();Object.defineProperty(Hd,"__esModule",{value:!0});var Fx=Ur(),jd=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Fx.path.makeAbsolute(this._settings.cwd,r),r=Fx.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Hd.default=jd});var Mc=y(Ud=>{"use strict";l();Object.defineProperty(Ud,"__esModule",{value:!0});var h3=require("path"),d3=Nx(),p3=Dx(),m3=Mx(),g3=qx(),$d=class{constructor(e){this._settings=e,this.errorFilter=new m3.default(this._settings),this.entryFilter=new p3.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new d3.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new g3.default(this._settings)}_getRootDirectory(e){return h3.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Ud.default=$d});var Bx=y(Vd=>{"use strict";l();Object.defineProperty(Vd,"__esModule",{value:!0});var y3=Px(),_3=Mc(),Gd=class extends _3.default{constructor(){super(...arguments),this._reader=new y3.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Vd.default=Gd});var jx=y(zd=>{"use strict";l();Object.defineProperty(zd,"__esModule",{value:!0});var v3=require("stream"),b3=Cd(),E3=Mc(),Wd=class extends E3.default{constructor(){super(...arguments),this._reader=new b3.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new v3.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};zd.default=Wd});var Hx=y(Kd=>{"use strict";l();Object.defineProperty(Kd,"__esModule",{value:!0});var w3=ri(),x3=Lc(),S3=Nc(),Yd=class extends S3.default{constructor(){super(...arguments),this._walkSync=x3.walkSync,this._statSync=w3.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Kd.default=Yd});var $x=y(Jd=>{"use strict";l();Object.defineProperty(Jd,"__esModule",{value:!0});var A3=Hx(),R3=Mc(),Zd=class extends R3.default{constructor(){super(...arguments),this._reader=new A3.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Jd.default=Zd});var Ux=y(Qi=>{"use strict";l();Object.defineProperty(Qi,"__esModule",{value:!0});Qi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Xi=require("fs"),C3=require("os"),O3=Math.max(C3.cpus().length,1);Qi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Xi.lstat,lstatSync:Xi.lstatSync,stat:Xi.stat,statSync:Xi.statSync,readdir:Xi.readdir,readdirSync:Xi.readdirSync};var Xd=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,O3),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Qi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Qi.default=Xd});var zx=y((mK,Wx)=>{"use strict";l();var Gx=Uw(),Vx=Vw(),T3=Bx(),k3=jx(),P3=$x(),Qd=Ux(),ii=Ur();async function ep(t,e){es(t);let r=tp(t,T3.default,e),n=await Promise.all(r);return ii.array.flatten(n)}(function(t){function e(o,a){es(o);let c=tp(o,P3.default,a);return ii.array.flatten(c)}t.sync=e;function r(o,a){es(o);let c=tp(o,k3.default,a);return ii.stream.merge(c)}t.stream=r;function n(o,a){es(o);let c=Vx.transform([].concat(o)),u=new Qd.default(a);return Gx.generate(c,u)}t.generateTasks=n;function i(o,a){es(o);let c=new Qd.default(a);return ii.pattern.isDynamicPattern(o,c)}t.isDynamicPattern=i;function s(o){return es(o),ii.path.escape(o)}t.escapePath=s})(ep||(ep={}));function tp(t,e,r){let n=Vx.transform([].concat(t)),i=new Qd.default(r),s=Gx.generate(n,i),o=new e(i);return s.map(o.read,o)}function es(t){if(![].concat(t).every(n=>ii.string.isString(n)&&!ii.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Wx.exports=ep});var qc=y((gK,rp)=>{l();var Yx=process.argv||[],Fc=process.env,I3=!("NO_COLOR"in Fc||Yx.includes("--no-color"))&&("FORCE_COLOR"in Fc||Yx.includes("--color")||process.platform==="win32"||require!=null&&require("tty").isatty(1)&&Fc.TERM!=="dumb"||"CI"in Fc),L3=(t,e,r=t)=>n=>{let i=""+n,s=i.indexOf(e,t.length);return~s?t+N3(i,e,r,s)+e:t+i+e},N3=(t,e,r,n)=>{let i="",s=0;do i+=t.substring(s,n)+r,s=n+e.length,n=t.indexOf(e,s);while(~n);return i+t.substring(s)},Kx=(t=I3)=>{let e=t?L3:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m")}};rp.exports=Kx();rp.exports.createColors=Kx});var Jx=y((yK,Zx)=>{"use strict";l();Zx.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var np=y((_K,Qx)=>{l();var Ho=Jx(),Xx={};for(let t of Object.keys(Ho))Xx[Ho[t]]=t;var V={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Qx.exports=V;for(let t of Object.keys(V)){if(!("channels"in V[t]))throw new Error("missing channels property: "+t);if(!("labels"in V[t]))throw new Error("missing channel labels property: "+t);if(V[t].labels.length!==V[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=V[t];delete V[t].channels,delete V[t].labels,Object.defineProperty(V[t],"channels",{value:e}),Object.defineProperty(V[t],"labels",{value:r})}V.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let u=(i+s)/2;return s===i?c=0:u<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,u*100]};V.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,u=Math.max(o,a,c),f=u-Math.min(o,a,c),h=function(d){return(u-d)/6/f+1/2};return f===0?(i=0,s=0):(s=f/u,e=h(o),r=h(a),n=h(c),o===u?i=n-r:a===u?i=1/3+e-n:c===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};V.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=V.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};V.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function D3(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}V.rgb.keyword=function(t){let e=Xx[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Ho)){let s=Ho[i],o=D3(t,s);o<r&&(r=o,n=i)}return n};V.keyword.rgb=function(t){return Ho[t]};V.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};V.rgb.lab=function(t){let e=V.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};V.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,c=[0,0,0];for(let u=0;u<3;u++)s=e+1/3*-(u-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,c[u]=o*255;return c};V.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};V.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};V.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};V.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,(o&1)!==0&&(s=1-s);let c=r+s*(a-r),u,f,h;switch(o){default:case 6:case 0:u=a,f=c,h=r;break;case 1:u=c,f=a,h=r;break;case 2:u=r,f=a,h=c;break;case 3:u=r,f=c,h=a;break;case 4:u=c,f=r,h=a;break;case 5:u=a,f=r,h=c;break}return[u*255,f*255,h*255]};V.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};V.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};V.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};V.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,c=i**3,u=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};V.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};V.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};V.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?V.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};V.hsv.ansi16=function(t){return V.rgb.ansi16(V.hsv.rgb(t),t[2])};V.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};V.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};V.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};V.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};V.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};V.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o,c/=6,c%=1,[c*360,o*100,a*100]};V.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};V.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};V.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};V.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};V.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};V.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};V.hwb.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};V.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};V.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};V.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};V.gray.hsl=function(t){return[0,0,t[0]]};V.gray.hsv=V.gray.hsl;V.gray.hwb=function(t){return[0,100,t[0]]};V.gray.cmyk=function(t){return[0,0,0,t[0]]};V.gray.lab=function(t){return[t[0],0,0]};V.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};V.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var t1=y((vK,e1)=>{l();var Bc=np();function M3(){let t={},e=Object.keys(Bc);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function F3(t){let e=M3(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Bc[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}}return e}function q3(t,e){return function(r){return e(t(r))}}function B3(t,e){let r=[e[t].parent,t],n=Bc[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=q3(Bc[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}e1.exports=function(t){let e=F3(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=B3(o,e))}return r}});var n1=y((bK,r1)=>{l();var ip=np(),j3=t1(),ts={},H3=Object.keys(ip);function $3(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function U3(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}H3.forEach(t=>{ts[t]={},Object.defineProperty(ts[t],"channels",{value:ip[t].channels}),Object.defineProperty(ts[t],"labels",{value:ip[t].labels});let e=j3(t);Object.keys(e).forEach(n=>{let i=e[n];ts[t][n]=U3(i),ts[t][n].raw=$3(i)})});r1.exports=ts});var op=y((EK,c1)=>{"use strict";l();var i1=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,s1=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},o1=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},jc=t=>t,a1=(t,e,r)=>[t,e,r],rs=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},sp,ns=(t,e,r,n)=>{sp===void 0&&(sp=n1());let i=n?10:0,s={};for(let[o,a]of Object.entries(sp)){let c=o==="ansi16"?"ansi":o;o===e?s[c]=t(r,i):typeof a=="object"&&(s[c]=t(a[e],i))}return s};function G3(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",rs(e.color,"ansi",()=>ns(i1,"ansi16",jc,!1)),rs(e.color,"ansi256",()=>ns(s1,"ansi256",jc,!1)),rs(e.color,"ansi16m",()=>ns(o1,"rgb",a1,!1)),rs(e.bgColor,"ansi",()=>ns(i1,"ansi16",jc,!0)),rs(e.bgColor,"ansi256",()=>ns(s1,"ansi256",jc,!0)),rs(e.bgColor,"ansi16m",()=>ns(o1,"rgb",a1,!0)),e}Object.defineProperty(c1,"exports",{enumerable:!0,get:G3})});var l1=y((wK,u1)=>{"use strict";l();u1.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var up=y((xK,h1)=>{"use strict";l();var V3=require("os"),f1=require("tty"),Yt=l1(),{env:ze}=process,xn;Yt("no-color")||Yt("no-colors")||Yt("color=false")||Yt("color=never")?xn=0:(Yt("color")||Yt("colors")||Yt("color=true")||Yt("color=always"))&&(xn=1);"FORCE_COLOR"in ze&&(ze.FORCE_COLOR==="true"?xn=1:ze.FORCE_COLOR==="false"?xn=0:xn=ze.FORCE_COLOR.length===0?1:Math.min(parseInt(ze.FORCE_COLOR,10),3));function ap(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function cp(t,e){if(xn===0)return 0;if(Yt("color=16m")||Yt("color=full")||Yt("color=truecolor"))return 3;if(Yt("color=256"))return 2;if(t&&!e&&xn===void 0)return 0;let r=xn||0;if(ze.TERM==="dumb")return r;if(process.platform==="win32"){let n=V3.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ze)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in ze)||ze.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ze)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ze.TEAMCITY_VERSION)?1:0;if(ze.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ze){let n=parseInt((ze.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ze.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ze.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ze.TERM)||"COLORTERM"in ze?1:r}function W3(t){let e=cp(t,t&&t.isTTY);return ap(e)}h1.exports={supportsColor:W3,stdout:ap(cp(!0,f1.isatty(1))),stderr:ap(cp(!0,f1.isatty(2)))}});var p1=y((SK,d1)=>{"use strict";l();var z3=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},Y3=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
|
|
27
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),Ao.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;Ao.checkParentPaths(t,o,e,"copy",c=>c?n(c):r.filter?U_(H_,a,t,e,r,n):H_(a,t,e,r,n))})}function H_(t,e,r,n,i){let s=So.dirname(r);qL(s,(o,a)=>{if(o)return i(o);if(a)return eh(t,e,r,n,i);FL(s,c=>c?i(c):eh(t,e,r,n,i))})}function U_(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function eh(t,e,r,n,i){return n.filter?U_($_,t,e,r,n,i):$_(t,e,r,n,i)}function $_(t,e,r,n,i){(n.dereference?et.stat:et.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return GL(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return HL(a,t,e,r,n,i);if(a.isSymbolicLink())return zL(t,e,r,n,i)})}function HL(t,e,r,n,i,s){return e?$L(t,r,n,i,s):G_(t,r,n,i,s)}function $L(t,e,r,n,i){if(n.overwrite)et.unlink(r,s=>s?i(s):G_(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function G_(t,e,r,n,i){return typeof et.copyFile=="function"?et.copyFile(e,r,s=>s?i(s):V_(t,r,n,i)):UL(t,e,r,n,i)}function UL(t,e,r,n,i){let s=et.createReadStream(e);s.on("error",o=>i(o)).once("open",()=>{let o=et.createWriteStream(r,{mode:t.mode});o.on("error",a=>i(a)).on("open",()=>s.pipe(o)).once("close",()=>V_(t,r,n,i))})}function V_(t,e,r,n){et.chmod(e,t.mode,i=>i?n(i):r.preserveTimestamps?BL(e,t.atime,t.mtime,n):n())}function GL(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):W_(r,n,i,s):VL(t,r,n,i,s)}function VL(t,e,r,n,i){et.mkdir(r,s=>{if(s)return i(s);W_(e,r,n,o=>o?i(o):et.chmod(r,t.mode,i))})}function W_(t,e,r,n){et.readdir(t,(i,s)=>i?n(i):z_(s,t,e,r,n))}function z_(t,e,r,n,i){let s=t.pop();return s?WL(t,s,e,r,n,i):i()}function WL(t,e,r,n,i,s){let o=So.join(r,e),a=So.join(n,e);Ao.checkPaths(o,a,"copy",(c,u)=>{if(c)return s(c);let{destStat:f}=u;eh(f,o,a,i,h=>h?s(h):z_(t,r,n,i,s))})}function zL(t,e,r,n,i){et.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=So.resolve(process.cwd(),o)),t)et.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?et.symlink(o,r,i):i(a):(n.dereference&&(c=So.resolve(process.cwd(),c)),Ao.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):t.isDirectory()&&Ao.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):YL(o,r,i)));else return et.symlink(o,r,i)})}function YL(t,e,r){et.unlink(e,n=>n?r(n):et.symlink(t,e,r))}Y_.exports=jL});var th=y((lz,Z_)=>{"use strict";l();var KL=vt().fromCallback;Z_.exports={copy:KL(K_())}});var sv=y((fz,iv)=>{"use strict";l();var J_=je(),tv=require("path"),_e=require("assert"),Ro=process.platform==="win32";function rv(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||J_[r],r=r+"Sync",t[r]=t[r]||J_[r]}),t.maxBusyTries=t.maxBusyTries||3}function rh(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),_e(t,"rimraf: missing path"),_e.strictEqual(typeof t,"string","rimraf: path should be a string"),_e.strictEqual(typeof r,"function","rimraf: callback function required"),_e(e,"rimraf: invalid options argument provided"),_e.strictEqual(typeof e,"object","rimraf: options should be object"),rv(e),X_(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>X_(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function X_(t,e,r){_e(t),_e(e),_e(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Ro)return Q_(t,e,n,r);if(i&&i.isDirectory())return za(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Ro?Q_(t,e,s,r):za(t,e,s,r);if(s.code==="EISDIR")return za(t,e,s,r)}return r(s)})})}function Q_(t,e,r,n){_e(t),_e(e),_e(typeof n=="function"),r&&_e(r instanceof Error),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?za(t,e,r,n):e.unlink(t,n)})})}function ev(t,e,r){let n;_e(t),_e(e),r&&_e(r instanceof Error);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Ya(t,e,r):e.unlinkSync(t)}function za(t,e,r,n){_e(t),_e(e),r&&_e(r instanceof Error),_e(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?ZL(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function ZL(t,e,r){_e(t),_e(e),_e(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(a=>{rh(tv.join(t,a),e,c=>{if(!o){if(c)return r(o=c);--s===0&&e.rmdir(t,r)}})})})}function nv(t,e){let r;e=e||{},rv(e),_e(t,"rimraf: missing path"),_e.strictEqual(typeof t,"string","rimraf: path should be a string"),_e(e,"rimraf: missing options"),_e.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Ro&&ev(t,e,n)}try{r&&r.isDirectory()?Ya(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Ro?ev(t,e,n):Ya(t,e,n);if(n.code!=="EISDIR")throw n;Ya(t,e,n)}}function Ya(t,e,r){_e(t),_e(e),r&&_e(r instanceof Error);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")JL(t,e);else if(n.code!=="ENOENT")throw n}}function JL(t,e){if(_e(t),_e(e),e.readdirSync(t).forEach(r=>nv(tv.join(t,r),e)),Ro){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}iv.exports=rh;rh.sync=nv});var Co=y((hz,av)=>{"use strict";l();var XL=vt().fromCallback,ov=sv();av.exports={remove:XL(ov),removeSync:ov.sync}});var mv=y((dz,pv)=>{"use strict";l();var QL=vt().fromCallback,lv=je(),fv=require("path"),hv=Pt(),dv=Co(),cv=QL(function(e,r){r=r||function(){},lv.readdir(e,(n,i)=>{if(n)return hv.mkdirs(e,r);i=i.map(o=>fv.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();dv.remove(o,a=>{if(a)return r(a);s()})}})});function uv(t){let e;try{e=lv.readdirSync(t)}catch{return hv.mkdirsSync(t)}e.forEach(r=>{r=fv.join(t,r),dv.removeSync(r)})}pv.exports={emptyDirSync:uv,emptydirSync:uv,emptyDir:cv,emptydir:cv}});var vv=y((pz,_v)=>{"use strict";l();var eN=vt().fromCallback,gv=require("path"),Oo=je(),yv=Pt(),tN=gr().pathExists;function rN(t,e){function r(){Oo.writeFile(t,"",n=>{if(n)return e(n);e()})}Oo.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=gv.dirname(t);tN(s,(o,a)=>{if(o)return e(o);if(a)return r();yv.mkdirs(s,c=>{if(c)return e(c);r()})})})}function nN(t){let e;try{e=Oo.statSync(t)}catch{}if(e&&e.isFile())return;let r=gv.dirname(t);Oo.existsSync(r)||yv.mkdirsSync(r),Oo.writeFileSync(t,"")}_v.exports={createFile:eN(rN),createFileSync:nN}});var Sv=y((mz,xv)=>{"use strict";l();var iN=vt().fromCallback,Ev=require("path"),Jn=je(),wv=Pt(),bv=gr().pathExists;function sN(t,e,r){function n(i,s){Jn.link(i,s,o=>{if(o)return r(o);r(null)})}bv(e,(i,s)=>{if(i)return r(i);if(s)return r(null);Jn.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=Ev.dirname(e);bv(a,(c,u)=>{if(c)return r(c);if(u)return n(t,e);wv.mkdirs(a,f=>{if(f)return r(f);n(t,e)})})})})}function oN(t,e){if(Jn.existsSync(e))return;try{Jn.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=Ev.dirname(e);return Jn.existsSync(n)||wv.mkdirsSync(n),Jn.linkSync(t,e)}xv.exports={createLink:iN(sN),createLinkSync:oN}});var Rv=y((gz,Av)=>{"use strict";l();var pn=require("path"),To=je(),aN=gr().pathExists;function cN(t,e,r){if(pn.isAbsolute(t))return To.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=pn.dirname(e),i=pn.join(n,t);return aN(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):To.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:pn.relative(n,t)})))}}function uN(t,e){let r;if(pn.isAbsolute(t)){if(r=To.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=pn.dirname(e),i=pn.join(n,t);if(r=To.existsSync(i),r)return{toCwd:i,toDst:t};if(r=To.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:pn.relative(n,t)}}}Av.exports={symlinkPaths:cN,symlinkPathsSync:uN}});var Tv=y((yz,Ov)=>{"use strict";l();var Cv=je();function lN(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);Cv.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function fN(t,e){let r;if(e)return e;try{r=Cv.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Ov.exports={symlinkType:lN,symlinkTypeSync:fN}});var Mv=y((_z,Dv)=>{"use strict";l();var hN=vt().fromCallback,Pv=require("path"),Bi=je(),Iv=Pt(),dN=Iv.mkdirs,pN=Iv.mkdirsSync,Lv=Rv(),mN=Lv.symlinkPaths,gN=Lv.symlinkPathsSync,Nv=Tv(),yN=Nv.symlinkType,_N=Nv.symlinkTypeSync,kv=gr().pathExists;function vN(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,kv(e,(i,s)=>{if(i)return n(i);if(s)return n(null);mN(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,yN(a.toCwd,r,(c,u)=>{if(c)return n(c);let f=Pv.dirname(e);kv(f,(h,d)=>{if(h)return n(h);if(d)return Bi.symlink(t,e,u,n);dN(f,g=>{if(g)return n(g);Bi.symlink(t,e,u,n)})})})})})}function bN(t,e,r){if(Bi.existsSync(e))return;let i=gN(t,e);t=i.toDst,r=_N(i.toCwd,r);let s=Pv.dirname(e);return Bi.existsSync(s)||pN(s),Bi.symlinkSync(t,e,r)}Dv.exports={createSymlink:hN(vN),createSymlinkSync:bN}});var qv=y((vz,Fv)=>{"use strict";l();var Ka=vv(),Za=Sv(),Ja=Mv();Fv.exports={createFile:Ka.createFile,createFileSync:Ka.createFileSync,ensureFile:Ka.createFile,ensureFileSync:Ka.createFileSync,createLink:Za.createLink,createLinkSync:Za.createLinkSync,ensureLink:Za.createLink,ensureLinkSync:Za.createLinkSync,createSymlink:Ja.createSymlink,createSymlinkSync:Ja.createSymlinkSync,ensureSymlink:Ja.createSymlink,ensureSymlinkSync:Ja.createSymlinkSync}});var $v=y((bz,Hv)=>{l();var ji;try{ji=je()}catch{ji=require("fs")}function EN(t,e,r){r==null&&(r=e,e={}),typeof e=="string"&&(e={encoding:e}),e=e||{};var n=e.fs||ji,i=!0;"throws"in e&&(i=e.throws),n.readFile(t,e,function(s,o){if(s)return r(s);o=jv(o);var a;try{a=JSON.parse(o,e?e.reviver:null)}catch(c){return i?(c.message=t+": "+c.message,r(c)):r(null,null)}r(null,a)})}function wN(t,e){e=e||{},typeof e=="string"&&(e={encoding:e});var r=e.fs||ji,n=!0;"throws"in e&&(n=e.throws);try{var i=r.readFileSync(t,e);return i=jv(i),JSON.parse(i,e.reviver)}catch(s){if(n)throw s.message=t+": "+s.message,s;return null}}function Bv(t,e){var r,n=`
|
|
28
|
+
`;typeof e=="object"&&e!==null&&(e.spaces&&(r=e.spaces),e.EOL&&(n=e.EOL));var i=JSON.stringify(t,e?e.replacer:null,r);return i.replace(/\n/g,n)+n}function xN(t,e,r,n){n==null&&(n=r,r={}),r=r||{};var i=r.fs||ji,s="";try{s=Bv(e,r)}catch(o){n&&n(o,null);return}i.writeFile(t,s,r,n)}function SN(t,e,r){r=r||{};var n=r.fs||ji,i=Bv(e,r);return n.writeFileSync(t,i,r)}function jv(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,""),t}var AN={readFile:EN,readFileSync:wN,writeFile:xN,writeFileSync:SN};Hv.exports=AN});var Qa=y((Ez,Gv)=>{"use strict";l();var Uv=vt().fromCallback,Xa=$v();Gv.exports={readJson:Uv(Xa.readFile),readJsonSync:Xa.readFileSync,writeJson:Uv(Xa.writeFile),writeJsonSync:Xa.writeFileSync}});var zv=y((wz,Wv)=>{"use strict";l();var RN=require("path"),CN=Pt(),ON=gr().pathExists,Vv=Qa();function TN(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=RN.dirname(t);ON(i,(s,o)=>{if(s)return n(s);if(o)return Vv.writeJson(t,e,r,n);CN.mkdirs(i,a=>{if(a)return n(a);Vv.writeJson(t,e,r,n)})})}Wv.exports=TN});var Kv=y((xz,Yv)=>{"use strict";l();var kN=je(),PN=require("path"),IN=Pt(),LN=Qa();function NN(t,e,r){let n=PN.dirname(t);kN.existsSync(n)||IN.mkdirsSync(n),LN.writeJsonSync(t,e,r)}Yv.exports=NN});var Jv=y((Sz,Zv)=>{"use strict";l();var DN=vt().fromCallback,mt=Qa();mt.outputJson=DN(zv());mt.outputJsonSync=Kv();mt.outputJSON=mt.outputJson;mt.outputJSONSync=mt.outputJsonSync;mt.writeJSON=mt.writeJson;mt.writeJSONSync=mt.writeJsonSync;mt.readJSON=mt.readJson;mt.readJSONSync=mt.readJsonSync;Zv.exports=mt});var nb=y((Az,rb)=>{"use strict";l();var eb=je(),MN=require("path"),FN=Qf().copySync,tb=Co().removeSync,qN=Pt().mkdirpSync,Xv=Eo();function BN(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=Xv.checkPathsSync(t,e,"move");return Xv.checkParentPathsSync(t,i,e,"move"),qN(MN.dirname(e)),jN(t,e,n)}function jN(t,e,r){if(r)return tb(e),Qv(t,e,r);if(eb.existsSync(e))throw new Error("dest already exists.");return Qv(t,e,r)}function Qv(t,e,r){try{eb.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return HN(t,e,r)}}function HN(t,e,r){return FN(t,e,{overwrite:r,errorOnExist:!0}),tb(t)}rb.exports=BN});var sb=y((Rz,ib)=>{"use strict";l();ib.exports={moveSync:nb()}});var lb=y((Cz,ub)=>{"use strict";l();var $N=je(),UN=require("path"),GN=th().copy,cb=Co().remove,VN=Pt().mkdirp,WN=gr().pathExists,ob=Eo();function zN(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;ob.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;ob.checkParentPaths(t,a,e,"move",c=>{if(c)return n(c);VN(UN.dirname(e),u=>u?n(u):YN(t,e,i,n))})})}function YN(t,e,r,n){if(r)return cb(e,i=>i?n(i):ab(t,e,r,n));WN(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):ab(t,e,r,n))}function ab(t,e,r,n){$N.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):KN(t,e,r,n):n())}function KN(t,e,r,n){GN(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):cb(t,n))}ub.exports=zN});var hb=y((Oz,fb)=>{"use strict";l();var ZN=vt().fromCallback;fb.exports={move:ZN(lb())}});var gb=y((Tz,mb)=>{"use strict";l();var JN=vt().fromCallback,ko=je(),db=require("path"),pb=Pt(),XN=gr().pathExists;function QN(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=db.dirname(t);XN(i,(s,o)=>{if(s)return n(s);if(o)return ko.writeFile(t,e,r,n);pb.mkdirs(i,a=>{if(a)return n(a);ko.writeFile(t,e,r,n)})})}function e5(t,...e){let r=db.dirname(t);if(ko.existsSync(r))return ko.writeFileSync(t,...e);pb.mkdirsSync(r),ko.writeFileSync(t,...e)}mb.exports={outputFile:JN(QN),outputFileSync:e5}});var _b=y((kz,nh)=>{"use strict";l();nh.exports=Object.assign({},jf(),Qf(),th(),mv(),qv(),Jv(),Pt(),sb(),hb(),gb(),gr(),Co());var yb=require("fs");Object.getOwnPropertyDescriptor(yb,"promises")&&Object.defineProperty(nh.exports,"promises",{get(){return yb.promises}})});var aE=y(Vi=>{"use strict";l();Object.defineProperty(Vi,"__esModule",{value:!0});Vi.splitWhen=Vi.flatten=void 0;function TM(t){return t.reduce((e,r)=>[].concat(e,r),[])}Vi.flatten=TM;function kM(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}Vi.splitWhen=kM});var cE=y(uc=>{"use strict";l();Object.defineProperty(uc,"__esModule",{value:!0});uc.isEnoentCodeError=void 0;function PM(t){return t.code==="ENOENT"}uc.isEnoentCodeError=PM});var uE=y(lc=>{"use strict";l();Object.defineProperty(lc,"__esModule",{value:!0});lc.createDirentFromStats=void 0;var Eh=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function IM(t,e){return new Eh(t,e)}lc.createDirentFromStats=IM});var lE=y(_r=>{"use strict";l();Object.defineProperty(_r,"__esModule",{value:!0});_r.removeLeadingDotSegment=_r.escape=_r.makeAbsolute=_r.unixify=void 0;var LM=require("path"),NM=2,DM=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function MM(t){return t.replace(/\\/g,"/")}_r.unixify=MM;function FM(t,e){return LM.resolve(t,e)}_r.makeAbsolute=FM;function qM(t){return t.replace(DM,"\\$2")}_r.escape=qM;function BM(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(NM)}return t}_r.removeLeadingDotSegment=BM});var hE=y((eY,fE)=>{l();fE.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var mE=y((tY,pE)=>{l();var jM=hE(),dE={"{":"}","(":")","[":"]"},HM=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var c=dE[a];if(c){var u=t.indexOf(c,e);u!==-1&&(e=u+1)}if(t[e]==="!")return!0}else e++}return!1},$M=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=dE[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};pE.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(jM(e))return!0;var n=HM;return r&&r.strict===!1&&(n=$M),n(e)}});var yE=y((rY,gE)=>{"use strict";l();var UM=mE(),GM=require("path").posix.dirname,VM=require("os").platform()==="win32",wh="/",WM=/\\/g,zM=/[\{\[].*[\}\]]$/,YM=/(^|[^\\])([\{\[]|\([^\)]+$)/,KM=/\\([\!\*\?\|\[\]\(\)\{\}])/g;gE.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&VM&&e.indexOf(wh)<0&&(e=e.replace(WM,wh)),zM.test(e)&&(e+=wh),e+="a";do e=GM(e);while(UM(e)||YM.test(e));return e.replace(KM,"$1")}});var fc=y(Wt=>{"use strict";l();Wt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Wt.find=(t,e)=>t.nodes.find(r=>r.type===e);Wt.exceedsLimit=(t,e,r=1,n)=>n===!1||!Wt.isInteger(t)||!Wt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;Wt.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Wt.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;Wt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Wt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Wt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Wt.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var hc=y((iY,vE)=>{"use strict";l();var _E=fc();vE.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&_E.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&_E.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)a+=r(c);return a};return r(t)}});var EE=y((sY,bE)=>{"use strict";l();bE.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var kE=y((oY,TE)=>{"use strict";l();var wE=EE(),ei=(t,e,r)=>{if(wE(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(wE(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),c=t+":"+e+"="+i+s+o+a;if(ei.cache.hasOwnProperty(c))return ei.cache[c].result;let u=Math.min(t,e),f=Math.max(t,e);if(Math.abs(u-f)===1){let E=t+"|"+e;return n.capture?`(${E})`:n.wrap===!1?E:`(?:${E})`}let h=OE(t)||OE(e),d={min:t,max:e,a:u,b:f},g=[],m=[];if(h&&(d.isPadded=h,d.maxLen=String(d.max).length),u<0){let E=f<0?Math.abs(f):1;m=xE(E,Math.abs(u),d,n),u=d.a=0}return f>=0&&(g=xE(u,f,d,n)),d.negatives=m,d.positives=g,d.result=ZM(m,g,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&g.length+m.length>1&&(d.result=`(?:${d.result})`),ei.cache[c]=d,d.result};function ZM(t,e,r){let n=xh(t,e,"-",!1,r)||[],i=xh(e,t,"",!1,r)||[],s=xh(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function JM(t,e){let r=1,n=1,i=AE(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=AE(t,r);for(i=RE(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=RE(e+1,n)-1;return s=[...s],s.sort(eF),s}function XM(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=QM(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[c,u]=n[a];c===u?s+=c:c!=="0"||u!=="9"?s+=tF(c,u,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function xE(t,e,r,n){let i=JM(t,e),s=[],o=t,a;for(let c=0;c<i.length;c++){let u=i[c],f=XM(String(o),String(u),n),h="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+CE(a.count),o=u+1;continue}r.isPadded&&(h=rF(u,r,n)),f.string=h+f.pattern+CE(f.count),s.push(f),o=u+1,a=f}return s}function xh(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!SE(e,"string",a)&&s.push(r+a),n&&SE(e,"string",a)&&s.push(r+a)}return s}function QM(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function eF(t,e){return t>e?1:e>t?-1:0}function SE(t,e,r){return t.some(n=>n[e]===r)}function AE(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function RE(t,e){return t-t%Math.pow(10,e)}function CE(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function tF(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function OE(t){return/^-?(0+)\d/.test(t)}function rF(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}ei.cache={};ei.clearCache=()=>ei.cache={};TE.exports=ei});var Rh=y((aY,qE)=>{"use strict";l();var nF=require("util"),LE=kE(),PE=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),iF=t=>e=>t===!0?Number(e):String(e),Sh=t=>typeof t=="number"||typeof t=="string"&&t!=="",Fo=t=>Number.isInteger(+t),Ah=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},sF=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,oF=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},IE=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},aF=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",i="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,e.wrap?`(${r}${s})`:s},NE=(t,e,r,n)=>{if(r)return LE(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},DE=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return LE(t,e,r)},ME=(...t)=>new RangeError("Invalid range arguments: "+nF.inspect(...t)),FE=(t,e,r)=>{if(r.strictRanges===!0)throw ME([t,e]);return[]},cF=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},uF=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw ME([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),c=String(e),u=String(r);r=Math.max(Math.abs(r),1);let f=Ah(a)||Ah(c)||Ah(u),h=f?Math.max(a.length,c.length,u.length):0,d=f===!1&&sF(t,e,n)===!1,g=n.transform||iF(d);if(n.toRegex&&r===1)return NE(IE(t,h),IE(e,h),!0,n);let m={negatives:[],positives:[]},E=P=>m[P<0?"negatives":"positives"].push(Math.abs(P)),v=[],A=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?E(i):v.push(oF(g(i,A),h,d)),i=o?i-r:i+r,A++;return n.toRegex===!0?r>1?aF(m,n):DE(v,null,{wrap:!1,...n}):v},lF=(t,e,r=1,n={})=>{if(!Fo(t)&&t.length>1||!Fo(e)&&e.length>1)return FE(t,e,n);let i=n.transform||(d=>String.fromCharCode(d)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,c=Math.min(s,o),u=Math.max(s,o);if(n.toRegex&&r===1)return NE(c,u,!1,n);let f=[],h=0;for(;a?s>=o:s<=o;)f.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?DE(f,null,{wrap:!1,options:n}):f},dc=(t,e,r,n={})=>{if(e==null&&Sh(t))return[t];if(!Sh(t)||!Sh(e))return FE(t,e,n);if(typeof r=="function")return dc(t,e,1,{transform:r});if(PE(r))return dc(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Fo(r)?Fo(t)&&Fo(e)?uF(t,e,r,i):lF(t,e,Math.max(Math.abs(r),1),i):r!=null&&!PE(r)?cF(r,i):dc(t,e,1,r)};qE.exports=dc});var HE=y((cY,jE)=>{"use strict";l();var fF=Rh(),BE=fc(),hF=(t,e={})=>{let r=(n,i={})=>{let s=BE.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,c=e.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0||n.isClose===!0)return c+n.value;if(n.type==="open")return a?c+n.value:"(";if(n.type==="close")return a?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=BE.reduce(n.nodes),h=fF(...f,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return f.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let f of n.nodes)u+=r(f,n);return u};return r(t)};jE.exports=hF});var GE=y((uY,UE)=>{"use strict";l();var dF=Rh(),$E=hc(),Wi=fc(),ti=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Wi.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(ti(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?ti(i,s,r):i+s);return Wi.flatten(n)},pF=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(ti(a.pop(),$E(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(ti(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=Wi.reduce(i.nodes);if(Wi.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=dF(...h,e);d.length===0&&(d=$E(i,e)),a.push(ti(a.pop(),d)),i.nodes=[];return}let c=Wi.encloseBrace(i),u=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=f.queue;for(let h=0;h<i.nodes.length;h++){let d=i.nodes[h];if(d.type==="comma"&&i.type==="brace"){h===1&&u.push(""),u.push("");continue}if(d.type==="close"){a.push(ti(a.pop(),u,c));continue}if(d.value&&d.type!=="open"){u.push(ti(u.pop(),d.value));continue}d.nodes&&n(d,i)}return u};return Wi.flatten(n(t))};UE.exports=pF});var WE=y((lY,VE)=>{"use strict";l();VE.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
29
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var JE=y((fY,ZE)=>{"use strict";l();var mF=hc(),{MAX_LENGTH:zE,CHAR_BACKSLASH:Ch,CHAR_BACKTICK:gF,CHAR_COMMA:yF,CHAR_DOT:_F,CHAR_LEFT_PARENTHESES:vF,CHAR_RIGHT_PARENTHESES:bF,CHAR_LEFT_CURLY_BRACE:EF,CHAR_RIGHT_CURLY_BRACE:wF,CHAR_LEFT_SQUARE_BRACKET:YE,CHAR_RIGHT_SQUARE_BRACKET:KE,CHAR_DOUBLE_QUOTE:xF,CHAR_SINGLE_QUOTE:SF,CHAR_NO_BREAK_SPACE:AF,CHAR_ZERO_WIDTH_NOBREAK_SPACE:RF}=WE(),CF=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(zE,r.maxLength):zE;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,c=0,u=t.length,f=0,h=0,d,g={},m=()=>t[f++],E=v=>{if(v.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&v.type==="text"){a.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=a,a=v,v};for(E({type:"bos"});f<u;)if(o=s[s.length-1],d=m(),!(d===RF||d===AF)){if(d===Ch){E({type:"text",value:(e.keepEscaping?d:"")+m()});continue}if(d===KE){E({type:"text",value:"\\"+d});continue}if(d===YE){c++;let v=!0,A;for(;f<u&&(A=m());){if(d+=A,A===YE){c++;continue}if(A===Ch){d+=m();continue}if(A===KE&&(c--,c===0))break}E({type:"text",value:d});continue}if(d===vF){o=E({type:"paren",nodes:[]}),s.push(o),E({type:"text",value:d});continue}if(d===bF){if(o.type!=="paren"){E({type:"text",value:d});continue}o=s.pop(),E({type:"text",value:d}),o=s[s.length-1];continue}if(d===xF||d===SF||d===gF){let v=d,A;for(e.keepQuotes!==!0&&(d="");f<u&&(A=m());){if(A===Ch){d+=A+m();continue}if(A===v){e.keepQuotes===!0&&(d+=A);break}d+=A}E({type:"text",value:d});continue}if(d===EF){h++;let v=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=E({type:"brace",open:!0,close:!1,dollar:v,depth:h,commas:0,ranges:0,nodes:[]}),s.push(o),E({type:"open",value:d});continue}if(d===wF){if(o.type!=="brace"){E({type:"text",value:d});continue}let v="close";o=s.pop(),o.close=!0,E({type:v,value:d}),h--,o=s[s.length-1];continue}if(d===yF&&h>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:mF(o)}]}E({type:"comma",value:d}),o.commas++;continue}if(d===_F&&h>0&&o.commas===0){let v=o.nodes;if(h===0||v.length===0){E({type:"text",value:d});continue}if(a.type==="dot"){if(o.range=[],a.value+=d,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){v.pop();let A=v[v.length-1];A.value+=a.value+d,a=A,o.ranges--;continue}E({type:"dot",value:d});continue}E({type:"text",value:d})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});let v=s[s.length-1],A=v.nodes.indexOf(o);v.nodes.splice(A,1,...o.nodes)}while(s.length>0);return E({type:"eos"}),i};ZE.exports=CF});var ew=y((hY,QE)=>{"use strict";l();var XE=hc(),OF=HE(),TF=GE(),kF=JE(),It=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=It.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(It.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};It.parse=(t,e={})=>kF(t,e);It.stringify=(t,e={})=>XE(typeof t=="string"?It.parse(t,e):t,e);It.compile=(t,e={})=>(typeof t=="string"&&(t=It.parse(t,e)),OF(t,e));It.expand=(t,e={})=>{typeof t=="string"&&(t=It.parse(t,e));let r=TF(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};It.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?It.compile(t,e):It.expand(t,e);QE.exports=It});var qo=y((dY,sw)=>{"use strict";l();var PF=require("path"),vr="\\\\/",tw=`[^${vr}]`,$r="\\.",IF="\\+",LF="\\?",pc="\\/",NF="(?=.)",rw="[^/]",Oh=`(?:${pc}|$)`,nw=`(?:^|${pc})`,Th=`${$r}{1,2}${Oh}`,DF=`(?!${$r})`,MF=`(?!${nw}${Th})`,FF=`(?!${$r}{0,1}${Oh})`,qF=`(?!${Th})`,BF=`[^.${pc}]`,jF=`${rw}*?`,iw={DOT_LITERAL:$r,PLUS_LITERAL:IF,QMARK_LITERAL:LF,SLASH_LITERAL:pc,ONE_CHAR:NF,QMARK:rw,END_ANCHOR:Oh,DOTS_SLASH:Th,NO_DOT:DF,NO_DOTS:MF,NO_DOT_SLASH:FF,NO_DOTS_SLASH:qF,QMARK_NO_DOT:BF,STAR:jF,START_ANCHOR:nw},HF={...iw,SLASH_LITERAL:`[${vr}]`,QMARK:tw,STAR:`${tw}*?`,DOTS_SLASH:`${$r}{1,2}(?:[${vr}]|$)`,NO_DOT:`(?!${$r})`,NO_DOTS:`(?!(?:^|[${vr}])${$r}{1,2}(?:[${vr}]|$))`,NO_DOT_SLASH:`(?!${$r}{0,1}(?:[${vr}]|$))`,NO_DOTS_SLASH:`(?!${$r}{1,2}(?:[${vr}]|$))`,QMARK_NO_DOT:`[^.${vr}]`,START_ANCHOR:`(?:^|[${vr}])`,END_ANCHOR:`(?:[${vr}]|$)`},$F={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};sw.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:$F,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:PF.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?HF:iw}}});var Bo=y(xt=>{"use strict";l();var UF=require("path"),GF=process.platform==="win32",{REGEX_BACKSLASH:VF,REGEX_REMOVE_BACKSLASH:WF,REGEX_SPECIAL_CHARS:zF,REGEX_SPECIAL_CHARS_GLOBAL:YF}=qo();xt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);xt.hasRegexChars=t=>zF.test(t);xt.isRegexChar=t=>t.length===1&&xt.hasRegexChars(t);xt.escapeRegex=t=>t.replace(YF,"\\$1");xt.toPosixSlashes=t=>t.replace(VF,"/");xt.removeBackslashes=t=>t.replace(WF,e=>e==="\\"?"":e);xt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};xt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:GF===!0||UF.sep==="\\";xt.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?xt.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};xt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};xt.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var dw=y((mY,hw)=>{"use strict";l();var ow=Bo(),{CHAR_ASTERISK:kh,CHAR_AT:KF,CHAR_BACKWARD_SLASH:jo,CHAR_COMMA:ZF,CHAR_DOT:Ph,CHAR_EXCLAMATION_MARK:Ih,CHAR_FORWARD_SLASH:fw,CHAR_LEFT_CURLY_BRACE:Lh,CHAR_LEFT_PARENTHESES:Nh,CHAR_LEFT_SQUARE_BRACKET:JF,CHAR_PLUS:XF,CHAR_QUESTION_MARK:aw,CHAR_RIGHT_CURLY_BRACE:QF,CHAR_RIGHT_PARENTHESES:cw,CHAR_RIGHT_SQUARE_BRACKET:eq}=qo(),uw=t=>t===fw||t===jo,lw=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},tq=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],c=t,u=-1,f=0,h=0,d=!1,g=!1,m=!1,E=!1,v=!1,A=!1,P=!1,D=!1,ie=!1,z=!1,ue=0,K,Z,F={value:"",depth:0,isGlob:!1},Q=()=>u>=n,C=()=>c.charCodeAt(u+1),ne=()=>(K=Z,c.charCodeAt(++u));for(;u<n;){Z=ne();let T;if(Z===jo){P=F.backslashes=!0,Z=ne(),Z===Lh&&(A=!0);continue}if(A===!0||Z===Lh){for(ue++;Q()!==!0&&(Z=ne());){if(Z===jo){P=F.backslashes=!0,ne();continue}if(Z===Lh){ue++;continue}if(A!==!0&&Z===Ph&&(Z=ne())===Ph){if(d=F.isBrace=!0,m=F.isGlob=!0,z=!0,i===!0)continue;break}if(A!==!0&&Z===ZF){if(d=F.isBrace=!0,m=F.isGlob=!0,z=!0,i===!0)continue;break}if(Z===QF&&(ue--,ue===0)){A=!1,d=F.isBrace=!0,z=!0;break}}if(i===!0)continue;break}if(Z===fw){if(s.push(u),o.push(F),F={value:"",depth:0,isGlob:!1},z===!0)continue;if(K===Ph&&u===f+1){f+=2;continue}h=u+1;continue}if(r.noext!==!0&&(Z===XF||Z===KF||Z===kh||Z===aw||Z===Ih)===!0&&C()===Nh){if(m=F.isGlob=!0,E=F.isExtglob=!0,z=!0,Z===Ih&&u===f&&(ie=!0),i===!0){for(;Q()!==!0&&(Z=ne());){if(Z===jo){P=F.backslashes=!0,Z=ne();continue}if(Z===cw){m=F.isGlob=!0,z=!0;break}}continue}break}if(Z===kh){if(K===kh&&(v=F.isGlobstar=!0),m=F.isGlob=!0,z=!0,i===!0)continue;break}if(Z===aw){if(m=F.isGlob=!0,z=!0,i===!0)continue;break}if(Z===JF){for(;Q()!==!0&&(T=ne());){if(T===jo){P=F.backslashes=!0,ne();continue}if(T===eq){g=F.isBracket=!0,m=F.isGlob=!0,z=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&Z===Ih&&u===f){D=F.negated=!0,f++;continue}if(r.noparen!==!0&&Z===Nh){if(m=F.isGlob=!0,i===!0){for(;Q()!==!0&&(Z=ne());){if(Z===Nh){P=F.backslashes=!0,Z=ne();continue}if(Z===cw){z=!0;break}}continue}break}if(m===!0){if(z=!0,i===!0)continue;break}}r.noext===!0&&(E=!1,m=!1);let ee=c,fe="",R="";f>0&&(fe=c.slice(0,f),c=c.slice(f),h-=f),ee&&m===!0&&h>0?(ee=c.slice(0,h),R=c.slice(h)):m===!0?(ee="",R=c):ee=c,ee&&ee!==""&&ee!=="/"&&ee!==c&&uw(ee.charCodeAt(ee.length-1))&&(ee=ee.slice(0,-1)),r.unescape===!0&&(R&&(R=ow.removeBackslashes(R)),ee&&P===!0&&(ee=ow.removeBackslashes(ee)));let x={prefix:fe,input:t,start:f,base:ee,glob:R,isBrace:d,isBracket:g,isGlob:m,isExtglob:E,isGlobstar:v,negated:D,negatedExtglob:ie};if(r.tokens===!0&&(x.maxDepth=0,uw(Z)||o.push(F),x.tokens=o),r.parts===!0||r.tokens===!0){let T;for(let k=0;k<s.length;k++){let I=T?T+1:f,Y=s[k],j=t.slice(I,Y);r.tokens&&(k===0&&f!==0?(o[k].isPrefix=!0,o[k].value=fe):o[k].value=j,lw(o[k]),x.maxDepth+=o[k].depth),(k!==0||j!=="")&&a.push(j),T=Y}if(T&&T+1<t.length){let k=t.slice(T+1);a.push(k),r.tokens&&(o[o.length-1].value=k,lw(o[o.length-1]),x.maxDepth+=o[o.length-1].depth)}x.slashes=s,x.parts=a}return x};hw.exports=tq});var gw=y((gY,mw)=>{"use strict";l();var mc=qo(),Lt=Bo(),{MAX_LENGTH:gc,POSIX_REGEX_SOURCE:rq,REGEX_NON_SPECIAL_CHARS:nq,REGEX_SPECIAL_CHARS_BACKREF:iq,REPLACEMENTS:pw}=mc,sq=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>Lt.escapeRegex(i)).join("..")}return r},zi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Dh=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=pw[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(gc,r.maxLength):gc,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",c=Lt.isWindows(e),u=mc.globChars(c),f=mc.extglobChars(u),{DOT_LITERAL:h,PLUS_LITERAL:d,SLASH_LITERAL:g,ONE_CHAR:m,DOTS_SLASH:E,NO_DOT:v,NO_DOT_SLASH:A,NO_DOTS_SLASH:P,QMARK:D,QMARK_NO_DOT:ie,STAR:z,START_ANCHOR:ue}=u,K=B=>`(${a}(?:(?!${ue}${B.dot?E:h}).)*?)`,Z=r.dot?"":v,F=r.dot?D:ie,Q=r.bash===!0?K(r):z;r.capture&&(Q=`(${Q})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let C={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Lt.removePrefix(t,C),i=t.length;let ne=[],ee=[],fe=[],R=s,x,T=()=>C.index===i-1,k=C.peek=(B=1)=>t[C.index+B],I=C.advance=()=>t[++C.index]||"",Y=()=>t.slice(C.index+1),j=(B="",Ee=0)=>{C.consumed+=B,C.index+=Ee},ve=B=>{C.output+=B.output!=null?B.output:B.value,j(B.value)},Ue=()=>{let B=1;for(;k()==="!"&&(k(2)!=="("||k(3)==="?");)I(),C.start++,B++;return B%2===0?!1:(C.negated=!0,C.start++,!0)},ge=B=>{C[B]++,fe.push(B)},De=B=>{C[B]--,fe.pop()},re=B=>{if(R.type==="globstar"){let Ee=C.braces>0&&(B.type==="comma"||B.type==="brace"),q=B.extglob===!0||ne.length&&(B.type==="pipe"||B.type==="paren");B.type!=="slash"&&B.type!=="paren"&&!Ee&&!q&&(C.output=C.output.slice(0,-R.output.length),R.type="star",R.value="*",R.output=Q,C.output+=R.output)}if(ne.length&&B.type!=="paren"&&(ne[ne.length-1].inner+=B.value),(B.value||B.output)&&ve(B),R&&R.type==="text"&&B.type==="text"){R.value+=B.value,R.output=(R.output||"")+B.value;return}B.prev=R,o.push(B),R=B},pt=(B,Ee)=>{let q={...f[Ee],conditions:1,inner:""};q.prev=R,q.parens=C.parens,q.output=C.output;let _=(r.capture?"(":"")+q.open;ge("parens"),re({type:B,value:Ee,output:C.output?"":m}),re({type:"paren",extglob:!0,value:I(),output:_}),ne.push(q)},kt=B=>{let Ee=B.close+(r.capture?")":""),q;if(B.type==="negate"){let _=Q;if(B.inner&&B.inner.length>1&&B.inner.includes("/")&&(_=K(r)),(_!==Q||T()||/^\)+$/.test(Y()))&&(Ee=B.close=`)$))${_}`),B.inner.includes("*")&&(q=Y())&&/^\.[^\\/.]+$/.test(q)){let S=Dh(q,{...e,fastpaths:!1}).output;Ee=B.close=`)${S})${_})`}B.prev.type==="bos"&&(C.negatedExtglob=!0)}re({type:"paren",extglob:!0,value:x,output:Ee}),De("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let B=!1,Ee=t.replace(iq,(q,_,S,b,L,$)=>b==="\\"?(B=!0,q):b==="?"?_?_+b+(L?D.repeat(L.length):""):$===0?F+(L?D.repeat(L.length):""):D.repeat(S.length):b==="."?h.repeat(S.length):b==="*"?_?_+b+(L?Q:""):Q:_?q:`\\${q}`);return B===!0&&(r.unescape===!0?Ee=Ee.replace(/\\/g,""):Ee=Ee.replace(/\\+/g,q=>q.length%2===0?"\\\\":q?"\\":"")),Ee===t&&r.contains===!0?(C.output=t,C):(C.output=Lt.wrapOutput(Ee,C,e),C)}for(;!T();){if(x=I(),x==="\0")continue;if(x==="\\"){let q=k();if(q==="/"&&r.bash!==!0||q==="."||q===";")continue;if(!q){x+="\\",re({type:"text",value:x});continue}let _=/^\\+/.exec(Y()),S=0;if(_&&_[0].length>2&&(S=_[0].length,C.index+=S,S%2!==0&&(x+="\\")),r.unescape===!0?x=I():x+=I(),C.brackets===0){re({type:"text",value:x});continue}}if(C.brackets>0&&(x!=="]"||R.value==="["||R.value==="[^")){if(r.posix!==!1&&x===":"){let q=R.value.slice(1);if(q.includes("[")&&(R.posix=!0,q.includes(":"))){let _=R.value.lastIndexOf("["),S=R.value.slice(0,_),b=R.value.slice(_+2),L=rq[b];if(L){R.value=S+L,C.backtrack=!0,I(),!s.output&&o.indexOf(R)===1&&(s.output=m);continue}}}(x==="["&&k()!==":"||x==="-"&&k()==="]")&&(x=`\\${x}`),x==="]"&&(R.value==="["||R.value==="[^")&&(x=`\\${x}`),r.posix===!0&&x==="!"&&R.value==="["&&(x="^"),R.value+=x,ve({value:x});continue}if(C.quotes===1&&x!=='"'){x=Lt.escapeRegex(x),R.value+=x,ve({value:x});continue}if(x==='"'){C.quotes=C.quotes===1?0:1,r.keepQuotes===!0&&re({type:"text",value:x});continue}if(x==="("){ge("parens"),re({type:"paren",value:x});continue}if(x===")"){if(C.parens===0&&r.strictBrackets===!0)throw new SyntaxError(zi("opening","("));let q=ne[ne.length-1];if(q&&C.parens===q.parens+1){kt(ne.pop());continue}re({type:"paren",value:x,output:C.parens?")":"\\)"}),De("parens");continue}if(x==="["){if(r.nobracket===!0||!Y().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(zi("closing","]"));x=`\\${x}`}else ge("brackets");re({type:"bracket",value:x});continue}if(x==="]"){if(r.nobracket===!0||R&&R.type==="bracket"&&R.value.length===1){re({type:"text",value:x,output:`\\${x}`});continue}if(C.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(zi("opening","["));re({type:"text",value:x,output:`\\${x}`});continue}De("brackets");let q=R.value.slice(1);if(R.posix!==!0&&q[0]==="^"&&!q.includes("/")&&(x=`/${x}`),R.value+=x,ve({value:x}),r.literalBrackets===!1||Lt.hasRegexChars(q))continue;let _=Lt.escapeRegex(R.value);if(C.output=C.output.slice(0,-R.value.length),r.literalBrackets===!0){C.output+=_,R.value=_;continue}R.value=`(${a}${_}|${R.value})`,C.output+=R.value;continue}if(x==="{"&&r.nobrace!==!0){ge("braces");let q={type:"brace",value:x,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};ee.push(q),re(q);continue}if(x==="}"){let q=ee[ee.length-1];if(r.nobrace===!0||!q){re({type:"text",value:x,output:x});continue}let _=")";if(q.dots===!0){let S=o.slice(),b=[];for(let L=S.length-1;L>=0&&(o.pop(),S[L].type!=="brace");L--)S[L].type!=="dots"&&b.unshift(S[L].value);_=sq(b,r),C.backtrack=!0}if(q.comma!==!0&&q.dots!==!0){let S=C.output.slice(0,q.outputIndex),b=C.tokens.slice(q.tokensIndex);q.value=q.output="\\{",x=_="\\}",C.output=S;for(let L of b)C.output+=L.output||L.value}re({type:"brace",value:x,output:_}),De("braces"),ee.pop();continue}if(x==="|"){ne.length>0&&ne[ne.length-1].conditions++,re({type:"text",value:x});continue}if(x===","){let q=x,_=ee[ee.length-1];_&&fe[fe.length-1]==="braces"&&(_.comma=!0,q="|"),re({type:"comma",value:x,output:q});continue}if(x==="/"){if(R.type==="dot"&&C.index===C.start+1){C.start=C.index+1,C.consumed="",C.output="",o.pop(),R=s;continue}re({type:"slash",value:x,output:g});continue}if(x==="."){if(C.braces>0&&R.type==="dot"){R.value==="."&&(R.output=h);let q=ee[ee.length-1];R.type="dots",R.output+=x,R.value+=x,q.dots=!0;continue}if(C.braces+C.parens===0&&R.type!=="bos"&&R.type!=="slash"){re({type:"text",value:x,output:h});continue}re({type:"dot",value:x,output:h});continue}if(x==="?"){if(!(R&&R.value==="(")&&r.noextglob!==!0&&k()==="("&&k(2)!=="?"){pt("qmark",x);continue}if(R&&R.type==="paren"){let _=k(),S=x;if(_==="<"&&!Lt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(R.value==="("&&!/[!=<:]/.test(_)||_==="<"&&!/<([!=]|\w+>)/.test(Y()))&&(S=`\\${x}`),re({type:"text",value:x,output:S});continue}if(r.dot!==!0&&(R.type==="slash"||R.type==="bos")){re({type:"qmark",value:x,output:ie});continue}re({type:"qmark",value:x,output:D});continue}if(x==="!"){if(r.noextglob!==!0&&k()==="("&&(k(2)!=="?"||!/[!=<:]/.test(k(3)))){pt("negate",x);continue}if(r.nonegate!==!0&&C.index===0){Ue();continue}}if(x==="+"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){pt("plus",x);continue}if(R&&R.value==="("||r.regex===!1){re({type:"plus",value:x,output:d});continue}if(R&&(R.type==="bracket"||R.type==="paren"||R.type==="brace")||C.parens>0){re({type:"plus",value:x});continue}re({type:"plus",value:d});continue}if(x==="@"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){re({type:"at",extglob:!0,value:x,output:""});continue}re({type:"text",value:x});continue}if(x!=="*"){(x==="$"||x==="^")&&(x=`\\${x}`);let q=nq.exec(Y());q&&(x+=q[0],C.index+=q[0].length),re({type:"text",value:x});continue}if(R&&(R.type==="globstar"||R.star===!0)){R.type="star",R.star=!0,R.value+=x,R.output=Q,C.backtrack=!0,C.globstar=!0,j(x);continue}let B=Y();if(r.noextglob!==!0&&/^\([^?]/.test(B)){pt("star",x);continue}if(R.type==="star"){if(r.noglobstar===!0){j(x);continue}let q=R.prev,_=q.prev,S=q.type==="slash"||q.type==="bos",b=_&&(_.type==="star"||_.type==="globstar");if(r.bash===!0&&(!S||B[0]&&B[0]!=="/")){re({type:"star",value:x,output:""});continue}let L=C.braces>0&&(q.type==="comma"||q.type==="brace"),$=ne.length&&(q.type==="pipe"||q.type==="paren");if(!S&&q.type!=="paren"&&!L&&!$){re({type:"star",value:x,output:""});continue}for(;B.slice(0,3)==="/**";){let H=t[C.index+4];if(H&&H!=="/")break;B=B.slice(3),j("/**",3)}if(q.type==="bos"&&T()){R.type="globstar",R.value+=x,R.output=K(r),C.output=R.output,C.globstar=!0,j(x);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&!b&&T()){C.output=C.output.slice(0,-(q.output+R.output).length),q.output=`(?:${q.output}`,R.type="globstar",R.output=K(r)+(r.strictSlashes?")":"|$)"),R.value+=x,C.globstar=!0,C.output+=q.output+R.output,j(x);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&B[0]==="/"){let H=B[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(q.output+R.output).length),q.output=`(?:${q.output}`,R.type="globstar",R.output=`${K(r)}${g}|${g}${H})`,R.value+=x,C.output+=q.output+R.output,C.globstar=!0,j(x+I()),re({type:"slash",value:"/",output:""});continue}if(q.type==="bos"&&B[0]==="/"){R.type="globstar",R.value+=x,R.output=`(?:^|${g}|${K(r)}${g})`,C.output=R.output,C.globstar=!0,j(x+I()),re({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-R.output.length),R.type="globstar",R.output=K(r),R.value+=x,C.output+=R.output,C.globstar=!0,j(x);continue}let Ee={type:"star",value:x,output:Q};if(r.bash===!0){Ee.output=".*?",(R.type==="bos"||R.type==="slash")&&(Ee.output=Z+Ee.output),re(Ee);continue}if(R&&(R.type==="bracket"||R.type==="paren")&&r.regex===!0){Ee.output=x,re(Ee);continue}(C.index===C.start||R.type==="slash"||R.type==="dot")&&(R.type==="dot"?(C.output+=A,R.output+=A):r.dot===!0?(C.output+=P,R.output+=P):(C.output+=Z,R.output+=Z),k()!=="*"&&(C.output+=m,R.output+=m)),re(Ee)}for(;C.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(zi("closing","]"));C.output=Lt.escapeLast(C.output,"["),De("brackets")}for(;C.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(zi("closing",")"));C.output=Lt.escapeLast(C.output,"("),De("parens")}for(;C.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(zi("closing","}"));C.output=Lt.escapeLast(C.output,"{"),De("braces")}if(r.strictSlashes!==!0&&(R.type==="star"||R.type==="bracket")&&re({type:"maybe_slash",value:"",output:`${g}?`}),C.backtrack===!0){C.output="";for(let B of C.tokens)C.output+=B.output!=null?B.output:B.value,B.suffix&&(C.output+=B.suffix)}return C};Dh.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(gc,r.maxLength):gc,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=pw[t]||t;let s=Lt.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:h,NO_DOTS_SLASH:d,STAR:g,START_ANCHOR:m}=mc.globChars(s),E=r.dot?h:f,v=r.dot?d:f,A=r.capture?"":"?:",P={negated:!1,prefix:""},D=r.bash===!0?".*?":g;r.capture&&(D=`(${D})`);let ie=Z=>Z.noglobstar===!0?D:`(${A}(?:(?!${m}${Z.dot?u:o}).)*?)`,z=Z=>{switch(Z){case"*":return`${E}${c}${D}`;case".*":return`${o}${c}${D}`;case"*.*":return`${E}${D}${o}${c}${D}`;case"*/*":return`${E}${D}${a}${c}${v}${D}`;case"**":return E+ie(r);case"**/*":return`(?:${E}${ie(r)}${a})?${v}${c}${D}`;case"**/*.*":return`(?:${E}${ie(r)}${a})?${v}${D}${o}${c}${D}`;case"**/.*":return`(?:${E}${ie(r)}${a})?${o}${c}${D}`;default:{let F=/^(.*?)\.(\w+)$/.exec(Z);if(!F)return;let Q=z(F[1]);return Q?Q+o+F[2]:void 0}}},ue=Lt.removePrefix(t,P),K=z(ue);return K&&r.strictSlashes!==!0&&(K+=`${a}?`),K};mw.exports=Dh});var _w=y((yY,yw)=>{"use strict";l();var oq=require("path"),aq=dw(),Mh=gw(),Fh=Bo(),cq=qo(),uq=t=>t&&typeof t=="object"&&!Array.isArray(t),Fe=(t,e,r=!1)=>{if(Array.isArray(t)){let f=t.map(d=>Fe(d,e,r));return d=>{for(let g of f){let m=g(d);if(m)return m}return!1}}let n=uq(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=Fh.isWindows(e),o=n?Fe.compileRe(t,e):Fe.makeRe(t,e,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(i.ignore){let f={...e,ignore:null,onMatch:null,onResult:null};c=Fe(i.ignore,f,r)}let u=(f,h=!1)=>{let{isMatch:d,match:g,output:m}=Fe.test(f,o,e,{glob:t,posix:s}),E={glob:t,state:a,regex:o,posix:s,input:f,output:m,match:g,isMatch:d};return typeof i.onResult=="function"&&i.onResult(E),d===!1?(E.isMatch=!1,h?E:!1):c(f)?(typeof i.onIgnore=="function"&&i.onIgnore(E),E.isMatch=!1,h?E:!1):(typeof i.onMatch=="function"&&i.onMatch(E),h?E:!0)};return r&&(u.state=a),u};Fe.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Fh.toPosixSlashes:null),a=t===n,c=a&&o?o(t):t;return a===!1&&(c=o?o(t):t,a=c===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Fe.matchBase(t,e,r,i):a=e.exec(c)),{isMatch:Boolean(a),match:a,output:c}};Fe.matchBase=(t,e,r,n=Fh.isWindows(r))=>(e instanceof RegExp?e:Fe.makeRe(e,r)).test(oq.basename(t));Fe.isMatch=(t,e,r)=>Fe(e,r)(t);Fe.parse=(t,e)=>Array.isArray(t)?t.map(r=>Fe.parse(r,e)):Mh(t,{...e,fastpaths:!1});Fe.scan=(t,e)=>aq(t,e);Fe.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let c=Fe.toRegex(a,e);return n===!0&&(c.state=t),c};Fe.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=Mh.fastpaths(t,e)),i.output||(i=Mh(t,e)),Fe.compileRe(i,e,r,n)};Fe.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Fe.constants=cq;yw.exports=Fe});var bw=y((_Y,vw)=>{"use strict";l();vw.exports=_w()});var Aw=y((vY,Sw)=>{"use strict";l();var ww=require("util"),xw=ew(),br=bw(),qh=Bo(),Ew=t=>t===""||t==="./",Pe=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<e.length;f++){let h=br(String(e[f]),{...r,onResult:a},!0),d=h.state.negated||h.state.negatedExtglob;d&&o++;for(let g of t){let m=h(g,!0);!(d?!m.isMatch:m.isMatch)||(d?n.add(m.output):(n.delete(m.output),i.add(m.output)))}}let u=(o===e.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(f=>f.replace(/\\/g,"")):e}return u};Pe.match=Pe;Pe.matcher=(t,e)=>br(t,e);Pe.isMatch=(t,e,r)=>br(e,r)(t);Pe.any=Pe.isMatch;Pe.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Pe(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Pe.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ww.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>Pe.contains(t,n,r));if(typeof e=="string"){if(Ew(t)||Ew(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Pe.isMatch(t,e,{...r,contains:!0})};Pe.matchKeys=(t,e,r)=>{if(!qh.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=Pe(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};Pe.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=br(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Pe.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=br(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Pe.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ww.inspect(t)}"`);return[].concat(e).every(n=>br(n,r)(t))};Pe.capture=(t,e,r)=>{let n=qh.isWindows(r),s=br.makeRe(String(t),{...r,capture:!0}).exec(n?qh.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Pe.makeRe=(...t)=>br.makeRe(...t);Pe.scan=(...t)=>br.scan(...t);Pe.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of xw(String(n),e))r.push(br.parse(i,e));return r};Pe.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:xw(t,e)};Pe.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Pe.braces(t,{...e,expand:!0})};Sw.exports=Pe});var Lw=y(se=>{"use strict";l();Object.defineProperty(se,"__esModule",{value:!0});se.matchAny=se.convertPatternsToRe=se.makeRe=se.getPatternParts=se.expandBraceExpansion=se.expandPatternsWithBraceExpansion=se.isAffectDepthOfReadingPattern=se.endsWithSlashGlobStar=se.hasGlobStar=se.getBaseDirectory=se.isPatternRelatedToParentDirectory=se.getPatternsOutsideCurrentDirectory=se.getPatternsInsideCurrentDirectory=se.getPositivePatterns=se.getNegativePatterns=se.isPositivePattern=se.isNegativePattern=se.convertToNegativePattern=se.convertToPositivePattern=se.isDynamicPattern=se.isStaticPattern=void 0;var lq=require("path"),fq=yE(),Bh=Aw(),Rw="**",hq="\\",dq=/[*?]|^!/,pq=/\[[^[]*]/,mq=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,gq=/[!*+?@]\([^(]*\)/,yq=/,|\.\./;function Cw(t,e={}){return!Ow(t,e)}se.isStaticPattern=Cw;function Ow(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(hq)||dq.test(t)||pq.test(t)||mq.test(t)||e.extglob!==!1&&gq.test(t)||e.braceExpansion!==!1&&_q(t))}se.isDynamicPattern=Ow;function _q(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return yq.test(n)}function vq(t){return yc(t)?t.slice(1):t}se.convertToPositivePattern=vq;function bq(t){return"!"+t}se.convertToNegativePattern=bq;function yc(t){return t.startsWith("!")&&t[1]!=="("}se.isNegativePattern=yc;function Tw(t){return!yc(t)}se.isPositivePattern=Tw;function Eq(t){return t.filter(yc)}se.getNegativePatterns=Eq;function wq(t){return t.filter(Tw)}se.getPositivePatterns=wq;function xq(t){return t.filter(e=>!jh(e))}se.getPatternsInsideCurrentDirectory=xq;function Sq(t){return t.filter(jh)}se.getPatternsOutsideCurrentDirectory=Sq;function jh(t){return t.startsWith("..")||t.startsWith("./..")}se.isPatternRelatedToParentDirectory=jh;function Aq(t){return fq(t,{flipBackslashes:!1})}se.getBaseDirectory=Aq;function Rq(t){return t.includes(Rw)}se.hasGlobStar=Rq;function kw(t){return t.endsWith("/"+Rw)}se.endsWithSlashGlobStar=kw;function Cq(t){let e=lq.basename(t);return kw(t)||Cw(e)}se.isAffectDepthOfReadingPattern=Cq;function Oq(t){return t.reduce((e,r)=>e.concat(Pw(r)),[])}se.expandPatternsWithBraceExpansion=Oq;function Pw(t){return Bh.braces(t,{expand:!0,nodupes:!0})}se.expandBraceExpansion=Pw;function Tq(t,e){let{parts:r}=Bh.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}se.getPatternParts=Tq;function Iw(t,e){return Bh.makeRe(t,e)}se.makeRe=Iw;function kq(t,e){return t.map(r=>Iw(r,e))}se.convertPatternsToRe=kq;function Pq(t,e){return e.some(r=>r.test(t))}se.matchAny=Pq});var Fw=y((EY,Mw)=>{"use strict";l();var Iq=require("stream"),Nw=Iq.PassThrough,Lq=Array.prototype.slice;Mw.exports=Nq;function Nq(){let t=[],e=Lq.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=Nw(n);function a(){for(let f=0,h=arguments.length;f<h;f++)t.push(Dw(arguments[f],n));return c(),this}function c(){if(r)return;r=!0;let f=t.shift();if(!f){process.nextTick(u);return}Array.isArray(f)||(f=[f]);let h=f.length+1;function d(){--h>0||(r=!1,c())}function g(m){function E(){m.removeListener("merge2UnpipeEnd",E),m.removeListener("end",E),s&&m.removeListener("error",v),d()}function v(A){o.emit("error",A)}if(m._readableState.endEmitted)return d();m.on("merge2UnpipeEnd",E),m.on("end",E),s&&m.on("error",v),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<f.length;m++)g(f[m]);d()}function u(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Dw(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=Dw(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Nw(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Bw=y(_c=>{"use strict";l();Object.defineProperty(_c,"__esModule",{value:!0});_c.merge=void 0;var Dq=Fw();function Mq(t){let e=Dq(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>qw(t)),e.once("end",()=>qw(t)),e}_c.merge=Mq;function qw(t){t.forEach(e=>e.emit("close"))}});var jw=y(Yi=>{"use strict";l();Object.defineProperty(Yi,"__esModule",{value:!0});Yi.isEmpty=Yi.isString=void 0;function Fq(t){return typeof t=="string"}Yi.isString=Fq;function qq(t){return t===""}Yi.isEmpty=qq});var Ur=y(st=>{"use strict";l();Object.defineProperty(st,"__esModule",{value:!0});st.string=st.stream=st.pattern=st.path=st.fs=st.errno=st.array=void 0;var Bq=aE();st.array=Bq;var jq=cE();st.errno=jq;var Hq=uE();st.fs=Hq;var $q=lE();st.path=$q;var Uq=Lw();st.pattern=Uq;var Gq=Bw();st.stream=Gq;var Vq=jw();st.string=Vq});var Uw=y(ot=>{"use strict";l();Object.defineProperty(ot,"__esModule",{value:!0});ot.convertPatternGroupToTask=ot.convertPatternGroupsToTasks=ot.groupPatternsByBaseDirectory=ot.getNegativePatternsAsPositive=ot.getPositivePatterns=ot.convertPatternsToTasks=ot.generate=void 0;var Gr=Ur();function Wq(t,e){let r=Hw(t),n=$w(t,e.ignore),i=r.filter(c=>Gr.pattern.isStaticPattern(c,e)),s=r.filter(c=>Gr.pattern.isDynamicPattern(c,e)),o=Hh(i,n,!1),a=Hh(s,n,!0);return o.concat(a)}ot.generate=Wq;function Hh(t,e,r){let n=[],i=Gr.pattern.getPatternsOutsideCurrentDirectory(t),s=Gr.pattern.getPatternsInsideCurrentDirectory(t),o=$h(i),a=$h(s);return n.push(...Uh(o,e,r)),"."in a?n.push(Gh(".",s,e,r)):n.push(...Uh(a,e,r)),n}ot.convertPatternsToTasks=Hh;function Hw(t){return Gr.pattern.getPositivePatterns(t)}ot.getPositivePatterns=Hw;function $w(t,e){return Gr.pattern.getNegativePatterns(t).concat(e).map(Gr.pattern.convertToPositivePattern)}ot.getNegativePatternsAsPositive=$w;function $h(t){let e={};return t.reduce((r,n)=>{let i=Gr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}ot.groupPatternsByBaseDirectory=$h;function Uh(t,e,r){return Object.keys(t).map(n=>Gh(n,t[n],e,r))}ot.convertPatternGroupsToTasks=Uh;function Gh(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Gr.pattern.convertToNegativePattern))}}ot.convertPatternGroupToTask=Gh});var Vw=y(Ki=>{"use strict";l();Object.defineProperty(Ki,"__esModule",{value:!0});Ki.removeDuplicateSlashes=Ki.transform=void 0;var zq=/(?!^)\/{2,}/g;function Yq(t){return t.map(e=>Gw(e))}Ki.transform=Yq;function Gw(t){return t.replace(zq,"/")}Ki.removeDuplicateSlashes=Gw});var zw=y(vc=>{"use strict";l();Object.defineProperty(vc,"__esModule",{value:!0});vc.read=void 0;function Kq(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){Ww(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){Vh(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Ww(r,s);return}Vh(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Vh(r,o)})})}vc.read=Kq;function Ww(t,e){t(e)}function Vh(t,e){t(null,e)}});var Yw=y(bc=>{"use strict";l();Object.defineProperty(bc,"__esModule",{value:!0});bc.read=void 0;function Zq(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}bc.read=Zq});var Kw=y(yn=>{"use strict";l();Object.defineProperty(yn,"__esModule",{value:!0});yn.createFileSystemAdapter=yn.FILE_SYSTEM_ADAPTER=void 0;var Ec=require("fs");yn.FILE_SYSTEM_ADAPTER={lstat:Ec.lstat,stat:Ec.stat,lstatSync:Ec.lstatSync,statSync:Ec.statSync};function Jq(t){return t===void 0?yn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},yn.FILE_SYSTEM_ADAPTER),t)}yn.createFileSystemAdapter=Jq});var Zw=y(zh=>{"use strict";l();Object.defineProperty(zh,"__esModule",{value:!0});var Xq=Kw(),Wh=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Xq.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};zh.default=Wh});var ri=y(_n=>{"use strict";l();Object.defineProperty(_n,"__esModule",{value:!0});_n.statSync=_n.stat=_n.Settings=void 0;var Jw=zw(),Qq=Yw(),Yh=Zw();_n.Settings=Yh.default;function eB(t,e,r){if(typeof e=="function"){Jw.read(t,Kh(),e);return}Jw.read(t,Kh(e),r)}_n.stat=eB;function tB(t,e){let r=Kh(e);return Qq.read(t,r)}_n.statSync=tB;function Kh(t={}){return t instanceof Yh.default?t:new Yh.default(t)}});var ex=y((IY,Qw)=>{l();var Xw;Qw.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Xw||(Xw=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var rx=y((LY,tx)=>{l();tx.exports=nB;var rB=ex();function nB(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(c){function u(){e&&e(c,r),e=null}s?rB(u):u()}function a(c,u,f){r[c]=f,(--n===0||u)&&o(u)}n?i?i.forEach(function(c){t[c](function(u,f){a(c,u,f)})}):t.forEach(function(c,u){c(function(f,h){a(u,f,h)})}):o(null),s=!1}});var Zh=y(xc=>{"use strict";l();Object.defineProperty(xc,"__esModule",{value:!0});xc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var wc=process.versions.node.split(".");if(wc[0]===void 0||wc[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var nx=Number.parseInt(wc[0],10),iB=Number.parseInt(wc[1],10),ix=10,sB=10,oB=nx>ix,aB=nx===ix&&iB>=sB;xc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=oB||aB});var sx=y(Sc=>{"use strict";l();Object.defineProperty(Sc,"__esModule",{value:!0});Sc.createDirentFromStats=void 0;var Jh=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function cB(t,e){return new Jh(t,e)}Sc.createDirentFromStats=cB});var Xh=y(Ac=>{"use strict";l();Object.defineProperty(Ac,"__esModule",{value:!0});Ac.fs=void 0;var uB=sx();Ac.fs=uB});var Qh=y(Rc=>{"use strict";l();Object.defineProperty(Rc,"__esModule",{value:!0});Rc.joinPathSegments=void 0;function lB(t,e,r){return t.endsWith(r)?t+e:t+r+e}Rc.joinPathSegments=lB});var fx=y(vn=>{"use strict";l();Object.defineProperty(vn,"__esModule",{value:!0});vn.readdir=vn.readdirWithFileTypes=vn.read=void 0;var fB=ri(),ox=rx(),hB=Zh(),ax=Xh(),cx=Qh();function dB(t,e,r){if(!e.stats&&hB.IS_SUPPORT_READDIR_WITH_FILE_TYPES){ux(t,e,r);return}lx(t,e,r)}vn.read=dB;function ux(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Cc(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:cx.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){ed(r,s);return}let o=s.map(a=>pB(a,e));ox(o,(a,c)=>{if(a!==null){Cc(r,a);return}ed(r,c)})})}vn.readdirWithFileTypes=ux;function pB(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=ax.fs.createDirentFromStats(t.name,i),r(null,t)})}}function lx(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){Cc(r,n);return}let s=i.map(o=>{let a=cx.joinPathSegments(t,o,e.pathSegmentSeparator);return c=>{fB.stat(a,e.fsStatSettings,(u,f)=>{if(u!==null){c(u);return}let h={name:o,path:a,dirent:ax.fs.createDirentFromStats(o,f)};e.stats&&(h.stats=f),c(null,h)})}});ox(s,(o,a)=>{if(o!==null){Cc(r,o);return}ed(r,a)})})}vn.readdir=lx;function Cc(t,e){t(e)}function ed(t,e){t(null,e)}});var gx=y(bn=>{"use strict";l();Object.defineProperty(bn,"__esModule",{value:!0});bn.readdir=bn.readdirWithFileTypes=bn.read=void 0;var mB=ri(),gB=Zh(),hx=Xh(),dx=Qh();function yB(t,e){return!e.stats&&gB.IS_SUPPORT_READDIR_WITH_FILE_TYPES?px(t,e):mx(t,e)}bn.read=yB;function px(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:dx.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=hx.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}bn.readdirWithFileTypes=px;function mx(t,e){return e.fs.readdirSync(t).map(n=>{let i=dx.joinPathSegments(t,n,e.pathSegmentSeparator),s=mB.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:hx.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}bn.readdir=mx});var yx=y(En=>{"use strict";l();Object.defineProperty(En,"__esModule",{value:!0});En.createFileSystemAdapter=En.FILE_SYSTEM_ADAPTER=void 0;var Zi=require("fs");En.FILE_SYSTEM_ADAPTER={lstat:Zi.lstat,stat:Zi.stat,lstatSync:Zi.lstatSync,statSync:Zi.statSync,readdir:Zi.readdir,readdirSync:Zi.readdirSync};function _B(t){return t===void 0?En.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},En.FILE_SYSTEM_ADAPTER),t)}En.createFileSystemAdapter=_B});var _x=y(rd=>{"use strict";l();Object.defineProperty(rd,"__esModule",{value:!0});var vB=require("path"),bB=ri(),EB=yx(),td=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=EB.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,vB.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new bB.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};rd.default=td});var Oc=y(wn=>{"use strict";l();Object.defineProperty(wn,"__esModule",{value:!0});wn.Settings=wn.scandirSync=wn.scandir=void 0;var vx=fx(),wB=gx(),nd=_x();wn.Settings=nd.default;function xB(t,e,r){if(typeof e=="function"){vx.read(t,id(),e);return}vx.read(t,id(e),r)}wn.scandir=xB;function SB(t,e){let r=id(e);return wB.read(t,r)}wn.scandirSync=SB;function id(t={}){return t instanceof nd.default?t:new nd.default(t)}});var Ex=y((UY,bx)=>{"use strict";l();function AB(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}bx.exports=AB});var xx=y((GY,sd)=>{"use strict";l();var RB=Ex();function wx(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=RB(CB),i=null,s=null,o=0,a=null,c={push:E,drain:zt,saturated:zt,pause:f,paused:!1,concurrency:r,running:u,resume:g,idle:m,length:h,getQueue:d,unshift:v,empty:zt,kill:P,killAndDrain:D,error:ie};return c;function u(){return o}function f(){c.paused=!0}function h(){for(var z=i,ue=0;z;)z=z.next,ue++;return ue}function d(){for(var z=i,ue=[];z;)ue.push(z.value),z=z.next;return ue}function g(){if(!!c.paused){c.paused=!1;for(var z=0;z<c.concurrency;z++)o++,A()}}function m(){return o===0&&c.length()===0}function E(z,ue){var K=n.get();K.context=t,K.release=A,K.value=z,K.callback=ue||zt,K.errorHandler=a,o===c.concurrency||c.paused?s?(s.next=K,s=K):(i=K,s=K,c.saturated()):(o++,e.call(t,K.value,K.worked))}function v(z,ue){var K=n.get();K.context=t,K.release=A,K.value=z,K.callback=ue||zt,o===c.concurrency||c.paused?i?(K.next=i,i=K):(i=K,s=K,c.saturated()):(o++,e.call(t,K.value,K.worked))}function A(z){z&&n.release(z);var ue=i;ue?c.paused?o--:(s===i&&(s=null),i=ue.next,ue.next=null,e.call(t,ue.value,ue.worked),s===null&&c.empty()):--o===0&&c.drain()}function P(){i=null,s=null,c.drain=zt}function D(){i=null,s=null,c.drain(),c.drain=zt}function ie(z){a=z}}function zt(){}function CB(){this.value=null,this.callback=zt,this.next=null,this.release=zt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=zt,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function OB(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(f,h){e.call(this,f).then(function(d){h(null,d)},h)}var i=wx(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=c,i.drained=u,i;function a(f){var h=new Promise(function(d,g){s(f,function(m,E){if(m){g(m);return}d(E)})});return h.catch(zt),h}function c(f){var h=new Promise(function(d,g){o(f,function(m,E){if(m){g(m);return}d(E)})});return h.catch(zt),h}function u(){var f=i.drain,h=new Promise(function(d){i.drain=function(){f(),d()}});return h}}sd.exports=wx;sd.exports.promise=OB});var Tc=y(Er=>{"use strict";l();Object.defineProperty(Er,"__esModule",{value:!0});Er.joinPathSegments=Er.replacePathSegmentSeparator=Er.isAppliedFilter=Er.isFatalError=void 0;function TB(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Er.isFatalError=TB;function kB(t,e){return t===null||t(e)}Er.isAppliedFilter=kB;function PB(t,e){return t.split(/[/\\]/).join(e)}Er.replacePathSegmentSeparator=PB;function IB(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Er.joinPathSegments=IB});var cd=y(ad=>{"use strict";l();Object.defineProperty(ad,"__esModule",{value:!0});var LB=Tc(),od=class{constructor(e,r){this._root=e,this._settings=r,this._root=LB.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};ad.default=od});var fd=y(ld=>{"use strict";l();Object.defineProperty(ld,"__esModule",{value:!0});var NB=require("events"),DB=Oc(),MB=xx(),kc=Tc(),FB=cd(),ud=class extends FB.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=DB.scandir,this._emitter=new NB.EventEmitter,this._queue=MB(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!kc.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=kc.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),kc.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&kc.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};ld.default=ud});var Sx=y(dd=>{"use strict";l();Object.defineProperty(dd,"__esModule",{value:!0});var qB=fd(),hd=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new qB.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{BB(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{jB(e,this._storage)}),this._reader.read()}};dd.default=hd;function BB(t,e){t(e)}function jB(t,e){t(null,e)}});var Ax=y(md=>{"use strict";l();Object.defineProperty(md,"__esModule",{value:!0});var HB=require("stream"),$B=fd(),pd=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new $B.default(this._root,this._settings),this._stream=new HB.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};md.default=pd});var Rx=y(yd=>{"use strict";l();Object.defineProperty(yd,"__esModule",{value:!0});var UB=Oc(),Pc=Tc(),GB=cd(),gd=class extends GB.default{constructor(){super(...arguments),this._scandir=UB.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(!!Pc.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Pc.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Pc.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Pc.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};yd.default=gd});var Cx=y(vd=>{"use strict";l();Object.defineProperty(vd,"__esModule",{value:!0});var VB=Rx(),_d=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new VB.default(this._root,this._settings)}read(){return this._reader.read()}};vd.default=_d});var Ox=y(Ed=>{"use strict";l();Object.defineProperty(Ed,"__esModule",{value:!0});var WB=require("path"),zB=Oc(),bd=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,WB.sep),this.fsScandirSettings=new zB.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Ed.default=bd});var Lc=y(wr=>{"use strict";l();Object.defineProperty(wr,"__esModule",{value:!0});wr.Settings=wr.walkStream=wr.walkSync=wr.walk=void 0;var Tx=Sx(),YB=Ax(),KB=Cx(),wd=Ox();wr.Settings=wd.default;function ZB(t,e,r){if(typeof e=="function"){new Tx.default(t,Ic()).read(e);return}new Tx.default(t,Ic(e)).read(r)}wr.walk=ZB;function JB(t,e){let r=Ic(e);return new KB.default(t,r).read()}wr.walkSync=JB;function XB(t,e){let r=Ic(e);return new YB.default(t,r).read()}wr.walkStream=XB;function Ic(t={}){return t instanceof wd.default?t:new wd.default(t)}});var Nc=y(Sd=>{"use strict";l();Object.defineProperty(Sd,"__esModule",{value:!0});var QB=require("path"),e3=ri(),kx=Ur(),xd=class{constructor(e){this._settings=e,this._fsStatSettings=new e3.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return QB.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:kx.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!kx.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Sd.default=xd});var Cd=y(Rd=>{"use strict";l();Object.defineProperty(Rd,"__esModule",{value:!0});var t3=require("stream"),r3=ri(),n3=Lc(),i3=Nc(),Ad=class extends i3.default{constructor(){super(...arguments),this._walkStream=n3.walkStream,this._stat=r3.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new t3.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[s],r).then(c=>{c!==null&&r.entryFilter(c)&&i.push(c),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Rd.default=Ad});var Px=y(Td=>{"use strict";l();Object.defineProperty(Td,"__esModule",{value:!0});var s3=Lc(),o3=Nc(),a3=Cd(),Od=class extends o3.default{constructor(){super(...arguments),this._walkAsync=s3.walk,this._readerStream=new a3.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Td.default=Od});var Ix=y(Pd=>{"use strict";l();Object.defineProperty(Pd,"__esModule",{value:!0});var Ji=Ur(),kd=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=Ji.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return Ji.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Ji.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Ji.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Ji.array.splitWhen(e,r=>r.dynamic&&Ji.pattern.hasGlobStar(r.pattern))}};Pd.default=kd});var Lx=y(Ld=>{"use strict";l();Object.defineProperty(Ld,"__esModule",{value:!0});var c3=Ix(),Id=class extends c3.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((c,u)=>{let f=s.segments[u];return!!(f.dynamic&&f.patternRe.test(c)||!f.dynamic&&f.pattern===c)}))return!0}return!1}};Ld.default=Id});var Nx=y(Dd=>{"use strict";l();Object.defineProperty(Dd,"__esModule",{value:!0});var Dc=Ur(),u3=Lx(),Nd=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new u3.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Dc.pattern.isAffectDepthOfReadingPattern);return Dc.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Dc.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Dc.pattern.matchAny(e,r)}};Dd.default=Nd});var Dx=y(Fd=>{"use strict";l();Object.defineProperty(Fd,"__esModule",{value:!0});var ni=Ur(),Md=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=ni.pattern.convertPatternsToRe(e,this._micromatchOptions),i=ni.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=ni.path.makeAbsolute(this._settings.cwd,e);return ni.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=ni.path.removeLeadingDotSegment(e),s=ni.pattern.matchAny(i,r);return!s&&n?ni.pattern.matchAny(i+"/",r):s}};Fd.default=Md});var Mx=y(Bd=>{"use strict";l();Object.defineProperty(Bd,"__esModule",{value:!0});var l3=Ur(),qd=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return l3.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Bd.default=qd});var qx=y(Hd=>{"use strict";l();Object.defineProperty(Hd,"__esModule",{value:!0});var Fx=Ur(),jd=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Fx.path.makeAbsolute(this._settings.cwd,r),r=Fx.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Hd.default=jd});var Mc=y(Ud=>{"use strict";l();Object.defineProperty(Ud,"__esModule",{value:!0});var f3=require("path"),h3=Nx(),d3=Dx(),p3=Mx(),m3=qx(),$d=class{constructor(e){this._settings=e,this.errorFilter=new p3.default(this._settings),this.entryFilter=new d3.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new h3.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new m3.default(this._settings)}_getRootDirectory(e){return f3.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Ud.default=$d});var Bx=y(Vd=>{"use strict";l();Object.defineProperty(Vd,"__esModule",{value:!0});var g3=Px(),y3=Mc(),Gd=class extends y3.default{constructor(){super(...arguments),this._reader=new g3.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Vd.default=Gd});var jx=y(zd=>{"use strict";l();Object.defineProperty(zd,"__esModule",{value:!0});var _3=require("stream"),v3=Cd(),b3=Mc(),Wd=class extends b3.default{constructor(){super(...arguments),this._reader=new v3.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new _3.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};zd.default=Wd});var Hx=y(Kd=>{"use strict";l();Object.defineProperty(Kd,"__esModule",{value:!0});var E3=ri(),w3=Lc(),x3=Nc(),Yd=class extends x3.default{constructor(){super(...arguments),this._walkSync=w3.walkSync,this._statSync=E3.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Kd.default=Yd});var $x=y(Jd=>{"use strict";l();Object.defineProperty(Jd,"__esModule",{value:!0});var S3=Hx(),A3=Mc(),Zd=class extends A3.default{constructor(){super(...arguments),this._reader=new S3.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Jd.default=Zd});var Ux=y(Qi=>{"use strict";l();Object.defineProperty(Qi,"__esModule",{value:!0});Qi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Xi=require("fs"),R3=require("os"),C3=Math.max(R3.cpus().length,1);Qi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Xi.lstat,lstatSync:Xi.lstatSync,stat:Xi.stat,statSync:Xi.statSync,readdir:Xi.readdir,readdirSync:Xi.readdirSync};var Xd=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,C3),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Qi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Qi.default=Xd});var zx=y((mK,Wx)=>{"use strict";l();var Gx=Uw(),Vx=Vw(),O3=Bx(),T3=jx(),k3=$x(),Qd=Ux(),ii=Ur();async function ep(t,e){es(t);let r=tp(t,O3.default,e),n=await Promise.all(r);return ii.array.flatten(n)}(function(t){function e(o,a){es(o);let c=tp(o,k3.default,a);return ii.array.flatten(c)}t.sync=e;function r(o,a){es(o);let c=tp(o,T3.default,a);return ii.stream.merge(c)}t.stream=r;function n(o,a){es(o);let c=Vx.transform([].concat(o)),u=new Qd.default(a);return Gx.generate(c,u)}t.generateTasks=n;function i(o,a){es(o);let c=new Qd.default(a);return ii.pattern.isDynamicPattern(o,c)}t.isDynamicPattern=i;function s(o){return es(o),ii.path.escape(o)}t.escapePath=s})(ep||(ep={}));function tp(t,e,r){let n=Vx.transform([].concat(t)),i=new Qd.default(r),s=Gx.generate(n,i),o=new e(i);return s.map(o.read,o)}function es(t){if(![].concat(t).every(n=>ii.string.isString(n)&&!ii.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Wx.exports=ep});var qc=y((gK,rp)=>{l();var Yx=process.argv||[],Fc=process.env,P3=!("NO_COLOR"in Fc||Yx.includes("--no-color"))&&("FORCE_COLOR"in Fc||Yx.includes("--color")||process.platform==="win32"||require!=null&&require("tty").isatty(1)&&Fc.TERM!=="dumb"||"CI"in Fc),I3=(t,e,r=t)=>n=>{let i=""+n,s=i.indexOf(e,t.length);return~s?t+L3(i,e,r,s)+e:t+i+e},L3=(t,e,r,n)=>{let i="",s=0;do i+=t.substring(s,n)+r,s=n+e.length,n=t.indexOf(e,s);while(~n);return i+t.substring(s)},Kx=(t=P3)=>{let e=t?I3:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m")}};rp.exports=Kx();rp.exports.createColors=Kx});var Jx=y((yK,Zx)=>{"use strict";l();Zx.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var np=y((_K,Qx)=>{l();var Ho=Jx(),Xx={};for(let t of Object.keys(Ho))Xx[Ho[t]]=t;var V={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Qx.exports=V;for(let t of Object.keys(V)){if(!("channels"in V[t]))throw new Error("missing channels property: "+t);if(!("labels"in V[t]))throw new Error("missing channel labels property: "+t);if(V[t].labels.length!==V[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=V[t];delete V[t].channels,delete V[t].labels,Object.defineProperty(V[t],"channels",{value:e}),Object.defineProperty(V[t],"labels",{value:r})}V.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let u=(i+s)/2;return s===i?c=0:u<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,u*100]};V.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,u=Math.max(o,a,c),f=u-Math.min(o,a,c),h=function(d){return(u-d)/6/f+1/2};return f===0?(i=0,s=0):(s=f/u,e=h(o),r=h(a),n=h(c),o===u?i=n-r:a===u?i=1/3+e-n:c===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};V.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=V.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};V.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function N3(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}V.rgb.keyword=function(t){let e=Xx[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Ho)){let s=Ho[i],o=N3(t,s);o<r&&(r=o,n=i)}return n};V.keyword.rgb=function(t){return Ho[t]};V.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};V.rgb.lab=function(t){let e=V.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};V.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,c=[0,0,0];for(let u=0;u<3;u++)s=e+1/3*-(u-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,c[u]=o*255;return c};V.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};V.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};V.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};V.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,(o&1)!==0&&(s=1-s);let c=r+s*(a-r),u,f,h;switch(o){default:case 6:case 0:u=a,f=c,h=r;break;case 1:u=c,f=a,h=r;break;case 2:u=r,f=a,h=c;break;case 3:u=r,f=c,h=a;break;case 4:u=c,f=r,h=a;break;case 5:u=a,f=r,h=c;break}return[u*255,f*255,h*255]};V.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};V.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};V.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};V.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,c=i**3,u=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};V.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};V.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};V.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?V.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};V.hsv.ansi16=function(t){return V.rgb.ansi16(V.hsv.rgb(t),t[2])};V.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};V.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};V.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};V.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};V.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};V.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o,c/=6,c%=1,[c*360,o*100,a*100]};V.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};V.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};V.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};V.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};V.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};V.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};V.hwb.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};V.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};V.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};V.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};V.gray.hsl=function(t){return[0,0,t[0]]};V.gray.hsv=V.gray.hsl;V.gray.hwb=function(t){return[0,100,t[0]]};V.gray.cmyk=function(t){return[0,0,0,t[0]]};V.gray.lab=function(t){return[t[0],0,0]};V.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};V.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var t1=y((vK,e1)=>{l();var Bc=np();function D3(){let t={},e=Object.keys(Bc);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function M3(t){let e=D3(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Bc[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}}return e}function F3(t,e){return function(r){return e(t(r))}}function q3(t,e){let r=[e[t].parent,t],n=Bc[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=F3(Bc[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}e1.exports=function(t){let e=M3(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=q3(o,e))}return r}});var n1=y((bK,r1)=>{l();var ip=np(),B3=t1(),ts={},j3=Object.keys(ip);function H3(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function $3(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}j3.forEach(t=>{ts[t]={},Object.defineProperty(ts[t],"channels",{value:ip[t].channels}),Object.defineProperty(ts[t],"labels",{value:ip[t].labels});let e=B3(t);Object.keys(e).forEach(n=>{let i=e[n];ts[t][n]=$3(i),ts[t][n].raw=H3(i)})});r1.exports=ts});var op=y((EK,c1)=>{"use strict";l();var i1=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,s1=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},o1=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},jc=t=>t,a1=(t,e,r)=>[t,e,r],rs=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},sp,ns=(t,e,r,n)=>{sp===void 0&&(sp=n1());let i=n?10:0,s={};for(let[o,a]of Object.entries(sp)){let c=o==="ansi16"?"ansi":o;o===e?s[c]=t(r,i):typeof a=="object"&&(s[c]=t(a[e],i))}return s};function U3(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",rs(e.color,"ansi",()=>ns(i1,"ansi16",jc,!1)),rs(e.color,"ansi256",()=>ns(s1,"ansi256",jc,!1)),rs(e.color,"ansi16m",()=>ns(o1,"rgb",a1,!1)),rs(e.bgColor,"ansi",()=>ns(i1,"ansi16",jc,!0)),rs(e.bgColor,"ansi256",()=>ns(s1,"ansi256",jc,!0)),rs(e.bgColor,"ansi16m",()=>ns(o1,"rgb",a1,!0)),e}Object.defineProperty(c1,"exports",{enumerable:!0,get:U3})});var l1=y((wK,u1)=>{"use strict";l();u1.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var up=y((xK,h1)=>{"use strict";l();var G3=require("os"),f1=require("tty"),Yt=l1(),{env:ze}=process,xn;Yt("no-color")||Yt("no-colors")||Yt("color=false")||Yt("color=never")?xn=0:(Yt("color")||Yt("colors")||Yt("color=true")||Yt("color=always"))&&(xn=1);"FORCE_COLOR"in ze&&(ze.FORCE_COLOR==="true"?xn=1:ze.FORCE_COLOR==="false"?xn=0:xn=ze.FORCE_COLOR.length===0?1:Math.min(parseInt(ze.FORCE_COLOR,10),3));function ap(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function cp(t,e){if(xn===0)return 0;if(Yt("color=16m")||Yt("color=full")||Yt("color=truecolor"))return 3;if(Yt("color=256"))return 2;if(t&&!e&&xn===void 0)return 0;let r=xn||0;if(ze.TERM==="dumb")return r;if(process.platform==="win32"){let n=G3.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ze)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in ze)||ze.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ze)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ze.TEAMCITY_VERSION)?1:0;if(ze.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ze){let n=parseInt((ze.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ze.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ze.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ze.TERM)||"COLORTERM"in ze?1:r}function V3(t){let e=cp(t,t&&t.isTTY);return ap(e)}h1.exports={supportsColor:V3,stdout:ap(cp(!0,f1.isatty(1))),stderr:ap(cp(!0,f1.isatty(2)))}});var p1=y((SK,d1)=>{"use strict";l();var W3=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},z3=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
|
|
30
30
|
`:`
|
|
31
31
|
`)+r,i=n+1,n=t.indexOf(`
|
|
32
|
-
`,i)}while(n!==-1);return s+=t.substr(i),s};d1.exports={stringReplaceAll:
|
|
33
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function y1(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):
|
|
34
|
-
`);return s!==-1&&(e=rj(e,i,n,s)),n+e+i},lp,oj=(t,...e)=>{let[r]=e;if(!Array.isArray(r))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return lp===void 0&&(lp=v1()),lp(t,i.join(""))};Object.defineProperties(Hc.prototype,is);var Uo=Hc();Uo.supportsColor=fp;Uo.stderr=Hc({level:hp?hp.level:0});Uo.stderr.supportsColor=hp;Uo.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};x1.exports=Uo});var R1=y((CK,mp)=>{"use strict";l();var A1=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};mp.exports=A1;mp.exports.default=A1});var gp=y((OK,Gc)=>{"use strict";l();var aj=R1(),Uc=new WeakMap,C1=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Uc.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return aj(s,t),Uc.set(s,n),s};Gc.exports=C1;Gc.exports.default=C1;Gc.exports.callCount=t=>{if(!Uc.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Uc.get(t)}});var O1=y((TK,Vc)=>{l();Vc.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Vc.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Vc.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var vp=y((kK,as)=>{l();var Ie=global.process,si=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};si(Ie)?(T1=require("assert"),ss=O1(),k1=/^win/i.test(Ie.platform),Go=require("events"),typeof Go!="function"&&(Go=Go.EventEmitter),Ie.__signal_exit_emitter__?Ye=Ie.__signal_exit_emitter__:(Ye=Ie.__signal_exit_emitter__=new Go,Ye.count=0,Ye.emitted={}),Ye.infinite||(Ye.setMaxListeners(1/0),Ye.infinite=!0),as.exports=function(t,e){if(!si(global.process))return function(){};T1.equal(typeof t,"function","a callback must be provided for exit handler"),os===!1&&yp();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Ye.removeListener(r,t),Ye.listeners("exit").length===0&&Ye.listeners("afterexit").length===0&&Wc()};return Ye.on(r,t),n},Wc=function(){!os||!si(global.process)||(os=!1,ss.forEach(function(e){try{Ie.removeListener(e,zc[e])}catch{}}),Ie.emit=Yc,Ie.reallyExit=_p,Ye.count-=1)},as.exports.unload=Wc,oi=function(e,r,n){Ye.emitted[e]||(Ye.emitted[e]=!0,Ye.emit(e,r,n))},zc={},ss.forEach(function(t){zc[t]=function(){if(!!si(global.process)){var r=Ie.listeners(t);r.length===Ye.count&&(Wc(),oi("exit",null,t),oi("afterexit",null,t),k1&&t==="SIGHUP"&&(t="SIGINT"),Ie.kill(Ie.pid,t))}}}),as.exports.signals=function(){return ss},os=!1,yp=function(){os||!si(global.process)||(os=!0,Ye.count+=1,ss=ss.filter(function(e){try{return Ie.on(e,zc[e]),!0}catch{return!1}}),Ie.emit=I1,Ie.reallyExit=P1)},as.exports.load=yp,_p=Ie.reallyExit,P1=function(e){!si(global.process)||(Ie.exitCode=e||0,oi("exit",Ie.exitCode,null),oi("afterexit",Ie.exitCode,null),_p.call(Ie,Ie.exitCode))},Yc=Ie.emit,I1=function(e,r){if(e==="exit"&&si(global.process)){r!==void 0&&(Ie.exitCode=r);var n=Yc.apply(this,arguments);return oi("exit",Ie.exitCode,null),oi("afterexit",Ie.exitCode,null),n}else return Yc.apply(this,arguments)}):as.exports=function(){return function(){}};var T1,ss,k1,Go,Ye,Wc,oi,zc,os,yp,_p,P1,Yc,I1});var N1=y((PK,L1)=>{"use strict";l();var cj=gp(),uj=vp();L1.exports=cj(()=>{uj(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var D1=y(cs=>{"use strict";l();var lj=N1(),Kc=!1;cs.show=(t=process.stderr)=>{!t.isTTY||(Kc=!1,t.write("\x1B[?25h"))};cs.hide=(t=process.stderr)=>{!t.isTTY||(lj(),Kc=!0,t.write("\x1B[?25l"))};cs.toggle=(t,e)=>{t!==void 0&&(Kc=t),Kc?cs.show(e):cs.hide(e)}});var M1=y((LK,fj)=>{fj.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var B1=y((NK,q1)=>{"use strict";l();var Zc=Object.assign({},M1()),F1=Object.keys(Zc);Object.defineProperty(Zc,"random",{get(){let t=Math.floor(Math.random()*F1.length),e=F1[t];return Zc[e]}});q1.exports=Zc});var H1=y((DK,j1)=>{"use strict";l();var hj=/[|\\{}()[\]^$+*?.]/g;j1.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(hj,"\\$&")}});var U1=y((MK,$1)=>{"use strict";l();$1.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var bp=y((FK,z1)=>{l();var ai=U1(),W1={};for(Jc in ai)ai.hasOwnProperty(Jc)&&(W1[ai[Jc]]=Jc);var Jc,W=z1.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(gt in W)if(W.hasOwnProperty(gt)){if(!("channels"in W[gt]))throw new Error("missing channels property: "+gt);if(!("labels"in W[gt]))throw new Error("missing channel labels property: "+gt);if(W[gt].labels.length!==W[gt].channels)throw new Error("channel and label counts mismatch: "+gt);G1=W[gt].channels,V1=W[gt].labels,delete W[gt].channels,delete W[gt].labels,Object.defineProperty(W[gt],"channels",{value:G1}),Object.defineProperty(W[gt],"labels",{value:V1})}var G1,V1,gt;W.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c,u;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),u=(i+s)/2,s===i?c=0:u<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,u*100]};W.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,u=Math.max(o,a,c),f=u-Math.min(o,a,c),h=function(d){return(u-d)/6/f+1/2};return f===0?i=s=0:(s=f/u,e=h(o),r=h(a),n=h(c),o===u?i=n-r:a===u?i=1/3+e-n:c===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};W.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=W.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};W.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function dj(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}W.rgb.keyword=function(t){var e=W1[t];if(e)return e;var r=1/0,n;for(var i in ai)if(ai.hasOwnProperty(i)){var s=ai[i],o=dj(t,s);o<r&&(r=o,n=i)}return n};W.keyword.rgb=function(t){return ai[t]};W.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};W.rgb.lab=function(t){var e=W.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};W.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,c;if(r===0)return c=n*255,[c,c,c];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var u=0;u<3;u++)o=e+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?c=i+(s-i)*6*o:2*o<1?c=s:3*o<2?c=i+(s-i)*(2/3-o)*6:c=i,a[u]=c*255;return a};W.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};W.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};W.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};W.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,c;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,(s&1)!==0&&(a=1-a),c=r+a*(o-r);var u,f,h;switch(s){default:case 6:case 0:u=o,f=c,h=r;break;case 1:u=c,f=o,h=r;break;case 2:u=r,f=o,h=c;break;case 3:u=r,f=c,h=o;break;case 4:u=c,f=r,h=o;break;case 5:u=o,f=r,h=c;break}return[u*255,f*255,h*255]};W.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};W.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};W.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};W.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),c=Math.pow(i,3),u=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};W.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};W.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};W.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:W.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};W.hsv.ansi16=function(t){return W.rgb.ansi16(W.hsv.rgb(t),t[2])};W.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};W.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};W.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};W.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};W.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};W.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o+4,c/=6,c%=1,[c*360,o*100,a*100]};W.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};W.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};W.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};W.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};W.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};W.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};W.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};W.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};W.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};W.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};W.gray.hsl=W.gray.hsv=function(t){return[0,0,t[0]]};W.gray.hwb=function(t){return[0,100,t[0]]};W.gray.cmyk=function(t){return[0,0,0,t[0]]};W.gray.lab=function(t){return[t[0],0,0]};W.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};W.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var K1=y((qK,Y1)=>{l();var Xc=bp();function pj(){for(var t={},e=Object.keys(Xc),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function mj(t){var e=pj(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Xc[n]),s=i.length,o=0;o<s;o++){var a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}return e}function gj(t,e){return function(r){return e(t(r))}}function yj(t,e){for(var r=[e[t].parent,t],n=Xc[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=gj(Xc[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}Y1.exports=function(t){for(var e=mj(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=yj(o,e))}return r}});var J1=y((BK,Z1)=>{l();var Ep=bp(),_j=K1(),us={},vj=Object.keys(Ep);function bj(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Ej(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}vj.forEach(function(t){us[t]={},Object.defineProperty(us[t],"channels",{value:Ep[t].channels}),Object.defineProperty(us[t],"labels",{value:Ep[t].labels});var e=_j(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];us[t][n]=Ej(i),us[t][n].raw=bj(i)})});Z1.exports=us});var Q1=y((jK,X1)=>{"use strict";l();var ls=J1(),Qc=(t,e)=>function(){return`\x1B[${t.apply(ls,arguments)+e}m`},eu=(t,e)=>function(){let r=t.apply(ls,arguments);return`\x1B[${38+e};5;${r}m`},tu=(t,e)=>function(){let r=t.apply(ls,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function wj(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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],gray:[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.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:Qc(r,0)},e.color.ansi256={ansi256:eu(r,0)},e.color.ansi16m={rgb:tu(n,0)},e.bgColor.ansi={ansi:Qc(r,10)},e.bgColor.ansi256={ansi256:eu(r,10)},e.bgColor.ansi16m={rgb:tu(n,10)};for(let i of Object.keys(ls)){if(typeof ls[i]!="object")continue;let s=ls[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=Qc(s.ansi16,0),e.bgColor.ansi[i]=Qc(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=eu(s.ansi256,0),e.bgColor.ansi256[i]=eu(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=tu(s.rgb,0),e.bgColor.ansi16m[i]=tu(s.rgb,10))}return e}Object.defineProperty(X1,"exports",{enumerable:!0,get:wj})});var tS=y((HK,eS)=>{"use strict";l();eS.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var nS=y(($K,rS)=>{"use strict";l();var xj=require("os"),ur=tS(),at=process.env,fs;ur("no-color")||ur("no-colors")||ur("color=false")?fs=!1:(ur("color")||ur("colors")||ur("color=true")||ur("color=always"))&&(fs=!0);"FORCE_COLOR"in at&&(fs=at.FORCE_COLOR.length===0||parseInt(at.FORCE_COLOR,10)!==0);function Sj(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Aj(t){if(fs===!1)return 0;if(ur("color=16m")||ur("color=full")||ur("color=truecolor"))return 3;if(ur("color=256"))return 2;if(t&&!t.isTTY&&fs!==!0)return 0;let e=fs?1:0;if(process.platform==="win32"){let r=xj.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in at)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in at)||at.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in at)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(at.TEAMCITY_VERSION)?1:0;if(at.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in at){let r=parseInt((at.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(at.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(at.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(at.TERM)||"COLORTERM"in at?1:(at.TERM==="dumb",e)}function wp(t){let e=Aj(t);return Sj(e)}rS.exports={supportsColor:wp,stdout:wp(process.stdout),stderr:wp(process.stderr)}});var cS=y((UK,aS)=>{"use strict";l();var Rj=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,iS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Cj=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Oj=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Tj=new Map([["n",`
|
|
35
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function oS(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):Tj.get(t)||t}function kj(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(Cj))r.push(i[2].replace(Oj,(o,a,c)=>a?oS(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function Pj(t){iS.lastIndex=0;let e=[],r;for(;(r=iS.exec(t))!==null;){let n=r[1];if(r[2]){let i=kj(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function sS(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}aS.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Rj,(s,o,a,c,u,f)=>{if(o)i.push(oS(o));else if(c){let h=i.join("");i=[],n.push(r.length===0?h:sS(t,r)(h)),r.push({inverse:a,styles:Pj(c)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(sS(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var dS=y((GK,Wo)=>{"use strict";l();var Sp=H1(),$e=Q1(),xp=nS().stdout,Ij=cS(),lS=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),fS=["ansi","ansi","ansi256","ansi16m"],hS=new Set(["gray"]),hs=Object.create(null);function uS(t,e){e=e||{};let r=xp?xp.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function Vo(t){if(!this||!(this instanceof Vo)||this.template){let e={};return uS(e,t),e.template=function(){let r=[].slice.call(arguments);return Dj.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,Vo.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=Vo,e.template}uS(this,t)}lS&&($e.blue.open="\x1B[94m");for(let t of Object.keys($e))$e[t].closeRe=new RegExp(Sp($e[t].close),"g"),hs[t]={get(){let e=$e[t];return ru.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};hs.visible={get(){return ru.call(this,this._styles||[],!0,"visible")}};$e.color.closeRe=new RegExp(Sp($e.color.close),"g");for(let t of Object.keys($e.color.ansi))hS.has(t)||(hs[t]={get(){let e=this.level;return function(){let n={open:$e.color[fS[e]][t].apply(null,arguments),close:$e.color.close,closeRe:$e.color.closeRe};return ru.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});$e.bgColor.closeRe=new RegExp(Sp($e.bgColor.close),"g");for(let t of Object.keys($e.bgColor.ansi)){if(hS.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);hs[e]={get(){let r=this.level;return function(){let i={open:$e.bgColor[fS[r]][t].apply(null,arguments),close:$e.bgColor.close,closeRe:$e.bgColor.closeRe};return ru.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var Lj=Object.defineProperties(()=>{},hs);function ru(t,e,r){let n=function(){return Nj.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=Lj,n}function Nj(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=$e.dim.open;lS&&this.hasGrey&&($e.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return $e.dim.open=n,r}function Dj(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return Ij(t,n.join(""))}Object.defineProperties(Vo.prototype,hs);Wo.exports=Vo();Wo.exports.supportsColor=xp;Wo.exports.default=Wo.exports});var mS=y((VK,pS)=>{"use strict";l();var Sn=dS(),Mj=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",Fj={info:Sn.blue("\u2139"),success:Sn.green("\u2714"),warning:Sn.yellow("\u26A0"),error:Sn.red("\u2716")},qj={info:Sn.blue("i"),success:Sn.green("\u221A"),warning:Sn.yellow("\u203C"),error:Sn.red("\xD7")};pS.exports=Mj?Fj:qj});var yS=y((WK,gS)=>{"use strict";l();gS.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var vS=y((zK,_S)=>{"use strict";l();var Bj=yS();_S.exports=t=>typeof t=="string"?t.replace(Bj(),""):t});var bS=y((YK,nu)=>{l();var jj=function(){"use strict";function t(o,a,c,u){var f;typeof a=="object"&&(c=a.depth,u=a.prototype,f=a.filter,a=a.circular);var h=[],d=[],g=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof c>"u"&&(c=1/0);function m(E,v){if(E===null)return null;if(v==0)return E;var A,P;if(typeof E!="object")return E;if(t.__isArray(E))A=[];else if(t.__isRegExp(E))A=new RegExp(E.source,s(E)),E.lastIndex&&(A.lastIndex=E.lastIndex);else if(t.__isDate(E))A=new Date(E.getTime());else{if(g&&Buffer.isBuffer(E))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(E.length):A=new Buffer(E.length),E.copy(A),A;typeof u>"u"?(P=Object.getPrototypeOf(E),A=Object.create(P)):(A=Object.create(u),P=u)}if(a){var D=h.indexOf(E);if(D!=-1)return d[D];h.push(E),d.push(A)}for(var ie in E){var z;P&&(z=Object.getOwnPropertyDescriptor(P,ie)),!(z&&z.set==null)&&(A[ie]=m(E[ie],v-1))}return A}return m(o,c)}t.clonePrototype=function(a){if(a===null)return null;var c=function(){};return c.prototype=a,new c};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof nu=="object"&&nu.exports&&(nu.exports=jj)});var wS=y((KK,ES)=>{l();var Hj=bS();ES.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=Hj(e[r]))}),t}});var SS=y((ZK,xS)=>{l();xS.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var OS=y((JK,Ap)=>{"use strict";l();var $j=wS(),zo=SS(),RS={nul:0,control:0};Ap.exports=function(e){return CS(e,RS)};Ap.exports.config=function(t){return t=$j(t||{},RS),function(r){return CS(r,t)}};function CS(t,e){if(typeof t!="string")return AS(t,e);for(var r=0,n=0;n<t.length;n++){var i=AS(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function AS(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:Uj(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function Uj(t){var e=0,r=zo.length-1,n;if(t<zo[0][0]||t>zo[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>zo[n][1])e=n+1;else if(t<zo[n][0])r=n-1;else return!0;return!1}});var kS=y((XK,TS)=>{"use strict";l();TS.exports=({stream:t=process.stdout}={})=>Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var IS=y((QK,PS)=>{l();var Rp=require("stream");PS.exports=Ke;function Ke(t){Rp.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}Ke.prototype=Object.create(Rp.prototype);Object.defineProperty(Ke.prototype,"constructor",{value:Ke,enumerable:!1});Ke.prototype.mute=function(){this.muted=!0};Ke.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ke.prototype,"_onpipe",{value:Gj,enumerable:!1,writable:!0,configurable:!0});function Gj(t){this._src=t}Object.defineProperty(Ke.prototype,"isTTY",{get:Vj,set:Wj,enumerable:!0,configurable:!0});function Vj(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function Wj(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ke.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ke.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ke.prototype.pipe=function(t,e){return this._dest=t,Rp.prototype.pipe.call(this,t,e)};Ke.prototype.pause=function(){if(this._src)return this._src.pause()};Ke.prototype.resume=function(){if(this._src)return this._src.resume()};Ke.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)};Ke.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function Cp(t){return function(){var e=this._dest,r=this._src;e&&e[t]&&e[t].apply(e,arguments),r&&r[t]&&r[t].apply(r,arguments)}}Ke.prototype.destroy=Cp("destroy");Ke.prototype.destroySoon=Cp("destroySoon");Ke.prototype.close=Cp("close")});var NS=y((eZ,kp)=>{"use strict";l();var zj=require("readline"),Yj=S1(),LS=D1(),iu=B1(),su=mS(),Kj=vS(),Zj=OS(),Jj=kS(),Xj=IS(),Op=Symbol("text"),ou=Symbol("prefixText"),Qj=3,Tp=class{constructor(){this.requests=0,this.mutedStream=new Xj,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(Qj)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=zj.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},au,cu=class{constructor(e){au||(au=new Tp),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:Jj({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(process.platform==="win32")this._spinner=iu.line;else if(e===void 0)this._spinner=iu.dots;else if(iu[e])this._spinner=iu[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Op]}get prefixText(){return this[ou]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[ou]=="string"?this[ou]+"-":"";this.lineCount=Kj(r+"--"+this[Op]).split(`
|
|
36
|
-
`).reduce((n,i)=>n+Math.max(1,Math.ceil(
|
|
32
|
+
`,i)}while(n!==-1);return s+=t.substr(i),s};d1.exports={stringReplaceAll:W3,stringEncaseCRLFWithFirstIndex:z3}});var v1=y((AK,_1)=>{"use strict";l();var Y3=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,m1=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,K3=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Z3=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,J3=new Map([["n",`
|
|
33
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function y1(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):J3.get(t)||t}function X3(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(K3))r.push(i[2].replace(Z3,(a,c,u)=>c?y1(c):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function Q3(t){m1.lastIndex=0;let e=[],r;for(;(r=m1.exec(t))!==null;){let n=r[1];if(r[2]){let i=X3(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function g1(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(!!Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}_1.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Y3,(s,o,a,c,u,f)=>{if(o)i.push(y1(o));else if(c){let h=i.join("");i=[],n.push(r.length===0?h:g1(t,r)(h)),r.push({inverse:a,styles:Q3(c)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(g1(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var S1=y((RK,x1)=>{"use strict";l();var $o=op(),{stdout:fp,stderr:hp}=up(),{stringReplaceAll:ej,stringEncaseCRLFWithFirstIndex:tj}=p1(),b1=["ansi","ansi","ansi256","ansi16m"],is=Object.create(null),rj=(t,e={})=>{if(e.level>3||e.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=fp?fp.level:0;t.level=e.level===void 0?r:e.level},dp=class{constructor(e){return E1(e)}},E1=t=>{let e={};return rj(e,t),e.template=(...r)=>sj(e.template,...r),Object.setPrototypeOf(e,Hc.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=dp,e.template};function Hc(t){return E1(t)}for(let[t,e]of Object.entries($o))is[t]={get(){let r=$c(this,pp(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};is.visible={get(){let t=$c(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var w1=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of w1)is[t]={get(){let{level:e}=this;return function(...r){let n=pp($o.color[b1[e]][t](...r),$o.color.close,this._styler);return $c(this,n,this._isEmpty)}}};for(let t of w1){let e="bg"+t[0].toUpperCase()+t.slice(1);is[e]={get(){let{level:r}=this;return function(...n){let i=pp($o.bgColor[b1[r]][t](...n),$o.bgColor.close,this._styler);return $c(this,i,this._isEmpty)}}}}var nj=Object.defineProperties(()=>{},{...is,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),pp=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},$c=(t,e,r)=>{let n=(...i)=>ij(n,i.length===1?""+i[0]:i.join(" "));return n.__proto__=nj,n._generator=t,n._styler=e,n._isEmpty=r,n},ij=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=ej(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
34
|
+
`);return s!==-1&&(e=tj(e,i,n,s)),n+e+i},lp,sj=(t,...e)=>{let[r]=e;if(!Array.isArray(r))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return lp===void 0&&(lp=v1()),lp(t,i.join(""))};Object.defineProperties(Hc.prototype,is);var Uo=Hc();Uo.supportsColor=fp;Uo.stderr=Hc({level:hp?hp.level:0});Uo.stderr.supportsColor=hp;Uo.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};x1.exports=Uo});var R1=y((CK,mp)=>{"use strict";l();var A1=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};mp.exports=A1;mp.exports.default=A1});var gp=y((OK,Gc)=>{"use strict";l();var oj=R1(),Uc=new WeakMap,C1=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Uc.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return oj(s,t),Uc.set(s,n),s};Gc.exports=C1;Gc.exports.default=C1;Gc.exports.callCount=t=>{if(!Uc.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Uc.get(t)}});var O1=y((TK,Vc)=>{l();Vc.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Vc.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Vc.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var vp=y((kK,as)=>{l();var Ie=global.process,si=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};si(Ie)?(T1=require("assert"),ss=O1(),k1=/^win/i.test(Ie.platform),Go=require("events"),typeof Go!="function"&&(Go=Go.EventEmitter),Ie.__signal_exit_emitter__?Ye=Ie.__signal_exit_emitter__:(Ye=Ie.__signal_exit_emitter__=new Go,Ye.count=0,Ye.emitted={}),Ye.infinite||(Ye.setMaxListeners(1/0),Ye.infinite=!0),as.exports=function(t,e){if(!si(global.process))return function(){};T1.equal(typeof t,"function","a callback must be provided for exit handler"),os===!1&&yp();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Ye.removeListener(r,t),Ye.listeners("exit").length===0&&Ye.listeners("afterexit").length===0&&Wc()};return Ye.on(r,t),n},Wc=function(){!os||!si(global.process)||(os=!1,ss.forEach(function(e){try{Ie.removeListener(e,zc[e])}catch{}}),Ie.emit=Yc,Ie.reallyExit=_p,Ye.count-=1)},as.exports.unload=Wc,oi=function(e,r,n){Ye.emitted[e]||(Ye.emitted[e]=!0,Ye.emit(e,r,n))},zc={},ss.forEach(function(t){zc[t]=function(){if(!!si(global.process)){var r=Ie.listeners(t);r.length===Ye.count&&(Wc(),oi("exit",null,t),oi("afterexit",null,t),k1&&t==="SIGHUP"&&(t="SIGINT"),Ie.kill(Ie.pid,t))}}}),as.exports.signals=function(){return ss},os=!1,yp=function(){os||!si(global.process)||(os=!0,Ye.count+=1,ss=ss.filter(function(e){try{return Ie.on(e,zc[e]),!0}catch{return!1}}),Ie.emit=I1,Ie.reallyExit=P1)},as.exports.load=yp,_p=Ie.reallyExit,P1=function(e){!si(global.process)||(Ie.exitCode=e||0,oi("exit",Ie.exitCode,null),oi("afterexit",Ie.exitCode,null),_p.call(Ie,Ie.exitCode))},Yc=Ie.emit,I1=function(e,r){if(e==="exit"&&si(global.process)){r!==void 0&&(Ie.exitCode=r);var n=Yc.apply(this,arguments);return oi("exit",Ie.exitCode,null),oi("afterexit",Ie.exitCode,null),n}else return Yc.apply(this,arguments)}):as.exports=function(){return function(){}};var T1,ss,k1,Go,Ye,Wc,oi,zc,os,yp,_p,P1,Yc,I1});var N1=y((PK,L1)=>{"use strict";l();var aj=gp(),cj=vp();L1.exports=aj(()=>{cj(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var D1=y(cs=>{"use strict";l();var uj=N1(),Kc=!1;cs.show=(t=process.stderr)=>{!t.isTTY||(Kc=!1,t.write("\x1B[?25h"))};cs.hide=(t=process.stderr)=>{!t.isTTY||(uj(),Kc=!0,t.write("\x1B[?25l"))};cs.toggle=(t,e)=>{t!==void 0&&(Kc=t),Kc?cs.show(e):cs.hide(e)}});var M1=y((LK,lj)=>{lj.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var B1=y((NK,q1)=>{"use strict";l();var Zc=Object.assign({},M1()),F1=Object.keys(Zc);Object.defineProperty(Zc,"random",{get(){let t=Math.floor(Math.random()*F1.length),e=F1[t];return Zc[e]}});q1.exports=Zc});var H1=y((DK,j1)=>{"use strict";l();var fj=/[|\\{}()[\]^$+*?.]/g;j1.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(fj,"\\$&")}});var U1=y((MK,$1)=>{"use strict";l();$1.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var bp=y((FK,z1)=>{l();var ai=U1(),W1={};for(Jc in ai)ai.hasOwnProperty(Jc)&&(W1[ai[Jc]]=Jc);var Jc,W=z1.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(gt in W)if(W.hasOwnProperty(gt)){if(!("channels"in W[gt]))throw new Error("missing channels property: "+gt);if(!("labels"in W[gt]))throw new Error("missing channel labels property: "+gt);if(W[gt].labels.length!==W[gt].channels)throw new Error("channel and label counts mismatch: "+gt);G1=W[gt].channels,V1=W[gt].labels,delete W[gt].channels,delete W[gt].labels,Object.defineProperty(W[gt],"channels",{value:G1}),Object.defineProperty(W[gt],"labels",{value:V1})}var G1,V1,gt;W.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c,u;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),u=(i+s)/2,s===i?c=0:u<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,u*100]};W.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,u=Math.max(o,a,c),f=u-Math.min(o,a,c),h=function(d){return(u-d)/6/f+1/2};return f===0?i=s=0:(s=f/u,e=h(o),r=h(a),n=h(c),o===u?i=n-r:a===u?i=1/3+e-n:c===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};W.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=W.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};W.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function hj(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}W.rgb.keyword=function(t){var e=W1[t];if(e)return e;var r=1/0,n;for(var i in ai)if(ai.hasOwnProperty(i)){var s=ai[i],o=hj(t,s);o<r&&(r=o,n=i)}return n};W.keyword.rgb=function(t){return ai[t]};W.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};W.rgb.lab=function(t){var e=W.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};W.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,c;if(r===0)return c=n*255,[c,c,c];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var u=0;u<3;u++)o=e+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?c=i+(s-i)*6*o:2*o<1?c=s:3*o<2?c=i+(s-i)*(2/3-o)*6:c=i,a[u]=c*255;return a};W.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};W.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};W.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};W.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,c;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,(s&1)!==0&&(a=1-a),c=r+a*(o-r);var u,f,h;switch(s){default:case 6:case 0:u=o,f=c,h=r;break;case 1:u=c,f=o,h=r;break;case 2:u=r,f=o,h=c;break;case 3:u=r,f=c,h=o;break;case 4:u=c,f=r,h=o;break;case 5:u=o,f=r,h=c;break}return[u*255,f*255,h*255]};W.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};W.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};W.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};W.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),c=Math.pow(i,3),u=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};W.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};W.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};W.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:W.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};W.hsv.ansi16=function(t){return W.rgb.ansi16(W.hsv.rgb(t),t[2])};W.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};W.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};W.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};W.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};W.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};W.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o+4,c/=6,c%=1,[c*360,o*100,a*100]};W.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};W.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};W.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};W.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};W.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};W.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};W.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};W.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};W.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};W.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};W.gray.hsl=W.gray.hsv=function(t){return[0,0,t[0]]};W.gray.hwb=function(t){return[0,100,t[0]]};W.gray.cmyk=function(t){return[0,0,0,t[0]]};W.gray.lab=function(t){return[t[0],0,0]};W.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};W.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var K1=y((qK,Y1)=>{l();var Xc=bp();function dj(){for(var t={},e=Object.keys(Xc),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function pj(t){var e=dj(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Xc[n]),s=i.length,o=0;o<s;o++){var a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}return e}function mj(t,e){return function(r){return e(t(r))}}function gj(t,e){for(var r=[e[t].parent,t],n=Xc[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=mj(Xc[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}Y1.exports=function(t){for(var e=pj(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=gj(o,e))}return r}});var J1=y((BK,Z1)=>{l();var Ep=bp(),yj=K1(),us={},_j=Object.keys(Ep);function vj(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function bj(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}_j.forEach(function(t){us[t]={},Object.defineProperty(us[t],"channels",{value:Ep[t].channels}),Object.defineProperty(us[t],"labels",{value:Ep[t].labels});var e=yj(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];us[t][n]=bj(i),us[t][n].raw=vj(i)})});Z1.exports=us});var Q1=y((jK,X1)=>{"use strict";l();var ls=J1(),Qc=(t,e)=>function(){return`\x1B[${t.apply(ls,arguments)+e}m`},eu=(t,e)=>function(){let r=t.apply(ls,arguments);return`\x1B[${38+e};5;${r}m`},tu=(t,e)=>function(){let r=t.apply(ls,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function Ej(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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],gray:[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.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:Qc(r,0)},e.color.ansi256={ansi256:eu(r,0)},e.color.ansi16m={rgb:tu(n,0)},e.bgColor.ansi={ansi:Qc(r,10)},e.bgColor.ansi256={ansi256:eu(r,10)},e.bgColor.ansi16m={rgb:tu(n,10)};for(let i of Object.keys(ls)){if(typeof ls[i]!="object")continue;let s=ls[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=Qc(s.ansi16,0),e.bgColor.ansi[i]=Qc(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=eu(s.ansi256,0),e.bgColor.ansi256[i]=eu(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=tu(s.rgb,0),e.bgColor.ansi16m[i]=tu(s.rgb,10))}return e}Object.defineProperty(X1,"exports",{enumerable:!0,get:Ej})});var tS=y((HK,eS)=>{"use strict";l();eS.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var nS=y(($K,rS)=>{"use strict";l();var wj=require("os"),ur=tS(),at=process.env,fs;ur("no-color")||ur("no-colors")||ur("color=false")?fs=!1:(ur("color")||ur("colors")||ur("color=true")||ur("color=always"))&&(fs=!0);"FORCE_COLOR"in at&&(fs=at.FORCE_COLOR.length===0||parseInt(at.FORCE_COLOR,10)!==0);function xj(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Sj(t){if(fs===!1)return 0;if(ur("color=16m")||ur("color=full")||ur("color=truecolor"))return 3;if(ur("color=256"))return 2;if(t&&!t.isTTY&&fs!==!0)return 0;let e=fs?1:0;if(process.platform==="win32"){let r=wj.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in at)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in at)||at.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in at)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(at.TEAMCITY_VERSION)?1:0;if(at.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in at){let r=parseInt((at.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(at.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(at.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(at.TERM)||"COLORTERM"in at?1:(at.TERM==="dumb",e)}function wp(t){let e=Sj(t);return xj(e)}rS.exports={supportsColor:wp,stdout:wp(process.stdout),stderr:wp(process.stderr)}});var cS=y((UK,aS)=>{"use strict";l();var Aj=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,iS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Rj=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Cj=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Oj=new Map([["n",`
|
|
35
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function oS(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):Oj.get(t)||t}function Tj(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(Rj))r.push(i[2].replace(Cj,(o,a,c)=>a?oS(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function kj(t){iS.lastIndex=0;let e=[],r;for(;(r=iS.exec(t))!==null;){let n=r[1];if(r[2]){let i=Tj(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function sS(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}aS.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Aj,(s,o,a,c,u,f)=>{if(o)i.push(oS(o));else if(c){let h=i.join("");i=[],n.push(r.length===0?h:sS(t,r)(h)),r.push({inverse:a,styles:kj(c)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(sS(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var dS=y((GK,Wo)=>{"use strict";l();var Sp=H1(),$e=Q1(),xp=nS().stdout,Pj=cS(),lS=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),fS=["ansi","ansi","ansi256","ansi16m"],hS=new Set(["gray"]),hs=Object.create(null);function uS(t,e){e=e||{};let r=xp?xp.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function Vo(t){if(!this||!(this instanceof Vo)||this.template){let e={};return uS(e,t),e.template=function(){let r=[].slice.call(arguments);return Nj.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,Vo.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=Vo,e.template}uS(this,t)}lS&&($e.blue.open="\x1B[94m");for(let t of Object.keys($e))$e[t].closeRe=new RegExp(Sp($e[t].close),"g"),hs[t]={get(){let e=$e[t];return ru.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};hs.visible={get(){return ru.call(this,this._styles||[],!0,"visible")}};$e.color.closeRe=new RegExp(Sp($e.color.close),"g");for(let t of Object.keys($e.color.ansi))hS.has(t)||(hs[t]={get(){let e=this.level;return function(){let n={open:$e.color[fS[e]][t].apply(null,arguments),close:$e.color.close,closeRe:$e.color.closeRe};return ru.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});$e.bgColor.closeRe=new RegExp(Sp($e.bgColor.close),"g");for(let t of Object.keys($e.bgColor.ansi)){if(hS.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);hs[e]={get(){let r=this.level;return function(){let i={open:$e.bgColor[fS[r]][t].apply(null,arguments),close:$e.bgColor.close,closeRe:$e.bgColor.closeRe};return ru.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var Ij=Object.defineProperties(()=>{},hs);function ru(t,e,r){let n=function(){return Lj.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=Ij,n}function Lj(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=$e.dim.open;lS&&this.hasGrey&&($e.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return $e.dim.open=n,r}function Nj(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return Pj(t,n.join(""))}Object.defineProperties(Vo.prototype,hs);Wo.exports=Vo();Wo.exports.supportsColor=xp;Wo.exports.default=Wo.exports});var mS=y((VK,pS)=>{"use strict";l();var Sn=dS(),Dj=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",Mj={info:Sn.blue("\u2139"),success:Sn.green("\u2714"),warning:Sn.yellow("\u26A0"),error:Sn.red("\u2716")},Fj={info:Sn.blue("i"),success:Sn.green("\u221A"),warning:Sn.yellow("\u203C"),error:Sn.red("\xD7")};pS.exports=Dj?Mj:Fj});var yS=y((WK,gS)=>{"use strict";l();gS.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var vS=y((zK,_S)=>{"use strict";l();var qj=yS();_S.exports=t=>typeof t=="string"?t.replace(qj(),""):t});var bS=y((YK,nu)=>{l();var Bj=function(){"use strict";function t(o,a,c,u){var f;typeof a=="object"&&(c=a.depth,u=a.prototype,f=a.filter,a=a.circular);var h=[],d=[],g=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof c>"u"&&(c=1/0);function m(E,v){if(E===null)return null;if(v==0)return E;var A,P;if(typeof E!="object")return E;if(t.__isArray(E))A=[];else if(t.__isRegExp(E))A=new RegExp(E.source,s(E)),E.lastIndex&&(A.lastIndex=E.lastIndex);else if(t.__isDate(E))A=new Date(E.getTime());else{if(g&&Buffer.isBuffer(E))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(E.length):A=new Buffer(E.length),E.copy(A),A;typeof u>"u"?(P=Object.getPrototypeOf(E),A=Object.create(P)):(A=Object.create(u),P=u)}if(a){var D=h.indexOf(E);if(D!=-1)return d[D];h.push(E),d.push(A)}for(var ie in E){var z;P&&(z=Object.getOwnPropertyDescriptor(P,ie)),!(z&&z.set==null)&&(A[ie]=m(E[ie],v-1))}return A}return m(o,c)}t.clonePrototype=function(a){if(a===null)return null;var c=function(){};return c.prototype=a,new c};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof nu=="object"&&nu.exports&&(nu.exports=Bj)});var wS=y((KK,ES)=>{l();var jj=bS();ES.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=jj(e[r]))}),t}});var SS=y((ZK,xS)=>{l();xS.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var OS=y((JK,Ap)=>{"use strict";l();var Hj=wS(),zo=SS(),RS={nul:0,control:0};Ap.exports=function(e){return CS(e,RS)};Ap.exports.config=function(t){return t=Hj(t||{},RS),function(r){return CS(r,t)}};function CS(t,e){if(typeof t!="string")return AS(t,e);for(var r=0,n=0;n<t.length;n++){var i=AS(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function AS(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:$j(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function $j(t){var e=0,r=zo.length-1,n;if(t<zo[0][0]||t>zo[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>zo[n][1])e=n+1;else if(t<zo[n][0])r=n-1;else return!0;return!1}});var kS=y((XK,TS)=>{"use strict";l();TS.exports=({stream:t=process.stdout}={})=>Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var IS=y((QK,PS)=>{l();var Rp=require("stream");PS.exports=Ke;function Ke(t){Rp.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}Ke.prototype=Object.create(Rp.prototype);Object.defineProperty(Ke.prototype,"constructor",{value:Ke,enumerable:!1});Ke.prototype.mute=function(){this.muted=!0};Ke.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ke.prototype,"_onpipe",{value:Uj,enumerable:!1,writable:!0,configurable:!0});function Uj(t){this._src=t}Object.defineProperty(Ke.prototype,"isTTY",{get:Gj,set:Vj,enumerable:!0,configurable:!0});function Gj(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function Vj(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ke.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ke.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ke.prototype.pipe=function(t,e){return this._dest=t,Rp.prototype.pipe.call(this,t,e)};Ke.prototype.pause=function(){if(this._src)return this._src.pause()};Ke.prototype.resume=function(){if(this._src)return this._src.resume()};Ke.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)};Ke.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function Cp(t){return function(){var e=this._dest,r=this._src;e&&e[t]&&e[t].apply(e,arguments),r&&r[t]&&r[t].apply(r,arguments)}}Ke.prototype.destroy=Cp("destroy");Ke.prototype.destroySoon=Cp("destroySoon");Ke.prototype.close=Cp("close")});var NS=y((eZ,kp)=>{"use strict";l();var Wj=require("readline"),zj=S1(),LS=D1(),iu=B1(),su=mS(),Yj=vS(),Kj=OS(),Zj=kS(),Jj=IS(),Op=Symbol("text"),ou=Symbol("prefixText"),Xj=3,Tp=class{constructor(){this.requests=0,this.mutedStream=new Jj,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(Xj)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=Wj.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},au,cu=class{constructor(e){au||(au=new Tp),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:Zj({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(process.platform==="win32")this._spinner=iu.line;else if(e===void 0)this._spinner=iu.dots;else if(iu[e])this._spinner=iu[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Op]}get prefixText(){return this[ou]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[ou]=="string"?this[ou]+"-":"";this.lineCount=Yj(r+"--"+this[Op]).split(`
|
|
36
|
+
`).reduce((n,i)=>n+Math.max(1,Math.ceil(Kj(i)/e)),0)}set text(e){this[Op]=e,this.updateLineCount()}set prefixText(e){this[ou]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=zj[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(e){return e&&(this.text=e),this.isEnabled?this.isSpinning?this:(this.hideCursor&&LS.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,au.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
37
37
|
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&LS.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(au.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:su.success,text:e})}fail(e){return this.stopAndPersist({symbol:su.error,text:e})}warn(e){return this.stopAndPersist({symbol:su.warning,text:e})}info(e){return this.stopAndPersist({symbol:su.info,text:e})}stopAndPersist(e={}){let r=e.prefixText||this.prefixText,n=typeof r=="string"&&r!==""?r+" ":"",i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${e.symbol||" "}${s}
|
|
38
|
-
`),this}},
|
|
38
|
+
`),this}},Qj=function(t){return new cu(t)};kp.exports=Qj;kp.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new cu(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var MS=y((tZ,DS)=>{"use strict";l();var eH=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},tH=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
|
|
39
39
|
`:`
|
|
40
40
|
`)+r,i=n+1,n=t.indexOf(`
|
|
41
|
-
`,i)}while(n!==-1);return s+=t.substr(i),s};DS.exports={stringReplaceAll:
|
|
42
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function BS(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):
|
|
43
|
-
`);return s!==-1&&(e=lH(e,i,n,s)),n+e+i},Pp,WS=(t,...e)=>{let[r]=e;if(!uu(r)||!uu(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Pp===void 0&&(Pp=HS()),Pp(t,i.join(""))};Object.defineProperties(lu.prototype,ds);var hu=lu();hu.supportsColor=Ip;hu.stderr=lu({level:Lp?Lp.level:0});hu.stderr.supportsColor=Lp;zS.exports=hu});var KS=y((iZ,du)=>{l();(function(t){var e=/^\s+/,r=/\s+$/,n=0,i=t.round,s=t.min,o=t.max,a=t.random;function c(_,S){if(_=_||"",S=S||{},_ instanceof c)return _;if(!(this instanceof c))return new c(_,S);var b=u(_);this._originalInput=_,this._r=b.r,this._g=b.g,this._b=b.b,this._a=b.a,this._roundA=i(100*this._a)/100,this._format=S.format||b.format,this._gradientType=S.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=b.ok,this._tc_id=n++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var _=this.toRgb();return(_.r*299+_.g*587+_.b*114)/1e3},getLuminance:function(){var _=this.toRgb(),S,b,L,$,H,ye;return S=_.r/255,b=_.g/255,L=_.b/255,S<=.03928?$=S/12.92:$=t.pow((S+.055)/1.055,2.4),b<=.03928?H=b/12.92:H=t.pow((b+.055)/1.055,2.4),L<=.03928?ye=L/12.92:ye=t.pow((L+.055)/1.055,2.4),.2126*$+.7152*H+.0722*ye},setAlpha:function(_){return this._a=k(_),this._roundA=i(100*this._a)/100,this},toHsv:function(){var _=g(this._r,this._g,this._b);return{h:_.h*360,s:_.s,v:_.v,a:this._a}},toHsvString:function(){var _=g(this._r,this._g,this._b),S=i(_.h*360),b=i(_.s*100),L=i(_.v*100);return this._a==1?"hsv("+S+", "+b+"%, "+L+"%)":"hsva("+S+", "+b+"%, "+L+"%, "+this._roundA+")"},toHsl:function(){var _=h(this._r,this._g,this._b);return{h:_.h*360,s:_.s,l:_.l,a:this._a}},toHslString:function(){var _=h(this._r,this._g,this._b),S=i(_.h*360),b=i(_.s*100),L=i(_.l*100);return this._a==1?"hsl("+S+", "+b+"%, "+L+"%)":"hsla("+S+", "+b+"%, "+L+"%, "+this._roundA+")"},toHex:function(_){return E(this._r,this._g,this._b,_)},toHexString:function(_){return"#"+this.toHex(_)},toHex8:function(_){return v(this._r,this._g,this._b,this._a,_)},toHex8String:function(_){return"#"+this.toHex8(_)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(I(this._r,255)*100)+"%",g:i(I(this._g,255)*100)+"%",b:i(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(I(this._r,255)*100)+"%, "+i(I(this._g,255)*100)+"%, "+i(I(this._b,255)*100)+"%)":"rgba("+i(I(this._r,255)*100)+"%, "+i(I(this._g,255)*100)+"%, "+i(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:x[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(_){var S="#"+A(this._r,this._g,this._b,this._a),b=S,L=this._gradientType?"GradientType = 1, ":"";if(_){var $=c(_);b="#"+A($._r,$._g,$._b,$._a)}return"progid:DXImageTransform.Microsoft.gradient("+L+"startColorstr="+S+",endColorstr="+b+")"},toString:function(_){var S=!!_;_=_||this._format;var b=!1,L=this._a<1&&this._a>=0,$=!S&&L&&(_==="hex"||_==="hex6"||_==="hex3"||_==="hex4"||_==="hex8"||_==="name");return $?_==="name"&&this._a===0?this.toName():this.toRgbString():(_==="rgb"&&(b=this.toRgbString()),_==="prgb"&&(b=this.toPercentageRgbString()),(_==="hex"||_==="hex6")&&(b=this.toHexString()),_==="hex3"&&(b=this.toHexString(!0)),_==="hex4"&&(b=this.toHex8String(!0)),_==="hex8"&&(b=this.toHex8String()),_==="name"&&(b=this.toName()),_==="hsl"&&(b=this.toHslString()),_==="hsv"&&(b=this.toHsvString()),b||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(_,S){var b=_.apply(null,[this].concat([].slice.call(S)));return this._r=b._r,this._g=b._g,this._b=b._b,this.setAlpha(b._a),this},lighten:function(){return this._applyModification(z,arguments)},brighten:function(){return this._applyModification(ue,arguments)},darken:function(){return this._applyModification(K,arguments)},desaturate:function(){return this._applyModification(P,arguments)},saturate:function(){return this._applyModification(D,arguments)},greyscale:function(){return this._applyModification(ie,arguments)},spin:function(){return this._applyModification(Z,arguments)},_applyCombination:function(_,S){return _.apply(null,[this].concat([].slice.call(S)))},analogous:function(){return this._applyCombination(ee,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(fe,arguments)},splitcomplement:function(){return this._applyCombination(ne,arguments)},triad:function(){return this._applyCombination(Q,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},c.fromRatio=function(_,S){if(typeof _=="object"){var b={};for(var L in _)_.hasOwnProperty(L)&&(L==="a"?b[L]=_[L]:b[L]=De(_[L]));_=b}return c(_,S)};function u(_){var S={r:0,g:0,b:0},b=1,L=null,$=null,H=null,ye=!1,Le=!1;return typeof _=="string"&&(_=Ee(_)),typeof _=="object"&&(B(_.r)&&B(_.g)&&B(_.b)?(S=f(_.r,_.g,_.b),ye=!0,Le=String(_.r).substr(-1)==="%"?"prgb":"rgb"):B(_.h)&&B(_.s)&&B(_.v)?(L=De(_.s),$=De(_.v),S=m(_.h,L,$),ye=!0,Le="hsv"):B(_.h)&&B(_.s)&&B(_.l)&&(L=De(_.s),H=De(_.l),S=d(_.h,L,H),ye=!0,Le="hsl"),_.hasOwnProperty("a")&&(b=_.a)),b=k(b),{ok:ye,format:_.format||Le,r:s(255,o(S.r,0)),g:s(255,o(S.g,0)),b:s(255,o(S.b,0)),a:b}}function f(_,S,b){return{r:I(_,255)*255,g:I(S,255)*255,b:I(b,255)*255}}function h(_,S,b){_=I(_,255),S=I(S,255),b=I(b,255);var L=o(_,S,b),$=s(_,S,b),H,ye,Le=(L+$)/2;if(L==$)H=ye=0;else{var Me=L-$;switch(ye=Le>.5?Me/(2-L-$):Me/(L+$),L){case _:H=(S-b)/Me+(S<b?6:0);break;case S:H=(b-_)/Me+2;break;case b:H=(_-S)/Me+4;break}H/=6}return{h:H,s:ye,l:Le}}function d(_,S,b){var L,$,H;_=I(_,360),S=I(S,100),b=I(b,100);function ye(Ut,ho,ar){return ar<0&&(ar+=1),ar>1&&(ar-=1),ar<1/6?Ut+(ho-Ut)*6*ar:ar<1/2?ho:ar<2/3?Ut+(ho-Ut)*(2/3-ar)*6:Ut}if(S===0)L=$=H=b;else{var Le=b<.5?b*(1+S):b+S-b*S,Me=2*b-Le;L=ye(Me,Le,_+1/3),$=ye(Me,Le,_),H=ye(Me,Le,_-1/3)}return{r:L*255,g:$*255,b:H*255}}function g(_,S,b){_=I(_,255),S=I(S,255),b=I(b,255);var L=o(_,S,b),$=s(_,S,b),H,ye,Le=L,Me=L-$;if(ye=L===0?0:Me/L,L==$)H=0;else{switch(L){case _:H=(S-b)/Me+(S<b?6:0);break;case S:H=(b-_)/Me+2;break;case b:H=(_-S)/Me+4;break}H/=6}return{h:H,s:ye,v:Le}}function m(_,S,b){_=I(_,360)*6,S=I(S,100),b=I(b,100);var L=t.floor(_),$=_-L,H=b*(1-S),ye=b*(1-$*S),Le=b*(1-(1-$)*S),Me=L%6,Ut=[b,ye,H,H,Le,b][Me],ho=[Le,b,b,ye,H,H][Me],ar=[H,H,Le,b,b,ye][Me];return{r:Ut*255,g:ho*255,b:ar*255}}function E(_,S,b,L){var $=[ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16))];return L&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0):$.join("")}function v(_,S,b,L,$){var H=[ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16)),ge(re(L))];return $&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)&&H[3].charAt(0)==H[3].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0)+H[3].charAt(0):H.join("")}function A(_,S,b,L){var $=[ge(re(L)),ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16))];return $.join("")}c.equals=function(_,S){return!_||!S?!1:c(_).toRgbString()==c(S).toRgbString()},c.random=function(){return c.fromRatio({r:a(),g:a(),b:a()})};function P(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.s-=S/100,b.s=Y(b.s),c(b)}function D(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.s+=S/100,b.s=Y(b.s),c(b)}function ie(_){return c(_).desaturate(100)}function z(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.l+=S/100,b.l=Y(b.l),c(b)}function ue(_,S){S=S===0?0:S||10;var b=c(_).toRgb();return b.r=o(0,s(255,b.r-i(255*-(S/100)))),b.g=o(0,s(255,b.g-i(255*-(S/100)))),b.b=o(0,s(255,b.b-i(255*-(S/100)))),c(b)}function K(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.l-=S/100,b.l=Y(b.l),c(b)}function Z(_,S){var b=c(_).toHsl(),L=(b.h+S)%360;return b.h=L<0?360+L:L,c(b)}function F(_){var S=c(_).toHsl();return S.h=(S.h+180)%360,c(S)}function Q(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+120)%360,s:S.s,l:S.l}),c({h:(b+240)%360,s:S.s,l:S.l})]}function C(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+90)%360,s:S.s,l:S.l}),c({h:(b+180)%360,s:S.s,l:S.l}),c({h:(b+270)%360,s:S.s,l:S.l})]}function ne(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+72)%360,s:S.s,l:S.l}),c({h:(b+216)%360,s:S.s,l:S.l})]}function ee(_,S,b){S=S||6,b=b||30;var L=c(_).toHsl(),$=360/b,H=[c(_)];for(L.h=(L.h-($*S>>1)+720)%360;--S;)L.h=(L.h+$)%360,H.push(c(L));return H}function fe(_,S){S=S||6;for(var b=c(_).toHsv(),L=b.h,$=b.s,H=b.v,ye=[],Le=1/S;S--;)ye.push(c({h:L,s:$,v:H})),H=(H+Le)%1;return ye}c.mix=function(_,S,b){b=b===0?0:b||50;var L=c(_).toRgb(),$=c(S).toRgb(),H=b/100,ye={r:($.r-L.r)*H+L.r,g:($.g-L.g)*H+L.g,b:($.b-L.b)*H+L.b,a:($.a-L.a)*H+L.a};return c(ye)},c.readability=function(_,S){var b=c(_),L=c(S);return(t.max(b.getLuminance(),L.getLuminance())+.05)/(t.min(b.getLuminance(),L.getLuminance())+.05)},c.isReadable=function(_,S,b){var L=c.readability(_,S),$,H;switch(H=!1,$=q(b),$.level+$.size){case"AAsmall":case"AAAlarge":H=L>=4.5;break;case"AAlarge":H=L>=3;break;case"AAAsmall":H=L>=7;break}return H},c.mostReadable=function(_,S,b){var L=null,$=0,H,ye,Le,Me;b=b||{},ye=b.includeFallbackColors,Le=b.level,Me=b.size;for(var Ut=0;Ut<S.length;Ut++)H=c.readability(_,S[Ut]),H>$&&($=H,L=c(S[Ut]));return c.isReadable(_,L,{level:Le,size:Me})||!ye?L:(b.includeFallbackColors=!1,c.mostReadable(_,["#fff","#000"],b))};var R=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=c.hexNames=T(R);function T(_){var S={};for(var b in _)_.hasOwnProperty(b)&&(S[_[b]]=b);return S}function k(_){return _=parseFloat(_),(isNaN(_)||_<0||_>1)&&(_=1),_}function I(_,S){ve(_)&&(_="100%");var b=Ue(_);return _=s(S,o(0,parseFloat(_))),b&&(_=parseInt(_*S,10)/100),t.abs(_-S)<1e-6?1:_%S/parseFloat(S)}function Y(_){return s(1,o(0,_))}function j(_){return parseInt(_,16)}function ve(_){return typeof _=="string"&&_.indexOf(".")!=-1&&parseFloat(_)===1}function Ue(_){return typeof _=="string"&&_.indexOf("%")!=-1}function ge(_){return _.length==1?"0"+_:""+_}function De(_){return _<=1&&(_=_*100+"%"),_}function re(_){return t.round(parseFloat(_)*255).toString(16)}function pt(_){return j(_)/255}var kt=function(){var _="[-\\+]?\\d+%?",S="[-\\+]?\\d*\\.\\d+%?",b="(?:"+S+")|(?:"+_+")",L="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?",$="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?";return{CSS_UNIT:new RegExp(b),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function B(_){return!!kt.CSS_UNIT.exec(_)}function Ee(_){_=_.replace(e,"").replace(r,"").toLowerCase();var S=!1;if(R[_])_=R[_],S=!0;else if(_=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var b;return(b=kt.rgb.exec(_))?{r:b[1],g:b[2],b:b[3]}:(b=kt.rgba.exec(_))?{r:b[1],g:b[2],b:b[3],a:b[4]}:(b=kt.hsl.exec(_))?{h:b[1],s:b[2],l:b[3]}:(b=kt.hsla.exec(_))?{h:b[1],s:b[2],l:b[3],a:b[4]}:(b=kt.hsv.exec(_))?{h:b[1],s:b[2],v:b[3]}:(b=kt.hsva.exec(_))?{h:b[1],s:b[2],v:b[3],a:b[4]}:(b=kt.hex8.exec(_))?{r:j(b[1]),g:j(b[2]),b:j(b[3]),a:pt(b[4]),format:S?"name":"hex8"}:(b=kt.hex6.exec(_))?{r:j(b[1]),g:j(b[2]),b:j(b[3]),format:S?"name":"hex"}:(b=kt.hex4.exec(_))?{r:j(b[1]+""+b[1]),g:j(b[2]+""+b[2]),b:j(b[3]+""+b[3]),a:pt(b[4]+""+b[4]),format:S?"name":"hex8"}:(b=kt.hex3.exec(_))?{r:j(b[1]+""+b[1]),g:j(b[2]+""+b[2]),b:j(b[3]+""+b[3]),format:S?"name":"hex"}:!1}function q(_){var S,b;return _=_||{level:"AA",size:"small"},S=(_.level||"AA").toUpperCase(),b=(_.size||"small").toLowerCase(),S!=="AA"&&S!=="AAA"&&(S="AA"),b!=="small"&&b!=="large"&&(b="small"),{level:S,size:b}}typeof du<"u"&&du.exports?du.exports=c:typeof define=="function"&&define.amd?define(function(){return c}):window.tinycolor=c})(Math)});var rA=y((sZ,tA)=>{l();var Ko=KS(),QS={r:256,g:256,b:256,a:1},eA={h:360,s:1,v:1,a:1};function Fp(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function qp(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Mp(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=Fp(n,i,r),o=[t.color];for(let a=1;a<r;a++){let c=qp(s,n,a,QS);o.push(Ko(c))}return o}function ZS(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Mp(t,e,r);let o;if(typeof n=="boolean")o=n;else{let f=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&f||n==="short"&&!f}let a=Fp(i,s,r),c=[t.color],u;i.h<=s.h&&!o||i.h>=s.h&&o?u=s.h-i.h:o?u=360-s.h+i.h:u=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(u)/r;for(let f=1;f<r;f++){let h=qp(a,i,f,eA);c.push(Ko(h))}return c}function JS(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function XS(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let c=0,u=t.length;c<u-1;c++)if(e>=t[c].pos&&e<t[c+1].pos){i=t[c],s=t[c+1];break}i||(i=s=t[t.length-1]);let o=Fp(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=qp(o,i.color[r](),(e-i.pos)*100,n);return Ko(a)}var ps=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let c=o.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let u=o.color!==void 0;if(!u&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!u,o={color:u?Ko(o.color):null,colorLess:!u,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:Ko(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new ps(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new ps(e.concat(r.reverse()))}rgb(e){let r=JS(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Mp(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Mp(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=JS(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=ZS(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=ZS(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return XS(this.stops,e,"toRgb",QS)}hsvAt(e){return XS(this.stops,e,"toHsv",eA)}};tA.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new ps(t)}});var aA=y((oZ,pu)=>{"use strict";l();var iA=YS(),dH=rA(),nA=/\s/g;function Bp(...t){let e=dH.apply(this,t),r=(n,i)=>pH(n?n.toString():"",e,i);return r.multiline=(n,i)=>mH(n?n.toString():"",e,i),r}var sA=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function pH(t,e,r){let n=oA(r),i=Math.max(t.replace(nA,"").length,e.stops.length),s=sA(e,n,i),o="";for(let a of t)o+=a.match(nA)?a:iA.hex(s.shift().toHex())(a);return o}function mH(t,e,r){let n=oA(r),i=t.split(`
|
|
41
|
+
`,i)}while(n!==-1);return s+=t.substr(i),s};DS.exports={stringReplaceAll:eH,stringEncaseCRLFWithFirstIndex:tH}});var HS=y((rZ,jS)=>{"use strict";l();var rH=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,FS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,nH=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,iH=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,sH=new Map([["n",`
|
|
42
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function BS(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):sH.get(t)||t}function oH(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(nH))r.push(i[2].replace(iH,(a,c,u)=>c?BS(c):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function aH(t){FS.lastIndex=0;let e=[],r;for(;(r=FS.exec(t))!==null;){let n=r[1];if(r[2]){let i=oH(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function qS(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(!!Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}jS.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(rH,(s,o,a,c,u,f)=>{if(o)i.push(BS(o));else if(c){let h=i.join("");i=[],n.push(r.length===0?h:qS(t,r)(h)),r.push({inverse:a,styles:aH(c)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(qS(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var YS=y((nZ,zS)=>{"use strict";l();var Yo=op(),{stdout:Ip,stderr:Lp}=up(),{stringReplaceAll:cH,stringEncaseCRLFWithFirstIndex:uH}=MS(),{isArray:uu}=Array,US=["ansi","ansi","ansi256","ansi16m"],ds=Object.create(null),lH=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Ip?Ip.level:0;t.level=e.level===void 0?r:e.level},Np=class{constructor(e){return GS(e)}},GS=t=>{let e={};return lH(e,t),e.template=(...r)=>WS(e.template,...r),Object.setPrototypeOf(e,lu.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=Np,e.template};function lu(t){return GS(t)}for(let[t,e]of Object.entries(Yo))ds[t]={get(){let r=fu(this,Dp(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};ds.visible={get(){let t=fu(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var VS=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of VS)ds[t]={get(){let{level:e}=this;return function(...r){let n=Dp(Yo.color[US[e]][t](...r),Yo.color.close,this._styler);return fu(this,n,this._isEmpty)}}};for(let t of VS){let e="bg"+t[0].toUpperCase()+t.slice(1);ds[e]={get(){let{level:r}=this;return function(...n){let i=Dp(Yo.bgColor[US[r]][t](...n),Yo.bgColor.close,this._styler);return fu(this,i,this._isEmpty)}}}}var fH=Object.defineProperties(()=>{},{...ds,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Dp=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},fu=(t,e,r)=>{let n=(...i)=>uu(i[0])&&uu(i[0].raw)?$S(n,WS(n,...i)):$S(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,fH),n._generator=t,n._styler=e,n._isEmpty=r,n},$S=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=cH(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
43
|
+
`);return s!==-1&&(e=uH(e,i,n,s)),n+e+i},Pp,WS=(t,...e)=>{let[r]=e;if(!uu(r)||!uu(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Pp===void 0&&(Pp=HS()),Pp(t,i.join(""))};Object.defineProperties(lu.prototype,ds);var hu=lu();hu.supportsColor=Ip;hu.stderr=lu({level:Lp?Lp.level:0});hu.stderr.supportsColor=Lp;zS.exports=hu});var KS=y((iZ,du)=>{l();(function(t){var e=/^\s+/,r=/\s+$/,n=0,i=t.round,s=t.min,o=t.max,a=t.random;function c(_,S){if(_=_||"",S=S||{},_ instanceof c)return _;if(!(this instanceof c))return new c(_,S);var b=u(_);this._originalInput=_,this._r=b.r,this._g=b.g,this._b=b.b,this._a=b.a,this._roundA=i(100*this._a)/100,this._format=S.format||b.format,this._gradientType=S.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=b.ok,this._tc_id=n++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var _=this.toRgb();return(_.r*299+_.g*587+_.b*114)/1e3},getLuminance:function(){var _=this.toRgb(),S,b,L,$,H,ye;return S=_.r/255,b=_.g/255,L=_.b/255,S<=.03928?$=S/12.92:$=t.pow((S+.055)/1.055,2.4),b<=.03928?H=b/12.92:H=t.pow((b+.055)/1.055,2.4),L<=.03928?ye=L/12.92:ye=t.pow((L+.055)/1.055,2.4),.2126*$+.7152*H+.0722*ye},setAlpha:function(_){return this._a=k(_),this._roundA=i(100*this._a)/100,this},toHsv:function(){var _=g(this._r,this._g,this._b);return{h:_.h*360,s:_.s,v:_.v,a:this._a}},toHsvString:function(){var _=g(this._r,this._g,this._b),S=i(_.h*360),b=i(_.s*100),L=i(_.v*100);return this._a==1?"hsv("+S+", "+b+"%, "+L+"%)":"hsva("+S+", "+b+"%, "+L+"%, "+this._roundA+")"},toHsl:function(){var _=h(this._r,this._g,this._b);return{h:_.h*360,s:_.s,l:_.l,a:this._a}},toHslString:function(){var _=h(this._r,this._g,this._b),S=i(_.h*360),b=i(_.s*100),L=i(_.l*100);return this._a==1?"hsl("+S+", "+b+"%, "+L+"%)":"hsla("+S+", "+b+"%, "+L+"%, "+this._roundA+")"},toHex:function(_){return E(this._r,this._g,this._b,_)},toHexString:function(_){return"#"+this.toHex(_)},toHex8:function(_){return v(this._r,this._g,this._b,this._a,_)},toHex8String:function(_){return"#"+this.toHex8(_)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(I(this._r,255)*100)+"%",g:i(I(this._g,255)*100)+"%",b:i(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(I(this._r,255)*100)+"%, "+i(I(this._g,255)*100)+"%, "+i(I(this._b,255)*100)+"%)":"rgba("+i(I(this._r,255)*100)+"%, "+i(I(this._g,255)*100)+"%, "+i(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:x[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(_){var S="#"+A(this._r,this._g,this._b,this._a),b=S,L=this._gradientType?"GradientType = 1, ":"";if(_){var $=c(_);b="#"+A($._r,$._g,$._b,$._a)}return"progid:DXImageTransform.Microsoft.gradient("+L+"startColorstr="+S+",endColorstr="+b+")"},toString:function(_){var S=!!_;_=_||this._format;var b=!1,L=this._a<1&&this._a>=0,$=!S&&L&&(_==="hex"||_==="hex6"||_==="hex3"||_==="hex4"||_==="hex8"||_==="name");return $?_==="name"&&this._a===0?this.toName():this.toRgbString():(_==="rgb"&&(b=this.toRgbString()),_==="prgb"&&(b=this.toPercentageRgbString()),(_==="hex"||_==="hex6")&&(b=this.toHexString()),_==="hex3"&&(b=this.toHexString(!0)),_==="hex4"&&(b=this.toHex8String(!0)),_==="hex8"&&(b=this.toHex8String()),_==="name"&&(b=this.toName()),_==="hsl"&&(b=this.toHslString()),_==="hsv"&&(b=this.toHsvString()),b||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(_,S){var b=_.apply(null,[this].concat([].slice.call(S)));return this._r=b._r,this._g=b._g,this._b=b._b,this.setAlpha(b._a),this},lighten:function(){return this._applyModification(z,arguments)},brighten:function(){return this._applyModification(ue,arguments)},darken:function(){return this._applyModification(K,arguments)},desaturate:function(){return this._applyModification(P,arguments)},saturate:function(){return this._applyModification(D,arguments)},greyscale:function(){return this._applyModification(ie,arguments)},spin:function(){return this._applyModification(Z,arguments)},_applyCombination:function(_,S){return _.apply(null,[this].concat([].slice.call(S)))},analogous:function(){return this._applyCombination(ee,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(fe,arguments)},splitcomplement:function(){return this._applyCombination(ne,arguments)},triad:function(){return this._applyCombination(Q,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},c.fromRatio=function(_,S){if(typeof _=="object"){var b={};for(var L in _)_.hasOwnProperty(L)&&(L==="a"?b[L]=_[L]:b[L]=De(_[L]));_=b}return c(_,S)};function u(_){var S={r:0,g:0,b:0},b=1,L=null,$=null,H=null,ye=!1,Le=!1;return typeof _=="string"&&(_=Ee(_)),typeof _=="object"&&(B(_.r)&&B(_.g)&&B(_.b)?(S=f(_.r,_.g,_.b),ye=!0,Le=String(_.r).substr(-1)==="%"?"prgb":"rgb"):B(_.h)&&B(_.s)&&B(_.v)?(L=De(_.s),$=De(_.v),S=m(_.h,L,$),ye=!0,Le="hsv"):B(_.h)&&B(_.s)&&B(_.l)&&(L=De(_.s),H=De(_.l),S=d(_.h,L,H),ye=!0,Le="hsl"),_.hasOwnProperty("a")&&(b=_.a)),b=k(b),{ok:ye,format:_.format||Le,r:s(255,o(S.r,0)),g:s(255,o(S.g,0)),b:s(255,o(S.b,0)),a:b}}function f(_,S,b){return{r:I(_,255)*255,g:I(S,255)*255,b:I(b,255)*255}}function h(_,S,b){_=I(_,255),S=I(S,255),b=I(b,255);var L=o(_,S,b),$=s(_,S,b),H,ye,Le=(L+$)/2;if(L==$)H=ye=0;else{var Me=L-$;switch(ye=Le>.5?Me/(2-L-$):Me/(L+$),L){case _:H=(S-b)/Me+(S<b?6:0);break;case S:H=(b-_)/Me+2;break;case b:H=(_-S)/Me+4;break}H/=6}return{h:H,s:ye,l:Le}}function d(_,S,b){var L,$,H;_=I(_,360),S=I(S,100),b=I(b,100);function ye(Ut,ho,ar){return ar<0&&(ar+=1),ar>1&&(ar-=1),ar<1/6?Ut+(ho-Ut)*6*ar:ar<1/2?ho:ar<2/3?Ut+(ho-Ut)*(2/3-ar)*6:Ut}if(S===0)L=$=H=b;else{var Le=b<.5?b*(1+S):b+S-b*S,Me=2*b-Le;L=ye(Me,Le,_+1/3),$=ye(Me,Le,_),H=ye(Me,Le,_-1/3)}return{r:L*255,g:$*255,b:H*255}}function g(_,S,b){_=I(_,255),S=I(S,255),b=I(b,255);var L=o(_,S,b),$=s(_,S,b),H,ye,Le=L,Me=L-$;if(ye=L===0?0:Me/L,L==$)H=0;else{switch(L){case _:H=(S-b)/Me+(S<b?6:0);break;case S:H=(b-_)/Me+2;break;case b:H=(_-S)/Me+4;break}H/=6}return{h:H,s:ye,v:Le}}function m(_,S,b){_=I(_,360)*6,S=I(S,100),b=I(b,100);var L=t.floor(_),$=_-L,H=b*(1-S),ye=b*(1-$*S),Le=b*(1-(1-$)*S),Me=L%6,Ut=[b,ye,H,H,Le,b][Me],ho=[Le,b,b,ye,H,H][Me],ar=[H,H,Le,b,b,ye][Me];return{r:Ut*255,g:ho*255,b:ar*255}}function E(_,S,b,L){var $=[ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16))];return L&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0):$.join("")}function v(_,S,b,L,$){var H=[ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16)),ge(re(L))];return $&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)&&H[3].charAt(0)==H[3].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0)+H[3].charAt(0):H.join("")}function A(_,S,b,L){var $=[ge(re(L)),ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16))];return $.join("")}c.equals=function(_,S){return!_||!S?!1:c(_).toRgbString()==c(S).toRgbString()},c.random=function(){return c.fromRatio({r:a(),g:a(),b:a()})};function P(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.s-=S/100,b.s=Y(b.s),c(b)}function D(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.s+=S/100,b.s=Y(b.s),c(b)}function ie(_){return c(_).desaturate(100)}function z(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.l+=S/100,b.l=Y(b.l),c(b)}function ue(_,S){S=S===0?0:S||10;var b=c(_).toRgb();return b.r=o(0,s(255,b.r-i(255*-(S/100)))),b.g=o(0,s(255,b.g-i(255*-(S/100)))),b.b=o(0,s(255,b.b-i(255*-(S/100)))),c(b)}function K(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.l-=S/100,b.l=Y(b.l),c(b)}function Z(_,S){var b=c(_).toHsl(),L=(b.h+S)%360;return b.h=L<0?360+L:L,c(b)}function F(_){var S=c(_).toHsl();return S.h=(S.h+180)%360,c(S)}function Q(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+120)%360,s:S.s,l:S.l}),c({h:(b+240)%360,s:S.s,l:S.l})]}function C(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+90)%360,s:S.s,l:S.l}),c({h:(b+180)%360,s:S.s,l:S.l}),c({h:(b+270)%360,s:S.s,l:S.l})]}function ne(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+72)%360,s:S.s,l:S.l}),c({h:(b+216)%360,s:S.s,l:S.l})]}function ee(_,S,b){S=S||6,b=b||30;var L=c(_).toHsl(),$=360/b,H=[c(_)];for(L.h=(L.h-($*S>>1)+720)%360;--S;)L.h=(L.h+$)%360,H.push(c(L));return H}function fe(_,S){S=S||6;for(var b=c(_).toHsv(),L=b.h,$=b.s,H=b.v,ye=[],Le=1/S;S--;)ye.push(c({h:L,s:$,v:H})),H=(H+Le)%1;return ye}c.mix=function(_,S,b){b=b===0?0:b||50;var L=c(_).toRgb(),$=c(S).toRgb(),H=b/100,ye={r:($.r-L.r)*H+L.r,g:($.g-L.g)*H+L.g,b:($.b-L.b)*H+L.b,a:($.a-L.a)*H+L.a};return c(ye)},c.readability=function(_,S){var b=c(_),L=c(S);return(t.max(b.getLuminance(),L.getLuminance())+.05)/(t.min(b.getLuminance(),L.getLuminance())+.05)},c.isReadable=function(_,S,b){var L=c.readability(_,S),$,H;switch(H=!1,$=q(b),$.level+$.size){case"AAsmall":case"AAAlarge":H=L>=4.5;break;case"AAlarge":H=L>=3;break;case"AAAsmall":H=L>=7;break}return H},c.mostReadable=function(_,S,b){var L=null,$=0,H,ye,Le,Me;b=b||{},ye=b.includeFallbackColors,Le=b.level,Me=b.size;for(var Ut=0;Ut<S.length;Ut++)H=c.readability(_,S[Ut]),H>$&&($=H,L=c(S[Ut]));return c.isReadable(_,L,{level:Le,size:Me})||!ye?L:(b.includeFallbackColors=!1,c.mostReadable(_,["#fff","#000"],b))};var R=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=c.hexNames=T(R);function T(_){var S={};for(var b in _)_.hasOwnProperty(b)&&(S[_[b]]=b);return S}function k(_){return _=parseFloat(_),(isNaN(_)||_<0||_>1)&&(_=1),_}function I(_,S){ve(_)&&(_="100%");var b=Ue(_);return _=s(S,o(0,parseFloat(_))),b&&(_=parseInt(_*S,10)/100),t.abs(_-S)<1e-6?1:_%S/parseFloat(S)}function Y(_){return s(1,o(0,_))}function j(_){return parseInt(_,16)}function ve(_){return typeof _=="string"&&_.indexOf(".")!=-1&&parseFloat(_)===1}function Ue(_){return typeof _=="string"&&_.indexOf("%")!=-1}function ge(_){return _.length==1?"0"+_:""+_}function De(_){return _<=1&&(_=_*100+"%"),_}function re(_){return t.round(parseFloat(_)*255).toString(16)}function pt(_){return j(_)/255}var kt=function(){var _="[-\\+]?\\d+%?",S="[-\\+]?\\d*\\.\\d+%?",b="(?:"+S+")|(?:"+_+")",L="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?",$="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?";return{CSS_UNIT:new RegExp(b),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function B(_){return!!kt.CSS_UNIT.exec(_)}function Ee(_){_=_.replace(e,"").replace(r,"").toLowerCase();var S=!1;if(R[_])_=R[_],S=!0;else if(_=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var b;return(b=kt.rgb.exec(_))?{r:b[1],g:b[2],b:b[3]}:(b=kt.rgba.exec(_))?{r:b[1],g:b[2],b:b[3],a:b[4]}:(b=kt.hsl.exec(_))?{h:b[1],s:b[2],l:b[3]}:(b=kt.hsla.exec(_))?{h:b[1],s:b[2],l:b[3],a:b[4]}:(b=kt.hsv.exec(_))?{h:b[1],s:b[2],v:b[3]}:(b=kt.hsva.exec(_))?{h:b[1],s:b[2],v:b[3],a:b[4]}:(b=kt.hex8.exec(_))?{r:j(b[1]),g:j(b[2]),b:j(b[3]),a:pt(b[4]),format:S?"name":"hex8"}:(b=kt.hex6.exec(_))?{r:j(b[1]),g:j(b[2]),b:j(b[3]),format:S?"name":"hex"}:(b=kt.hex4.exec(_))?{r:j(b[1]+""+b[1]),g:j(b[2]+""+b[2]),b:j(b[3]+""+b[3]),a:pt(b[4]+""+b[4]),format:S?"name":"hex8"}:(b=kt.hex3.exec(_))?{r:j(b[1]+""+b[1]),g:j(b[2]+""+b[2]),b:j(b[3]+""+b[3]),format:S?"name":"hex"}:!1}function q(_){var S,b;return _=_||{level:"AA",size:"small"},S=(_.level||"AA").toUpperCase(),b=(_.size||"small").toLowerCase(),S!=="AA"&&S!=="AAA"&&(S="AA"),b!=="small"&&b!=="large"&&(b="small"),{level:S,size:b}}typeof du<"u"&&du.exports?du.exports=c:typeof define=="function"&&define.amd?define(function(){return c}):window.tinycolor=c})(Math)});var rA=y((sZ,tA)=>{l();var Ko=KS(),QS={r:256,g:256,b:256,a:1},eA={h:360,s:1,v:1,a:1};function Fp(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function qp(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Mp(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=Fp(n,i,r),o=[t.color];for(let a=1;a<r;a++){let c=qp(s,n,a,QS);o.push(Ko(c))}return o}function ZS(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Mp(t,e,r);let o;if(typeof n=="boolean")o=n;else{let f=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&f||n==="short"&&!f}let a=Fp(i,s,r),c=[t.color],u;i.h<=s.h&&!o||i.h>=s.h&&o?u=s.h-i.h:o?u=360-s.h+i.h:u=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(u)/r;for(let f=1;f<r;f++){let h=qp(a,i,f,eA);c.push(Ko(h))}return c}function JS(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function XS(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let c=0,u=t.length;c<u-1;c++)if(e>=t[c].pos&&e<t[c+1].pos){i=t[c],s=t[c+1];break}i||(i=s=t[t.length-1]);let o=Fp(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=qp(o,i.color[r](),(e-i.pos)*100,n);return Ko(a)}var ps=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let c=o.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let u=o.color!==void 0;if(!u&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!u,o={color:u?Ko(o.color):null,colorLess:!u,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:Ko(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new ps(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new ps(e.concat(r.reverse()))}rgb(e){let r=JS(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Mp(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Mp(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=JS(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=ZS(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=ZS(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return XS(this.stops,e,"toRgb",QS)}hsvAt(e){return XS(this.stops,e,"toHsv",eA)}};tA.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new ps(t)}});var aA=y((oZ,pu)=>{"use strict";l();var iA=YS(),hH=rA(),nA=/\s/g;function Bp(...t){let e=hH.apply(this,t),r=(n,i)=>dH(n?n.toString():"",e,i);return r.multiline=(n,i)=>pH(n?n.toString():"",e,i),r}var sA=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function dH(t,e,r){let n=oA(r),i=Math.max(t.replace(nA,"").length,e.stops.length),s=sA(e,n,i),o="";for(let a of t)o+=a.match(nA)?a:iA.hex(s.shift().toHex())(a);return o}function pH(t,e,r){let n=oA(r),i=t.split(`
|
|
44
44
|
`),s=Math.max.apply(null,i.map(c=>c.length).concat([e.stops.length])),o=sA(e,n,s),a=[];for(let c of i){let u=o.slice(0),f="";for(let h of c)f+=iA.hex(u.shift().toHex())(h);a.push(f)}return a.join(`
|
|
45
|
-
`)}function oA(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var Zo={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};pu.exports=Bp;for(let t in Zo)pu.exports[t]=e=>new Bp(Zo[t].colors)(e,Zo[t].options),pu.exports[t].multiline=e=>new Bp(Zo[t].colors).multiline(e,Zo[t].options)});var EA=y((fZ,bA)=>{l();bA.exports=vA;vA.sync=
|
|
45
|
+
`)}function oA(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var Zo={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};pu.exports=Bp;for(let t in Zo)pu.exports[t]=e=>new Bp(Zo[t].colors)(e,Zo[t].options),pu.exports[t].multiline=e=>new Bp(Zo[t].colors).multiline(e,Zo[t].options)});var EA=y((fZ,bA)=>{l();bA.exports=vA;vA.sync=TH;var yA=require("fs");function OH(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function _A(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:OH(e,r)}function vA(t,e,r){yA.stat(t,function(n,i){r(n,n?!1:_A(i,t,e))})}function TH(t,e){return _A(yA.statSync(t),t,e)}});var RA=y((hZ,AA)=>{l();AA.exports=xA;xA.sync=kH;var wA=require("fs");function xA(t,e,r){wA.stat(t,function(n,i){r(n,n?!1:SA(i,e))})}function kH(t,e){return SA(wA.statSync(t),e)}function SA(t,e){return t.isFile()&&PH(t,e)}function PH(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=parseInt("001",8),f=a|c,h=r&u||r&c&&i===o||r&a&&n===s||r&f&&s===0;return h}});var OA=y((pZ,CA)=>{l();var dZ=require("fs"),mu;process.platform==="win32"||global.TESTING_WINDOWS?mu=EA():mu=RA();CA.exports=Hp;Hp.sync=IH;function Hp(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Hp(t,e||{},function(s,o){s?i(s):n(o)})})}mu(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function IH(t,e){try{return mu.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var DA=y((mZ,NA)=>{l();var gs=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",TA=require("path"),LH=gs?";":":",kA=OA(),PA=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),IA=(t,e)=>{let r=e.colon||LH,n=t.match(/\//)||gs&&t.match(/\\/)?[""]:[...gs?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=gs?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=gs?i.split(r):[""];return gs&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},LA=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=IA(t,e),o=[],a=u=>new Promise((f,h)=>{if(u===n.length)return e.all&&o.length?f(o):h(PA(t));let d=n[u],g=/^".*"$/.test(d)?d.slice(1,-1):d,m=TA.join(g,t),E=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;f(c(E,u,0))}),c=(u,f,h)=>new Promise((d,g)=>{if(h===i.length)return d(a(f+1));let m=i[h];kA(u+m,{pathExt:s},(E,v)=>{if(!E&&v)if(e.all)o.push(u+m);else return d(u+m);return d(c(u,f,h+1))})});return r?a(0).then(u=>r(null,u),r):a(0)},NH=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=IA(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=TA.join(c,t),f=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let h=0;h<n.length;h++){let d=f+n[h];try{if(kA.sync(d,{pathExt:i}))if(e.all)s.push(d);else return d}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw PA(t)};NA.exports=LA;LA.sync=NH});var Up=y((gZ,$p)=>{"use strict";l();var MA=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};$p.exports=MA;$p.exports.default=MA});var jA=y((yZ,BA)=>{"use strict";l();var FA=require("path"),DH=DA(),MH=Up();function qA(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=DH.sync(t.command,{path:r[MH({env:r})],pathExt:e?FA.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=FA.resolve(i?t.options.cwd:"",o)),o}function FH(t){return qA(t)||qA(t,!0)}BA.exports=FH});var HA=y((_Z,Vp)=>{"use strict";l();var Gp=/([()\][%!^"`<>&|;, *?])/g;function qH(t){return t=t.replace(Gp,"^$1"),t}function BH(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Gp,"^$1"),e&&(t=t.replace(Gp,"^$1")),t}Vp.exports.command=qH;Vp.exports.argument=BH});var UA=y((vZ,$A)=>{"use strict";l();$A.exports=/^#!(.*)/});var VA=y((bZ,GA)=>{"use strict";l();var jH=UA();GA.exports=(t="")=>{let e=t.match(jH);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var zA=y((EZ,WA)=>{"use strict";l();var Wp=require("fs"),HH=VA();function $H(t){let r=Buffer.alloc(150),n;try{n=Wp.openSync(t,"r"),Wp.readSync(n,r,0,150,0),Wp.closeSync(n)}catch{}return HH(r.toString())}WA.exports=$H});var JA=y((wZ,ZA)=>{"use strict";l();var UH=require("path"),YA=jA(),KA=HA(),GH=zA(),VH=process.platform==="win32",WH=/\.(?:com|exe)$/i,zH=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function YH(t){t.file=YA(t);let e=t.file&&GH(t.file);return e?(t.args.unshift(t.file),t.command=e,YA(t)):t.file}function KH(t){if(!VH)return t;let e=YH(t),r=!WH.test(e);if(t.options.forceShell||r){let n=zH.test(e);t.command=UH.normalize(t.command),t.command=KA.command(t.command),t.args=t.args.map(s=>KA.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function ZH(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:KH(n)}ZA.exports=ZH});var eR=y((xZ,QA)=>{"use strict";l();var zp=process.platform==="win32";function Yp(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function JH(t,e){if(!zp)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=XA(i,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function XA(t,e){return zp&&t===1&&!e.file?Yp(e.original,"spawn"):null}function XH(t,e){return zp&&t===1&&!e.file?Yp(e.original,"spawnSync"):null}QA.exports={hookChildProcess:JH,verifyENOENT:XA,verifyENOENTSync:XH,notFoundError:Yp}});var nR=y((SZ,ys)=>{"use strict";l();var tR=require("child_process"),Kp=JA(),Zp=eR();function rR(t,e,r){let n=Kp(t,e,r),i=tR.spawn(n.command,n.args,n.options);return Zp.hookChildProcess(i,n),i}function QH(t,e,r){let n=Kp(t,e,r),i=tR.spawnSync(n.command,n.args,n.options);return i.error=i.error||Zp.verifyENOENTSync(i.status,n),i}ys.exports=rR;ys.exports.spawn=rR;ys.exports.sync=QH;ys.exports._parse=Kp;ys.exports._enoent=Zp});var sR=y((AZ,iR)=>{"use strict";l();iR.exports=t=>{let e=typeof t=="string"?`
|
|
46
46
|
`:`
|
|
47
|
-
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var cR=y((RZ,Xo)=>{"use strict";l();var Jo=require("path"),oR=Up(),aR=t=>{t={cwd:process.cwd(),path:process.env[oR()],execPath:process.execPath,...t};let e,r=Jo.resolve(t.cwd),n=[];for(;e!==r;)n.push(Jo.join(r,"node_modules/.bin")),e=r,r=Jo.resolve(r,"..");let i=Jo.resolve(t.cwd,t.execPath,"..");return n.push(i),n.concat(t.path).join(Jo.delimiter)};Xo.exports=aR;Xo.exports.default=aR;Xo.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=oR({env:e});return t.path=e[r],e[r]=Xo.exports(t),e}});var uR=y(gu=>{"use strict";l();Object.defineProperty(gu,"__esModule",{value:!0});gu.SIGNALS=void 0;var
|
|
47
|
+
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var cR=y((RZ,Xo)=>{"use strict";l();var Jo=require("path"),oR=Up(),aR=t=>{t={cwd:process.cwd(),path:process.env[oR()],execPath:process.execPath,...t};let e,r=Jo.resolve(t.cwd),n=[];for(;e!==r;)n.push(Jo.join(r,"node_modules/.bin")),e=r,r=Jo.resolve(r,"..");let i=Jo.resolve(t.cwd,t.execPath,"..");return n.push(i),n.concat(t.path).join(Jo.delimiter)};Xo.exports=aR;Xo.exports.default=aR;Xo.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=oR({env:e});return t.path=e[r],e[r]=Xo.exports(t),e}});var uR=y(gu=>{"use strict";l();Object.defineProperty(gu,"__esModule",{value:!0});gu.SIGNALS=void 0;var e$=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];gu.SIGNALS=e$});var Jp=y(_s=>{"use strict";l();Object.defineProperty(_s,"__esModule",{value:!0});_s.SIGRTMAX=_s.getRealtimeSignals=void 0;var t$=function(){let t=fR-lR+1;return Array.from({length:t},r$)};_s.getRealtimeSignals=t$;var r$=function(t,e){return{name:`SIGRT${e+1}`,number:lR+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},lR=34,fR=64;_s.SIGRTMAX=fR});var hR=y(yu=>{"use strict";l();Object.defineProperty(yu,"__esModule",{value:!0});yu.getSignals=void 0;var n$=require("os"),i$=uR(),s$=Jp(),o$=function(){let t=(0,s$.getRealtimeSignals)();return[...i$.SIGNALS,...t].map(a$)};yu.getSignals=o$;var a$=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[t]:o}}=n$.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:n,forced:i,standard:s}}});var pR=y(vs=>{"use strict";l();Object.defineProperty(vs,"__esModule",{value:!0});vs.signalsByNumber=vs.signalsByName=void 0;var c$=require("os"),dR=hR(),u$=Jp(),l$=function(){return(0,dR.getSignals)().reduce(f$,{})},f$=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}}},h$=l$();vs.signalsByName=h$;var d$=function(){let t=(0,dR.getSignals)(),e=u$.SIGRTMAX+1,r=Array.from({length:e},(n,i)=>p$(i,t));return Object.assign({},...r)},p$=function(t,e){let r=m$(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:a,standard:c}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:a,standard:c}}},m$=function(t,e){let r=e.find(({name:n})=>c$.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},g$=d$();vs.signalsByNumber=g$});var gR=y((PZ,mR)=>{"use strict";l();var{signalsByName:y$}=pR(),_$=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",v$=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:a,timedOut:c,isCanceled:u,killed:f,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let d=i===void 0?void 0:y$[i].description,g=n&&n.code,E=`Command ${_$({timedOut:c,timeout:h,errorCode:g,signal:i,signalDescription:d,exitCode:s,isCanceled:u})}: ${o}`,v=Object.prototype.toString.call(n)==="[object Error]",A=v?`${E}
|
|
48
48
|
${n.message}`:E,P=[A,e,t].filter(Boolean).join(`
|
|
49
|
-
`);return v?(n.originalMessage=n.message,n.message=P):n=new Error(P),n.shortMessage=A,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=d,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=Boolean(c),n.isCanceled=u,n.killed=f&&!c,n};mR.exports=b$});var _R=y((IZ,Xp)=>{"use strict";l();var _u=["stdin","stdout","stderr"],E$=t=>_u.some(e=>t[e]!==void 0),yR=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _u.map(n=>t[n]);if(E$(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_u.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_u.length);return Array.from({length:r},(n,i)=>e[i])};Xp.exports=yR;Xp.exports.node=t=>{let e=yR(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var bR=y((LZ,vR)=>{"use strict";l();var w$=require("os"),x$=vp(),S$=1e3*5,A$=(t,e="SIGTERM",r={})=>{let n=t(e);return R$(t,e,r,n),n},R$=(t,e,r,n)=>{if(!C$(e,r,n))return;let i=T$(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},C$=(t,{forceKillAfterTimeout:e},r)=>O$(t)&&e!==!1&&r,O$=t=>t===w$.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",T$=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return S$;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},k$=(t,e)=>{t.kill()&&(e.isCanceled=!0)},P$=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},I$=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((a,c)=>{i=setTimeout(()=>{P$(t,r,c)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},L$=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},N$=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=x$(()=>{t.kill()});return n.finally(()=>{i()})};vR.exports={spawnedKill:A$,spawnedCancel:k$,setupTimeout:I$,validateTimeout:L$,setExitHandler:N$}});var wR=y((NZ,ER)=>{"use strict";l();var xr=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";xr.writable=t=>xr(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";xr.readable=t=>xr(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";xr.duplex=t=>xr.writable(t)&&xr.readable(t);xr.transform=t=>xr.duplex(t)&&typeof t._transform=="function";ER.exports=xr});var SR=y((DZ,xR)=>{"use strict";l();var{PassThrough:D$}=require("stream");xR.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new D$({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",c=>{a.push(c),i?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var AR=y((MZ,Qo)=>{"use strict";l();var{constants:M$}=require("buffer"),F$=require("stream"),{promisify:q$}=require("util"),B$=SR(),j$=q$(F$.pipeline),vu=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Qp(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=B$(e);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=M$.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await j$(t,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new vu)})}),n.getBufferedValue()}Qo.exports=Qp;Qo.exports.buffer=(t,e)=>Qp(t,{...e,encoding:"buffer"});Qo.exports.array=(t,e)=>Qp(t,{...e,array:!0});Qo.exports.MaxBufferError=vu});var CR=y((FZ,RR)=>{"use strict";l();var{PassThrough:H$}=require("stream");RR.exports=function(){var t=[],e=new H$({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var PR=y((qZ,kR)=>{"use strict";l();var TR=wR(),OR=AR(),$$=CR(),U$=(t,e)=>{e===void 0||t.stdin===void 0||(TR(e)?e.pipe(t.stdin):t.stdin.end(e))},G$=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=$$();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},em=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},tm=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?OR(t,{encoding:e,maxBuffer:n}):OR.buffer(t,{maxBuffer:n})},V$=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=tm(t,{encoding:n,buffer:i,maxBuffer:s}),c=tm(e,{encoding:n,buffer:i,maxBuffer:s}),u=tm(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,c,u])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},em(t,a),em(e,c),em(r,u)])}},W$=({input:t})=>{if(TR(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};kR.exports={handleInput:U$,makeAllStream:G$,getSpawnedResult:V$,validateInputSync:W$}});var LR=y((BZ,IR)=>{"use strict";l();var z$=(async()=>{})().constructor.prototype,Y$=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(z$,t)]),K$=(t,e)=>{for(let[r,n]of Y$){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},Z$=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});IR.exports={mergePromise:K$,getSpawnedPromise:Z$}});var MR=y((jZ,DR)=>{"use strict";l();var NR=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],J$=/^[\w.-]+$/,X$=/"/g,Q$=t=>typeof t!="string"||J$.test(t)?t:`"${t.replace(X$,'\\"')}"`,e6=(t,e)=>NR(t,e).join(" "),t6=(t,e)=>NR(t,e).map(r=>Q$(r)).join(" "),r6=/ +/g,n6=t=>{let e=[];for(let r of t.trim().split(r6)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};DR.exports={joinCommand:e6,getEscapedCommand:t6,parseCommand:n6}});var UR=y((HZ,bs)=>{"use strict";l();var i6=require("path"),rm=require("child_process"),s6=nR(),o6=sR(),a6=cR(),c6=gp(),bu=gR(),qR=_R(),{spawnedKill:u6,spawnedCancel:l6,setupTimeout:f6,validateTimeout:h6,setExitHandler:d6}=bR(),{handleInput:p6,getSpawnedResult:m6,makeAllStream:g6,validateInputSync:y6}=PR(),{mergePromise:FR,getSpawnedPromise:_6}=LR(),{joinCommand:BR,parseCommand:jR,getEscapedCommand:HR}=MR(),v6=1e3*1e3*100,b6=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?a6.env({env:s,cwd:n,execPath:i}):s},$R=(t,e,r={})=>{let n=s6._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:v6,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=b6(r),r.stdio=qR(r),process.platform==="win32"&&i6.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},ea=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?o6(e):e,Eu=(t,e,r)=>{let n=$R(t,e,r),i=BR(t,e),s=HR(t,e);h6(n.options);let o;try{o=rm.spawn(n.file,n.args,n.options)}catch(g){let m=new rm.ChildProcess,E=Promise.reject(bu({error:g,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return FR(m,E)}let a=_6(o),c=f6(o,n.options,a),u=d6(o,n.options,c),f={isCanceled:!1};o.kill=u6.bind(null,o.kill.bind(o)),o.cancel=l6.bind(null,o,f);let d=c6(async()=>{let[{error:g,exitCode:m,signal:E,timedOut:v},A,P,D]=await m6(o,n.options,u),ie=ea(n.options,A),z=ea(n.options,P),ue=ea(n.options,D);if(g||m!==0||E!==null){let K=bu({error:g,exitCode:m,signal:E,stdout:ie,stderr:z,all:ue,command:i,escapedCommand:s,parsed:n,timedOut:v,isCanceled:f.isCanceled,killed:o.killed});if(!n.options.reject)return K;throw K}return{command:i,escapedCommand:s,exitCode:0,stdout:ie,stderr:z,all:ue,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return p6(o,n.options.input),o.all=g6(o,n.options),FR(o,d)};bs.exports=Eu;bs.exports.sync=(t,e,r)=>{let n=$R(t,e,r),i=BR(t,e),s=HR(t,e);y6(n.options);let o;try{o=rm.spawnSync(n.file,n.args,n.options)}catch(u){throw bu({error:u,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=ea(n.options,o.stdout,o.error),c=ea(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let u=bu({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return u;throw u}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};bs.exports.command=(t,e)=>{let[r,...n]=jR(t);return Eu(r,n,e)};bs.exports.commandSync=(t,e)=>{let[r,...n]=jR(t);return Eu.sync(r,n,e)};bs.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=qR.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return Eu(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var Es=y((WZ,WR)=>{"use strict";l();var VR=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);WR.exports=t=>t?Object.keys(t).map(e=>[VR.has(e)?VR.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var Cu=y((zZ,tC)=>{"use strict";l();var zR=typeof process=="object"&&process?process:{stdout:null,stderr:null},S6=require("events"),YR=require("stream"),KR=require("string_decoder").StringDecoder,Vr=Symbol("EOF"),Wr=Symbol("maybeEmitEnd"),Rn=Symbol("emittedEnd"),wu=Symbol("emittingEnd"),ta=Symbol("emittedError"),xu=Symbol("closed"),ZR=Symbol("read"),Su=Symbol("flush"),JR=Symbol("flushChunk"),At=Symbol("encoding"),zr=Symbol("decoder"),Au=Symbol("flowing"),ra=Symbol("paused"),ws=Symbol("resume"),qe=Symbol("buffer"),Sr=Symbol("pipes"),Ze=Symbol("bufferLength"),nm=Symbol("bufferPush"),im=Symbol("bufferShift"),ct=Symbol("objectMode"),ut=Symbol("destroyed"),sm=Symbol("emitData"),XR=Symbol("emitEnd"),om=Symbol("emitEnd2"),Yr=Symbol("async"),na=t=>Promise.resolve().then(t),QR=global._MP_NO_ITERATOR_SYMBOLS_!=="1",A6=QR&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),R6=QR&&Symbol.iterator||Symbol("iterator not implemented"),C6=t=>t==="end"||t==="finish"||t==="prefinish",O6=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,T6=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Ru=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ws](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},am=class extends Ru{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};tC.exports=class eC extends YR{constructor(e){super(),this[Au]=!1,this[ra]=!1,this[Sr]=[],this[qe]=[],this[ct]=e&&e.objectMode||!1,this[ct]?this[At]=null:this[At]=e&&e.encoding||null,this[At]==="buffer"&&(this[At]=null),this[Yr]=e&&!!e.async||!1,this[zr]=this[At]?new KR(this[At]):null,this[Vr]=!1,this[Rn]=!1,this[wu]=!1,this[xu]=!1,this[ta]=null,this.writable=!0,this.readable=!0,this[Ze]=0,this[ut]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[qe]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Sr]})}get bufferLength(){return this[Ze]}get encoding(){return this[At]}set encoding(e){if(this[ct])throw new Error("cannot set encoding in objectMode");if(this[At]&&e!==this[At]&&(this[zr]&&this[zr].lastNeed||this[Ze]))throw new Error("cannot change encoding");this[At]!==e&&(this[zr]=e?new KR(e):null,this[qe].length&&(this[qe]=this[qe].map(r=>this[zr].write(r)))),this[At]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ct]}set objectMode(e){this[ct]=this[ct]||!!e}get async(){return this[Yr]}set async(e){this[Yr]=this[Yr]||!!e}write(e,r,n){if(this[Vr])throw new Error("write after end");if(this[ut])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Yr]?na:s=>s();return!this[ct]&&!Buffer.isBuffer(e)&&(T6(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):O6(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ct]?(this.flowing&&this[Ze]!==0&&this[Su](!0),this.flowing?this.emit("data",e):this[nm](e),this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[At]&&!this[zr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[At]&&(e=this[zr].write(e)),this.flowing&&this[Ze]!==0&&this[Su](!0),this.flowing?this.emit("data",e):this[nm](e),this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[ut])return null;if(this[Ze]===0||e===0||e>this[Ze])return this[Wr](),null;this[ct]&&(e=null),this[qe].length>1&&!this[ct]&&(this.encoding?this[qe]=[this[qe].join("")]:this[qe]=[Buffer.concat(this[qe],this[Ze])]);let r=this[ZR](e||null,this[qe][0]);return this[Wr](),r}[ZR](e,r){return e===r.length||e===null?this[im]():(this[qe][0]=r.slice(e),r=r.slice(0,e),this[Ze]-=e),this.emit("data",r),!this[qe].length&&!this[Vr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Vr]=!0,this.writable=!1,(this.flowing||!this[ra])&&this[Wr](),this}[ws](){this[ut]||(this[ra]=!1,this[Au]=!0,this.emit("resume"),this[qe].length?this[Su]():this[Vr]?this[Wr]():this.emit("drain"))}resume(){return this[ws]()}pause(){this[Au]=!1,this[ra]=!0}get destroyed(){return this[ut]}get flowing(){return this[Au]}get paused(){return this[ra]}[nm](e){this[ct]?this[Ze]+=1:this[Ze]+=e.length,this[qe].push(e)}[im](){return this[qe].length&&(this[ct]?this[Ze]-=1:this[Ze]-=this[qe][0].length),this[qe].shift()}[Su](e){do;while(this[JR](this[im]()));!e&&!this[qe].length&&!this[Vr]&&this.emit("drain")}[JR](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ut])return;let n=this[Rn];return r=r||{},e===zR.stdout||e===zR.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[Sr].push(r.proxyErrors?new am(this,e,r):new Ru(this,e,r)),this[Yr]?na(()=>this[ws]()):this[ws]()),e}unpipe(e){let r=this[Sr].find(n=>n.dest===e);r&&(this[Sr].splice(this[Sr].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this[Sr].length&&!this.flowing?this[ws]():e==="readable"&&this[Ze]!==0?super.emit("readable"):C6(e)&&this[Rn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ta]&&(this[Yr]?na(()=>r.call(this,this[ta])):r.call(this,this[ta])),n}get emittedEnd(){return this[Rn]}[Wr](){!this[wu]&&!this[Rn]&&!this[ut]&&this[qe].length===0&&this[Vr]&&(this[wu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[xu]&&this.emit("close"),this[wu]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==ut&&this[ut])return;if(e==="data")return r?this[Yr]?na(()=>this[sm](r)):this[sm](r):!1;if(e==="end")return this[XR]();if(e==="close"){if(this[xu]=!0,!this[Rn]&&!this[ut])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ta]=r;let s=super.emit("error",r);return this[Wr](),s}else if(e==="resume"){let s=super.emit("resume");return this[Wr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Wr](),i}[sm](e){for(let n of this[Sr])n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Wr](),r}[XR](){this[Rn]||(this[Rn]=!0,this.readable=!1,this[Yr]?na(()=>this[om]()):this[om]())}[om](){if(this[zr]){let r=this[zr].end();if(r){for(let n of this[Sr])n.dest.write(r);super.emit("data",r)}}for(let r of this[Sr])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ct]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[ct]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[ct]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ct]?Promise.reject(new Error("cannot concat in objectMode")):this[At]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ut,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[A6](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Vr])return Promise.resolve({done:!0});let n=null,i=null,s=u=>{this.removeListener("data",o),this.removeListener("end",a),i(u)},o=u=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:u,done:!!this[Vr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((u,f)=>{i=f,n=u,this.once(ut,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[R6](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ut]?(e?this.emit("error",e):this.emit(ut),this):(this[ut]=!0,this[qe].length=0,this[Ze]=0,typeof this.close=="function"&&!this[xu]&&this.close(),e?this.emit("error",e):this.emit(ut),this)}static isStream(e){return!!e&&(e instanceof eC||e instanceof YR||e instanceof S6&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var nC=y((YZ,rC)=>{l();var k6=require("zlib").constants||{ZLIB_VERNUM:4736};rC.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},k6))});var dm=y((KZ,hC)=>{"use strict";l();var iC=typeof process=="object"&&process?process:{stdout:null,stderr:null},P6=require("events"),sC=require("stream"),oC=require("string_decoder").StringDecoder,Kr=Symbol("EOF"),Zr=Symbol("maybeEmitEnd"),Cn=Symbol("emittedEnd"),Ou=Symbol("emittingEnd"),ia=Symbol("emittedError"),Tu=Symbol("closed"),aC=Symbol("read"),ku=Symbol("flush"),cC=Symbol("flushChunk"),Rt=Symbol("encoding"),Jr=Symbol("decoder"),Pu=Symbol("flowing"),sa=Symbol("paused"),xs=Symbol("resume"),Je=Symbol("bufferLength"),cm=Symbol("bufferPush"),um=Symbol("bufferShift"),lt=Symbol("objectMode"),ft=Symbol("destroyed"),lm=Symbol("emitData"),uC=Symbol("emitEnd"),fm=Symbol("emitEnd2"),Xr=Symbol("async"),oa=t=>Promise.resolve().then(t),lC=global._MP_NO_ITERATOR_SYMBOLS_!=="1",I6=lC&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),L6=lC&&Symbol.iterator||Symbol("iterator not implemented"),N6=t=>t==="end"||t==="finish"||t==="prefinish",D6=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,M6=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Iu=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[xs](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},hm=class extends Iu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};hC.exports=class fC extends sC{constructor(e){super(),this[Pu]=!1,this[sa]=!1,this.pipes=[],this.buffer=[],this[lt]=e&&e.objectMode||!1,this[lt]?this[Rt]=null:this[Rt]=e&&e.encoding||null,this[Rt]==="buffer"&&(this[Rt]=null),this[Xr]=e&&!!e.async||!1,this[Jr]=this[Rt]?new oC(this[Rt]):null,this[Kr]=!1,this[Cn]=!1,this[Ou]=!1,this[Tu]=!1,this[ia]=null,this.writable=!0,this.readable=!0,this[Je]=0,this[ft]=!1}get bufferLength(){return this[Je]}get encoding(){return this[Rt]}set encoding(e){if(this[lt])throw new Error("cannot set encoding in objectMode");if(this[Rt]&&e!==this[Rt]&&(this[Jr]&&this[Jr].lastNeed||this[Je]))throw new Error("cannot change encoding");this[Rt]!==e&&(this[Jr]=e?new oC(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Jr].write(r)))),this[Rt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[lt]}set objectMode(e){this[lt]=this[lt]||!!e}get async(){return this[Xr]}set async(e){this[Xr]=this[Xr]||!!e}write(e,r,n){if(this[Kr])throw new Error("write after end");if(this[ft])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Xr]?oa:s=>s();return!this[lt]&&!Buffer.isBuffer(e)&&(M6(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):D6(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[lt]?(this.flowing&&this[Je]!==0&&this[ku](!0),this.flowing?this.emit("data",e):this[cm](e),this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[Rt]&&!this[Jr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Rt]&&(e=this[Jr].write(e)),this.flowing&&this[Je]!==0&&this[ku](!0),this.flowing?this.emit("data",e):this[cm](e),this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[ft])return null;if(this[Je]===0||e===0||e>this[Je])return this[Zr](),null;this[lt]&&(e=null),this.buffer.length>1&&!this[lt]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Je])]);let r=this[aC](e||null,this.buffer[0]);return this[Zr](),r}[aC](e,r){return e===r.length||e===null?this[um]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Je]-=e),this.emit("data",r),!this.buffer.length&&!this[Kr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Kr]=!0,this.writable=!1,(this.flowing||!this[sa])&&this[Zr](),this}[xs](){this[ft]||(this[sa]=!1,this[Pu]=!0,this.emit("resume"),this.buffer.length?this[ku]():this[Kr]?this[Zr]():this.emit("drain"))}resume(){return this[xs]()}pause(){this[Pu]=!1,this[sa]=!0}get destroyed(){return this[ft]}get flowing(){return this[Pu]}get paused(){return this[sa]}[cm](e){this[lt]?this[Je]+=1:this[Je]+=e.length,this.buffer.push(e)}[um](){return this.buffer.length&&(this[lt]?this[Je]-=1:this[Je]-=this.buffer[0].length),this.buffer.shift()}[ku](e){do;while(this[cC](this[um]()));!e&&!this.buffer.length&&!this[Kr]&&this.emit("drain")}[cC](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ft])return;let n=this[Cn];return r=r||{},e===iC.stdout||e===iC.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this.pipes.push(r.proxyErrors?new hm(this,e,r):new Iu(this,e,r)),this[Xr]?oa(()=>this[xs]()):this[xs]()),e}unpipe(e){let r=this.pipes.find(n=>n.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[xs]():e==="readable"&&this[Je]!==0?super.emit("readable"):N6(e)&&this[Cn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ia]&&(this[Xr]?oa(()=>r.call(this,this[ia])):r.call(this,this[ia])),n}get emittedEnd(){return this[Cn]}[Zr](){!this[Ou]&&!this[Cn]&&!this[ft]&&this.buffer.length===0&&this[Kr]&&(this[Ou]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Tu]&&this.emit("close"),this[Ou]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==ft&&this[ft])return;if(e==="data")return r?this[Xr]?oa(()=>this[lm](r)):this[lm](r):!1;if(e==="end")return this[uC]();if(e==="close"){if(this[Tu]=!0,!this[Cn]&&!this[ft])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ia]=r;let s=super.emit("error",r);return this[Zr](),s}else if(e==="resume"){let s=super.emit("resume");return this[Zr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Zr](),i}[lm](e){for(let n of this.pipes)n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Zr](),r}[uC](){this[Cn]||(this[Cn]=!0,this.readable=!1,this[Xr]?oa(()=>this[fm]()):this[fm]())}[fm](){if(this[Jr]){let r=this[Jr].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[lt]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[lt]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[lt]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[lt]?Promise.reject(new Error("cannot concat in objectMode")):this[Rt]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ft,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[I6](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Kr])return Promise.resolve({done:!0});let n=null,i=null,s=u=>{this.removeListener("data",o),this.removeListener("end",a),i(u)},o=u=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:u,done:!!this[Kr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((u,f)=>{i=f,n=u,this.once(ft,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[L6](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ft]?(e?this.emit("error",e):this.emit(ft),this):(this[ft]=!0,this.buffer.length=0,this[Je]=0,typeof this.close=="function"&&!this[Tu]&&this.close(),e?this.emit("error",e):this.emit(ft),this)}static isStream(e){return!!e&&(e instanceof fC||e instanceof sC||e instanceof P6&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Tm=y(Nt=>{"use strict";l();var _m=require("assert"),On=require("buffer").Buffer,mC=require("zlib"),ci=Nt.constants=nC(),F6=dm(),dC=On.concat,ui=Symbol("_superWrite"),As=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},q6=Symbol("opts"),aa=Symbol("flushFlag"),pC=Symbol("finishFlushFlag"),Om=Symbol("fullFlushFlag"),Ae=Symbol("handle"),Lu=Symbol("onError"),Ss=Symbol("sawError"),pm=Symbol("level"),mm=Symbol("strategy"),gm=Symbol("ended"),ZZ=Symbol("_defaultFullFlush"),Nu=class extends F6{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Ss]=!1,this[gm]=!1,this[q6]=e,this[aa]=e.flush,this[pC]=e.finishFlush;try{this[Ae]=new mC[r](e)}catch(n){throw new As(n)}this[Lu]=n=>{this[Ss]||(this[Ss]=!0,this.close(),this.emit("error",n))},this[Ae].on("error",n=>this[Lu](new As(n))),this.once("end",()=>this.close)}close(){this[Ae]&&(this[Ae].close(),this[Ae]=null,this.emit("close"))}reset(){if(!this[Ss])return _m(this[Ae],"zlib binding closed"),this[Ae].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Om]),this.write(Object.assign(On.alloc(0),{[aa]:e})))}end(e,r,n){return e&&this.write(e,r),this.flush(this[pC]),this[gm]=!0,super.end(null,null,n)}get ended(){return this[gm]}write(e,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof e=="string"&&(e=On.from(e,r)),this[Ss])return;_m(this[Ae],"zlib binding closed");let i=this[Ae]._handle,s=i.close;i.close=()=>{};let o=this[Ae].close;this[Ae].close=()=>{},On.concat=u=>u;let a;try{let u=typeof e[aa]=="number"?e[aa]:this[aa];a=this[Ae]._processChunk(e,u),On.concat=dC}catch(u){On.concat=dC,this[Lu](new As(u))}finally{this[Ae]&&(this[Ae]._handle=i,i.close=s,this[Ae].close=o,this[Ae].removeAllListeners("error"))}this[Ae]&&this[Ae].on("error",u=>this[Lu](new As(u)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[ui](On.from(a[0]));for(let u=1;u<a.length;u++)c=this[ui](a[u])}else c=this[ui](On.from(a));return n&&n(),c}[ui](e){return super.write(e)}},Qr=class extends Nu{constructor(e,r){e=e||{},e.flush=e.flush||ci.Z_NO_FLUSH,e.finishFlush=e.finishFlush||ci.Z_FINISH,super(e,r),this[Om]=ci.Z_FULL_FLUSH,this[pm]=e.level,this[mm]=e.strategy}params(e,r){if(!this[Ss]){if(!this[Ae])throw new Error("cannot switch params when binding is closed");if(!this[Ae].params)throw new Error("not supported in this implementation");if(this[pm]!==e||this[mm]!==r){this.flush(ci.Z_SYNC_FLUSH),_m(this[Ae],"zlib binding closed");let n=this[Ae].flush;this[Ae].flush=(i,s)=>{this.flush(i),s()};try{this[Ae].params(e,r)}finally{this[Ae].flush=n}this[Ae]&&(this[pm]=e,this[mm]=r)}}}},vm=class extends Qr{constructor(e){super(e,"Deflate")}},bm=class extends Qr{constructor(e){super(e,"Inflate")}},ym=Symbol("_portable"),Em=class extends Qr{constructor(e){super(e,"Gzip"),this[ym]=e&&!!e.portable}[ui](e){return this[ym]?(this[ym]=!1,e[9]=255,super[ui](e)):super[ui](e)}},wm=class extends Qr{constructor(e){super(e,"Gunzip")}},xm=class extends Qr{constructor(e){super(e,"DeflateRaw")}},Sm=class extends Qr{constructor(e){super(e,"InflateRaw")}},Am=class extends Qr{constructor(e){super(e,"Unzip")}},Du=class extends Nu{constructor(e,r){e=e||{},e.flush=e.flush||ci.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||ci.BROTLI_OPERATION_FINISH,super(e,r),this[Om]=ci.BROTLI_OPERATION_FLUSH}},Rm=class extends Du{constructor(e){super(e,"BrotliCompress")}},Cm=class extends Du{constructor(e){super(e,"BrotliDecompress")}};Nt.Deflate=vm;Nt.Inflate=bm;Nt.Gzip=Em;Nt.Gunzip=wm;Nt.DeflateRaw=xm;Nt.InflateRaw=Sm;Nt.Unzip=Am;typeof mC.BrotliCompress=="function"?(Nt.BrotliCompress=Rm,Nt.BrotliDecompress=Cm):Nt.BrotliCompress=Nt.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Rs=y((QZ,gC)=>{l();var B6=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;gC.exports=B6!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Mu=y((tJ,yC)=>{"use strict";l();var j6=Cu(),km=Rs(),Pm=Symbol("slurp");yC.exports=class extends j6{constructor(e,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=km(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=km(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Pm](r),n&&this[Pm](n,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(e):super.write(e.slice(0,n))}[Pm](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?km(e[n]):e[n])}}});var Im=y(Fu=>{"use strict";l();Fu.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);Fu.code=new Map(Array.from(Fu.name).map(t=>[t[1],t[0]]))});var EC=y((nJ,bC)=>{"use strict";l();var H6=(t,e)=>{if(Number.isSafeInteger(t))t<0?U6(t,e):$6(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},$6=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},U6=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var n=e.length;n>1;n--){var i=t&255;t=Math.floor(t/256),r?e[n-1]=_C(i):i===0?e[n-1]=0:(r=!0,e[n-1]=vC(i))}},G6=t=>{let e=t[0],r=e===128?W6(t.slice(1,t.length)):e===255?V6(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},V6=t=>{for(var e=t.length,r=0,n=!1,i=e-1;i>-1;i--){var s=t[i],o;n?o=_C(s):s===0?o=s:(n=!0,o=vC(s)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},W6=t=>{for(var e=t.length,r=0,n=e-1;n>-1;n--){var i=t[n];i!==0&&(r+=i*Math.pow(256,e-n-1))}return r},_C=t=>(255^t)&255,vC=t=>(255^t)+1&255;bC.exports={encode:H6,parse:G6}});var Os=y((iJ,xC)=>{"use strict";l();var Lm=Im(),Cs=require("path").posix,wC=EC(),Nm=Symbol("slurp"),Dt=Symbol("type"),Fm=class{constructor(e,r,n,i){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Dt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,n,i):e&&this.set(e)}decode(e,r,n,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=li(e,r,100),this.mode=Tn(e,r+100,8),this.uid=Tn(e,r+108,8),this.gid=Tn(e,r+116,8),this.size=Tn(e,r+124,12),this.mtime=Dm(e,r+136,12),this.cksum=Tn(e,r+148,12),this[Nm](n),this[Nm](i,!0),this[Dt]=li(e,r+156,1),this[Dt]===""&&(this[Dt]="0"),this[Dt]==="0"&&this.path.slice(-1)==="/"&&(this[Dt]="5"),this[Dt]==="5"&&(this.size=0),this.linkpath=li(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=li(e,r+265,32),this.gname=li(e,r+297,32),this.devmaj=Tn(e,r+329,8),this.devmin=Tn(e,r+337,8),e[r+475]!==0){let o=li(e,r+345,155);this.path=o+"/"+this.path}else{let o=li(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Dm(e,r+476,12),this.ctime=Dm(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[Nm](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=e[n])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=z6(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=fi(e,r,100,s)||this.needPax,this.needPax=kn(e,r+100,8,this.mode)||this.needPax,this.needPax=kn(e,r+108,8,this.uid)||this.needPax,this.needPax=kn(e,r+116,8,this.gid)||this.needPax,this.needPax=kn(e,r+124,12,this.size)||this.needPax,this.needPax=Mm(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Dt].charCodeAt(0),this.needPax=fi(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=fi(e,r+265,32,this.uname)||this.needPax,this.needPax=fi(e,r+297,32,this.gname)||this.needPax,this.needPax=kn(e,r+329,8,this.devmaj)||this.needPax,this.needPax=kn(e,r+337,8,this.devmin)||this.needPax,this.needPax=fi(e,r+345,n,o)||this.needPax,e[r+475]!==0?this.needPax=fi(e,r+345,155,o)||this.needPax:(this.needPax=fi(e,r+345,130,o)||this.needPax,this.needPax=Mm(e,r+476,12,this.atime)||this.needPax,this.needPax=Mm(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let c=r;c<r+148;c++)a+=e[c];for(let c=r+156;c<r+512;c++)a+=e[c];return this.cksum=a,kn(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Lm.name.get(this[Dt])||this[Dt]}get typeKey(){return this[Dt]}set type(e){Lm.code.has(e)?this[Dt]=Lm.code.get(e):this[Dt]=e}},z6=(t,e)=>{let n=t,i="",s,o=Cs.parse(t).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=Cs.dirname(n),n=Cs.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=e?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=e?s=[n.slice(0,100-1),i,!0]:(n=Cs.join(Cs.basename(i),n),i=Cs.dirname(i));while(i!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},li=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Dm=(t,e,r)=>Y6(Tn(t,e,r)),Y6=t=>t===null?null:new Date(t*1e3),Tn=(t,e,r)=>t[e]&128?wC.parse(t.slice(e,e+r)):Z6(t,e,r),K6=t=>isNaN(t)?null:t,Z6=(t,e,r)=>K6(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),J6={12:8589934591,8:2097151},kn=(t,e,r,n)=>n===null?!1:n>J6[r]||n<0?(wC.encode(n,t.slice(e,e+r)),!0):(X6(t,e,r,n),!1),X6=(t,e,r,n)=>t.write(Q6(n,r),e,r,"ascii"),Q6=(t,e)=>eU(Math.floor(t).toString(8),e),eU=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Mm=(t,e,r,n)=>n===null?!1:kn(t,e,r,n.getTime()/1e3),tU=new Array(156).join("\0"),fi=(t,e,r,n)=>n===null?!1:(t.write(n+tU,e,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);xC.exports=Fm});var qu=y((sJ,SC)=>{"use strict";l();var rU=Os(),nU=require("path"),ca=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new rU({path:("PaxHeader/"+nU.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(i),i.write(e,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
|
50
|
-
`,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};ca.parse=(t,e,r)=>new ca(iU(
|
|
51
|
-
`).reduce(oU,Object.create(null)),oU=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let n=e.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;let s=n.join("=");return t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};SC.exports=ca});var Ts=y((oJ,AC)=>{l();AC.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var Bu=y((aJ,RC)=>{"use strict";l();RC.exports=t=>class extends t{warn(e,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||e,n.tarCode=e,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),n))}}});var Bm=y((uJ,CC)=>{"use strict";l();var ju=["|","<",">","?",":"],qm=ju.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),aU=new Map(ju.map((t,e)=>[t,qm[e]])),cU=new Map(qm.map((t,e)=>[t,ju[e]]));CC.exports={encode:t=>ju.reduce((e,r)=>e.split(r).join(aU.get(r)),t),decode:t=>qm.reduce((e,r)=>e.split(r).join(cU.get(r)),t)}});var jm=y((lJ,TC)=>{l();var{isAbsolute:uU,parse:OC}=require("path").win32;TC.exports=t=>{let e="",r=OC(t);for(;uU(t)||r.root;){let n=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(n.length),e+=n,r=OC(t)}return[e,t]}});var PC=y((fJ,kC)=>{"use strict";l();kC.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Zm=y((pJ,VC)=>{"use strict";l();var qC=Cu(),BC=qu(),jC=Os(),Rr=require("fs"),IC=require("path"),Ar=Rs(),lU=Ts(),HC=(t,e)=>e?(t=Ar(t).replace(/^\.(\/|$)/,""),lU(e)+"/"+t):Ar(t),fU=16*1024*1024,LC=Symbol("process"),NC=Symbol("file"),DC=Symbol("directory"),$m=Symbol("symlink"),MC=Symbol("hardlink"),ua=Symbol("header"),Hu=Symbol("read"),Um=Symbol("lstat"),$u=Symbol("onlstat"),Gm=Symbol("onread"),Vm=Symbol("onreadlink"),Wm=Symbol("openfile"),zm=Symbol("onopenfile"),Pn=Symbol("close"),Uu=Symbol("mode"),Ym=Symbol("awaitDrain"),Hm=Symbol("ondrain"),Cr=Symbol("prefix"),FC=Symbol("hadError"),$C=Bu(),hU=Bm(),UC=jm(),GC=PC(),Gu=$C(class extends qC{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Ar(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||fU,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Ar(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Ar(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=UC(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=hU.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Ar(r.absolute||IC.resolve(this.cwd,e)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[$u](this.statCache.get(this.absolute)):this[Um]()}emit(e,...r){return e==="error"&&(this[FC]=!0),super.emit(e,...r)}[Um](){Rr.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[$u](r)})}[$u](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=pU(e),this.emit("stat",e),this[LC]()}[LC](){switch(this.type){case"File":return this[NC]();case"Directory":return this[DC]();case"SymbolicLink":return this[$m]();default:return this.end()}}[Uu](e){return GC(e,this.type==="Directory",this.portable)}[Cr](e){return HC(e,this.prefix)}[ua](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new jC({path:this[Cr](this.path),linkpath:this.type==="Link"?this[Cr](this.linkpath):this.linkpath,mode:this[Uu](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new BC({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Cr](this.path),linkpath:this.type==="Link"?this[Cr](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[DC](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[ua](),this.end()}[$m](){Rr.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Vm](r)})}[Vm](e){this.linkpath=Ar(e),this[ua](),this.end()}[MC](e){this.type="Link",this.linkpath=Ar(IC.relative(this.cwd,e)),this.stat.size=0,this[ua](),this.end()}[NC](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[MC](r)}this.linkCache.set(e,this.absolute)}if(this[ua](),this.stat.size===0)return this.end();this[Wm]()}[Wm](){Rr.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[zm](r)})}[zm](e){if(this.fd=e,this[FC])return this[Pn]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Hu]()}[Hu](){let{fd:e,buf:r,offset:n,length:i,pos:s}=this;Rr.read(e,r,n,i,s,(o,a)=>{if(o)return this[Pn](()=>this.emit("error",o));this[Gm](a)})}[Pn](e){Rr.close(this.fd,e)}[Gm](e){if(e<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Pn](()=>this.emit("error",i))}if(e>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Pn](()=>this.emit("error",i))}if(e===this.remain)for(let i=e;i<this.length&&e<this.blockRemain;i++)this.buf[i+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[Hm]():this[Ym](()=>this[Hm]())}[Ym](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[Hm](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Pn](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Hu]()}}),Km=class extends Gu{[Um](){this[$u](Rr.lstatSync(this.absolute))}[$m](){this[Vm](Rr.readlinkSync(this.absolute))}[Wm](){this[zm](Rr.openSync(this.absolute,"r"))}[Hu](){let e=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Rr.readSync(r,n,i,s,o);this[Gm](a),e=!1}finally{if(e)try{this[Pn](()=>{})}catch{}}}[Ym](e){e()}[Pn](e){Rr.closeSync(this.fd),e()}},dU=$C(class extends qC{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Ar(e.path),this.mode=this[Uu](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Ar(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=UC(this.path);i&&(this.path=s,n=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new jC({path:this[Cr](this.path),linkpath:this.type==="Link"?this[Cr](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new BC({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Cr](this.path),linkpath:this.type==="Link"?this[Cr](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Cr](e){return HC(e,this.prefix)}[Uu](e){return GC(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Gu.Sync=Km;Gu.Tar=dU;var pU=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";VC.exports=Gu});var zC=y((mJ,WC)=>{"use strict";l();WC.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Jm=y((gJ,YC)=>{"use strict";l();YC.exports=he;he.Node=hi;he.create=he;function he(t){var e=this;if(e instanceof he||(e=new he),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}he.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};he.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};he.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};he.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)gU(this,arguments[t]);return this.length};he.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)yU(this,arguments[t]);return this.length};he.prototype.pop=function(){if(!!this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};he.prototype.shift=function(){if(!!this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};he.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};he.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};he.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};he.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};he.prototype.map=function(t,e){e=e||this;for(var r=new he,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};he.prototype.mapReverse=function(t,e){e=e||this;for(var r=new he,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};he.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=t(r,n.value,i),n=n.next;return r};he.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=t(r,n.value,i),n=n.prev;return r};he.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};he.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};he.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new he;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(;i!==null&&n<e;n++,i=i.next)r.push(i.value);return r};he.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new he;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,i=this.tail;i!==null&&n>e;n--)i=i.prev;for(;i!==null&&n>t;n--,i=i.prev)r.push(i.value);return r};he.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(var s=[],n=0;i&&n<e;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=mU(this,i,r[n]);return s};he.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function mU(t,e,r){var n=e===t.head?new hi(r,null,e,t):new hi(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function gU(t,e){t.tail=new hi(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function yU(t,e){t.head=new hi(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function hi(t,e,r,n){if(!(this instanceof hi))return new hi(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{zC()(he)}catch{}});var Qu=y((_J,tO)=>{"use strict";l();var Ju=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},_U=Cu(),vU=Tm(),bU=Mu(),og=Zm(),EU=og.Sync,wU=og.Tar,xU=Jm(),KC=Buffer.alloc(1024),zu=Symbol("onStat"),Vu=Symbol("ended"),Or=Symbol("queue"),ks=Symbol("current"),di=Symbol("process"),Wu=Symbol("processing"),ZC=Symbol("processJob"),Tr=Symbol("jobs"),Xm=Symbol("jobDone"),Yu=Symbol("addFSEntry"),JC=Symbol("addTarEntry"),rg=Symbol("stat"),ng=Symbol("readdir"),Ku=Symbol("onreaddir"),Zu=Symbol("pipe"),XC=Symbol("entry"),Qm=Symbol("entryOpt"),ig=Symbol("writeEntryClass"),eO=Symbol("write"),eg=Symbol("ondrain"),Xu=require("fs"),QC=require("path"),SU=Bu(),tg=Rs(),ag=SU(class extends _U{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=tg(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[ig]=og,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new vU.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[eg]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[eg]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Or]=new xU,this[Tr]=0,this.jobs=+e.jobs||4,this[Wu]=!1,this[Vu]=!1}[eO](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Vu]=!0,this[di](),this}write(e){if(this[Vu])throw new Error("write after end");return e instanceof bU?this[JC](e):this[Yu](e),this.flowing}[JC](e){let r=tg(QC.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let n=new Ju(e.path,r,!1);n.entry=new wU(e,this[Qm](n)),n.entry.on("end",i=>this[Xm](n)),this[Tr]+=1,this[Or].push(n)}this[di]()}[Yu](e){let r=tg(QC.resolve(this.cwd,e));this[Or].push(new Ju(e,r)),this[di]()}[rg](e){e.pending=!0,this[Tr]+=1;let r=this.follow?"stat":"lstat";Xu[r](e.absolute,(n,i)=>{e.pending=!1,this[Tr]-=1,n?this.emit("error",n):this[zu](e,i)})}[zu](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[di]()}[ng](e){e.pending=!0,this[Tr]+=1,Xu.readdir(e.absolute,(r,n)=>{if(e.pending=!1,this[Tr]-=1,r)return this.emit("error",r);this[Ku](e,n)})}[Ku](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[di]()}[di](){if(!this[Wu]){this[Wu]=!0;for(let e=this[Or].head;e!==null&&this[Tr]<this.jobs;e=e.next)if(this[ZC](e.value),e.value.ignore){let r=e.next;this[Or].removeNode(e),e.next=r}this[Wu]=!1,this[Vu]&&!this[Or].length&&this[Tr]===0&&(this.zip?this.zip.end(KC):(super.write(KC),super.end()))}}get[ks](){return this[Or]&&this[Or].head&&this[Or].head.value}[Xm](e){this[Or].shift(),this[Tr]-=1,this[di]()}[ZC](e){if(!e.pending){if(e.entry){e===this[ks]&&!e.piped&&this[Zu](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[zu](e,this.statCache.get(e.absolute)):this[rg](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Ku](e,this.readdirCache.get(e.absolute)):this[ng](e),!e.readdir))){if(e.entry=this[XC](e),!e.entry){e.ignore=!0;return}e===this[ks]&&!e.piped&&this[Zu](e)}}}[Qm](e){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[XC](e){this[Tr]+=1;try{return new this[ig](e.path,this[Qm](e)).on("end",()=>this[Xm](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[eg](){this[ks]&&this[ks].entry&&this[ks].entry.resume()}[Zu](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Yu](o+i)});let r=e.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),sg=class extends ag{constructor(e){super(e),this[ig]=EU}pause(){}resume(){}[rg](e){let r=this.follow?"statSync":"lstatSync";this[zu](e,Xu[r](e.absolute))}[ng](e,r){this[Ku](e,Xu.readdirSync(e.absolute))}[Zu](e){let r=e.entry,n=this.zip;e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Yu](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[eO](i)})}};ag.Sync=sg;tO.exports=ag});var qs=y(fa=>{"use strict";l();var AU=dm(),RU=require("events").EventEmitter,Ct=require("fs"),lg=Ct.writev;if(!lg){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;lg=(r,n,i,s)=>{let o=(c,u)=>s(c,u,n),a=new e;a.oncomplete=o,t.writeBuffers(r,n,i,a)}}var Ms=Symbol("_autoClose"),lr=Symbol("_close"),la=Symbol("_ended"),be=Symbol("_fd"),rO=Symbol("_finished"),Ln=Symbol("_flags"),cg=Symbol("_flush"),fg=Symbol("_handleChunk"),hg=Symbol("_makeBuf"),il=Symbol("_mode"),el=Symbol("_needDrain"),Ns=Symbol("_onerror"),Fs=Symbol("_onopen"),ug=Symbol("_onread"),Is=Symbol("_onwrite"),Nn=Symbol("_open"),en=Symbol("_path"),pi=Symbol("_pos"),kr=Symbol("_queue"),Ls=Symbol("_read"),nO=Symbol("_readSize"),In=Symbol("_reading"),tl=Symbol("_remain"),iO=Symbol("_size"),rl=Symbol("_write"),Ps=Symbol("_writing"),nl=Symbol("_defaultFlag"),Ds=Symbol("_errored"),sl=class extends AU{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[Ds]=!1,this[be]=typeof r.fd=="number"?r.fd:null,this[en]=e,this[nO]=r.readSize||16*1024*1024,this[In]=!1,this[iO]=typeof r.size=="number"?r.size:1/0,this[tl]=this[iO],this[Ms]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[be]=="number"?this[Ls]():this[Nn]()}get fd(){return this[be]}get path(){return this[en]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Nn](){Ct.open(this[en],"r",(e,r)=>this[Fs](e,r))}[Fs](e,r){e?this[Ns](e):(this[be]=r,this.emit("open",r),this[Ls]())}[hg](){return Buffer.allocUnsafe(Math.min(this[nO],this[tl]))}[Ls](){if(!this[In]){this[In]=!0;let e=this[hg]();if(e.length===0)return process.nextTick(()=>this[ug](null,0,e));Ct.read(this[be],e,0,e.length,null,(r,n,i)=>this[ug](r,n,i))}}[ug](e,r,n){this[In]=!1,e?this[Ns](e):this[fg](r,n)&&this[Ls]()}[lr](){if(this[Ms]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Ct.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ns](e){this[In]=!0,this[lr](),this.emit("error",e)}[fg](e,r){let n=!1;return this[tl]-=e,e>0&&(n=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[tl]<=0)&&(n=!1,this[lr](),super.end()),n}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[be]=="number"&&this[Ls]();break;case"error":return this[Ds]?void 0:(this[Ds]=!0,super.emit(e,r));default:return super.emit(e,r)}}},dg=class extends sl{[Nn](){let e=!0;try{this[Fs](null,Ct.openSync(this[en],"r")),e=!1}finally{e&&this[lr]()}}[Ls](){let e=!0;try{if(!this[In]){this[In]=!0;do{let r=this[hg](),n=r.length===0?0:Ct.readSync(this[be],r,0,r.length,null);if(!this[fg](n,r))break}while(!0);this[In]=!1}e=!1}finally{e&&this[lr]()}}[lr](){if(this[Ms]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Ct.closeSync(e),this.emit("close")}}},ol=class extends RU{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ds]=!1,this[Ps]=!1,this[la]=!1,this[el]=!1,this[kr]=[],this[en]=e,this[be]=typeof r.fd=="number"?r.fd:null,this[il]=r.mode===void 0?438:r.mode,this[pi]=typeof r.start=="number"?r.start:null,this[Ms]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[pi]!==null?"r+":"w";this[nl]=r.flags===void 0,this[Ln]=this[nl]?n:r.flags,this[be]===null&&this[Nn]()}emit(e,r){if(e==="error"){if(this[Ds])return;this[Ds]=!0}return super.emit(e,r)}get fd(){return this[be]}get path(){return this[en]}[Ns](e){this[lr](),this[Ps]=!0,this.emit("error",e)}[Nn](){Ct.open(this[en],this[Ln],this[il],(e,r)=>this[Fs](e,r))}[Fs](e,r){this[nl]&&this[Ln]==="r+"&&e&&e.code==="ENOENT"?(this[Ln]="w",this[Nn]()):e?this[Ns](e):(this[be]=r,this.emit("open",r),this[cg]())}end(e,r){return e&&this.write(e,r),this[la]=!0,!this[Ps]&&!this[kr].length&&typeof this[be]=="number"&&this[Is](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[la]?(this.emit("error",new Error("write() after end()")),!1):this[be]===null||this[Ps]||this[kr].length?(this[kr].push(e),this[el]=!0,!1):(this[Ps]=!0,this[rl](e),!0)}[rl](e){Ct.write(this[be],e,0,e.length,this[pi],(r,n)=>this[Is](r,n))}[Is](e,r){e?this[Ns](e):(this[pi]!==null&&(this[pi]+=r),this[kr].length?this[cg]():(this[Ps]=!1,this[la]&&!this[rO]?(this[rO]=!0,this[lr](),this.emit("finish")):this[el]&&(this[el]=!1,this.emit("drain"))))}[cg](){if(this[kr].length===0)this[la]&&this[Is](null,0);else if(this[kr].length===1)this[rl](this[kr].pop());else{let e=this[kr];this[kr]=[],lg(this[be],e,this[pi],(r,n)=>this[Is](r,n))}}[lr](){if(this[Ms]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Ct.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},pg=class extends ol{[Nn](){let e;if(this[nl]&&this[Ln]==="r+")try{e=Ct.openSync(this[en],this[Ln],this[il])}catch(r){if(r.code==="ENOENT")return this[Ln]="w",this[Nn]();throw r}else e=Ct.openSync(this[en],this[Ln],this[il]);this[Fs](null,e)}[lr](){if(this[Ms]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Ct.closeSync(e),this.emit("close")}}[rl](e){let r=!0;try{this[Is](null,Ct.writeSync(this[be],e,0,e.length,this[pi])),r=!1}finally{if(r)try{this[lr]()}catch{}}}};fa.ReadStream=sl;fa.ReadStreamSync=dg;fa.WriteStream=ol;fa.WriteStreamSync=pg});var dl=y((EJ,hO)=>{"use strict";l();var CU=Bu(),OU=Os(),TU=require("events"),kU=Jm(),PU=1024*1024,IU=Mu(),sO=qu(),LU=Tm(),{nextTick:NU}=require("process"),mg=Buffer.from([31,139]),Kt=Symbol("state"),mi=Symbol("writeEntry"),tn=Symbol("readEntry"),gg=Symbol("nextEntry"),oO=Symbol("processEntry"),Zt=Symbol("extendedHeader"),ha=Symbol("globalExtendedHeader"),Dn=Symbol("meta"),aO=Symbol("emitMeta"),Re=Symbol("buffer"),rn=Symbol("queue"),gi=Symbol("ended"),cO=Symbol("emittedEnd"),yi=Symbol("emit"),Ot=Symbol("unzip"),al=Symbol("consumeChunk"),cl=Symbol("consumeChunkSub"),yg=Symbol("consumeBody"),uO=Symbol("consumeMeta"),lO=Symbol("consumeHeader"),ul=Symbol("consuming"),_g=Symbol("bufferConcat"),vg=Symbol("maybeEnd"),da=Symbol("writing"),Mn=Symbol("aborted"),ll=Symbol("onDone"),_i=Symbol("sawValidEntry"),fl=Symbol("sawNullBlock"),hl=Symbol("sawEOF"),fO=Symbol("closeStream"),DU=t=>!0;hO.exports=CU(class extends TU{constructor(e){e=e||{},super(e),this.file=e.file||"",this[_i]=null,this.on(ll,r=>{(this[Kt]==="begin"||this[_i]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(ll,e.ondone):this.on(ll,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||PU,this.filter=typeof e.filter=="function"?e.filter:DU,this.writable=!0,this.readable=!1,this[rn]=new kU,this[Re]=null,this[tn]=null,this[mi]=null,this[Kt]="begin",this[Dn]="",this[Zt]=null,this[ha]=null,this[gi]=!1,this[Ot]=null,this[Mn]=!1,this[fl]=!1,this[hl]=!1,this.on("end",()=>this[fO]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[lO](e,r){this[_i]===null&&(this[_i]=!1);let n;try{n=new OU(e,r,this[Zt],this[ha])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[fl]?(this[hl]=!0,this[Kt]==="begin"&&(this[Kt]="header"),this[yi]("eof")):(this[fl]=!0,this[yi]("nullBlock"));else if(this[fl]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[mi]=new IU(n,this[Zt],this[ha]);if(!this[_i])if(s.remain){let o=()=>{s.invalid||(this[_i]=!0)};s.on("end",o)}else this[_i]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[yi]("ignoredEntry",s),this[Kt]="ignore",s.resume()):s.size>0&&(this[Dn]="",s.on("data",o=>this[Dn]+=o),this[Kt]="meta"):(this[Zt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[yi]("ignoredEntry",s),this[Kt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Kt]="body":(this[Kt]="header",s.end()),this[tn]?this[rn].push(s):(this[rn].push(s),this[gg]())))}}}[fO](){NU(()=>this.emit("close"))}[oO](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[tn]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",n=>this[gg]()),r=!1)):(this[tn]=null,r=!1),r}[gg](){do;while(this[oO](this[rn].shift()));if(!this[rn].length){let e=this[tn];!e||e.flowing||e.size===e.remain?this[da]||this.emit("drain"):e.once("drain",n=>this.emit("drain"))}}[yg](e,r){let n=this[mi],i=n.blockRemain,s=i>=e.length&&r===0?e:e.slice(r,r+i);return n.write(s),n.blockRemain||(this[Kt]="header",this[mi]=null,n.end()),s.length}[uO](e,r){let n=this[mi],i=this[yg](e,r);return this[mi]||this[aO](n),i}[yi](e,r,n){!this[rn].length&&!this[tn]?this.emit(e,r,n):this[rn].push([e,r,n])}[aO](e){switch(this[yi]("meta",this[Dn]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Zt]=sO.parse(this[Dn],this[Zt],!1);break;case"GlobalExtendedHeader":this[ha]=sO.parse(this[Dn],this[ha],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Zt]=this[Zt]||Object.create(null),this[Zt].path=this[Dn].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Zt]=this[Zt]||Object.create(null),this[Zt].linkpath=this[Dn].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Mn]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Mn])return;if(this[Ot]===null&&e){if(this[Re]&&(e=Buffer.concat([this[Re],e]),this[Re]=null),e.length<mg.length)return this[Re]=e,!0;for(let n=0;this[Ot]===null&&n<mg.length;n++)e[n]!==mg[n]&&(this[Ot]=!1);if(this[Ot]===null){let n=this[gi];this[gi]=!1,this[Ot]=new LU.Unzip,this[Ot].on("data",s=>this[al](s)),this[Ot].on("error",s=>this.abort(s)),this[Ot].on("end",s=>{this[gi]=!0,this[al]()}),this[da]=!0;let i=this[Ot][n?"end":"write"](e);return this[da]=!1,i}}this[da]=!0,this[Ot]?this[Ot].write(e):this[al](e),this[da]=!1;let r=this[rn].length?!1:this[tn]?this[tn].flowing:!0;return!r&&!this[rn].length&&this[tn].once("drain",n=>this.emit("drain")),r}[_g](e){e&&!this[Mn]&&(this[Re]=this[Re]?Buffer.concat([this[Re],e]):e)}[vg](){if(this[gi]&&!this[cO]&&!this[Mn]&&!this[ul]){this[cO]=!0;let e=this[mi];if(e&&e.blockRemain){let r=this[Re]?this[Re].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[Re]&&e.write(this[Re]),e.end()}this[yi](ll)}}[al](e){if(this[ul])this[_g](e);else if(!e&&!this[Re])this[vg]();else{if(this[ul]=!0,this[Re]){this[_g](e);let r=this[Re];this[Re]=null,this[cl](r)}else this[cl](e);for(;this[Re]&&this[Re].length>=512&&!this[Mn]&&!this[hl];){let r=this[Re];this[Re]=null,this[cl](r)}this[ul]=!1}(!this[Re]||this[gi])&&this[vg]()}[cl](e){let r=0,n=e.length;for(;r+512<=n&&!this[Mn]&&!this[hl];)switch(this[Kt]){case"begin":case"header":this[lO](e,r),r+=512;break;case"ignore":case"body":r+=this[yg](e,r);break;case"meta":r+=this[uO](e,r);break;default:throw new Error("invalid state: "+this[Kt])}r<n&&(this[Re]?this[Re]=Buffer.concat([e.slice(r),this[Re]]):this[Re]=e.slice(r))}end(e){this[Mn]||(this[Ot]?this[Ot].end(e):(this[gi]=!0,this.write(e)))}})});var pl=y((wJ,gO)=>{"use strict";l();var MU=Es(),pO=dl(),Bs=require("fs"),FU=qs(),dO=require("path"),bg=Ts();gO.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=MU(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&BU(n,e),n.noResume||qU(n),n.file&&n.sync?jU(n):n.file?HU(n,r):mO(n)};var qU=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},BU=(t,e)=>{let r=new Map(e.map(s=>[bg(s),!0])),n=t.filter,i=(s,o)=>{let a=o||dO.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):i(dO.dirname(s),a);return r.set(s,c),c};t.filter=n?(s,o)=>n(s,o)&&i(bg(s)):s=>i(bg(s))},jU=t=>{let e=mO(t),r=t.file,n=!0,i;try{let s=Bs.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(Bs.readFileSync(r));else{let a=0,c=Buffer.allocUnsafe(o);for(i=Bs.openSync(r,"r");a<s.size;){let u=Bs.readSync(i,c,0,o,a);a+=u,e.write(c.slice(0,u))}e.end()}n=!1}finally{if(n&&i)try{Bs.closeSync(i)}catch{}}},HU=(t,e)=>{let r=new pO(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),Bs.stat(i,(c,u)=>{if(c)a(c);else{let f=new FU.ReadStream(i,{readSize:n,size:u.size});f.on("error",a),f.pipe(r)}})});return e?s.then(e,e):s},mO=t=>new pO(t)});var wO=y((xJ,EO)=>{"use strict";l();var $U=Es(),ml=Qu(),yO=qs(),_O=pl(),vO=require("path");EO.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let n=$U(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?UU(n,e):n.file?GU(n,e,r):n.sync?VU(n,e):WU(n,e)};var UU=(t,e)=>{let r=new ml.Sync(t),n=new yO.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(n),bO(r,e)},GU=(t,e,r)=>{let n=new ml(t),i=new yO.WriteStream(t.file,{mode:t.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return Eg(n,e),r?s.then(r,r):s},bO=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?_O({file:vO.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},Eg=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return _O({file:vO.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>Eg(t,e));t.add(r)}t.end()},VU=(t,e)=>{let r=new ml.Sync(t);return bO(r,e),r},WU=(t,e)=>{let r=new ml(t);return Eg(r,e),r}});var wg=y((SJ,TO)=>{"use strict";l();var zU=Es(),xO=Qu(),Mt=require("fs"),SO=qs(),AO=pl(),RO=require("path"),CO=Os();TO.exports=(t,e,r)=>{let n=zU(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),n.sync?YU(n,e):ZU(n,e,r)};var YU=(t,e)=>{let r=new xO.Sync(t),n=!0,i,s;try{try{i=Mt.openSync(t.file,"r+")}catch(c){if(c.code==="ENOENT")i=Mt.openSync(t.file,"w+");else throw c}let o=Mt.fstatSync(i),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let f=0,h=0;f<512;f+=h){if(h=Mt.readSync(i,a,f,a.length-f,s+f),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let c=new CO(a);if(!c.cksumValid)break;let u=512*Math.ceil(c.size/512);if(s+u+512>o.size)break;s+=u,t.mtimeCache&&t.mtimeCache.set(c.path,c.mtime)}n=!1,KU(t,r,s,i,e)}finally{if(n)try{Mt.closeSync(i)}catch{}}},KU=(t,e,r,n,i)=>{let s=new SO.WriteStreamSync(t.file,{fd:n,start:r});e.pipe(s),JU(e,i)},ZU=(t,e,r)=>{e=Array.from(e);let n=new xO(t),i=(o,a,c)=>{let u=(m,E)=>{m?Mt.close(o,v=>c(m)):c(null,E)},f=0;if(a===0)return u(null,0);let h=0,d=Buffer.alloc(512),g=(m,E)=>{if(m)return u(m);if(h+=E,h<512&&E)return Mt.read(o,d,h,d.length-h,f+h,g);if(f===0&&d[0]===31&&d[1]===139)return u(new Error("cannot append to compressed archives"));if(h<512)return u(null,f);let v=new CO(d);if(!v.cksumValid)return u(null,f);let A=512*Math.ceil(v.size/512);if(f+A+512>a||(f+=A+512,f>=a))return u(null,f);t.mtimeCache&&t.mtimeCache.set(v.path,v.mtime),h=0,Mt.read(o,d,0,512,f,g)};Mt.read(o,d,0,512,f,g)},s=new Promise((o,a)=>{n.on("error",a);let c="r+",u=(f,h)=>{if(f&&f.code==="ENOENT"&&c==="r+")return c="w+",Mt.open(t.file,c,u);if(f)return a(f);Mt.fstat(h,(d,g)=>{if(d)return Mt.close(h,()=>a(d));i(h,g.size,(m,E)=>{if(m)return a(m);let v=new SO.WriteStream(t.file,{fd:h,start:E});n.pipe(v),v.on("error",a),v.on("close",o),OO(n,e)})})};Mt.open(t.file,c,u)});return r?s.then(r,r):s},JU=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?AO({file:RO.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},OO=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return AO({file:RO.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>OO(t,e));t.add(r)}t.end()}});var PO=y((AJ,kO)=>{"use strict";l();var XU=Es(),QU=wg();kO.exports=(t,e,r)=>{let n=XU(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),e4(n),QU(n,e,r)};var e4=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,n)=>e(r,n)&&!(t.mtimeCache.get(r)>n.mtime):(r,n)=>!(t.mtimeCache.get(r)>n.mtime)}});var NO=y((RJ,LO)=>{l();var{promisify:IO}=require("util"),Fn=require("fs"),t4=t=>{if(!t)t={mode:511,fs:Fn};else if(typeof t=="object")t={mode:511,fs:Fn,...t};else if(typeof t=="number")t={mode:t,fs:Fn};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Fn};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Fn.mkdir,t.mkdirAsync=IO(t.mkdir),t.stat=t.stat||t.fs.stat||Fn.stat,t.statAsync=IO(t.stat),t.statSync=t.statSync||t.fs.statSync||Fn.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Fn.mkdirSync,t};LO.exports=t4});var MO=y((CJ,DO)=>{l();var r4=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n4,parse:i4}=require("path"),s4=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=n4(t),r4==="win32"){let e=/[*|"<>?:]/,{root:r}=i4(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};DO.exports=s4});var HO=y((OJ,jO)=>{l();var{dirname:FO}=require("path"),qO=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?qO(t,FO(e),e):void 0),BO=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?BO(t,FO(e),e):void 0}};jO.exports={findMade:qO,findMadeSync:BO}});var Ag=y((TJ,UO)=>{l();var{dirname:$O}=require("path"),xg=(t,e,r)=>{e.recursive=!1;let n=$O(t);return n===t?e.mkdirAsync(t,e).catch(i=>{if(i.code!=="EISDIR")throw i}):e.mkdirAsync(t,e).then(()=>r||t,i=>{if(i.code==="ENOENT")return xg(n,e).then(s=>xg(t,e,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},Sg=(t,e,r)=>{let n=$O(t);if(e.recursive=!1,n===t)try{return e.mkdirSync(t,e)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return e.mkdirSync(t,e),r||t}catch(i){if(i.code==="ENOENT")return Sg(t,e,Sg(n,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};UO.exports={mkdirpManual:xg,mkdirpManualSync:Sg}});var WO=y((kJ,VO)=>{l();var{dirname:GO}=require("path"),{findMade:o4,findMadeSync:a4}=HO(),{mkdirpManual:c4,mkdirpManualSync:u4}=Ag(),l4=(t,e)=>(e.recursive=!0,GO(t)===t?e.mkdirAsync(t,e):o4(e,t).then(n=>e.mkdirAsync(t,e).then(()=>n).catch(i=>{if(i.code==="ENOENT")return c4(t,e);throw i}))),f4=(t,e)=>{if(e.recursive=!0,GO(t)===t)return e.mkdirSync(t,e);let n=a4(e,t);try{return e.mkdirSync(t,e),n}catch(i){if(i.code==="ENOENT")return u4(t,e);throw i}};VO.exports={mkdirpNative:l4,mkdirpNativeSync:f4}});var ZO=y((PJ,KO)=>{l();var zO=require("fs"),h4=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Rg=h4.replace(/^v/,"").split("."),YO=+Rg[0]>10||+Rg[0]==10&&+Rg[1]>=12,d4=YO?t=>t.mkdir===zO.mkdir:()=>!1,p4=YO?t=>t.mkdirSync===zO.mkdirSync:()=>!1;KO.exports={useNative:d4,useNativeSync:p4}});var rT=y((IJ,tT)=>{l();var js=NO(),Hs=MO(),{mkdirpNative:JO,mkdirpNativeSync:XO}=WO(),{mkdirpManual:QO,mkdirpManualSync:eT}=Ag(),{useNative:m4,useNativeSync:g4}=ZO(),$s=(t,e)=>(t=Hs(t),e=js(e),m4(e)?JO(t,e):QO(t,e)),y4=(t,e)=>(t=Hs(t),e=js(e),g4(e)?XO(t,e):eT(t,e));$s.sync=y4;$s.native=(t,e)=>JO(Hs(t),js(e));$s.manual=(t,e)=>QO(Hs(t),js(e));$s.nativeSync=(t,e)=>XO(Hs(t),js(e));$s.manualSync=(t,e)=>eT(Hs(t),js(e));tT.exports=$s});var uT=y((LJ,cT)=>{"use strict";l();var Jt=require("fs"),vi=require("path"),_4=Jt.lchown?"lchown":"chown",v4=Jt.lchownSync?"lchownSync":"chownSync",iT=Jt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),nT=(t,e,r)=>{try{return Jt[v4](t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},b4=(t,e,r)=>{try{return Jt.chownSync(t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},E4=iT?(t,e,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):Jt.chown(t,e,r,n)}:(t,e,r,n)=>n,Cg=iT?(t,e,r)=>{try{return nT(t,e,r)}catch(n){if(n.code!=="EISDIR")throw n;b4(t,e,r)}}:(t,e,r)=>nT(t,e,r),w4=process.version,sT=(t,e,r)=>Jt.readdir(t,e,r),x4=(t,e)=>Jt.readdirSync(t,e);/^v4\./.test(w4)&&(sT=(t,e,r)=>Jt.readdir(t,r));var gl=(t,e,r,n)=>{Jt[_4](t,e,r,E4(t,e,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},oT=(t,e,r,n,i)=>{if(typeof e=="string")return Jt.lstat(vi.resolve(t,e),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=e,oT(t,o,r,n,i)});if(e.isDirectory())Og(vi.resolve(t,e.name),r,n,s=>{if(s)return i(s);let o=vi.resolve(t,e.name);gl(o,r,n,i)});else{let s=vi.resolve(t,e.name);gl(s,r,n,i)}},Og=(t,e,r,n)=>{sT(t,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return gl(t,e,r,n);let o=s.length,a=null,c=u=>{if(!a){if(u)return n(a=u);if(--o===0)return gl(t,e,r,n)}};s.forEach(u=>oT(t,u,e,r,c))})},S4=(t,e,r,n)=>{if(typeof e=="string")try{let i=Jt.lstatSync(vi.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&aT(vi.resolve(t,e.name),r,n),Cg(vi.resolve(t,e.name),r,n)},aT=(t,e,r)=>{let n;try{n=x4(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return Cg(t,e,r);throw i}return n&&n.length&&n.forEach(i=>S4(t,i,e,r)),Cg(t,e,r)};cT.exports=Og;Og.sync=aT});var dT=y((NJ,Tg)=>{"use strict";l();var lT=rT(),Xt=require("fs"),yl=require("path"),fT=uT(),fr=Rs(),_l=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},vl=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},bl=(t,e)=>t.get(fr(e)),pa=(t,e,r)=>t.set(fr(e),r),A4=(t,e)=>{Xt.stat(t,(r,n)=>{(r||!n.isDirectory())&&(r=new vl(t,r&&r.code||"ENOTDIR")),e(r)})};Tg.exports=(t,e,r)=>{t=fr(t);let n=e.umask,i=e.mode|448,s=(i&n)!==0,o=e.uid,a=e.gid,c=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),u=e.preserve,f=e.unlink,h=e.cache,d=fr(e.cwd),g=(v,A)=>{v?r(v):(pa(h,t,!0),A&&c?fT(A,o,a,P=>g(P)):s?Xt.chmod(t,i,r):r())};if(h&&bl(h,t)===!0)return g();if(t===d)return A4(t,g);if(u)return lT(t,{mode:i}).then(v=>g(null,v),g);let E=fr(yl.relative(d,t)).split("/");El(d,E,i,h,f,d,null,g)};var El=(t,e,r,n,i,s,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),u=fr(yl.resolve(t+"/"+c));if(bl(n,u))return El(u,e,r,n,i,s,o,a);Xt.mkdir(u,r,hT(u,e,r,n,i,s,o,a))},hT=(t,e,r,n,i,s,o,a)=>c=>{c?Xt.lstat(t,(u,f)=>{if(u)u.path=u.path&&fr(u.path),a(u);else if(f.isDirectory())El(t,e,r,n,i,s,o,a);else if(i)Xt.unlink(t,h=>{if(h)return a(h);Xt.mkdir(t,r,hT(t,e,r,n,i,s,o,a))});else{if(f.isSymbolicLink())return a(new _l(t,t+"/"+e.join("/")));a(c)}}):(o=o||t,El(t,e,r,n,i,s,o,a))},R4=t=>{let e=!1,r="ENOTDIR";try{e=Xt.statSync(t).isDirectory()}catch(n){r=n.code}finally{if(!e)throw new vl(t,r)}};Tg.exports.sync=(t,e)=>{t=fr(t);let r=e.umask,n=e.mode|448,i=(n&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),c=e.preserve,u=e.unlink,f=e.cache,h=fr(e.cwd),d=v=>{pa(f,t,!0),v&&a&&fT.sync(v,s,o),i&&Xt.chmodSync(t,n)};if(f&&bl(f,t)===!0)return d();if(t===h)return R4(h),d();if(c)return d(lT.sync(t,n));let m=fr(yl.relative(h,t)).split("/"),E=null;for(let v=m.shift(),A=h;v&&(A+="/"+v);v=m.shift())if(A=fr(yl.resolve(A)),!bl(f,A))try{Xt.mkdirSync(A,n),E=E||A,pa(f,A,!0)}catch{let D=Xt.lstatSync(A);if(D.isDirectory()){pa(f,A,!0);continue}else if(u){Xt.unlinkSync(A),Xt.mkdirSync(A,n),E=E||A,pa(f,A,!0);continue}else if(D.isSymbolicLink())return new _l(A,A+"/"+m.join("/"))}return d(E)}});var Pg=y((DJ,pT)=>{l();var kg=Object.create(null),{hasOwnProperty:C4}=Object.prototype;pT.exports=t=>(C4.call(kg,t)||(kg[t]=t.normalize("NFKD")),kg[t])});var _T=y((MJ,yT)=>{l();var mT=require("assert"),O4=Pg(),T4=Ts(),{join:gT}=require("path"),k4=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,P4=k4==="win32";yT.exports=()=>{let t=new Map,e=new Map,r=u=>u.split("/").slice(0,-1).reduce((h,d)=>(h.length&&(d=gT(h[h.length-1],d)),h.push(d||"/"),h),[]),n=new Set,i=u=>{let f=e.get(u);if(!f)throw new Error("function does not have any path reservations");return{paths:f.paths.map(h=>t.get(h)),dirs:[...f.dirs].map(h=>t.get(h))}},s=u=>{let{paths:f,dirs:h}=i(u);return f.every(d=>d[0]===u)&&h.every(d=>d[0]instanceof Set&&d[0].has(u))},o=u=>n.has(u)||!s(u)?!1:(n.add(u),u(()=>a(u)),!0),a=u=>{if(!n.has(u))return!1;let{paths:f,dirs:h}=e.get(u),d=new Set;return f.forEach(g=>{let m=t.get(g);mT.equal(m[0],u),m.length===1?t.delete(g):(m.shift(),typeof m[0]=="function"?d.add(m[0]):m[0].forEach(E=>d.add(E)))}),h.forEach(g=>{let m=t.get(g);mT(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(g):m[0].size===1?(m.shift(),d.add(m[0])):m[0].delete(u)}),n.delete(u),d.forEach(g=>o(g)),!0};return{check:s,reserve:(u,f)=>{u=P4?["win32 parallelization disabled"]:u.map(d=>O4(T4(gT(d))).toLowerCase());let h=new Set(u.map(d=>r(d)).reduce((d,g)=>d.concat(g)));return e.set(f,{dirs:h,paths:u}),u.forEach(d=>{let g=t.get(d);g?g.push(f):t.set(d,[f])}),h.forEach(d=>{let g=t.get(d);g?g[g.length-1]instanceof Set?g[g.length-1].add(f):g.push(new Set([f])):t.set(d,[new Set([f])])}),o(f)}}}});var ET=y((FJ,bT)=>{l();var I4=process.env.__FAKE_PLATFORM__||process.platform,L4=I4==="win32",N4=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:D4,O_TRUNC:M4,O_WRONLY:F4,UV_FS_O_FILEMAP:vT=0}=N4.constants,q4=L4&&!!vT,B4=512*1024,j4=vT|M4|D4|F4;bT.exports=q4?t=>t<B4?j4:"w":()=>"w"});var jg=y((qJ,DT)=>{"use strict";l();var H4=require("assert"),$4=dl(),de=require("fs"),U4=qs(),nn=require("path"),IT=dT(),wT=Bm(),G4=_T(),V4=jm(),Ft=Rs(),W4=Ts(),z4=Pg(),xT=Symbol("onEntry"),Ng=Symbol("checkFs"),ST=Symbol("checkFs2"),Sl=Symbol("pruneCache"),Dg=Symbol("isReusable"),Qt=Symbol("makeFs"),Mg=Symbol("file"),Fg=Symbol("directory"),Al=Symbol("link"),AT=Symbol("symlink"),RT=Symbol("hardlink"),CT=Symbol("unsupported"),OT=Symbol("checkPath"),qn=Symbol("mkdir"),ht=Symbol("onError"),wl=Symbol("pending"),TT=Symbol("pend"),Us=Symbol("unpend"),Ig=Symbol("ended"),Lg=Symbol("maybeClose"),qg=Symbol("skip"),ma=Symbol("doChown"),ga=Symbol("uid"),ya=Symbol("gid"),_a=Symbol("checkedCwd"),LT=require("crypto"),NT=ET(),Y4=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,va=Y4==="win32",K4=(t,e)=>{if(!va)return de.unlink(t,e);let r=t+".DELETE."+LT.randomBytes(16).toString("hex");de.rename(t,r,n=>{if(n)return e(n);de.unlink(r,e)})},Z4=t=>{if(!va)return de.unlinkSync(t);let e=t+".DELETE."+LT.randomBytes(16).toString("hex");de.renameSync(t,e),de.unlinkSync(e)},kT=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,PT=t=>z4(W4(Ft(t))).toLowerCase(),J4=(t,e)=>{e=PT(e);for(let r of t.keys()){let n=PT(r);(n===e||n.indexOf(e+"/")===0)&&t.delete(r)}},X4=t=>{for(let e of t.keys())t.delete(e)},ba=class extends $4{constructor(e){if(e||(e={}),e.ondone=r=>{this[Ig]=!0,this[Lg]()},super(e),this[_a]=!1,this.reservations=G4(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[wl]=0,this[Ig]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||va,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Ft(nn.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[xT](r))}warn(e,r,n={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(n.recoverable=!1),super.warn(e,r,n)}[Lg](){this[Ig]&&this[wl]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[OT](e){if(this.strip){let r=Ft(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let n=Ft(e.linkpath).split("/");if(n.length>=this.strip)e.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Ft(e.path),n=r.split("/");if(n.includes("..")||va&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,s]=V4(r);i&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(nn.isAbsolute(e.path)?e.absolute=Ft(nn.resolve(e.path)):e.absolute=Ft(nn.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Ft(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=nn.win32.parse(e.absolute);e.absolute=r+wT.encode(e.absolute.slice(r.length));let{root:n}=nn.win32.parse(e.path);e.path=n+wT.encode(e.path.slice(n.length))}return!0}[xT](e){if(!this[OT](e))return e.resume();switch(H4.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Ng](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[CT](e)}}[ht](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Us](),r.resume())}[qn](e,r,n){IT(Ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},n)}[ma](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[ga](e){return kT(this.uid,e.uid,this.processUid)}[ya](e){return kT(this.gid,e.gid,this.processGid)}[Mg](e,r){let n=e.mode&4095||this.fmode,i=new U4.WriteStream(e.absolute,{flags:NT(e.size),mode:n,autoClose:!1});i.on("error",c=>{i.fd&&de.close(i.fd,()=>{}),i.write=()=>!0,this[ht](c,e),r()});let s=1,o=c=>{if(c){i.fd&&de.close(i.fd,()=>{}),this[ht](c,e),r();return}--s===0&&de.close(i.fd,u=>{u?this[ht](u,e):this[Us](),r()})};i.on("finish",c=>{let u=e.absolute,f=i.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,d=e.mtime;de.futimes(f,h,d,g=>g?de.utimes(u,h,d,m=>o(m&&g)):o())}if(this[ma](e)){s++;let h=this[ga](e),d=this[ya](e);de.fchown(f,h,d,g=>g?de.chown(u,h,d,m=>o(m&&g)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",c=>{this[ht](c,e),r()}),e.pipe(a)),a.pipe(i)}[Fg](e,r){let n=e.mode&4095||this.dmode;this[qn](e.absolute,n,i=>{if(i){this[ht](i,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[Us](),e.resume())};e.mtime&&!this.noMtime&&(s++,de.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[ma](e)&&(s++,de.chown(e.absolute,this[ga](e),this[ya](e),o)),o()})}[CT](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[AT](e,r){this[Al](e,e.linkpath,"symlink",r)}[RT](e,r){let n=Ft(nn.resolve(this.cwd,e.linkpath));this[Al](e,n,"link",r)}[TT](){this[wl]++}[Us](){this[wl]--,this[Lg]()}[qg](e){this[Us](),e.resume()}[Dg](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!va}[Ng](e){this[TT]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,n=>this[ST](e,n))}[Sl](e){e.type==="SymbolicLink"?X4(this.dirCache):e.type!=="Directory"&&J4(this.dirCache,e.absolute)}[ST](e,r){this[Sl](e);let n=a=>{this[Sl](e),r(a)},i=()=>{this[qn](this.cwd,this.dmode,a=>{if(a){this[ht](a,e),n();return}this[_a]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Ft(nn.dirname(e.absolute));if(a!==this.cwd)return this[qn](a,this.dmode,c=>{if(c){this[ht](c,e),n();return}o()})}o()},o=()=>{de.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[qg](e),n();return}if(a||this[Dg](e,c))return this[Qt](null,e,n);if(c.isDirectory()){if(e.type==="Directory"){let u=!this.noChmod&&e.mode&&(c.mode&4095)!==e.mode,f=h=>this[Qt](h,e,n);return u?de.chmod(e.absolute,e.mode,f):f()}if(e.absolute!==this.cwd)return de.rmdir(e.absolute,u=>this[Qt](u,e,n))}if(e.absolute===this.cwd)return this[Qt](null,e,n);K4(e.absolute,u=>this[Qt](u,e,n))})};this[_a]?s():i()}[Qt](e,r,n){if(e){this[ht](e,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[Mg](r,n);case"Link":return this[RT](r,n);case"SymbolicLink":return this[AT](r,n);case"Directory":case"GNUDumpDir":return this[Fg](r,n)}}[Al](e,r,n,i){de[n](r,e.absolute,s=>{s?this[ht](s,e):(this[Us](),e.resume()),i()})}},xl=t=>{try{return[null,t()]}catch(e){return[e,null]}},Bg=class extends ba{[Qt](e,r){return super[Qt](e,r,()=>{})}[Ng](e){if(this[Sl](e),!this[_a]){let s=this[qn](this.cwd,this.dmode);if(s)return this[ht](s,e);this[_a]=!0}if(e.absolute!==this.cwd){let s=Ft(nn.dirname(e.absolute));if(s!==this.cwd){let o=this[qn](s,this.dmode);if(o)return this[ht](o,e)}}let[r,n]=xl(()=>de.lstatSync(e.absolute));if(n&&(this.keep||this.newer&&n.mtime>e.mtime))return this[qg](e);if(r||this[Dg](e,n))return this[Qt](null,e);if(n.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(n.mode&4095)!==e.mode,[a]=o?xl(()=>{de.chmodSync(e.absolute,e.mode)}):[];return this[Qt](a,e)}let[s]=xl(()=>de.rmdirSync(e.absolute));this[Qt](s,e)}let[i]=e.absolute===this.cwd?[]:xl(()=>Z4(e.absolute));this[Qt](i,e)}[Mg](e,r){let n=e.mode&4095||this.fmode,i=a=>{let c;try{de.closeSync(s)}catch(u){c=u}(a||c)&&this[ht](a||c,e),r()},s;try{s=de.openSync(e.absolute,NT(e.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[ht](a,e)),e.pipe(o)),o.on("data",a=>{try{de.writeSync(s,a,0,a.length)}catch(c){i(c)}}),o.on("end",a=>{let c=null;if(e.mtime&&!this.noMtime){let u=e.atime||new Date,f=e.mtime;try{de.futimesSync(s,u,f)}catch(h){try{de.utimesSync(e.absolute,u,f)}catch{c=h}}}if(this[ma](e)){let u=this[ga](e),f=this[ya](e);try{de.fchownSync(s,u,f)}catch(h){try{de.chownSync(e.absolute,u,f)}catch{c=c||h}}}i(c)})}[Fg](e,r){let n=e.mode&4095||this.dmode,i=this[qn](e.absolute,n);if(i){this[ht](i,e),r();return}if(e.mtime&&!this.noMtime)try{de.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[ma](e))try{de.chownSync(e.absolute,this[ga](e),this[ya](e))}catch{}r(),e.resume()}[qn](e,r){try{return IT.sync(Ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(n){return n}}[Al](e,r,n,i){try{de[n+"Sync"](r,e.absolute),i(),e.resume()}catch(s){return this[ht](s,e)}}};ba.Sync=Bg;DT.exports=ba});var jT=y((BJ,BT)=>{"use strict";l();var Q4=Es(),Rl=jg(),FT=require("fs"),qT=qs(),MT=require("path"),Hg=Ts();BT.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=Q4(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&e8(n,e),n.file&&n.sync?t8(n):n.file?r8(n,r):n.sync?n8(n):i8(n)};var e8=(t,e)=>{let r=new Map(e.map(s=>[Hg(s),!0])),n=t.filter,i=(s,o)=>{let a=o||MT.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):i(MT.dirname(s),a);return r.set(s,c),c};t.filter=n?(s,o)=>n(s,o)&&i(Hg(s)):s=>i(Hg(s))},t8=t=>{let e=new Rl.Sync(t),r=t.file,n=FT.statSync(r),i=t.maxReadSize||16*1024*1024;new qT.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(e)},r8=(t,e)=>{let r=new Rl(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),FT.stat(i,(c,u)=>{if(c)a(c);else{let f=new qT.ReadStream(i,{readSize:n,size:u.size});f.on("error",a),f.pipe(r)}})});return e?s.then(e,e):s},n8=t=>new Rl.Sync(t),i8=t=>new Rl(t)});var HT=y(Ve=>{"use strict";l();Ve.c=Ve.create=wO();Ve.r=Ve.replace=wg();Ve.t=Ve.list=pl();Ve.u=Ve.update=PO();Ve.x=Ve.extract=jT();Ve.Pack=Qu();Ve.Unpack=jg();Ve.Parse=dl();Ve.ReadEntry=Mu();Ve.WriteEntry=Zm();Ve.Header=Os();Ve.Pax=qu();Ve.types=Im()});var on=y((sn,Cl)=>{"use strict";l();Object.defineProperty(sn,"__esModule",{value:!0});var $T=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function s8(t){return $T.includes(t)}var o8=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...$T];function a8(t){return o8.includes(t)}var c8=["null","undefined","string","number","bigint","boolean","symbol"];function u8(t){return c8.includes(t)}function Gs(t){return e=>typeof e===t}var{toString:UT}=Object.prototype,Ea=t=>{let e=UT.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&w.domElement(t))return"HTMLElement";if(a8(e))return e},we=t=>e=>Ea(e)===t;function w(t){if(t===null)return"null";switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(w.observable(t))return"Observable";if(w.array(t))return"Array";if(w.buffer(t))return"Buffer";let e=Ea(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}w.undefined=Gs("undefined");w.string=Gs("string");var l8=Gs("number");w.number=t=>l8(t)&&!w.nan(t);w.bigint=Gs("bigint");w.function_=Gs("function");w.null_=t=>t===null;w.class_=t=>w.function_(t)&&t.toString().startsWith("class ");w.boolean=t=>t===!0||t===!1;w.symbol=Gs("symbol");w.numericString=t=>w.string(t)&&!w.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));w.array=(t,e)=>Array.isArray(t)?w.function_(e)?t.every(e):!0:!1;w.buffer=t=>{var e,r,n,i;return(i=(n=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!1};w.blob=t=>we("Blob")(t);w.nullOrUndefined=t=>w.null_(t)||w.undefined(t);w.object=t=>!w.null_(t)&&(typeof t=="object"||w.function_(t));w.iterable=t=>{var e;return w.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};w.asyncIterable=t=>{var e;return w.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};w.generator=t=>{var e,r;return w.iterable(t)&&w.function_((e=t)===null||e===void 0?void 0:e.next)&&w.function_((r=t)===null||r===void 0?void 0:r.throw)};w.asyncGenerator=t=>w.asyncIterable(t)&&w.function_(t.next)&&w.function_(t.throw);w.nativePromise=t=>we("Promise")(t);var f8=t=>{var e,r;return w.function_((e=t)===null||e===void 0?void 0:e.then)&&w.function_((r=t)===null||r===void 0?void 0:r.catch)};w.promise=t=>w.nativePromise(t)||f8(t);w.generatorFunction=we("GeneratorFunction");w.asyncGeneratorFunction=t=>Ea(t)==="AsyncGeneratorFunction";w.asyncFunction=t=>Ea(t)==="AsyncFunction";w.boundFunction=t=>w.function_(t)&&!t.hasOwnProperty("prototype");w.regExp=we("RegExp");w.date=we("Date");w.error=we("Error");w.map=t=>we("Map")(t);w.set=t=>we("Set")(t);w.weakMap=t=>we("WeakMap")(t);w.weakSet=t=>we("WeakSet")(t);w.int8Array=we("Int8Array");w.uint8Array=we("Uint8Array");w.uint8ClampedArray=we("Uint8ClampedArray");w.int16Array=we("Int16Array");w.uint16Array=we("Uint16Array");w.int32Array=we("Int32Array");w.uint32Array=we("Uint32Array");w.float32Array=we("Float32Array");w.float64Array=we("Float64Array");w.bigInt64Array=we("BigInt64Array");w.bigUint64Array=we("BigUint64Array");w.arrayBuffer=we("ArrayBuffer");w.sharedArrayBuffer=we("SharedArrayBuffer");w.dataView=we("DataView");w.enumCase=(t,e)=>Object.values(e).includes(t);w.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;w.urlInstance=t=>we("URL")(t);w.urlString=t=>{if(!w.string(t))return!1;try{return new URL(t),!0}catch{return!1}};w.truthy=t=>Boolean(t);w.falsy=t=>!t;w.nan=t=>Number.isNaN(t);w.primitive=t=>w.null_(t)||u8(typeof t);w.integer=t=>Number.isInteger(t);w.safeInteger=t=>Number.isSafeInteger(t);w.plainObject=t=>{if(UT.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};w.typedArray=t=>s8(Ea(t));var h8=t=>w.safeInteger(t)&&t>=0;w.arrayLike=t=>!w.nullOrUndefined(t)&&!w.function_(t)&&h8(t.length);w.inRange=(t,e)=>{if(w.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(w.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var d8=1,p8=["innerHTML","ownerDocument","style","attributes","nodeValue"];w.domElement=t=>w.object(t)&&t.nodeType===d8&&w.string(t.nodeName)&&!w.plainObject(t)&&p8.every(e=>e in t);w.observable=t=>{var e,r,n,i;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((i=(n=t)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};w.nodeStream=t=>w.object(t)&&w.function_(t.pipe)&&!w.observable(t);w.infinite=t=>t===1/0||t===-1/0;var GT=t=>e=>w.integer(e)&&Math.abs(e%2)===t;w.evenInteger=GT(0);w.oddInteger=GT(1);w.emptyArray=t=>w.array(t)&&t.length===0;w.nonEmptyArray=t=>w.array(t)&&t.length>0;w.emptyString=t=>w.string(t)&&t.length===0;var m8=t=>w.string(t)&&!/\S/.test(t);w.emptyStringOrWhitespace=t=>w.emptyString(t)||m8(t);w.nonEmptyString=t=>w.string(t)&&t.length>0;w.nonEmptyStringAndNotWhitespace=t=>w.string(t)&&!w.emptyStringOrWhitespace(t);w.emptyObject=t=>w.object(t)&&!w.map(t)&&!w.set(t)&&Object.keys(t).length===0;w.nonEmptyObject=t=>w.object(t)&&!w.map(t)&&!w.set(t)&&Object.keys(t).length>0;w.emptySet=t=>w.set(t)&&t.size===0;w.nonEmptySet=t=>w.set(t)&&t.size>0;w.emptyMap=t=>w.map(t)&&t.size===0;w.nonEmptyMap=t=>w.map(t)&&t.size>0;w.propertyKey=t=>w.any([w.string,w.number,w.symbol],t);w.formData=t=>we("FormData")(t);w.urlSearchParams=t=>we("URLSearchParams")(t);var VT=(t,e,r)=>{if(!w.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};w.any=(t,...e)=>(w.array(t)?t:[t]).some(n=>VT(Array.prototype.some,n,e));w.all=(t,...e)=>VT(Array.prototype.every,t,e);var M=(t,e,r,n={})=>{if(!t){let{multipleValues:i}=n,s=i?`received values of types ${[...new Set(r.map(o=>`\`${w(o)}\``))].join(", ")}`:`received value of type \`${w(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};sn.assert={undefined:t=>M(w.undefined(t),"undefined",t),string:t=>M(w.string(t),"string",t),number:t=>M(w.number(t),"number",t),bigint:t=>M(w.bigint(t),"bigint",t),function_:t=>M(w.function_(t),"Function",t),null_:t=>M(w.null_(t),"null",t),class_:t=>M(w.class_(t),"Class",t),boolean:t=>M(w.boolean(t),"boolean",t),symbol:t=>M(w.symbol(t),"symbol",t),numericString:t=>M(w.numericString(t),"string with a number",t),array:(t,e)=>{M(w.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>M(w.buffer(t),"Buffer",t),blob:t=>M(w.blob(t),"Blob",t),nullOrUndefined:t=>M(w.nullOrUndefined(t),"null or undefined",t),object:t=>M(w.object(t),"Object",t),iterable:t=>M(w.iterable(t),"Iterable",t),asyncIterable:t=>M(w.asyncIterable(t),"AsyncIterable",t),generator:t=>M(w.generator(t),"Generator",t),asyncGenerator:t=>M(w.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>M(w.nativePromise(t),"native Promise",t),promise:t=>M(w.promise(t),"Promise",t),generatorFunction:t=>M(w.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>M(w.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>M(w.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>M(w.boundFunction(t),"Function",t),regExp:t=>M(w.regExp(t),"RegExp",t),date:t=>M(w.date(t),"Date",t),error:t=>M(w.error(t),"Error",t),map:t=>M(w.map(t),"Map",t),set:t=>M(w.set(t),"Set",t),weakMap:t=>M(w.weakMap(t),"WeakMap",t),weakSet:t=>M(w.weakSet(t),"WeakSet",t),int8Array:t=>M(w.int8Array(t),"Int8Array",t),uint8Array:t=>M(w.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>M(w.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>M(w.int16Array(t),"Int16Array",t),uint16Array:t=>M(w.uint16Array(t),"Uint16Array",t),int32Array:t=>M(w.int32Array(t),"Int32Array",t),uint32Array:t=>M(w.uint32Array(t),"Uint32Array",t),float32Array:t=>M(w.float32Array(t),"Float32Array",t),float64Array:t=>M(w.float64Array(t),"Float64Array",t),bigInt64Array:t=>M(w.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>M(w.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>M(w.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>M(w.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>M(w.dataView(t),"DataView",t),enumCase:(t,e)=>M(w.enumCase(t,e),"EnumCase",t),urlInstance:t=>M(w.urlInstance(t),"URL",t),urlString:t=>M(w.urlString(t),"string with a URL",t),truthy:t=>M(w.truthy(t),"truthy",t),falsy:t=>M(w.falsy(t),"falsy",t),nan:t=>M(w.nan(t),"NaN",t),primitive:t=>M(w.primitive(t),"primitive",t),integer:t=>M(w.integer(t),"integer",t),safeInteger:t=>M(w.safeInteger(t),"integer",t),plainObject:t=>M(w.plainObject(t),"plain object",t),typedArray:t=>M(w.typedArray(t),"TypedArray",t),arrayLike:t=>M(w.arrayLike(t),"array-like",t),domElement:t=>M(w.domElement(t),"HTMLElement",t),observable:t=>M(w.observable(t),"Observable",t),nodeStream:t=>M(w.nodeStream(t),"Node.js Stream",t),infinite:t=>M(w.infinite(t),"infinite number",t),emptyArray:t=>M(w.emptyArray(t),"empty array",t),nonEmptyArray:t=>M(w.nonEmptyArray(t),"non-empty array",t),emptyString:t=>M(w.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>M(w.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>M(w.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>M(w.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>M(w.emptyObject(t),"empty object",t),nonEmptyObject:t=>M(w.nonEmptyObject(t),"non-empty object",t),emptySet:t=>M(w.emptySet(t),"empty set",t),nonEmptySet:t=>M(w.nonEmptySet(t),"non-empty set",t),emptyMap:t=>M(w.emptyMap(t),"empty map",t),nonEmptyMap:t=>M(w.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>M(w.propertyKey(t),"PropertyKey",t),formData:t=>M(w.formData(t),"FormData",t),urlSearchParams:t=>M(w.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>M(w.evenInteger(t),"even integer",t),oddInteger:t=>M(w.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>M(w.directInstanceOf(t,e),"T",t),inRange:(t,e)=>M(w.inRange(t,e),"in range",t),any:(t,...e)=>M(w.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>M(w.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(w,{class:{value:w.class_},function:{value:w.function_},null:{value:w.null_}});Object.defineProperties(sn.assert,{class:{value:sn.assert.class_},function:{value:sn.assert.function_},null:{value:sn.assert.null_}});sn.default=w;Cl.exports=w;Cl.exports.default=w;Cl.exports.assert=sn.assert});var WT=y((HJ,$g)=>{"use strict";l();var Ol=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Vs=class{static fn(e){return(...r)=>new Vs((n,i,s)=>{r.push(s),e(...r).then(n,i)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,n(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),e(i,s,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new Ol(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Vs.prototype,Promise.prototype);$g.exports=Vs;$g.exports.CancelError=Ol});var zT=y((Gg,Vg)=>{"use strict";l();Object.defineProperty(Gg,"__esModule",{value:!0});function g8(t){return t.encrypted}var Ug=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),g8(t)&&i&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),s&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&s&&r.close(t._hadError)};Gg.default=Ug;Vg.exports=Ug;Vg.exports.default=Ug});var YT=y((zg,Yg)=>{"use strict";l();Object.defineProperty(zg,"__esModule",{value:!0});var y8=zT(),_8=require("util"),v8=Number(process.versions.node.split(".")[0]),Wg=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=a=>{let c=a.emit.bind(a);a.emit=(u,...f)=>(u==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,a.emit=c),c(u,...f))};r(t);let n=()=>{e.abort=Date.now(),(!e.response||v8>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",n);let i=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,_8.types.isProxy(a))return;let c=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",c),y8.default(a,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(a.removeListener("lookup",c),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?i(t.socket):t.prependOnceListener("socket",i);let s=()=>{var a;e.upload=Date.now(),e.phases.request=e.upload-((a=e.secureConnect)!==null&&a!==void 0?a:e.connect)};return(()=>typeof t.writableFinished=="boolean"?t.writableFinished:t.finished&&t.outputSize===0&&(!t.socket||t.socket.writableLength===0))()?s():t.prependOnceListener("finish",s),t.prependOnceListener("response",a=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,a.timings=e,r(a),a.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start}),a.prependOnceListener("aborted",n)}),e};zg.default=Wg;Yg.exports=Wg;Yg.exports.default=Wg});var tk=y(($J,Jg)=>{"use strict";l();var{V4MAPPED:b8,ADDRCONFIG:E8,ALL:ek,promises:{Resolver:KT},lookup:w8}=require("dns"),{promisify:Kg}=require("util"),x8=require("os"),Ws=Symbol("cacheableLookupCreateConnection"),Zg=Symbol("cacheableLookupInstance"),ZT=Symbol("expires"),S8=typeof ek=="number",JT=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},A8=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},XT=()=>{let t=!1,e=!1;for(let r of Object.values(x8.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},R8=t=>Symbol.iterator in t,QT={ttl:!0},C8={all:!0},Tl=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new KT,lookup:o=w8}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=e,this._resolver=s,this._dnsLookup=Kg(o),this._resolver instanceof KT?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=Kg(this._resolver.resolve4.bind(this._resolver)),this._resolve6=Kg(this._resolver.resolve6.bind(this._resolver))),this._iface=XT(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);a.unref&&a.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&b8&&(S8&&r.hints&ek||i.length===0)?A8(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&E8){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${e}`);throw i.code="ENOTFOUND",i.hostname=e,i}return r.all?n:n[0]}async query(e){let r=await this._cache.get(e);if(!r){let n=this._pending[e];if(n)r=await n;else{let i=this.queryAndCache(e);this._pending[e]=i;try{r=await i}finally{delete this._pending[e]}}}return r=r.map(n=>({...n})),r}async _resolve(e){let r=async u=>{try{return await u}catch(f){if(f.code==="ENODATA"||f.code==="ENOTFOUND")return[];throw f}},[n,i]=await Promise.all([this._resolve4(e,QT),this._resolve6(e,QT)].map(u=>r(u))),s=0,o=0,a=0,c=Date.now();for(let u of n)u.family=4,u.expires=c+u.ttl*1e3,s=Math.max(s,u.ttl);for(let u of i)u.family=6,u.expires=c+u.ttl*1e3,o=Math.max(o,u.ttl);return n.length>0?i.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...n,...i],cacheTtl:a}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[ZT]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}R8(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,C8);let r=await this._resolve(e);r.entries.length===0&&this._fallback&&(r=await this._lookup(e),r.entries.length!==0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[ZT];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(JT(e),Ws in e)throw new Error("CacheableLookup has been already installed");e[Ws]=e.createConnection,e[Zg]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[Ws](r,n))}uninstall(e){if(JT(e),e[Ws]){if(e[Zg]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Ws],delete e[Ws],delete e[Zg]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=XT(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};Jg.exports=Tl;Jg.exports.default=Tl});var ik=y((UJ,nk)=>{"use strict";l();var O8="text/plain",T8="us-ascii",rk=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),k8=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let c=(o.shift()||"").toLowerCase(),f=[...o.map(h=>{let[d,g=""]=h.split("=").map(m=>m.trim());return d==="charset"&&(g=g.toLowerCase(),g===T8)?"":`${d}${g?`=${g}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length!==0||c&&c!==O8)&&f.unshift(c),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},P8=(t,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},t=t.trim(),/^data:/i.test(t))return k8(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];rk(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])rk(o,e.removeQueryParameters)&&i.searchParams.delete(o);e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters&&i.searchParams.sort(),e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};nk.exports=P8});var ak=y((GJ,ok)=>{l();ok.exports=sk;function sk(t,e){if(t&&e)return sk(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var Qg=y((VJ,Xg)=>{l();var ck=ak();Xg.exports=ck(kl);Xg.exports.strict=ck(uk);kl.proto=kl(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return kl(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return uk(this)},configurable:!0})});function kl(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function uk(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var hk=y((WJ,fk)=>{l();var I8=Qg(),L8=function(){},N8=function(t){return t.setHeader&&typeof t.abort=="function"},D8=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},lk=function(t,e,r){if(typeof e=="function")return lk(t,null,e);e||(e={}),r=I8(r||L8);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,c=function(){t.writable||u()},u=function(){o=!1,s||r.call(t)},f=function(){s=!1,o||r.call(t)},h=function(v){r.call(t,v?new Error("exited with error code: "+v):null)},d=function(v){r.call(t,v)},g=function(){process.nextTick(m)},m=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},E=function(){t.req.on("finish",u)};return N8(t)?(t.on("complete",u),t.on("abort",g),t.req?E():t.on("request",E)):o&&!n&&(t.on("end",c),t.on("close",c)),D8(t)&&t.on("exit",h),t.on("end",f),t.on("finish",u),e.error!==!1&&t.on("error",d),t.on("close",g),function(){a=!0,t.removeListener("complete",u),t.removeListener("abort",g),t.removeListener("request",E),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("exit",h),t.removeListener("end",f),t.removeListener("error",d),t.removeListener("close",g)}};fk.exports=lk});var mk=y((zJ,pk)=>{l();var M8=Qg(),F8=hk(),ey=require("fs"),wa=function(){},q8=/^v?\.0/.test(process.version),Pl=function(t){return typeof t=="function"},B8=function(t){return!q8||!ey?!1:(t instanceof(ey.ReadStream||wa)||t instanceof(ey.WriteStream||wa))&&Pl(t.close)},j8=function(t){return t.setHeader&&Pl(t.abort)},H8=function(t,e,r,n){n=M8(n);var i=!1;t.on("close",function(){i=!0}),F8(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,B8(t))return t.close(wa);if(j8(t))return t.abort();if(Pl(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},dk=function(t){t()},$8=function(t,e){return t.pipe(e)},U8=function(){var t=Array.prototype.slice.call(arguments),e=Pl(t[t.length-1]||wa)&&t.pop()||wa;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return H8(i,o,a,function(c){r||(r=c),c&&n.forEach(dk),!o&&(n.forEach(dk),e(r))})});return t.reduce($8)};pk.exports=U8});var yk=y((YJ,gk)=>{"use strict";l();var{PassThrough:G8}=require("stream");gk.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new G8({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",c=>{a.push(c),i?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var _k=y((KJ,zs)=>{"use strict";l();var{constants:V8}=require("buffer"),W8=mk(),z8=yk(),Il=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Ll(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=V8.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=W8(t,z8(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new Il)})}),n.getBufferedValue()}zs.exports=Ll;zs.exports.default=Ll;zs.exports.buffer=(t,e)=>Ll(t,{...e,encoding:"buffer"});zs.exports.array=(t,e)=>Ll(t,{...e,array:!0});zs.exports.MaxBufferError=Il});var bk=y((JJ,vk)=>{"use strict";l();var Y8=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),K8=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),Z8=new Set([500,502,503,504]),J8={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},X8={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function bi(t){let e=parseInt(t,10);return isFinite(e)?e:0}function Q8(t){return t?Z8.has(t.status):!0}function ty(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);e[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function e9(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(!!e.length)return e.join(", ")}vk.exports=class{constructor(e,r,{shared:n,cacheHeuristic:i,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=ty(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=ty(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":e9(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&K8.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||Y8.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=ty(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)J8[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return bi(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return bi(this._rescc["s-maxage"])}if(this._rescc["max-age"])return bi(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+bi(this._rescc["stale-if-error"]),n=e+bi(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+bi(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+bi(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&Q8(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!X8[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Nl=y((XJ,Ek)=>{"use strict";l();Ek.exports=t=>{let e={};for(let[r,n]of Object.entries(t))e[r.toLowerCase()]=n;return e}});var xk=y((QJ,wk)=>{"use strict";l();var t9=require("stream").Readable,r9=Nl(),ry=class extends t9{constructor(e,r,n,i){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=r9(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};wk.exports=ry});var Ak=y((eX,Sk)=>{"use strict";l();var n9=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];Sk.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(n9));for(let n of r)n in e||(e[n]=typeof t[n]=="function"?t[n].bind(t):t[n])}});var Ck=y((tX,Rk)=>{"use strict";l();var i9=require("stream").PassThrough,s9=Ak(),o9=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new i9;return s9(t,e),t.pipe(e)};Rk.exports=o9});var Ok=y(ny=>{l();ny.stringify=function t(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var i=!0;for(var s in e){var o=typeof e[s]=="function"||!n&&typeof e[s]>"u";Object.hasOwnProperty.call(e,s)&&!o&&(i||(r+=","),i=!1,n?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};ny.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var Ik=y((nX,Pk)=>{"use strict";l();var a9=require("events"),Tk=Ok(),c9=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},kk=["sqlite","postgres","mysql","mongo","redis","tiered"],iy=class extends a9{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:Tk.stringify,deserialize:Tk.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let s={...this.opts};this.opts.store=c9(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let i=s=>async function*(){for await(let[o,a]of typeof s=="function"?s(this.opts.store.namespace):s){let c=this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof c.expires=="number"&&Date.now()>c.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),c.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return kk.includes(this.opts.store.opts.dialect)||kk.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,i=Array.isArray(e),s=i?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(i&&n.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>n.get(a)).then(c=>typeof c=="string"?this.opts.deserialize(c):this.opts.compression?this.opts.deserialize(c):c).then(c=>{if(c!=null)return typeof c.expires=="number"&&Date.now()>c.expires?this.delete(a).then(()=>{}):r&&r.raw?c:c.value}));return Promise.allSettled(o).then(a=>{let c=[];for(let u of a)c.push(u.value);return c})}return Promise.resolve().then(()=>i?n.getMany(s):n.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(i){let a=[];for(let c of o){if(typeof c=="string"&&(c=this.opts.deserialize(c)),c==null){a.push(void 0);continue}typeof c.expires=="number"&&Date.now()>c.expires?(this.delete(e).then(()=>{}),a.push(void 0)):a.push(r&&r.raw?c:c.value)}return a}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value}})}set(e,r,n){let i=this._getKeyPrefix(e);typeof n>"u"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(i,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let i=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};Pk.exports=iy});var Dk=y((iX,Nk)=>{"use strict";l();var u9=require("events"),Dl=require("url"),l9=ik(),f9=_k(),sy=bk(),Lk=xk(),h9=Nl(),d9=Ck(),p9=Ik(),hr=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new p9({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,n)=>{let i;if(typeof r=="string")i=oy(Dl.parse(r)),r={};else if(r instanceof Dl.URL)i=oy(Dl.parse(r.toString())),r={};else{let[h,...d]=(r.path||"").split("?"),g=d.length>0?`?${d.join("?")}`:"";i=oy({...r,pathname:h,search:g})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...m9(i)},r.headers=h9(r.headers);let s=new u9,o=l9(Dl.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,c=!1,u=!1,f=h=>{u=!0;let d=!1,g,m=new Promise(v=>{g=()=>{d||(d=!0,v())}}),E=v=>{if(c&&!h.forceRefresh){v.status=v.statusCode;let P=sy.fromObject(c.cachePolicy).revalidatedPolicy(h,v);if(!P.modified){let D=P.policy.responseHeaders();v=new Lk(c.statusCode,D,c.body,c.url),v.cachePolicy=P.policy,v.fromCache=!0}}v.fromCache||(v.cachePolicy=new sy(h,v,h),v.fromCache=!1);let A;h.cache&&v.cachePolicy.storable()?(A=d9(v),(async()=>{try{let P=f9.buffer(v);if(await Promise.race([m,new Promise(ue=>v.once("end",ue))]),d)return;let D=await P,ie={cachePolicy:v.cachePolicy.toObject(),url:v.url,statusCode:v.fromCache?c.statusCode:v.statusCode,body:D},z=h.strictTtl?v.cachePolicy.timeToLive():void 0;h.maxTtl&&(z=z?Math.min(z,h.maxTtl):h.maxTtl),await this.cache.set(a,ie,z)}catch(P){s.emit("error",new hr.CacheError(P))}})()):h.cache&&c&&(async()=>{try{await this.cache.delete(a)}catch(P){s.emit("error",new hr.CacheError(P))}})(),s.emit("response",A||v),typeof n=="function"&&n(A||v)};try{let v=e(h,E);v.once("error",g),v.once("abort",g),s.emit("request",v)}catch(v){s.emit("error",new hr.RequestError(v))}};return(async()=>{let h=async g=>{await Promise.resolve();let m=g.cache?await this.cache.get(a):void 0;if(typeof m>"u")return f(g);let E=sy.fromObject(m.cachePolicy);if(E.satisfiesWithoutRevalidation(g)&&!g.forceRefresh){let v=E.responseHeaders(),A=new Lk(m.statusCode,v,m.body,m.url);A.cachePolicy=E,A.fromCache=!0,s.emit("response",A),typeof n=="function"&&n(A)}else c=m,g.headers=E.revalidationHeaders(g),f(g)},d=g=>s.emit("error",new hr.CacheError(g));this.cache.once("error",d),s.on("response",()=>this.cache.removeListener("error",d));try{await h(r)}catch(g){r.automaticFailover&&!u&&f(r),s.emit("error",new hr.CacheError(g))}})(),s}}};function m9(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function oy(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}hr.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};hr.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};Nk.exports=hr});var Fk=y((aX,Mk)=>{"use strict";l();var g9=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];Mk.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(g9)),n={};for(let i of r)i in e||(n[i]={get(){let s=t[i];return typeof s=="function"?s.bind(t):s},set(s){t[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var Bk=y((cX,qk)=>{"use strict";l();var{Transform:y9,PassThrough:_9}=require("stream"),ay=require("zlib"),v9=Fk();qk.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof ay.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,i=new y9({transform(a,c,u){n=!1,u(null,a)},flush(a){a()}}),s=new _9({autoDestroy:!1,destroy(a,c){t.destroy(),c(a)}}),o=r?ay.createBrotliDecompress():ay.createUnzip();return o.once("error",a=>{if(n&&!t.readable){s.end();return}s.destroy(a)}),v9(t,s),t.pipe(i).pipe(o).pipe(s),s}});var uy=y((uX,jk)=>{"use strict";l();var cy=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,i]of this.oldCache.entries())this.onEviction(n,i);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};jk.exports=cy});var fy=y((lX,Gk)=>{"use strict";l();var b9=require("events"),E9=require("tls"),w9=require("http2"),x9=uy(),yt=Symbol("currentStreamsCount"),Hk=Symbol("request"),er=Symbol("cachedOriginSet"),Ys=Symbol("gracefullyClosing"),S9=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],A9=(t,e,r)=>{let n=0,i=t.length;for(;n<i;){let s=n+i>>>1;r(t[s],e)?n=s+1:i=s}return n},R9=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,ly=(t,e)=>{for(let r of t)r[er].length<e[er].length&&r[er].every(n=>e[er].includes(n))&&r[yt]+e[yt]<=e.remoteSettings.maxConcurrentStreams&&Uk(r)},C9=(t,e)=>{for(let r of t)e[er].length<r[er].length&&e[er].every(n=>r[er].includes(n))&&e[yt]+r[yt]<=r.remoteSettings.maxConcurrentStreams&&Uk(e)},$k=({agent:t,isFree:e})=>{let r={};for(let n in t.sessions){let s=t.sessions[n].filter(o=>{let a=o[Pr.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[n]=s)}return r},Uk=t=>{t[Ys]=!0,t[yt]===0&&t.close()},Pr=class extends b9{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new x9({maxSize:i})}static normalizeOrigin(e,r){return typeof e=="string"&&(e=new URL(e)),r&&e.hostname!==r&&(e.hostname=r),e.origin}normalizeOptions(e){let r="";if(e)for(let n of S9)e[n]&&(r+=`:${e[n]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let n=this.queue[e][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(e,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=Pr.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:f}of n)f(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let f=this.sessions[o],h=-1,d=-1,g;for(let m of f){let E=m.remoteSettings.maxConcurrentStreams;if(E<h)break;if(m[er].includes(a)){let v=m[yt];if(v>=E||m[Ys]||m.destroyed)continue;g||(h=E),v>d&&(g=m,d=v)}}if(g){if(n.length!==1){for(let{reject:m}of n){let E=new Error(`Expected the length of listeners to be 1, got ${n.length}.
|
|
52
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);m(E)}return}n[0].resolve(g);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let c=()=>{o in this.queue&&this.queue[o][a]===u&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},u=()=>{let f=`${a}:${o}`,h=!1;try{let d=w9.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(f),...r});d[yt]=0,d[Ys]=!1;let g=()=>d[yt]<d.remoteSettings.maxConcurrentStreams,m=!0;d.socket.once("session",v=>{this.tlsSessionCache.set(f,v)}),d.once("error",v=>{for(let{reject:A}of n)A(v);this.tlsSessionCache.delete(f)}),d.setTimeout(this.timeout,()=>{d.destroy()}),d.once("close",()=>{if(h){m&&this._freeSessionsCount--,this._sessionsCount--;let v=this.sessions[o];v.splice(v.indexOf(d),1),v.length===0&&delete this.sessions[o]}else{let v=new Error("Session closed without receiving a SETTINGS frame");v.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:A}of n)A(v);c()}this._tryToCreateNewSession(o,a)});let E=()=>{if(!(!(o in this.queue)||!g())){for(let v of d[er])if(v in this.queue[o]){let{listeners:A}=this.queue[o][v];for(;A.length!==0&&g();)A.shift().resolve(d);let P=this.queue[o];if(P[v].listeners.length===0&&(delete P[v],Object.keys(P).length===0)){delete this.queue[o];break}if(!g())break}}};d.on("origin",()=>{d[er]=d.originSet,g()&&(E(),ly(this.sessions[o],d))}),d.once("remoteSettings",()=>{if(d.ref(),d.unref(),this._sessionsCount++,u.destroyed){let v=new Error("Agent has been destroyed");for(let A of n)A.reject(v);d.destroy();return}d[er]=d.originSet;{let v=this.sessions;if(o in v){let A=v[o];A.splice(A9(A,d,R9),0,d)}else v[o]=[d]}this._freeSessionsCount+=1,h=!0,this.emit("session",d),E(),c(),d[yt]===0&&this._freeSessionsCount>this.maxFreeSessions&&d.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),d.on("remoteSettings",()=>{E(),ly(this.sessions[o],d)})}),d[Hk]=d.request,d.request=(v,A)=>{if(d[Ys])throw new Error("The session is gracefully closing. No new streams are allowed.");let P=d[Hk](v,A);return d.ref(),++d[yt],d[yt]===d.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,P.once("close",()=>{if(m=g(),--d[yt],!d.destroyed&&!d.closed&&(C9(this.sessions[o],d),g()&&!d.closed)){m||(this._freeSessionsCount++,m=!0);let D=d[yt]===0;D&&d.unref(),D&&(this._freeSessionsCount>this.maxFreeSessions||d[Ys])?d.close():(ly(this.sessions[o],d),E())}}),P}}catch(d){for(let g of n)g.reject(d);c()}};u.listeners=n,u.completed=!1,u.destroyed=!1,this.queue[o][a]=u,this._tryToCreateNewSession(o,a)})}request(e,r,n,i){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(c){o(c)}}}])})}createConnection(e,r){return Pr.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,i=e.hostname||e.host;return typeof r.servername>"u"&&(r.servername=i),E9.connect(n,i,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[yt]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(e);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return $k({agent:this,isFree:!0})}get busySessions(){return $k({agent:this,isFree:!1})}};Pr.kCurrentStreamsCount=yt;Pr.kGracefullyClosing=Ys;Gk.exports={Agent:Pr,globalAgent:new Pr}});var dy=y((fX,Vk)=>{"use strict";l();var{Readable:O9}=require("stream"),hy=class extends O9{constructor(e,r){super({highWaterMark:r,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};Vk.exports=hy});var py=y((hX,Wk)=>{"use strict";l();Wk.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var Yk=y((dX,zk)=>{"use strict";l();zk.exports=(t,e,r)=>{for(let n of r)t.on(n,(...i)=>e.emit(n,...i))}});var Zk=y((pX,Kk)=>{"use strict";l();Kk.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var Xk=y((gX,Jk)=>{"use strict";l();var Ks=(t,e,r)=>{Jk.exports[e]=class extends t{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${e}]`,this.code=e}}};Ks(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Ks(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Ks(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Ks(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Ks(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Ks(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var vy=y((yX,s2)=>{"use strict";l();var T9=require("http2"),{Writable:k9}=require("stream"),{Agent:Qk,globalAgent:P9}=fy(),I9=dy(),L9=py(),N9=Yk(),D9=Zk(),{ERR_INVALID_ARG_TYPE:my,ERR_INVALID_PROTOCOL:M9,ERR_HTTP_HEADERS_SENT:e2,ERR_INVALID_HTTP_TOKEN:F9,ERR_HTTP_INVALID_HEADER_VALUE:q9,ERR_INVALID_CHAR:B9}=Xk(),{HTTP2_HEADER_STATUS:t2,HTTP2_HEADER_METHOD:r2,HTTP2_HEADER_PATH:n2,HTTP2_METHOD_CONNECT:j9}=T9.constants,dt=Symbol("headers"),gy=Symbol("origin"),yy=Symbol("session"),i2=Symbol("options"),Ml=Symbol("flushedHeaders"),xa=Symbol("jobs"),H9=/^[\^`\-\w!#$%&*+.|~]+$/,$9=/[^\t\u0020-\u007E\u0080-\u00FF]/,_y=class extends k9{constructor(e,r,n){super({autoDestroy:!1});let i=typeof e=="string"||e instanceof URL;if(i&&(e=L9(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(n=r,r=i?e:{...e}):r={...e,...r},r.h2session)this[yy]=r.h2session;else if(r.agent===!1)this.agent=new Qk({maxFreeSessions:0});else if(typeof r.agent>"u"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new Qk({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=P9;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new my("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new M9(r.protocol,"https:");let s=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,o=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:a}=r;if(r.timeout=void 0,this[dt]=Object.create(null),this[xa]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[c,u]of Object.entries(r.headers))this.setHeader(c,u);r.auth&&!("authorization"in this[dt])&&(this[dt].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[i2]=r,s===443?(this[gy]=`https://${o}`,":authority"in this[dt]||(this[dt][":authority"]=o)):(this[gy]=`https://${o}:${s}`,":authority"in this[dt]||(this[dt][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[Ml]=!1}get method(){return this[dt][r2]}set method(e){e&&(this[dt][r2]=e.toUpperCase())}get path(){return this[dt][n2]}set path(e){e&&(this[dt][n2]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let i=()=>this._request.write(e,r,n);this._request?i():this[xa].push(i)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[xa].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(e,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(e)}async flushHeaders(){if(this[Ml]||this.destroyed)return;this[Ml]=!0;let e=this.method===j9,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||N9(n,this,["timeout","continue","close","error"]);let i=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};n.once("response",i((o,a,c)=>{let u=new I9(this.socket,n.readableHighWaterMark);this.res=u,u.req=this,u.statusCode=o[t2],u.headers=o,u.rawHeaders=c,u.once("end",()=>{this.aborted?(u.aborted=!0,u.emit("aborted")):(u.complete=!0,u.socket=null,u.connection=null)}),e?(u.upgrade=!0,this.emit("connect",u,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",f=>{!u._dumped&&!u.push(f)&&n.pause()}),n.once("end",()=>{u.push(null)}),this.emit("response",u)||u._dump())})),n.once("headers",i(o=>this.emit("information",{statusCode:o[t2]}))),n.once("trailers",i((o,a,c)=>{let{res:u}=this;u.trailers=o,u.rawTrailers=c}));let{socket:s}=n.session;this.socket=s,this.connection=s;for(let o of this[xa])o();this.emit("socket",this.socket)};if(this[yy])try{r(this[yy].request(this[dt]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[gy],this[i2],this[dt]))}catch(n){this.emit("error",n)}}}getHeader(e){if(typeof e!="string")throw new my("name","string",e);return this[dt][e.toLowerCase()]}get headersSent(){return this[Ml]}removeHeader(e){if(typeof e!="string")throw new my("name","string",e);if(this.headersSent)throw new e2("remove");delete this[dt][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new e2("set");if(typeof e!="string"||!H9.test(e)&&!D9(e))throw new F9("Header name",e);if(typeof r>"u")throw new q9(r,e);if($9.test(r))throw new B9("header content",e);this[dt][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[xa].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};s2.exports=_y});var a2=y((_X,o2)=>{"use strict";l();var U9=require("tls");o2.exports=(t={},e=U9.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await c,s.off("timeout",a),s.off("error",n),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:i}),i&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:i}))},a=async()=>{i=!0,o()},c=(async()=>{try{s=await e(t,o),s.on("error",n),s.once("timeout",a)}catch(u){n(u)}})()})});var u2=y((vX,c2)=>{"use strict";l();var G9=require("net");c2.exports=t=>{let e=t.host,r=t.headers&&t.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?e=r:e=r.slice(1,-1):e=r.split(":",1)[0]),G9.isIP(e)?"":e}});var h2=y((bX,Ey)=>{"use strict";l();var l2=require("http"),by=require("https"),V9=a2(),W9=uy(),z9=vy(),Y9=u2(),K9=py(),Fl=new W9({maxSize:100}),Sa=new Map,f2=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let i=()=>{t.removeSocket(e,r)};e.on("close",i);let s=()=>{t.removeSocket(e,r),e.off("close",i),e.off("free",n),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},Z9=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!Fl.has(e)){if(Sa.has(e))return(await Sa.get(e)).alpnProtocol;let{path:r,agent:n}=t;t.path=t.socketPath;let i=V9(t);Sa.set(e,i);try{let{socket:s,alpnProtocol:o}=await i;if(Fl.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=by,c=by.Agent.prototype.createConnection;n?n.createConnection===c?f2(n,s,t):s.destroy():a.createConnection===c?f2(a,s,t):s.destroy()}return Sa.delete(e),o}catch(s){throw Sa.delete(e),s}}return Fl.get(e)};Ey.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=K9(new URL(t))),typeof e=="function"&&(r=e,e=void 0),e={ALPNProtocols:["h2","http/1.1"],...t,...e,resolveSocket:!0},!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||Y9(e),e.port=e.port||(n?443:80),e._defaultAgent=n?by.globalAgent:l2.globalAgent;let i=e.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=i[n?"https":"http"]}return n&&await Z9(e)==="h2"?(i&&(e.agent=i.http2),new z9(e,r)):l2.request(e,r)};Ey.exports.protocolCache=Fl});var p2=y((EX,d2)=>{"use strict";l();var J9=require("http2"),X9=fy(),wy=vy(),Q9=dy(),eG=h2(),tG=(t,e,r)=>new wy(t,e,r),rG=(t,e,r)=>{let n=new wy(t,e,r);return n.end(),n};d2.exports={...J9,ClientRequest:wy,IncomingMessage:Q9,...X9,request:tG,get:rG,auto:eG}});var Sy=y(xy=>{"use strict";l();Object.defineProperty(xy,"__esModule",{value:!0});var m2=on();xy.default=t=>m2.default.nodeStream(t)&&m2.default.function_(t.getBoundary)});var v2=y(Ay=>{"use strict";l();Object.defineProperty(Ay,"__esModule",{value:!0});var y2=require("fs"),_2=require("util"),g2=on(),nG=Sy(),iG=_2.promisify(y2.stat);Ay.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(g2.default.string(t))return Buffer.byteLength(t);if(g2.default.buffer(t))return t.length;if(nG.default(t))return _2.promisify(t.getLength.bind(t))();if(t instanceof y2.ReadStream){let{size:r}=await iG(t.path);return r===0?void 0:r}}});var Cy=y(Ry=>{"use strict";l();Object.defineProperty(Ry,"__esModule",{value:!0});function sG(t,e,r){let n={};for(let i of r)n[i]=(...s)=>{e.emit(i,...s)},t.on(i,n[i]);return()=>{for(let i of r)t.off(i,n[i])}}Ry.default=sG});var b2=y(Oy=>{"use strict";l();Object.defineProperty(Oy,"__esModule",{value:!0});Oy.default=()=>{let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:i}=e;r.removeListener(n,i)}t.length=0}}}});var w2=y(Aa=>{"use strict";l();Object.defineProperty(Aa,"__esModule",{value:!0});Aa.TimeoutError=void 0;var oG=require("net"),aG=b2(),E2=Symbol("reentry"),cG=()=>{},ql=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Aa.TimeoutError=ql;Aa.default=(t,e,r)=>{if(E2 in t)return cG;t[E2]=!0;let n=[],{once:i,unhandleAll:s}=aG.default(),o=(h,d,g)=>{var m;let E=setTimeout(d,h,h,g);(m=E.unref)===null||m===void 0||m.call(E);let v=()=>{clearTimeout(E)};return n.push(v),v},{host:a,hostname:c}=r,u=(h,d)=>{t.destroy(new ql(h,d))},f=()=>{for(let h of n)h();s()};if(t.once("error",h=>{if(f(),t.listenerCount("error")===0)throw h}),t.once("close",f),i(t,"response",h=>{i(h,"end",f)}),typeof e.request<"u"&&o(e.request,u,"request"),typeof e.socket<"u"){let h=()=>{u(e.socket,"socket")};t.setTimeout(e.socket,h),n.push(()=>{t.removeListener("timeout",h)})}return i(t,"socket",h=>{var d;let{socketPath:g}=t;if(h.connecting){let m=Boolean(g!=null?g:oG.isIP((d=c!=null?c:a)!==null&&d!==void 0?d:"")!==0);if(typeof e.lookup<"u"&&!m&&typeof h.address().address>"u"){let E=o(e.lookup,u,"lookup");i(h,"lookup",E)}if(typeof e.connect<"u"){let E=()=>o(e.connect,u,"connect");m?i(h,"connect",E()):i(h,"lookup",v=>{v===null&&i(h,"connect",E())})}typeof e.secureConnect<"u"&&r.protocol==="https:"&&i(h,"connect",()=>{let E=o(e.secureConnect,u,"secureConnect");i(h,"secureConnect",E)})}if(typeof e.send<"u"){let m=()=>o(e.send,u,"send");h.connecting?i(h,"connect",()=>{i(t,"upload-complete",m())}):i(t,"upload-complete",m())}}),typeof e.response<"u"&&i(t,"upload-complete",()=>{let h=o(e.response,u,"response");i(t,"response",h)}),f}});var S2=y(Ty=>{"use strict";l();Object.defineProperty(Ty,"__esModule",{value:!0});var x2=on();Ty.default=t=>{t=t;let e={protocol:t.protocol,hostname:x2.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return x2.default.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var A2=y(ky=>{"use strict";l();Object.defineProperty(ky,"__esModule",{value:!0});var uG=require("url"),lG=["protocol","host","hostname","port","pathname","search"];ky.default=(t,e)=>{var r,n;if(e.path){if(e.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(e.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(e.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(e.search&&e.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!t){if(!e.protocol)throw new TypeError("No URL protocol specified");t=`${e.protocol}//${(n=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&n!==void 0?n:""}`}let i=new uG.URL(t);if(e.path){let s=e.path.indexOf("?");s===-1?e.pathname=e.path:(e.pathname=e.path.slice(0,s),e.search=e.path.slice(s+1)),delete e.path}for(let s of lG)e[s]&&(i[s]=e[s].toString());return i}});var R2=y(Iy=>{"use strict";l();Object.defineProperty(Iy,"__esModule",{value:!0});var Py=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};Iy.default=Py});var Ny=y(Ly=>{"use strict";l();Object.defineProperty(Ly,"__esModule",{value:!0});var fG=async t=>{let e=[],r=0;for await(let n of t)e.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};Ly.default=fG});var O2=y(Ei=>{"use strict";l();Object.defineProperty(Ei,"__esModule",{value:!0});Ei.dnsLookupIpVersionToFamily=Ei.isDnsLookupIpVersion=void 0;var C2={auto:0,ipv4:4,ipv6:6};Ei.isDnsLookupIpVersion=t=>t in C2;Ei.dnsLookupIpVersionToFamily=t=>{if(Ei.isDnsLookupIpVersion(t))return C2[t];throw new Error("Invalid DNS lookup IP version")}});var Dy=y(Bl=>{"use strict";l();Object.defineProperty(Bl,"__esModule",{value:!0});Bl.isResponseOk=void 0;Bl.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var k2=y(My=>{"use strict";l();Object.defineProperty(My,"__esModule",{value:!0});var T2=new Set;My.default=t=>{T2.has(t)||(T2.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var P2=y(Fy=>{"use strict";l();Object.defineProperty(Fy,"__esModule",{value:!0});var Ce=on(),hG=(t,e)=>{if(Ce.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");Ce.assert.any([Ce.default.string,Ce.default.undefined],t.encoding),Ce.assert.any([Ce.default.boolean,Ce.default.undefined],t.resolveBodyOnly),Ce.assert.any([Ce.default.boolean,Ce.default.undefined],t.methodRewriting),Ce.assert.any([Ce.default.boolean,Ce.default.undefined],t.isStream),Ce.assert.any([Ce.default.string,Ce.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},Ce.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(n=>n.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):Ce.default.number(r)&&(t.retry.limit=r),Ce.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(Ce.default.number))),Ce.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:n}=t;if(!Ce.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!Ce.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!Ce.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!Ce.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return t.responseType==="json"&&t.headers.accept===void 0&&(t.headers.accept="application/json"),t};Fy.default=hG});var I2=y(Ra=>{"use strict";l();Object.defineProperty(Ra,"__esModule",{value:!0});Ra.retryAfterStatusCodes=void 0;Ra.retryAfterStatusCodes=new Set([413,429,503]);var dG=({attemptCount:t,retryOptions:e,error:r,retryAfter:n})=>{if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return e.maxRetryAfter===void 0||n>e.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Ra.default=dG});var Ta=y(pe=>{"use strict";l();Object.defineProperty(pe,"__esModule",{value:!0});pe.UnsupportedProtocolError=pe.ReadError=pe.TimeoutError=pe.UploadError=pe.CacheError=pe.HTTPError=pe.MaxRedirectsError=pe.RequestError=pe.setNonEnumerableProperties=pe.knownHookEvents=pe.withoutBody=pe.kIsNormalizedAlready=void 0;var L2=require("util"),N2=require("stream"),pG=require("fs"),Bn=require("url"),D2=require("http"),qy=require("http"),mG=require("https"),gG=YT(),yG=tk(),M2=Dk(),_G=Bk(),vG=p2(),bG=Nl(),O=on(),EG=v2(),F2=Sy(),wG=Cy(),q2=w2(),xG=S2(),B2=A2(),SG=R2(),AG=Ny(),j2=O2(),RG=Dy(),jn=k2(),CG=P2(),OG=I2(),By,tt=Symbol("request"),$l=Symbol("response"),Zs=Symbol("responseSize"),Js=Symbol("downloadedSize"),Xs=Symbol("bodySize"),Qs=Symbol("uploadedSize"),jl=Symbol("serverResponsesPiped"),H2=Symbol("unproxyEvents"),$2=Symbol("isFromCache"),jy=Symbol("cancelTimeouts"),U2=Symbol("startedReading"),eo=Symbol("stopReading"),Hl=Symbol("triggerRead"),Hn=Symbol("body"),Ca=Symbol("jobs"),G2=Symbol("originalResponse"),V2=Symbol("retryTimeout");pe.kIsNormalizedAlready=Symbol("isNormalizedAlready");var TG=O.default.string(process.versions.brotli);pe.withoutBody=new Set(["GET","HEAD"]);pe.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function kG(t){for(let e in t){let r=t[e];if(!O.default.string(r)&&!O.default.number(r)&&!O.default.boolean(r)&&!O.default.null_(r)&&!O.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function PG(t){return O.default.object(t)&&!("statusCode"in t)}var Hy=new SG.default,IG=async t=>new Promise((e,r)=>{let n=i=>{r(i)};t.pending||e(),t.once("error",n),t.once("ready",()=>{t.off("error",n),e()})}),LG=new Set([300,301,302,303,304,307,308]),NG=["context","body","json","form"];pe.setNonEnumerableProperties=(t,e)=>{let r={};for(let n of t)if(!!n)for(let i of NG)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(e,r)};var Be=class extends Error{constructor(e,r,n){var i,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof Kl?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[$l]}),Object.defineProperty(this,"options",{enumerable:!1,value:n.options})):Object.defineProperty(this,"options",{enumerable:!1,value:n}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,O.default.string(r.stack)&&O.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
|
49
|
+
`);return v?(n.originalMessage=n.message,n.message=P):n=new Error(P),n.shortMessage=A,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=d,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=Boolean(c),n.isCanceled=u,n.killed=f&&!c,n};mR.exports=v$});var _R=y((IZ,Xp)=>{"use strict";l();var _u=["stdin","stdout","stderr"],b$=t=>_u.some(e=>t[e]!==void 0),yR=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _u.map(n=>t[n]);if(b$(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_u.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_u.length);return Array.from({length:r},(n,i)=>e[i])};Xp.exports=yR;Xp.exports.node=t=>{let e=yR(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var bR=y((LZ,vR)=>{"use strict";l();var E$=require("os"),w$=vp(),x$=1e3*5,S$=(t,e="SIGTERM",r={})=>{let n=t(e);return A$(t,e,r,n),n},A$=(t,e,r,n)=>{if(!R$(e,r,n))return;let i=O$(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},R$=(t,{forceKillAfterTimeout:e},r)=>C$(t)&&e!==!1&&r,C$=t=>t===E$.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",O$=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return x$;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},T$=(t,e)=>{t.kill()&&(e.isCanceled=!0)},k$=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},P$=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((a,c)=>{i=setTimeout(()=>{k$(t,r,c)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},I$=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},L$=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=w$(()=>{t.kill()});return n.finally(()=>{i()})};vR.exports={spawnedKill:S$,spawnedCancel:T$,setupTimeout:P$,validateTimeout:I$,setExitHandler:L$}});var wR=y((NZ,ER)=>{"use strict";l();var xr=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";xr.writable=t=>xr(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";xr.readable=t=>xr(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";xr.duplex=t=>xr.writable(t)&&xr.readable(t);xr.transform=t=>xr.duplex(t)&&typeof t._transform=="function";ER.exports=xr});var SR=y((DZ,xR)=>{"use strict";l();var{PassThrough:N$}=require("stream");xR.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new N$({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",c=>{a.push(c),i?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var AR=y((MZ,Qo)=>{"use strict";l();var{constants:D$}=require("buffer"),M$=require("stream"),{promisify:F$}=require("util"),q$=SR(),B$=F$(M$.pipeline),vu=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Qp(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=q$(e);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=D$.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await B$(t,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new vu)})}),n.getBufferedValue()}Qo.exports=Qp;Qo.exports.buffer=(t,e)=>Qp(t,{...e,encoding:"buffer"});Qo.exports.array=(t,e)=>Qp(t,{...e,array:!0});Qo.exports.MaxBufferError=vu});var CR=y((FZ,RR)=>{"use strict";l();var{PassThrough:j$}=require("stream");RR.exports=function(){var t=[],e=new j$({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var PR=y((qZ,kR)=>{"use strict";l();var TR=wR(),OR=AR(),H$=CR(),$$=(t,e)=>{e===void 0||t.stdin===void 0||(TR(e)?e.pipe(t.stdin):t.stdin.end(e))},U$=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=H$();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},em=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},tm=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?OR(t,{encoding:e,maxBuffer:n}):OR.buffer(t,{maxBuffer:n})},G$=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=tm(t,{encoding:n,buffer:i,maxBuffer:s}),c=tm(e,{encoding:n,buffer:i,maxBuffer:s}),u=tm(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,c,u])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},em(t,a),em(e,c),em(r,u)])}},V$=({input:t})=>{if(TR(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};kR.exports={handleInput:$$,makeAllStream:U$,getSpawnedResult:G$,validateInputSync:V$}});var LR=y((BZ,IR)=>{"use strict";l();var W$=(async()=>{})().constructor.prototype,z$=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(W$,t)]),Y$=(t,e)=>{for(let[r,n]of z$){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},K$=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});IR.exports={mergePromise:Y$,getSpawnedPromise:K$}});var MR=y((jZ,DR)=>{"use strict";l();var NR=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],Z$=/^[\w.-]+$/,J$=/"/g,X$=t=>typeof t!="string"||Z$.test(t)?t:`"${t.replace(J$,'\\"')}"`,Q$=(t,e)=>NR(t,e).join(" "),e6=(t,e)=>NR(t,e).map(r=>X$(r)).join(" "),t6=/ +/g,r6=t=>{let e=[];for(let r of t.trim().split(t6)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};DR.exports={joinCommand:Q$,getEscapedCommand:e6,parseCommand:r6}});var UR=y((HZ,bs)=>{"use strict";l();var n6=require("path"),rm=require("child_process"),i6=nR(),s6=sR(),o6=cR(),a6=gp(),bu=gR(),qR=_R(),{spawnedKill:c6,spawnedCancel:u6,setupTimeout:l6,validateTimeout:f6,setExitHandler:h6}=bR(),{handleInput:d6,getSpawnedResult:p6,makeAllStream:m6,validateInputSync:g6}=PR(),{mergePromise:FR,getSpawnedPromise:y6}=LR(),{joinCommand:BR,parseCommand:jR,getEscapedCommand:HR}=MR(),_6=1e3*1e3*100,v6=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?o6.env({env:s,cwd:n,execPath:i}):s},$R=(t,e,r={})=>{let n=i6._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:_6,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=v6(r),r.stdio=qR(r),process.platform==="win32"&&n6.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},ea=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?s6(e):e,Eu=(t,e,r)=>{let n=$R(t,e,r),i=BR(t,e),s=HR(t,e);f6(n.options);let o;try{o=rm.spawn(n.file,n.args,n.options)}catch(g){let m=new rm.ChildProcess,E=Promise.reject(bu({error:g,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return FR(m,E)}let a=y6(o),c=l6(o,n.options,a),u=h6(o,n.options,c),f={isCanceled:!1};o.kill=c6.bind(null,o.kill.bind(o)),o.cancel=u6.bind(null,o,f);let d=a6(async()=>{let[{error:g,exitCode:m,signal:E,timedOut:v},A,P,D]=await p6(o,n.options,u),ie=ea(n.options,A),z=ea(n.options,P),ue=ea(n.options,D);if(g||m!==0||E!==null){let K=bu({error:g,exitCode:m,signal:E,stdout:ie,stderr:z,all:ue,command:i,escapedCommand:s,parsed:n,timedOut:v,isCanceled:f.isCanceled,killed:o.killed});if(!n.options.reject)return K;throw K}return{command:i,escapedCommand:s,exitCode:0,stdout:ie,stderr:z,all:ue,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return d6(o,n.options.input),o.all=m6(o,n.options),FR(o,d)};bs.exports=Eu;bs.exports.sync=(t,e,r)=>{let n=$R(t,e,r),i=BR(t,e),s=HR(t,e);g6(n.options);let o;try{o=rm.spawnSync(n.file,n.args,n.options)}catch(u){throw bu({error:u,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=ea(n.options,o.stdout,o.error),c=ea(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let u=bu({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return u;throw u}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};bs.exports.command=(t,e)=>{let[r,...n]=jR(t);return Eu(r,n,e)};bs.exports.commandSync=(t,e)=>{let[r,...n]=jR(t);return Eu.sync(r,n,e)};bs.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=qR.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return Eu(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var Es=y((WZ,WR)=>{"use strict";l();var VR=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);WR.exports=t=>t?Object.keys(t).map(e=>[VR.has(e)?VR.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var Cu=y((zZ,tC)=>{"use strict";l();var zR=typeof process=="object"&&process?process:{stdout:null,stderr:null},x6=require("events"),YR=require("stream"),KR=require("string_decoder").StringDecoder,Vr=Symbol("EOF"),Wr=Symbol("maybeEmitEnd"),Rn=Symbol("emittedEnd"),wu=Symbol("emittingEnd"),ta=Symbol("emittedError"),xu=Symbol("closed"),ZR=Symbol("read"),Su=Symbol("flush"),JR=Symbol("flushChunk"),At=Symbol("encoding"),zr=Symbol("decoder"),Au=Symbol("flowing"),ra=Symbol("paused"),ws=Symbol("resume"),qe=Symbol("buffer"),Sr=Symbol("pipes"),Ze=Symbol("bufferLength"),nm=Symbol("bufferPush"),im=Symbol("bufferShift"),ct=Symbol("objectMode"),ut=Symbol("destroyed"),sm=Symbol("emitData"),XR=Symbol("emitEnd"),om=Symbol("emitEnd2"),Yr=Symbol("async"),na=t=>Promise.resolve().then(t),QR=global._MP_NO_ITERATOR_SYMBOLS_!=="1",S6=QR&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),A6=QR&&Symbol.iterator||Symbol("iterator not implemented"),R6=t=>t==="end"||t==="finish"||t==="prefinish",C6=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,O6=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Ru=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ws](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},am=class extends Ru{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};tC.exports=class eC extends YR{constructor(e){super(),this[Au]=!1,this[ra]=!1,this[Sr]=[],this[qe]=[],this[ct]=e&&e.objectMode||!1,this[ct]?this[At]=null:this[At]=e&&e.encoding||null,this[At]==="buffer"&&(this[At]=null),this[Yr]=e&&!!e.async||!1,this[zr]=this[At]?new KR(this[At]):null,this[Vr]=!1,this[Rn]=!1,this[wu]=!1,this[xu]=!1,this[ta]=null,this.writable=!0,this.readable=!0,this[Ze]=0,this[ut]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[qe]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Sr]})}get bufferLength(){return this[Ze]}get encoding(){return this[At]}set encoding(e){if(this[ct])throw new Error("cannot set encoding in objectMode");if(this[At]&&e!==this[At]&&(this[zr]&&this[zr].lastNeed||this[Ze]))throw new Error("cannot change encoding");this[At]!==e&&(this[zr]=e?new KR(e):null,this[qe].length&&(this[qe]=this[qe].map(r=>this[zr].write(r)))),this[At]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ct]}set objectMode(e){this[ct]=this[ct]||!!e}get async(){return this[Yr]}set async(e){this[Yr]=this[Yr]||!!e}write(e,r,n){if(this[Vr])throw new Error("write after end");if(this[ut])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Yr]?na:s=>s();return!this[ct]&&!Buffer.isBuffer(e)&&(O6(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):C6(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ct]?(this.flowing&&this[Ze]!==0&&this[Su](!0),this.flowing?this.emit("data",e):this[nm](e),this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[At]&&!this[zr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[At]&&(e=this[zr].write(e)),this.flowing&&this[Ze]!==0&&this[Su](!0),this.flowing?this.emit("data",e):this[nm](e),this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[ut])return null;if(this[Ze]===0||e===0||e>this[Ze])return this[Wr](),null;this[ct]&&(e=null),this[qe].length>1&&!this[ct]&&(this.encoding?this[qe]=[this[qe].join("")]:this[qe]=[Buffer.concat(this[qe],this[Ze])]);let r=this[ZR](e||null,this[qe][0]);return this[Wr](),r}[ZR](e,r){return e===r.length||e===null?this[im]():(this[qe][0]=r.slice(e),r=r.slice(0,e),this[Ze]-=e),this.emit("data",r),!this[qe].length&&!this[Vr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Vr]=!0,this.writable=!1,(this.flowing||!this[ra])&&this[Wr](),this}[ws](){this[ut]||(this[ra]=!1,this[Au]=!0,this.emit("resume"),this[qe].length?this[Su]():this[Vr]?this[Wr]():this.emit("drain"))}resume(){return this[ws]()}pause(){this[Au]=!1,this[ra]=!0}get destroyed(){return this[ut]}get flowing(){return this[Au]}get paused(){return this[ra]}[nm](e){this[ct]?this[Ze]+=1:this[Ze]+=e.length,this[qe].push(e)}[im](){return this[qe].length&&(this[ct]?this[Ze]-=1:this[Ze]-=this[qe][0].length),this[qe].shift()}[Su](e){do;while(this[JR](this[im]()));!e&&!this[qe].length&&!this[Vr]&&this.emit("drain")}[JR](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ut])return;let n=this[Rn];return r=r||{},e===zR.stdout||e===zR.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[Sr].push(r.proxyErrors?new am(this,e,r):new Ru(this,e,r)),this[Yr]?na(()=>this[ws]()):this[ws]()),e}unpipe(e){let r=this[Sr].find(n=>n.dest===e);r&&(this[Sr].splice(this[Sr].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this[Sr].length&&!this.flowing?this[ws]():e==="readable"&&this[Ze]!==0?super.emit("readable"):R6(e)&&this[Rn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ta]&&(this[Yr]?na(()=>r.call(this,this[ta])):r.call(this,this[ta])),n}get emittedEnd(){return this[Rn]}[Wr](){!this[wu]&&!this[Rn]&&!this[ut]&&this[qe].length===0&&this[Vr]&&(this[wu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[xu]&&this.emit("close"),this[wu]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==ut&&this[ut])return;if(e==="data")return r?this[Yr]?na(()=>this[sm](r)):this[sm](r):!1;if(e==="end")return this[XR]();if(e==="close"){if(this[xu]=!0,!this[Rn]&&!this[ut])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ta]=r;let s=super.emit("error",r);return this[Wr](),s}else if(e==="resume"){let s=super.emit("resume");return this[Wr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Wr](),i}[sm](e){for(let n of this[Sr])n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Wr](),r}[XR](){this[Rn]||(this[Rn]=!0,this.readable=!1,this[Yr]?na(()=>this[om]()):this[om]())}[om](){if(this[zr]){let r=this[zr].end();if(r){for(let n of this[Sr])n.dest.write(r);super.emit("data",r)}}for(let r of this[Sr])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ct]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[ct]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[ct]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ct]?Promise.reject(new Error("cannot concat in objectMode")):this[At]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ut,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[S6](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Vr])return Promise.resolve({done:!0});let n=null,i=null,s=u=>{this.removeListener("data",o),this.removeListener("end",a),i(u)},o=u=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:u,done:!!this[Vr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((u,f)=>{i=f,n=u,this.once(ut,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[A6](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ut]?(e?this.emit("error",e):this.emit(ut),this):(this[ut]=!0,this[qe].length=0,this[Ze]=0,typeof this.close=="function"&&!this[xu]&&this.close(),e?this.emit("error",e):this.emit(ut),this)}static isStream(e){return!!e&&(e instanceof eC||e instanceof YR||e instanceof x6&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var nC=y((YZ,rC)=>{l();var T6=require("zlib").constants||{ZLIB_VERNUM:4736};rC.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},T6))});var dm=y((KZ,hC)=>{"use strict";l();var iC=typeof process=="object"&&process?process:{stdout:null,stderr:null},k6=require("events"),sC=require("stream"),oC=require("string_decoder").StringDecoder,Kr=Symbol("EOF"),Zr=Symbol("maybeEmitEnd"),Cn=Symbol("emittedEnd"),Ou=Symbol("emittingEnd"),ia=Symbol("emittedError"),Tu=Symbol("closed"),aC=Symbol("read"),ku=Symbol("flush"),cC=Symbol("flushChunk"),Rt=Symbol("encoding"),Jr=Symbol("decoder"),Pu=Symbol("flowing"),sa=Symbol("paused"),xs=Symbol("resume"),Je=Symbol("bufferLength"),cm=Symbol("bufferPush"),um=Symbol("bufferShift"),lt=Symbol("objectMode"),ft=Symbol("destroyed"),lm=Symbol("emitData"),uC=Symbol("emitEnd"),fm=Symbol("emitEnd2"),Xr=Symbol("async"),oa=t=>Promise.resolve().then(t),lC=global._MP_NO_ITERATOR_SYMBOLS_!=="1",P6=lC&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),I6=lC&&Symbol.iterator||Symbol("iterator not implemented"),L6=t=>t==="end"||t==="finish"||t==="prefinish",N6=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,D6=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Iu=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[xs](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},hm=class extends Iu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};hC.exports=class fC extends sC{constructor(e){super(),this[Pu]=!1,this[sa]=!1,this.pipes=[],this.buffer=[],this[lt]=e&&e.objectMode||!1,this[lt]?this[Rt]=null:this[Rt]=e&&e.encoding||null,this[Rt]==="buffer"&&(this[Rt]=null),this[Xr]=e&&!!e.async||!1,this[Jr]=this[Rt]?new oC(this[Rt]):null,this[Kr]=!1,this[Cn]=!1,this[Ou]=!1,this[Tu]=!1,this[ia]=null,this.writable=!0,this.readable=!0,this[Je]=0,this[ft]=!1}get bufferLength(){return this[Je]}get encoding(){return this[Rt]}set encoding(e){if(this[lt])throw new Error("cannot set encoding in objectMode");if(this[Rt]&&e!==this[Rt]&&(this[Jr]&&this[Jr].lastNeed||this[Je]))throw new Error("cannot change encoding");this[Rt]!==e&&(this[Jr]=e?new oC(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Jr].write(r)))),this[Rt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[lt]}set objectMode(e){this[lt]=this[lt]||!!e}get async(){return this[Xr]}set async(e){this[Xr]=this[Xr]||!!e}write(e,r,n){if(this[Kr])throw new Error("write after end");if(this[ft])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Xr]?oa:s=>s();return!this[lt]&&!Buffer.isBuffer(e)&&(D6(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):N6(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[lt]?(this.flowing&&this[Je]!==0&&this[ku](!0),this.flowing?this.emit("data",e):this[cm](e),this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[Rt]&&!this[Jr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Rt]&&(e=this[Jr].write(e)),this.flowing&&this[Je]!==0&&this[ku](!0),this.flowing?this.emit("data",e):this[cm](e),this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[ft])return null;if(this[Je]===0||e===0||e>this[Je])return this[Zr](),null;this[lt]&&(e=null),this.buffer.length>1&&!this[lt]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Je])]);let r=this[aC](e||null,this.buffer[0]);return this[Zr](),r}[aC](e,r){return e===r.length||e===null?this[um]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Je]-=e),this.emit("data",r),!this.buffer.length&&!this[Kr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Kr]=!0,this.writable=!1,(this.flowing||!this[sa])&&this[Zr](),this}[xs](){this[ft]||(this[sa]=!1,this[Pu]=!0,this.emit("resume"),this.buffer.length?this[ku]():this[Kr]?this[Zr]():this.emit("drain"))}resume(){return this[xs]()}pause(){this[Pu]=!1,this[sa]=!0}get destroyed(){return this[ft]}get flowing(){return this[Pu]}get paused(){return this[sa]}[cm](e){this[lt]?this[Je]+=1:this[Je]+=e.length,this.buffer.push(e)}[um](){return this.buffer.length&&(this[lt]?this[Je]-=1:this[Je]-=this.buffer[0].length),this.buffer.shift()}[ku](e){do;while(this[cC](this[um]()));!e&&!this.buffer.length&&!this[Kr]&&this.emit("drain")}[cC](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ft])return;let n=this[Cn];return r=r||{},e===iC.stdout||e===iC.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this.pipes.push(r.proxyErrors?new hm(this,e,r):new Iu(this,e,r)),this[Xr]?oa(()=>this[xs]()):this[xs]()),e}unpipe(e){let r=this.pipes.find(n=>n.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[xs]():e==="readable"&&this[Je]!==0?super.emit("readable"):L6(e)&&this[Cn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ia]&&(this[Xr]?oa(()=>r.call(this,this[ia])):r.call(this,this[ia])),n}get emittedEnd(){return this[Cn]}[Zr](){!this[Ou]&&!this[Cn]&&!this[ft]&&this.buffer.length===0&&this[Kr]&&(this[Ou]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Tu]&&this.emit("close"),this[Ou]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==ft&&this[ft])return;if(e==="data")return r?this[Xr]?oa(()=>this[lm](r)):this[lm](r):!1;if(e==="end")return this[uC]();if(e==="close"){if(this[Tu]=!0,!this[Cn]&&!this[ft])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ia]=r;let s=super.emit("error",r);return this[Zr](),s}else if(e==="resume"){let s=super.emit("resume");return this[Zr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Zr](),i}[lm](e){for(let n of this.pipes)n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Zr](),r}[uC](){this[Cn]||(this[Cn]=!0,this.readable=!1,this[Xr]?oa(()=>this[fm]()):this[fm]())}[fm](){if(this[Jr]){let r=this[Jr].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[lt]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[lt]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[lt]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[lt]?Promise.reject(new Error("cannot concat in objectMode")):this[Rt]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ft,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[P6](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Kr])return Promise.resolve({done:!0});let n=null,i=null,s=u=>{this.removeListener("data",o),this.removeListener("end",a),i(u)},o=u=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:u,done:!!this[Kr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((u,f)=>{i=f,n=u,this.once(ft,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[I6](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ft]?(e?this.emit("error",e):this.emit(ft),this):(this[ft]=!0,this.buffer.length=0,this[Je]=0,typeof this.close=="function"&&!this[Tu]&&this.close(),e?this.emit("error",e):this.emit(ft),this)}static isStream(e){return!!e&&(e instanceof fC||e instanceof sC||e instanceof k6&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Tm=y(Nt=>{"use strict";l();var _m=require("assert"),On=require("buffer").Buffer,mC=require("zlib"),ci=Nt.constants=nC(),M6=dm(),dC=On.concat,ui=Symbol("_superWrite"),As=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},F6=Symbol("opts"),aa=Symbol("flushFlag"),pC=Symbol("finishFlushFlag"),Om=Symbol("fullFlushFlag"),Ae=Symbol("handle"),Lu=Symbol("onError"),Ss=Symbol("sawError"),pm=Symbol("level"),mm=Symbol("strategy"),gm=Symbol("ended"),ZZ=Symbol("_defaultFullFlush"),Nu=class extends M6{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Ss]=!1,this[gm]=!1,this[F6]=e,this[aa]=e.flush,this[pC]=e.finishFlush;try{this[Ae]=new mC[r](e)}catch(n){throw new As(n)}this[Lu]=n=>{this[Ss]||(this[Ss]=!0,this.close(),this.emit("error",n))},this[Ae].on("error",n=>this[Lu](new As(n))),this.once("end",()=>this.close)}close(){this[Ae]&&(this[Ae].close(),this[Ae]=null,this.emit("close"))}reset(){if(!this[Ss])return _m(this[Ae],"zlib binding closed"),this[Ae].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Om]),this.write(Object.assign(On.alloc(0),{[aa]:e})))}end(e,r,n){return e&&this.write(e,r),this.flush(this[pC]),this[gm]=!0,super.end(null,null,n)}get ended(){return this[gm]}write(e,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof e=="string"&&(e=On.from(e,r)),this[Ss])return;_m(this[Ae],"zlib binding closed");let i=this[Ae]._handle,s=i.close;i.close=()=>{};let o=this[Ae].close;this[Ae].close=()=>{},On.concat=u=>u;let a;try{let u=typeof e[aa]=="number"?e[aa]:this[aa];a=this[Ae]._processChunk(e,u),On.concat=dC}catch(u){On.concat=dC,this[Lu](new As(u))}finally{this[Ae]&&(this[Ae]._handle=i,i.close=s,this[Ae].close=o,this[Ae].removeAllListeners("error"))}this[Ae]&&this[Ae].on("error",u=>this[Lu](new As(u)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[ui](On.from(a[0]));for(let u=1;u<a.length;u++)c=this[ui](a[u])}else c=this[ui](On.from(a));return n&&n(),c}[ui](e){return super.write(e)}},Qr=class extends Nu{constructor(e,r){e=e||{},e.flush=e.flush||ci.Z_NO_FLUSH,e.finishFlush=e.finishFlush||ci.Z_FINISH,super(e,r),this[Om]=ci.Z_FULL_FLUSH,this[pm]=e.level,this[mm]=e.strategy}params(e,r){if(!this[Ss]){if(!this[Ae])throw new Error("cannot switch params when binding is closed");if(!this[Ae].params)throw new Error("not supported in this implementation");if(this[pm]!==e||this[mm]!==r){this.flush(ci.Z_SYNC_FLUSH),_m(this[Ae],"zlib binding closed");let n=this[Ae].flush;this[Ae].flush=(i,s)=>{this.flush(i),s()};try{this[Ae].params(e,r)}finally{this[Ae].flush=n}this[Ae]&&(this[pm]=e,this[mm]=r)}}}},vm=class extends Qr{constructor(e){super(e,"Deflate")}},bm=class extends Qr{constructor(e){super(e,"Inflate")}},ym=Symbol("_portable"),Em=class extends Qr{constructor(e){super(e,"Gzip"),this[ym]=e&&!!e.portable}[ui](e){return this[ym]?(this[ym]=!1,e[9]=255,super[ui](e)):super[ui](e)}},wm=class extends Qr{constructor(e){super(e,"Gunzip")}},xm=class extends Qr{constructor(e){super(e,"DeflateRaw")}},Sm=class extends Qr{constructor(e){super(e,"InflateRaw")}},Am=class extends Qr{constructor(e){super(e,"Unzip")}},Du=class extends Nu{constructor(e,r){e=e||{},e.flush=e.flush||ci.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||ci.BROTLI_OPERATION_FINISH,super(e,r),this[Om]=ci.BROTLI_OPERATION_FLUSH}},Rm=class extends Du{constructor(e){super(e,"BrotliCompress")}},Cm=class extends Du{constructor(e){super(e,"BrotliDecompress")}};Nt.Deflate=vm;Nt.Inflate=bm;Nt.Gzip=Em;Nt.Gunzip=wm;Nt.DeflateRaw=xm;Nt.InflateRaw=Sm;Nt.Unzip=Am;typeof mC.BrotliCompress=="function"?(Nt.BrotliCompress=Rm,Nt.BrotliDecompress=Cm):Nt.BrotliCompress=Nt.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Rs=y((QZ,gC)=>{l();var q6=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;gC.exports=q6!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Mu=y((tJ,yC)=>{"use strict";l();var B6=Cu(),km=Rs(),Pm=Symbol("slurp");yC.exports=class extends B6{constructor(e,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=km(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=km(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Pm](r),n&&this[Pm](n,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(e):super.write(e.slice(0,n))}[Pm](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?km(e[n]):e[n])}}});var Im=y(Fu=>{"use strict";l();Fu.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);Fu.code=new Map(Array.from(Fu.name).map(t=>[t[1],t[0]]))});var EC=y((nJ,bC)=>{"use strict";l();var j6=(t,e)=>{if(Number.isSafeInteger(t))t<0?$6(t,e):H6(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},H6=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},$6=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var n=e.length;n>1;n--){var i=t&255;t=Math.floor(t/256),r?e[n-1]=_C(i):i===0?e[n-1]=0:(r=!0,e[n-1]=vC(i))}},U6=t=>{let e=t[0],r=e===128?V6(t.slice(1,t.length)):e===255?G6(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},G6=t=>{for(var e=t.length,r=0,n=!1,i=e-1;i>-1;i--){var s=t[i],o;n?o=_C(s):s===0?o=s:(n=!0,o=vC(s)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},V6=t=>{for(var e=t.length,r=0,n=e-1;n>-1;n--){var i=t[n];i!==0&&(r+=i*Math.pow(256,e-n-1))}return r},_C=t=>(255^t)&255,vC=t=>(255^t)+1&255;bC.exports={encode:j6,parse:U6}});var Os=y((iJ,xC)=>{"use strict";l();var Lm=Im(),Cs=require("path").posix,wC=EC(),Nm=Symbol("slurp"),Dt=Symbol("type"),Fm=class{constructor(e,r,n,i){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Dt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,n,i):e&&this.set(e)}decode(e,r,n,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=li(e,r,100),this.mode=Tn(e,r+100,8),this.uid=Tn(e,r+108,8),this.gid=Tn(e,r+116,8),this.size=Tn(e,r+124,12),this.mtime=Dm(e,r+136,12),this.cksum=Tn(e,r+148,12),this[Nm](n),this[Nm](i,!0),this[Dt]=li(e,r+156,1),this[Dt]===""&&(this[Dt]="0"),this[Dt]==="0"&&this.path.slice(-1)==="/"&&(this[Dt]="5"),this[Dt]==="5"&&(this.size=0),this.linkpath=li(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=li(e,r+265,32),this.gname=li(e,r+297,32),this.devmaj=Tn(e,r+329,8),this.devmin=Tn(e,r+337,8),e[r+475]!==0){let o=li(e,r+345,155);this.path=o+"/"+this.path}else{let o=li(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Dm(e,r+476,12),this.ctime=Dm(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[Nm](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=e[n])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=W6(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=fi(e,r,100,s)||this.needPax,this.needPax=kn(e,r+100,8,this.mode)||this.needPax,this.needPax=kn(e,r+108,8,this.uid)||this.needPax,this.needPax=kn(e,r+116,8,this.gid)||this.needPax,this.needPax=kn(e,r+124,12,this.size)||this.needPax,this.needPax=Mm(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Dt].charCodeAt(0),this.needPax=fi(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=fi(e,r+265,32,this.uname)||this.needPax,this.needPax=fi(e,r+297,32,this.gname)||this.needPax,this.needPax=kn(e,r+329,8,this.devmaj)||this.needPax,this.needPax=kn(e,r+337,8,this.devmin)||this.needPax,this.needPax=fi(e,r+345,n,o)||this.needPax,e[r+475]!==0?this.needPax=fi(e,r+345,155,o)||this.needPax:(this.needPax=fi(e,r+345,130,o)||this.needPax,this.needPax=Mm(e,r+476,12,this.atime)||this.needPax,this.needPax=Mm(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let c=r;c<r+148;c++)a+=e[c];for(let c=r+156;c<r+512;c++)a+=e[c];return this.cksum=a,kn(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Lm.name.get(this[Dt])||this[Dt]}get typeKey(){return this[Dt]}set type(e){Lm.code.has(e)?this[Dt]=Lm.code.get(e):this[Dt]=e}},W6=(t,e)=>{let n=t,i="",s,o=Cs.parse(t).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=Cs.dirname(n),n=Cs.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=e?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=e?s=[n.slice(0,100-1),i,!0]:(n=Cs.join(Cs.basename(i),n),i=Cs.dirname(i));while(i!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},li=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Dm=(t,e,r)=>z6(Tn(t,e,r)),z6=t=>t===null?null:new Date(t*1e3),Tn=(t,e,r)=>t[e]&128?wC.parse(t.slice(e,e+r)):K6(t,e,r),Y6=t=>isNaN(t)?null:t,K6=(t,e,r)=>Y6(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),Z6={12:8589934591,8:2097151},kn=(t,e,r,n)=>n===null?!1:n>Z6[r]||n<0?(wC.encode(n,t.slice(e,e+r)),!0):(J6(t,e,r,n),!1),J6=(t,e,r,n)=>t.write(X6(n,r),e,r,"ascii"),X6=(t,e)=>Q6(Math.floor(t).toString(8),e),Q6=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Mm=(t,e,r,n)=>n===null?!1:kn(t,e,r,n.getTime()/1e3),eU=new Array(156).join("\0"),fi=(t,e,r,n)=>n===null?!1:(t.write(n+eU,e,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);xC.exports=Fm});var qu=y((sJ,SC)=>{"use strict";l();var tU=Os(),rU=require("path"),ca=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new tU({path:("PaxHeader/"+rU.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(i),i.write(e,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
|
50
|
+
`,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};ca.parse=(t,e,r)=>new ca(nU(iU(t),e),r);var nU=(t,e)=>e?Object.keys(t).reduce((r,n)=>(r[n]=t[n],r),e):t,iU=t=>t.replace(/\n$/,"").split(`
|
|
51
|
+
`).reduce(sU,Object.create(null)),sU=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let n=e.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;let s=n.join("=");return t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};SC.exports=ca});var Ts=y((oJ,AC)=>{l();AC.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var Bu=y((aJ,RC)=>{"use strict";l();RC.exports=t=>class extends t{warn(e,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||e,n.tarCode=e,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),n))}}});var Bm=y((uJ,CC)=>{"use strict";l();var ju=["|","<",">","?",":"],qm=ju.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),oU=new Map(ju.map((t,e)=>[t,qm[e]])),aU=new Map(qm.map((t,e)=>[t,ju[e]]));CC.exports={encode:t=>ju.reduce((e,r)=>e.split(r).join(oU.get(r)),t),decode:t=>qm.reduce((e,r)=>e.split(r).join(aU.get(r)),t)}});var jm=y((lJ,TC)=>{l();var{isAbsolute:cU,parse:OC}=require("path").win32;TC.exports=t=>{let e="",r=OC(t);for(;cU(t)||r.root;){let n=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(n.length),e+=n,r=OC(t)}return[e,t]}});var PC=y((fJ,kC)=>{"use strict";l();kC.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Zm=y((pJ,VC)=>{"use strict";l();var qC=Cu(),BC=qu(),jC=Os(),Rr=require("fs"),IC=require("path"),Ar=Rs(),uU=Ts(),HC=(t,e)=>e?(t=Ar(t).replace(/^\.(\/|$)/,""),uU(e)+"/"+t):Ar(t),lU=16*1024*1024,LC=Symbol("process"),NC=Symbol("file"),DC=Symbol("directory"),$m=Symbol("symlink"),MC=Symbol("hardlink"),ua=Symbol("header"),Hu=Symbol("read"),Um=Symbol("lstat"),$u=Symbol("onlstat"),Gm=Symbol("onread"),Vm=Symbol("onreadlink"),Wm=Symbol("openfile"),zm=Symbol("onopenfile"),Pn=Symbol("close"),Uu=Symbol("mode"),Ym=Symbol("awaitDrain"),Hm=Symbol("ondrain"),Cr=Symbol("prefix"),FC=Symbol("hadError"),$C=Bu(),fU=Bm(),UC=jm(),GC=PC(),Gu=$C(class extends qC{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Ar(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||lU,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Ar(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Ar(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=UC(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=fU.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Ar(r.absolute||IC.resolve(this.cwd,e)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[$u](this.statCache.get(this.absolute)):this[Um]()}emit(e,...r){return e==="error"&&(this[FC]=!0),super.emit(e,...r)}[Um](){Rr.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[$u](r)})}[$u](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=dU(e),this.emit("stat",e),this[LC]()}[LC](){switch(this.type){case"File":return this[NC]();case"Directory":return this[DC]();case"SymbolicLink":return this[$m]();default:return this.end()}}[Uu](e){return GC(e,this.type==="Directory",this.portable)}[Cr](e){return HC(e,this.prefix)}[ua](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new jC({path:this[Cr](this.path),linkpath:this.type==="Link"?this[Cr](this.linkpath):this.linkpath,mode:this[Uu](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new BC({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Cr](this.path),linkpath:this.type==="Link"?this[Cr](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[DC](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[ua](),this.end()}[$m](){Rr.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Vm](r)})}[Vm](e){this.linkpath=Ar(e),this[ua](),this.end()}[MC](e){this.type="Link",this.linkpath=Ar(IC.relative(this.cwd,e)),this.stat.size=0,this[ua](),this.end()}[NC](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[MC](r)}this.linkCache.set(e,this.absolute)}if(this[ua](),this.stat.size===0)return this.end();this[Wm]()}[Wm](){Rr.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[zm](r)})}[zm](e){if(this.fd=e,this[FC])return this[Pn]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Hu]()}[Hu](){let{fd:e,buf:r,offset:n,length:i,pos:s}=this;Rr.read(e,r,n,i,s,(o,a)=>{if(o)return this[Pn](()=>this.emit("error",o));this[Gm](a)})}[Pn](e){Rr.close(this.fd,e)}[Gm](e){if(e<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Pn](()=>this.emit("error",i))}if(e>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Pn](()=>this.emit("error",i))}if(e===this.remain)for(let i=e;i<this.length&&e<this.blockRemain;i++)this.buf[i+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[Hm]():this[Ym](()=>this[Hm]())}[Ym](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[Hm](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Pn](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Hu]()}}),Km=class extends Gu{[Um](){this[$u](Rr.lstatSync(this.absolute))}[$m](){this[Vm](Rr.readlinkSync(this.absolute))}[Wm](){this[zm](Rr.openSync(this.absolute,"r"))}[Hu](){let e=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Rr.readSync(r,n,i,s,o);this[Gm](a),e=!1}finally{if(e)try{this[Pn](()=>{})}catch{}}}[Ym](e){e()}[Pn](e){Rr.closeSync(this.fd),e()}},hU=$C(class extends qC{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Ar(e.path),this.mode=this[Uu](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Ar(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=UC(this.path);i&&(this.path=s,n=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new jC({path:this[Cr](this.path),linkpath:this.type==="Link"?this[Cr](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new BC({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Cr](this.path),linkpath:this.type==="Link"?this[Cr](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Cr](e){return HC(e,this.prefix)}[Uu](e){return GC(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Gu.Sync=Km;Gu.Tar=hU;var dU=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";VC.exports=Gu});var zC=y((mJ,WC)=>{"use strict";l();WC.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Jm=y((gJ,YC)=>{"use strict";l();YC.exports=he;he.Node=hi;he.create=he;function he(t){var e=this;if(e instanceof he||(e=new he),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}he.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};he.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};he.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};he.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)mU(this,arguments[t]);return this.length};he.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)gU(this,arguments[t]);return this.length};he.prototype.pop=function(){if(!!this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};he.prototype.shift=function(){if(!!this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};he.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};he.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};he.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};he.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};he.prototype.map=function(t,e){e=e||this;for(var r=new he,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};he.prototype.mapReverse=function(t,e){e=e||this;for(var r=new he,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};he.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=t(r,n.value,i),n=n.next;return r};he.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=t(r,n.value,i),n=n.prev;return r};he.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};he.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};he.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new he;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(;i!==null&&n<e;n++,i=i.next)r.push(i.value);return r};he.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new he;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,i=this.tail;i!==null&&n>e;n--)i=i.prev;for(;i!==null&&n>t;n--,i=i.prev)r.push(i.value);return r};he.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(var s=[],n=0;i&&n<e;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=pU(this,i,r[n]);return s};he.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function pU(t,e,r){var n=e===t.head?new hi(r,null,e,t):new hi(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function mU(t,e){t.tail=new hi(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function gU(t,e){t.head=new hi(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function hi(t,e,r,n){if(!(this instanceof hi))return new hi(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{zC()(he)}catch{}});var Qu=y((_J,tO)=>{"use strict";l();var Ju=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},yU=Cu(),_U=Tm(),vU=Mu(),og=Zm(),bU=og.Sync,EU=og.Tar,wU=Jm(),KC=Buffer.alloc(1024),zu=Symbol("onStat"),Vu=Symbol("ended"),Or=Symbol("queue"),ks=Symbol("current"),di=Symbol("process"),Wu=Symbol("processing"),ZC=Symbol("processJob"),Tr=Symbol("jobs"),Xm=Symbol("jobDone"),Yu=Symbol("addFSEntry"),JC=Symbol("addTarEntry"),rg=Symbol("stat"),ng=Symbol("readdir"),Ku=Symbol("onreaddir"),Zu=Symbol("pipe"),XC=Symbol("entry"),Qm=Symbol("entryOpt"),ig=Symbol("writeEntryClass"),eO=Symbol("write"),eg=Symbol("ondrain"),Xu=require("fs"),QC=require("path"),xU=Bu(),tg=Rs(),ag=xU(class extends yU{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=tg(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[ig]=og,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new _U.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[eg]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[eg]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Or]=new wU,this[Tr]=0,this.jobs=+e.jobs||4,this[Wu]=!1,this[Vu]=!1}[eO](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Vu]=!0,this[di](),this}write(e){if(this[Vu])throw new Error("write after end");return e instanceof vU?this[JC](e):this[Yu](e),this.flowing}[JC](e){let r=tg(QC.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let n=new Ju(e.path,r,!1);n.entry=new EU(e,this[Qm](n)),n.entry.on("end",i=>this[Xm](n)),this[Tr]+=1,this[Or].push(n)}this[di]()}[Yu](e){let r=tg(QC.resolve(this.cwd,e));this[Or].push(new Ju(e,r)),this[di]()}[rg](e){e.pending=!0,this[Tr]+=1;let r=this.follow?"stat":"lstat";Xu[r](e.absolute,(n,i)=>{e.pending=!1,this[Tr]-=1,n?this.emit("error",n):this[zu](e,i)})}[zu](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[di]()}[ng](e){e.pending=!0,this[Tr]+=1,Xu.readdir(e.absolute,(r,n)=>{if(e.pending=!1,this[Tr]-=1,r)return this.emit("error",r);this[Ku](e,n)})}[Ku](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[di]()}[di](){if(!this[Wu]){this[Wu]=!0;for(let e=this[Or].head;e!==null&&this[Tr]<this.jobs;e=e.next)if(this[ZC](e.value),e.value.ignore){let r=e.next;this[Or].removeNode(e),e.next=r}this[Wu]=!1,this[Vu]&&!this[Or].length&&this[Tr]===0&&(this.zip?this.zip.end(KC):(super.write(KC),super.end()))}}get[ks](){return this[Or]&&this[Or].head&&this[Or].head.value}[Xm](e){this[Or].shift(),this[Tr]-=1,this[di]()}[ZC](e){if(!e.pending){if(e.entry){e===this[ks]&&!e.piped&&this[Zu](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[zu](e,this.statCache.get(e.absolute)):this[rg](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Ku](e,this.readdirCache.get(e.absolute)):this[ng](e),!e.readdir))){if(e.entry=this[XC](e),!e.entry){e.ignore=!0;return}e===this[ks]&&!e.piped&&this[Zu](e)}}}[Qm](e){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[XC](e){this[Tr]+=1;try{return new this[ig](e.path,this[Qm](e)).on("end",()=>this[Xm](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[eg](){this[ks]&&this[ks].entry&&this[ks].entry.resume()}[Zu](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Yu](o+i)});let r=e.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),sg=class extends ag{constructor(e){super(e),this[ig]=bU}pause(){}resume(){}[rg](e){let r=this.follow?"statSync":"lstatSync";this[zu](e,Xu[r](e.absolute))}[ng](e,r){this[Ku](e,Xu.readdirSync(e.absolute))}[Zu](e){let r=e.entry,n=this.zip;e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Yu](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[eO](i)})}};ag.Sync=sg;tO.exports=ag});var qs=y(fa=>{"use strict";l();var SU=dm(),AU=require("events").EventEmitter,Ct=require("fs"),lg=Ct.writev;if(!lg){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;lg=(r,n,i,s)=>{let o=(c,u)=>s(c,u,n),a=new e;a.oncomplete=o,t.writeBuffers(r,n,i,a)}}var Ms=Symbol("_autoClose"),lr=Symbol("_close"),la=Symbol("_ended"),be=Symbol("_fd"),rO=Symbol("_finished"),Ln=Symbol("_flags"),cg=Symbol("_flush"),fg=Symbol("_handleChunk"),hg=Symbol("_makeBuf"),il=Symbol("_mode"),el=Symbol("_needDrain"),Ns=Symbol("_onerror"),Fs=Symbol("_onopen"),ug=Symbol("_onread"),Is=Symbol("_onwrite"),Nn=Symbol("_open"),en=Symbol("_path"),pi=Symbol("_pos"),kr=Symbol("_queue"),Ls=Symbol("_read"),nO=Symbol("_readSize"),In=Symbol("_reading"),tl=Symbol("_remain"),iO=Symbol("_size"),rl=Symbol("_write"),Ps=Symbol("_writing"),nl=Symbol("_defaultFlag"),Ds=Symbol("_errored"),sl=class extends SU{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[Ds]=!1,this[be]=typeof r.fd=="number"?r.fd:null,this[en]=e,this[nO]=r.readSize||16*1024*1024,this[In]=!1,this[iO]=typeof r.size=="number"?r.size:1/0,this[tl]=this[iO],this[Ms]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[be]=="number"?this[Ls]():this[Nn]()}get fd(){return this[be]}get path(){return this[en]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Nn](){Ct.open(this[en],"r",(e,r)=>this[Fs](e,r))}[Fs](e,r){e?this[Ns](e):(this[be]=r,this.emit("open",r),this[Ls]())}[hg](){return Buffer.allocUnsafe(Math.min(this[nO],this[tl]))}[Ls](){if(!this[In]){this[In]=!0;let e=this[hg]();if(e.length===0)return process.nextTick(()=>this[ug](null,0,e));Ct.read(this[be],e,0,e.length,null,(r,n,i)=>this[ug](r,n,i))}}[ug](e,r,n){this[In]=!1,e?this[Ns](e):this[fg](r,n)&&this[Ls]()}[lr](){if(this[Ms]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Ct.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ns](e){this[In]=!0,this[lr](),this.emit("error",e)}[fg](e,r){let n=!1;return this[tl]-=e,e>0&&(n=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[tl]<=0)&&(n=!1,this[lr](),super.end()),n}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[be]=="number"&&this[Ls]();break;case"error":return this[Ds]?void 0:(this[Ds]=!0,super.emit(e,r));default:return super.emit(e,r)}}},dg=class extends sl{[Nn](){let e=!0;try{this[Fs](null,Ct.openSync(this[en],"r")),e=!1}finally{e&&this[lr]()}}[Ls](){let e=!0;try{if(!this[In]){this[In]=!0;do{let r=this[hg](),n=r.length===0?0:Ct.readSync(this[be],r,0,r.length,null);if(!this[fg](n,r))break}while(!0);this[In]=!1}e=!1}finally{e&&this[lr]()}}[lr](){if(this[Ms]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Ct.closeSync(e),this.emit("close")}}},ol=class extends AU{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ds]=!1,this[Ps]=!1,this[la]=!1,this[el]=!1,this[kr]=[],this[en]=e,this[be]=typeof r.fd=="number"?r.fd:null,this[il]=r.mode===void 0?438:r.mode,this[pi]=typeof r.start=="number"?r.start:null,this[Ms]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[pi]!==null?"r+":"w";this[nl]=r.flags===void 0,this[Ln]=this[nl]?n:r.flags,this[be]===null&&this[Nn]()}emit(e,r){if(e==="error"){if(this[Ds])return;this[Ds]=!0}return super.emit(e,r)}get fd(){return this[be]}get path(){return this[en]}[Ns](e){this[lr](),this[Ps]=!0,this.emit("error",e)}[Nn](){Ct.open(this[en],this[Ln],this[il],(e,r)=>this[Fs](e,r))}[Fs](e,r){this[nl]&&this[Ln]==="r+"&&e&&e.code==="ENOENT"?(this[Ln]="w",this[Nn]()):e?this[Ns](e):(this[be]=r,this.emit("open",r),this[cg]())}end(e,r){return e&&this.write(e,r),this[la]=!0,!this[Ps]&&!this[kr].length&&typeof this[be]=="number"&&this[Is](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[la]?(this.emit("error",new Error("write() after end()")),!1):this[be]===null||this[Ps]||this[kr].length?(this[kr].push(e),this[el]=!0,!1):(this[Ps]=!0,this[rl](e),!0)}[rl](e){Ct.write(this[be],e,0,e.length,this[pi],(r,n)=>this[Is](r,n))}[Is](e,r){e?this[Ns](e):(this[pi]!==null&&(this[pi]+=r),this[kr].length?this[cg]():(this[Ps]=!1,this[la]&&!this[rO]?(this[rO]=!0,this[lr](),this.emit("finish")):this[el]&&(this[el]=!1,this.emit("drain"))))}[cg](){if(this[kr].length===0)this[la]&&this[Is](null,0);else if(this[kr].length===1)this[rl](this[kr].pop());else{let e=this[kr];this[kr]=[],lg(this[be],e,this[pi],(r,n)=>this[Is](r,n))}}[lr](){if(this[Ms]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Ct.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},pg=class extends ol{[Nn](){let e;if(this[nl]&&this[Ln]==="r+")try{e=Ct.openSync(this[en],this[Ln],this[il])}catch(r){if(r.code==="ENOENT")return this[Ln]="w",this[Nn]();throw r}else e=Ct.openSync(this[en],this[Ln],this[il]);this[Fs](null,e)}[lr](){if(this[Ms]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Ct.closeSync(e),this.emit("close")}}[rl](e){let r=!0;try{this[Is](null,Ct.writeSync(this[be],e,0,e.length,this[pi])),r=!1}finally{if(r)try{this[lr]()}catch{}}}};fa.ReadStream=sl;fa.ReadStreamSync=dg;fa.WriteStream=ol;fa.WriteStreamSync=pg});var dl=y((EJ,hO)=>{"use strict";l();var RU=Bu(),CU=Os(),OU=require("events"),TU=Jm(),kU=1024*1024,PU=Mu(),sO=qu(),IU=Tm(),{nextTick:LU}=require("process"),mg=Buffer.from([31,139]),Kt=Symbol("state"),mi=Symbol("writeEntry"),tn=Symbol("readEntry"),gg=Symbol("nextEntry"),oO=Symbol("processEntry"),Zt=Symbol("extendedHeader"),ha=Symbol("globalExtendedHeader"),Dn=Symbol("meta"),aO=Symbol("emitMeta"),Re=Symbol("buffer"),rn=Symbol("queue"),gi=Symbol("ended"),cO=Symbol("emittedEnd"),yi=Symbol("emit"),Ot=Symbol("unzip"),al=Symbol("consumeChunk"),cl=Symbol("consumeChunkSub"),yg=Symbol("consumeBody"),uO=Symbol("consumeMeta"),lO=Symbol("consumeHeader"),ul=Symbol("consuming"),_g=Symbol("bufferConcat"),vg=Symbol("maybeEnd"),da=Symbol("writing"),Mn=Symbol("aborted"),ll=Symbol("onDone"),_i=Symbol("sawValidEntry"),fl=Symbol("sawNullBlock"),hl=Symbol("sawEOF"),fO=Symbol("closeStream"),NU=t=>!0;hO.exports=RU(class extends OU{constructor(e){e=e||{},super(e),this.file=e.file||"",this[_i]=null,this.on(ll,r=>{(this[Kt]==="begin"||this[_i]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(ll,e.ondone):this.on(ll,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||kU,this.filter=typeof e.filter=="function"?e.filter:NU,this.writable=!0,this.readable=!1,this[rn]=new TU,this[Re]=null,this[tn]=null,this[mi]=null,this[Kt]="begin",this[Dn]="",this[Zt]=null,this[ha]=null,this[gi]=!1,this[Ot]=null,this[Mn]=!1,this[fl]=!1,this[hl]=!1,this.on("end",()=>this[fO]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[lO](e,r){this[_i]===null&&(this[_i]=!1);let n;try{n=new CU(e,r,this[Zt],this[ha])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[fl]?(this[hl]=!0,this[Kt]==="begin"&&(this[Kt]="header"),this[yi]("eof")):(this[fl]=!0,this[yi]("nullBlock"));else if(this[fl]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[mi]=new PU(n,this[Zt],this[ha]);if(!this[_i])if(s.remain){let o=()=>{s.invalid||(this[_i]=!0)};s.on("end",o)}else this[_i]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[yi]("ignoredEntry",s),this[Kt]="ignore",s.resume()):s.size>0&&(this[Dn]="",s.on("data",o=>this[Dn]+=o),this[Kt]="meta"):(this[Zt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[yi]("ignoredEntry",s),this[Kt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Kt]="body":(this[Kt]="header",s.end()),this[tn]?this[rn].push(s):(this[rn].push(s),this[gg]())))}}}[fO](){LU(()=>this.emit("close"))}[oO](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[tn]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",n=>this[gg]()),r=!1)):(this[tn]=null,r=!1),r}[gg](){do;while(this[oO](this[rn].shift()));if(!this[rn].length){let e=this[tn];!e||e.flowing||e.size===e.remain?this[da]||this.emit("drain"):e.once("drain",n=>this.emit("drain"))}}[yg](e,r){let n=this[mi],i=n.blockRemain,s=i>=e.length&&r===0?e:e.slice(r,r+i);return n.write(s),n.blockRemain||(this[Kt]="header",this[mi]=null,n.end()),s.length}[uO](e,r){let n=this[mi],i=this[yg](e,r);return this[mi]||this[aO](n),i}[yi](e,r,n){!this[rn].length&&!this[tn]?this.emit(e,r,n):this[rn].push([e,r,n])}[aO](e){switch(this[yi]("meta",this[Dn]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Zt]=sO.parse(this[Dn],this[Zt],!1);break;case"GlobalExtendedHeader":this[ha]=sO.parse(this[Dn],this[ha],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Zt]=this[Zt]||Object.create(null),this[Zt].path=this[Dn].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Zt]=this[Zt]||Object.create(null),this[Zt].linkpath=this[Dn].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Mn]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Mn])return;if(this[Ot]===null&&e){if(this[Re]&&(e=Buffer.concat([this[Re],e]),this[Re]=null),e.length<mg.length)return this[Re]=e,!0;for(let n=0;this[Ot]===null&&n<mg.length;n++)e[n]!==mg[n]&&(this[Ot]=!1);if(this[Ot]===null){let n=this[gi];this[gi]=!1,this[Ot]=new IU.Unzip,this[Ot].on("data",s=>this[al](s)),this[Ot].on("error",s=>this.abort(s)),this[Ot].on("end",s=>{this[gi]=!0,this[al]()}),this[da]=!0;let i=this[Ot][n?"end":"write"](e);return this[da]=!1,i}}this[da]=!0,this[Ot]?this[Ot].write(e):this[al](e),this[da]=!1;let r=this[rn].length?!1:this[tn]?this[tn].flowing:!0;return!r&&!this[rn].length&&this[tn].once("drain",n=>this.emit("drain")),r}[_g](e){e&&!this[Mn]&&(this[Re]=this[Re]?Buffer.concat([this[Re],e]):e)}[vg](){if(this[gi]&&!this[cO]&&!this[Mn]&&!this[ul]){this[cO]=!0;let e=this[mi];if(e&&e.blockRemain){let r=this[Re]?this[Re].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[Re]&&e.write(this[Re]),e.end()}this[yi](ll)}}[al](e){if(this[ul])this[_g](e);else if(!e&&!this[Re])this[vg]();else{if(this[ul]=!0,this[Re]){this[_g](e);let r=this[Re];this[Re]=null,this[cl](r)}else this[cl](e);for(;this[Re]&&this[Re].length>=512&&!this[Mn]&&!this[hl];){let r=this[Re];this[Re]=null,this[cl](r)}this[ul]=!1}(!this[Re]||this[gi])&&this[vg]()}[cl](e){let r=0,n=e.length;for(;r+512<=n&&!this[Mn]&&!this[hl];)switch(this[Kt]){case"begin":case"header":this[lO](e,r),r+=512;break;case"ignore":case"body":r+=this[yg](e,r);break;case"meta":r+=this[uO](e,r);break;default:throw new Error("invalid state: "+this[Kt])}r<n&&(this[Re]?this[Re]=Buffer.concat([e.slice(r),this[Re]]):this[Re]=e.slice(r))}end(e){this[Mn]||(this[Ot]?this[Ot].end(e):(this[gi]=!0,this.write(e)))}})});var pl=y((wJ,gO)=>{"use strict";l();var DU=Es(),pO=dl(),Bs=require("fs"),MU=qs(),dO=require("path"),bg=Ts();gO.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=DU(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&qU(n,e),n.noResume||FU(n),n.file&&n.sync?BU(n):n.file?jU(n,r):mO(n)};var FU=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},qU=(t,e)=>{let r=new Map(e.map(s=>[bg(s),!0])),n=t.filter,i=(s,o)=>{let a=o||dO.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):i(dO.dirname(s),a);return r.set(s,c),c};t.filter=n?(s,o)=>n(s,o)&&i(bg(s)):s=>i(bg(s))},BU=t=>{let e=mO(t),r=t.file,n=!0,i;try{let s=Bs.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(Bs.readFileSync(r));else{let a=0,c=Buffer.allocUnsafe(o);for(i=Bs.openSync(r,"r");a<s.size;){let u=Bs.readSync(i,c,0,o,a);a+=u,e.write(c.slice(0,u))}e.end()}n=!1}finally{if(n&&i)try{Bs.closeSync(i)}catch{}}},jU=(t,e)=>{let r=new pO(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),Bs.stat(i,(c,u)=>{if(c)a(c);else{let f=new MU.ReadStream(i,{readSize:n,size:u.size});f.on("error",a),f.pipe(r)}})});return e?s.then(e,e):s},mO=t=>new pO(t)});var wO=y((xJ,EO)=>{"use strict";l();var HU=Es(),ml=Qu(),yO=qs(),_O=pl(),vO=require("path");EO.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let n=HU(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?$U(n,e):n.file?UU(n,e,r):n.sync?GU(n,e):VU(n,e)};var $U=(t,e)=>{let r=new ml.Sync(t),n=new yO.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(n),bO(r,e)},UU=(t,e,r)=>{let n=new ml(t),i=new yO.WriteStream(t.file,{mode:t.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return Eg(n,e),r?s.then(r,r):s},bO=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?_O({file:vO.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},Eg=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return _O({file:vO.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>Eg(t,e));t.add(r)}t.end()},GU=(t,e)=>{let r=new ml.Sync(t);return bO(r,e),r},VU=(t,e)=>{let r=new ml(t);return Eg(r,e),r}});var wg=y((SJ,TO)=>{"use strict";l();var WU=Es(),xO=Qu(),Mt=require("fs"),SO=qs(),AO=pl(),RO=require("path"),CO=Os();TO.exports=(t,e,r)=>{let n=WU(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),n.sync?zU(n,e):KU(n,e,r)};var zU=(t,e)=>{let r=new xO.Sync(t),n=!0,i,s;try{try{i=Mt.openSync(t.file,"r+")}catch(c){if(c.code==="ENOENT")i=Mt.openSync(t.file,"w+");else throw c}let o=Mt.fstatSync(i),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let f=0,h=0;f<512;f+=h){if(h=Mt.readSync(i,a,f,a.length-f,s+f),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let c=new CO(a);if(!c.cksumValid)break;let u=512*Math.ceil(c.size/512);if(s+u+512>o.size)break;s+=u,t.mtimeCache&&t.mtimeCache.set(c.path,c.mtime)}n=!1,YU(t,r,s,i,e)}finally{if(n)try{Mt.closeSync(i)}catch{}}},YU=(t,e,r,n,i)=>{let s=new SO.WriteStreamSync(t.file,{fd:n,start:r});e.pipe(s),ZU(e,i)},KU=(t,e,r)=>{e=Array.from(e);let n=new xO(t),i=(o,a,c)=>{let u=(m,E)=>{m?Mt.close(o,v=>c(m)):c(null,E)},f=0;if(a===0)return u(null,0);let h=0,d=Buffer.alloc(512),g=(m,E)=>{if(m)return u(m);if(h+=E,h<512&&E)return Mt.read(o,d,h,d.length-h,f+h,g);if(f===0&&d[0]===31&&d[1]===139)return u(new Error("cannot append to compressed archives"));if(h<512)return u(null,f);let v=new CO(d);if(!v.cksumValid)return u(null,f);let A=512*Math.ceil(v.size/512);if(f+A+512>a||(f+=A+512,f>=a))return u(null,f);t.mtimeCache&&t.mtimeCache.set(v.path,v.mtime),h=0,Mt.read(o,d,0,512,f,g)};Mt.read(o,d,0,512,f,g)},s=new Promise((o,a)=>{n.on("error",a);let c="r+",u=(f,h)=>{if(f&&f.code==="ENOENT"&&c==="r+")return c="w+",Mt.open(t.file,c,u);if(f)return a(f);Mt.fstat(h,(d,g)=>{if(d)return Mt.close(h,()=>a(d));i(h,g.size,(m,E)=>{if(m)return a(m);let v=new SO.WriteStream(t.file,{fd:h,start:E});n.pipe(v),v.on("error",a),v.on("close",o),OO(n,e)})})};Mt.open(t.file,c,u)});return r?s.then(r,r):s},ZU=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?AO({file:RO.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},OO=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return AO({file:RO.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>OO(t,e));t.add(r)}t.end()}});var PO=y((AJ,kO)=>{"use strict";l();var JU=Es(),XU=wg();kO.exports=(t,e,r)=>{let n=JU(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),QU(n),XU(n,e,r)};var QU=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,n)=>e(r,n)&&!(t.mtimeCache.get(r)>n.mtime):(r,n)=>!(t.mtimeCache.get(r)>n.mtime)}});var NO=y((RJ,LO)=>{l();var{promisify:IO}=require("util"),Fn=require("fs"),e4=t=>{if(!t)t={mode:511,fs:Fn};else if(typeof t=="object")t={mode:511,fs:Fn,...t};else if(typeof t=="number")t={mode:t,fs:Fn};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Fn};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Fn.mkdir,t.mkdirAsync=IO(t.mkdir),t.stat=t.stat||t.fs.stat||Fn.stat,t.statAsync=IO(t.stat),t.statSync=t.statSync||t.fs.statSync||Fn.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Fn.mkdirSync,t};LO.exports=e4});var MO=y((CJ,DO)=>{l();var t4=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:r4,parse:n4}=require("path"),i4=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=r4(t),t4==="win32"){let e=/[*|"<>?:]/,{root:r}=n4(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};DO.exports=i4});var HO=y((OJ,jO)=>{l();var{dirname:FO}=require("path"),qO=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?qO(t,FO(e),e):void 0),BO=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?BO(t,FO(e),e):void 0}};jO.exports={findMade:qO,findMadeSync:BO}});var Ag=y((TJ,UO)=>{l();var{dirname:$O}=require("path"),xg=(t,e,r)=>{e.recursive=!1;let n=$O(t);return n===t?e.mkdirAsync(t,e).catch(i=>{if(i.code!=="EISDIR")throw i}):e.mkdirAsync(t,e).then(()=>r||t,i=>{if(i.code==="ENOENT")return xg(n,e).then(s=>xg(t,e,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},Sg=(t,e,r)=>{let n=$O(t);if(e.recursive=!1,n===t)try{return e.mkdirSync(t,e)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return e.mkdirSync(t,e),r||t}catch(i){if(i.code==="ENOENT")return Sg(t,e,Sg(n,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};UO.exports={mkdirpManual:xg,mkdirpManualSync:Sg}});var WO=y((kJ,VO)=>{l();var{dirname:GO}=require("path"),{findMade:s4,findMadeSync:o4}=HO(),{mkdirpManual:a4,mkdirpManualSync:c4}=Ag(),u4=(t,e)=>(e.recursive=!0,GO(t)===t?e.mkdirAsync(t,e):s4(e,t).then(n=>e.mkdirAsync(t,e).then(()=>n).catch(i=>{if(i.code==="ENOENT")return a4(t,e);throw i}))),l4=(t,e)=>{if(e.recursive=!0,GO(t)===t)return e.mkdirSync(t,e);let n=o4(e,t);try{return e.mkdirSync(t,e),n}catch(i){if(i.code==="ENOENT")return c4(t,e);throw i}};VO.exports={mkdirpNative:u4,mkdirpNativeSync:l4}});var ZO=y((PJ,KO)=>{l();var zO=require("fs"),f4=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Rg=f4.replace(/^v/,"").split("."),YO=+Rg[0]>10||+Rg[0]==10&&+Rg[1]>=12,h4=YO?t=>t.mkdir===zO.mkdir:()=>!1,d4=YO?t=>t.mkdirSync===zO.mkdirSync:()=>!1;KO.exports={useNative:h4,useNativeSync:d4}});var rT=y((IJ,tT)=>{l();var js=NO(),Hs=MO(),{mkdirpNative:JO,mkdirpNativeSync:XO}=WO(),{mkdirpManual:QO,mkdirpManualSync:eT}=Ag(),{useNative:p4,useNativeSync:m4}=ZO(),$s=(t,e)=>(t=Hs(t),e=js(e),p4(e)?JO(t,e):QO(t,e)),g4=(t,e)=>(t=Hs(t),e=js(e),m4(e)?XO(t,e):eT(t,e));$s.sync=g4;$s.native=(t,e)=>JO(Hs(t),js(e));$s.manual=(t,e)=>QO(Hs(t),js(e));$s.nativeSync=(t,e)=>XO(Hs(t),js(e));$s.manualSync=(t,e)=>eT(Hs(t),js(e));tT.exports=$s});var uT=y((LJ,cT)=>{"use strict";l();var Jt=require("fs"),vi=require("path"),y4=Jt.lchown?"lchown":"chown",_4=Jt.lchownSync?"lchownSync":"chownSync",iT=Jt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),nT=(t,e,r)=>{try{return Jt[_4](t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},v4=(t,e,r)=>{try{return Jt.chownSync(t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},b4=iT?(t,e,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):Jt.chown(t,e,r,n)}:(t,e,r,n)=>n,Cg=iT?(t,e,r)=>{try{return nT(t,e,r)}catch(n){if(n.code!=="EISDIR")throw n;v4(t,e,r)}}:(t,e,r)=>nT(t,e,r),E4=process.version,sT=(t,e,r)=>Jt.readdir(t,e,r),w4=(t,e)=>Jt.readdirSync(t,e);/^v4\./.test(E4)&&(sT=(t,e,r)=>Jt.readdir(t,r));var gl=(t,e,r,n)=>{Jt[y4](t,e,r,b4(t,e,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},oT=(t,e,r,n,i)=>{if(typeof e=="string")return Jt.lstat(vi.resolve(t,e),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=e,oT(t,o,r,n,i)});if(e.isDirectory())Og(vi.resolve(t,e.name),r,n,s=>{if(s)return i(s);let o=vi.resolve(t,e.name);gl(o,r,n,i)});else{let s=vi.resolve(t,e.name);gl(s,r,n,i)}},Og=(t,e,r,n)=>{sT(t,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return gl(t,e,r,n);let o=s.length,a=null,c=u=>{if(!a){if(u)return n(a=u);if(--o===0)return gl(t,e,r,n)}};s.forEach(u=>oT(t,u,e,r,c))})},x4=(t,e,r,n)=>{if(typeof e=="string")try{let i=Jt.lstatSync(vi.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&aT(vi.resolve(t,e.name),r,n),Cg(vi.resolve(t,e.name),r,n)},aT=(t,e,r)=>{let n;try{n=w4(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return Cg(t,e,r);throw i}return n&&n.length&&n.forEach(i=>x4(t,i,e,r)),Cg(t,e,r)};cT.exports=Og;Og.sync=aT});var dT=y((NJ,Tg)=>{"use strict";l();var lT=rT(),Xt=require("fs"),yl=require("path"),fT=uT(),fr=Rs(),_l=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},vl=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},bl=(t,e)=>t.get(fr(e)),pa=(t,e,r)=>t.set(fr(e),r),S4=(t,e)=>{Xt.stat(t,(r,n)=>{(r||!n.isDirectory())&&(r=new vl(t,r&&r.code||"ENOTDIR")),e(r)})};Tg.exports=(t,e,r)=>{t=fr(t);let n=e.umask,i=e.mode|448,s=(i&n)!==0,o=e.uid,a=e.gid,c=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),u=e.preserve,f=e.unlink,h=e.cache,d=fr(e.cwd),g=(v,A)=>{v?r(v):(pa(h,t,!0),A&&c?fT(A,o,a,P=>g(P)):s?Xt.chmod(t,i,r):r())};if(h&&bl(h,t)===!0)return g();if(t===d)return S4(t,g);if(u)return lT(t,{mode:i}).then(v=>g(null,v),g);let E=fr(yl.relative(d,t)).split("/");El(d,E,i,h,f,d,null,g)};var El=(t,e,r,n,i,s,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),u=fr(yl.resolve(t+"/"+c));if(bl(n,u))return El(u,e,r,n,i,s,o,a);Xt.mkdir(u,r,hT(u,e,r,n,i,s,o,a))},hT=(t,e,r,n,i,s,o,a)=>c=>{c?Xt.lstat(t,(u,f)=>{if(u)u.path=u.path&&fr(u.path),a(u);else if(f.isDirectory())El(t,e,r,n,i,s,o,a);else if(i)Xt.unlink(t,h=>{if(h)return a(h);Xt.mkdir(t,r,hT(t,e,r,n,i,s,o,a))});else{if(f.isSymbolicLink())return a(new _l(t,t+"/"+e.join("/")));a(c)}}):(o=o||t,El(t,e,r,n,i,s,o,a))},A4=t=>{let e=!1,r="ENOTDIR";try{e=Xt.statSync(t).isDirectory()}catch(n){r=n.code}finally{if(!e)throw new vl(t,r)}};Tg.exports.sync=(t,e)=>{t=fr(t);let r=e.umask,n=e.mode|448,i=(n&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),c=e.preserve,u=e.unlink,f=e.cache,h=fr(e.cwd),d=v=>{pa(f,t,!0),v&&a&&fT.sync(v,s,o),i&&Xt.chmodSync(t,n)};if(f&&bl(f,t)===!0)return d();if(t===h)return A4(h),d();if(c)return d(lT.sync(t,n));let m=fr(yl.relative(h,t)).split("/"),E=null;for(let v=m.shift(),A=h;v&&(A+="/"+v);v=m.shift())if(A=fr(yl.resolve(A)),!bl(f,A))try{Xt.mkdirSync(A,n),E=E||A,pa(f,A,!0)}catch{let D=Xt.lstatSync(A);if(D.isDirectory()){pa(f,A,!0);continue}else if(u){Xt.unlinkSync(A),Xt.mkdirSync(A,n),E=E||A,pa(f,A,!0);continue}else if(D.isSymbolicLink())return new _l(A,A+"/"+m.join("/"))}return d(E)}});var Pg=y((DJ,pT)=>{l();var kg=Object.create(null),{hasOwnProperty:R4}=Object.prototype;pT.exports=t=>(R4.call(kg,t)||(kg[t]=t.normalize("NFKD")),kg[t])});var _T=y((MJ,yT)=>{l();var mT=require("assert"),C4=Pg(),O4=Ts(),{join:gT}=require("path"),T4=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,k4=T4==="win32";yT.exports=()=>{let t=new Map,e=new Map,r=u=>u.split("/").slice(0,-1).reduce((h,d)=>(h.length&&(d=gT(h[h.length-1],d)),h.push(d||"/"),h),[]),n=new Set,i=u=>{let f=e.get(u);if(!f)throw new Error("function does not have any path reservations");return{paths:f.paths.map(h=>t.get(h)),dirs:[...f.dirs].map(h=>t.get(h))}},s=u=>{let{paths:f,dirs:h}=i(u);return f.every(d=>d[0]===u)&&h.every(d=>d[0]instanceof Set&&d[0].has(u))},o=u=>n.has(u)||!s(u)?!1:(n.add(u),u(()=>a(u)),!0),a=u=>{if(!n.has(u))return!1;let{paths:f,dirs:h}=e.get(u),d=new Set;return f.forEach(g=>{let m=t.get(g);mT.equal(m[0],u),m.length===1?t.delete(g):(m.shift(),typeof m[0]=="function"?d.add(m[0]):m[0].forEach(E=>d.add(E)))}),h.forEach(g=>{let m=t.get(g);mT(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(g):m[0].size===1?(m.shift(),d.add(m[0])):m[0].delete(u)}),n.delete(u),d.forEach(g=>o(g)),!0};return{check:s,reserve:(u,f)=>{u=k4?["win32 parallelization disabled"]:u.map(d=>C4(O4(gT(d))).toLowerCase());let h=new Set(u.map(d=>r(d)).reduce((d,g)=>d.concat(g)));return e.set(f,{dirs:h,paths:u}),u.forEach(d=>{let g=t.get(d);g?g.push(f):t.set(d,[f])}),h.forEach(d=>{let g=t.get(d);g?g[g.length-1]instanceof Set?g[g.length-1].add(f):g.push(new Set([f])):t.set(d,[new Set([f])])}),o(f)}}}});var ET=y((FJ,bT)=>{l();var P4=process.env.__FAKE_PLATFORM__||process.platform,I4=P4==="win32",L4=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:N4,O_TRUNC:D4,O_WRONLY:M4,UV_FS_O_FILEMAP:vT=0}=L4.constants,F4=I4&&!!vT,q4=512*1024,B4=vT|D4|N4|M4;bT.exports=F4?t=>t<q4?B4:"w":()=>"w"});var jg=y((qJ,DT)=>{"use strict";l();var j4=require("assert"),H4=dl(),de=require("fs"),$4=qs(),nn=require("path"),IT=dT(),wT=Bm(),U4=_T(),G4=jm(),Ft=Rs(),V4=Ts(),W4=Pg(),xT=Symbol("onEntry"),Ng=Symbol("checkFs"),ST=Symbol("checkFs2"),Sl=Symbol("pruneCache"),Dg=Symbol("isReusable"),Qt=Symbol("makeFs"),Mg=Symbol("file"),Fg=Symbol("directory"),Al=Symbol("link"),AT=Symbol("symlink"),RT=Symbol("hardlink"),CT=Symbol("unsupported"),OT=Symbol("checkPath"),qn=Symbol("mkdir"),ht=Symbol("onError"),wl=Symbol("pending"),TT=Symbol("pend"),Us=Symbol("unpend"),Ig=Symbol("ended"),Lg=Symbol("maybeClose"),qg=Symbol("skip"),ma=Symbol("doChown"),ga=Symbol("uid"),ya=Symbol("gid"),_a=Symbol("checkedCwd"),LT=require("crypto"),NT=ET(),z4=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,va=z4==="win32",Y4=(t,e)=>{if(!va)return de.unlink(t,e);let r=t+".DELETE."+LT.randomBytes(16).toString("hex");de.rename(t,r,n=>{if(n)return e(n);de.unlink(r,e)})},K4=t=>{if(!va)return de.unlinkSync(t);let e=t+".DELETE."+LT.randomBytes(16).toString("hex");de.renameSync(t,e),de.unlinkSync(e)},kT=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,PT=t=>W4(V4(Ft(t))).toLowerCase(),Z4=(t,e)=>{e=PT(e);for(let r of t.keys()){let n=PT(r);(n===e||n.indexOf(e+"/")===0)&&t.delete(r)}},J4=t=>{for(let e of t.keys())t.delete(e)},ba=class extends H4{constructor(e){if(e||(e={}),e.ondone=r=>{this[Ig]=!0,this[Lg]()},super(e),this[_a]=!1,this.reservations=U4(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[wl]=0,this[Ig]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||va,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Ft(nn.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[xT](r))}warn(e,r,n={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(n.recoverable=!1),super.warn(e,r,n)}[Lg](){this[Ig]&&this[wl]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[OT](e){if(this.strip){let r=Ft(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let n=Ft(e.linkpath).split("/");if(n.length>=this.strip)e.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Ft(e.path),n=r.split("/");if(n.includes("..")||va&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,s]=G4(r);i&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(nn.isAbsolute(e.path)?e.absolute=Ft(nn.resolve(e.path)):e.absolute=Ft(nn.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Ft(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=nn.win32.parse(e.absolute);e.absolute=r+wT.encode(e.absolute.slice(r.length));let{root:n}=nn.win32.parse(e.path);e.path=n+wT.encode(e.path.slice(n.length))}return!0}[xT](e){if(!this[OT](e))return e.resume();switch(j4.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Ng](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[CT](e)}}[ht](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Us](),r.resume())}[qn](e,r,n){IT(Ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},n)}[ma](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[ga](e){return kT(this.uid,e.uid,this.processUid)}[ya](e){return kT(this.gid,e.gid,this.processGid)}[Mg](e,r){let n=e.mode&4095||this.fmode,i=new $4.WriteStream(e.absolute,{flags:NT(e.size),mode:n,autoClose:!1});i.on("error",c=>{i.fd&&de.close(i.fd,()=>{}),i.write=()=>!0,this[ht](c,e),r()});let s=1,o=c=>{if(c){i.fd&&de.close(i.fd,()=>{}),this[ht](c,e),r();return}--s===0&&de.close(i.fd,u=>{u?this[ht](u,e):this[Us](),r()})};i.on("finish",c=>{let u=e.absolute,f=i.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,d=e.mtime;de.futimes(f,h,d,g=>g?de.utimes(u,h,d,m=>o(m&&g)):o())}if(this[ma](e)){s++;let h=this[ga](e),d=this[ya](e);de.fchown(f,h,d,g=>g?de.chown(u,h,d,m=>o(m&&g)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",c=>{this[ht](c,e),r()}),e.pipe(a)),a.pipe(i)}[Fg](e,r){let n=e.mode&4095||this.dmode;this[qn](e.absolute,n,i=>{if(i){this[ht](i,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[Us](),e.resume())};e.mtime&&!this.noMtime&&(s++,de.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[ma](e)&&(s++,de.chown(e.absolute,this[ga](e),this[ya](e),o)),o()})}[CT](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[AT](e,r){this[Al](e,e.linkpath,"symlink",r)}[RT](e,r){let n=Ft(nn.resolve(this.cwd,e.linkpath));this[Al](e,n,"link",r)}[TT](){this[wl]++}[Us](){this[wl]--,this[Lg]()}[qg](e){this[Us](),e.resume()}[Dg](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!va}[Ng](e){this[TT]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,n=>this[ST](e,n))}[Sl](e){e.type==="SymbolicLink"?J4(this.dirCache):e.type!=="Directory"&&Z4(this.dirCache,e.absolute)}[ST](e,r){this[Sl](e);let n=a=>{this[Sl](e),r(a)},i=()=>{this[qn](this.cwd,this.dmode,a=>{if(a){this[ht](a,e),n();return}this[_a]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Ft(nn.dirname(e.absolute));if(a!==this.cwd)return this[qn](a,this.dmode,c=>{if(c){this[ht](c,e),n();return}o()})}o()},o=()=>{de.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[qg](e),n();return}if(a||this[Dg](e,c))return this[Qt](null,e,n);if(c.isDirectory()){if(e.type==="Directory"){let u=!this.noChmod&&e.mode&&(c.mode&4095)!==e.mode,f=h=>this[Qt](h,e,n);return u?de.chmod(e.absolute,e.mode,f):f()}if(e.absolute!==this.cwd)return de.rmdir(e.absolute,u=>this[Qt](u,e,n))}if(e.absolute===this.cwd)return this[Qt](null,e,n);Y4(e.absolute,u=>this[Qt](u,e,n))})};this[_a]?s():i()}[Qt](e,r,n){if(e){this[ht](e,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[Mg](r,n);case"Link":return this[RT](r,n);case"SymbolicLink":return this[AT](r,n);case"Directory":case"GNUDumpDir":return this[Fg](r,n)}}[Al](e,r,n,i){de[n](r,e.absolute,s=>{s?this[ht](s,e):(this[Us](),e.resume()),i()})}},xl=t=>{try{return[null,t()]}catch(e){return[e,null]}},Bg=class extends ba{[Qt](e,r){return super[Qt](e,r,()=>{})}[Ng](e){if(this[Sl](e),!this[_a]){let s=this[qn](this.cwd,this.dmode);if(s)return this[ht](s,e);this[_a]=!0}if(e.absolute!==this.cwd){let s=Ft(nn.dirname(e.absolute));if(s!==this.cwd){let o=this[qn](s,this.dmode);if(o)return this[ht](o,e)}}let[r,n]=xl(()=>de.lstatSync(e.absolute));if(n&&(this.keep||this.newer&&n.mtime>e.mtime))return this[qg](e);if(r||this[Dg](e,n))return this[Qt](null,e);if(n.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(n.mode&4095)!==e.mode,[a]=o?xl(()=>{de.chmodSync(e.absolute,e.mode)}):[];return this[Qt](a,e)}let[s]=xl(()=>de.rmdirSync(e.absolute));this[Qt](s,e)}let[i]=e.absolute===this.cwd?[]:xl(()=>K4(e.absolute));this[Qt](i,e)}[Mg](e,r){let n=e.mode&4095||this.fmode,i=a=>{let c;try{de.closeSync(s)}catch(u){c=u}(a||c)&&this[ht](a||c,e),r()},s;try{s=de.openSync(e.absolute,NT(e.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[ht](a,e)),e.pipe(o)),o.on("data",a=>{try{de.writeSync(s,a,0,a.length)}catch(c){i(c)}}),o.on("end",a=>{let c=null;if(e.mtime&&!this.noMtime){let u=e.atime||new Date,f=e.mtime;try{de.futimesSync(s,u,f)}catch(h){try{de.utimesSync(e.absolute,u,f)}catch{c=h}}}if(this[ma](e)){let u=this[ga](e),f=this[ya](e);try{de.fchownSync(s,u,f)}catch(h){try{de.chownSync(e.absolute,u,f)}catch{c=c||h}}}i(c)})}[Fg](e,r){let n=e.mode&4095||this.dmode,i=this[qn](e.absolute,n);if(i){this[ht](i,e),r();return}if(e.mtime&&!this.noMtime)try{de.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[ma](e))try{de.chownSync(e.absolute,this[ga](e),this[ya](e))}catch{}r(),e.resume()}[qn](e,r){try{return IT.sync(Ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(n){return n}}[Al](e,r,n,i){try{de[n+"Sync"](r,e.absolute),i(),e.resume()}catch(s){return this[ht](s,e)}}};ba.Sync=Bg;DT.exports=ba});var jT=y((BJ,BT)=>{"use strict";l();var X4=Es(),Rl=jg(),FT=require("fs"),qT=qs(),MT=require("path"),Hg=Ts();BT.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=X4(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&Q4(n,e),n.file&&n.sync?e8(n):n.file?t8(n,r):n.sync?r8(n):n8(n)};var Q4=(t,e)=>{let r=new Map(e.map(s=>[Hg(s),!0])),n=t.filter,i=(s,o)=>{let a=o||MT.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):i(MT.dirname(s),a);return r.set(s,c),c};t.filter=n?(s,o)=>n(s,o)&&i(Hg(s)):s=>i(Hg(s))},e8=t=>{let e=new Rl.Sync(t),r=t.file,n=FT.statSync(r),i=t.maxReadSize||16*1024*1024;new qT.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(e)},t8=(t,e)=>{let r=new Rl(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),FT.stat(i,(c,u)=>{if(c)a(c);else{let f=new qT.ReadStream(i,{readSize:n,size:u.size});f.on("error",a),f.pipe(r)}})});return e?s.then(e,e):s},r8=t=>new Rl.Sync(t),n8=t=>new Rl(t)});var HT=y(Ve=>{"use strict";l();Ve.c=Ve.create=wO();Ve.r=Ve.replace=wg();Ve.t=Ve.list=pl();Ve.u=Ve.update=PO();Ve.x=Ve.extract=jT();Ve.Pack=Qu();Ve.Unpack=jg();Ve.Parse=dl();Ve.ReadEntry=Mu();Ve.WriteEntry=Zm();Ve.Header=Os();Ve.Pax=qu();Ve.types=Im()});var on=y((sn,Cl)=>{"use strict";l();Object.defineProperty(sn,"__esModule",{value:!0});var $T=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function i8(t){return $T.includes(t)}var s8=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...$T];function o8(t){return s8.includes(t)}var a8=["null","undefined","string","number","bigint","boolean","symbol"];function c8(t){return a8.includes(t)}function Gs(t){return e=>typeof e===t}var{toString:UT}=Object.prototype,Ea=t=>{let e=UT.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&w.domElement(t))return"HTMLElement";if(o8(e))return e},we=t=>e=>Ea(e)===t;function w(t){if(t===null)return"null";switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(w.observable(t))return"Observable";if(w.array(t))return"Array";if(w.buffer(t))return"Buffer";let e=Ea(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}w.undefined=Gs("undefined");w.string=Gs("string");var u8=Gs("number");w.number=t=>u8(t)&&!w.nan(t);w.bigint=Gs("bigint");w.function_=Gs("function");w.null_=t=>t===null;w.class_=t=>w.function_(t)&&t.toString().startsWith("class ");w.boolean=t=>t===!0||t===!1;w.symbol=Gs("symbol");w.numericString=t=>w.string(t)&&!w.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));w.array=(t,e)=>Array.isArray(t)?w.function_(e)?t.every(e):!0:!1;w.buffer=t=>{var e,r,n,i;return(i=(n=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!1};w.blob=t=>we("Blob")(t);w.nullOrUndefined=t=>w.null_(t)||w.undefined(t);w.object=t=>!w.null_(t)&&(typeof t=="object"||w.function_(t));w.iterable=t=>{var e;return w.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};w.asyncIterable=t=>{var e;return w.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};w.generator=t=>{var e,r;return w.iterable(t)&&w.function_((e=t)===null||e===void 0?void 0:e.next)&&w.function_((r=t)===null||r===void 0?void 0:r.throw)};w.asyncGenerator=t=>w.asyncIterable(t)&&w.function_(t.next)&&w.function_(t.throw);w.nativePromise=t=>we("Promise")(t);var l8=t=>{var e,r;return w.function_((e=t)===null||e===void 0?void 0:e.then)&&w.function_((r=t)===null||r===void 0?void 0:r.catch)};w.promise=t=>w.nativePromise(t)||l8(t);w.generatorFunction=we("GeneratorFunction");w.asyncGeneratorFunction=t=>Ea(t)==="AsyncGeneratorFunction";w.asyncFunction=t=>Ea(t)==="AsyncFunction";w.boundFunction=t=>w.function_(t)&&!t.hasOwnProperty("prototype");w.regExp=we("RegExp");w.date=we("Date");w.error=we("Error");w.map=t=>we("Map")(t);w.set=t=>we("Set")(t);w.weakMap=t=>we("WeakMap")(t);w.weakSet=t=>we("WeakSet")(t);w.int8Array=we("Int8Array");w.uint8Array=we("Uint8Array");w.uint8ClampedArray=we("Uint8ClampedArray");w.int16Array=we("Int16Array");w.uint16Array=we("Uint16Array");w.int32Array=we("Int32Array");w.uint32Array=we("Uint32Array");w.float32Array=we("Float32Array");w.float64Array=we("Float64Array");w.bigInt64Array=we("BigInt64Array");w.bigUint64Array=we("BigUint64Array");w.arrayBuffer=we("ArrayBuffer");w.sharedArrayBuffer=we("SharedArrayBuffer");w.dataView=we("DataView");w.enumCase=(t,e)=>Object.values(e).includes(t);w.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;w.urlInstance=t=>we("URL")(t);w.urlString=t=>{if(!w.string(t))return!1;try{return new URL(t),!0}catch{return!1}};w.truthy=t=>Boolean(t);w.falsy=t=>!t;w.nan=t=>Number.isNaN(t);w.primitive=t=>w.null_(t)||c8(typeof t);w.integer=t=>Number.isInteger(t);w.safeInteger=t=>Number.isSafeInteger(t);w.plainObject=t=>{if(UT.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};w.typedArray=t=>i8(Ea(t));var f8=t=>w.safeInteger(t)&&t>=0;w.arrayLike=t=>!w.nullOrUndefined(t)&&!w.function_(t)&&f8(t.length);w.inRange=(t,e)=>{if(w.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(w.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var h8=1,d8=["innerHTML","ownerDocument","style","attributes","nodeValue"];w.domElement=t=>w.object(t)&&t.nodeType===h8&&w.string(t.nodeName)&&!w.plainObject(t)&&d8.every(e=>e in t);w.observable=t=>{var e,r,n,i;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((i=(n=t)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};w.nodeStream=t=>w.object(t)&&w.function_(t.pipe)&&!w.observable(t);w.infinite=t=>t===1/0||t===-1/0;var GT=t=>e=>w.integer(e)&&Math.abs(e%2)===t;w.evenInteger=GT(0);w.oddInteger=GT(1);w.emptyArray=t=>w.array(t)&&t.length===0;w.nonEmptyArray=t=>w.array(t)&&t.length>0;w.emptyString=t=>w.string(t)&&t.length===0;var p8=t=>w.string(t)&&!/\S/.test(t);w.emptyStringOrWhitespace=t=>w.emptyString(t)||p8(t);w.nonEmptyString=t=>w.string(t)&&t.length>0;w.nonEmptyStringAndNotWhitespace=t=>w.string(t)&&!w.emptyStringOrWhitespace(t);w.emptyObject=t=>w.object(t)&&!w.map(t)&&!w.set(t)&&Object.keys(t).length===0;w.nonEmptyObject=t=>w.object(t)&&!w.map(t)&&!w.set(t)&&Object.keys(t).length>0;w.emptySet=t=>w.set(t)&&t.size===0;w.nonEmptySet=t=>w.set(t)&&t.size>0;w.emptyMap=t=>w.map(t)&&t.size===0;w.nonEmptyMap=t=>w.map(t)&&t.size>0;w.propertyKey=t=>w.any([w.string,w.number,w.symbol],t);w.formData=t=>we("FormData")(t);w.urlSearchParams=t=>we("URLSearchParams")(t);var VT=(t,e,r)=>{if(!w.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};w.any=(t,...e)=>(w.array(t)?t:[t]).some(n=>VT(Array.prototype.some,n,e));w.all=(t,...e)=>VT(Array.prototype.every,t,e);var M=(t,e,r,n={})=>{if(!t){let{multipleValues:i}=n,s=i?`received values of types ${[...new Set(r.map(o=>`\`${w(o)}\``))].join(", ")}`:`received value of type \`${w(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};sn.assert={undefined:t=>M(w.undefined(t),"undefined",t),string:t=>M(w.string(t),"string",t),number:t=>M(w.number(t),"number",t),bigint:t=>M(w.bigint(t),"bigint",t),function_:t=>M(w.function_(t),"Function",t),null_:t=>M(w.null_(t),"null",t),class_:t=>M(w.class_(t),"Class",t),boolean:t=>M(w.boolean(t),"boolean",t),symbol:t=>M(w.symbol(t),"symbol",t),numericString:t=>M(w.numericString(t),"string with a number",t),array:(t,e)=>{M(w.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>M(w.buffer(t),"Buffer",t),blob:t=>M(w.blob(t),"Blob",t),nullOrUndefined:t=>M(w.nullOrUndefined(t),"null or undefined",t),object:t=>M(w.object(t),"Object",t),iterable:t=>M(w.iterable(t),"Iterable",t),asyncIterable:t=>M(w.asyncIterable(t),"AsyncIterable",t),generator:t=>M(w.generator(t),"Generator",t),asyncGenerator:t=>M(w.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>M(w.nativePromise(t),"native Promise",t),promise:t=>M(w.promise(t),"Promise",t),generatorFunction:t=>M(w.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>M(w.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>M(w.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>M(w.boundFunction(t),"Function",t),regExp:t=>M(w.regExp(t),"RegExp",t),date:t=>M(w.date(t),"Date",t),error:t=>M(w.error(t),"Error",t),map:t=>M(w.map(t),"Map",t),set:t=>M(w.set(t),"Set",t),weakMap:t=>M(w.weakMap(t),"WeakMap",t),weakSet:t=>M(w.weakSet(t),"WeakSet",t),int8Array:t=>M(w.int8Array(t),"Int8Array",t),uint8Array:t=>M(w.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>M(w.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>M(w.int16Array(t),"Int16Array",t),uint16Array:t=>M(w.uint16Array(t),"Uint16Array",t),int32Array:t=>M(w.int32Array(t),"Int32Array",t),uint32Array:t=>M(w.uint32Array(t),"Uint32Array",t),float32Array:t=>M(w.float32Array(t),"Float32Array",t),float64Array:t=>M(w.float64Array(t),"Float64Array",t),bigInt64Array:t=>M(w.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>M(w.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>M(w.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>M(w.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>M(w.dataView(t),"DataView",t),enumCase:(t,e)=>M(w.enumCase(t,e),"EnumCase",t),urlInstance:t=>M(w.urlInstance(t),"URL",t),urlString:t=>M(w.urlString(t),"string with a URL",t),truthy:t=>M(w.truthy(t),"truthy",t),falsy:t=>M(w.falsy(t),"falsy",t),nan:t=>M(w.nan(t),"NaN",t),primitive:t=>M(w.primitive(t),"primitive",t),integer:t=>M(w.integer(t),"integer",t),safeInteger:t=>M(w.safeInteger(t),"integer",t),plainObject:t=>M(w.plainObject(t),"plain object",t),typedArray:t=>M(w.typedArray(t),"TypedArray",t),arrayLike:t=>M(w.arrayLike(t),"array-like",t),domElement:t=>M(w.domElement(t),"HTMLElement",t),observable:t=>M(w.observable(t),"Observable",t),nodeStream:t=>M(w.nodeStream(t),"Node.js Stream",t),infinite:t=>M(w.infinite(t),"infinite number",t),emptyArray:t=>M(w.emptyArray(t),"empty array",t),nonEmptyArray:t=>M(w.nonEmptyArray(t),"non-empty array",t),emptyString:t=>M(w.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>M(w.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>M(w.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>M(w.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>M(w.emptyObject(t),"empty object",t),nonEmptyObject:t=>M(w.nonEmptyObject(t),"non-empty object",t),emptySet:t=>M(w.emptySet(t),"empty set",t),nonEmptySet:t=>M(w.nonEmptySet(t),"non-empty set",t),emptyMap:t=>M(w.emptyMap(t),"empty map",t),nonEmptyMap:t=>M(w.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>M(w.propertyKey(t),"PropertyKey",t),formData:t=>M(w.formData(t),"FormData",t),urlSearchParams:t=>M(w.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>M(w.evenInteger(t),"even integer",t),oddInteger:t=>M(w.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>M(w.directInstanceOf(t,e),"T",t),inRange:(t,e)=>M(w.inRange(t,e),"in range",t),any:(t,...e)=>M(w.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>M(w.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(w,{class:{value:w.class_},function:{value:w.function_},null:{value:w.null_}});Object.defineProperties(sn.assert,{class:{value:sn.assert.class_},function:{value:sn.assert.function_},null:{value:sn.assert.null_}});sn.default=w;Cl.exports=w;Cl.exports.default=w;Cl.exports.assert=sn.assert});var WT=y((HJ,$g)=>{"use strict";l();var Ol=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Vs=class{static fn(e){return(...r)=>new Vs((n,i,s)=>{r.push(s),e(...r).then(n,i)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,n(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),e(i,s,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new Ol(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Vs.prototype,Promise.prototype);$g.exports=Vs;$g.exports.CancelError=Ol});var zT=y((Gg,Vg)=>{"use strict";l();Object.defineProperty(Gg,"__esModule",{value:!0});function m8(t){return t.encrypted}var Ug=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),m8(t)&&i&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),s&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&s&&r.close(t._hadError)};Gg.default=Ug;Vg.exports=Ug;Vg.exports.default=Ug});var YT=y((zg,Yg)=>{"use strict";l();Object.defineProperty(zg,"__esModule",{value:!0});var g8=zT(),y8=require("util"),_8=Number(process.versions.node.split(".")[0]),Wg=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=a=>{let c=a.emit.bind(a);a.emit=(u,...f)=>(u==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,a.emit=c),c(u,...f))};r(t);let n=()=>{e.abort=Date.now(),(!e.response||_8>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",n);let i=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,y8.types.isProxy(a))return;let c=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",c),g8.default(a,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(a.removeListener("lookup",c),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?i(t.socket):t.prependOnceListener("socket",i);let s=()=>{var a;e.upload=Date.now(),e.phases.request=e.upload-((a=e.secureConnect)!==null&&a!==void 0?a:e.connect)};return(()=>typeof t.writableFinished=="boolean"?t.writableFinished:t.finished&&t.outputSize===0&&(!t.socket||t.socket.writableLength===0))()?s():t.prependOnceListener("finish",s),t.prependOnceListener("response",a=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,a.timings=e,r(a),a.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start}),a.prependOnceListener("aborted",n)}),e};zg.default=Wg;Yg.exports=Wg;Yg.exports.default=Wg});var tk=y(($J,Jg)=>{"use strict";l();var{V4MAPPED:v8,ADDRCONFIG:b8,ALL:ek,promises:{Resolver:KT},lookup:E8}=require("dns"),{promisify:Kg}=require("util"),w8=require("os"),Ws=Symbol("cacheableLookupCreateConnection"),Zg=Symbol("cacheableLookupInstance"),ZT=Symbol("expires"),x8=typeof ek=="number",JT=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},S8=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},XT=()=>{let t=!1,e=!1;for(let r of Object.values(w8.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},A8=t=>Symbol.iterator in t,QT={ttl:!0},R8={all:!0},Tl=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new KT,lookup:o=E8}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=e,this._resolver=s,this._dnsLookup=Kg(o),this._resolver instanceof KT?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=Kg(this._resolver.resolve4.bind(this._resolver)),this._resolve6=Kg(this._resolver.resolve6.bind(this._resolver))),this._iface=XT(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);a.unref&&a.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&v8&&(x8&&r.hints&ek||i.length===0)?S8(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&b8){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${e}`);throw i.code="ENOTFOUND",i.hostname=e,i}return r.all?n:n[0]}async query(e){let r=await this._cache.get(e);if(!r){let n=this._pending[e];if(n)r=await n;else{let i=this.queryAndCache(e);this._pending[e]=i;try{r=await i}finally{delete this._pending[e]}}}return r=r.map(n=>({...n})),r}async _resolve(e){let r=async u=>{try{return await u}catch(f){if(f.code==="ENODATA"||f.code==="ENOTFOUND")return[];throw f}},[n,i]=await Promise.all([this._resolve4(e,QT),this._resolve6(e,QT)].map(u=>r(u))),s=0,o=0,a=0,c=Date.now();for(let u of n)u.family=4,u.expires=c+u.ttl*1e3,s=Math.max(s,u.ttl);for(let u of i)u.family=6,u.expires=c+u.ttl*1e3,o=Math.max(o,u.ttl);return n.length>0?i.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...n,...i],cacheTtl:a}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[ZT]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}A8(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,R8);let r=await this._resolve(e);r.entries.length===0&&this._fallback&&(r=await this._lookup(e),r.entries.length!==0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[ZT];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(JT(e),Ws in e)throw new Error("CacheableLookup has been already installed");e[Ws]=e.createConnection,e[Zg]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[Ws](r,n))}uninstall(e){if(JT(e),e[Ws]){if(e[Zg]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Ws],delete e[Ws],delete e[Zg]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=XT(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};Jg.exports=Tl;Jg.exports.default=Tl});var ik=y((UJ,nk)=>{"use strict";l();var C8="text/plain",O8="us-ascii",rk=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),T8=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let c=(o.shift()||"").toLowerCase(),f=[...o.map(h=>{let[d,g=""]=h.split("=").map(m=>m.trim());return d==="charset"&&(g=g.toLowerCase(),g===O8)?"":`${d}${g?`=${g}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length!==0||c&&c!==C8)&&f.unshift(c),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},k8=(t,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},t=t.trim(),/^data:/i.test(t))return T8(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];rk(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])rk(o,e.removeQueryParameters)&&i.searchParams.delete(o);e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters&&i.searchParams.sort(),e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};nk.exports=k8});var ak=y((GJ,ok)=>{l();ok.exports=sk;function sk(t,e){if(t&&e)return sk(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var Qg=y((VJ,Xg)=>{l();var ck=ak();Xg.exports=ck(kl);Xg.exports.strict=ck(uk);kl.proto=kl(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return kl(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return uk(this)},configurable:!0})});function kl(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function uk(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var hk=y((WJ,fk)=>{l();var P8=Qg(),I8=function(){},L8=function(t){return t.setHeader&&typeof t.abort=="function"},N8=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},lk=function(t,e,r){if(typeof e=="function")return lk(t,null,e);e||(e={}),r=P8(r||I8);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,c=function(){t.writable||u()},u=function(){o=!1,s||r.call(t)},f=function(){s=!1,o||r.call(t)},h=function(v){r.call(t,v?new Error("exited with error code: "+v):null)},d=function(v){r.call(t,v)},g=function(){process.nextTick(m)},m=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},E=function(){t.req.on("finish",u)};return L8(t)?(t.on("complete",u),t.on("abort",g),t.req?E():t.on("request",E)):o&&!n&&(t.on("end",c),t.on("close",c)),N8(t)&&t.on("exit",h),t.on("end",f),t.on("finish",u),e.error!==!1&&t.on("error",d),t.on("close",g),function(){a=!0,t.removeListener("complete",u),t.removeListener("abort",g),t.removeListener("request",E),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("exit",h),t.removeListener("end",f),t.removeListener("error",d),t.removeListener("close",g)}};fk.exports=lk});var mk=y((zJ,pk)=>{l();var D8=Qg(),M8=hk(),ey=require("fs"),wa=function(){},F8=/^v?\.0/.test(process.version),Pl=function(t){return typeof t=="function"},q8=function(t){return!F8||!ey?!1:(t instanceof(ey.ReadStream||wa)||t instanceof(ey.WriteStream||wa))&&Pl(t.close)},B8=function(t){return t.setHeader&&Pl(t.abort)},j8=function(t,e,r,n){n=D8(n);var i=!1;t.on("close",function(){i=!0}),M8(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,q8(t))return t.close(wa);if(B8(t))return t.abort();if(Pl(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},dk=function(t){t()},H8=function(t,e){return t.pipe(e)},$8=function(){var t=Array.prototype.slice.call(arguments),e=Pl(t[t.length-1]||wa)&&t.pop()||wa;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return j8(i,o,a,function(c){r||(r=c),c&&n.forEach(dk),!o&&(n.forEach(dk),e(r))})});return t.reduce(H8)};pk.exports=$8});var yk=y((YJ,gk)=>{"use strict";l();var{PassThrough:U8}=require("stream");gk.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new U8({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",c=>{a.push(c),i?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var _k=y((KJ,zs)=>{"use strict";l();var{constants:G8}=require("buffer"),V8=mk(),W8=yk(),Il=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Ll(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=G8.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=V8(t,W8(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new Il)})}),n.getBufferedValue()}zs.exports=Ll;zs.exports.default=Ll;zs.exports.buffer=(t,e)=>Ll(t,{...e,encoding:"buffer"});zs.exports.array=(t,e)=>Ll(t,{...e,array:!0});zs.exports.MaxBufferError=Il});var bk=y((JJ,vk)=>{"use strict";l();var z8=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),Y8=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),K8=new Set([500,502,503,504]),Z8={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},J8={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function bi(t){let e=parseInt(t,10);return isFinite(e)?e:0}function X8(t){return t?K8.has(t.status):!0}function ty(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);e[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function Q8(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(!!e.length)return e.join(", ")}vk.exports=class{constructor(e,r,{shared:n,cacheHeuristic:i,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=ty(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=ty(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Q8(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&Y8.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||z8.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=ty(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)Z8[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return bi(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return bi(this._rescc["s-maxage"])}if(this._rescc["max-age"])return bi(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+bi(this._rescc["stale-if-error"]),n=e+bi(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+bi(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+bi(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&X8(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!J8[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Nl=y((XJ,Ek)=>{"use strict";l();Ek.exports=t=>{let e={};for(let[r,n]of Object.entries(t))e[r.toLowerCase()]=n;return e}});var xk=y((QJ,wk)=>{"use strict";l();var e9=require("stream").Readable,t9=Nl(),ry=class extends e9{constructor(e,r,n,i){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=t9(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};wk.exports=ry});var Ak=y((eX,Sk)=>{"use strict";l();var r9=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];Sk.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(r9));for(let n of r)n in e||(e[n]=typeof t[n]=="function"?t[n].bind(t):t[n])}});var Ck=y((tX,Rk)=>{"use strict";l();var n9=require("stream").PassThrough,i9=Ak(),s9=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new n9;return i9(t,e),t.pipe(e)};Rk.exports=s9});var Ok=y(ny=>{l();ny.stringify=function t(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var i=!0;for(var s in e){var o=typeof e[s]=="function"||!n&&typeof e[s]>"u";Object.hasOwnProperty.call(e,s)&&!o&&(i||(r+=","),i=!1,n?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};ny.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var Ik=y((nX,Pk)=>{"use strict";l();var o9=require("events"),Tk=Ok(),a9=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},kk=["sqlite","postgres","mysql","mongo","redis","tiered"],iy=class extends o9{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:Tk.stringify,deserialize:Tk.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let s={...this.opts};this.opts.store=a9(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let i=s=>async function*(){for await(let[o,a]of typeof s=="function"?s(this.opts.store.namespace):s){let c=this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof c.expires=="number"&&Date.now()>c.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),c.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return kk.includes(this.opts.store.opts.dialect)||kk.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,i=Array.isArray(e),s=i?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(i&&n.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>n.get(a)).then(c=>typeof c=="string"?this.opts.deserialize(c):this.opts.compression?this.opts.deserialize(c):c).then(c=>{if(c!=null)return typeof c.expires=="number"&&Date.now()>c.expires?this.delete(a).then(()=>{}):r&&r.raw?c:c.value}));return Promise.allSettled(o).then(a=>{let c=[];for(let u of a)c.push(u.value);return c})}return Promise.resolve().then(()=>i?n.getMany(s):n.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(i){let a=[];for(let c of o){if(typeof c=="string"&&(c=this.opts.deserialize(c)),c==null){a.push(void 0);continue}typeof c.expires=="number"&&Date.now()>c.expires?(this.delete(e).then(()=>{}),a.push(void 0)):a.push(r&&r.raw?c:c.value)}return a}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value}})}set(e,r,n){let i=this._getKeyPrefix(e);typeof n>"u"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(i,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let i=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};Pk.exports=iy});var Dk=y((iX,Nk)=>{"use strict";l();var c9=require("events"),Dl=require("url"),u9=ik(),l9=_k(),sy=bk(),Lk=xk(),f9=Nl(),h9=Ck(),d9=Ik(),hr=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new d9({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,n)=>{let i;if(typeof r=="string")i=oy(Dl.parse(r)),r={};else if(r instanceof Dl.URL)i=oy(Dl.parse(r.toString())),r={};else{let[h,...d]=(r.path||"").split("?"),g=d.length>0?`?${d.join("?")}`:"";i=oy({...r,pathname:h,search:g})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...p9(i)},r.headers=f9(r.headers);let s=new c9,o=u9(Dl.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,c=!1,u=!1,f=h=>{u=!0;let d=!1,g,m=new Promise(v=>{g=()=>{d||(d=!0,v())}}),E=v=>{if(c&&!h.forceRefresh){v.status=v.statusCode;let P=sy.fromObject(c.cachePolicy).revalidatedPolicy(h,v);if(!P.modified){let D=P.policy.responseHeaders();v=new Lk(c.statusCode,D,c.body,c.url),v.cachePolicy=P.policy,v.fromCache=!0}}v.fromCache||(v.cachePolicy=new sy(h,v,h),v.fromCache=!1);let A;h.cache&&v.cachePolicy.storable()?(A=h9(v),(async()=>{try{let P=l9.buffer(v);if(await Promise.race([m,new Promise(ue=>v.once("end",ue))]),d)return;let D=await P,ie={cachePolicy:v.cachePolicy.toObject(),url:v.url,statusCode:v.fromCache?c.statusCode:v.statusCode,body:D},z=h.strictTtl?v.cachePolicy.timeToLive():void 0;h.maxTtl&&(z=z?Math.min(z,h.maxTtl):h.maxTtl),await this.cache.set(a,ie,z)}catch(P){s.emit("error",new hr.CacheError(P))}})()):h.cache&&c&&(async()=>{try{await this.cache.delete(a)}catch(P){s.emit("error",new hr.CacheError(P))}})(),s.emit("response",A||v),typeof n=="function"&&n(A||v)};try{let v=e(h,E);v.once("error",g),v.once("abort",g),s.emit("request",v)}catch(v){s.emit("error",new hr.RequestError(v))}};return(async()=>{let h=async g=>{await Promise.resolve();let m=g.cache?await this.cache.get(a):void 0;if(typeof m>"u")return f(g);let E=sy.fromObject(m.cachePolicy);if(E.satisfiesWithoutRevalidation(g)&&!g.forceRefresh){let v=E.responseHeaders(),A=new Lk(m.statusCode,v,m.body,m.url);A.cachePolicy=E,A.fromCache=!0,s.emit("response",A),typeof n=="function"&&n(A)}else c=m,g.headers=E.revalidationHeaders(g),f(g)},d=g=>s.emit("error",new hr.CacheError(g));this.cache.once("error",d),s.on("response",()=>this.cache.removeListener("error",d));try{await h(r)}catch(g){r.automaticFailover&&!u&&f(r),s.emit("error",new hr.CacheError(g))}})(),s}}};function p9(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function oy(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}hr.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};hr.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};Nk.exports=hr});var Fk=y((aX,Mk)=>{"use strict";l();var m9=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];Mk.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(m9)),n={};for(let i of r)i in e||(n[i]={get(){let s=t[i];return typeof s=="function"?s.bind(t):s},set(s){t[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var Bk=y((cX,qk)=>{"use strict";l();var{Transform:g9,PassThrough:y9}=require("stream"),ay=require("zlib"),_9=Fk();qk.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof ay.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,i=new g9({transform(a,c,u){n=!1,u(null,a)},flush(a){a()}}),s=new y9({autoDestroy:!1,destroy(a,c){t.destroy(),c(a)}}),o=r?ay.createBrotliDecompress():ay.createUnzip();return o.once("error",a=>{if(n&&!t.readable){s.end();return}s.destroy(a)}),_9(t,s),t.pipe(i).pipe(o).pipe(s),s}});var uy=y((uX,jk)=>{"use strict";l();var cy=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,i]of this.oldCache.entries())this.onEviction(n,i);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};jk.exports=cy});var fy=y((lX,Gk)=>{"use strict";l();var v9=require("events"),b9=require("tls"),E9=require("http2"),w9=uy(),yt=Symbol("currentStreamsCount"),Hk=Symbol("request"),er=Symbol("cachedOriginSet"),Ys=Symbol("gracefullyClosing"),x9=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],S9=(t,e,r)=>{let n=0,i=t.length;for(;n<i;){let s=n+i>>>1;r(t[s],e)?n=s+1:i=s}return n},A9=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,ly=(t,e)=>{for(let r of t)r[er].length<e[er].length&&r[er].every(n=>e[er].includes(n))&&r[yt]+e[yt]<=e.remoteSettings.maxConcurrentStreams&&Uk(r)},R9=(t,e)=>{for(let r of t)e[er].length<r[er].length&&e[er].every(n=>r[er].includes(n))&&e[yt]+r[yt]<=r.remoteSettings.maxConcurrentStreams&&Uk(e)},$k=({agent:t,isFree:e})=>{let r={};for(let n in t.sessions){let s=t.sessions[n].filter(o=>{let a=o[Pr.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[n]=s)}return r},Uk=t=>{t[Ys]=!0,t[yt]===0&&t.close()},Pr=class extends v9{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new w9({maxSize:i})}static normalizeOrigin(e,r){return typeof e=="string"&&(e=new URL(e)),r&&e.hostname!==r&&(e.hostname=r),e.origin}normalizeOptions(e){let r="";if(e)for(let n of x9)e[n]&&(r+=`:${e[n]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let n=this.queue[e][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(e,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=Pr.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:f}of n)f(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let f=this.sessions[o],h=-1,d=-1,g;for(let m of f){let E=m.remoteSettings.maxConcurrentStreams;if(E<h)break;if(m[er].includes(a)){let v=m[yt];if(v>=E||m[Ys]||m.destroyed)continue;g||(h=E),v>d&&(g=m,d=v)}}if(g){if(n.length!==1){for(let{reject:m}of n){let E=new Error(`Expected the length of listeners to be 1, got ${n.length}.
|
|
52
|
+
Please report this to https://github.com/szmarczak/http2-wrapper/`);m(E)}return}n[0].resolve(g);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let c=()=>{o in this.queue&&this.queue[o][a]===u&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},u=()=>{let f=`${a}:${o}`,h=!1;try{let d=E9.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(f),...r});d[yt]=0,d[Ys]=!1;let g=()=>d[yt]<d.remoteSettings.maxConcurrentStreams,m=!0;d.socket.once("session",v=>{this.tlsSessionCache.set(f,v)}),d.once("error",v=>{for(let{reject:A}of n)A(v);this.tlsSessionCache.delete(f)}),d.setTimeout(this.timeout,()=>{d.destroy()}),d.once("close",()=>{if(h){m&&this._freeSessionsCount--,this._sessionsCount--;let v=this.sessions[o];v.splice(v.indexOf(d),1),v.length===0&&delete this.sessions[o]}else{let v=new Error("Session closed without receiving a SETTINGS frame");v.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:A}of n)A(v);c()}this._tryToCreateNewSession(o,a)});let E=()=>{if(!(!(o in this.queue)||!g())){for(let v of d[er])if(v in this.queue[o]){let{listeners:A}=this.queue[o][v];for(;A.length!==0&&g();)A.shift().resolve(d);let P=this.queue[o];if(P[v].listeners.length===0&&(delete P[v],Object.keys(P).length===0)){delete this.queue[o];break}if(!g())break}}};d.on("origin",()=>{d[er]=d.originSet,g()&&(E(),ly(this.sessions[o],d))}),d.once("remoteSettings",()=>{if(d.ref(),d.unref(),this._sessionsCount++,u.destroyed){let v=new Error("Agent has been destroyed");for(let A of n)A.reject(v);d.destroy();return}d[er]=d.originSet;{let v=this.sessions;if(o in v){let A=v[o];A.splice(S9(A,d,A9),0,d)}else v[o]=[d]}this._freeSessionsCount+=1,h=!0,this.emit("session",d),E(),c(),d[yt]===0&&this._freeSessionsCount>this.maxFreeSessions&&d.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),d.on("remoteSettings",()=>{E(),ly(this.sessions[o],d)})}),d[Hk]=d.request,d.request=(v,A)=>{if(d[Ys])throw new Error("The session is gracefully closing. No new streams are allowed.");let P=d[Hk](v,A);return d.ref(),++d[yt],d[yt]===d.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,P.once("close",()=>{if(m=g(),--d[yt],!d.destroyed&&!d.closed&&(R9(this.sessions[o],d),g()&&!d.closed)){m||(this._freeSessionsCount++,m=!0);let D=d[yt]===0;D&&d.unref(),D&&(this._freeSessionsCount>this.maxFreeSessions||d[Ys])?d.close():(ly(this.sessions[o],d),E())}}),P}}catch(d){for(let g of n)g.reject(d);c()}};u.listeners=n,u.completed=!1,u.destroyed=!1,this.queue[o][a]=u,this._tryToCreateNewSession(o,a)})}request(e,r,n,i){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(c){o(c)}}}])})}createConnection(e,r){return Pr.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,i=e.hostname||e.host;return typeof r.servername>"u"&&(r.servername=i),b9.connect(n,i,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[yt]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(e);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return $k({agent:this,isFree:!0})}get busySessions(){return $k({agent:this,isFree:!1})}};Pr.kCurrentStreamsCount=yt;Pr.kGracefullyClosing=Ys;Gk.exports={Agent:Pr,globalAgent:new Pr}});var dy=y((fX,Vk)=>{"use strict";l();var{Readable:C9}=require("stream"),hy=class extends C9{constructor(e,r){super({highWaterMark:r,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};Vk.exports=hy});var py=y((hX,Wk)=>{"use strict";l();Wk.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var Yk=y((dX,zk)=>{"use strict";l();zk.exports=(t,e,r)=>{for(let n of r)t.on(n,(...i)=>e.emit(n,...i))}});var Zk=y((pX,Kk)=>{"use strict";l();Kk.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var Xk=y((gX,Jk)=>{"use strict";l();var Ks=(t,e,r)=>{Jk.exports[e]=class extends t{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${e}]`,this.code=e}}};Ks(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Ks(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Ks(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Ks(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Ks(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Ks(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var vy=y((yX,s2)=>{"use strict";l();var O9=require("http2"),{Writable:T9}=require("stream"),{Agent:Qk,globalAgent:k9}=fy(),P9=dy(),I9=py(),L9=Yk(),N9=Zk(),{ERR_INVALID_ARG_TYPE:my,ERR_INVALID_PROTOCOL:D9,ERR_HTTP_HEADERS_SENT:e2,ERR_INVALID_HTTP_TOKEN:M9,ERR_HTTP_INVALID_HEADER_VALUE:F9,ERR_INVALID_CHAR:q9}=Xk(),{HTTP2_HEADER_STATUS:t2,HTTP2_HEADER_METHOD:r2,HTTP2_HEADER_PATH:n2,HTTP2_METHOD_CONNECT:B9}=O9.constants,dt=Symbol("headers"),gy=Symbol("origin"),yy=Symbol("session"),i2=Symbol("options"),Ml=Symbol("flushedHeaders"),xa=Symbol("jobs"),j9=/^[\^`\-\w!#$%&*+.|~]+$/,H9=/[^\t\u0020-\u007E\u0080-\u00FF]/,_y=class extends T9{constructor(e,r,n){super({autoDestroy:!1});let i=typeof e=="string"||e instanceof URL;if(i&&(e=I9(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(n=r,r=i?e:{...e}):r={...e,...r},r.h2session)this[yy]=r.h2session;else if(r.agent===!1)this.agent=new Qk({maxFreeSessions:0});else if(typeof r.agent>"u"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new Qk({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=k9;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new my("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new D9(r.protocol,"https:");let s=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,o=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:a}=r;if(r.timeout=void 0,this[dt]=Object.create(null),this[xa]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[c,u]of Object.entries(r.headers))this.setHeader(c,u);r.auth&&!("authorization"in this[dt])&&(this[dt].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[i2]=r,s===443?(this[gy]=`https://${o}`,":authority"in this[dt]||(this[dt][":authority"]=o)):(this[gy]=`https://${o}:${s}`,":authority"in this[dt]||(this[dt][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[Ml]=!1}get method(){return this[dt][r2]}set method(e){e&&(this[dt][r2]=e.toUpperCase())}get path(){return this[dt][n2]}set path(e){e&&(this[dt][n2]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let i=()=>this._request.write(e,r,n);this._request?i():this[xa].push(i)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[xa].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(e,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(e)}async flushHeaders(){if(this[Ml]||this.destroyed)return;this[Ml]=!0;let e=this.method===B9,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||L9(n,this,["timeout","continue","close","error"]);let i=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};n.once("response",i((o,a,c)=>{let u=new P9(this.socket,n.readableHighWaterMark);this.res=u,u.req=this,u.statusCode=o[t2],u.headers=o,u.rawHeaders=c,u.once("end",()=>{this.aborted?(u.aborted=!0,u.emit("aborted")):(u.complete=!0,u.socket=null,u.connection=null)}),e?(u.upgrade=!0,this.emit("connect",u,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",f=>{!u._dumped&&!u.push(f)&&n.pause()}),n.once("end",()=>{u.push(null)}),this.emit("response",u)||u._dump())})),n.once("headers",i(o=>this.emit("information",{statusCode:o[t2]}))),n.once("trailers",i((o,a,c)=>{let{res:u}=this;u.trailers=o,u.rawTrailers=c}));let{socket:s}=n.session;this.socket=s,this.connection=s;for(let o of this[xa])o();this.emit("socket",this.socket)};if(this[yy])try{r(this[yy].request(this[dt]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[gy],this[i2],this[dt]))}catch(n){this.emit("error",n)}}}getHeader(e){if(typeof e!="string")throw new my("name","string",e);return this[dt][e.toLowerCase()]}get headersSent(){return this[Ml]}removeHeader(e){if(typeof e!="string")throw new my("name","string",e);if(this.headersSent)throw new e2("remove");delete this[dt][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new e2("set");if(typeof e!="string"||!j9.test(e)&&!N9(e))throw new M9("Header name",e);if(typeof r>"u")throw new F9(r,e);if(H9.test(r))throw new q9("header content",e);this[dt][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[xa].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};s2.exports=_y});var a2=y((_X,o2)=>{"use strict";l();var $9=require("tls");o2.exports=(t={},e=$9.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await c,s.off("timeout",a),s.off("error",n),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:i}),i&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:i}))},a=async()=>{i=!0,o()},c=(async()=>{try{s=await e(t,o),s.on("error",n),s.once("timeout",a)}catch(u){n(u)}})()})});var u2=y((vX,c2)=>{"use strict";l();var U9=require("net");c2.exports=t=>{let e=t.host,r=t.headers&&t.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?e=r:e=r.slice(1,-1):e=r.split(":",1)[0]),U9.isIP(e)?"":e}});var h2=y((bX,Ey)=>{"use strict";l();var l2=require("http"),by=require("https"),G9=a2(),V9=uy(),W9=vy(),z9=u2(),Y9=py(),Fl=new V9({maxSize:100}),Sa=new Map,f2=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let i=()=>{t.removeSocket(e,r)};e.on("close",i);let s=()=>{t.removeSocket(e,r),e.off("close",i),e.off("free",n),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},K9=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!Fl.has(e)){if(Sa.has(e))return(await Sa.get(e)).alpnProtocol;let{path:r,agent:n}=t;t.path=t.socketPath;let i=G9(t);Sa.set(e,i);try{let{socket:s,alpnProtocol:o}=await i;if(Fl.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=by,c=by.Agent.prototype.createConnection;n?n.createConnection===c?f2(n,s,t):s.destroy():a.createConnection===c?f2(a,s,t):s.destroy()}return Sa.delete(e),o}catch(s){throw Sa.delete(e),s}}return Fl.get(e)};Ey.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=Y9(new URL(t))),typeof e=="function"&&(r=e,e=void 0),e={ALPNProtocols:["h2","http/1.1"],...t,...e,resolveSocket:!0},!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||z9(e),e.port=e.port||(n?443:80),e._defaultAgent=n?by.globalAgent:l2.globalAgent;let i=e.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=i[n?"https":"http"]}return n&&await K9(e)==="h2"?(i&&(e.agent=i.http2),new W9(e,r)):l2.request(e,r)};Ey.exports.protocolCache=Fl});var p2=y((EX,d2)=>{"use strict";l();var Z9=require("http2"),J9=fy(),wy=vy(),X9=dy(),Q9=h2(),eG=(t,e,r)=>new wy(t,e,r),tG=(t,e,r)=>{let n=new wy(t,e,r);return n.end(),n};d2.exports={...Z9,ClientRequest:wy,IncomingMessage:X9,...J9,request:eG,get:tG,auto:Q9}});var Sy=y(xy=>{"use strict";l();Object.defineProperty(xy,"__esModule",{value:!0});var m2=on();xy.default=t=>m2.default.nodeStream(t)&&m2.default.function_(t.getBoundary)});var v2=y(Ay=>{"use strict";l();Object.defineProperty(Ay,"__esModule",{value:!0});var y2=require("fs"),_2=require("util"),g2=on(),rG=Sy(),nG=_2.promisify(y2.stat);Ay.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(g2.default.string(t))return Buffer.byteLength(t);if(g2.default.buffer(t))return t.length;if(rG.default(t))return _2.promisify(t.getLength.bind(t))();if(t instanceof y2.ReadStream){let{size:r}=await nG(t.path);return r===0?void 0:r}}});var Cy=y(Ry=>{"use strict";l();Object.defineProperty(Ry,"__esModule",{value:!0});function iG(t,e,r){let n={};for(let i of r)n[i]=(...s)=>{e.emit(i,...s)},t.on(i,n[i]);return()=>{for(let i of r)t.off(i,n[i])}}Ry.default=iG});var b2=y(Oy=>{"use strict";l();Object.defineProperty(Oy,"__esModule",{value:!0});Oy.default=()=>{let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:i}=e;r.removeListener(n,i)}t.length=0}}}});var w2=y(Aa=>{"use strict";l();Object.defineProperty(Aa,"__esModule",{value:!0});Aa.TimeoutError=void 0;var sG=require("net"),oG=b2(),E2=Symbol("reentry"),aG=()=>{},ql=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Aa.TimeoutError=ql;Aa.default=(t,e,r)=>{if(E2 in t)return aG;t[E2]=!0;let n=[],{once:i,unhandleAll:s}=oG.default(),o=(h,d,g)=>{var m;let E=setTimeout(d,h,h,g);(m=E.unref)===null||m===void 0||m.call(E);let v=()=>{clearTimeout(E)};return n.push(v),v},{host:a,hostname:c}=r,u=(h,d)=>{t.destroy(new ql(h,d))},f=()=>{for(let h of n)h();s()};if(t.once("error",h=>{if(f(),t.listenerCount("error")===0)throw h}),t.once("close",f),i(t,"response",h=>{i(h,"end",f)}),typeof e.request<"u"&&o(e.request,u,"request"),typeof e.socket<"u"){let h=()=>{u(e.socket,"socket")};t.setTimeout(e.socket,h),n.push(()=>{t.removeListener("timeout",h)})}return i(t,"socket",h=>{var d;let{socketPath:g}=t;if(h.connecting){let m=Boolean(g!=null?g:sG.isIP((d=c!=null?c:a)!==null&&d!==void 0?d:"")!==0);if(typeof e.lookup<"u"&&!m&&typeof h.address().address>"u"){let E=o(e.lookup,u,"lookup");i(h,"lookup",E)}if(typeof e.connect<"u"){let E=()=>o(e.connect,u,"connect");m?i(h,"connect",E()):i(h,"lookup",v=>{v===null&&i(h,"connect",E())})}typeof e.secureConnect<"u"&&r.protocol==="https:"&&i(h,"connect",()=>{let E=o(e.secureConnect,u,"secureConnect");i(h,"secureConnect",E)})}if(typeof e.send<"u"){let m=()=>o(e.send,u,"send");h.connecting?i(h,"connect",()=>{i(t,"upload-complete",m())}):i(t,"upload-complete",m())}}),typeof e.response<"u"&&i(t,"upload-complete",()=>{let h=o(e.response,u,"response");i(t,"response",h)}),f}});var S2=y(Ty=>{"use strict";l();Object.defineProperty(Ty,"__esModule",{value:!0});var x2=on();Ty.default=t=>{t=t;let e={protocol:t.protocol,hostname:x2.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return x2.default.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var A2=y(ky=>{"use strict";l();Object.defineProperty(ky,"__esModule",{value:!0});var cG=require("url"),uG=["protocol","host","hostname","port","pathname","search"];ky.default=(t,e)=>{var r,n;if(e.path){if(e.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(e.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(e.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(e.search&&e.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!t){if(!e.protocol)throw new TypeError("No URL protocol specified");t=`${e.protocol}//${(n=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&n!==void 0?n:""}`}let i=new cG.URL(t);if(e.path){let s=e.path.indexOf("?");s===-1?e.pathname=e.path:(e.pathname=e.path.slice(0,s),e.search=e.path.slice(s+1)),delete e.path}for(let s of uG)e[s]&&(i[s]=e[s].toString());return i}});var R2=y(Iy=>{"use strict";l();Object.defineProperty(Iy,"__esModule",{value:!0});var Py=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};Iy.default=Py});var Ny=y(Ly=>{"use strict";l();Object.defineProperty(Ly,"__esModule",{value:!0});var lG=async t=>{let e=[],r=0;for await(let n of t)e.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};Ly.default=lG});var O2=y(Ei=>{"use strict";l();Object.defineProperty(Ei,"__esModule",{value:!0});Ei.dnsLookupIpVersionToFamily=Ei.isDnsLookupIpVersion=void 0;var C2={auto:0,ipv4:4,ipv6:6};Ei.isDnsLookupIpVersion=t=>t in C2;Ei.dnsLookupIpVersionToFamily=t=>{if(Ei.isDnsLookupIpVersion(t))return C2[t];throw new Error("Invalid DNS lookup IP version")}});var Dy=y(Bl=>{"use strict";l();Object.defineProperty(Bl,"__esModule",{value:!0});Bl.isResponseOk=void 0;Bl.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var k2=y(My=>{"use strict";l();Object.defineProperty(My,"__esModule",{value:!0});var T2=new Set;My.default=t=>{T2.has(t)||(T2.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var P2=y(Fy=>{"use strict";l();Object.defineProperty(Fy,"__esModule",{value:!0});var Ce=on(),fG=(t,e)=>{if(Ce.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");Ce.assert.any([Ce.default.string,Ce.default.undefined],t.encoding),Ce.assert.any([Ce.default.boolean,Ce.default.undefined],t.resolveBodyOnly),Ce.assert.any([Ce.default.boolean,Ce.default.undefined],t.methodRewriting),Ce.assert.any([Ce.default.boolean,Ce.default.undefined],t.isStream),Ce.assert.any([Ce.default.string,Ce.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},Ce.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(n=>n.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):Ce.default.number(r)&&(t.retry.limit=r),Ce.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(Ce.default.number))),Ce.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:n}=t;if(!Ce.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!Ce.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!Ce.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!Ce.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return t.responseType==="json"&&t.headers.accept===void 0&&(t.headers.accept="application/json"),t};Fy.default=fG});var I2=y(Ra=>{"use strict";l();Object.defineProperty(Ra,"__esModule",{value:!0});Ra.retryAfterStatusCodes=void 0;Ra.retryAfterStatusCodes=new Set([413,429,503]);var hG=({attemptCount:t,retryOptions:e,error:r,retryAfter:n})=>{if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return e.maxRetryAfter===void 0||n>e.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Ra.default=hG});var Ta=y(pe=>{"use strict";l();Object.defineProperty(pe,"__esModule",{value:!0});pe.UnsupportedProtocolError=pe.ReadError=pe.TimeoutError=pe.UploadError=pe.CacheError=pe.HTTPError=pe.MaxRedirectsError=pe.RequestError=pe.setNonEnumerableProperties=pe.knownHookEvents=pe.withoutBody=pe.kIsNormalizedAlready=void 0;var L2=require("util"),N2=require("stream"),dG=require("fs"),Bn=require("url"),D2=require("http"),qy=require("http"),pG=require("https"),mG=YT(),gG=tk(),M2=Dk(),yG=Bk(),_G=p2(),vG=Nl(),O=on(),bG=v2(),F2=Sy(),EG=Cy(),q2=w2(),wG=S2(),B2=A2(),xG=R2(),SG=Ny(),j2=O2(),AG=Dy(),jn=k2(),RG=P2(),CG=I2(),By,tt=Symbol("request"),$l=Symbol("response"),Zs=Symbol("responseSize"),Js=Symbol("downloadedSize"),Xs=Symbol("bodySize"),Qs=Symbol("uploadedSize"),jl=Symbol("serverResponsesPiped"),H2=Symbol("unproxyEvents"),$2=Symbol("isFromCache"),jy=Symbol("cancelTimeouts"),U2=Symbol("startedReading"),eo=Symbol("stopReading"),Hl=Symbol("triggerRead"),Hn=Symbol("body"),Ca=Symbol("jobs"),G2=Symbol("originalResponse"),V2=Symbol("retryTimeout");pe.kIsNormalizedAlready=Symbol("isNormalizedAlready");var OG=O.default.string(process.versions.brotli);pe.withoutBody=new Set(["GET","HEAD"]);pe.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function TG(t){for(let e in t){let r=t[e];if(!O.default.string(r)&&!O.default.number(r)&&!O.default.boolean(r)&&!O.default.null_(r)&&!O.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function kG(t){return O.default.object(t)&&!("statusCode"in t)}var Hy=new xG.default,PG=async t=>new Promise((e,r)=>{let n=i=>{r(i)};t.pending||e(),t.once("error",n),t.once("ready",()=>{t.off("error",n),e()})}),IG=new Set([300,301,302,303,304,307,308]),LG=["context","body","json","form"];pe.setNonEnumerableProperties=(t,e)=>{let r={};for(let n of t)if(!!n)for(let i of LG)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(e,r)};var Be=class extends Error{constructor(e,r,n){var i,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof Kl?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[$l]}),Object.defineProperty(this,"options",{enumerable:!1,value:n.options})):Object.defineProperty(this,"options",{enumerable:!1,value:n}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,O.default.string(r.stack)&&O.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
|
53
53
|
`).reverse(),c=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
|
|
54
54
|
`).reverse();for(;c.length!==0&&c[0]===a[0];)a.shift();this.stack=`${this.stack.slice(0,o)}${a.reverse().join(`
|
|
55
55
|
`)}${c.reverse().join(`
|
|
56
|
-
`)}`}}};pe.RequestError=Be;var Ul=class extends Be{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};pe.MaxRedirectsError=Ul;var Gl=class extends Be{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};pe.HTTPError=Gl;var Vl=class extends Be{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};pe.CacheError=Vl;var Wl=class extends Be{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};pe.UploadError=Wl;var zl=class extends Be{constructor(e,r,n){super(e.message,e,n),this.name="TimeoutError",this.event=e.event,this.timings=r}};pe.TimeoutError=zl;var Oa=class extends Be{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};pe.ReadError=Oa;var Yl=class extends Be{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};pe.UnsupportedProtocolError=Yl;var DG=["socket","connect","continue","information","upgrade","timeout"],Kl=class extends N2.Duplex{constructor(e,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[Js]=0,this[Qs]=0,this.requestInitialized=!1,this[jl]=new Set,this.redirects=[],this[eo]=!1,this[Hl]=!1,this[Ca]=[],this.retryCount=0,this._progressCallbacks=[];let i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",u=>{u.prependListener("data",i),u.on("data",s),u.prependListener("end",i),u.on("end",s)}),this.on("unpipe",u=>{u.off("data",i),u.off("data",s),u.off("end",i),u.off("end",s)}),this.on("pipe",u=>{u instanceof qy.IncomingMessage&&(this.options.headers={...u.headers,...this.options.headers})});let{json:o,body:a,form:c}=r;if((o||a||c)&&this._lockWrite(),pe.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,n)}catch(u){O.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(u);return}(async()=>{var u;try{this.options.body instanceof pG.ReadStream&&await IG(this.options.body);let{url:f}=this.options;if(!f)throw new TypeError("Missing `url` property");if(this.requestUrl=f.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(u=this[tt])===null||u===void 0||u.destroy();return}for(let h of this[Ca])h();this[Ca].length=0,this.requestInitialized=!0}catch(f){if(f instanceof Be){this._beforeError(f);return}this.destroyed||this.destroy(f)}})()}static normalizeArguments(e,r,n){var i,s,o,a,c;let u=r;if(O.default.object(e)&&!O.default.urlInstance(e))r={...n,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},e!==void 0&&(r.url=e),O.default.urlInstance(r.url)&&(r.url=new Bn.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),O.assert.any([O.default.string,O.default.undefined],r.method),O.assert.any([O.default.object,O.default.undefined],r.headers),O.assert.any([O.default.string,O.default.urlInstance,O.default.undefined],r.prefixUrl),O.assert.any([O.default.object,O.default.undefined],r.cookieJar),O.assert.any([O.default.object,O.default.string,O.default.undefined],r.searchParams),O.assert.any([O.default.object,O.default.string,O.default.undefined],r.cache),O.assert.any([O.default.object,O.default.number,O.default.undefined],r.timeout),O.assert.any([O.default.object,O.default.undefined],r.context),O.assert.any([O.default.object,O.default.undefined],r.hooks),O.assert.any([O.default.boolean,O.default.undefined],r.decompress),O.assert.any([O.default.boolean,O.default.undefined],r.ignoreInvalidCookies),O.assert.any([O.default.boolean,O.default.undefined],r.followRedirect),O.assert.any([O.default.number,O.default.undefined],r.maxRedirects),O.assert.any([O.default.boolean,O.default.undefined],r.throwHttpErrors),O.assert.any([O.default.boolean,O.default.undefined],r.http2),O.assert.any([O.default.boolean,O.default.undefined],r.allowGetBody),O.assert.any([O.default.string,O.default.undefined],r.localAddress),O.assert.any([j2.isDnsLookupIpVersion,O.default.undefined],r.dnsLookupIpVersion),O.assert.any([O.default.object,O.default.undefined],r.https),O.assert.any([O.default.boolean,O.default.undefined],r.rejectUnauthorized),r.https&&(O.assert.any([O.default.boolean,O.default.undefined],r.https.rejectUnauthorized),O.assert.any([O.default.function_,O.default.undefined],r.https.checkServerIdentity),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.certificateAuthority),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.key),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.certificate),O.assert.any([O.default.string,O.default.undefined],r.https.passphrase),O.assert.any([O.default.string,O.default.buffer,O.default.array,O.default.undefined],r.https.pfx)),O.assert.any([O.default.object,O.default.undefined],r.cacheOptions),O.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(n==null?void 0:n.headers)?r.headers={...r.headers}:r.headers=bG({...n==null?void 0:n.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(n==null?void 0:n.searchParams)){let g;if(O.default.string(r.searchParams)||r.searchParams instanceof Bn.URLSearchParams)g=new Bn.URLSearchParams(r.searchParams);else{kG(r.searchParams),g=new Bn.URLSearchParams;for(let m in r.searchParams){let E=r.searchParams[m];E===null?g.append(m,""):E!==void 0&&g.append(m,E)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((m,E)=>{g.has(E)||g.append(E,m)}),r.searchParams=g}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",O.default.undefined(r.prefixUrl)?r.prefixUrl=(a=n==null?void 0:n.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),O.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=B2.default(r.prefixUrl+r.url,r)}else(O.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=B2.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:g}=r;Object.defineProperty(r,"prefixUrl",{set:E=>{let v=r.url;if(!v.href.startsWith(E))throw new Error(`Cannot change \`prefixUrl\` from ${g} to ${E}: ${v.href}`);r.url=new Bn.URL(E+v.href.slice(g.length)),g=E},get:()=>g});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Bn.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new Yl(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:f}=r;if(f){let{setCookie:g,getCookieString:m}=f;O.assert.function_(g),O.assert.function_(m),g.length===4&&m.length===0&&(g=L2.promisify(g.bind(r.cookieJar)),m=L2.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:g,getCookieString:m})}let{cache:h}=r;if(h&&(Hy.has(h)||Hy.set(h,new M2((g,m)=>{let E=g[tt](g,m);return O.default.promise(E)&&(E.once=(v,A)=>{if(v==="error")E.catch(A);else if(v==="abort")(async()=>{try{(await E).once("abort",A)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${v}`);return E}),E},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)By||(By=new yG.default),r.dnsCache=By;else if(!O.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${O.default(r.dnsCache)}`);O.default.number(r.timeout)?r.timeout={request:r.timeout}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let d=r.hooks===(n==null?void 0:n.hooks);r.hooks={...r.hooks};for(let g of pe.knownHookEvents)if(g in r.hooks)if(O.default.array(r.hooks[g]))r.hooks[g]=[...r.hooks[g]];else throw new TypeError(`Parameter \`${g}\` must be an Array, got ${O.default(r.hooks[g])}`);else r.hooks[g]=[];if(n&&!d)for(let g of pe.knownHookEvents)n.hooks[g].length>0&&(r.hooks[g]=[...n.hooks[g],...r.hooks[g]]);if("family"in r&&jn.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&jn.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&jn.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&jn.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&jn.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&jn.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&jn.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&jn.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let g in r.agent)if(g!=="http"&&g!=="https"&&g!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${g}\``)}return r.maxRedirects=(c=r.maxRedirects)!==null&&c!==void 0?c:0,pe.setNonEnumerableProperties([n,u],r),CG.default(r,n)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!O.default.undefined(e.form),i=!O.default.undefined(e.json),s=!O.default.undefined(e.body),o=n||i||s,a=pe.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,n,i].filter(c=>c).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof N2.Readable)&&!O.default.string(e.body)&&!O.default.buffer(e.body)&&!F2.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!O.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let c=!O.default.string(r["content-type"]);s?(F2.default(e.body)&&c&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Hn]=e.body):n?(c&&(r["content-type"]="application/x-www-form-urlencoded"),this[Hn]=new Bn.URLSearchParams(e.form).toString()):(c&&(r["content-type"]="application/json"),this[Hn]=e.stringifyJson(e.json));let u=await EG.default(this[Hn],e.headers);O.default.undefined(r["content-length"])&&O.default.undefined(r["transfer-encoding"])&&!a&&!O.default.undefined(u)&&(r["content-length"]=String(u))}}else a?this._lockWrite():this._unlockWrite();this[Xs]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:n}=r;this[G2]=e,r.decompress&&(e=_G(e));let i=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:D2.STATUS_CODES[i],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[$2]=s.isFromCache,this[Zs]=Number(e.headers["content-length"])||void 0,this[$l]=e,e.once("end",()=>{this[Zs]=this[Js],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Oa(a,this))}),e.once("aborted",()=>{this._beforeError(new Oa({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(O.default.object(r.cookieJar)&&o){let a=o.map(async c=>r.cookieJar.setCookie(c,n.toString()));r.ignoreInvalidCookies&&(a=a.map(async c=>c.catch(()=>{})));try{await Promise.all(a)}catch(c){this._beforeError(c);return}}if(r.followRedirect&&e.headers.location&&LG.has(i)){if(e.resume(),this[tt]&&(this[jy](),delete this[tt],this[H2]()),(i===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[Hn]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Ul(this));return}try{let h=function(d){return d.protocol==="unix:"||d.hostname==="unix"},c=Buffer.from(e.headers.location,"binary").toString(),u=new Bn.URL(c,n),f=u.toString();if(decodeURI(f),!h(n)&&h(u)){this._beforeError(new Be("Cannot redirect to UNIX socket",{},this));return}u.hostname!==n.hostname||u.port!==n.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(u.username=r.username,u.password=r.password),this.redirects.push(f),r.url=u;for(let d of r.hooks.beforeRedirect)await d(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(c){this._beforeError(c);return}return}if(r.isStream&&r.throwHttpErrors&&!RG.isResponseOk(s)){this._beforeError(new Gl(s));return}e.on("readable",()=>{this[Hl]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[jl])if(!a.headersSent){for(let c in e.headers){let u=r.decompress?c!=="content-encoding":!0,f=e.headers[c];u&&a.setHeader(c,f)}a.statusCode=i}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:i}=r;gG.default(e),this[jy]=q2.default(e,n,i);let s=r.cache?"cacheableResponse":"response";e.once(s,c=>{this._onResponse(c)}),e.once("error",c=>{var u;e.destroy(),(u=e.res)===null||u===void 0||u.removeAllListeners("end"),c=c instanceof q2.TimeoutError?new zl(c,this.timings,this):new Be(c.message,c,this),this._beforeError(c)}),this[H2]=wG.default(e,this,DG),this[tt]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Hn],a=this.redirects.length===0?this:e;O.default.nodeStream(o)?(o.pipe(a),o.once("error",c=>{this._beforeError(new Wl(c,this))})):(this._unlockWrite(),O.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((n,i)=>{Object.assign(r,xG.default(e)),delete r.url;let s,o=Hy.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=e,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var e,r,n,i,s;let{options:o}=this,{headers:a}=o;for(let A in a)if(O.default.undefined(a[A]))delete a[A];else if(O.default.null_(a[A]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${A}\` header`);if(o.decompress&&O.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=TG?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let A=await o.cookieJar.getCookieString(o.url.toString());O.default.nonEmptyString(A)&&(o.headers.cookie=A)}for(let A of o.hooks.beforeRequest){let P=await A(o);if(!O.default.undefined(P)){o.request=()=>P;break}}o.body&&this[Hn]!==o.body&&(this[Hn]=o.body);let{agent:c,request:u,timeout:f,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let A=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(A!=null&&A.groups){let{socketPath:P,path:D}=A.groups;Object.assign(o,{socketPath:P,path:D,host:""})}}let d=h.protocol==="https:",g;o.http2?g=vG.auto:g=d?mG.request:D2.request;let m=(e=o.request)!==null&&e!==void 0?e:g,E=o.cache?this._createCacheableRequest:m;c&&!o.http2&&(o.agent=c[d?"https":"http"]),o[tt]=m,delete o.request,delete o.timeout;let v=o;if(v.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,v.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,v.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,v.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{v.family=j2.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(v.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(v.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(v.ca=o.https.certificateAuthority),o.https.certificate&&(v.cert=o.https.certificate),o.https.key&&(v.key=o.https.key),o.https.passphrase&&(v.passphrase=o.https.passphrase),o.https.pfx&&(v.pfx=o.https.pfx));try{let A=await E(h,v);O.default.undefined(A)&&(A=g(h,v)),o.request=u,o.timeout=f,o.agent=c,o.https&&("rejectUnauthorized"in o.https&&delete v.rejectUnauthorized,o.https.checkServerIdentity&&delete v.checkServerIdentity,o.https.certificateAuthority&&delete v.ca,o.https.certificate&&delete v.cert,o.https.key&&delete v.key,o.https.passphrase&&delete v.passphrase,o.https.pfx&&delete v.pfx),PG(A)?this._onRequest(A):this.writable?(this.once("finish",()=>{this._onResponse(A)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(A)}catch(A){throw A instanceof M2.CacheError?new Vl(A,this):new Be(A.message,A,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Be(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[eo])return;let{options:r}=this,n=this.retryCount+1;this[eo]=!0,e instanceof Be||(e=new Be(e.message,e,this));let i=e,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await AG.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:OG.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new Be(a.message,a,this));return}if(o){let a=async()=>{try{for(let c of this.options.hooks.beforeRetry)await c(this.options,i,n)}catch(c){this._error(new Be(c.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,e))};this[V2]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[Hl]=!0;let e=this[$l];if(e&&!this[eo]){e.readableLength&&(this[Hl]=!1);let r;for(;(r=e.read())!==null;){this[Js]+=r.length,this[U2]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let i=()=>{this._writeRequest(e,r,n)};this.requestInitialized?i():this[Ca].push(i)}_writeRequest(e,r,n){this[tt].destroyed||(this._progressCallbacks.push(()=>{this[Qs]+=Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[tt].write(e,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(tt in this)){e();return}if(this[tt].destroyed){e();return}this[tt].end(n=>{n||(this[Xs]=this[Qs],this.emit("uploadProgress",this.uploadProgress),this[tt].emit("upload-complete")),e(n)})};this.requestInitialized?r():this[Ca].push(r)}_destroy(e,r){var n;this[eo]=!0,clearTimeout(this[V2]),tt in this&&(this[jy](),!((n=this[$l])===null||n===void 0)&&n.complete||this[tt].destroy()),e!==null&&!O.default.undefined(e)&&!(e instanceof Be)&&(e=new Be(e.message,e,this)),r(e)}get _isAboutToError(){return this[eo]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,n;return((r=(e=this[tt])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[G2])===null||n===void 0)&&n.complete)}get socket(){var e,r;return(r=(e=this[tt])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Zs]?e=this[Js]/this[Zs]:this[Zs]===this[Js]?e=1:e=0,{percent:e,transferred:this[Js],total:this[Zs]}}get uploadProgress(){let e;return this[Xs]?e=this[Qs]/this[Xs]:this[Xs]===this[Qs]?e=1:e=0,{percent:e,transferred:this[Qs],total:this[Xs]}}get timings(){var e;return(e=this[tt])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[$2]}pipe(e,r){if(this[U2])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof qy.ServerResponse&&this[jl].add(e),super.pipe(e,r)}unpipe(e){return e instanceof qy.ServerResponse&&this[jl].delete(e),super.unpipe(e),this}};pe.default=Kl});var ka=y(dr=>{"use strict";l();var MG=dr&&dr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),FG=dr&&dr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&MG(e,t,r)};Object.defineProperty(dr,"__esModule",{value:!0});dr.CancelError=dr.ParseError=void 0;var W2=Ta(),$y=class extends W2.RequestError{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};dr.ParseError=$y;var Uy=class extends W2.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};dr.CancelError=Uy;FG(Ta(),dr)});var Y2=y(Gy=>{"use strict";l();Object.defineProperty(Gy,"__esModule",{value:!0});var z2=ka(),qG=(t,e,r,n)=>{let{rawBody:i}=t;try{if(e==="text")return i.toString(n);if(e==="json")return i.length===0?"":r(i.toString());if(e==="buffer")return i;throw new z2.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new z2.ParseError(s,t)}};Gy.default=qG});var Vy=y($n=>{"use strict";l();var BG=$n&&$n.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),jG=$n&&$n.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&BG(e,t,r)};Object.defineProperty($n,"__esModule",{value:!0});var HG=require("events"),$G=on(),UG=WT(),Zl=ka(),K2=Y2(),Z2=Ta(),GG=Cy(),VG=Ny(),J2=Dy(),WG=["request","response","redirect","uploadProgress","downloadProgress"];function X2(t){let e,r,n=new HG.EventEmitter,i=new UG((o,a,c)=>{let u=f=>{let h=new Z2.default(void 0,t);h.retryCount=f,h._noPipe=!0,c(()=>h.destroy()),c.shouldReject=!1,c(()=>a(new Zl.CancelError(h))),e=h,h.once("response",async m=>{var E;if(m.retryCount=f,m.request.aborted)return;let v;try{v=await VG.default(h),m.rawBody=v}catch{return}if(h._isAboutToError)return;let A=((E=m.headers["content-encoding"])!==null&&E!==void 0?E:"").toLowerCase(),P=["gzip","deflate","br"].includes(A),{options:D}=h;if(P&&!D.decompress)m.body=v;else try{m.body=K2.default(m,D.responseType,D.parseJson,D.encoding)}catch(ie){if(m.body=v.toString(),J2.isResponseOk(m)){h._beforeError(ie);return}}try{for(let[ie,z]of D.hooks.afterResponse.entries())m=await z(m,async ue=>{let K=Z2.default.normalizeArguments(void 0,{...ue,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},D);K.hooks.afterResponse=K.hooks.afterResponse.slice(0,ie);for(let F of K.hooks.beforeRetry)await F(K);let Z=X2(K);return c(()=>{Z.catch(()=>{}),Z.cancel()}),Z})}catch(ie){h._beforeError(new Zl.RequestError(ie.message,ie,h));return}if(r=m,!J2.isResponseOk(m)){h._beforeError(new Zl.HTTPError(m));return}h.destroy(),o(h.options.resolveBodyOnly?m.body:m)});let d=m=>{if(i.isCanceled)return;let{options:E}=h;if(m instanceof Zl.HTTPError&&!E.throwHttpErrors){let{response:v}=m;o(h.options.resolveBodyOnly?v.body:v);return}a(m)};h.once("error",d);let g=h.options.body;h.once("retry",(m,E)=>{var v,A;if(g===((v=E.request)===null||v===void 0?void 0:v.options.body)&&$G.default.nodeStream((A=E.request)===null||A===void 0?void 0:A.options.body)){d(E);return}u(m)}),GG.default(h,n,WG)};u(0)});i.on=(o,a)=>(n.on(o,a),i);let s=o=>{let a=(async()=>{await i;let{options:c}=r.request;return K2.default(r,o,c.parseJson,c.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}$n.default=X2;jG(ka(),$n)});var Q2=y(Wy=>{"use strict";l();Object.defineProperty(Wy,"__esModule",{value:!0});var zG=ka();function YG(t,...e){let r=(async()=>{if(t instanceof zG.RequestError)try{for(let i of e)if(i)for(let s of i)t=await s(t)}catch(i){t=i}throw t})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}Wy.default=YG});var rP=y(zy=>{"use strict";l();Object.defineProperty(zy,"__esModule",{value:!0});var eP=on();function tP(t){for(let e of Object.values(t))(eP.default.plainObject(e)||eP.default.array(e))&&tP(e);return Object.freeze(t)}zy.default=tP});var iP=y(nP=>{"use strict";l();Object.defineProperty(nP,"__esModule",{value:!0})});var Yy=y(rr=>{"use strict";l();var KG=rr&&rr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ZG=rr&&rr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&KG(e,t,r)};Object.defineProperty(rr,"__esModule",{value:!0});rr.defaultHandler=void 0;var sP=on(),tr=Vy(),JG=Q2(),Xl=Ta(),XG=rP(),QG={RequestError:tr.RequestError,CacheError:tr.CacheError,ReadError:tr.ReadError,HTTPError:tr.HTTPError,MaxRedirectsError:tr.MaxRedirectsError,TimeoutError:tr.TimeoutError,ParseError:tr.ParseError,CancelError:tr.CancelError,UnsupportedProtocolError:tr.UnsupportedProtocolError,UploadError:tr.UploadError},e7=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:Jl}=Xl.default,oP=(...t)=>{let e;for(let r of t)e=Jl(void 0,r,e);return e},t7=t=>t.isStream?new Xl.default(void 0,t):tr.default(t),r7=t=>"defaults"in t&&"options"in t.defaults,n7=["get","post","put","patch","head","delete"];rr.defaultHandler=(t,e)=>e(t);var aP=(t,e)=>{if(t)for(let r of t)r(e)},cP=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(n=>(i,s)=>{let o,a=n(i,c=>(o=s(c),o));if(a!==o&&!i.isStream&&o){let c=a,{then:u,catch:f,finally:h}=c;Object.setPrototypeOf(c,Object.getPrototypeOf(o)),Object.defineProperties(c,Object.getOwnPropertyDescriptors(o)),c.then=u,c.catch=f,c.finally=h}return a});let e=(n,i={},s)=>{var o,a;let c=0,u=f=>t.handlers[c++](f,c===t.handlers.length?t7:u);if(sP.default.plainObject(n)){let f={...n,...i};Xl.setNonEnumerableProperties([n,i],f),i=f,n=void 0}try{let f;try{aP(t.options.hooks.init,i),aP((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(d){f=d}let h=Jl(n,i,s!=null?s:t.options);if(h[Xl.kIsNormalizedAlready]=!0,f)throw new tr.RequestError(f.message,f,h);return u(h)}catch(f){if(i.isStream)throw f;return JG.default(f,t.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...n)=>{let i=[t.options],s=[...t._rawHandlers],o;for(let a of n)r7(a)?(i.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(i.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==rr.defaultHandler),s.length===0&&s.push(rr.defaultHandler),cP({options:oP(...i),handlers:s,mutableDefaults:Boolean(o)})};let r=async function*(n,i){let s=Jl(n,i,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!sP.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:c}=o,u=0;for(;u<o.requestLimit;){u!==0&&await e7(o.backoff);let f=await e(void 0,void 0,s),h=await o.transform(f),d=[];for(let m of h)if(o.filter(m,a,d)&&(!o.shouldContinue(m,a,d)||(yield m,o.stackAllItems&&a.push(m),d.push(m),--c<=0)))return;let g=o.paginate(f,a,d);if(g===!1)return;g===f.request.options?s=f.request.options:g!==void 0&&(s=Jl(void 0,g,s)),u++}};e.paginate=r,e.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},e.paginate.each=r,e.stream=(n,i)=>e(n,{...i,isStream:!0});for(let n of n7)e[n]=(i,s)=>e(i,{...s,method:n}),e.stream[n]=(i,s)=>e(i,{...s,method:n,isStream:!0});return Object.assign(e,QG),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:XG.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=oP,e};rr.default=cP;ZG(iP(),rr)});var fP=y((an,Ql)=>{"use strict";l();var i7=an&&an.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),uP=an&&an.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&i7(e,t,r)};Object.defineProperty(an,"__esModule",{value:!0});var s7=require("url"),lP=Yy(),o7={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let n of e){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new s7.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[lP.defaultHandler],mutableDefaults:!1},Ky=lP.default(o7);an.default=Ky;Ql.exports=Ky;Ql.exports.default=Ky;Ql.exports.__esModule=!0;uP(Yy(),an);uP(Vy(),an)});var yP=y((zX,gP)=>{l();function nr(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}gP.exports=nr;nr.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};nr.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};nr.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};nr.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};nr.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};nr.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};nr.prototype.start=nr.prototype.try;nr.prototype.errors=function(){return this._errors};nr.prototype.attempts=function(){return this._attempts};nr.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var _P=y(wi=>{l();var u7=yP();wi.operation=function(t){var e=wi.timeouts(t);return new u7(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};wi.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};wi.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};wi.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(c){var u=wi.operation(e),f=Array.prototype.slice.call(arguments,1),h=f.pop();f.push(function(d){u.retry(d)||(d&&(arguments[0]=u.mainError()),h.apply(this,arguments))}),u.attempt(function(){c.apply(t,f)})}.bind(t,o),t[s].options=e}}});var bP=y((KX,vP)=>{l();vP.exports=_P()});var wP=y((ZX,EP)=>{l();var l7=bP();function f7(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=l7.operation(s);function a(f){i(f||new Error("Aborted"))}function c(f,h){if(f.bail){a(f);return}o.retry(f)?s.onRetry&&s.onRetry(f,h):i(o.mainError())}function u(f){var h;try{h=t(a,f)}catch(d){c(d,f);return}Promise.resolve(h).then(n).catch(function(g){c(g,f)})}o.attempt(u)}return new Promise(r)}EP.exports=f7});var qP=y(Dr=>{"use strict";l();Object.defineProperty(Dr,"__esModule",{value:!0});function _V(t){return t&&t.__esModule?t:{default:t}}var NP=Object.defineProperty,IP=Object.getOwnPropertySymbols,vV=Object.prototype.hasOwnProperty,bV=Object.prototype.propertyIsEnumerable,LP=(t,e,r)=>e in t?NP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,EV=(t,e)=>{for(var r in e||(e={}))vV.call(e,r)&&LP(t,r,e[r]);if(IP)for(var r of IP(e))bV.call(e,r)&&LP(t,r,e[r]);return t},wV=(t,e)=>{for(var r in e)NP(t,r,{get:e[r],enumerable:!0})},xV=(t,e,r)=>new Promise((n,i)=>{var s=c=>{try{a(r.next(c))}catch(u){i(u)}},o=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,o);a((r=r.apply(t,e)).next())}),DP={};wV(DP,{configDir:()=>FP,darwinConfig:()=>r0,getPathForPlatform:()=>i0,getPlatform:()=>t0,linuxConfig:()=>of,winConfig:()=>n0});var SV=require("fs/promises"),AV=require("path"),MP=_V(AV);function t0(){return process.platform}function of(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return MP.default.join(process.env.HOME,".config")}function r0(){if(process.env.HOME!==void 0)return MP.default.join(process.env.HOME,"/Library/Application Support")}function n0(){return process.env.APPDATA}function i0({platform:t}){switch(t){case"linux":return of();case"darwin":return r0();case"win32":return n0();default:return of()}}function FP(){return xV(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:t0(),n=i0({platform:r});if(n!==void 0){if(t.validate===!1)return n;try{return yield SV.stat.call(void 0,n),n}catch{return}}})}Dr.__spreadValues=EV;Dr.getPlatform=t0;Dr.linuxConfig=of;Dr.darwinConfig=r0;Dr.winConfig=n0;Dr.getPathForPlatform=i0;Dr.configDir=FP;Dr.config_dir_exports=DP});var BP=y(s0=>{"use strict";l();Object.defineProperty(s0,"__esModule",{value:!0});var RV=qP();s0.configDir=RV.configDir});var VP=y((qQ,FV)=>{FV.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var YP=y($t=>{"use strict";l();var zP=VP(),We=process.env;Object.defineProperty($t,"_vendors",{value:zP.map(function(t){return t.constant})});$t.name=null;$t.isPR=null;zP.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(n){return WP(n)});if($t[t.constant]=r,!!r)switch($t.name=t.name,typeof t.pr){case"string":$t.isPR=!!We[t.pr];break;case"object":"env"in t.pr?$t.isPR=t.pr.env in We&&We[t.pr.env]!==t.pr.ne:"any"in t.pr?$t.isPR=t.pr.any.some(function(n){return!!We[n]}):$t.isPR=WP(t.pr);break;default:$t.isPR=null}});$t.isCI=!!(We.CI!=="false"&&(We.BUILD_ID||We.BUILD_NUMBER||We.CI||We.CI_APP_ID||We.CI_BUILD_ID||We.CI_BUILD_NUMBER||We.CI_NAME||We.CONTINUOUS_INTEGRATION||We.RUN_ID||$t.name||!1));function WP(t){return typeof t=="string"?!!We[t]:"env"in t?We[t.env]&&We[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!We[e]}):Object.keys(t).every(function(e){return We[e]===t[e]})}});l();l();var L0=le(I0(),1),{program:cW,createCommand:uW,createArgument:lW,createOption:fW,CommanderError:hW,InvalidArgumentError:dW,InvalidOptionArgumentError:pW,Command:N0,Argument:D0,Option:zn,Help:mW}=L0.default;l();l();l();var fo=require("fs"),a0=require("crypto");l();l();l();var r5=le(H0());l();l();function xf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}l();l();function yo(t){return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yo(t)}l();function Sf(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Af(t,e){if(e&&(yo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sf(t)}l();function Yn(t){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yn(t)}l();l();function jr(t,e){return jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jr(t,e)}function Rf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jr(t,e)}l();l();function Cf(t){return Function.toString.call(t).indexOf("[native code]")!==-1}l();l();function Of(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mi(t,e,r){return Of()?Mi=Reflect.construct.bind():Mi=function(i,s,o){var a=[null];a.push.apply(a,s);var c=Function.bind.apply(i,a),u=new c;return o&&jr(u,o.prototype),u},Mi.apply(null,arguments)}function _o(t){var e=typeof Map=="function"?new Map:void 0;return _o=function(n){if(n===null||!Cf(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Mi(n,arguments,Yn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),jr(i,n)},_o(t)}var ih=le(i_()),ec=le(require("path")),tc=le(_b()),n5=function(t){Rf(e,t);function e(r){var n;return xf(this,e),n=Af(this,Yn(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(_o(Error));function i5(t,e){try{var r=tc.default.readJsonSync(ec.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(n){if(n.code!=="ENOENT")throw n}}function s5(t){try{var e=tc.default.readJsonSync(ec.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function o5(t){var e=tc.default.existsSync(ec.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function vb(t){var e={current:void 0},r=(0,ih.sync)(function(n){return[s5(n),i5(n,e),o5(n)].find(function(i){return i})},{cwd:t,type:"directory"});if(e.current===void 0)throw new n5(t);return r===void 0?e.current:r}var bb=le(require("json5"));l();var sh=le(require("fs")),Po=le(require("path"));function oh({target:t,cwd:e,contentCheck:r}){let n=Po.default.parse(e).root,i=!1,s=e;for(;!i&&s!==n;){if(r)try{let o=sh.default.readFileSync(Po.default.join(s,t)).toString();if(r(o)){i=!0;break}}catch{}else if(sh.default.existsSync(Po.default.join(s,t))){i=!0;break}s=Po.default.dirname(s)}return i?s:null}function a5(t){let e=bb.default.parse(t);return!(e&&"extends"in e)}var ah={};function rc(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,n=t||process.cwd();if(r&&ah[n])return ah[n];let i=oh({target:"turbo.json",cwd:n,contentCheck:a5});if(!i)try{if(i=vb(n),!i)return null}catch{return null}return r&&(ah[n]=i),i}l();var AH=le(require("fs")),RH=le(require("path"));l();function Mb(t){return typeof t>"u"||t===null}function c5(t){return typeof t=="object"&&t!==null}function u5(t){return Array.isArray(t)?t:Mb(t)?[]:[t]}function l5(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function f5(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function h5(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var d5=Mb,p5=c5,m5=u5,g5=f5,y5=h5,_5=l5,Ge={isNothing:d5,isObject:p5,toArray:m5,repeat:g5,isNegativeZero:y5,extend:_5};function Fb(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
|
56
|
+
`)}`}}};pe.RequestError=Be;var Ul=class extends Be{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};pe.MaxRedirectsError=Ul;var Gl=class extends Be{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};pe.HTTPError=Gl;var Vl=class extends Be{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};pe.CacheError=Vl;var Wl=class extends Be{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};pe.UploadError=Wl;var zl=class extends Be{constructor(e,r,n){super(e.message,e,n),this.name="TimeoutError",this.event=e.event,this.timings=r}};pe.TimeoutError=zl;var Oa=class extends Be{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};pe.ReadError=Oa;var Yl=class extends Be{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};pe.UnsupportedProtocolError=Yl;var NG=["socket","connect","continue","information","upgrade","timeout"],Kl=class extends N2.Duplex{constructor(e,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[Js]=0,this[Qs]=0,this.requestInitialized=!1,this[jl]=new Set,this.redirects=[],this[eo]=!1,this[Hl]=!1,this[Ca]=[],this.retryCount=0,this._progressCallbacks=[];let i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",u=>{u.prependListener("data",i),u.on("data",s),u.prependListener("end",i),u.on("end",s)}),this.on("unpipe",u=>{u.off("data",i),u.off("data",s),u.off("end",i),u.off("end",s)}),this.on("pipe",u=>{u instanceof qy.IncomingMessage&&(this.options.headers={...u.headers,...this.options.headers})});let{json:o,body:a,form:c}=r;if((o||a||c)&&this._lockWrite(),pe.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,n)}catch(u){O.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(u);return}(async()=>{var u;try{this.options.body instanceof dG.ReadStream&&await PG(this.options.body);let{url:f}=this.options;if(!f)throw new TypeError("Missing `url` property");if(this.requestUrl=f.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(u=this[tt])===null||u===void 0||u.destroy();return}for(let h of this[Ca])h();this[Ca].length=0,this.requestInitialized=!0}catch(f){if(f instanceof Be){this._beforeError(f);return}this.destroyed||this.destroy(f)}})()}static normalizeArguments(e,r,n){var i,s,o,a,c;let u=r;if(O.default.object(e)&&!O.default.urlInstance(e))r={...n,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},e!==void 0&&(r.url=e),O.default.urlInstance(r.url)&&(r.url=new Bn.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),O.assert.any([O.default.string,O.default.undefined],r.method),O.assert.any([O.default.object,O.default.undefined],r.headers),O.assert.any([O.default.string,O.default.urlInstance,O.default.undefined],r.prefixUrl),O.assert.any([O.default.object,O.default.undefined],r.cookieJar),O.assert.any([O.default.object,O.default.string,O.default.undefined],r.searchParams),O.assert.any([O.default.object,O.default.string,O.default.undefined],r.cache),O.assert.any([O.default.object,O.default.number,O.default.undefined],r.timeout),O.assert.any([O.default.object,O.default.undefined],r.context),O.assert.any([O.default.object,O.default.undefined],r.hooks),O.assert.any([O.default.boolean,O.default.undefined],r.decompress),O.assert.any([O.default.boolean,O.default.undefined],r.ignoreInvalidCookies),O.assert.any([O.default.boolean,O.default.undefined],r.followRedirect),O.assert.any([O.default.number,O.default.undefined],r.maxRedirects),O.assert.any([O.default.boolean,O.default.undefined],r.throwHttpErrors),O.assert.any([O.default.boolean,O.default.undefined],r.http2),O.assert.any([O.default.boolean,O.default.undefined],r.allowGetBody),O.assert.any([O.default.string,O.default.undefined],r.localAddress),O.assert.any([j2.isDnsLookupIpVersion,O.default.undefined],r.dnsLookupIpVersion),O.assert.any([O.default.object,O.default.undefined],r.https),O.assert.any([O.default.boolean,O.default.undefined],r.rejectUnauthorized),r.https&&(O.assert.any([O.default.boolean,O.default.undefined],r.https.rejectUnauthorized),O.assert.any([O.default.function_,O.default.undefined],r.https.checkServerIdentity),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.certificateAuthority),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.key),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.certificate),O.assert.any([O.default.string,O.default.undefined],r.https.passphrase),O.assert.any([O.default.string,O.default.buffer,O.default.array,O.default.undefined],r.https.pfx)),O.assert.any([O.default.object,O.default.undefined],r.cacheOptions),O.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(n==null?void 0:n.headers)?r.headers={...r.headers}:r.headers=vG({...n==null?void 0:n.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(n==null?void 0:n.searchParams)){let g;if(O.default.string(r.searchParams)||r.searchParams instanceof Bn.URLSearchParams)g=new Bn.URLSearchParams(r.searchParams);else{TG(r.searchParams),g=new Bn.URLSearchParams;for(let m in r.searchParams){let E=r.searchParams[m];E===null?g.append(m,""):E!==void 0&&g.append(m,E)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((m,E)=>{g.has(E)||g.append(E,m)}),r.searchParams=g}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",O.default.undefined(r.prefixUrl)?r.prefixUrl=(a=n==null?void 0:n.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),O.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=B2.default(r.prefixUrl+r.url,r)}else(O.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=B2.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:g}=r;Object.defineProperty(r,"prefixUrl",{set:E=>{let v=r.url;if(!v.href.startsWith(E))throw new Error(`Cannot change \`prefixUrl\` from ${g} to ${E}: ${v.href}`);r.url=new Bn.URL(E+v.href.slice(g.length)),g=E},get:()=>g});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Bn.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new Yl(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:f}=r;if(f){let{setCookie:g,getCookieString:m}=f;O.assert.function_(g),O.assert.function_(m),g.length===4&&m.length===0&&(g=L2.promisify(g.bind(r.cookieJar)),m=L2.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:g,getCookieString:m})}let{cache:h}=r;if(h&&(Hy.has(h)||Hy.set(h,new M2((g,m)=>{let E=g[tt](g,m);return O.default.promise(E)&&(E.once=(v,A)=>{if(v==="error")E.catch(A);else if(v==="abort")(async()=>{try{(await E).once("abort",A)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${v}`);return E}),E},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)By||(By=new gG.default),r.dnsCache=By;else if(!O.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${O.default(r.dnsCache)}`);O.default.number(r.timeout)?r.timeout={request:r.timeout}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let d=r.hooks===(n==null?void 0:n.hooks);r.hooks={...r.hooks};for(let g of pe.knownHookEvents)if(g in r.hooks)if(O.default.array(r.hooks[g]))r.hooks[g]=[...r.hooks[g]];else throw new TypeError(`Parameter \`${g}\` must be an Array, got ${O.default(r.hooks[g])}`);else r.hooks[g]=[];if(n&&!d)for(let g of pe.knownHookEvents)n.hooks[g].length>0&&(r.hooks[g]=[...n.hooks[g],...r.hooks[g]]);if("family"in r&&jn.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&jn.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&jn.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&jn.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&jn.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&jn.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&jn.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&jn.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let g in r.agent)if(g!=="http"&&g!=="https"&&g!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${g}\``)}return r.maxRedirects=(c=r.maxRedirects)!==null&&c!==void 0?c:0,pe.setNonEnumerableProperties([n,u],r),RG.default(r,n)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!O.default.undefined(e.form),i=!O.default.undefined(e.json),s=!O.default.undefined(e.body),o=n||i||s,a=pe.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,n,i].filter(c=>c).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof N2.Readable)&&!O.default.string(e.body)&&!O.default.buffer(e.body)&&!F2.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!O.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let c=!O.default.string(r["content-type"]);s?(F2.default(e.body)&&c&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Hn]=e.body):n?(c&&(r["content-type"]="application/x-www-form-urlencoded"),this[Hn]=new Bn.URLSearchParams(e.form).toString()):(c&&(r["content-type"]="application/json"),this[Hn]=e.stringifyJson(e.json));let u=await bG.default(this[Hn],e.headers);O.default.undefined(r["content-length"])&&O.default.undefined(r["transfer-encoding"])&&!a&&!O.default.undefined(u)&&(r["content-length"]=String(u))}}else a?this._lockWrite():this._unlockWrite();this[Xs]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:n}=r;this[G2]=e,r.decompress&&(e=yG(e));let i=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:D2.STATUS_CODES[i],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[$2]=s.isFromCache,this[Zs]=Number(e.headers["content-length"])||void 0,this[$l]=e,e.once("end",()=>{this[Zs]=this[Js],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Oa(a,this))}),e.once("aborted",()=>{this._beforeError(new Oa({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(O.default.object(r.cookieJar)&&o){let a=o.map(async c=>r.cookieJar.setCookie(c,n.toString()));r.ignoreInvalidCookies&&(a=a.map(async c=>c.catch(()=>{})));try{await Promise.all(a)}catch(c){this._beforeError(c);return}}if(r.followRedirect&&e.headers.location&&IG.has(i)){if(e.resume(),this[tt]&&(this[jy](),delete this[tt],this[H2]()),(i===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[Hn]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Ul(this));return}try{let h=function(d){return d.protocol==="unix:"||d.hostname==="unix"},c=Buffer.from(e.headers.location,"binary").toString(),u=new Bn.URL(c,n),f=u.toString();if(decodeURI(f),!h(n)&&h(u)){this._beforeError(new Be("Cannot redirect to UNIX socket",{},this));return}u.hostname!==n.hostname||u.port!==n.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(u.username=r.username,u.password=r.password),this.redirects.push(f),r.url=u;for(let d of r.hooks.beforeRedirect)await d(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(c){this._beforeError(c);return}return}if(r.isStream&&r.throwHttpErrors&&!AG.isResponseOk(s)){this._beforeError(new Gl(s));return}e.on("readable",()=>{this[Hl]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[jl])if(!a.headersSent){for(let c in e.headers){let u=r.decompress?c!=="content-encoding":!0,f=e.headers[c];u&&a.setHeader(c,f)}a.statusCode=i}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:i}=r;mG.default(e),this[jy]=q2.default(e,n,i);let s=r.cache?"cacheableResponse":"response";e.once(s,c=>{this._onResponse(c)}),e.once("error",c=>{var u;e.destroy(),(u=e.res)===null||u===void 0||u.removeAllListeners("end"),c=c instanceof q2.TimeoutError?new zl(c,this.timings,this):new Be(c.message,c,this),this._beforeError(c)}),this[H2]=EG.default(e,this,NG),this[tt]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Hn],a=this.redirects.length===0?this:e;O.default.nodeStream(o)?(o.pipe(a),o.once("error",c=>{this._beforeError(new Wl(c,this))})):(this._unlockWrite(),O.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((n,i)=>{Object.assign(r,wG.default(e)),delete r.url;let s,o=Hy.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=e,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var e,r,n,i,s;let{options:o}=this,{headers:a}=o;for(let A in a)if(O.default.undefined(a[A]))delete a[A];else if(O.default.null_(a[A]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${A}\` header`);if(o.decompress&&O.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=OG?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let A=await o.cookieJar.getCookieString(o.url.toString());O.default.nonEmptyString(A)&&(o.headers.cookie=A)}for(let A of o.hooks.beforeRequest){let P=await A(o);if(!O.default.undefined(P)){o.request=()=>P;break}}o.body&&this[Hn]!==o.body&&(this[Hn]=o.body);let{agent:c,request:u,timeout:f,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let A=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(A!=null&&A.groups){let{socketPath:P,path:D}=A.groups;Object.assign(o,{socketPath:P,path:D,host:""})}}let d=h.protocol==="https:",g;o.http2?g=_G.auto:g=d?pG.request:D2.request;let m=(e=o.request)!==null&&e!==void 0?e:g,E=o.cache?this._createCacheableRequest:m;c&&!o.http2&&(o.agent=c[d?"https":"http"]),o[tt]=m,delete o.request,delete o.timeout;let v=o;if(v.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,v.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,v.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,v.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{v.family=j2.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(v.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(v.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(v.ca=o.https.certificateAuthority),o.https.certificate&&(v.cert=o.https.certificate),o.https.key&&(v.key=o.https.key),o.https.passphrase&&(v.passphrase=o.https.passphrase),o.https.pfx&&(v.pfx=o.https.pfx));try{let A=await E(h,v);O.default.undefined(A)&&(A=g(h,v)),o.request=u,o.timeout=f,o.agent=c,o.https&&("rejectUnauthorized"in o.https&&delete v.rejectUnauthorized,o.https.checkServerIdentity&&delete v.checkServerIdentity,o.https.certificateAuthority&&delete v.ca,o.https.certificate&&delete v.cert,o.https.key&&delete v.key,o.https.passphrase&&delete v.passphrase,o.https.pfx&&delete v.pfx),kG(A)?this._onRequest(A):this.writable?(this.once("finish",()=>{this._onResponse(A)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(A)}catch(A){throw A instanceof M2.CacheError?new Vl(A,this):new Be(A.message,A,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Be(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[eo])return;let{options:r}=this,n=this.retryCount+1;this[eo]=!0,e instanceof Be||(e=new Be(e.message,e,this));let i=e,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await SG.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:CG.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new Be(a.message,a,this));return}if(o){let a=async()=>{try{for(let c of this.options.hooks.beforeRetry)await c(this.options,i,n)}catch(c){this._error(new Be(c.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,e))};this[V2]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[Hl]=!0;let e=this[$l];if(e&&!this[eo]){e.readableLength&&(this[Hl]=!1);let r;for(;(r=e.read())!==null;){this[Js]+=r.length,this[U2]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let i=()=>{this._writeRequest(e,r,n)};this.requestInitialized?i():this[Ca].push(i)}_writeRequest(e,r,n){this[tt].destroyed||(this._progressCallbacks.push(()=>{this[Qs]+=Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[tt].write(e,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(tt in this)){e();return}if(this[tt].destroyed){e();return}this[tt].end(n=>{n||(this[Xs]=this[Qs],this.emit("uploadProgress",this.uploadProgress),this[tt].emit("upload-complete")),e(n)})};this.requestInitialized?r():this[Ca].push(r)}_destroy(e,r){var n;this[eo]=!0,clearTimeout(this[V2]),tt in this&&(this[jy](),!((n=this[$l])===null||n===void 0)&&n.complete||this[tt].destroy()),e!==null&&!O.default.undefined(e)&&!(e instanceof Be)&&(e=new Be(e.message,e,this)),r(e)}get _isAboutToError(){return this[eo]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,n;return((r=(e=this[tt])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[G2])===null||n===void 0)&&n.complete)}get socket(){var e,r;return(r=(e=this[tt])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Zs]?e=this[Js]/this[Zs]:this[Zs]===this[Js]?e=1:e=0,{percent:e,transferred:this[Js],total:this[Zs]}}get uploadProgress(){let e;return this[Xs]?e=this[Qs]/this[Xs]:this[Xs]===this[Qs]?e=1:e=0,{percent:e,transferred:this[Qs],total:this[Xs]}}get timings(){var e;return(e=this[tt])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[$2]}pipe(e,r){if(this[U2])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof qy.ServerResponse&&this[jl].add(e),super.pipe(e,r)}unpipe(e){return e instanceof qy.ServerResponse&&this[jl].delete(e),super.unpipe(e),this}};pe.default=Kl});var ka=y(dr=>{"use strict";l();var DG=dr&&dr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),MG=dr&&dr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&DG(e,t,r)};Object.defineProperty(dr,"__esModule",{value:!0});dr.CancelError=dr.ParseError=void 0;var W2=Ta(),$y=class extends W2.RequestError{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};dr.ParseError=$y;var Uy=class extends W2.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};dr.CancelError=Uy;MG(Ta(),dr)});var Y2=y(Gy=>{"use strict";l();Object.defineProperty(Gy,"__esModule",{value:!0});var z2=ka(),FG=(t,e,r,n)=>{let{rawBody:i}=t;try{if(e==="text")return i.toString(n);if(e==="json")return i.length===0?"":r(i.toString());if(e==="buffer")return i;throw new z2.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new z2.ParseError(s,t)}};Gy.default=FG});var Vy=y($n=>{"use strict";l();var qG=$n&&$n.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),BG=$n&&$n.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&qG(e,t,r)};Object.defineProperty($n,"__esModule",{value:!0});var jG=require("events"),HG=on(),$G=WT(),Zl=ka(),K2=Y2(),Z2=Ta(),UG=Cy(),GG=Ny(),J2=Dy(),VG=["request","response","redirect","uploadProgress","downloadProgress"];function X2(t){let e,r,n=new jG.EventEmitter,i=new $G((o,a,c)=>{let u=f=>{let h=new Z2.default(void 0,t);h.retryCount=f,h._noPipe=!0,c(()=>h.destroy()),c.shouldReject=!1,c(()=>a(new Zl.CancelError(h))),e=h,h.once("response",async m=>{var E;if(m.retryCount=f,m.request.aborted)return;let v;try{v=await GG.default(h),m.rawBody=v}catch{return}if(h._isAboutToError)return;let A=((E=m.headers["content-encoding"])!==null&&E!==void 0?E:"").toLowerCase(),P=["gzip","deflate","br"].includes(A),{options:D}=h;if(P&&!D.decompress)m.body=v;else try{m.body=K2.default(m,D.responseType,D.parseJson,D.encoding)}catch(ie){if(m.body=v.toString(),J2.isResponseOk(m)){h._beforeError(ie);return}}try{for(let[ie,z]of D.hooks.afterResponse.entries())m=await z(m,async ue=>{let K=Z2.default.normalizeArguments(void 0,{...ue,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},D);K.hooks.afterResponse=K.hooks.afterResponse.slice(0,ie);for(let F of K.hooks.beforeRetry)await F(K);let Z=X2(K);return c(()=>{Z.catch(()=>{}),Z.cancel()}),Z})}catch(ie){h._beforeError(new Zl.RequestError(ie.message,ie,h));return}if(r=m,!J2.isResponseOk(m)){h._beforeError(new Zl.HTTPError(m));return}h.destroy(),o(h.options.resolveBodyOnly?m.body:m)});let d=m=>{if(i.isCanceled)return;let{options:E}=h;if(m instanceof Zl.HTTPError&&!E.throwHttpErrors){let{response:v}=m;o(h.options.resolveBodyOnly?v.body:v);return}a(m)};h.once("error",d);let g=h.options.body;h.once("retry",(m,E)=>{var v,A;if(g===((v=E.request)===null||v===void 0?void 0:v.options.body)&&HG.default.nodeStream((A=E.request)===null||A===void 0?void 0:A.options.body)){d(E);return}u(m)}),UG.default(h,n,VG)};u(0)});i.on=(o,a)=>(n.on(o,a),i);let s=o=>{let a=(async()=>{await i;let{options:c}=r.request;return K2.default(r,o,c.parseJson,c.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}$n.default=X2;BG(ka(),$n)});var Q2=y(Wy=>{"use strict";l();Object.defineProperty(Wy,"__esModule",{value:!0});var WG=ka();function zG(t,...e){let r=(async()=>{if(t instanceof WG.RequestError)try{for(let i of e)if(i)for(let s of i)t=await s(t)}catch(i){t=i}throw t})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}Wy.default=zG});var rP=y(zy=>{"use strict";l();Object.defineProperty(zy,"__esModule",{value:!0});var eP=on();function tP(t){for(let e of Object.values(t))(eP.default.plainObject(e)||eP.default.array(e))&&tP(e);return Object.freeze(t)}zy.default=tP});var iP=y(nP=>{"use strict";l();Object.defineProperty(nP,"__esModule",{value:!0})});var Yy=y(rr=>{"use strict";l();var YG=rr&&rr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),KG=rr&&rr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&YG(e,t,r)};Object.defineProperty(rr,"__esModule",{value:!0});rr.defaultHandler=void 0;var sP=on(),tr=Vy(),ZG=Q2(),Xl=Ta(),JG=rP(),XG={RequestError:tr.RequestError,CacheError:tr.CacheError,ReadError:tr.ReadError,HTTPError:tr.HTTPError,MaxRedirectsError:tr.MaxRedirectsError,TimeoutError:tr.TimeoutError,ParseError:tr.ParseError,CancelError:tr.CancelError,UnsupportedProtocolError:tr.UnsupportedProtocolError,UploadError:tr.UploadError},QG=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:Jl}=Xl.default,oP=(...t)=>{let e;for(let r of t)e=Jl(void 0,r,e);return e},e7=t=>t.isStream?new Xl.default(void 0,t):tr.default(t),t7=t=>"defaults"in t&&"options"in t.defaults,r7=["get","post","put","patch","head","delete"];rr.defaultHandler=(t,e)=>e(t);var aP=(t,e)=>{if(t)for(let r of t)r(e)},cP=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(n=>(i,s)=>{let o,a=n(i,c=>(o=s(c),o));if(a!==o&&!i.isStream&&o){let c=a,{then:u,catch:f,finally:h}=c;Object.setPrototypeOf(c,Object.getPrototypeOf(o)),Object.defineProperties(c,Object.getOwnPropertyDescriptors(o)),c.then=u,c.catch=f,c.finally=h}return a});let e=(n,i={},s)=>{var o,a;let c=0,u=f=>t.handlers[c++](f,c===t.handlers.length?e7:u);if(sP.default.plainObject(n)){let f={...n,...i};Xl.setNonEnumerableProperties([n,i],f),i=f,n=void 0}try{let f;try{aP(t.options.hooks.init,i),aP((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(d){f=d}let h=Jl(n,i,s!=null?s:t.options);if(h[Xl.kIsNormalizedAlready]=!0,f)throw new tr.RequestError(f.message,f,h);return u(h)}catch(f){if(i.isStream)throw f;return ZG.default(f,t.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...n)=>{let i=[t.options],s=[...t._rawHandlers],o;for(let a of n)t7(a)?(i.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(i.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==rr.defaultHandler),s.length===0&&s.push(rr.defaultHandler),cP({options:oP(...i),handlers:s,mutableDefaults:Boolean(o)})};let r=async function*(n,i){let s=Jl(n,i,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!sP.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:c}=o,u=0;for(;u<o.requestLimit;){u!==0&&await QG(o.backoff);let f=await e(void 0,void 0,s),h=await o.transform(f),d=[];for(let m of h)if(o.filter(m,a,d)&&(!o.shouldContinue(m,a,d)||(yield m,o.stackAllItems&&a.push(m),d.push(m),--c<=0)))return;let g=o.paginate(f,a,d);if(g===!1)return;g===f.request.options?s=f.request.options:g!==void 0&&(s=Jl(void 0,g,s)),u++}};e.paginate=r,e.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},e.paginate.each=r,e.stream=(n,i)=>e(n,{...i,isStream:!0});for(let n of r7)e[n]=(i,s)=>e(i,{...s,method:n}),e.stream[n]=(i,s)=>e(i,{...s,method:n,isStream:!0});return Object.assign(e,XG),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:JG.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=oP,e};rr.default=cP;KG(iP(),rr)});var fP=y((an,Ql)=>{"use strict";l();var n7=an&&an.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),uP=an&&an.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&n7(e,t,r)};Object.defineProperty(an,"__esModule",{value:!0});var i7=require("url"),lP=Yy(),s7={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let n of e){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new i7.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[lP.defaultHandler],mutableDefaults:!1},Ky=lP.default(s7);an.default=Ky;Ql.exports=Ky;Ql.exports.default=Ky;Ql.exports.__esModule=!0;uP(Yy(),an);uP(Vy(),an)});var gP=y((zX,mP)=>{l();function nr(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}mP.exports=nr;nr.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};nr.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};nr.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};nr.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};nr.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};nr.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};nr.prototype.start=nr.prototype.try;nr.prototype.errors=function(){return this._errors};nr.prototype.attempts=function(){return this._attempts};nr.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var yP=y(wi=>{l();var u7=gP();wi.operation=function(t){var e=wi.timeouts(t);return new u7(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};wi.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};wi.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};wi.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(c){var u=wi.operation(e),f=Array.prototype.slice.call(arguments,1),h=f.pop();f.push(function(d){u.retry(d)||(d&&(arguments[0]=u.mainError()),h.apply(this,arguments))}),u.attempt(function(){c.apply(t,f)})}.bind(t,o),t[s].options=e}}});var vP=y((KX,_P)=>{l();_P.exports=yP()});var EP=y((ZX,bP)=>{l();var l7=vP();function f7(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=l7.operation(s);function a(f){i(f||new Error("Aborted"))}function c(f,h){if(f.bail){a(f);return}o.retry(f)?s.onRetry&&s.onRetry(f,h):i(o.mainError())}function u(f){var h;try{h=t(a,f)}catch(d){c(d,f);return}Promise.resolve(h).then(n).catch(function(g){c(g,f)})}o.attempt(u)}return new Promise(r)}bP.exports=f7});var FP=y(Dr=>{"use strict";l();Object.defineProperty(Dr,"__esModule",{value:!0});function _V(t){return t&&t.__esModule?t:{default:t}}var LP=Object.defineProperty,PP=Object.getOwnPropertySymbols,vV=Object.prototype.hasOwnProperty,bV=Object.prototype.propertyIsEnumerable,IP=(t,e,r)=>e in t?LP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,EV=(t,e)=>{for(var r in e||(e={}))vV.call(e,r)&&IP(t,r,e[r]);if(PP)for(var r of PP(e))bV.call(e,r)&&IP(t,r,e[r]);return t},wV=(t,e)=>{for(var r in e)LP(t,r,{get:e[r],enumerable:!0})},xV=(t,e,r)=>new Promise((n,i)=>{var s=c=>{try{a(r.next(c))}catch(u){i(u)}},o=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,o);a((r=r.apply(t,e)).next())}),NP={};wV(NP,{configDir:()=>MP,darwinConfig:()=>r0,getPathForPlatform:()=>i0,getPlatform:()=>t0,linuxConfig:()=>of,winConfig:()=>n0});var SV=require("fs/promises"),AV=require("path"),DP=_V(AV);function t0(){return process.platform}function of(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return DP.default.join(process.env.HOME,".config")}function r0(){if(process.env.HOME!==void 0)return DP.default.join(process.env.HOME,"/Library/Application Support")}function n0(){return process.env.APPDATA}function i0({platform:t}){switch(t){case"linux":return of();case"darwin":return r0();case"win32":return n0();default:return of()}}function MP(){return xV(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:t0(),n=i0({platform:r});if(n!==void 0){if(t.validate===!1)return n;try{return yield SV.stat.call(void 0,n),n}catch{return}}})}Dr.__spreadValues=EV;Dr.getPlatform=t0;Dr.linuxConfig=of;Dr.darwinConfig=r0;Dr.winConfig=n0;Dr.getPathForPlatform=i0;Dr.configDir=MP;Dr.config_dir_exports=NP});var qP=y(s0=>{"use strict";l();Object.defineProperty(s0,"__esModule",{value:!0});var RV=FP();s0.configDir=RV.configDir});var GP=y((qQ,FV)=>{FV.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var zP=y($t=>{"use strict";l();var WP=GP(),We=process.env;Object.defineProperty($t,"_vendors",{value:WP.map(function(t){return t.constant})});$t.name=null;$t.isPR=null;WP.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(n){return VP(n)});if($t[t.constant]=r,!!r)switch($t.name=t.name,typeof t.pr){case"string":$t.isPR=!!We[t.pr];break;case"object":"env"in t.pr?$t.isPR=t.pr.env in We&&We[t.pr.env]!==t.pr.ne:"any"in t.pr?$t.isPR=t.pr.any.some(function(n){return!!We[n]}):$t.isPR=VP(t.pr);break;default:$t.isPR=null}});$t.isCI=!!(We.CI!=="false"&&(We.BUILD_ID||We.BUILD_NUMBER||We.CI||We.CI_APP_ID||We.CI_BUILD_ID||We.CI_BUILD_NUMBER||We.CI_NAME||We.CONTINUOUS_INTEGRATION||We.RUN_ID||$t.name||!1));function VP(t){return typeof t=="string"?!!We[t]:"env"in t?We[t.env]&&We[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!We[e]}):Object.keys(t).every(function(e){return We[e]===t[e]})}});l();l();var L0=le(I0(),1),{program:cW,createCommand:uW,createArgument:lW,createOption:fW,CommanderError:hW,InvalidArgumentError:dW,InvalidOptionArgumentError:pW,Command:N0,Argument:D0,Option:zn,Help:mW}=L0.default;l();l();l();var fo=require("fs"),a0=require("crypto");l();l();l();var t5=le(H0());l();l();function xf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}l();l();function yo(t){return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yo(t)}l();function Sf(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Af(t,e){if(e&&(yo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sf(t)}l();function Yn(t){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yn(t)}l();l();function jr(t,e){return jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jr(t,e)}function Rf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jr(t,e)}l();l();function Cf(t){return Function.toString.call(t).indexOf("[native code]")!==-1}l();l();function Of(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mi(t,e,r){return Of()?Mi=Reflect.construct.bind():Mi=function(i,s,o){var a=[null];a.push.apply(a,s);var c=Function.bind.apply(i,a),u=new c;return o&&jr(u,o.prototype),u},Mi.apply(null,arguments)}function _o(t){var e=typeof Map=="function"?new Map:void 0;return _o=function(n){if(n===null||!Cf(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Mi(n,arguments,Yn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),jr(i,n)},_o(t)}var ih=le(i_()),ec=le(require("path")),tc=le(_b()),r5=function(t){Rf(e,t);function e(r){var n;return xf(this,e),n=Af(this,Yn(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(_o(Error));function n5(t,e){try{var r=tc.default.readJsonSync(ec.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(n){if(n.code!=="ENOENT")throw n}}function i5(t){try{var e=tc.default.readJsonSync(ec.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function s5(t){var e=tc.default.existsSync(ec.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function vb(t){var e={current:void 0},r=(0,ih.sync)(function(n){return[i5(n),n5(n,e),s5(n)].find(function(i){return i})},{cwd:t,type:"directory"});if(e.current===void 0)throw new r5(t);return r===void 0?e.current:r}var bb=le(require("json5"));l();var sh=le(require("fs")),Po=le(require("path"));function oh({target:t,cwd:e,contentCheck:r}){let n=Po.default.parse(e).root,i=!1,s=e;for(;!i&&s!==n;){if(r)try{let o=sh.default.readFileSync(Po.default.join(s,t)).toString();if(r(o)){i=!0;break}}catch{}else if(sh.default.existsSync(Po.default.join(s,t))){i=!0;break}s=Po.default.dirname(s)}return i?s:null}function o5(t){let e=bb.default.parse(t);return!(e&&"extends"in e)}var ah={};function rc(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,n=t||process.cwd();if(r&&ah[n])return ah[n];let i=oh({target:"turbo.json",cwd:n,contentCheck:o5});if(!i)try{if(i=vb(n),!i)return null}catch{return null}return r&&(ah[n]=i),i}l();var SH=le(require("fs")),AH=le(require("path"));l();function Mb(t){return typeof t>"u"||t===null}function a5(t){return typeof t=="object"&&t!==null}function c5(t){return Array.isArray(t)?t:Mb(t)?[]:[t]}function u5(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function l5(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function f5(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var h5=Mb,d5=a5,p5=c5,m5=l5,g5=f5,y5=u5,Ge={isNothing:h5,isObject:d5,toArray:p5,repeat:m5,isNegativeZero:g5,extend:y5};function Fb(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
|
57
57
|
|
|
58
|
-
`+t.mark.snippet),n+" "+r):n}function Lo(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Fb(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Lo.prototype=Object.create(Error.prototype);Lo.prototype.constructor=Lo;Lo.prototype.toString=function(e){return this.name+": "+Fb(this,e)};var Et=Lo;function ch(t,e,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-e>a&&(s=" ... ",e=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:n-e+s.length}}function uh(t,e){return Ge.repeat(" ",e-t.length)+t}function
|
|
58
|
+
`+t.mark.snippet),n+" "+r):n}function Lo(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Fb(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Lo.prototype=Object.create(Error.prototype);Lo.prototype.constructor=Lo;Lo.prototype.toString=function(e){return this.name+": "+Fb(this,e)};var Et=Lo;function ch(t,e,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-e>a&&(s=" ... ",e=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:n-e+s.length}}function uh(t,e){return Ge.repeat(" ",e-t.length)+t}function _5(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(t.buffer);)i.push(s.index),n.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",c,u,f=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+f+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)u=ch(t.buffer,n[o-c],i[o-c],t.position-(n[o]-n[o-c]),h),a=Ge.repeat(" ",e.indent)+uh((t.line-c+1).toString(),f)+" | "+u.str+`
|
|
59
59
|
`+a;for(u=ch(t.buffer,n[o],i[o],t.position,h),a+=Ge.repeat(" ",e.indent)+uh((t.line+1).toString(),f)+" | "+u.str+`
|
|
60
60
|
`,a+=Ge.repeat("-",e.indent+f+3+u.pos)+`^
|
|
61
61
|
`,c=1;c<=e.linesAfter&&!(o+c>=i.length);c++)u=ch(t.buffer,n[o+c],i[o+c],t.position-(n[o]-n[o+c]),h),a+=Ge.repeat(" ",e.indent)+uh((t.line+c+1).toString(),f)+" | "+u.str+`
|
|
62
|
-
`;return a.replace(/\n$/,"")}var
|
|
63
|
-
\r`;function
|
|
64
|
-
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function
|
|
65
|
-
`,e-1))}function
|
|
62
|
+
`;return a.replace(/\n$/,"")}var v5=_5,b5=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],E5=["scalar","sequence","mapping"];function w5(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function x5(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(b5.indexOf(r)===-1)throw new Et('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=w5(e.styleAliases||null),E5.indexOf(this.kind)===-1)throw new Et('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var nt=x5;function Eb(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function S5(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function fh(t){return this.extend(t)}fh.prototype.extend=function(e){var r=[],n=[];if(e instanceof nt)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Et("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof nt))throw new Et("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Et("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Et("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof nt))throw new Et("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(fh.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=Eb(i,"implicit"),i.compiledExplicit=Eb(i,"explicit"),i.compiledTypeMap=S5(i.compiledImplicit,i.compiledExplicit),i};var A5=fh,R5=new nt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),C5=new nt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),O5=new nt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),T5=new A5({explicit:[R5,C5,O5]});function k5(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function P5(){return null}function I5(t){return t===null}var L5=new nt("tag:yaml.org,2002:null",{kind:"scalar",resolve:k5,construct:P5,predicate:I5,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function N5(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function D5(t){return t==="true"||t==="True"||t==="TRUE"}function M5(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var F5=new nt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:N5,construct:D5,predicate:M5,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function q5(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function B5(t){return 48<=t&&t<=55}function j5(t){return 48<=t&&t<=57}function H5(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!q5(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!B5(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!j5(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function $5(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function U5(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Ge.isNegativeZero(t)}var G5=new nt("tag:yaml.org,2002:int",{kind:"scalar",resolve:H5,construct:$5,predicate:U5,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),V5=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function W5(t){return!(t===null||!V5.test(t)||t[t.length-1]==="_")}function z5(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var Y5=/^[-+]?[0-9]+e/;function K5(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ge.isNegativeZero(t))return"-0.0";return r=t.toString(10),Y5.test(r)?r.replace("e",".e"):r}function Z5(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Ge.isNegativeZero(t))}var J5=new nt("tag:yaml.org,2002:float",{kind:"scalar",resolve:W5,construct:z5,predicate:Z5,represent:K5,defaultStyle:"lowercase"}),X5=T5.extend({implicit:[L5,F5,G5,J5]}),Q5=X5,qb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Bb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function eD(t){return t===null?!1:qb.exec(t)!==null||Bb.exec(t)!==null}function tD(t){var e,r,n,i,s,o,a,c=0,u=null,f,h,d;if(e=qb.exec(t),e===null&&(e=Bb.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(f=+e[10],h=+(e[11]||0),u=(f*60+h)*6e4,e[9]==="-"&&(u=-u)),d=new Date(Date.UTC(r,n,i,s,o,a,c)),u&&d.setTime(d.getTime()-u),d}function rD(t){return t.toISOString()}var nD=new nt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:eD,construct:tD,instanceOf:Date,represent:rD});function iD(t){return t==="<<"||t===null}var sD=new nt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:iD}),gh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
63
|
+
\r`;function oD(t){if(t===null)return!1;var e,r,n=0,i=t.length,s=gh;for(r=0;r<i;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function aD(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,s=gh,o=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(e));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function cD(t){var e="",r=0,n,i,s=t.length,o=gh;for(n=0;n<s;n++)n%3===0&&n&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[n];return i=s%3,i===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):i===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):i===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function uD(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var lD=new nt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:oD,construct:aD,predicate:uD,represent:cD}),fD=Object.prototype.hasOwnProperty,hD=Object.prototype.toString;function dD(t){if(t===null)return!0;var e=[],r,n,i,s,o,a=t;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,hD.call(i)!=="[object Object]")return!1;for(s in i)if(fD.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function pD(t){return t!==null?t:[]}var mD=new nt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:dD,construct:pD}),gD=Object.prototype.toString;function yD(t){if(t===null)return!0;var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(n=o[e],gD.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[e]=[i[0],n[i[0]]]}return!0}function _D(t){if(t===null)return[];var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)n=o[e],i=Object.keys(n),s[e]=[i[0],n[i[0]]];return s}var vD=new nt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:yD,construct:_D}),bD=Object.prototype.hasOwnProperty;function ED(t){if(t===null)return!0;var e,r=t;for(e in r)if(bD.call(r,e)&&r[e]!==null)return!1;return!0}function wD(t){return t!==null?t:{}}var xD=new nt("tag:yaml.org,2002:set",{kind:"mapping",resolve:ED,construct:wD}),jb=Q5.extend({implicit:[nD,sD],explicit:[lD,mD,vD,xD]}),gn=Object.prototype.hasOwnProperty,nc=1,Hb=2,$b=3,ic=4,lh=1,SD=2,wb=3,AD=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,RD=/[\x85\u2028\u2029]/,CD=/[,\[\]\{\}]/,Ub=/^(?:!|!!|![a-z\-]+!)$/i,Gb=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function xb(t){return Object.prototype.toString.call(t)}function yr(t){return t===10||t===13}function Qn(t){return t===9||t===32}function wt(t){return t===9||t===32||t===10||t===13}function $i(t){return t===44||t===91||t===93||t===123||t===125}function OD(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function TD(t){return t===120?2:t===117?4:t===85?8:0}function kD(t){return 48<=t&&t<=57?t-48:-1}function Sb(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
|
64
|
+
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function PD(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Vb=new Array(256),Wb=new Array(256);for(Xn=0;Xn<256;Xn++)Vb[Xn]=Sb(Xn)?1:0,Wb[Xn]=Sb(Xn);var Xn;function ID(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||jb,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function zb(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=v5(r),new Et(e,r)}function J(t,e){throw zb(t,e)}function sc(t,e){t.onWarning&&t.onWarning.call(null,zb(t,e))}var Ab={YAML:function(e,r,n){var i,s,o;e.version!==null&&J(e,"duplication of %YAML directive"),n.length!==1&&J(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&J(e,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&J(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&sc(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var i,s;n.length!==2&&J(e,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Ub.test(i)||J(e,"ill-formed tag handle (first argument) of the TAG directive"),gn.call(e.tagMap,i)&&J(e,'there is a previously declared suffix for "'+i+'" tag handle'),Gb.test(s)||J(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{J(e,"tag prefix is malformed: "+s)}e.tagMap[i]=s}};function mn(t,e,r,n){var i,s,o,a;if(e<r){if(a=t.input.slice(e,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||J(t,"expected valid JSON character");else AD.test(a)&&J(t,"the stream contains non-printable characters");t.result+=a}}function Rb(t,e,r,n){var i,s,o,a;for(Ge.isObject(r)||J(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],gn.call(e,s)||(e[s]=r[s],n[s]=!0)}function Ui(t,e,r,n,i,s,o,a,c){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&J(t,"nested arrays are not supported inside keys"),typeof i=="object"&&xb(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&xb(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,f=s.length;u<f;u+=1)Rb(t,e,s[u],r);else Rb(t,e,s,r);else!t.json&&!gn.call(r,i)&&gn.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,J(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[i]=s,delete r[i];return e}function yh(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):J(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function He(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Qn(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(yr(i))for(yh(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&sc(t,"deficient indentation"),n}function cc(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||wt(r)))}function _h(t,e){e===1?t.result+=" ":e>1&&(t.result+=Ge.repeat(`
|
|
65
|
+
`,e-1))}function LD(t,e,r){var n,i,s,o,a,c,u,f,h=t.kind,d=t.result,g;if(g=t.input.charCodeAt(t.position),wt(g)||$i(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(i=t.input.charCodeAt(t.position+1),wt(i)||r&&$i(i)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;g!==0;){if(g===58){if(i=t.input.charCodeAt(t.position+1),wt(i)||r&&$i(i))break}else if(g===35){if(n=t.input.charCodeAt(t.position-1),wt(n))break}else{if(t.position===t.lineStart&&cc(t)||r&&$i(g))break;if(yr(g))if(c=t.line,u=t.lineStart,f=t.lineIndent,He(t,!1,-1),t.lineIndent>=e){a=!0,g=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=u,t.lineIndent=f;break}}a&&(mn(t,s,o,!1),_h(t,t.line-c),s=o=t.position,a=!1),Qn(g)||(o=t.position+1),g=t.input.charCodeAt(++t.position)}return mn(t,s,o,!1),t.result?!0:(t.kind=h,t.result=d,!1)}function ND(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(mn(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else yr(r)?(mn(t,n,i,!0),_h(t,He(t,!1,e)),n=i=t.position):t.position===t.lineStart&&cc(t)?J(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);J(t,"unexpected end of the stream within a single quoted scalar")}function DD(t,e){var r,n,i,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return mn(t,r,t.position,!0),t.position++,!0;if(a===92){if(mn(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),yr(a))He(t,!1,e);else if(a<256&&Vb[a])t.result+=Wb[a],t.position++;else if((o=TD(a))>0){for(i=o,s=0;i>0;i--)a=t.input.charCodeAt(++t.position),(o=OD(a))>=0?s=(s<<4)+o:J(t,"expected hexadecimal character");t.result+=PD(s),t.position++}else J(t,"unknown escape sequence");r=n=t.position}else yr(a)?(mn(t,r,n,!0),_h(t,He(t,!1,e)),r=n=t.position):t.position===t.lineStart&&cc(t)?J(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}J(t,"unexpected end of the stream within a double quoted scalar")}function MD(t,e){var r=!0,n,i,s,o=t.tag,a,c=t.anchor,u,f,h,d,g,m=Object.create(null),E,v,A,P;if(P=t.input.charCodeAt(t.position),P===91)f=93,g=!1,a=[];else if(P===123)f=125,g=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),P=t.input.charCodeAt(++t.position);P!==0;){if(He(t,!0,e),P=t.input.charCodeAt(t.position),P===f)return t.position++,t.tag=o,t.anchor=c,t.kind=g?"mapping":"sequence",t.result=a,!0;r?P===44&&J(t,"expected the node content, but found ','"):J(t,"missed comma between flow collection entries"),v=E=A=null,h=d=!1,P===63&&(u=t.input.charCodeAt(t.position+1),wt(u)&&(h=d=!0,t.position++,He(t,!0,e))),n=t.line,i=t.lineStart,s=t.position,Gi(t,e,nc,!1,!0),v=t.tag,E=t.result,He(t,!0,e),P=t.input.charCodeAt(t.position),(d||t.line===n)&&P===58&&(h=!0,P=t.input.charCodeAt(++t.position),He(t,!0,e),Gi(t,e,nc,!1,!0),A=t.result),g?Ui(t,a,m,v,E,A,n,i,s):h?a.push(Ui(t,null,m,v,E,A,n,i,s)):a.push(E),He(t,!0,e),P=t.input.charCodeAt(t.position),P===44?(r=!0,P=t.input.charCodeAt(++t.position)):r=!1}J(t,"unexpected end of the stream within a flow collection")}function FD(t,e){var r,n,i=lh,s=!1,o=!1,a=e,c=0,u=!1,f,h;if(h=t.input.charCodeAt(t.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)lh===i?i=h===43?wb:SD:J(t,"repeat of a chomping mode identifier");else if((f=kD(h))>=0)f===0?J(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?J(t,"repeat of an indentation width identifier"):(a=e+f-1,o=!0);else break;if(Qn(h)){do h=t.input.charCodeAt(++t.position);while(Qn(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!yr(h)&&h!==0)}for(;h!==0;){for(yh(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),yr(h)){c++;continue}if(t.lineIndent<a){i===wb?t.result+=Ge.repeat(`
|
|
66
66
|
`,s?1+c:c):i===lh&&s&&(t.result+=`
|
|
67
67
|
`);break}for(n?Qn(h)?(u=!0,t.result+=Ge.repeat(`
|
|
68
68
|
`,s?1+c:c)):u?(u=!1,t.result+=Ge.repeat(`
|
|
69
69
|
`,c+1)):c===0?s&&(t.result+=" "):t.result+=Ge.repeat(`
|
|
70
70
|
`,c):t.result+=Ge.repeat(`
|
|
71
|
-
`,s?1+c:c),s=!0,o=!0,c=0,r=t.position;!yr(h)&&h!==0;)h=t.input.charCodeAt(++t.position);mn(t,r,t.position,!1)}return!0}function Cb(t,e){var r,n=t.tag,i=t.anchor,s=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,J(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!wt(o))));){if(a=!0,t.position++,He(t,!0,-1)&&t.lineIndent<=e){s.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,Gi(t,e,$b,!1,!0),s.push(t.result),He(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)J(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}function
|
|
72
|
-
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new
|
|
71
|
+
`,s?1+c:c),s=!0,o=!0,c=0,r=t.position;!yr(h)&&h!==0;)h=t.input.charCodeAt(++t.position);mn(t,r,t.position,!1)}return!0}function Cb(t,e){var r,n=t.tag,i=t.anchor,s=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,J(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!wt(o))));){if(a=!0,t.position++,He(t,!0,-1)&&t.lineIndent<=e){s.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,Gi(t,e,$b,!1,!0),s.push(t.result),He(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)J(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}function qD(t,e,r){var n,i,s,o,a,c,u=t.tag,f=t.anchor,h={},d=Object.create(null),g=null,m=null,E=null,v=!1,A=!1,P;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),P=t.input.charCodeAt(t.position);P!==0;){if(!v&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,J(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),s=t.line,(P===63||P===58)&&wt(n))P===63?(v&&(Ui(t,h,d,g,m,null,o,a,c),g=m=E=null),A=!0,v=!0,i=!0):v?(v=!1,i=!0):J(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,P=n;else{if(o=t.line,a=t.lineStart,c=t.position,!Gi(t,r,Hb,!1,!0))break;if(t.line===s){for(P=t.input.charCodeAt(t.position);Qn(P);)P=t.input.charCodeAt(++t.position);if(P===58)P=t.input.charCodeAt(++t.position),wt(P)||J(t,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Ui(t,h,d,g,m,null,o,a,c),g=m=E=null),A=!0,v=!1,i=!1,g=t.tag,m=t.result;else if(A)J(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=f,!0}else if(A)J(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=f,!0}if((t.line===s||t.lineIndent>e)&&(v&&(o=t.line,a=t.lineStart,c=t.position),Gi(t,e,ic,!0,i)&&(v?m=t.result:E=t.result),v||(Ui(t,h,d,g,m,E,o,a,c),g=m=E=null),He(t,!0,-1),P=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&P!==0)J(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return v&&Ui(t,h,d,g,m,null,o,a,c),A&&(t.tag=u,t.anchor=f,t.kind="mapping",t.result=h),A}function BD(t){var e,r=!1,n=!1,i,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&J(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(n=!0,i="!!",o=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):J(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!wt(o);)o===33&&(n?J(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),Ub.test(i)||J(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),CD.test(s)&&J(t,"tag suffix cannot contain flow indicator characters")}s&&!Gb.test(s)&&J(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{J(t,"tag name is malformed: "+s)}return r?t.tag=s:gn.call(t.tagMap,i)?t.tag=t.tagMap[i]+s:i==="!"?t.tag="!"+s:i==="!!"?t.tag="tag:yaml.org,2002:"+s:J(t,'undeclared tag handle "'+i+'"'),!0}function jD(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&J(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!wt(r)&&!$i(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&J(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function HD(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!wt(n)&&!$i(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&J(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),gn.call(t.anchorMap,r)||J(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],He(t,!0,-1),!0}function Gi(t,e,r,n,i){var s,o,a,c=1,u=!1,f=!1,h,d,g,m,E,v;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=ic===r||$b===r,n&&He(t,!0,-1)&&(u=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;BD(t)||jD(t);)He(t,!0,-1)?(u=!0,a=s,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=u||i),(c===1||ic===r)&&(nc===r||Hb===r?E=e:E=e+1,v=t.position-t.lineStart,c===1?a&&(Cb(t,v)||qD(t,v,E))||MD(t,E)?f=!0:(o&&FD(t,E)||ND(t,E)||DD(t,E)?f=!0:HD(t)?(f=!0,(t.tag!==null||t.anchor!==null)&&J(t,"alias node should not have any properties")):LD(t,E,nc===r)&&(f=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):c===0&&(f=a&&Cb(t,v))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&J(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,d=t.implicitTypes.length;h<d;h+=1)if(m=t.implicitTypes[h],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(gn.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,g=t.typeMap.multi[t.kind||"fallback"],h=0,d=g.length;h<d;h+=1)if(t.tag.slice(0,g[h].tag.length)===g[h].tag){m=g[h];break}m||J(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&J(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):J(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||f}function $D(t){var e=t.position,r,n,i,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(He(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!wt(o);)o=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&J(t,"directive name must not be less than one character in length");o!==0;){for(;Qn(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!yr(o));break}if(yr(o))break;for(r=t.position;o!==0&&!wt(o);)o=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}o!==0&&yh(t),gn.call(Ab,n)?Ab[n](t,n,i):sc(t,'unknown document directive "'+n+'"')}if(He(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,He(t,!0,-1)):s&&J(t,"directives end mark is expected"),Gi(t,t.lineIndent-1,ic,!1,!0),He(t,!0,-1),t.checkLineBreaks&&RD.test(t.input.slice(e,t.position))&&sc(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&cc(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,He(t,!0,-1));return}if(t.position<t.length-1)J(t,"end of the stream or a document separator is expected");else return}function Yb(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
|
72
|
+
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new ID(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,J(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)$D(r);return r.documents}function UD(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=Yb(t,r);if(typeof e!="function")return n;for(var i=0,s=n.length;i<s;i+=1)e(n[i])}function GD(t,e){var r=Yb(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Et("expected a single document in the stream, but found more")}}var VD=UD,WD=GD,Kb={loadAll:VD,load:WD},Zb=Object.prototype.toString,Jb=Object.prototype.hasOwnProperty,vh=65279,zD=9,No=10,YD=13,KD=32,ZD=33,JD=34,hh=35,XD=37,QD=38,eM=39,tM=42,Xb=44,rM=45,oc=58,nM=61,iM=62,sM=63,oM=64,Qb=91,eE=93,aM=96,tE=123,cM=124,rE=125,it={};it[0]="\\0";it[7]="\\a";it[8]="\\b";it[9]="\\t";it[10]="\\n";it[11]="\\v";it[12]="\\f";it[13]="\\r";it[27]="\\e";it[34]='\\"';it[92]="\\\\";it[133]="\\N";it[160]="\\_";it[8232]="\\L";it[8233]="\\P";var uM=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],lM=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function fM(t,e){var r,n,i,s,o,a,c;if(e===null)return{};for(r={},n=Object.keys(e),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&Jb.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function hM(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new Et("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ge.repeat("0",n-e.length)+e}var dM=1,Do=2;function pM(t){this.schema=t.schema||jb,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Ge.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=fM(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?Do:dM,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ob(t,e){for(var r=Ge.repeat(" ",e),n=0,i=-1,s="",o,a=t.length;n<a;)i=t.indexOf(`
|
|
73
73
|
`,n),i===-1?(o=t.slice(n),n=a):(o=t.slice(n,i+1),n=i+1),o.length&&o!==`
|
|
74
74
|
`&&(s+=r),s+=o;return s}function dh(t,e){return`
|
|
75
|
-
`+Ge.repeat(" ",t.indent*e)}function
|
|
75
|
+
`+Ge.repeat(" ",t.indent*e)}function mM(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function ac(t){return t===KD||t===zD}function Mo(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==vh||65536<=t&&t<=1114111}function Tb(t){return Mo(t)&&t!==vh&&t!==YD&&t!==No}function kb(t,e,r){var n=Tb(t),i=n&&!ac(t);return(r?n:n&&t!==Xb&&t!==Qb&&t!==eE&&t!==tE&&t!==rE)&&t!==hh&&!(e===oc&&!i)||Tb(e)&&!ac(e)&&t===hh||e===oc&&i}function gM(t){return Mo(t)&&t!==vh&&!ac(t)&&t!==rM&&t!==sM&&t!==oc&&t!==Xb&&t!==Qb&&t!==eE&&t!==tE&&t!==rE&&t!==hh&&t!==QD&&t!==tM&&t!==ZD&&t!==cM&&t!==nM&&t!==iM&&t!==eM&&t!==JD&&t!==XD&&t!==oM&&t!==aM}function yM(t){return!ac(t)&&t!==oc}function Io(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function nE(t){var e=/^\n* /;return e.test(t)}var iE=1,ph=2,sE=3,oE=4,Hi=5;function _M(t,e,r,n,i,s,o,a){var c,u=0,f=null,h=!1,d=!1,g=n!==-1,m=-1,E=gM(Io(t,0))&&yM(Io(t,t.length-1));if(e||o)for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=Io(t,c),!Mo(u))return Hi;E=E&&kb(u,f,a),f=u}else{for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=Io(t,c),u===No)h=!0,g&&(d=d||c-m-1>n&&t[m+1]!==" ",m=c);else if(!Mo(u))return Hi;E=E&&kb(u,f,a),f=u}d=d||g&&c-m-1>n&&t[m+1]!==" "}return!h&&!d?E&&!o&&!i(t)?iE:s===Do?Hi:ph:r>9&&nE(t)?Hi:o?s===Do?Hi:ph:d?oE:sE}function vM(t,e,r,n,i){t.dump=function(){if(e.length===0)return t.quotingType===Do?'""':"''";if(!t.noCompatMode&&(uM.indexOf(e)!==-1||lM.test(e)))return t.quotingType===Do?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=n||t.flowLevel>-1&&r>=t.flowLevel;function c(u){return mM(t,u)}switch(_M(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!n,i)){case iE:return e;case ph:return"'"+e.replace(/'/g,"''")+"'";case sE:return"|"+Pb(e,t.indent)+Ib(Ob(e,s));case oE:return">"+Pb(e,t.indent)+Ib(Ob(bM(e,o),s));case Hi:return'"'+EM(e)+'"';default:throw new Et("impossible error: invalid scalar style")}}()}function Pb(t,e){var r=nE(t)?String(e):"",n=t[t.length-1]===`
|
|
76
76
|
`,i=n&&(t[t.length-2]===`
|
|
77
77
|
`||t===`
|
|
78
78
|
`),s=i?"+":n?"":"-";return r+s+`
|
|
79
79
|
`}function Ib(t){return t[t.length-1]===`
|
|
80
|
-
`?t.slice(0,-1):t}function
|
|
80
|
+
`?t.slice(0,-1):t}function bM(t,e){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=t.indexOf(`
|
|
81
81
|
`);return u=u!==-1?u:t.length,r.lastIndex=u,Lb(t.slice(0,u),e)}(),i=t[0]===`
|
|
82
82
|
`||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],c=o[2];s=c[0]===" ",n+=a+(!i&&!s&&c!==""?`
|
|
83
83
|
`:"")+Lb(c,e),i=s}return n}function Lb(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,c="";n=r.exec(t);)a=n.index,a-i>e&&(s=o>i?o:a,c+=`
|
|
84
84
|
`+t.slice(i,s),i=s+1),o=a;return c+=`
|
|
85
85
|
`,t.length-i>e&&o>i?c+=t.slice(i,o)+`
|
|
86
|
-
`+t.slice(o+1):c+=t.slice(i),c.slice(1)}function
|
|
87
|
-
`:""}var OM=CM,TM={dump:OM};function bh(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var Uz=Kb.load,Gz=Kb.loadAll,Vz=TM.dump;var Wz=bh("safeLoad","load"),zz=bh("safeLoadAll","loadAll"),Yz=bh("safeDump","dump");var CH=le(zx()),OH=le(require("json5"));var Se={};vI(Se,{bold:()=>vH,dimmed:()=>EH,error:()=>gA,grey:()=>wH,info:()=>_H,item:()=>xH,log:()=>An,turboBlue:()=>ms,turboGradient:()=>yH,turboLoader:()=>pA,turboRed:()=>hA,underline:()=>bH,warn:()=>mA,yellow:()=>dA});l();var St=le(qc()),cA=le(NS()),uA=le(aA()),lA="#0099F7",fA="#F11712",gH="#FFFF00",jp=t=>{let e=SH(t);return r=>`\x1B[38;5;${e}m${r}${(0,St.reset)("")}`},yH=(0,uA.default)(lA,fA),ms=jp(lA),hA=jp(fA),dA=jp(gH),pA=t=>(0,cA.default)({text:t,spinner:{frames:[" ",ms("> "),ms(">> "),ms(">>>")]}}),_H=(...t)=>{An(ms((0,St.bold)(">>>")),t.join(" "))},vH=(...t)=>{An((0,St.bold)(t.join(" ")))},bH=(...t)=>{An((0,St.underline)(t.join(" ")))},EH=(...t)=>{An((0,St.dim)(t.join(" ")))},wH=(...t)=>{An((0,St.gray)(t.join(" ")))},xH=(...t)=>{An(ms((0,St.bold)(" \u2022")),t.join(" "))},An=(...t)=>{console.log(...t)},mA=(...t)=>{console.error(dA((0,St.bold)(">>>")),t.join(" "))},gA=(...t)=>{console.error(hA((0,St.bold)(">>>")),t.join(" "))};function SH(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,n=Math.floor(e/256)%256,i=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)}l();var E6=le(require("os")),w6=le(UR());l();l();var x6=le(require("path"));l();var hP=require("stream"),dP=require("util"),pP=require("path"),a7=require("os"),mP=require("fs"),c7=le(HT());var GX=(0,dP.promisify)(hP.Stream.pipeline);l();l();var _7=le(require("path")),v7=le(wP());l();l();var UP=le(qc());l();var me;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(me||(me={}));var Jy;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Jy||(Jy={}));var U=me.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Un=t=>{switch(typeof t){case"undefined":return U.undefined;case"string":return U.string;case"number":return isNaN(t)?U.nan:U.number;case"boolean":return U.boolean;case"function":return U.function;case"bigint":return U.bigint;case"symbol":return U.symbol;case"object":return Array.isArray(t)?U.array:t===null?U.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?U.promise:typeof Map<"u"&&t instanceof Map?U.map:typeof Set<"u"&&t instanceof Set?U.set:typeof Date<"u"&&t instanceof Date?U.date:U.object;default:return U.unknown}},N=me.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),b7=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Bt=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,me.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Bt.create=t=>new Bt(t);var Pa=(t,e)=>{let r;switch(t.code){case N.invalid_type:t.received===U.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case N.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,me.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:r=`Unrecognized key(s) in object: ${me.joinValues(t.keys,", ")}`;break;case N.invalid_union:r="Invalid input";break;case N.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${me.joinValues(t.options)}`;break;case N.invalid_enum_value:r=`Invalid enum value. Expected ${me.joinValues(t.options)}, received '${t.received}'`;break;case N.invalid_arguments:r="Invalid function arguments";break;case N.invalid_return_type:r="Invalid function return type";break;case N.invalid_date:r="Invalid date";break;case N.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:me.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case N.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case N.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case N.custom:r="Invalid input";break;case N.invalid_intersection_types:r="Intersection results could not be merged";break;case N.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case N.not_finite:r="Number must be finite";break;default:r=e.defaultError,me.assertNever(t)}return{message:r}},AP=Pa;function E7(t){AP=t}function tf(){return AP}var rf=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s},a="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:e,defaultError:a}).message;return{...i,path:s,message:i.message||a}},w7=[];function G(t,e){let r=rf({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,tf(),Pa].filter(n=>!!n)});t.common.issues.push(r)}var Xe=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return oe;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r)n.push({key:await i.key,value:await i.value});return Xe.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return oe;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},oe=Object.freeze({status:"aborted"}),RP=t=>({status:"dirty",value:t}),_t=t=>({status:"valid",value:t}),Xy=t=>t.status==="aborted",Qy=t=>t.status==="dirty",Ia=t=>t.status==="valid",nf=t=>typeof Promise<"u"&&t instanceof Promise,X;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(X||(X={}));var ir=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},xP=(t,e)=>{if(Ia(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Bt(t.common.issues);return this._error=r,this._error}}};function ae(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:n!=null?n:a.defaultError}:{message:r!=null?r:a.defaultError},description:i}}var ce=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Un(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Un(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Xe,ctx:{common:e.parent.common,data:e.data,parsedType:Un(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(nf(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;let i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Un(e)},s=this._parseSync({data:e,path:i.path,parent:i});return xP(i,s)}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Un(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(nf(i)?i:Promise.resolve(i));return xP(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:N.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new Ht({schema:this,typeName:te.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return pr.create(this,this._def)}nullable(){return fn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jt.create(this,this._def)}promise(){return Wn.create(this,this._def)}or(e){return Ri.create([this,e],this._def)}and(e){return Ci.create(this,e,this._def)}transform(e){return new Ht({...ae(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Ii({...ae(this._def),innerType:this,defaultValue:r,typeName:te.ZodDefault})}brand(){return new sf({typeName:te.ZodBranded,type:this,...ae(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new oo({...ae(this._def),innerType:this,catchValue:r,typeName:te.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Li.create(this,e)}readonly(){return co.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},x7=/^c[^\s-]{8,}$/i,S7=/^[a-z][a-z0-9]*$/,A7=/^[0-9A-HJKMNP-TV-Z]{26}$/,R7=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,C7=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,O7="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Zy,T7=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,k7=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,P7=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function I7(t,e){return!!((e==="v4"||!e)&&T7.test(t)||(e==="v6"||!e)&&k7.test(t))}var qt=class extends ce{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==U.string){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.string,received:s.parsedType}),oe}let n=new Xe,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?G(i,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&G(i,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")C7.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"email",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")Zy||(Zy=new RegExp(O7,"u")),Zy.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"emoji",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")R7.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"uuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")x7.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"cuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")S7.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"cuid2",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")A7.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"ulid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),G(i,{validation:"url",code:N.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"regex",code:N.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?P7(s).test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="ip"?I7(e.data,s.version)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"ip",code:N.invalid_string,message:s.message}),n.dirty()):me.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:N.invalid_string,...X.errToObj(n)})}_addCheck(e){return new qt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...X.errToObj(e)})}url(e){return this._addCheck({kind:"url",...X.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...X.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...X.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...X.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...X.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...X.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...X.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,...X.errToObj(e==null?void 0:e.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...X.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...X.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...X.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...X.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...X.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...X.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...X.errToObj(r)})}nonempty(e){return this.min(1,X.errToObj(e))}trim(){return new qt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new qt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new qt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};qt.create=t=>{var e;return new qt({checks:[],typeName:te.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...ae(t)})};function L7(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(t.toFixed(i).replace(".","")),o=parseInt(e.toFixed(i).replace(".",""));return s%o/Math.pow(10,i)}var Ir=class extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==U.number){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.number,received:s.parsedType}),oe}let n,i=new Xe;for(let s of this._def.checks)s.kind==="int"?me.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),G(n,{code:N.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?L7(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),G(n,{code:N.not_finite,message:s.message}),i.dirty()):me.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,X.toString(r))}gt(e,r){return this.setLimit("min",e,!1,X.toString(r))}lte(e,r){return this.setLimit("max",e,!0,X.toString(r))}lt(e,r){return this.setLimit("max",e,!1,X.toString(r))}setLimit(e,r,n,i){return new Ir({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:X.toString(i)}]})}_addCheck(e){return new Ir({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:X.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:X.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:X.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:X.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:X.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:X.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:X.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:X.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:X.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&me.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Ir.create=t=>new Ir({checks:[],typeName:te.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...ae(t)});var Lr=class extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==U.bigint){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.bigint,received:s.parsedType}),oe}let n,i=new Xe;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):me.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,X.toString(r))}gt(e,r){return this.setLimit("min",e,!1,X.toString(r))}lte(e,r){return this.setLimit("max",e,!0,X.toString(r))}lt(e,r){return this.setLimit("max",e,!1,X.toString(r))}setLimit(e,r,n,i){return new Lr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:X.toString(i)}]})}_addCheck(e){return new Lr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:X.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:X.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:X.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:X.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:X.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Lr.create=t=>{var e;return new Lr({checks:[],typeName:te.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...ae(t)})};var xi=class extends ce{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==U.boolean){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.boolean,received:n.parsedType}),oe}return _t(e.data)}};xi.create=t=>new xi({typeName:te.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...ae(t)});var un=class extends ce{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==U.date){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.date,received:s.parsedType}),oe}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_date}),oe}let n=new Xe,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):me.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new un({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:X.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:X.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};un.create=t=>new un({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:te.ZodDate,...ae(t)});var ro=class extends ce{_parse(e){if(this._getType(e)!==U.symbol){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.symbol,received:n.parsedType}),oe}return _t(e.data)}};ro.create=t=>new ro({typeName:te.ZodSymbol,...ae(t)});var Si=class extends ce{_parse(e){if(this._getType(e)!==U.undefined){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.undefined,received:n.parsedType}),oe}return _t(e.data)}};Si.create=t=>new Si({typeName:te.ZodUndefined,...ae(t)});var Ai=class extends ce{_parse(e){if(this._getType(e)!==U.null){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.null,received:n.parsedType}),oe}return _t(e.data)}};Ai.create=t=>new Ai({typeName:te.ZodNull,...ae(t)});var Vn=class extends ce{constructor(){super(...arguments),this._any=!0}_parse(e){return _t(e.data)}};Vn.create=t=>new Vn({typeName:te.ZodAny,...ae(t)});var cn=class extends ce{constructor(){super(...arguments),this._unknown=!0}_parse(e){return _t(e.data)}};cn.create=t=>new cn({typeName:te.ZodUnknown,...ae(t)});var mr=class extends ce{_parse(e){let r=this._getOrReturnCtx(e);return G(r,{code:N.invalid_type,expected:U.never,received:r.parsedType}),oe}};mr.create=t=>new mr({typeName:te.ZodNever,...ae(t)});var no=class extends ce{_parse(e){if(this._getType(e)!==U.undefined){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.void,received:n.parsedType}),oe}return _t(e.data)}};no.create=t=>new no({typeName:te.ZodVoid,...ae(t)});var jt=class extends ce{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==U.array)return G(r,{code:N.invalid_type,expected:U.array,received:r.parsedType}),oe;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(G(r,{code:o?N.too_big:N.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(G(r,{code:N.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(G(r,{code:N.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new ir(r,o,r.path,a)))).then(o=>Xe.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new ir(r,o,r.path,a)));return Xe.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new jt({...this._def,minLength:{value:e,message:X.toString(r)}})}max(e,r){return new jt({...this._def,maxLength:{value:e,message:X.toString(r)}})}length(e,r){return new jt({...this._def,exactLength:{value:e,message:X.toString(r)}})}nonempty(e){return this.min(1,e)}};jt.create=(t,e)=>new jt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...ae(e)});function to(t){if(t instanceof Oe){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=pr.create(to(n))}return new Oe({...t._def,shape:()=>e})}else return t instanceof jt?new jt({...t._def,type:to(t.element)}):t instanceof pr?pr.create(to(t.unwrap())):t instanceof fn?fn.create(to(t.unwrap())):t instanceof sr?sr.create(t.items.map(e=>to(e))):t}var Oe=class extends ce{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=me.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==U.object){let u=this._getOrReturnCtx(e);return G(u,{code:N.invalid_type,expected:U.object,received:u.parsedType}),oe}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof mr&&this._def.unknownKeys==="strip"))for(let u in i.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let f=s[u],h=i.data[u];c.push({key:{status:"valid",value:u},value:f._parse(new ir(i,h,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof mr){let u=this._def.unknownKeys;if(u==="passthrough")for(let f of a)c.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(u==="strict")a.length>0&&(G(i,{code:N.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let f of a){let h=i.data[f];c.push({key:{status:"valid",value:f},value:u._parse(new ir(i,h,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let u=[];for(let f of c){let h=await f.key;u.push({key:h,value:await f.value,alwaysSet:f.alwaysSet})}return u}).then(u=>Xe.mergeObjectSync(n,u)):Xe.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return X.errToObj,new Oe({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,s,o,a;let c=(o=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=X.errToObj(e).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new Oe({...this._def,unknownKeys:"strip"})}passthrough(){return new Oe({...this._def,unknownKeys:"passthrough"})}extend(e){return new Oe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Oe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:te.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Oe({...this._def,catchall:e})}pick(e){let r={};return me.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new Oe({...this._def,shape:()=>r})}omit(e){let r={};return me.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new Oe({...this._def,shape:()=>r})}deepPartial(){return to(this)}partial(e){let r={};return me.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}),new Oe({...this._def,shape:()=>r})}required(e){let r={};return me.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof pr;)s=s._def.innerType;r[n]=s}}),new Oe({...this._def,shape:()=>r})}keyof(){return CP(me.objectKeys(this.shape))}};Oe.create=(t,e)=>new Oe({shape:()=>t,unknownKeys:"strip",catchall:mr.create(),typeName:te.ZodObject,...ae(e)});Oe.strictCreate=(t,e)=>new Oe({shape:()=>t,unknownKeys:"strict",catchall:mr.create(),typeName:te.ZodObject,...ae(e)});Oe.lazycreate=(t,e)=>new Oe({shape:t,unknownKeys:"strip",catchall:mr.create(),typeName:te.ZodObject,...ae(e)});var Ri=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new Bt(a.ctx.common.issues));return G(r,{code:N.invalid_union,unionErrors:o}),oe}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let c of n){let u={...r,common:{...r.common,issues:[]},parent:null},f=c._parseSync({data:r.data,path:r.path,parent:u});if(f.status==="valid")return f;f.status==="dirty"&&!s&&(s={result:f,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new Bt(c));return G(r,{code:N.invalid_union,unionErrors:a}),oe}}get options(){return this._def.options}};Ri.create=(t,e)=>new Ri({options:t,typeName:te.ZodUnion,...ae(e)});var ef=t=>t instanceof Ti?ef(t.schema):t instanceof Ht?ef(t.innerType()):t instanceof ki?[t.value]:t instanceof Nr?t.options:t instanceof Pi?Object.keys(t.enum):t instanceof Ii?ef(t._def.innerType):t instanceof Si?[void 0]:t instanceof Ai?[null]:null,io=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.object)return G(r,{code:N.invalid_type,expected:U.object,received:r.parsedType}),oe;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(G(r,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),oe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=ef(s.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new io({typeName:te.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...ae(n)})}};function e0(t,e){let r=Un(t),n=Un(e);if(t===e)return{valid:!0,data:t};if(r===U.object&&n===U.object){let i=me.objectKeys(e),s=me.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let c=e0(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===U.array&&n===U.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],c=e0(o,a);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===U.date&&n===U.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var Ci=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(Xy(s)||Xy(o))return oe;let a=e0(s.value,o.value);return a.valid?((Qy(s)||Qy(o))&&r.dirty(),{status:r.value,value:a.data}):(G(n,{code:N.invalid_intersection_types}),oe)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Ci.create=(t,e,r)=>new Ci({left:t,right:e,typeName:te.ZodIntersection,...ae(r)});var sr=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.array)return G(n,{code:N.invalid_type,expected:U.array,received:n.parsedType}),oe;if(n.data.length<this._def.items.length)return G(n,{code:N.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),oe;!this._def.rest&&n.data.length>this._def.items.length&&(G(n,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new ir(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>Xe.mergeArray(r,o)):Xe.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new sr({...this._def,rest:e})}};sr.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new sr({items:t,typeName:te.ZodTuple,rest:null,...ae(e)})};var Oi=class extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.object)return G(n,{code:N.invalid_type,expected:U.object,received:n.parsedType}),oe;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new ir(n,a,n.path,a)),value:o._parse(new ir(n,n.data[a],n.path,a))});return n.common.async?Xe.mergeObjectAsync(r,i):Xe.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof ce?new Oi({keyType:e,valueType:r,typeName:te.ZodRecord,...ae(n)}):new Oi({keyType:qt.create(),valueType:e,typeName:te.ZodRecord,...ae(r)})}},so=class extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.map)return G(n,{code:N.invalid_type,expected:U.map,received:n.parsedType}),oe;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,c],u)=>({key:i._parse(new ir(n,a,n.path,[u,"key"])),value:s._parse(new ir(n,c,n.path,[u,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,f=await c.value;if(u.status==="aborted"||f.status==="aborted")return oe;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),a.set(u.value,f.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,f=c.value;if(u.status==="aborted"||f.status==="aborted")return oe;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),a.set(u.value,f.value)}return{status:r.value,value:a}}}};so.create=(t,e,r)=>new so({valueType:e,keyType:t,typeName:te.ZodMap,...ae(r)});var ln=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.set)return G(n,{code:N.invalid_type,expected:U.set,received:n.parsedType}),oe;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(G(n,{code:N.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(G(n,{code:N.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(c){let u=new Set;for(let f of c){if(f.status==="aborted")return oe;f.status==="dirty"&&r.dirty(),u.add(f.value)}return{status:r.value,value:u}}let a=[...n.data.values()].map((c,u)=>s._parse(new ir(n,c,n.path,u)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new ln({...this._def,minSize:{value:e,message:X.toString(r)}})}max(e,r){return new ln({...this._def,maxSize:{value:e,message:X.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};ln.create=(t,e)=>new ln({valueType:t,minSize:null,maxSize:null,typeName:te.ZodSet,...ae(e)});var Gn=class extends ce{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.function)return G(r,{code:N.invalid_type,expected:U.function,received:r.parsedType}),oe;function n(a,c){return rf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,tf(),Pa].filter(u=>!!u),issueData:{code:N.invalid_arguments,argumentsError:c}})}function i(a,c){return rf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,tf(),Pa].filter(u=>!!u),issueData:{code:N.invalid_return_type,returnTypeError:c}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Wn){let a=this;return _t(async function(...c){let u=new Bt([]),f=await a._def.args.parseAsync(c,s).catch(g=>{throw u.addIssue(n(c,g)),u}),h=await Reflect.apply(o,this,f);return await a._def.returns._def.type.parseAsync(h,s).catch(g=>{throw u.addIssue(i(h,g)),u})})}else{let a=this;return _t(function(...c){let u=a._def.args.safeParse(c,s);if(!u.success)throw new Bt([n(c,u.error)]);let f=Reflect.apply(o,this,u.data),h=a._def.returns.safeParse(f,s);if(!h.success)throw new Bt([i(f,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Gn({...this._def,args:sr.create(e).rest(cn.create())})}returns(e){return new Gn({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new Gn({args:e||sr.create([]).rest(cn.create()),returns:r||cn.create(),typeName:te.ZodFunction,...ae(n)})}},Ti=class extends ce{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Ti.create=(t,e)=>new Ti({getter:t,typeName:te.ZodLazy,...ae(e)});var ki=class extends ce{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return G(r,{received:r.data,code:N.invalid_literal,expected:this._def.value}),oe}return{status:"valid",value:e.data}}get value(){return this._def.value}};ki.create=(t,e)=>new ki({value:t,typeName:te.ZodLiteral,...ae(e)});function CP(t,e){return new Nr({values:t,typeName:te.ZodEnum,...ae(e)})}var Nr=class extends ce{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return G(r,{expected:me.joinValues(n),received:r.parsedType,code:N.invalid_type}),oe}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),n=this._def.values;return G(r,{received:r.data,code:N.invalid_enum_value,options:n}),oe}return _t(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return Nr.create(e)}exclude(e){return Nr.create(this.options.filter(r=>!e.includes(r)))}};Nr.create=CP;var Pi=class extends ce{_parse(e){let r=me.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==U.string&&n.parsedType!==U.number){let i=me.objectValues(r);return G(n,{expected:me.joinValues(i),received:n.parsedType,code:N.invalid_type}),oe}if(r.indexOf(e.data)===-1){let i=me.objectValues(r);return G(n,{received:n.data,code:N.invalid_enum_value,options:i}),oe}return _t(e.data)}get enum(){return this._def.values}};Pi.create=(t,e)=>new Pi({values:t,typeName:te.ZodNativeEnum,...ae(e)});var Wn=class extends ce{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.promise&&r.common.async===!1)return G(r,{code:N.invalid_type,expected:U.promise,received:r.parsedType}),oe;let n=r.parsedType===U.promise?r.data:Promise.resolve(r.data);return _t(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Wn.create=(t,e)=>new Wn({type:t,typeName:te.ZodPromise,...ae(e)});var Ht=class extends ce{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{G(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:n.path,parent:n})):this._def.schema._parseSync({data:o,path:n.path,parent:n})}if(i.type==="refinement"){let o=a=>{let c=i.refinement(a,s);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?oe:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?oe:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ia(o))return o;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>Ia(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):o);me.assertNever(i)}};Ht.create=(t,e,r)=>new Ht({schema:t,typeName:te.ZodEffects,effect:e,...ae(r)});Ht.createWithPreprocess=(t,e,r)=>new Ht({schema:e,effect:{type:"preprocess",transform:t},typeName:te.ZodEffects,...ae(r)});var pr=class extends ce{_parse(e){return this._getType(e)===U.undefined?_t(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};pr.create=(t,e)=>new pr({innerType:t,typeName:te.ZodOptional,...ae(e)});var fn=class extends ce{_parse(e){return this._getType(e)===U.null?_t(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fn.create=(t,e)=>new fn({innerType:t,typeName:te.ZodNullable,...ae(e)});var Ii=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===U.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Ii.create=(t,e)=>new Ii({innerType:t,typeName:te.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ae(e)});var oo=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return nf(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Bt(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Bt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};oo.create=(t,e)=>new oo({innerType:t,typeName:te.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ae(e)});var ao=class extends ce{_parse(e){if(this._getType(e)!==U.nan){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.nan,received:n.parsedType}),oe}return{status:"valid",value:e.data}}};ao.create=t=>new ao({typeName:te.ZodNaN,...ae(t)});var N7=Symbol("zod_brand"),sf=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Li=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?oe:s.status==="dirty"?(r.dirty(),RP(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?oe:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new Li({in:e,out:r,typeName:te.ZodPipeline})}},co=class extends ce{_parse(e){let r=this._def.innerType._parse(e);return Ia(r)&&(r.value=Object.freeze(r.value)),r}};co.create=(t,e)=>new co({innerType:t,typeName:te.ZodReadonly,...ae(e)});var OP=(t,e={},r)=>t?Vn.create().superRefine((n,i)=>{var s,o;if(!t(n)){let a=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(o=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,u=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...u,fatal:c})}}):Vn.create(),D7={object:Oe.lazycreate},te;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(te||(te={}));var M7=(t,e={message:`Input not instance of ${t.name}`})=>OP(r=>r instanceof t,e),TP=qt.create,kP=Ir.create,F7=ao.create,q7=Lr.create,PP=xi.create,B7=un.create,j7=ro.create,H7=Si.create,$7=Ai.create,U7=Vn.create,G7=cn.create,V7=mr.create,W7=no.create,z7=jt.create,Y7=Oe.create,K7=Oe.strictCreate,Z7=Ri.create,J7=io.create,X7=Ci.create,Q7=sr.create,eV=Oi.create,tV=so.create,rV=ln.create,nV=Gn.create,iV=Ti.create,sV=ki.create,oV=Nr.create,aV=Pi.create,cV=Wn.create,SP=Ht.create,uV=pr.create,lV=fn.create,fV=Ht.createWithPreprocess,hV=Li.create,dV=()=>TP().optional(),pV=()=>kP().optional(),mV=()=>PP().optional(),gV={string:t=>qt.create({...t,coerce:!0}),number:t=>Ir.create({...t,coerce:!0}),boolean:t=>xi.create({...t,coerce:!0}),bigint:t=>Lr.create({...t,coerce:!0}),date:t=>un.create({...t,coerce:!0})},yV=oe,uo=Object.freeze({__proto__:null,defaultErrorMap:Pa,setErrorMap:E7,getErrorMap:tf,makeIssue:rf,EMPTY_PATH:w7,addIssueToContext:G,ParseStatus:Xe,INVALID:oe,DIRTY:RP,OK:_t,isAborted:Xy,isDirty:Qy,isValid:Ia,isAsync:nf,get util(){return me},get objectUtil(){return Jy},ZodParsedType:U,getParsedType:Un,ZodType:ce,ZodString:qt,ZodNumber:Ir,ZodBigInt:Lr,ZodBoolean:xi,ZodDate:un,ZodSymbol:ro,ZodUndefined:Si,ZodNull:Ai,ZodAny:Vn,ZodUnknown:cn,ZodNever:mr,ZodVoid:no,ZodArray:jt,ZodObject:Oe,ZodUnion:Ri,ZodDiscriminatedUnion:io,ZodIntersection:Ci,ZodTuple:sr,ZodRecord:Oi,ZodMap:so,ZodSet:ln,ZodFunction:Gn,ZodLazy:Ti,ZodLiteral:ki,ZodEnum:Nr,ZodNativeEnum:Pi,ZodPromise:Wn,ZodEffects:Ht,ZodTransformer:Ht,ZodOptional:pr,ZodNullable:fn,ZodDefault:Ii,ZodCatch:oo,ZodNaN:ao,BRAND:N7,ZodBranded:sf,ZodPipeline:Li,ZodReadonly:co,custom:OP,Schema:ce,ZodSchema:ce,late:D7,get ZodFirstPartyTypeKind(){return te},coerce:gV,any:U7,array:z7,bigint:q7,boolean:PP,date:B7,discriminatedUnion:J7,effect:SP,enum:oV,function:nV,instanceof:M7,intersection:X7,lazy:iV,literal:sV,map:tV,nan:F7,nativeEnum:aV,never:V7,null:$7,nullable:lV,number:kP,object:Y7,oboolean:mV,onumber:pV,optional:uV,ostring:dV,pipeline:hV,preprocess:fV,promise:cV,record:eV,set:rV,strictObject:K7,string:TP,symbol:j7,transformer:SP,tuple:Q7,undefined:H7,union:Z7,unknown:G7,void:W7,NEVER:yV,ZodIssueCode:N,quotelessJson:b7,ZodError:Bt});l();var o0=le(require("os")),jP=le(require("crypto")),HP=le(require("path")),$P=le(BP());function CV(t){let e=process.version,r=o0.default.type(),n=o0.default.arch();return`${t.name} ${t.version} ${e} ${r} ${n}`}async function OV(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,$P.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return HP.default.join(t,"turborepo","telemetry.json")}function TV({input:t,salt:e}){return jP.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var lo={buildUserAgent:CV,oneWayHashWithSalt:TV,defaultConfigPath:OV};var kV="TURBO_TELEMETRY_DEBUG",PV="TURBO_TELEMETRY_DISABLED",IV="TURBO_TELEMETRY_MESSAGE_DISABLED",LV="DO_NOT_TRACK",NV=uo.object({telemetry_enabled:uo.boolean(),telemetry_id:uo.string(),telemetry_salt:uo.string(),telemetry_alerted:uo.string().optional()}),Tt=class{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static fromConfigPath(e){try{let r=(0,fo.readFileSync)(e,"utf-8"),n=JSON.parse(r),i=Tt.validateConfig(n);return new Tt({configPath:e,config:i})}catch{return Tt.tryRemove({configPath:e})?Tt.create({configPath:e}):void 0}}static async fromDefaultConfig(){try{let e=await lo.defaultConfigPath();return Tt.fromConfigPath(e)}catch{return}}static validateConfig(e){try{return NV.parse(e)}catch{throw new Error("Config is invalid.")}}static create({configPath:e}){let r=(0,a0.randomUUID)(),n=(0,a0.randomUUID)(),i=lo.oneWayHashWithSalt({input:r,salt:n}),s=new Tt({configPath:e,config:{telemetry_enabled:!0,telemetry_id:i,telemetry_salt:n}});if(s.tryWrite())return s}tryWrite(){try{let e=JSON.stringify(this.config,null,2);return(0,fo.writeFileSync)(this.configPath,e),!0}catch{return!1}}static tryRemove({configPath:e}){try{return(0,fo.rmSync)(e,{force:!0}),!0}catch{return!1}}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[LV]||"0",r=process.env[PV]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[IV]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(Se.log(),Se.bold("Attention:"),Se.grey("Turborepo now collects completely anonymous telemetry regarding usage."),Se.grey("This information is used to shape the Turborepo roadmap and prioritize features."),Se.grey("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),Se.underline((0,UP.gray)("https://turbo.build/repo/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.tryWrite()}disable(){this.config.telemetry_enabled=!1,this.tryWrite()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date().toISOString(),this.tryWrite()),!0}oneWayHash(e){return lo.oneWayHashWithSalt({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[kV]||"0";return e==="1"||e.toLowerCase()==="true"}};l();l();var c0=require("crypto"),GP=le(fP());var DV=20,MV="/api/turborepo/v1/events",Ni=class{constructor({api:e,packageInfo:r,config:n,opts:i}){this.batchSize=DV;this.timeout=250;this.sessionId=(0,c0.randomUUID)();this.eventBatches=[];this.events=[];let s=new URL(MV,e);this.api=s.toString(),this.packageInfo=r,this.config=n,i!=null&&i.timeout&&(this.timeout=i.timeout),i!=null&&i.batchSize&&(this.batchSize=i.batchSize)}hasPendingEvents(){return this.events.length!==0}async waitForFlush(){await Promise.all(this.eventBatches)}flushEvents(){let e=this.events.splice(0,this.batchSize);this.config.isEnabled()&&this.eventBatches.push(GP.default.post(this.api,{timeout:this.timeout,json:e,headers:{"x-turbo-telemetry-id":this.config.id,"x-turbo-session-id":this.sessionId,"User-Agent":lo.buildUserAgent(this.packageInfo)}}))}track({key:e,value:r,parentId:n,isSensitive:i}){let s={id:(0,c0.randomUUID)(),key:e,value:i?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:n};return Tt.isDebug()&&(Se.log(),Se.bold("[telemetry event]"),Se.dimmed(JSON.stringify(s,null,2)),Se.log()),this.config.isEnabled()&&(this.events.push({package:s}),this.events.length>=this.batchSize&&this.flushEvents()),s}async close(){for(;this.hasPendingEvents();)this.flushEvents();try{await this.waitForFlush()}catch{}}trackCliOption({option:e,value:r}){return this.track({key:`option:${e}`,value:r})}trackCliArgument({argument:e,value:r}){return this.track({key:`argument:${e}`,value:r})}trackCliCommand({command:e,value:r}){return this.track({key:`command:${e}`,value:r})}trackCommandStatus({command:e,status:r}){return this.trackCliCommand({command:e,value:r})}trackCommandWarning(e){return this.track({key:"warning",value:e})}trackCommandError(e){return this.track({key:"error",value:e})}};var La=class extends Ni{trackOptionExample(e){if(e)return this.trackCliOption({option:"example",value:e})}trackOptionPackageManager(e){if(e)return this.trackCliOption({option:"package_manager",value:e})}trackOptionSkipInstall(e){if(e)return this.trackCliOption({option:"skip_install",value:e.toString()})}trackOptionSkipTransforms(e){if(e)return this.trackCliOption({option:"skip_transforms",value:e.toString()})}trackOptionTurboVersion(e){if(e)return this.trackCliOption({option:"turbo_version",value:e})}trackOptionExamplePath(e){if(e)return this.trackCliOption({option:"example_path",value:e})}trackArgumentDirectory(e){if(e)return this.trackCliArgument({argument:"project_directory",value:"provided"})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};l();var KP=le(YP());var qV=["build","test","lint","typecheck","checktypes","check-types","type-check","check"],Na=class extends Ni{trackCI(){var e;return this.track({key:"ci",value:(e=KP.name)!=null?e:"unknown"})}trackArgumentWorkspace(e){if(e)return this.trackCliArgument({argument:"workspace",value:"provided"})}trackOptionTask(e){if(e)return this.trackCliOption({option:"task",value:qV.includes(e)?e:"other"})}trackOptionFallback(e){if(e)return this.trackCliOption({option:"fallback",value:e})}trackOptionDirectory(e){if(e)return this.trackCliOption({option:"directory",value:"custom"})}trackOptionMaxBuffer(e){if(e!==void 0)return this.trackCliOption({option:"max_buffer",value:e.toString()})}};var BV={"create-turbo":La,"turbo-ignore":Na},jV="https://telemetry.vercel.com";async function u0({packageInfo:t,opts:e}){let r=BV[t.name],n=await Tt.fromDefaultConfig();return n?(n.showAlert(),{telemetry:new r({api:jV,packageInfo:t,config:n,opts:e})}):{telemetry:void 0}}l();var Di=le(qc());var ZP="status",HV=["enable","disable",ZP];function $V(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();Se.log(`Status: ${e?(0,Di.bold)((0,Di.green)("Enabled")):(0,Di.bold)((0,Di.red)("Disabled"))}`),Se.log(),e?Se.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):Se.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),Se.log("Learn more: https://turbo.build/repo/docs/telemetry")}function UV(t,e){if(!e.telemetry){Se.error("Telemetry could not be initialized");return}t==="enable"?(e.telemetry.config.enable(),Se.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),Se.bold("Success!")),Se.log(),$V(e)}function l0(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new D0("[action]","Action to perform").choices(HV).default(ZP)).action(UV)}var af={name:"turbo-ignore",version:"2.0.13",description:"",homepage:"https://turbo.build/repo",keywords:[],author:"Jared Palmer",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/turbo-ignore"},bugs:{url:"https://github.com/vercel/turborepo/issues"},files:["dist"],bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src __tests__","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{json5:"^2.2.3"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@types/jest":"^27.4.0","@types/node":"^18.17.2",commander:"^11.0.0",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^5.12.1",typescript:"5.3.3"}};l();var uI=require("child_process"),lI=le(require("path")),fI=require("fs");l();var JP=require("child_process");l();var f0="\u226B ";function xe(...t){console.log(f0,...t)}function or(...t){console.error(f0,...t)}function h0(...t){console.warn(f0,...t)}function d0(...t){console.log(...t)}function VV(t){try{return(0,JP.execSync)(`git cat-file -t ${t}`,{stdio:"ignore"}),!0}catch{return!1}}function p0(t){return t.fallback?(xe(`Falling back to ref ${t.fallback}`),{ref:t.fallback,type:"customFallback"}):null}function XP(t){let{workspace:e}=t;return process.env.VERCEL==="1"?process.env.VERCEL_GIT_PREVIOUS_SHA?VV(process.env.VERCEL_GIT_PREVIOUS_SHA)?(xe(`Found previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),{ref:process.env.VERCEL_GIT_PREVIOUS_SHA,type:"previousDeploy"}):(xe(`Previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""} is unreachable.`),p0(t)):(xe(`No previous deployments found for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),p0(t)):t.fallback?p0(t):{ref:"HEAD^",type:"headRelative"}}l();function QP(t){return t.task?(xe(`Using "${t.task}" as the task from the arguments`),`"${t.task}"`):(xe('Using "build" as the task as it was unspecified'),"build")}l();var eI=le(require("fs")),tI=le(require("path"));function rI(t){let{directory:e=process.cwd(),workspace:r}=t;if(r)return xe(`Using "${r}" as workspace from arguments`),r;let n=tI.default.join(e,"package.json");try{let i=eI.default.readFileSync(n,"utf8"),s=JSON.parse(i);return s.name?(xe(`Inferred "${s.name}" as workspace from "package.json"`),s.name):(or(`"${n}" is missing the "name" field (required).`),null)}catch{return or(`"${n}" could not be found. turbo-ignore inferencing failed`),null}}l();var m0=le(require("fs")),g0=le(require("path")),nI=require("json5");function iI(t,e){var s,o;let{turboVersion:r}=t;if(r)return xe(`Using turbo version "${r}" from arguments`),r;let n=g0.default.join(e,"package.json");try{let a=m0.default.readFileSync(n,"utf8"),c=JSON.parse(a),u=(s=c.dependencies)==null?void 0:s.turbo,f=(o=c.devDependencies)==null?void 0:o.turbo;if(r=u||f,r!==void 0)return xe(`Inferred turbo version "${r}" from "package.json"`),r}catch{return or(`"${n}" could not be read. turbo-ignore turbo version inference failed`),null}let i=g0.default.join(e,"turbo.json");try{let a=m0.default.readFileSync(i,"utf8"),c=(0,nI.parse)(a);return"tasks"in c?(xe('Inferred turbo version ^2 based on "tasks" in "turbo.json"'),"^2"):"pipeline"in c?(xe('Inferred turbo version ^1 based on "pipeline" in "turbo.json"'),"^1"):null}catch{return or(`"${i}" could not be read. turbo-ignore turbo version inference failed`),null}}l();var y0={MISSING_LOCKFILE:{regex:[/reading (?:yarn.lock|package-lock.json|pnpm-lock.yaml):.*?no such file or directory/i],message:"turbo-ignore could not complete - no lockfile found, please commit one to your repository"},NO_PACKAGE_MANAGER:{regex:[/run failed: We did not detect an in-use package manager for your project/i],message:'turbo-ignore could not complete - no package manager detected, please commit a lockfile, or set "packageManager" in your root "package.json"'},UNREACHABLE_PARENT:{regex:[/failed to resolve packages to run: commit HEAD\^ does not exist/i],message:"turbo-ignore could not complete - parent commit does not exist or is unreachable"},INVALID_COMPARISON:{regex:[/commit \S+ does not exist/i,/unknown revision/i,/invalid symmetric difference expression/i],message:"turbo-ignore could not complete - a ref or SHA is invalid. It could have been removed from the branch history via a force push, or this could be a shallow clone with insufficient history"}};function sI({err:t}){let e=Object.keys(y0).find(r=>{let{regex:n}=y0[r];return n.some(i=>i.test(t))});return e?{level:"warn",message:y0[e].message,code:e}:{level:"error",message:t,code:"UNKNOWN_ERROR"}}l();var oI=require("child_process"),WV=["[skip ci]","[ci skip]","[no ci]","[skip vercel]","[vercel skip]"],zV=["[vercel deploy]","[vercel build]"];function YV({workspace:t}){return[`[vercel skip ${t}]`]}function KV({workspace:t}){return[`[vercel deploy ${t}]`,`[vercel build ${t}]`]}var ZV=/\[vercel only .+\]/;function JV({workspace:t}){return[`[vercel only ${t}]`]}function XV(){return process.env.VERCEL==="1"&&process.env.VERCEL_GIT_COMMIT_MESSAGE?process.env.VERCEL_GIT_COMMIT_MESSAGE:(0,oI.execSync)("git show -s --format=%B").toString()}function aI({workspace:t}){var c;let e=XV(),r=u=>e.includes(u),n=(c=ZV.exec(e))==null?void 0:c[0];if(n)return JV({workspace:t}).find(u=>u===n)?{result:"deploy",scope:"workspace",reason:`Found commit message: ${n}`}:{result:"skip",scope:"workspace",reason:`Found commit message: ${n}`};let i=KV({workspace:t}).find(r),s=YV({workspace:t}).find(r);if(i&&s)return{result:"conflict",scope:"workspace",reason:`Conflicting commit messages found: ${i} and ${s}`};if(i)return{result:"deploy",scope:"workspace",reason:`Found commit message: ${i}`};if(s)return{result:"skip",scope:"workspace",reason:`Found commit message: ${s}`};let o=zV.find(r),a=WV.find(r);return o&&a?{result:"conflict",scope:"global",reason:`Conflicting commit messages found: ${o} and ${a}`}:o?{result:"deploy",scope:"global",reason:`Found commit message: ${o}`}:a?{result:"skip",scope:"global",reason:`Found commit message: ${a}`}:{result:"continue",scope:"global",reason:"No deploy or skip string found in commit message."}}function QV(t){var e,r,n,i;(e=t.telemetry)==null||e.trackOptionTask(t.task),(r=t.telemetry)==null||r.trackOptionFallback(t.fallback),(n=t.telemetry)==null||n.trackOptionDirectory(t.directory),(i=t.telemetry)==null||i.trackOptionMaxBuffer(t.maxBuffer)}function cI(){return d0("\u23ED Ignoring the change"),process.exit(0)}function Mr(){return d0("\u2713 Proceeding with deployment"),process.exit(1)}function hI(t,e){var d,g;(d=e.telemetry)==null||d.trackCommandStatus({command:"ignore",status:"start"}),(g=e.telemetry)==null||g.trackArgumentWorkspace(t!==void 0),QV(e);let r={workspace:t,...e};if(xe(`Using Turborepo to determine if this project is affected by the commit...
|
|
88
|
-
`),e.directory){let m=
|
|
86
|
+
`+t.slice(o+1):c+=t.slice(i),c.slice(1)}function EM(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=Io(t,i),n=it[r],!n&&Mo(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||hM(r);return e}function wM(t,e,r){var n="",i=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(Hr(t,e,a,!1,!1)||typeof a>"u"&&Hr(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function Nb(t,e,r,n){var i="",s=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(Hr(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&Hr(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=dh(t,e)),t.dump&&No===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=s,t.dump=i||"[]"}function xM(t,e,r){var n="",i=t.tag,s=Object.keys(r),o,a,c,u,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),t.condenseFlow&&(f+='"'),c=s[o],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),Hr(t,e,c,!1,!1)&&(t.dump.length>1024&&(f+="? "),f+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Hr(t,e,u,!1,!1)&&(f+=t.dump,n+=f));t.tag=i,t.dump="{"+n+"}"}function SM(t,e,r,n){var i="",s=t.tag,o=Object.keys(r),a,c,u,f,h,d;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Et("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)d="",(!n||i!=="")&&(d+=dh(t,e)),u=o[a],f=r[u],t.replacer&&(f=t.replacer.call(r,u,f)),Hr(t,e+1,u,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&No===t.dump.charCodeAt(0)?d+="?":d+="? "),d+=t.dump,h&&(d+=dh(t,e)),Hr(t,e+1,f,!0,h)&&(t.dump&&No===t.dump.charCodeAt(0)?d+=":":d+=": ",d+=t.dump,i+=d));t.tag=s,t.dump=i||"{}"}function Db(t,e,r){var n,i,s,o,a,c;for(i=r?t.explicitTypes:t.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,Zb.call(a.represent)==="[object Function]")n=a.represent(e,c);else if(Jb.call(a.represent,c))n=a.represent[c](e,c);else throw new Et("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=n}return!0}return!1}function Hr(t,e,r,n,i,s,o){t.tag=null,t.dump=r,Db(t,r,!1)||Db(t,r,!0);var a=Zb.call(t.dump),c=n,u;n&&(n=t.flowLevel<0||t.flowLevel>e);var f=a==="[object Object]"||a==="[object Array]",h,d;if(f&&(h=t.duplicates.indexOf(r),d=h!==-1),(t.tag!==null&&t.tag!=="?"||d||t.indent!==2&&e>0)&&(i=!1),d&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(f&&d&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")n&&Object.keys(t.dump).length!==0?(SM(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(xM(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?Nb(t,e-1,t.dump,i):Nb(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(wM(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&vM(t,t.dump,e,s,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Et("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}function AM(t,e){var r=[],n=[],i,s;for(mh(t,r,n),i=0,s=n.length;i<s;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(s)}function mh(t,e,r){var n,i,s;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,s=t.length;i<s;i+=1)mh(t[i],e,r);else for(n=Object.keys(t),i=0,s=n.length;i<s;i+=1)mh(t[n[i]],e,r)}function RM(t,e){e=e||{};var r=new pM(e);r.noRefs||AM(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Hr(r,0,n,!0,!0)?r.dump+`
|
|
87
|
+
`:""}var CM=RM,OM={dump:CM};function bh(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var Uz=Kb.load,Gz=Kb.loadAll,Vz=OM.dump;var Wz=bh("safeLoad","load"),zz=bh("safeLoadAll","loadAll"),Yz=bh("safeDump","dump");var RH=le(zx()),CH=le(require("json5"));var Se={};_I(Se,{bold:()=>_H,dimmed:()=>bH,error:()=>gA,grey:()=>EH,info:()=>yH,item:()=>wH,log:()=>An,turboBlue:()=>ms,turboGradient:()=>gH,turboLoader:()=>pA,turboRed:()=>hA,underline:()=>vH,warn:()=>mA,yellow:()=>dA});l();var St=le(qc()),cA=le(NS()),uA=le(aA()),lA="#0099F7",fA="#F11712",mH="#FFFF00",jp=t=>{let e=xH(t);return r=>`\x1B[38;5;${e}m${r}${(0,St.reset)("")}`},gH=(0,uA.default)(lA,fA),ms=jp(lA),hA=jp(fA),dA=jp(mH),pA=t=>(0,cA.default)({text:t,spinner:{frames:[" ",ms("> "),ms(">> "),ms(">>>")]}}),yH=(...t)=>{An(ms((0,St.bold)(">>>")),t.join(" "))},_H=(...t)=>{An((0,St.bold)(t.join(" ")))},vH=(...t)=>{An((0,St.underline)(t.join(" ")))},bH=(...t)=>{An((0,St.dim)(t.join(" ")))},EH=(...t)=>{An((0,St.gray)(t.join(" ")))},wH=(...t)=>{An(ms((0,St.bold)(" \u2022")),t.join(" "))},An=(...t)=>{console.log(...t)},mA=(...t)=>{console.error(dA((0,St.bold)(">>>")),t.join(" "))},gA=(...t)=>{console.error(hA((0,St.bold)(">>>")),t.join(" "))};function xH(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,n=Math.floor(e/256)%256,i=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)}l();var b6=le(require("os")),E6=le(UR());l();l();var w6=le(require("path"));l();var hP=require("stream"),dP=require("util"),o7=require("path"),a7=require("os"),pP=require("fs"),c7=le(HT());var GX=(0,dP.promisify)(hP.Stream.pipeline);l();l();var _7=le(require("path")),v7=le(EP());l();l();var $P=le(qc());l();var me;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(me||(me={}));var Jy;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Jy||(Jy={}));var U=me.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Un=t=>{switch(typeof t){case"undefined":return U.undefined;case"string":return U.string;case"number":return isNaN(t)?U.nan:U.number;case"boolean":return U.boolean;case"function":return U.function;case"bigint":return U.bigint;case"symbol":return U.symbol;case"object":return Array.isArray(t)?U.array:t===null?U.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?U.promise:typeof Map<"u"&&t instanceof Map?U.map:typeof Set<"u"&&t instanceof Set?U.set:typeof Date<"u"&&t instanceof Date?U.date:U.object;default:return U.unknown}},N=me.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),b7=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Bt=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,me.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Bt.create=t=>new Bt(t);var Pa=(t,e)=>{let r;switch(t.code){case N.invalid_type:t.received===U.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case N.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,me.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:r=`Unrecognized key(s) in object: ${me.joinValues(t.keys,", ")}`;break;case N.invalid_union:r="Invalid input";break;case N.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${me.joinValues(t.options)}`;break;case N.invalid_enum_value:r=`Invalid enum value. Expected ${me.joinValues(t.options)}, received '${t.received}'`;break;case N.invalid_arguments:r="Invalid function arguments";break;case N.invalid_return_type:r="Invalid function return type";break;case N.invalid_date:r="Invalid date";break;case N.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:me.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case N.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case N.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case N.custom:r="Invalid input";break;case N.invalid_intersection_types:r="Intersection results could not be merged";break;case N.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case N.not_finite:r="Number must be finite";break;default:r=e.defaultError,me.assertNever(t)}return{message:r}},SP=Pa;function E7(t){SP=t}function tf(){return SP}var rf=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s},a="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:e,defaultError:a}).message;return{...i,path:s,message:i.message||a}},w7=[];function G(t,e){let r=rf({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,tf(),Pa].filter(n=>!!n)});t.common.issues.push(r)}var Xe=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return oe;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r)n.push({key:await i.key,value:await i.value});return Xe.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return oe;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},oe=Object.freeze({status:"aborted"}),AP=t=>({status:"dirty",value:t}),_t=t=>({status:"valid",value:t}),Xy=t=>t.status==="aborted",Qy=t=>t.status==="dirty",Ia=t=>t.status==="valid",nf=t=>typeof Promise<"u"&&t instanceof Promise,X;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(X||(X={}));var ir=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},wP=(t,e)=>{if(Ia(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Bt(t.common.issues);return this._error=r,this._error}}};function ae(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:n!=null?n:a.defaultError}:{message:r!=null?r:a.defaultError},description:i}}var ce=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Un(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Un(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Xe,ctx:{common:e.parent.common,data:e.data,parsedType:Un(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(nf(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;let i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Un(e)},s=this._parseSync({data:e,path:i.path,parent:i});return wP(i,s)}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Un(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(nf(i)?i:Promise.resolve(i));return wP(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:N.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new Ht({schema:this,typeName:te.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return pr.create(this,this._def)}nullable(){return fn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jt.create(this,this._def)}promise(){return Wn.create(this,this._def)}or(e){return Ri.create([this,e],this._def)}and(e){return Ci.create(this,e,this._def)}transform(e){return new Ht({...ae(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Ii({...ae(this._def),innerType:this,defaultValue:r,typeName:te.ZodDefault})}brand(){return new sf({typeName:te.ZodBranded,type:this,...ae(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new oo({...ae(this._def),innerType:this,catchValue:r,typeName:te.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Li.create(this,e)}readonly(){return co.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},x7=/^c[^\s-]{8,}$/i,S7=/^[a-z][a-z0-9]*$/,A7=/^[0-9A-HJKMNP-TV-Z]{26}$/,R7=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,C7=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,O7="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Zy,T7=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,k7=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,P7=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function I7(t,e){return!!((e==="v4"||!e)&&T7.test(t)||(e==="v6"||!e)&&k7.test(t))}var qt=class extends ce{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==U.string){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.string,received:s.parsedType}),oe}let n=new Xe,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?G(i,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&G(i,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")C7.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"email",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")Zy||(Zy=new RegExp(O7,"u")),Zy.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"emoji",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")R7.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"uuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")x7.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"cuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")S7.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"cuid2",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")A7.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"ulid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),G(i,{validation:"url",code:N.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"regex",code:N.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?P7(s).test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="ip"?I7(e.data,s.version)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"ip",code:N.invalid_string,message:s.message}),n.dirty()):me.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:N.invalid_string,...X.errToObj(n)})}_addCheck(e){return new qt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...X.errToObj(e)})}url(e){return this._addCheck({kind:"url",...X.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...X.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...X.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...X.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...X.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...X.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...X.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,...X.errToObj(e==null?void 0:e.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...X.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...X.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...X.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...X.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...X.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...X.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...X.errToObj(r)})}nonempty(e){return this.min(1,X.errToObj(e))}trim(){return new qt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new qt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new qt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};qt.create=t=>{var e;return new qt({checks:[],typeName:te.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...ae(t)})};function L7(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(t.toFixed(i).replace(".","")),o=parseInt(e.toFixed(i).replace(".",""));return s%o/Math.pow(10,i)}var Ir=class extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==U.number){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.number,received:s.parsedType}),oe}let n,i=new Xe;for(let s of this._def.checks)s.kind==="int"?me.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),G(n,{code:N.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?L7(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),G(n,{code:N.not_finite,message:s.message}),i.dirty()):me.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,X.toString(r))}gt(e,r){return this.setLimit("min",e,!1,X.toString(r))}lte(e,r){return this.setLimit("max",e,!0,X.toString(r))}lt(e,r){return this.setLimit("max",e,!1,X.toString(r))}setLimit(e,r,n,i){return new Ir({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:X.toString(i)}]})}_addCheck(e){return new Ir({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:X.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:X.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:X.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:X.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:X.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:X.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:X.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:X.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:X.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&me.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Ir.create=t=>new Ir({checks:[],typeName:te.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...ae(t)});var Lr=class extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==U.bigint){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.bigint,received:s.parsedType}),oe}let n,i=new Xe;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):me.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,X.toString(r))}gt(e,r){return this.setLimit("min",e,!1,X.toString(r))}lte(e,r){return this.setLimit("max",e,!0,X.toString(r))}lt(e,r){return this.setLimit("max",e,!1,X.toString(r))}setLimit(e,r,n,i){return new Lr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:X.toString(i)}]})}_addCheck(e){return new Lr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:X.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:X.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:X.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:X.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:X.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Lr.create=t=>{var e;return new Lr({checks:[],typeName:te.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...ae(t)})};var xi=class extends ce{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==U.boolean){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.boolean,received:n.parsedType}),oe}return _t(e.data)}};xi.create=t=>new xi({typeName:te.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...ae(t)});var un=class extends ce{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==U.date){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.date,received:s.parsedType}),oe}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_date}),oe}let n=new Xe,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):me.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new un({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:X.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:X.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};un.create=t=>new un({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:te.ZodDate,...ae(t)});var ro=class extends ce{_parse(e){if(this._getType(e)!==U.symbol){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.symbol,received:n.parsedType}),oe}return _t(e.data)}};ro.create=t=>new ro({typeName:te.ZodSymbol,...ae(t)});var Si=class extends ce{_parse(e){if(this._getType(e)!==U.undefined){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.undefined,received:n.parsedType}),oe}return _t(e.data)}};Si.create=t=>new Si({typeName:te.ZodUndefined,...ae(t)});var Ai=class extends ce{_parse(e){if(this._getType(e)!==U.null){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.null,received:n.parsedType}),oe}return _t(e.data)}};Ai.create=t=>new Ai({typeName:te.ZodNull,...ae(t)});var Vn=class extends ce{constructor(){super(...arguments),this._any=!0}_parse(e){return _t(e.data)}};Vn.create=t=>new Vn({typeName:te.ZodAny,...ae(t)});var cn=class extends ce{constructor(){super(...arguments),this._unknown=!0}_parse(e){return _t(e.data)}};cn.create=t=>new cn({typeName:te.ZodUnknown,...ae(t)});var mr=class extends ce{_parse(e){let r=this._getOrReturnCtx(e);return G(r,{code:N.invalid_type,expected:U.never,received:r.parsedType}),oe}};mr.create=t=>new mr({typeName:te.ZodNever,...ae(t)});var no=class extends ce{_parse(e){if(this._getType(e)!==U.undefined){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.void,received:n.parsedType}),oe}return _t(e.data)}};no.create=t=>new no({typeName:te.ZodVoid,...ae(t)});var jt=class extends ce{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==U.array)return G(r,{code:N.invalid_type,expected:U.array,received:r.parsedType}),oe;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(G(r,{code:o?N.too_big:N.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(G(r,{code:N.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(G(r,{code:N.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new ir(r,o,r.path,a)))).then(o=>Xe.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new ir(r,o,r.path,a)));return Xe.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new jt({...this._def,minLength:{value:e,message:X.toString(r)}})}max(e,r){return new jt({...this._def,maxLength:{value:e,message:X.toString(r)}})}length(e,r){return new jt({...this._def,exactLength:{value:e,message:X.toString(r)}})}nonempty(e){return this.min(1,e)}};jt.create=(t,e)=>new jt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...ae(e)});function to(t){if(t instanceof Oe){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=pr.create(to(n))}return new Oe({...t._def,shape:()=>e})}else return t instanceof jt?new jt({...t._def,type:to(t.element)}):t instanceof pr?pr.create(to(t.unwrap())):t instanceof fn?fn.create(to(t.unwrap())):t instanceof sr?sr.create(t.items.map(e=>to(e))):t}var Oe=class extends ce{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=me.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==U.object){let u=this._getOrReturnCtx(e);return G(u,{code:N.invalid_type,expected:U.object,received:u.parsedType}),oe}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof mr&&this._def.unknownKeys==="strip"))for(let u in i.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let f=s[u],h=i.data[u];c.push({key:{status:"valid",value:u},value:f._parse(new ir(i,h,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof mr){let u=this._def.unknownKeys;if(u==="passthrough")for(let f of a)c.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(u==="strict")a.length>0&&(G(i,{code:N.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let f of a){let h=i.data[f];c.push({key:{status:"valid",value:f},value:u._parse(new ir(i,h,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let u=[];for(let f of c){let h=await f.key;u.push({key:h,value:await f.value,alwaysSet:f.alwaysSet})}return u}).then(u=>Xe.mergeObjectSync(n,u)):Xe.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return X.errToObj,new Oe({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,s,o,a;let c=(o=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=X.errToObj(e).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new Oe({...this._def,unknownKeys:"strip"})}passthrough(){return new Oe({...this._def,unknownKeys:"passthrough"})}extend(e){return new Oe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Oe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:te.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Oe({...this._def,catchall:e})}pick(e){let r={};return me.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new Oe({...this._def,shape:()=>r})}omit(e){let r={};return me.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new Oe({...this._def,shape:()=>r})}deepPartial(){return to(this)}partial(e){let r={};return me.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}),new Oe({...this._def,shape:()=>r})}required(e){let r={};return me.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof pr;)s=s._def.innerType;r[n]=s}}),new Oe({...this._def,shape:()=>r})}keyof(){return RP(me.objectKeys(this.shape))}};Oe.create=(t,e)=>new Oe({shape:()=>t,unknownKeys:"strip",catchall:mr.create(),typeName:te.ZodObject,...ae(e)});Oe.strictCreate=(t,e)=>new Oe({shape:()=>t,unknownKeys:"strict",catchall:mr.create(),typeName:te.ZodObject,...ae(e)});Oe.lazycreate=(t,e)=>new Oe({shape:t,unknownKeys:"strip",catchall:mr.create(),typeName:te.ZodObject,...ae(e)});var Ri=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new Bt(a.ctx.common.issues));return G(r,{code:N.invalid_union,unionErrors:o}),oe}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let c of n){let u={...r,common:{...r.common,issues:[]},parent:null},f=c._parseSync({data:r.data,path:r.path,parent:u});if(f.status==="valid")return f;f.status==="dirty"&&!s&&(s={result:f,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new Bt(c));return G(r,{code:N.invalid_union,unionErrors:a}),oe}}get options(){return this._def.options}};Ri.create=(t,e)=>new Ri({options:t,typeName:te.ZodUnion,...ae(e)});var ef=t=>t instanceof Ti?ef(t.schema):t instanceof Ht?ef(t.innerType()):t instanceof ki?[t.value]:t instanceof Nr?t.options:t instanceof Pi?Object.keys(t.enum):t instanceof Ii?ef(t._def.innerType):t instanceof Si?[void 0]:t instanceof Ai?[null]:null,io=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.object)return G(r,{code:N.invalid_type,expected:U.object,received:r.parsedType}),oe;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(G(r,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),oe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=ef(s.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new io({typeName:te.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...ae(n)})}};function e0(t,e){let r=Un(t),n=Un(e);if(t===e)return{valid:!0,data:t};if(r===U.object&&n===U.object){let i=me.objectKeys(e),s=me.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let c=e0(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===U.array&&n===U.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],c=e0(o,a);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===U.date&&n===U.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var Ci=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(Xy(s)||Xy(o))return oe;let a=e0(s.value,o.value);return a.valid?((Qy(s)||Qy(o))&&r.dirty(),{status:r.value,value:a.data}):(G(n,{code:N.invalid_intersection_types}),oe)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Ci.create=(t,e,r)=>new Ci({left:t,right:e,typeName:te.ZodIntersection,...ae(r)});var sr=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.array)return G(n,{code:N.invalid_type,expected:U.array,received:n.parsedType}),oe;if(n.data.length<this._def.items.length)return G(n,{code:N.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),oe;!this._def.rest&&n.data.length>this._def.items.length&&(G(n,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new ir(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>Xe.mergeArray(r,o)):Xe.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new sr({...this._def,rest:e})}};sr.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new sr({items:t,typeName:te.ZodTuple,rest:null,...ae(e)})};var Oi=class extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.object)return G(n,{code:N.invalid_type,expected:U.object,received:n.parsedType}),oe;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new ir(n,a,n.path,a)),value:o._parse(new ir(n,n.data[a],n.path,a))});return n.common.async?Xe.mergeObjectAsync(r,i):Xe.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof ce?new Oi({keyType:e,valueType:r,typeName:te.ZodRecord,...ae(n)}):new Oi({keyType:qt.create(),valueType:e,typeName:te.ZodRecord,...ae(r)})}},so=class extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.map)return G(n,{code:N.invalid_type,expected:U.map,received:n.parsedType}),oe;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,c],u)=>({key:i._parse(new ir(n,a,n.path,[u,"key"])),value:s._parse(new ir(n,c,n.path,[u,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,f=await c.value;if(u.status==="aborted"||f.status==="aborted")return oe;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),a.set(u.value,f.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,f=c.value;if(u.status==="aborted"||f.status==="aborted")return oe;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),a.set(u.value,f.value)}return{status:r.value,value:a}}}};so.create=(t,e,r)=>new so({valueType:e,keyType:t,typeName:te.ZodMap,...ae(r)});var ln=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.set)return G(n,{code:N.invalid_type,expected:U.set,received:n.parsedType}),oe;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(G(n,{code:N.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(G(n,{code:N.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(c){let u=new Set;for(let f of c){if(f.status==="aborted")return oe;f.status==="dirty"&&r.dirty(),u.add(f.value)}return{status:r.value,value:u}}let a=[...n.data.values()].map((c,u)=>s._parse(new ir(n,c,n.path,u)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new ln({...this._def,minSize:{value:e,message:X.toString(r)}})}max(e,r){return new ln({...this._def,maxSize:{value:e,message:X.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};ln.create=(t,e)=>new ln({valueType:t,minSize:null,maxSize:null,typeName:te.ZodSet,...ae(e)});var Gn=class extends ce{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.function)return G(r,{code:N.invalid_type,expected:U.function,received:r.parsedType}),oe;function n(a,c){return rf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,tf(),Pa].filter(u=>!!u),issueData:{code:N.invalid_arguments,argumentsError:c}})}function i(a,c){return rf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,tf(),Pa].filter(u=>!!u),issueData:{code:N.invalid_return_type,returnTypeError:c}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Wn){let a=this;return _t(async function(...c){let u=new Bt([]),f=await a._def.args.parseAsync(c,s).catch(g=>{throw u.addIssue(n(c,g)),u}),h=await Reflect.apply(o,this,f);return await a._def.returns._def.type.parseAsync(h,s).catch(g=>{throw u.addIssue(i(h,g)),u})})}else{let a=this;return _t(function(...c){let u=a._def.args.safeParse(c,s);if(!u.success)throw new Bt([n(c,u.error)]);let f=Reflect.apply(o,this,u.data),h=a._def.returns.safeParse(f,s);if(!h.success)throw new Bt([i(f,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Gn({...this._def,args:sr.create(e).rest(cn.create())})}returns(e){return new Gn({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new Gn({args:e||sr.create([]).rest(cn.create()),returns:r||cn.create(),typeName:te.ZodFunction,...ae(n)})}},Ti=class extends ce{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Ti.create=(t,e)=>new Ti({getter:t,typeName:te.ZodLazy,...ae(e)});var ki=class extends ce{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return G(r,{received:r.data,code:N.invalid_literal,expected:this._def.value}),oe}return{status:"valid",value:e.data}}get value(){return this._def.value}};ki.create=(t,e)=>new ki({value:t,typeName:te.ZodLiteral,...ae(e)});function RP(t,e){return new Nr({values:t,typeName:te.ZodEnum,...ae(e)})}var Nr=class extends ce{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return G(r,{expected:me.joinValues(n),received:r.parsedType,code:N.invalid_type}),oe}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),n=this._def.values;return G(r,{received:r.data,code:N.invalid_enum_value,options:n}),oe}return _t(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return Nr.create(e)}exclude(e){return Nr.create(this.options.filter(r=>!e.includes(r)))}};Nr.create=RP;var Pi=class extends ce{_parse(e){let r=me.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==U.string&&n.parsedType!==U.number){let i=me.objectValues(r);return G(n,{expected:me.joinValues(i),received:n.parsedType,code:N.invalid_type}),oe}if(r.indexOf(e.data)===-1){let i=me.objectValues(r);return G(n,{received:n.data,code:N.invalid_enum_value,options:i}),oe}return _t(e.data)}get enum(){return this._def.values}};Pi.create=(t,e)=>new Pi({values:t,typeName:te.ZodNativeEnum,...ae(e)});var Wn=class extends ce{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.promise&&r.common.async===!1)return G(r,{code:N.invalid_type,expected:U.promise,received:r.parsedType}),oe;let n=r.parsedType===U.promise?r.data:Promise.resolve(r.data);return _t(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Wn.create=(t,e)=>new Wn({type:t,typeName:te.ZodPromise,...ae(e)});var Ht=class extends ce{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{G(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:n.path,parent:n})):this._def.schema._parseSync({data:o,path:n.path,parent:n})}if(i.type==="refinement"){let o=a=>{let c=i.refinement(a,s);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?oe:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?oe:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ia(o))return o;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>Ia(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):o);me.assertNever(i)}};Ht.create=(t,e,r)=>new Ht({schema:t,typeName:te.ZodEffects,effect:e,...ae(r)});Ht.createWithPreprocess=(t,e,r)=>new Ht({schema:e,effect:{type:"preprocess",transform:t},typeName:te.ZodEffects,...ae(r)});var pr=class extends ce{_parse(e){return this._getType(e)===U.undefined?_t(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};pr.create=(t,e)=>new pr({innerType:t,typeName:te.ZodOptional,...ae(e)});var fn=class extends ce{_parse(e){return this._getType(e)===U.null?_t(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fn.create=(t,e)=>new fn({innerType:t,typeName:te.ZodNullable,...ae(e)});var Ii=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===U.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Ii.create=(t,e)=>new Ii({innerType:t,typeName:te.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ae(e)});var oo=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return nf(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Bt(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Bt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};oo.create=(t,e)=>new oo({innerType:t,typeName:te.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ae(e)});var ao=class extends ce{_parse(e){if(this._getType(e)!==U.nan){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.nan,received:n.parsedType}),oe}return{status:"valid",value:e.data}}};ao.create=t=>new ao({typeName:te.ZodNaN,...ae(t)});var N7=Symbol("zod_brand"),sf=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Li=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?oe:s.status==="dirty"?(r.dirty(),AP(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?oe:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new Li({in:e,out:r,typeName:te.ZodPipeline})}},co=class extends ce{_parse(e){let r=this._def.innerType._parse(e);return Ia(r)&&(r.value=Object.freeze(r.value)),r}};co.create=(t,e)=>new co({innerType:t,typeName:te.ZodReadonly,...ae(e)});var CP=(t,e={},r)=>t?Vn.create().superRefine((n,i)=>{var s,o;if(!t(n)){let a=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(o=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,u=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...u,fatal:c})}}):Vn.create(),D7={object:Oe.lazycreate},te;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(te||(te={}));var M7=(t,e={message:`Input not instance of ${t.name}`})=>CP(r=>r instanceof t,e),OP=qt.create,TP=Ir.create,F7=ao.create,q7=Lr.create,kP=xi.create,B7=un.create,j7=ro.create,H7=Si.create,$7=Ai.create,U7=Vn.create,G7=cn.create,V7=mr.create,W7=no.create,z7=jt.create,Y7=Oe.create,K7=Oe.strictCreate,Z7=Ri.create,J7=io.create,X7=Ci.create,Q7=sr.create,eV=Oi.create,tV=so.create,rV=ln.create,nV=Gn.create,iV=Ti.create,sV=ki.create,oV=Nr.create,aV=Pi.create,cV=Wn.create,xP=Ht.create,uV=pr.create,lV=fn.create,fV=Ht.createWithPreprocess,hV=Li.create,dV=()=>OP().optional(),pV=()=>TP().optional(),mV=()=>kP().optional(),gV={string:t=>qt.create({...t,coerce:!0}),number:t=>Ir.create({...t,coerce:!0}),boolean:t=>xi.create({...t,coerce:!0}),bigint:t=>Lr.create({...t,coerce:!0}),date:t=>un.create({...t,coerce:!0})},yV=oe,uo=Object.freeze({__proto__:null,defaultErrorMap:Pa,setErrorMap:E7,getErrorMap:tf,makeIssue:rf,EMPTY_PATH:w7,addIssueToContext:G,ParseStatus:Xe,INVALID:oe,DIRTY:AP,OK:_t,isAborted:Xy,isDirty:Qy,isValid:Ia,isAsync:nf,get util(){return me},get objectUtil(){return Jy},ZodParsedType:U,getParsedType:Un,ZodType:ce,ZodString:qt,ZodNumber:Ir,ZodBigInt:Lr,ZodBoolean:xi,ZodDate:un,ZodSymbol:ro,ZodUndefined:Si,ZodNull:Ai,ZodAny:Vn,ZodUnknown:cn,ZodNever:mr,ZodVoid:no,ZodArray:jt,ZodObject:Oe,ZodUnion:Ri,ZodDiscriminatedUnion:io,ZodIntersection:Ci,ZodTuple:sr,ZodRecord:Oi,ZodMap:so,ZodSet:ln,ZodFunction:Gn,ZodLazy:Ti,ZodLiteral:ki,ZodEnum:Nr,ZodNativeEnum:Pi,ZodPromise:Wn,ZodEffects:Ht,ZodTransformer:Ht,ZodOptional:pr,ZodNullable:fn,ZodDefault:Ii,ZodCatch:oo,ZodNaN:ao,BRAND:N7,ZodBranded:sf,ZodPipeline:Li,ZodReadonly:co,custom:CP,Schema:ce,ZodSchema:ce,late:D7,get ZodFirstPartyTypeKind(){return te},coerce:gV,any:U7,array:z7,bigint:q7,boolean:kP,date:B7,discriminatedUnion:J7,effect:xP,enum:oV,function:nV,instanceof:M7,intersection:X7,lazy:iV,literal:sV,map:tV,nan:F7,nativeEnum:aV,never:V7,null:$7,nullable:lV,number:TP,object:Y7,oboolean:mV,onumber:pV,optional:uV,ostring:dV,pipeline:hV,preprocess:fV,promise:cV,record:eV,set:rV,strictObject:K7,string:OP,symbol:j7,transformer:xP,tuple:Q7,undefined:H7,union:Z7,unknown:G7,void:W7,NEVER:yV,ZodIssueCode:N,quotelessJson:b7,ZodError:Bt});l();var o0=le(require("os")),BP=le(require("crypto")),jP=le(require("path")),HP=le(qP());function CV(t){let e=process.version,r=o0.default.type(),n=o0.default.arch();return`${t.name} ${t.version} ${e} ${r} ${n}`}async function OV(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,HP.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return jP.default.join(t,"turborepo","telemetry.json")}function TV({input:t,salt:e}){return BP.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var lo={buildUserAgent:CV,oneWayHashWithSalt:TV,defaultConfigPath:OV};var kV="TURBO_TELEMETRY_DEBUG",PV="TURBO_TELEMETRY_DISABLED",IV="TURBO_TELEMETRY_MESSAGE_DISABLED",LV="DO_NOT_TRACK",NV=uo.object({telemetry_enabled:uo.boolean(),telemetry_id:uo.string(),telemetry_salt:uo.string(),telemetry_alerted:uo.string().optional()}),Tt=class{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static fromConfigPath(e){try{let r=(0,fo.readFileSync)(e,"utf-8"),n=JSON.parse(r),i=Tt.validateConfig(n);return new Tt({configPath:e,config:i})}catch{return Tt.tryRemove({configPath:e})?Tt.create({configPath:e}):void 0}}static async fromDefaultConfig(){try{let e=await lo.defaultConfigPath();return Tt.fromConfigPath(e)}catch{return}}static validateConfig(e){try{return NV.parse(e)}catch{throw new Error("Config is invalid.")}}static create({configPath:e}){let r=(0,a0.randomUUID)(),n=(0,a0.randomUUID)(),i=lo.oneWayHashWithSalt({input:r,salt:n}),s=new Tt({configPath:e,config:{telemetry_enabled:!0,telemetry_id:i,telemetry_salt:n}});if(s.tryWrite())return s}tryWrite(){try{let e=JSON.stringify(this.config,null,2);return(0,fo.writeFileSync)(this.configPath,e),!0}catch{return!1}}static tryRemove({configPath:e}){try{return(0,fo.rmSync)(e,{force:!0}),!0}catch{return!1}}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[LV]||"0",r=process.env[PV]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[IV]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(Se.log(),Se.bold("Attention:"),Se.grey("Turborepo now collects completely anonymous telemetry regarding usage."),Se.grey("This information is used to shape the Turborepo roadmap and prioritize features."),Se.grey("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),Se.underline((0,$P.gray)("https://turbo.build/repo/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.tryWrite()}disable(){this.config.telemetry_enabled=!1,this.tryWrite()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date().toISOString(),this.tryWrite()),!0}oneWayHash(e){return lo.oneWayHashWithSalt({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[kV]||"0";return e==="1"||e.toLowerCase()==="true"}};l();l();var c0=require("crypto"),UP=le(fP());var DV=20,MV="/api/turborepo/v1/events",Ni=class{constructor({api:e,packageInfo:r,config:n,opts:i}){this.batchSize=DV;this.timeout=250;this.sessionId=(0,c0.randomUUID)();this.eventBatches=[];this.events=[];let s=new URL(MV,e);this.api=s.toString(),this.packageInfo=r,this.config=n,i!=null&&i.timeout&&(this.timeout=i.timeout),i!=null&&i.batchSize&&(this.batchSize=i.batchSize)}hasPendingEvents(){return this.events.length!==0}async waitForFlush(){await Promise.all(this.eventBatches)}flushEvents(){let e=this.events.splice(0,this.batchSize);this.config.isEnabled()&&this.eventBatches.push(UP.default.post(this.api,{timeout:this.timeout,json:e,headers:{"x-turbo-telemetry-id":this.config.id,"x-turbo-session-id":this.sessionId,"User-Agent":lo.buildUserAgent(this.packageInfo)}}))}track({key:e,value:r,parentId:n,isSensitive:i}){let s={id:(0,c0.randomUUID)(),key:e,value:i?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:n};return Tt.isDebug()&&(Se.log(),Se.bold("[telemetry event]"),Se.dimmed(JSON.stringify(s,null,2)),Se.log()),this.config.isEnabled()&&(this.events.push({package:s}),this.events.length>=this.batchSize&&this.flushEvents()),s}async close(){for(;this.hasPendingEvents();)this.flushEvents();try{await this.waitForFlush()}catch{}}trackCliOption({option:e,value:r}){return this.track({key:`option:${e}`,value:r})}trackCliArgument({argument:e,value:r}){return this.track({key:`argument:${e}`,value:r})}trackCliCommand({command:e,value:r}){return this.track({key:`command:${e}`,value:r})}trackCommandStatus({command:e,status:r}){return this.trackCliCommand({command:e,value:r})}trackCommandWarning(e){return this.track({key:"warning",value:e})}trackCommandError(e){return this.track({key:"error",value:e})}};var La=class extends Ni{trackOptionExample(e){if(e)return this.trackCliOption({option:"example",value:e})}trackOptionPackageManager(e){if(e)return this.trackCliOption({option:"package_manager",value:e})}trackOptionSkipInstall(e){if(e)return this.trackCliOption({option:"skip_install",value:e.toString()})}trackOptionSkipTransforms(e){if(e)return this.trackCliOption({option:"skip_transforms",value:e.toString()})}trackOptionTurboVersion(e){if(e)return this.trackCliOption({option:"turbo_version",value:e})}trackOptionExamplePath(e){if(e)return this.trackCliOption({option:"example_path",value:e})}trackArgumentDirectory(e){if(e)return this.trackCliArgument({argument:"project_directory",value:"provided"})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};l();var YP=le(zP());var qV=["build","test","lint","typecheck","checktypes","check-types","type-check","check"],Na=class extends Ni{trackCI(){var e;return this.track({key:"ci",value:(e=YP.name)!=null?e:"unknown"})}trackArgumentWorkspace(e){if(e)return this.trackCliArgument({argument:"workspace",value:"provided"})}trackOptionTask(e){if(e)return this.trackCliOption({option:"task",value:qV.includes(e)?e:"other"})}trackOptionFallback(e){if(e)return this.trackCliOption({option:"fallback",value:e})}trackOptionDirectory(e){if(e)return this.trackCliOption({option:"directory",value:"custom"})}trackOptionMaxBuffer(e){if(e!==void 0)return this.trackCliOption({option:"max_buffer",value:e.toString()})}};var BV={"create-turbo":La,"turbo-ignore":Na},jV="https://telemetry.vercel.com";async function u0({packageInfo:t,opts:e}){let r=BV[t.name],n=await Tt.fromDefaultConfig();return n?(n.showAlert(),{telemetry:new r({api:jV,packageInfo:t,config:n,opts:e})}):{telemetry:void 0}}l();var Di=le(qc());var KP="status",HV=["enable","disable",KP];function $V(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();Se.log(`Status: ${e?(0,Di.bold)((0,Di.green)("Enabled")):(0,Di.bold)((0,Di.red)("Disabled"))}`),Se.log(),e?Se.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):Se.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),Se.log("Learn more: https://turbo.build/repo/docs/telemetry")}function UV(t,e){if(!e.telemetry){Se.error("Telemetry could not be initialized");return}t==="enable"?(e.telemetry.config.enable(),Se.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),Se.bold("Success!")),Se.log(),$V(e)}function l0(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new D0("[action]","Action to perform").choices(HV).default(KP)).action(UV)}var af={name:"turbo-ignore",version:"2.0.14",description:"",homepage:"https://turbo.build/repo",keywords:[],author:"Jared Palmer",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/turbo-ignore"},bugs:{url:"https://github.com/vercel/turborepo/issues"},files:["dist"],bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src __tests__","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{json5:"^2.2.3"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@types/jest":"^27.4.0","@types/node":"^18.17.2",commander:"^11.0.0",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^5.12.1",typescript:"5.3.3"}};l();var cI=require("child_process"),uI=le(require("path")),lI=require("fs");l();var ZP=require("child_process");l();var f0="\u226B ";function xe(...t){console.log(f0,...t)}function or(...t){console.error(f0,...t)}function h0(...t){console.warn(f0,...t)}function d0(...t){console.log(...t)}function VV(t){try{return(0,ZP.execSync)(`git cat-file -t ${t}`,{stdio:"ignore"}),!0}catch{return!1}}function p0(t){return t.fallback?(xe(`Falling back to ref ${t.fallback}`),{ref:t.fallback,type:"customFallback"}):null}function JP(t){let{workspace:e}=t;return process.env.VERCEL==="1"?process.env.VERCEL_GIT_PREVIOUS_SHA?VV(process.env.VERCEL_GIT_PREVIOUS_SHA)?(xe(`Found previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),{ref:process.env.VERCEL_GIT_PREVIOUS_SHA,type:"previousDeploy"}):(xe(`Previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""} is unreachable.`),p0(t)):(xe(`No previous deployments found for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),p0(t)):t.fallback?p0(t):{ref:"HEAD^",type:"headRelative"}}l();function XP(t){return t.task?(xe(`Using "${t.task}" as the task from the arguments`),`"${t.task}"`):(xe('Using "build" as the task as it was unspecified'),"build")}l();var QP=le(require("fs")),eI=le(require("path"));function tI(t){let{directory:e=process.cwd(),workspace:r}=t;if(r)return xe(`Using "${r}" as workspace from arguments`),r;let n=eI.default.join(e,"package.json");try{let i=QP.default.readFileSync(n,"utf8"),s=JSON.parse(i);return s.name?(xe(`Inferred "${s.name}" as workspace from "package.json"`),s.name):(or(`"${n}" is missing the "name" field (required).`),null)}catch{return or(`"${n}" could not be found. turbo-ignore inferencing failed`),null}}l();var m0=le(require("fs")),g0=le(require("path")),rI=require("json5");function nI(t,e){var s,o;let{turboVersion:r}=t;if(r)return xe(`Using turbo version "${r}" from arguments`),r;let n=g0.default.join(e,"package.json");try{let a=m0.default.readFileSync(n,"utf8"),c=JSON.parse(a),u=(s=c.dependencies)==null?void 0:s.turbo,f=(o=c.devDependencies)==null?void 0:o.turbo;if(r=u||f,r!==void 0)return xe(`Inferred turbo version "${r}" from "package.json"`),r}catch{return or(`"${n}" could not be read. turbo-ignore turbo version inference failed`),null}let i=g0.default.join(e,"turbo.json");try{let a=m0.default.readFileSync(i,"utf8"),c=(0,rI.parse)(a);return"tasks"in c?(xe('Inferred turbo version ^2 based on "tasks" in "turbo.json"'),"^2"):"pipeline"in c?(xe('Inferred turbo version ^1 based on "pipeline" in "turbo.json"'),"^1"):null}catch{return or(`"${i}" could not be read. turbo-ignore turbo version inference failed`),null}}l();var y0={MISSING_LOCKFILE:{regex:[/reading (?:yarn.lock|package-lock.json|pnpm-lock.yaml):.*?no such file or directory/i],message:"turbo-ignore could not complete - no lockfile found, please commit one to your repository"},NO_PACKAGE_MANAGER:{regex:[/run failed: We did not detect an in-use package manager for your project/i],message:'turbo-ignore could not complete - no package manager detected, please commit a lockfile, or set "packageManager" in your root "package.json"'},UNREACHABLE_PARENT:{regex:[/failed to resolve packages to run: commit HEAD\^ does not exist/i],message:"turbo-ignore could not complete - parent commit does not exist or is unreachable"},INVALID_COMPARISON:{regex:[/commit \S+ does not exist/i,/unknown revision/i,/invalid symmetric difference expression/i],message:"turbo-ignore could not complete - a ref or SHA is invalid. It could have been removed from the branch history via a force push, or this could be a shallow clone with insufficient history"}};function iI({err:t}){let e=Object.keys(y0).find(r=>{let{regex:n}=y0[r];return n.some(i=>i.test(t))});return e?{level:"warn",message:y0[e].message,code:e}:{level:"error",message:t,code:"UNKNOWN_ERROR"}}l();var sI=require("child_process"),WV=["[skip ci]","[ci skip]","[no ci]","[skip vercel]","[vercel skip]"],zV=["[vercel deploy]","[vercel build]"];function YV({workspace:t}){return[`[vercel skip ${t}]`]}function KV({workspace:t}){return[`[vercel deploy ${t}]`,`[vercel build ${t}]`]}var ZV=/\[vercel only .+\]/;function JV({workspace:t}){return[`[vercel only ${t}]`]}function XV(){return process.env.VERCEL==="1"&&process.env.VERCEL_GIT_COMMIT_MESSAGE?process.env.VERCEL_GIT_COMMIT_MESSAGE:(0,sI.execSync)("git show -s --format=%B").toString()}function oI({workspace:t}){var c;let e=XV(),r=u=>e.includes(u),n=(c=ZV.exec(e))==null?void 0:c[0];if(n)return JV({workspace:t}).find(u=>u===n)?{result:"deploy",scope:"workspace",reason:`Found commit message: ${n}`}:{result:"skip",scope:"workspace",reason:`Found commit message: ${n}`};let i=KV({workspace:t}).find(r),s=YV({workspace:t}).find(r);if(i&&s)return{result:"conflict",scope:"workspace",reason:`Conflicting commit messages found: ${i} and ${s}`};if(i)return{result:"deploy",scope:"workspace",reason:`Found commit message: ${i}`};if(s)return{result:"skip",scope:"workspace",reason:`Found commit message: ${s}`};let o=zV.find(r),a=WV.find(r);return o&&a?{result:"conflict",scope:"global",reason:`Conflicting commit messages found: ${o} and ${a}`}:o?{result:"deploy",scope:"global",reason:`Found commit message: ${o}`}:a?{result:"skip",scope:"global",reason:`Found commit message: ${a}`}:{result:"continue",scope:"global",reason:"No deploy or skip string found in commit message."}}function QV(t){var e,r,n,i;(e=t.telemetry)==null||e.trackOptionTask(t.task),(r=t.telemetry)==null||r.trackOptionFallback(t.fallback),(n=t.telemetry)==null||n.trackOptionDirectory(t.directory),(i=t.telemetry)==null||i.trackOptionMaxBuffer(t.maxBuffer)}function aI(){return d0("\u23ED Ignoring the change"),process.exit(0)}function Mr(){return d0("\u2713 Proceeding with deployment"),process.exit(1)}function fI(t,e){var d,g;(d=e.telemetry)==null||d.trackCommandStatus({command:"ignore",status:"start"}),(g=e.telemetry)==null||g.trackArgumentWorkspace(t!==void 0),QV(e);let r={workspace:t,...e};if(xe(`Using Turborepo to determine if this project is affected by the commit...
|
|
88
|
+
`),e.directory){let m=uI.default.resolve(e.directory);(0,lI.existsSync)(m)?r.directory=m:(h0(`Directory "${e.directory}" does not exist, using current directory`),r.directory=process.cwd())}else r.directory=process.cwd();if(process.env.TURBO_FORCE==="true")return xe("`TURBO_FORCE` detected"),Mr();let n=rc(r.directory);if(!n)return or("Monorepo root not found. turbo-ignore inferencing failed"),Mr();let i=tI(r);if(!i)return Mr();let s=nI(r,n),o=XP(r),a=oI({workspace:i});if(a.result==="skip")return xe(a.reason),aI();if(a.result==="deploy")return xe(a.reason),Mr();a.result==="conflict"&&xe(a.reason);let c=JP({workspace:i,fallback:r.fallback});if(!c)return Mr();let f=`npx -y ${s?`turbo@${s}`:"turbo"} run ${o} --filter="${i}...[${c.ref}]" --dry=json`;xe(`Analyzing results of \`${f}\``);let h={cwd:n};e.maxBuffer&&(h.maxBuffer=e.maxBuffer),(0,cI.exec)(f,h,(m,E)=>{var v,A;if(m){let{level:P,code:D,message:ie}=iI({err:m.message});return P==="warn"?((v=e.telemetry)==null||v.trackCommandWarning(ie),h0(ie)):or(`${D}: ${m.message}`),Mr()}try{let P=JSON.parse(E);if(P===null)return or(`Failed to parse JSON output from \`${f}\`.`),Mr();let{packages:D}=P;return D?D.length>0?(D.length===1?xe(`This commit affects "${i}"`):xe(`This commit affects "${i}" and ${D.length-1} ${D.length-1===1?"dependency":"dependencies"} (${D.slice(1).join(", ")})`),Mr()):(xe("This project and its dependencies are not affected"),aI()):(xe("Detected single package repo"),Mr())}catch(P){return or(`Failed to parse JSON output from \`${f}\`.`),or(P),Mr()}finally{(A=e.telemetry)==null||A.trackCommandStatus({command:"ignore",status:"end"})}})}var cf,_0=new N0;_0.name(af.name).description("Only proceed with deployment if the workspace or any of its dependencies have changed").hook("preAction",async(t,e)=>{let{telemetry:r}=await u0({packageInfo:{name:"turbo-ignore",version:af.version}});e.addOption(new zn("--telemetry").default(r).hideHelp()),cf=r}).hook("postAction",async()=>{await(cf==null?void 0:cf.close())}).argument("[workspace]",'The workspace being deployed. If [workspace] is not provided, it will be inferred from the "name" field of the "package.json" located at the current working directory.').addOption(new zn("-t, --task <name>","The task to execute").default("build")).addOption(new zn("-f, --fallback <ref>","On Vercel, if no previously deployed SHA is available to compare against, fallback to comparing against the provided ref")).addOption(new zn("-d, --directory <path>","The directory to run in (default: cwd)")).addOption(new zn("--turbo-version <version>","Explicitly set which version of turbo to invoke")).addOption(new zn("-b, --max-buffer <number>","maxBuffer for the child process in KB (default: 1024 KB)").argParser(t=>parseInt(t,10)*1024)).version(af.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1).action(fI);l0(_0);_0.parse();
|
|
89
89
|
/*!
|
|
90
90
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
91
91
|
*
|