@liuli-util/cli 3.16.0 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/LICENSE +21 -0
- package/dist/bin.js +69 -69
- package/dist/bin.js.map +2 -2
- package/dist/commands/deploy/DeployService.d.ts +1 -0
- package/dist/commands/deploy/DeployService.d.ts.map +1 -1
- package/dist/commands/deploy/index.d.ts.map +1 -1
- package/package.json +73 -72
- package/src/commands/deploy/DeployService.ts +25 -8
- package/src/commands/deploy/__tests__/simpleGit.test.ts +5 -0
- package/src/commands/deploy/index.ts +2 -1
package/dist/bin.js
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var
|
|
3
|
-
`).replace(/^/gm," ".repeat(n))}let l=[`Usage: ${r.commandUsage(e)}`,""],c=r.commandDescription(e);c.length>0&&(l=l.concat([c,""]));let f=r.visibleArguments(e).map(
|
|
2
|
+
var d2=Object.create;var fl=Object.defineProperty;var h2=Object.getOwnPropertyDescriptor;var p2=Object.getOwnPropertyNames;var m2=Object.getPrototypeOf,g2=Object.prototype.hasOwnProperty;var y2=(t,e,r)=>e in t?fl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var v2=t=>fl(t,"__esModule",{value:!0});var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var b2=(t,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of p2(e))!g2.call(t,s)&&s!=="default"&&fl(t,s,{get:()=>e[s],enumerable:!(r=h2(e,s))||r.enumerable});return t},ne=t=>b2(v2(fl(t!=null?d2(m2(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var Nn=(t,e,r)=>(y2(t,typeof e!="symbol"?e+"":e,r),r);var So=h(ah=>{var nh=class extends Error{constructor(e,r,s){super(s);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},fv=class extends nh{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};ah.CommanderError=nh;ah.InvalidArgumentError=fv});var dl=h(oh=>{var{InvalidArgumentError:_2}=So(),dv=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,this.parseArg=(r,s)=>{if(!e.includes(r))throw new _2(`Allowed choices are ${e.join(", ")}.`);return this.variadic?this._concatValue(r,s):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function w2(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}oh.Argument=dv;oh.humanReadableArgName=w2});var uh=h(pv=>{var{humanReadableArgName:E2}=dl(),hv=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1}visibleCommands(e){let r=e.commands.filter(s=>!s._hidden);if(e._hasImplicitHelpCommand()){let[,s,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),n=e.createCommand(s).helpOption(!1);n.description(e._helpCommandDescription),i&&n.arguments(i),r.push(n)}return this.sortSubcommands&&r.sort((s,i)=>s.name().localeCompare(i.name())),r}visibleOptions(e){let r=e.options.filter(n=>!n.hidden),s=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(s||i){let n;s?i?n=e.createOption(e._helpFlags,e._helpDescription):n=e.createOption(e._helpShortFlag,e._helpDescription):n=e.createOption(e._helpLongFlag,e._helpDescription),r.push(n)}if(this.sortOptions){let n=a=>a.short?a.short.replace(/^-/,""):a.long.replace(/^--/,"");r.sort((a,o)=>n(a).localeCompare(n(o)))}return 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(s=>E2(s)).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((s,i)=>Math.max(s,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((s,i)=>Math.max(s,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((s,i)=>Math.max(s,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let s="";for(let i=e.parent;i;i=i.parent)s=i.name()+" "+s;return s+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.description()}optionDescription(e){let r=[];return e.argChoices&&!e.negate&&r.push(`choices: ${e.argChoices.map(s=>JSON.stringify(s)).join(", ")}`),e.defaultValue!==void 0&&!e.negate&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),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(s=>JSON.stringify(s)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let s=`(${r.join(", ")})`;return e.description?`${e.description} ${s}`:s}return e.description}formatHelp(e,r){let s=r.padWidth(e,r),i=r.helpWidth||80,n=2,a=2;function o(m,g){if(g){let b=`${m.padEnd(s+a)}${g}`;return r.wrap(b,i-n,s+a)}return m}function u(m){return m.join(`
|
|
3
|
+
`).replace(/^/gm," ".repeat(n))}let l=[`Usage: ${r.commandUsage(e)}`,""],c=r.commandDescription(e);c.length>0&&(l=l.concat([c,""]));let f=r.visibleArguments(e).map(m=>o(r.argumentTerm(m),r.argumentDescription(m)));f.length>0&&(l=l.concat(["Arguments:",u(f),""]));let d=r.visibleOptions(e).map(m=>o(r.optionTerm(m),r.optionDescription(m)));d.length>0&&(l=l.concat(["Options:",u(d),""]));let p=r.visibleCommands(e).map(m=>o(r.subcommandTerm(m),r.subcommandDescription(m)));return p.length>0&&(l=l.concat(["Commands:",u(p),""])),l.join(`
|
|
4
4
|
`)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,s,i=40){if(e.match(/[\n]\s+/))return e;let n=r-s;if(n<i)return e;let a=e.substr(0,s),o=e.substr(s),u=" ".repeat(s),l=new RegExp(".{1,"+(n-1)+"}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)","g"),c=o.match(l)||[];return a+c.map((f,d)=>(f.slice(-1)===`
|
|
5
5
|
`&&(f=f.slice(0,f.length-1)),(d>0?u:"")+f.trimRight())).join(`
|
|
6
|
-
`)}};
|
|
6
|
+
`)}};pv.Help=hv});var ch=h(lh=>{var{InvalidArgumentError:k2}=So(),mv=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 s=gv(e);this.short=s.shortFlag,this.long=s.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=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,this.parseArg=(r,s)=>{if(!e.includes(r))throw new k2(`Allowed choices are ${e.join(", ")}.`);return this.variadic?this._concatValue(r,s):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return D2(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}};function D2(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function gv(t){let e,r,s=t.split(/[ |,]+/);return s.length>1&&!/^[[<]/.test(s[1])&&(e=s.shift()),r=s.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}lh.Option=mv;lh.splitOptionFlags=gv});var bv=h(vv=>{var yv=3;function C2(t,e){if(Math.abs(t.length-e.length)>yv)return Math.max(t.length,e.length);let r=[];for(let s=0;s<=t.length;s++)r[s]=[s];for(let s=0;s<=e.length;s++)r[0][s]=s;for(let s=1;s<=e.length;s++)for(let i=1;i<=t.length;i++){let n=1;t[i-1]===e[s-1]?n=0:n=1,r[i][s]=Math.min(r[i-1][s]+1,r[i][s-1]+1,r[i-1][s-1]+n),i>1&&s>1&&t[i-1]===e[s-2]&&t[i-2]===e[s-1]&&(r[i][s]=Math.min(r[i][s],r[i-2][s-2]+1))}return r[t.length][e.length]}function S2(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(a=>a.slice(2)));let s=[],i=yv,n=.4;return e.forEach(a=>{if(a.length<=1)return;let o=C2(t,a),u=Math.max(t.length,a.length);(u-o)/u>n&&(o<i?(i=o,s=[a]):o===i&&s.push(a))}),s.sort((a,o)=>a.localeCompare(o)),r&&(s=s.map(a=>`--${a}`)),s.length>1?`
|
|
7
7
|
(Did you mean one of ${s.join(", ")}?)`:s.length===1?`
|
|
8
|
-
(Did you mean ${s[0]}?)`:""}
|
|
9
|
-
Expecting one of '${s.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,s){this._exitCallback&&this._exitCallback(new
|
|
8
|
+
(Did you mean ${s[0]}?)`:""}vv.suggestSimilar=S2});var Dv=h(kv=>{var x2=require("events").EventEmitter,fh=require("child_process"),Pi=require("path"),dh=require("fs"),{Argument:A2,humanReadableArgName:O2}=dl(),{CommanderError:hh}=So(),{Help:T2}=uh(),{Option:R2,splitOptionFlags:P2}=ch(),{suggestSimilar:_v}=bv(),hl=class extends x2{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._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!1,this._outputConfiguration={writeOut:r=>process.stdout.write(r),writeErr:r=>process.stderr.write(r),getOutHelpWidth:()=>process.stdout.isTTY?process.stdout.columns:void 0,getErrHelpWidth:()=>process.stderr.isTTY?process.stderr.columns:void 0,outputError:(r,s)=>s(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,s){let i=r,n=s;typeof i=="object"&&i!==null&&(n=i,i=null),n=n||{};let[,a,o]=e.match(/([^ ]+) *(.*)/),u=this.createCommand(a);return i&&(u.description(i),u._executableHandler=!0),n.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(n.noHelp||n.hidden),u._executableFile=n.executableFile||null,o&&u.arguments(o),this.commands.push(u),u.parent=this,u.copyInheritedSettings(this),i?this:u}createCommand(e){return new hl(e)}createHelp(){return Object.assign(new T2,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");function s(i){i.forEach(n=>{if(n._executableHandler&&!n._executableFile)throw new Error(`Must specify executableFile for deeply nested executable: ${n.name()}`);s(n.commands)})}return s(e.commands),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 A2(e,r)}argument(e,r,s,i){let n=this.createArgument(e,r);return typeof s=="function"?n.default(i).argParser(s):n.default(s),this.addArgument(n),this}arguments(e){return e.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 s=["preAction","postAction"];if(!s.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
|
|
9
|
+
Expecting one of '${s.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,s){this._exitCallback&&this._exitCallback(new hh(e,r,s)),process.exit(e)}action(e){let r=s=>{let i=this._args.length,n=s.slice(0,i);return this._storeOptionsAsProperties?n[i]=this:n[i]=this.opts(),n.push(this),e.apply(this,n)};return this._actionHandler=r,this}createOption(e,r){return new R2(e,r)}addOption(e){let r=e.name(),s=e.attributeName(),i=e.defaultValue;if(e.negate||e.optional||e.required||typeof i=="boolean"){if(e.negate){let a=e.long.replace(/^--no-/,"--");i=this._findOption(a)?this.getOptionValue(s):!0}i!==void 0&&this.setOptionValueWithSource(s,i,"default")}this.options.push(e);let n=(a,o,u)=>{let l=this.getOptionValue(s);if(a!==null&&e.parseArg)try{a=e.parseArg(a,l===void 0?i:l)}catch(c){if(c.code==="commander.invalidArgument"){let f=`${o} ${c.message}`;this._displayError(c.exitCode,c.code,f)}throw c}else a!==null&&e.variadic&&(a=e._concatValue(a,l));typeof l=="boolean"||typeof l=="undefined"?a==null?this.setOptionValueWithSource(s,e.negate?!1:i||!0,u):this.setOptionValueWithSource(s,a,u):a!==null&&this.setOptionValueWithSource(s,e.negate?!1:a,u)};return this.on("option:"+r,a=>{let o=`error: option '${e.flags}' argument '${a}' is invalid.`;n(a,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,a=>{let o=`error: option '${e.flags}' value '${a}' from env '${e.envVar}' is invalid.`;n(a,o,"env")}),this}_optionEx(e,r,s,i,n){let a=this.createOption(r,s);if(a.makeOptionMandatory(!!e.mandatory),typeof i=="function")a.default(n).argParser(i);else if(i instanceof RegExp){let o=i;i=(u,l)=>{let c=o.exec(u);return c?c[0]:l},a.default(n).argParser(i)}else a.default(i);return this.addOption(a)}option(e,r,s,i){return this._optionEx({},e,r,s,i)}requiredOption(e,r,s,i){return this._optionEx({mandatory:!0},e,r,s,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._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this}setOptionValueWithSource(e,r,s){return this.setOptionValue(e,r),this._optionValueSources[e]=s,this}getOptionValueSource(e){return this._optionValueSources[e]}_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=process.argv,process.versions&&process.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let s;switch(r.from){case void 0:case"node":this._scriptPath=e[1],s=e.slice(2);break;case"electron":process.defaultApp?(this._scriptPath=e[1],s=e.slice(2)):s=e.slice(1);break;case"user":s=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._scriptPath&&require.main&&(this._scriptPath=require.main.filename),this._name=this._name||this._scriptPath&&Pi.basename(this._scriptPath,Pi.extname(this._scriptPath)),s}parse(e,r){let s=this._prepareUserArgs(e,r);return this._parseCommand([],s),this}async parseAsync(e,r){let s=this._prepareUserArgs(e,r);return await this._parseCommand([],s),this}_executeSubCommand(e,r){r=r.slice();let s=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];this._checkForMissingMandatoryOptions();let n=this._scriptPath;!n&&require.main&&(n=require.main.filename);let a;try{let d=dh.realpathSync(n);a=Pi.dirname(d)}catch{a="."}let o=Pi.basename(n,Pi.extname(n))+"-"+e._name;e._executableFile&&(o=e._executableFile);let u=Pi.join(a,o);dh.existsSync(u)?o=u:i.forEach(d=>{dh.existsSync(`${u}${d}`)&&(o=`${u}${d}`)}),s=i.includes(Pi.extname(o));let l;process.platform!=="win32"?s?(r.unshift(o),r=Ev(process.execArgv).concat(r),l=fh.spawn(process.argv[0],r,{stdio:"inherit"})):l=fh.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=Ev(process.execArgv).concat(r),l=fh.spawn(process.execPath,r,{stdio:"inherit"})),["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(d=>{process.on(d,()=>{l.killed===!1&&l.exitCode===null&&l.kill(d)})});let f=this._exitCallback;f?l.on("close",()=>{f(new hh(process.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):l.on("close",process.exit.bind(process)),l.on("error",d=>{if(d.code==="ENOENT"){let p=`'${o}' does not exist
|
|
10
10
|
- if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
11
|
-
- if the default executable name is not suitable, use the executableFile option to supply a custom name`;throw new Error(
|
|
11
|
+
- if the default executable name is not suitable, use the executableFile option to supply a custom name`;throw new Error(p)}else if(d.code==="EACCES")throw new Error(`'${o}' not executable`);if(!f)process.exit(1);else{let p=new hh(1,"commander.executeSubCommandAsync","(error)");p.nestedError=d,f(p)}}),this.runningCommand=l}_dispatchSubcommand(e,r,s){let i=this._findCommand(e);if(i||this.help({error:!0}),i._executableHandler)this._executeSubCommand(i,r.concat(s));else return i._parseCommand(r,s)}_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=(s,i,n)=>{let a=i;if(i!==null&&s.parseArg)try{a=s.parseArg(i,n)}catch(o){if(o.code==="commander.invalidArgument"){let u=`error: command-argument value '${i}' is invalid for argument '${s.name()}'. ${o.message}`;this._displayError(o.exitCode,o.code,u)}throw o}return a};this._checkNumberOfArguments();let r=[];this._args.forEach((s,i)=>{let n=s.defaultValue;s.variadic?i<this.args.length?(n=this.args.slice(i),s.parseArg&&(n=n.reduce((a,o)=>e(s,o,a),s.defaultValue))):n===void 0&&(n=[]):i<this.args.length&&(n=this.args[i],s.parseArg&&(n=e(s,n,s.defaultValue))),r[i]=n}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let s=e,i=[];return ph(this).reverse().filter(n=>n._lifeCycleHooks[r]!==void 0).forEach(n=>{n._lifeCycleHooks[r].forEach(a=>{i.push({hookedCommand:n,callback:a})})}),r==="postAction"&&i.reverse(),i.forEach(n=>{s=this._chainOrCall(s,()=>n.callback(n.hookedCommand,this))}),s}_parseCommand(e,r){let s=this.parseOptions(r);if(this._parseOptionsEnv(),e=e.concat(s.operands),r=s.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 e.length===1&&this.help(),this._dispatchSubcommand(e[1],[],[this._helpLongFlag]);if(this._defaultCommandName)return wv(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),wv(this,s.unknown),this._checkForMissingMandatoryOptions();let i=()=>{s.unknown.length>0&&this.unknownOption(s.unknown[0])},n=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let a;return a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,()=>this._actionHandler(this.processedArgs)),this.parent&&this.parent.emit(n,e,r),a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent&&this.parent.listenerCount(n))i(),this._processArguments(),this.parent.emit(n,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)})}parseOptions(e){let r=[],s=[],i=r,n=e.slice();function a(u){return u.length>1&&u[0]==="-"}let o=null;for(;n.length;){let u=n.shift();if(u==="--"){i===s&&i.push(u),i.push(...n);break}if(o&&!a(u)){this.emit(`option:${o.name()}`,u);continue}if(o=null,a(u)){let l=this._findOption(u);if(l){if(l.required){let c=n.shift();c===void 0&&this.optionMissingArgument(l),this.emit(`option:${l.name()}`,c)}else if(l.optional){let c=null;n.length>0&&!a(n[0])&&(c=n.shift()),this.emit(`option:${l.name()}`,c)}else this.emit(`option:${l.name()}`);o=l.variadic?l:null;continue}}if(u.length>2&&u[0]==="-"&&u[1]!=="-"){let l=this._findOption(`-${u[1]}`);if(l){l.required||l.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${l.name()}`,u.slice(2)):(this.emit(`option:${l.name()}`),n.unshift(`-${u.slice(2)}`));continue}}if(/^--[^=]+=/.test(u)){let l=u.indexOf("="),c=this._findOption(u.slice(0,l));if(c&&(c.required||c.optional)){this.emit(`option:${c.name()}`,u.slice(l+1));continue}}if(a(u)&&(i=s),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&s.length===0){if(this._findCommand(u)){r.push(u),n.length>0&&s.push(...n);break}else if(u===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(u),n.length>0&&r.push(...n);break}else if(this._defaultCommandName){s.push(u),n.length>0&&s.push(...n);break}}if(this._passThroughOptions){i.push(u),n.length>0&&i.push(...n);break}i.push(u)}return{operands:r,unknown:s}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let s=0;s<r;s++){let i=this.options[s].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}_displayError(e,r,s){this._outputConfiguration.outputError(`${s}
|
|
12
12
|
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
13
13
|
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
14
|
-
`),this.outputHelp({error:!0})),this._exit(e,r,s)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in process.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()}`,process.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}missingArgument(e){let r=`error: missing required argument '${e}'`;this._displayError(1,"commander.missingArgument",r)}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this._displayError(1,"commander.optionMissingArgument",r)}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this._displayError(1,"commander.missingMandatoryOptionValue",r)}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],n=this;do{let a=n.createHelp().visibleOptions(n).filter(o=>o.long).map(o=>o.long);i=i.concat(a),n=n.parent}while(n&&!n._enablePositionalOptions);r=
|
|
15
|
-
`),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)}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(s=>
|
|
14
|
+
`),this.outputHelp({error:!0})),this._exit(e,r,s)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in process.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()}`,process.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}missingArgument(e){let r=`error: missing required argument '${e}'`;this._displayError(1,"commander.missingArgument",r)}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this._displayError(1,"commander.optionMissingArgument",r)}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this._displayError(1,"commander.missingMandatoryOptionValue",r)}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],n=this;do{let a=n.createHelp().visibleOptions(n).filter(o=>o.long).map(o=>o.long);i=i.concat(a),n=n.parent}while(n&&!n._enablePositionalOptions);r=_v(e,i)}let s=`error: unknown option '${e}'${r}`;this._displayError(1,"commander.unknownOption",s)}_excessArguments(e){if(this._allowExcessArguments)return;let r=this._args.length,s=r===1?"":"s",n=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${s} but got ${e.length}.`;this._displayError(1,"commander.excessArguments",n)}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(n=>{i.push(n.name()),n.alias()&&i.push(n.alias())}),r=_v(e,i)}let s=`error: unknown command '${e}'${r}`;this._displayError(1,"commander.unknownCommand",s)}version(e,r,s){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",s=s||"output the version number";let i=this.createOption(r,s);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
|
|
15
|
+
`),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)}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(s=>O2(s));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)}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},s;return r.error?s=i=>this._outputConfiguration.writeErr(i):s=i=>this._outputConfiguration.writeOut(i),r.write=e.write||s,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let s=this._getHelpContext(e);ph(this).reverse().forEach(n=>n.emit("beforeAllHelp",s)),this.emit("beforeHelp",s);let i=this.helpInformation(s);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");s.write(i),this.emit(this._helpLongFlag),this.emit("afterHelp",s),ph(this).forEach(n=>n.emit("afterAllHelp",s))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let s=P2(this._helpFlags);return this._helpShortFlag=s.shortFlag,this._helpLongFlag=s.longFlag,this}help(e){this.outputHelp(e);let r=process.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let s=["beforeAll","before","after","afterAll"];if(!s.includes(e))throw new Error(`Unexpected value for position to addHelpText.
|
|
16
16
|
Expecting one of '${s.join("', '")}'`);let i=`${e}Help`;return this.on(i,n=>{let a;typeof r=="function"?a=r({error:n.error,command:n.command}):a=r,a&&n.write(`${a}
|
|
17
|
-
`)}),this}};function
|
|
18
|
-
GFS4: `),console.error(t)});Ge[vt]||(
|
|
17
|
+
`)}),this}};function wv(t,e){t._hasHelpOption&&e.find(s=>s===t._helpLongFlag||s===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Ev(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,s="127.0.0.1",i="9229",n;return(n=e.match(/^(--inspect(-brk)?)$/))!==null?r=n[1]:(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=n[1],/^\d+$/.test(n[3])?i=n[3]:s=n[3]):(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=n[1],s=n[3],i=n[4]),r&&i!=="0"?`${r}=${s}:${parseInt(i)+1}`:e})}function ph(t){let e=[];for(let r=t;r;r=r.parent)e.push(r);return e}kv.Command=hl});var qn=h((Tr,xv)=>{var{Argument:$2}=dl(),{Command:Cv}=Dv(),{CommanderError:F2,InvalidArgumentError:Sv}=So(),{Help:j2}=uh(),{Option:I2}=ch();Tr=xv.exports=new Cv;Tr.program=Tr;Tr.Argument=$2;Tr.Command=Cv;Tr.CommanderError=F2;Tr.Help=j2;Tr.InvalidArgumentError=Sv;Tr.InvalidOptionArgumentError=Sv;Tr.Option=I2});var Ut=h(mh=>{"use strict";mh.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((r,s)=>{t.call(this,...e,(i,n)=>i!=null?s(i):r(n))})},"name",{value:t.name})};mh.fromPromise=function(t){return Object.defineProperty(function(...e){let r=e[e.length-1];if(typeof r!="function")return t.apply(this,e);t.apply(this,e.slice(0,-1)).then(s=>r(null,s),r)},"name",{value:t.name})}});var Ov=h((gte,Av)=>{var Fs=require("constants"),M2=process.cwd,pl=null,N2=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return pl||(pl=M2.call(process)),pl};try{process.cwd()}catch{}typeof process.chdir=="function"&&(gh=process.chdir,process.chdir=function(t){pl=null,gh.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,gh));var gh;Av.exports=q2;function q2(t){Fs.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=n(t.chown),t.fchown=n(t.fchown),t.lchown=n(t.lchown),t.chmod=s(t.chmod),t.fchmod=s(t.fchmod),t.lchmod=s(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=o(t.stat),t.fstat=o(t.fstat),t.lstat=o(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.lchmod||(t.lchmod=function(c,f,d){d&&process.nextTick(d)},t.lchmodSync=function(){}),t.lchown||(t.lchown=function(c,f,d,p){p&&process.nextTick(p)},t.lchownSync=function(){}),N2==="win32"&&(t.rename=function(c){return function(f,d,p){var m=Date.now(),g=0;c(f,d,function b(y){if(y&&(y.code==="EACCES"||y.code==="EPERM")&&Date.now()-m<6e4){setTimeout(function(){t.stat(d,function(w,k){w&&w.code==="ENOENT"?c(f,d,b):p(y)})},g),g<100&&(g+=10);return}p&&p(y)})}}(t.rename)),t.read=function(c){function f(d,p,m,g,b,y){var w;if(y&&typeof y=="function"){var k=0;w=function(O,P,I){if(O&&O.code==="EAGAIN"&&k<10)return k++,c.call(t,d,p,m,g,b,w);y.apply(this,arguments)}}return c.call(t,d,p,m,g,b,w)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(t.read),t.readSync=function(c){return function(f,d,p,m,g){for(var b=0;;)try{return c.call(t,f,d,p,m,g)}catch(y){if(y.code==="EAGAIN"&&b<10){b++;continue}throw y}}}(t.readSync);function e(c){c.lchmod=function(f,d,p){c.open(f,Fs.O_WRONLY|Fs.O_SYMLINK,d,function(m,g){if(m){p&&p(m);return}c.fchmod(g,d,function(b){c.close(g,function(y){p&&p(b||y)})})})},c.lchmodSync=function(f,d){var p=c.openSync(f,Fs.O_WRONLY|Fs.O_SYMLINK,d),m=!0,g;try{g=c.fchmodSync(p,d),m=!1}finally{if(m)try{c.closeSync(p)}catch{}else c.closeSync(p)}return g}}function r(c){Fs.hasOwnProperty("O_SYMLINK")?(c.lutimes=function(f,d,p,m){c.open(f,Fs.O_SYMLINK,function(g,b){if(g){m&&m(g);return}c.futimes(b,d,p,function(y){c.close(b,function(w){m&&m(y||w)})})})},c.lutimesSync=function(f,d,p){var m=c.openSync(f,Fs.O_SYMLINK),g,b=!0;try{g=c.futimesSync(m,d,p),b=!1}finally{if(b)try{c.closeSync(m)}catch{}else c.closeSync(m)}return g}):(c.lutimes=function(f,d,p,m){m&&process.nextTick(m)},c.lutimesSync=function(){})}function s(c){return c&&function(f,d,p){return c.call(t,f,d,function(m){l(m)&&(m=null),p&&p.apply(this,arguments)})}}function i(c){return c&&function(f,d){try{return c.call(t,f,d)}catch(p){if(!l(p))throw p}}}function n(c){return c&&function(f,d,p,m){return c.call(t,f,d,p,function(g){l(g)&&(g=null),m&&m.apply(this,arguments)})}}function a(c){return c&&function(f,d,p){try{return c.call(t,f,d,p)}catch(m){if(!l(m))throw m}}}function o(c){return c&&function(f,d,p){typeof d=="function"&&(p=d,d=null);function m(g,b){b&&(b.uid<0&&(b.uid+=4294967296),b.gid<0&&(b.gid+=4294967296)),p&&p.apply(this,arguments)}return d?c.call(t,f,d,m):c.call(t,f,m)}}function u(c){return c&&function(f,d){var p=d?c.call(t,f,d):c.call(t,f);return p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296),p}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var Pv=h((yte,Rv)=>{var Tv=require("stream").Stream;Rv.exports=B2;function B2(t){return{ReadStream:e,WriteStream:r};function e(s,i){if(!(this instanceof e))return new e(s,i);Tv.call(this);var n=this;this.path=s,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),o=0,u=a.length;o<u;o++){var l=a[o];this[l]=i[l]}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(){n._read()});return}t.open(this.path,this.flags,this.mode,function(c,f){if(c){n.emit("error",c),n.readable=!1;return}n.fd=f,n.emit("open",f),n._read()})}function r(s,i){if(!(this instanceof r))return new r(s,i);Tv.call(this),this.path=s,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var n=Object.keys(i),a=0,o=n.length;a<o;a++){var u=n[a];this[u]=i[u]}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 Fv=h((vte,$v)=>{"use strict";$v.exports=H2;var L2=Object.getPrototypeOf||function(t){return t.__proto__};function H2(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:L2(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var jt=h((bte,bh)=>{var Ge=require("fs"),U2=Ov(),G2=Pv(),V2=Fv(),ml=require("util"),vt,gl;typeof Symbol=="function"&&typeof Symbol.for=="function"?(vt=Symbol.for("graceful-fs.queue"),gl=Symbol.for("graceful-fs.previous")):(vt="___graceful-fs.queue",gl="___graceful-fs.previous");function z2(){}function jv(t,e){Object.defineProperty(t,vt,{get:function(){return e}})}var $i=z2;ml.debuglog?$i=ml.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&($i=function(){var t=ml.format.apply(ml,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
18
|
+
GFS4: `),console.error(t)});Ge[vt]||(Iv=global[vt]||[],jv(Ge,Iv),Ge.close=function(t){function e(r,s){return t.call(Ge,r,function(i){i||Mv(),typeof s=="function"&&s.apply(this,arguments)})}return Object.defineProperty(e,gl,{value:t}),e}(Ge.close),Ge.closeSync=function(t){function e(r){t.apply(Ge,arguments),Mv()}return Object.defineProperty(e,gl,{value:t}),e}(Ge.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){$i(Ge[vt]),require("assert").equal(Ge[vt].length,0)}));var Iv;global[vt]||jv(global,Ge[vt]);bh.exports=yh(V2(Ge));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ge.__patched&&(bh.exports=yh(Ge),Ge.__patched=!0);function yh(t){U2(t),t.gracefulify=yh,t.createReadStream=O,t.createWriteStream=P;var e=t.readFile;t.readFile=r;function r(T,$,F){return typeof $=="function"&&(F=$,$=null),S(T,$,F);function S(H,V,ge,x){return e(H,V,function(D){D&&(D.code==="EMFILE"||D.code==="ENFILE")?Bn([S,[H,V,ge],D,x||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var s=t.writeFile;t.writeFile=i;function i(T,$,F,S){return typeof F=="function"&&(S=F,F=null),H(T,$,F,S);function H(V,ge,x,D,be){return s(V,ge,x,function(L){L&&(L.code==="EMFILE"||L.code==="ENFILE")?Bn([H,[V,ge,x,D],L,be||Date.now(),Date.now()]):typeof D=="function"&&D.apply(this,arguments)})}}var n=t.appendFile;n&&(t.appendFile=a);function a(T,$,F,S){return typeof F=="function"&&(S=F,F=null),H(T,$,F,S);function H(V,ge,x,D,be){return n(V,ge,x,function(L){L&&(L.code==="EMFILE"||L.code==="ENFILE")?Bn([H,[V,ge,x,D],L,be||Date.now(),Date.now()]):typeof D=="function"&&D.apply(this,arguments)})}}var o=t.copyFile;o&&(t.copyFile=u);function u(T,$,F,S){return typeof F=="function"&&(S=F,F=0),H(T,$,F,S);function H(V,ge,x,D,be){return o(V,ge,x,function(L){L&&(L.code==="EMFILE"||L.code==="ENFILE")?Bn([H,[V,ge,x,D],L,be||Date.now(),Date.now()]):typeof D=="function"&&D.apply(this,arguments)})}}var l=t.readdir;t.readdir=c;function c(T,$,F){return typeof $=="function"&&(F=$,$=null),S(T,$,F);function S(H,V,ge,x){return l(H,V,function(D,be){D&&(D.code==="EMFILE"||D.code==="ENFILE")?Bn([S,[H,V,ge],D,x||Date.now(),Date.now()]):(be&&be.sort&&be.sort(),typeof ge=="function"&&ge.call(this,D,be))})}}if(process.version.substr(0,4)==="v0.8"){var f=G2(t);b=f.ReadStream,w=f.WriteStream}var d=t.ReadStream;d&&(b.prototype=Object.create(d.prototype),b.prototype.open=y);var p=t.WriteStream;p&&(w.prototype=Object.create(p.prototype),w.prototype.open=k),Object.defineProperty(t,"ReadStream",{get:function(){return b},set:function(T){b=T},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return w},set:function(T){w=T},enumerable:!0,configurable:!0});var m=b;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(T){m=T},enumerable:!0,configurable:!0});var g=w;Object.defineProperty(t,"FileWriteStream",{get:function(){return g},set:function(T){g=T},enumerable:!0,configurable:!0});function b(T,$){return this instanceof b?(d.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}function y(){var T=this;z(T.path,T.flags,T.mode,function($,F){$?(T.autoClose&&T.destroy(),T.emit("error",$)):(T.fd=F,T.emit("open",F),T.read())})}function w(T,$){return this instanceof w?(p.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}function k(){var T=this;z(T.path,T.flags,T.mode,function($,F){$?(T.destroy(),T.emit("error",$)):(T.fd=F,T.emit("open",F))})}function O(T,$){return new t.ReadStream(T,$)}function P(T,$){return new t.WriteStream(T,$)}var I=t.open;t.open=z;function z(T,$,F,S){return typeof F=="function"&&(S=F,F=null),H(T,$,F,S);function H(V,ge,x,D,be){return I(V,ge,x,function(L,ut){L&&(L.code==="EMFILE"||L.code==="ENFILE")?Bn([H,[V,ge,x,D],L,be||Date.now(),Date.now()]):typeof D=="function"&&D.apply(this,arguments)})}}return t}function Bn(t){$i("ENQUEUE",t[0].name,t[1]),Ge[vt].push(t),vh()}var yl;function Mv(){for(var t=Date.now(),e=0;e<Ge[vt].length;++e)Ge[vt][e].length>2&&(Ge[vt][e][3]=t,Ge[vt][e][4]=t);vh()}function vh(){if(clearTimeout(yl),yl=void 0,Ge[vt].length!==0){var t=Ge[vt].shift(),e=t[0],r=t[1],s=t[2],i=t[3],n=t[4];if(i===void 0)$i("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){$i("TIMEOUT",e.name,r);var a=r.pop();typeof a=="function"&&a.call(null,s)}else{var o=Date.now()-n,u=Math.max(n-i,1),l=Math.min(u*1.2,100);o>=l?($i("RETRY",e.name,r),e.apply(null,r.concat([i]))):Ge[vt].push(t)}yl===void 0&&(yl=setTimeout(vh,0))}}});var Fi=h(js=>{"use strict";var Nv=Ut().fromCallback,rr=jt(),W2=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof rr[t]=="function");Object.assign(js,rr);W2.forEach(t=>{js[t]=Nv(rr[t])});js.realpath.native=Nv(rr.realpath.native);js.exists=function(t,e){return typeof e=="function"?rr.exists(t,e):new Promise(r=>rr.exists(t,r))};js.read=function(t,e,r,s,i,n){return typeof n=="function"?rr.read(t,e,r,s,i,n):new Promise((a,o)=>{rr.read(t,e,r,s,i,(u,l,c)=>{if(u)return o(u);a({bytesRead:l,buffer:c})})})};js.write=function(t,e,...r){return typeof r[r.length-1]=="function"?rr.write(t,e,...r):new Promise((s,i)=>{rr.write(t,e,...r,(n,a,o)=>{if(n)return i(n);s({bytesWritten:a,buffer:o})})})};typeof rr.writev=="function"&&(js.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?rr.writev(t,e,...r):new Promise((s,i)=>{rr.writev(t,e,...r,(n,a,o)=>{if(n)return i(n);s({bytesWritten:a,buffers:o})})})})});var Bv=h((wte,qv)=>{"use strict";var K2=require("path");qv.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(K2.parse(e).root,""))){let s=new Error(`Path contains invalid characters: ${e}`);throw s.code="EINVAL",s}}});var Gv=h((Ete,_h)=>{"use strict";var Lv=Fi(),{checkPath:Hv}=Bv(),Uv=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};_h.exports.makeDir=async(t,e)=>(Hv(t),Lv.mkdir(t,{mode:Uv(e),recursive:!0}));_h.exports.makeDirSync=(t,e)=>(Hv(t),Lv.mkdirSync(t,{mode:Uv(e),recursive:!0}))});var Rr=h((kte,Vv)=>{"use strict";var Y2=Ut().fromPromise,{makeDir:J2,makeDirSync:wh}=Gv(),Eh=Y2(J2);Vv.exports={mkdirs:Eh,mkdirsSync:wh,mkdirp:Eh,mkdirpSync:wh,ensureDir:Eh,ensureDirSync:wh}});var kh=h((Dte,zv)=>{"use strict";var Ln=jt();function Q2(t,e,r,s){Ln.open(t,"r+",(i,n)=>{if(i)return s(i);Ln.futimes(n,e,r,a=>{Ln.close(n,o=>{s&&s(a||o)})})})}function X2(t,e,r){let s=Ln.openSync(t,"r+");return Ln.futimesSync(s,e,r),Ln.closeSync(s)}zv.exports={utimesMillis:Q2,utimesMillisSync:X2}});var ji=h((Cte,Yv)=>{"use strict";var Hn=Fi(),lt=require("path"),Z2=require("util");function eI(t,e,r){let s=r.dereference?i=>Hn.stat(i,{bigint:!0}):i=>Hn.lstat(i,{bigint:!0});return Promise.all([s(t),s(e).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,n])=>({srcStat:i,destStat:n}))}function tI(t,e,r){let s,i=r.dereference?a=>Hn.statSync(a,{bigint:!0}):a=>Hn.lstatSync(a,{bigint:!0}),n=i(t);try{s=i(e)}catch(a){if(a.code==="ENOENT")return{srcStat:n,destStat:null};throw a}return{srcStat:n,destStat:s}}function rI(t,e,r,s,i){Z2.callbackify(eI)(t,e,s,(n,a)=>{if(n)return i(n);let{srcStat:o,destStat:u}=a;if(u){if(xo(o,u)){let l=lt.basename(t),c=lt.basename(e);return r==="move"&&l!==c&&l.toLowerCase()===c.toLowerCase()?i(null,{srcStat:o,destStat:u,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&!u.isDirectory())return i(new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`));if(!o.isDirectory()&&u.isDirectory())return i(new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`))}return o.isDirectory()&&Dh(t,e)?i(new Error(vl(t,e,r))):i(null,{srcStat:o,destStat:u})})}function sI(t,e,r,s){let{srcStat:i,destStat:n}=tI(t,e,s);if(n){if(xo(i,n)){let a=lt.basename(t),o=lt.basename(e);if(r==="move"&&a!==o&&a.toLowerCase()===o.toLowerCase())return{srcStat:i,destStat:n,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!n.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!i.isDirectory()&&n.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(i.isDirectory()&&Dh(t,e))throw new Error(vl(t,e,r));return{srcStat:i,destStat:n}}function Wv(t,e,r,s,i){let n=lt.resolve(lt.dirname(t)),a=lt.resolve(lt.dirname(r));if(a===n||a===lt.parse(a).root)return i();Hn.stat(a,{bigint:!0},(o,u)=>o?o.code==="ENOENT"?i():i(o):xo(e,u)?i(new Error(vl(t,r,s))):Wv(t,e,a,s,i))}function Kv(t,e,r,s){let i=lt.resolve(lt.dirname(t)),n=lt.resolve(lt.dirname(r));if(n===i||n===lt.parse(n).root)return;let a;try{a=Hn.statSync(n,{bigint:!0})}catch(o){if(o.code==="ENOENT")return;throw o}if(xo(e,a))throw new Error(vl(t,r,s));return Kv(t,e,n,s)}function xo(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function Dh(t,e){let r=lt.resolve(t).split(lt.sep).filter(i=>i),s=lt.resolve(e).split(lt.sep).filter(i=>i);return r.reduce((i,n,a)=>i&&s[a]===n,!0)}function vl(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}Yv.exports={checkPaths:rI,checkPathsSync:sI,checkParentPaths:Wv,checkParentPathsSync:Kv,isSrcSubdir:Dh,areIdentical:xo}});var eb=h((Ste,Zv)=>{"use strict";var Ot=jt(),Ao=require("path"),iI=Rr().mkdirsSync,nI=kh().utimesMillisSync,Oo=ji();function aI(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;
|
|
19
19
|
|
|
20
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:s,destStat:i}=Oo.checkPathsSync(t,e,"copy",r);return Oo.checkParentPathsSync(t,s,e,"copy"),
|
|
20
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:s,destStat:i}=Oo.checkPathsSync(t,e,"copy",r);return Oo.checkParentPathsSync(t,s,e,"copy"),oI(i,t,e,r)}function oI(t,e,r,s){if(s.filter&&!s.filter(e,r))return;let i=Ao.dirname(r);return Ot.existsSync(i)||iI(i),Jv(t,e,r,s)}function uI(t,e,r,s){if(!(s.filter&&!s.filter(e,r)))return Jv(t,e,r,s)}function Jv(t,e,r,s){let n=(s.dereference?Ot.statSync:Ot.lstatSync)(e);if(n.isDirectory())return mI(n,t,e,r,s);if(n.isFile()||n.isCharacterDevice()||n.isBlockDevice())return lI(n,t,e,r,s);if(n.isSymbolicLink())return vI(t,e,r,s);throw n.isSocket()?new Error(`Cannot copy a socket file: ${e}`):n.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function lI(t,e,r,s,i){return e?cI(t,r,s,i):Qv(t,r,s,i)}function cI(t,e,r,s){if(s.overwrite)return Ot.unlinkSync(r),Qv(t,e,r,s);if(s.errorOnExist)throw new Error(`'${r}' already exists`)}function Qv(t,e,r,s){return Ot.copyFileSync(e,r),s.preserveTimestamps&&fI(t.mode,e,r),Ch(r,t.mode)}function fI(t,e,r){return dI(t)&&hI(r,t),pI(e,r)}function dI(t){return(t&128)==0}function hI(t,e){return Ch(t,e|128)}function Ch(t,e){return Ot.chmodSync(t,e)}function pI(t,e){let r=Ot.statSync(t);return nI(e,r.atime,r.mtime)}function mI(t,e,r,s,i){return e?Xv(r,s,i):gI(t.mode,r,s,i)}function gI(t,e,r,s){return Ot.mkdirSync(r),Xv(e,r,s),Ch(r,t)}function Xv(t,e,r){Ot.readdirSync(t).forEach(s=>yI(s,t,e,r))}function yI(t,e,r,s){let i=Ao.join(e,t),n=Ao.join(r,t),{destStat:a}=Oo.checkPathsSync(i,n,"copy",s);return uI(a,i,n,s)}function vI(t,e,r,s){let i=Ot.readlinkSync(e);if(s.dereference&&(i=Ao.resolve(process.cwd(),i)),t){let n;try{n=Ot.readlinkSync(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return Ot.symlinkSync(i,r);throw a}if(s.dereference&&(n=Ao.resolve(process.cwd(),n)),Oo.isSrcSubdir(i,n))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${n}'.`);if(Ot.statSync(r).isDirectory()&&Oo.isSrcSubdir(n,i))throw new Error(`Cannot overwrite '${n}' with '${i}'.`);return bI(i,r)}else return Ot.symlinkSync(i,r)}function bI(t,e){return Ot.unlinkSync(e),Ot.symlinkSync(t,e)}Zv.exports=aI});var Sh=h((xte,tb)=>{"use strict";tb.exports={copySync:eb()}});var Is=h((Ate,sb)=>{"use strict";var _I=Ut().fromPromise,rb=Fi();function wI(t){return rb.access(t).then(()=>!0).catch(()=>!1)}sb.exports={pathExists:_I(wI),pathExistsSync:rb.existsSync}});var fb=h((Ote,cb)=>{"use strict";var Gt=jt(),To=require("path"),EI=Rr().mkdirs,kI=Is().pathExists,DI=kh().utimesMillis,Ro=ji();function CI(t,e,r,s){typeof r=="function"&&!s?(s=r,r={}):typeof r=="function"&&(r={filter:r}),s=s||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;
|
|
21
21
|
|
|
22
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),Ro.checkPaths(t,e,"copy",r,(i,n)=>{if(i)return s(i);let{srcStat:a,destStat:o}=n;Ro.checkParentPaths(t,a,e,"copy",u=>u?s(u):r.filter?ib(sb,o,t,e,r,s):sb(o,t,e,r,s))})}function sb(t,e,r,s,i){let n=To.dirname(r);EI(n,(a,o)=>{if(a)return i(a);if(o)return bl(t,e,r,s,i);wI(n,u=>u?i(u):bl(t,e,r,s,i))})}function ib(t,e,r,s,i,n){Promise.resolve(i.filter(r,s)).then(a=>a?t(e,r,s,i,n):n(),a=>n(a))}function CI(t,e,r,s,i){return s.filter?ib(bl,t,e,r,s,i):bl(t,e,r,s,i)}function bl(t,e,r,s,i){(s.dereference?Gt.stat:Gt.lstat)(e,(a,o)=>a?i(a):o.isDirectory()?PI(o,t,e,r,s,i):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?SI(o,t,e,r,s,i):o.isSymbolicLink()?jI(t,e,r,s,i):o.isSocket()?i(new Error(`Cannot copy a socket file: ${e}`)):o.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${e}`)):i(new Error(`Unknown file: ${e}`)))}function SI(t,e,r,s,i,n){return e?xI(t,r,s,i,n):nb(t,r,s,i,n)}function xI(t,e,r,s,i){if(s.overwrite)Gt.unlink(r,n=>n?i(n):nb(t,e,r,s,i));else return s.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function nb(t,e,r,s,i){Gt.copyFile(e,r,n=>n?i(n):s.preserveTimestamps?AI(t.mode,e,r,i):_l(r,t.mode,i))}function AI(t,e,r,s){return OI(t)?TI(r,t,i=>i?s(i):ab(t,e,r,s)):ab(t,e,r,s)}function OI(t){return(t&128)==0}function TI(t,e,r){return _l(t,e|128,r)}function ab(t,e,r,s){RI(e,r,i=>i?s(i):_l(r,t,s))}function _l(t,e,r){return Gt.chmod(t,e,r)}function RI(t,e,r){Gt.stat(t,(s,i)=>s?r(s):kI(e,i.atime,i.mtime,r))}function PI(t,e,r,s,i,n){return e?ob(r,s,i,n):$I(t.mode,r,s,i,n)}function $I(t,e,r,s,i){Gt.mkdir(r,n=>{if(n)return i(n);ob(e,r,s,a=>a?i(a):_l(r,t,i))})}function ob(t,e,r,s){Gt.readdir(t,(i,n)=>i?s(i):ub(n,t,e,r,s))}function ub(t,e,r,s,i){let n=t.pop();return n?FI(t,n,e,r,s,i):i()}function FI(t,e,r,s,i,n){let a=To.join(r,e),o=To.join(s,e);Ro.checkPaths(a,o,"copy",i,(u,l)=>{if(u)return n(u);let{destStat:c}=l;CI(c,a,o,i,f=>f?n(f):ub(t,r,s,i,n))})}function jI(t,e,r,s,i){Gt.readlink(e,(n,a)=>{if(n)return i(n);if(s.dereference&&(a=To.resolve(process.cwd(),a)),t)Gt.readlink(r,(o,u)=>o?o.code==="EINVAL"||o.code==="UNKNOWN"?Gt.symlink(a,r,i):i(o):(s.dereference&&(u=To.resolve(process.cwd(),u)),Ro.isSrcSubdir(a,u)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&Ro.isSrcSubdir(u,a)?i(new Error(`Cannot overwrite '${u}' with '${a}'.`)):II(a,r,i)));else return Gt.symlink(a,r,i)})}function II(t,e,r){Gt.unlink(e,s=>s?r(s):Gt.symlink(t,e,r))}lb.exports=DI});var Sh=h((Ote,fb)=>{"use strict";var MI=Ut().fromCallback;fb.exports={copy:MI(cb())}});var _b=h((Tte,bb)=>{"use strict";var db=jt(),hb=require("path"),Re=require("assert"),Po=process.platform==="win32";function pb(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||db[r],r=r+"Sync",t[r]=t[r]||db[r]}),t.maxBusyTries=t.maxBusyTries||3}function xh(t,e,r){let s=0;typeof e=="function"&&(r=e,e={}),Re(t,"rimraf: missing path"),Re.strictEqual(typeof t,"string","rimraf: path should be a string"),Re.strictEqual(typeof r,"function","rimraf: callback function required"),Re(e,"rimraf: invalid options argument provided"),Re.strictEqual(typeof e,"object","rimraf: options should be object"),pb(e),mb(t,e,function i(n){if(n){if((n.code==="EBUSY"||n.code==="ENOTEMPTY"||n.code==="EPERM")&&s<e.maxBusyTries){s++;let a=s*100;return setTimeout(()=>mb(t,e,i),a)}n.code==="ENOENT"&&(n=null)}r(n)})}function mb(t,e,r){Re(t),Re(e),Re(typeof r=="function"),e.lstat(t,(s,i)=>{if(s&&s.code==="ENOENT")return r(null);if(s&&s.code==="EPERM"&&Po)return gb(t,e,s,r);if(i&&i.isDirectory())return wl(t,e,s,r);e.unlink(t,n=>{if(n){if(n.code==="ENOENT")return r(null);if(n.code==="EPERM")return Po?gb(t,e,n,r):wl(t,e,n,r);if(n.code==="EISDIR")return wl(t,e,n,r)}return r(n)})})}function gb(t,e,r,s){Re(t),Re(e),Re(typeof s=="function"),e.chmod(t,438,i=>{i?s(i.code==="ENOENT"?null:r):e.stat(t,(n,a)=>{n?s(n.code==="ENOENT"?null:r):a.isDirectory()?wl(t,e,r,s):e.unlink(t,s)})})}function yb(t,e,r){let s;Re(t),Re(e);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{s=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}s.isDirectory()?El(t,e,r):e.unlinkSync(t)}function wl(t,e,r,s){Re(t),Re(e),Re(typeof s=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?NI(t,e,s):i&&i.code==="ENOTDIR"?s(r):s(i)})}function NI(t,e,r){Re(t),Re(e),Re(typeof r=="function"),e.readdir(t,(s,i)=>{if(s)return r(s);let n=i.length,a;if(n===0)return e.rmdir(t,r);i.forEach(o=>{xh(hb.join(t,o),e,u=>{if(!a){if(u)return r(a=u);--n==0&&e.rmdir(t,r)}})})})}function vb(t,e){let r;e=e||{},pb(e),Re(t,"rimraf: missing path"),Re.strictEqual(typeof t,"string","rimraf: path should be a string"),Re(e,"rimraf: missing options"),Re.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(s){if(s.code==="ENOENT")return;s.code==="EPERM"&&Po&&yb(t,e,s)}try{r&&r.isDirectory()?El(t,e,null):e.unlinkSync(t)}catch(s){if(s.code==="ENOENT")return;if(s.code==="EPERM")return Po?yb(t,e,s):El(t,e,s);if(s.code!=="EISDIR")throw s;El(t,e,s)}}function El(t,e,r){Re(t),Re(e);try{e.rmdirSync(t)}catch(s){if(s.code==="ENOTDIR")throw r;if(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")qI(t,e);else if(s.code!=="ENOENT")throw s}}function qI(t,e){if(Re(t),Re(e),e.readdirSync(t).forEach(r=>vb(hb.join(t,r),e)),Po){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}bb.exports=xh;xh.sync=vb});var $o=h((Rte,Eb)=>{"use strict";var kl=jt(),BI=Ut().fromCallback,wb=_b();function LI(t,e){if(kl.rm)return kl.rm(t,{recursive:!0,force:!0},e);wb(t,e)}function HI(t){if(kl.rmSync)return kl.rmSync(t,{recursive:!0,force:!0});wb.sync(t)}Eb.exports={remove:BI(LI),removeSync:HI}});var Tb=h((Pte,Ob)=>{"use strict";var UI=Ut().fromPromise,kb=Fi(),Db=require("path"),Cb=Rr(),Sb=$o(),xb=UI(async function(e){let r;try{r=await kb.readdir(e)}catch{return Cb.mkdirs(e)}return Promise.all(r.map(s=>Sb.remove(Db.join(e,s))))});function Ab(t){let e;try{e=kb.readdirSync(t)}catch{return Cb.mkdirsSync(t)}e.forEach(r=>{r=Db.join(t,r),Sb.removeSync(r)})}Ob.exports={emptyDirSync:Ab,emptydirSync:Ab,emptyDir:xb,emptydir:xb}});var Fb=h(($te,$b)=>{"use strict";var GI=Ut().fromCallback,Rb=require("path"),Ms=jt(),Pb=Rr();function VI(t,e){function r(){Ms.writeFile(t,"",s=>{if(s)return e(s);e()})}Ms.stat(t,(s,i)=>{if(!s&&i.isFile())return e();let n=Rb.dirname(t);Ms.stat(n,(a,o)=>{if(a)return a.code==="ENOENT"?Pb.mkdirs(n,u=>{if(u)return e(u);r()}):e(a);o.isDirectory()?r():Ms.readdir(n,u=>{if(u)return e(u)})})})}function zI(t){let e;try{e=Ms.statSync(t)}catch{}if(e&&e.isFile())return;let r=Rb.dirname(t);try{Ms.statSync(r).isDirectory()||Ms.readdirSync(r)}catch(s){if(s&&s.code==="ENOENT")Pb.mkdirsSync(r);else throw s}Ms.writeFileSync(t,"")}$b.exports={createFile:GI(VI),createFileSync:zI}});var qb=h((Fte,Nb)=>{"use strict";var WI=Ut().fromCallback,jb=require("path"),Ns=jt(),Ib=Rr(),KI=Is().pathExists,{areIdentical:Mb}=ji();function YI(t,e,r){function s(i,n){Ns.link(i,n,a=>{if(a)return r(a);r(null)})}Ns.lstat(e,(i,n)=>{Ns.lstat(t,(a,o)=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);if(n&&Mb(o,n))return r(null);let u=jb.dirname(e);KI(u,(l,c)=>{if(l)return r(l);if(c)return s(t,e);Ib.mkdirs(u,f=>{if(f)return r(f);s(t,e)})})})})}function JI(t,e){let r;try{r=Ns.lstatSync(e)}catch{}try{let n=Ns.lstatSync(t);if(r&&Mb(n,r))return}catch(n){throw n.message=n.message.replace("lstat","ensureLink"),n}let s=jb.dirname(e);return Ns.existsSync(s)||Ib.mkdirsSync(s),Ns.linkSync(t,e)}Nb.exports={createLink:WI(YI),createLinkSync:JI}});var Lb=h((jte,Bb)=>{"use strict";var qs=require("path"),Fo=jt(),QI=Is().pathExists;function XI(t,e,r){if(qs.isAbsolute(t))return Fo.lstat(t,s=>s?(s.message=s.message.replace("lstat","ensureSymlink"),r(s)):r(null,{toCwd:t,toDst:t}));{let s=qs.dirname(e),i=qs.join(s,t);return QI(i,(n,a)=>n?r(n):a?r(null,{toCwd:i,toDst:t}):Fo.lstat(t,o=>o?(o.message=o.message.replace("lstat","ensureSymlink"),r(o)):r(null,{toCwd:t,toDst:qs.relative(s,t)})))}}function ZI(t,e){let r;if(qs.isAbsolute(t)){if(r=Fo.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let s=qs.dirname(e),i=qs.join(s,t);if(r=Fo.existsSync(i),r)return{toCwd:i,toDst:t};if(r=Fo.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:qs.relative(s,t)}}}Bb.exports={symlinkPaths:XI,symlinkPathsSync:ZI}});var Gb=h((Ite,Ub)=>{"use strict";var Hb=jt();function eM(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);Hb.lstat(t,(s,i)=>{if(s)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function tM(t,e){let r;if(e)return e;try{r=Hb.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Ub.exports={symlinkType:eM,symlinkTypeSync:tM}});var Xb=h((Mte,Qb)=>{"use strict";var rM=Ut().fromCallback,Vb=require("path"),Pr=Fi(),zb=Rr(),sM=zb.mkdirs,iM=zb.mkdirsSync,Wb=Lb(),nM=Wb.symlinkPaths,aM=Wb.symlinkPathsSync,Kb=Gb(),oM=Kb.symlinkType,uM=Kb.symlinkTypeSync,lM=Is().pathExists,{areIdentical:Yb}=ji();function cM(t,e,r,s){s=typeof r=="function"?r:s,r=typeof r=="function"?!1:r,Pr.lstat(e,(i,n)=>{!i&&n.isSymbolicLink()?Promise.all([Pr.stat(t),Pr.stat(e)]).then(([a,o])=>{if(Yb(a,o))return s(null);Jb(t,e,r,s)}):Jb(t,e,r,s)})}function Jb(t,e,r,s){nM(t,e,(i,n)=>{if(i)return s(i);t=n.toDst,oM(n.toCwd,r,(a,o)=>{if(a)return s(a);let u=Vb.dirname(e);lM(u,(l,c)=>{if(l)return s(l);if(c)return Pr.symlink(t,e,o,s);sM(u,f=>{if(f)return s(f);Pr.symlink(t,e,o,s)})})})})}function fM(t,e,r){let s;try{s=Pr.lstatSync(e)}catch{}if(s&&s.isSymbolicLink()){let o=Pr.statSync(t),u=Pr.statSync(e);if(Yb(o,u))return}let i=aM(t,e);t=i.toDst,r=uM(i.toCwd,r);let n=Vb.dirname(e);return Pr.existsSync(n)||iM(n),Pr.symlinkSync(t,e,r)}Qb.exports={createSymlink:rM(cM),createSymlinkSync:fM}});var e_=h((Nte,Zb)=>{"use strict";var Dl=Fb(),Cl=qb(),Sl=Xb();Zb.exports={createFile:Dl.createFile,createFileSync:Dl.createFileSync,ensureFile:Dl.createFile,ensureFileSync:Dl.createFileSync,createLink:Cl.createLink,createLinkSync:Cl.createLinkSync,ensureLink:Cl.createLink,ensureLinkSync:Cl.createLinkSync,createSymlink:Sl.createSymlink,createSymlinkSync:Sl.createSymlinkSync,ensureSymlink:Sl.createSymlink,ensureSymlinkSync:Sl.createSymlinkSync}});var xl=h((qte,t_)=>{function dM(t,{EOL:e=`
|
|
23
|
-
`,finalEOL:r=!0,replacer:s=null,spaces:i}={}){let n=r?e:"";return JSON.stringify(t,s,i).replace(/\n/g,e)+n}function hM(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}t_.exports={stringify:dM,stripBom:hM}});var n_=h((Bte,i_)=>{var Un;try{Un=jt()}catch{Un=require("fs")}var Al=Ut(),{stringify:r_,stripBom:s_}=xl();async function pM(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Un,s="throws"in e?e.throws:!0,i=await Al.fromCallback(r.readFile)(t,e);i=s_(i);let n;try{n=JSON.parse(i,e?e.reviver:null)}catch(a){if(s)throw a.message=`${t}: ${a.message}`,a;return null}return n}var mM=Al.fromPromise(pM);function gM(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Un,s="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=s_(i),JSON.parse(i,e.reviver)}catch(i){if(s)throw i.message=`${t}: ${i.message}`,i;return null}}async function yM(t,e,r={}){let s=r.fs||Un,i=r_(e,r);await Al.fromCallback(s.writeFile)(t,i,r)}var vM=Al.fromPromise(yM);function bM(t,e,r={}){let s=r.fs||Un,i=r_(e,r);return s.writeFileSync(t,i,r)}var _M={readFile:mM,readFileSync:gM,writeFile:vM,writeFileSync:bM};i_.exports=_M});var o_=h((Lte,a_)=>{"use strict";var Ol=n_();a_.exports={readJson:Ol.readFile,readJsonSync:Ol.readFileSync,writeJson:Ol.writeFile,writeJsonSync:Ol.writeFileSync}});var Tl=h((Hte,c_)=>{"use strict";var wM=Ut().fromCallback,jo=jt(),u_=require("path"),l_=Rr(),EM=Is().pathExists;function kM(t,e,r,s){typeof r=="function"&&(s=r,r="utf8");let i=u_.dirname(t);EM(i,(n,a)=>{if(n)return s(n);if(a)return jo.writeFile(t,e,r,s);l_.mkdirs(i,o=>{if(o)return s(o);jo.writeFile(t,e,r,s)})})}function DM(t,...e){let r=u_.dirname(t);if(jo.existsSync(r))return jo.writeFileSync(t,...e);l_.mkdirsSync(r),jo.writeFileSync(t,...e)}c_.exports={outputFile:wM(kM),outputFileSync:DM}});var d_=h((Ute,f_)=>{"use strict";var{stringify:CM}=xl(),{outputFile:SM}=Tl();async function xM(t,e,r={}){let s=CM(e,r);await SM(t,s,r)}f_.exports=xM});var p_=h((Gte,h_)=>{"use strict";var{stringify:AM}=xl(),{outputFileSync:OM}=Tl();function TM(t,e,r){let s=AM(e,r);OM(t,s,r)}h_.exports=TM});var g_=h((Vte,m_)=>{"use strict";var RM=Ut().fromPromise,It=o_();It.outputJson=RM(d_());It.outputJsonSync=p_();It.outputJSON=It.outputJson;It.outputJSONSync=It.outputJsonSync;It.writeJSON=It.writeJson;It.writeJSONSync=It.writeJsonSync;It.readJSON=It.readJson;It.readJSONSync=It.readJsonSync;m_.exports=It});var w_=h((zte,__)=>{"use strict";var y_=jt(),Ah=require("path"),PM=Ch().copySync,v_=$o().removeSync,$M=Rr().mkdirpSync,b_=ji();function FM(t,e,r){r=r||{};let s=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:n=!1}=b_.checkPathsSync(t,e,"move",r);return b_.checkParentPathsSync(t,i,e,"move"),jM(e)||$M(Ah.dirname(e)),IM(t,e,s,n)}function jM(t){let e=Ah.dirname(t);return Ah.parse(e).root===e}function IM(t,e,r,s){if(s)return Oh(t,e,r);if(r)return v_(e),Oh(t,e,r);if(y_.existsSync(e))throw new Error("dest already exists.");return Oh(t,e,r)}function Oh(t,e,r){try{y_.renameSync(t,e)}catch(s){if(s.code!=="EXDEV")throw s;return MM(t,e,r)}}function MM(t,e,r){return PM(t,e,{overwrite:r,errorOnExist:!0}),v_(t)}__.exports=FM});var k_=h((Wte,E_)=>{"use strict";E_.exports={moveSync:w_()}});var A_=h((Kte,x_)=>{"use strict";var NM=jt(),Th=require("path"),qM=Sh().copy,D_=$o().remove,BM=Rr().mkdirp,LM=Is().pathExists,C_=ji();function HM(t,e,r,s){typeof r=="function"&&(s=r,r={});let i=r.overwrite||r.clobber||!1;C_.checkPaths(t,e,"move",r,(n,a)=>{if(n)return s(n);let{srcStat:o,isChangingCase:u=!1}=a;C_.checkParentPaths(t,o,e,"move",l=>{if(l)return s(l);if(UM(e))return S_(t,e,i,u,s);BM(Th.dirname(e),c=>c?s(c):S_(t,e,i,u,s))})})}function UM(t){let e=Th.dirname(t);return Th.parse(e).root===e}function S_(t,e,r,s,i){if(s)return Rh(t,e,r,i);if(r)return D_(e,n=>n?i(n):Rh(t,e,r,i));LM(e,(n,a)=>n?i(n):a?i(new Error("dest already exists.")):Rh(t,e,r,i))}function Rh(t,e,r,s){NM.rename(t,e,i=>i?i.code!=="EXDEV"?s(i):GM(t,e,r,s):s())}function GM(t,e,r,s){qM(t,e,{overwrite:r,errorOnExist:!0},n=>n?s(n):D_(t,s))}x_.exports=HM});var T_=h((Yte,O_)=>{"use strict";var VM=Ut().fromCallback;O_.exports={move:VM(A_())}});var Bs=h((Jte,R_)=>{"use strict";R_.exports={...Fi(),...Ch(),...Sh(),...Tb(),...e_(),...g_(),...Rr(),...k_(),...T_(),...Tl(),...Is(),...$o()}});var P_=h(Ph=>{var Ii=require("path"),Ls=process.platform==="win32",Hs=require("fs"),zM=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function WM(){var t;if(zM){var e=new Error;t=r}else t=s;return t;function r(i){i&&(e.message=i.message,i=e,s(i))}function s(i){if(i){if(process.throwDeprecation)throw i;if(!process.noDeprecation){var n="fs: missing callback "+(i.stack||i.message);process.traceDeprecation?console.trace(n):console.error(n)}}}}function KM(t){return typeof t=="function"?t:WM()}var Qte=Ii.normalize;Ls?ms=/(.*?)(?:[\/\\]+|$)/g:ms=/(.*?)(?:[\/]+|$)/g;var ms;Ls?Io=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:Io=/^[\/]*/;var Io;Ph.realpathSync=function(e,r){if(e=Ii.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];var s=e,i={},n={},a,o,u,l;c();function c(){var b=Io.exec(e);a=b[0].length,o=b[0],u=b[0],l="",Ls&&!n[u]&&(Hs.lstatSync(u),n[u]=!0)}for(;a<e.length;){ms.lastIndex=a;var f=ms.exec(e);if(l=o,o+=f[0],u=l+f[1],a=ms.lastIndex,!(n[u]||r&&r[u]===u)){var d;if(r&&Object.prototype.hasOwnProperty.call(r,u))d=r[u];else{var m=Hs.lstatSync(u);if(!m.isSymbolicLink()){n[u]=!0,r&&(r[u]=u);continue}var p=null;if(!Ls){var g=m.dev.toString(32)+":"+m.ino.toString(32);i.hasOwnProperty(g)&&(p=i[g])}p===null&&(Hs.statSync(u),p=Hs.readlinkSync(u)),d=Ii.resolve(l,p),r&&(r[u]=d),Ls||(i[g]=p)}e=Ii.resolve(d,e.slice(a)),c()}}return r&&(r[s]=e),e};Ph.realpath=function(e,r,s){if(typeof s!="function"&&(s=KM(r),r=null),e=Ii.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return process.nextTick(s.bind(null,null,r[e]));var i=e,n={},a={},o,u,l,c;f();function f(){var b=Io.exec(e);o=b[0].length,u=b[0],l=b[0],c="",Ls&&!a[l]?Hs.lstat(l,function(y){if(y)return s(y);a[l]=!0,d()}):process.nextTick(d)}function d(){if(o>=e.length)return r&&(r[i]=e),s(null,e);ms.lastIndex=o;var b=ms.exec(e);return c=u,u+=b[0],l=c+b[1],o=ms.lastIndex,a[l]||r&&r[l]===l?process.nextTick(d):r&&Object.prototype.hasOwnProperty.call(r,l)?g(r[l]):Hs.lstat(l,m)}function m(b,y){if(b)return s(b);if(!y.isSymbolicLink())return a[l]=!0,r&&(r[l]=l),process.nextTick(d);if(!Ls){var w=y.dev.toString(32)+":"+y.ino.toString(32);if(n.hasOwnProperty(w))return p(null,n[w],l)}Hs.stat(l,function(k){if(k)return s(k);Hs.readlink(l,function(O,P){Ls||(n[w]=P),p(O,P)})})}function p(b,y,w){if(b)return s(b);var k=Ii.resolve(c,y);r&&(r[w]=k),g(k)}function g(b){e=Ii.resolve(b,e.slice(o)),f()}}});var Ih=h((Zte,I_)=>{I_.exports=Us;Us.realpath=Us;Us.sync=jh;Us.realpathSync=jh;Us.monkeypatch=JM;Us.unmonkeypatch=QM;var Gn=require("fs"),$h=Gn.realpath,Fh=Gn.realpathSync,YM=process.version,$_=/^v[0-5]\./.test(YM),F_=P_();function j_(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function Us(t,e,r){if($_)return $h(t,e,r);typeof e=="function"&&(r=e,e=null),$h(t,e,function(s,i){j_(s)?F_.realpath(t,e,r):r(s,i)})}function jh(t,e){if($_)return Fh(t,e);try{return Fh(t,e)}catch(r){if(j_(r))return F_.realpathSync(t,e);throw r}}function JM(){Gn.realpath=Us,Gn.realpathSync=jh}function QM(){Gn.realpath=$h,Gn.realpathSync=Fh}});var N_=h((ere,M_)=>{M_.exports=function(t,e){for(var r=[],s=0;s<t.length;s++){var i=e(t[s],s);XM(i)?r.push.apply(r,i):r.push(i)}return r};var XM=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}});var U_=h((tre,H_)=>{"use strict";H_.exports=q_;function q_(t,e,r){t instanceof RegExp&&(t=B_(t,r)),e instanceof RegExp&&(e=B_(e,r));var s=L_(t,e,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+t.length,s[1]),post:r.slice(s[1]+e.length)}}function B_(t,e){var r=e.match(t);return r?r[0]:null}q_.range=L_;function L_(t,e,r){var s,i,n,a,o,u=r.indexOf(t),l=r.indexOf(e,u+1),c=u;if(u>=0&&l>0){if(t===e)return[u,l];for(s=[],n=r.length;c>=0&&!o;)c==u?(s.push(c),u=r.indexOf(t,c+1)):s.length==1?o=[s.pop(),l]:(i=s.pop(),i<n&&(n=i,a=l),l=r.indexOf(e,c+1)),c=u<l&&u>=0?u:l;s.length&&(o=[n,a])}return o}});var Q_=h((rre,J_)=>{var ZM=N_(),G_=U_();J_.exports=rN;var V_="\0SLASH"+Math.random()+"\0",z_="\0OPEN"+Math.random()+"\0",Mh="\0CLOSE"+Math.random()+"\0",W_="\0COMMA"+Math.random()+"\0",K_="\0PERIOD"+Math.random()+"\0";function Nh(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function eN(t){return t.split("\\\\").join(V_).split("\\{").join(z_).split("\\}").join(Mh).split("\\,").join(W_).split("\\.").join(K_)}function tN(t){return t.split(V_).join("\\").split(z_).join("{").split(Mh).join("}").split(W_).join(",").split(K_).join(".")}function Y_(t){if(!t)return[""];var e=[],r=G_("{","}",t);if(!r)return t.split(",");var s=r.pre,i=r.body,n=r.post,a=s.split(",");a[a.length-1]+="{"+i+"}";var o=Y_(n);return n.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),e.push.apply(e,a),e}function rN(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Vn(eN(t),!0).map(tN)):[]}function sN(t){return"{"+t+"}"}function iN(t){return/^-?0\d/.test(t)}function nN(t,e){return t<=e}function aN(t,e){return t>=e}function Vn(t,e){var r=[],s=G_("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),n=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),a=i||n,o=s.body.indexOf(",")>=0;if(!a&&!o)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+Mh+s.post,Vn(t)):[t];var u;if(a)u=s.body.split(/\.\./);else if(u=Y_(s.body),u.length===1&&(u=Vn(u[0],!1).map(sN),u.length===1)){var c=s.post.length?Vn(s.post,!1):[""];return c.map(function(S){return s.pre+u[0]+S})}var l=s.pre,c=s.post.length?Vn(s.post,!1):[""],f;if(a){var d=Nh(u[0]),m=Nh(u[1]),p=Math.max(u[0].length,u[1].length),g=u.length==3?Math.abs(Nh(u[2])):1,b=nN,y=m<d;y&&(g*=-1,b=aN);var w=u.some(iN);f=[];for(var k=d;b(k,m);k+=g){var O;if(n)O=String.fromCharCode(k),O==="\\"&&(O="");else if(O=String(k),w){var P=p-O.length;if(P>0){var I=new Array(P+1).join("0");k<0?O="-"+I+O.slice(1):O=I+O}}f.push(O)}}else f=ZM(u,function(F){return Vn(F,!1)});for(var z=0;z<f.length;z++)for(var T=0;T<c.length;T++){var $=l+f[z]+c[T];(!e||a||$)&&r.push($)}return r}});var Pl=h((sre,sw)=>{sw.exports=fr;fr.Minimatch=ct;var Mo={sep:"/"};try{Mo=require("path")}catch{}var qh=fr.GLOBSTAR=ct.GLOBSTAR={},oN=Q_(),X_={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Bh="[^/]",Lh=Bh+"*?",uN="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",lN="(?:(?!(?:\\/|^)\\.).)*?",Z_=cN("().*{}+?[]^$\\!");function cN(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}var ew=/\/+/;fr.filter=fN;function fN(t,e){return e=e||{},function(r,s,i){return fr(r,t,e)}}function tw(t,e){t=t||{},e=e||{};var r={};return Object.keys(e).forEach(function(s){r[s]=e[s]}),Object.keys(t).forEach(function(s){r[s]=t[s]}),r}fr.defaults=function(t){if(!t||!Object.keys(t).length)return fr;var e=fr,r=function(i,n,a){return e.minimatch(i,n,tw(t,a))};return r.Minimatch=function(i,n){return new e.Minimatch(i,tw(t,n))},r};ct.defaults=function(t){return!t||!Object.keys(t).length?ct:fr.defaults(t).Minimatch};function fr(t,e,r){if(typeof e!="string")throw new TypeError("glob pattern string required");return r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:e.trim()===""?t==="":new ct(e,r).match(t)}function ct(t,e){if(!(this instanceof ct))return new ct(t,e);if(typeof t!="string")throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),Mo.sep!=="/"&&(t=t.split(Mo.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}ct.prototype.debug=function(){};ct.prototype.make=dN;function dN(){if(!this._made){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,r),r=this.globParts=r.map(function(s){return s.split(ew)}),this.debug(this.pattern,r),r=r.map(function(s,i,n){return s.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(s){return s.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}}ct.prototype.parseNegate=hN;function hN(){var t=this.pattern,e=!1,r=this.options,s=0;if(!r.nonegate){for(var i=0,n=t.length;i<n&&t.charAt(i)==="!";i++)e=!e,s++;s&&(this.pattern=t.substr(s)),this.negate=e}}fr.braceExpand=function(t,e){return rw(t,e)};ct.prototype.braceExpand=rw;function rw(t,e){if(e||(this instanceof ct?e=this.options:e={}),t=typeof t=="undefined"?this.pattern:t,typeof t=="undefined")throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:oN(t)}ct.prototype.parse=pN;var Rl={};function pN(t,e){if(t.length>1024*64)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&t==="**")return qh;if(t==="")return"";var s="",i=!!r.nocase,n=!1,a=[],o=[],u,l=!1,c=-1,f=-1,d=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function p(){if(u){switch(u){case"*":s+=Lh,i=!0;break;case"?":s+=Bh,i=!0;break;default:s+="\\"+u;break}m.debug("clearStateChar %j %j",u,s),u=!1}}for(var g=0,b=t.length,y;g<b&&(y=t.charAt(g));g++){if(this.debug("%s %s %s %j",t,g,s,y),n&&Z_[y]){s+="\\"+y,n=!1;continue}switch(y){case"/":return!1;case"\\":p(),n=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,g,s,y),l){this.debug(" in class"),y==="!"&&g===f+1&&(y="^"),s+=y;continue}m.debug("call clearStateChar %j",u),p(),u=y,r.noext&&p();continue;case"(":if(l){s+="(";continue}if(!u){s+="\\(";continue}a.push({type:u,start:g-1,reStart:s.length,open:X_[u].open,close:X_[u].close}),s+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,s),u=!1;continue;case")":if(l||!a.length){s+="\\)";continue}p(),i=!0;var w=a.pop();s+=w.close,w.type==="!"&&o.push(w),w.reEnd=s.length;continue;case"|":if(l||!a.length||n){s+="\\|",n=!1;continue}p(),s+="|";continue;case"[":if(p(),l){s+="\\"+y;continue}l=!0,f=g,c=s.length,s+=y;continue;case"]":if(g===f+1||!l){s+="\\"+y,n=!1;continue}if(l){var k=t.substring(f+1,g);try{RegExp("["+k+"]")}catch{var O=this.parse(k,Rl);s=s.substr(0,c)+"\\["+O[0]+"\\]",i=i||O[1],l=!1;continue}}i=!0,l=!1,s+=y;continue;default:p(),n?n=!1:Z_[y]&&!(y==="^"&&l)&&(s+="\\"),s+=y}}for(l&&(k=t.substr(f+1),O=this.parse(k,Rl),s=s.substr(0,c)+"\\["+O[0],i=i||O[1]),w=a.pop();w;w=a.pop()){var P=s.slice(w.reStart+w.open.length);this.debug("setting tail",s,w),P=P.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(At,st,zr){return zr||(zr="\\"),st+st+zr+"|"}),this.debug(`tail=%j
|
|
24
|
-
%s`,P,P,w,s);var I=w.type==="*"?
|
|
22
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),Ro.checkPaths(t,e,"copy",r,(i,n)=>{if(i)return s(i);let{srcStat:a,destStat:o}=n;Ro.checkParentPaths(t,a,e,"copy",u=>u?s(u):r.filter?nb(ib,o,t,e,r,s):ib(o,t,e,r,s))})}function ib(t,e,r,s,i){let n=To.dirname(r);kI(n,(a,o)=>{if(a)return i(a);if(o)return bl(t,e,r,s,i);EI(n,u=>u?i(u):bl(t,e,r,s,i))})}function nb(t,e,r,s,i,n){Promise.resolve(i.filter(r,s)).then(a=>a?t(e,r,s,i,n):n(),a=>n(a))}function SI(t,e,r,s,i){return s.filter?nb(bl,t,e,r,s,i):bl(t,e,r,s,i)}function bl(t,e,r,s,i){(s.dereference?Gt.stat:Gt.lstat)(e,(a,o)=>a?i(a):o.isDirectory()?$I(o,t,e,r,s,i):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?xI(o,t,e,r,s,i):o.isSymbolicLink()?II(t,e,r,s,i):o.isSocket()?i(new Error(`Cannot copy a socket file: ${e}`)):o.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${e}`)):i(new Error(`Unknown file: ${e}`)))}function xI(t,e,r,s,i,n){return e?AI(t,r,s,i,n):ab(t,r,s,i,n)}function AI(t,e,r,s,i){if(s.overwrite)Gt.unlink(r,n=>n?i(n):ab(t,e,r,s,i));else return s.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function ab(t,e,r,s,i){Gt.copyFile(e,r,n=>n?i(n):s.preserveTimestamps?OI(t.mode,e,r,i):_l(r,t.mode,i))}function OI(t,e,r,s){return TI(t)?RI(r,t,i=>i?s(i):ob(t,e,r,s)):ob(t,e,r,s)}function TI(t){return(t&128)==0}function RI(t,e,r){return _l(t,e|128,r)}function ob(t,e,r,s){PI(e,r,i=>i?s(i):_l(r,t,s))}function _l(t,e,r){return Gt.chmod(t,e,r)}function PI(t,e,r){Gt.stat(t,(s,i)=>s?r(s):DI(e,i.atime,i.mtime,r))}function $I(t,e,r,s,i,n){return e?ub(r,s,i,n):FI(t.mode,r,s,i,n)}function FI(t,e,r,s,i){Gt.mkdir(r,n=>{if(n)return i(n);ub(e,r,s,a=>a?i(a):_l(r,t,i))})}function ub(t,e,r,s){Gt.readdir(t,(i,n)=>i?s(i):lb(n,t,e,r,s))}function lb(t,e,r,s,i){let n=t.pop();return n?jI(t,n,e,r,s,i):i()}function jI(t,e,r,s,i,n){let a=To.join(r,e),o=To.join(s,e);Ro.checkPaths(a,o,"copy",i,(u,l)=>{if(u)return n(u);let{destStat:c}=l;SI(c,a,o,i,f=>f?n(f):lb(t,r,s,i,n))})}function II(t,e,r,s,i){Gt.readlink(e,(n,a)=>{if(n)return i(n);if(s.dereference&&(a=To.resolve(process.cwd(),a)),t)Gt.readlink(r,(o,u)=>o?o.code==="EINVAL"||o.code==="UNKNOWN"?Gt.symlink(a,r,i):i(o):(s.dereference&&(u=To.resolve(process.cwd(),u)),Ro.isSrcSubdir(a,u)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&Ro.isSrcSubdir(u,a)?i(new Error(`Cannot overwrite '${u}' with '${a}'.`)):MI(a,r,i)));else return Gt.symlink(a,r,i)})}function MI(t,e,r){Gt.unlink(e,s=>s?r(s):Gt.symlink(t,e,r))}cb.exports=CI});var xh=h((Tte,db)=>{"use strict";var NI=Ut().fromCallback;db.exports={copy:NI(fb())}});var wb=h((Rte,_b)=>{"use strict";var hb=jt(),pb=require("path"),Re=require("assert"),Po=process.platform==="win32";function mb(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||hb[r],r=r+"Sync",t[r]=t[r]||hb[r]}),t.maxBusyTries=t.maxBusyTries||3}function Ah(t,e,r){let s=0;typeof e=="function"&&(r=e,e={}),Re(t,"rimraf: missing path"),Re.strictEqual(typeof t,"string","rimraf: path should be a string"),Re.strictEqual(typeof r,"function","rimraf: callback function required"),Re(e,"rimraf: invalid options argument provided"),Re.strictEqual(typeof e,"object","rimraf: options should be object"),mb(e),gb(t,e,function i(n){if(n){if((n.code==="EBUSY"||n.code==="ENOTEMPTY"||n.code==="EPERM")&&s<e.maxBusyTries){s++;let a=s*100;return setTimeout(()=>gb(t,e,i),a)}n.code==="ENOENT"&&(n=null)}r(n)})}function gb(t,e,r){Re(t),Re(e),Re(typeof r=="function"),e.lstat(t,(s,i)=>{if(s&&s.code==="ENOENT")return r(null);if(s&&s.code==="EPERM"&&Po)return yb(t,e,s,r);if(i&&i.isDirectory())return wl(t,e,s,r);e.unlink(t,n=>{if(n){if(n.code==="ENOENT")return r(null);if(n.code==="EPERM")return Po?yb(t,e,n,r):wl(t,e,n,r);if(n.code==="EISDIR")return wl(t,e,n,r)}return r(n)})})}function yb(t,e,r,s){Re(t),Re(e),Re(typeof s=="function"),e.chmod(t,438,i=>{i?s(i.code==="ENOENT"?null:r):e.stat(t,(n,a)=>{n?s(n.code==="ENOENT"?null:r):a.isDirectory()?wl(t,e,r,s):e.unlink(t,s)})})}function vb(t,e,r){let s;Re(t),Re(e);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{s=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}s.isDirectory()?El(t,e,r):e.unlinkSync(t)}function wl(t,e,r,s){Re(t),Re(e),Re(typeof s=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?qI(t,e,s):i&&i.code==="ENOTDIR"?s(r):s(i)})}function qI(t,e,r){Re(t),Re(e),Re(typeof r=="function"),e.readdir(t,(s,i)=>{if(s)return r(s);let n=i.length,a;if(n===0)return e.rmdir(t,r);i.forEach(o=>{Ah(pb.join(t,o),e,u=>{if(!a){if(u)return r(a=u);--n==0&&e.rmdir(t,r)}})})})}function bb(t,e){let r;e=e||{},mb(e),Re(t,"rimraf: missing path"),Re.strictEqual(typeof t,"string","rimraf: path should be a string"),Re(e,"rimraf: missing options"),Re.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(s){if(s.code==="ENOENT")return;s.code==="EPERM"&&Po&&vb(t,e,s)}try{r&&r.isDirectory()?El(t,e,null):e.unlinkSync(t)}catch(s){if(s.code==="ENOENT")return;if(s.code==="EPERM")return Po?vb(t,e,s):El(t,e,s);if(s.code!=="EISDIR")throw s;El(t,e,s)}}function El(t,e,r){Re(t),Re(e);try{e.rmdirSync(t)}catch(s){if(s.code==="ENOTDIR")throw r;if(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")BI(t,e);else if(s.code!=="ENOENT")throw s}}function BI(t,e){if(Re(t),Re(e),e.readdirSync(t).forEach(r=>bb(pb.join(t,r),e)),Po){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}_b.exports=Ah;Ah.sync=bb});var $o=h((Pte,kb)=>{"use strict";var kl=jt(),LI=Ut().fromCallback,Eb=wb();function HI(t,e){if(kl.rm)return kl.rm(t,{recursive:!0,force:!0},e);Eb(t,e)}function UI(t){if(kl.rmSync)return kl.rmSync(t,{recursive:!0,force:!0});Eb.sync(t)}kb.exports={remove:LI(HI),removeSync:UI}});var Rb=h(($te,Tb)=>{"use strict";var GI=Ut().fromPromise,Db=Fi(),Cb=require("path"),Sb=Rr(),xb=$o(),Ab=GI(async function(e){let r;try{r=await Db.readdir(e)}catch{return Sb.mkdirs(e)}return Promise.all(r.map(s=>xb.remove(Cb.join(e,s))))});function Ob(t){let e;try{e=Db.readdirSync(t)}catch{return Sb.mkdirsSync(t)}e.forEach(r=>{r=Cb.join(t,r),xb.removeSync(r)})}Tb.exports={emptyDirSync:Ob,emptydirSync:Ob,emptyDir:Ab,emptydir:Ab}});var jb=h((Fte,Fb)=>{"use strict";var VI=Ut().fromCallback,Pb=require("path"),Ms=jt(),$b=Rr();function zI(t,e){function r(){Ms.writeFile(t,"",s=>{if(s)return e(s);e()})}Ms.stat(t,(s,i)=>{if(!s&&i.isFile())return e();let n=Pb.dirname(t);Ms.stat(n,(a,o)=>{if(a)return a.code==="ENOENT"?$b.mkdirs(n,u=>{if(u)return e(u);r()}):e(a);o.isDirectory()?r():Ms.readdir(n,u=>{if(u)return e(u)})})})}function WI(t){let e;try{e=Ms.statSync(t)}catch{}if(e&&e.isFile())return;let r=Pb.dirname(t);try{Ms.statSync(r).isDirectory()||Ms.readdirSync(r)}catch(s){if(s&&s.code==="ENOENT")$b.mkdirsSync(r);else throw s}Ms.writeFileSync(t,"")}Fb.exports={createFile:VI(zI),createFileSync:WI}});var Bb=h((jte,qb)=>{"use strict";var KI=Ut().fromCallback,Ib=require("path"),Ns=jt(),Mb=Rr(),YI=Is().pathExists,{areIdentical:Nb}=ji();function JI(t,e,r){function s(i,n){Ns.link(i,n,a=>{if(a)return r(a);r(null)})}Ns.lstat(e,(i,n)=>{Ns.lstat(t,(a,o)=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);if(n&&Nb(o,n))return r(null);let u=Ib.dirname(e);YI(u,(l,c)=>{if(l)return r(l);if(c)return s(t,e);Mb.mkdirs(u,f=>{if(f)return r(f);s(t,e)})})})})}function QI(t,e){let r;try{r=Ns.lstatSync(e)}catch{}try{let n=Ns.lstatSync(t);if(r&&Nb(n,r))return}catch(n){throw n.message=n.message.replace("lstat","ensureLink"),n}let s=Ib.dirname(e);return Ns.existsSync(s)||Mb.mkdirsSync(s),Ns.linkSync(t,e)}qb.exports={createLink:KI(JI),createLinkSync:QI}});var Hb=h((Ite,Lb)=>{"use strict";var qs=require("path"),Fo=jt(),XI=Is().pathExists;function ZI(t,e,r){if(qs.isAbsolute(t))return Fo.lstat(t,s=>s?(s.message=s.message.replace("lstat","ensureSymlink"),r(s)):r(null,{toCwd:t,toDst:t}));{let s=qs.dirname(e),i=qs.join(s,t);return XI(i,(n,a)=>n?r(n):a?r(null,{toCwd:i,toDst:t}):Fo.lstat(t,o=>o?(o.message=o.message.replace("lstat","ensureSymlink"),r(o)):r(null,{toCwd:t,toDst:qs.relative(s,t)})))}}function eM(t,e){let r;if(qs.isAbsolute(t)){if(r=Fo.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let s=qs.dirname(e),i=qs.join(s,t);if(r=Fo.existsSync(i),r)return{toCwd:i,toDst:t};if(r=Fo.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:qs.relative(s,t)}}}Lb.exports={symlinkPaths:ZI,symlinkPathsSync:eM}});var Vb=h((Mte,Gb)=>{"use strict";var Ub=jt();function tM(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);Ub.lstat(t,(s,i)=>{if(s)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function rM(t,e){let r;if(e)return e;try{r=Ub.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Gb.exports={symlinkType:tM,symlinkTypeSync:rM}});var Zb=h((Nte,Xb)=>{"use strict";var sM=Ut().fromCallback,zb=require("path"),Pr=Fi(),Wb=Rr(),iM=Wb.mkdirs,nM=Wb.mkdirsSync,Kb=Hb(),aM=Kb.symlinkPaths,oM=Kb.symlinkPathsSync,Yb=Vb(),uM=Yb.symlinkType,lM=Yb.symlinkTypeSync,cM=Is().pathExists,{areIdentical:Jb}=ji();function fM(t,e,r,s){s=typeof r=="function"?r:s,r=typeof r=="function"?!1:r,Pr.lstat(e,(i,n)=>{!i&&n.isSymbolicLink()?Promise.all([Pr.stat(t),Pr.stat(e)]).then(([a,o])=>{if(Jb(a,o))return s(null);Qb(t,e,r,s)}):Qb(t,e,r,s)})}function Qb(t,e,r,s){aM(t,e,(i,n)=>{if(i)return s(i);t=n.toDst,uM(n.toCwd,r,(a,o)=>{if(a)return s(a);let u=zb.dirname(e);cM(u,(l,c)=>{if(l)return s(l);if(c)return Pr.symlink(t,e,o,s);iM(u,f=>{if(f)return s(f);Pr.symlink(t,e,o,s)})})})})}function dM(t,e,r){let s;try{s=Pr.lstatSync(e)}catch{}if(s&&s.isSymbolicLink()){let o=Pr.statSync(t),u=Pr.statSync(e);if(Jb(o,u))return}let i=oM(t,e);t=i.toDst,r=lM(i.toCwd,r);let n=zb.dirname(e);return Pr.existsSync(n)||nM(n),Pr.symlinkSync(t,e,r)}Xb.exports={createSymlink:sM(fM),createSymlinkSync:dM}});var t_=h((qte,e_)=>{"use strict";var Dl=jb(),Cl=Bb(),Sl=Zb();e_.exports={createFile:Dl.createFile,createFileSync:Dl.createFileSync,ensureFile:Dl.createFile,ensureFileSync:Dl.createFileSync,createLink:Cl.createLink,createLinkSync:Cl.createLinkSync,ensureLink:Cl.createLink,ensureLinkSync:Cl.createLinkSync,createSymlink:Sl.createSymlink,createSymlinkSync:Sl.createSymlinkSync,ensureSymlink:Sl.createSymlink,ensureSymlinkSync:Sl.createSymlinkSync}});var xl=h((Bte,r_)=>{function hM(t,{EOL:e=`
|
|
23
|
+
`,finalEOL:r=!0,replacer:s=null,spaces:i}={}){let n=r?e:"";return JSON.stringify(t,s,i).replace(/\n/g,e)+n}function pM(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}r_.exports={stringify:hM,stripBom:pM}});var a_=h((Lte,n_)=>{var Un;try{Un=jt()}catch{Un=require("fs")}var Al=Ut(),{stringify:s_,stripBom:i_}=xl();async function mM(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Un,s="throws"in e?e.throws:!0,i=await Al.fromCallback(r.readFile)(t,e);i=i_(i);let n;try{n=JSON.parse(i,e?e.reviver:null)}catch(a){if(s)throw a.message=`${t}: ${a.message}`,a;return null}return n}var gM=Al.fromPromise(mM);function yM(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Un,s="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=i_(i),JSON.parse(i,e.reviver)}catch(i){if(s)throw i.message=`${t}: ${i.message}`,i;return null}}async function vM(t,e,r={}){let s=r.fs||Un,i=s_(e,r);await Al.fromCallback(s.writeFile)(t,i,r)}var bM=Al.fromPromise(vM);function _M(t,e,r={}){let s=r.fs||Un,i=s_(e,r);return s.writeFileSync(t,i,r)}var wM={readFile:gM,readFileSync:yM,writeFile:bM,writeFileSync:_M};n_.exports=wM});var u_=h((Hte,o_)=>{"use strict";var Ol=a_();o_.exports={readJson:Ol.readFile,readJsonSync:Ol.readFileSync,writeJson:Ol.writeFile,writeJsonSync:Ol.writeFileSync}});var Tl=h((Ute,f_)=>{"use strict";var EM=Ut().fromCallback,jo=jt(),l_=require("path"),c_=Rr(),kM=Is().pathExists;function DM(t,e,r,s){typeof r=="function"&&(s=r,r="utf8");let i=l_.dirname(t);kM(i,(n,a)=>{if(n)return s(n);if(a)return jo.writeFile(t,e,r,s);c_.mkdirs(i,o=>{if(o)return s(o);jo.writeFile(t,e,r,s)})})}function CM(t,...e){let r=l_.dirname(t);if(jo.existsSync(r))return jo.writeFileSync(t,...e);c_.mkdirsSync(r),jo.writeFileSync(t,...e)}f_.exports={outputFile:EM(DM),outputFileSync:CM}});var h_=h((Gte,d_)=>{"use strict";var{stringify:SM}=xl(),{outputFile:xM}=Tl();async function AM(t,e,r={}){let s=SM(e,r);await xM(t,s,r)}d_.exports=AM});var m_=h((Vte,p_)=>{"use strict";var{stringify:OM}=xl(),{outputFileSync:TM}=Tl();function RM(t,e,r){let s=OM(e,r);TM(t,s,r)}p_.exports=RM});var y_=h((zte,g_)=>{"use strict";var PM=Ut().fromPromise,It=u_();It.outputJson=PM(h_());It.outputJsonSync=m_();It.outputJSON=It.outputJson;It.outputJSONSync=It.outputJsonSync;It.writeJSON=It.writeJson;It.writeJSONSync=It.writeJsonSync;It.readJSON=It.readJson;It.readJSONSync=It.readJsonSync;g_.exports=It});var E_=h((Wte,w_)=>{"use strict";var v_=jt(),Oh=require("path"),$M=Sh().copySync,b_=$o().removeSync,FM=Rr().mkdirpSync,__=ji();function jM(t,e,r){r=r||{};let s=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:n=!1}=__.checkPathsSync(t,e,"move",r);return __.checkParentPathsSync(t,i,e,"move"),IM(e)||FM(Oh.dirname(e)),MM(t,e,s,n)}function IM(t){let e=Oh.dirname(t);return Oh.parse(e).root===e}function MM(t,e,r,s){if(s)return Th(t,e,r);if(r)return b_(e),Th(t,e,r);if(v_.existsSync(e))throw new Error("dest already exists.");return Th(t,e,r)}function Th(t,e,r){try{v_.renameSync(t,e)}catch(s){if(s.code!=="EXDEV")throw s;return NM(t,e,r)}}function NM(t,e,r){return $M(t,e,{overwrite:r,errorOnExist:!0}),b_(t)}w_.exports=jM});var D_=h((Kte,k_)=>{"use strict";k_.exports={moveSync:E_()}});var O_=h((Yte,A_)=>{"use strict";var qM=jt(),Rh=require("path"),BM=xh().copy,C_=$o().remove,LM=Rr().mkdirp,HM=Is().pathExists,S_=ji();function UM(t,e,r,s){typeof r=="function"&&(s=r,r={});let i=r.overwrite||r.clobber||!1;S_.checkPaths(t,e,"move",r,(n,a)=>{if(n)return s(n);let{srcStat:o,isChangingCase:u=!1}=a;S_.checkParentPaths(t,o,e,"move",l=>{if(l)return s(l);if(GM(e))return x_(t,e,i,u,s);LM(Rh.dirname(e),c=>c?s(c):x_(t,e,i,u,s))})})}function GM(t){let e=Rh.dirname(t);return Rh.parse(e).root===e}function x_(t,e,r,s,i){if(s)return Ph(t,e,r,i);if(r)return C_(e,n=>n?i(n):Ph(t,e,r,i));HM(e,(n,a)=>n?i(n):a?i(new Error("dest already exists.")):Ph(t,e,r,i))}function Ph(t,e,r,s){qM.rename(t,e,i=>i?i.code!=="EXDEV"?s(i):VM(t,e,r,s):s())}function VM(t,e,r,s){BM(t,e,{overwrite:r,errorOnExist:!0},n=>n?s(n):C_(t,s))}A_.exports=UM});var R_=h((Jte,T_)=>{"use strict";var zM=Ut().fromCallback;T_.exports={move:zM(O_())}});var Bs=h((Qte,P_)=>{"use strict";P_.exports={...Fi(),...Sh(),...xh(),...Rb(),...t_(),...y_(),...Rr(),...D_(),...R_(),...Tl(),...Is(),...$o()}});var $_=h($h=>{var Ii=require("path"),Ls=process.platform==="win32",Hs=require("fs"),WM=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function KM(){var t;if(WM){var e=new Error;t=r}else t=s;return t;function r(i){i&&(e.message=i.message,i=e,s(i))}function s(i){if(i){if(process.throwDeprecation)throw i;if(!process.noDeprecation){var n="fs: missing callback "+(i.stack||i.message);process.traceDeprecation?console.trace(n):console.error(n)}}}}function YM(t){return typeof t=="function"?t:KM()}var Xte=Ii.normalize;Ls?ms=/(.*?)(?:[\/\\]+|$)/g:ms=/(.*?)(?:[\/]+|$)/g;var ms;Ls?Io=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:Io=/^[\/]*/;var Io;$h.realpathSync=function(e,r){if(e=Ii.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];var s=e,i={},n={},a,o,u,l;c();function c(){var b=Io.exec(e);a=b[0].length,o=b[0],u=b[0],l="",Ls&&!n[u]&&(Hs.lstatSync(u),n[u]=!0)}for(;a<e.length;){ms.lastIndex=a;var f=ms.exec(e);if(l=o,o+=f[0],u=l+f[1],a=ms.lastIndex,!(n[u]||r&&r[u]===u)){var d;if(r&&Object.prototype.hasOwnProperty.call(r,u))d=r[u];else{var p=Hs.lstatSync(u);if(!p.isSymbolicLink()){n[u]=!0,r&&(r[u]=u);continue}var m=null;if(!Ls){var g=p.dev.toString(32)+":"+p.ino.toString(32);i.hasOwnProperty(g)&&(m=i[g])}m===null&&(Hs.statSync(u),m=Hs.readlinkSync(u)),d=Ii.resolve(l,m),r&&(r[u]=d),Ls||(i[g]=m)}e=Ii.resolve(d,e.slice(a)),c()}}return r&&(r[s]=e),e};$h.realpath=function(e,r,s){if(typeof s!="function"&&(s=YM(r),r=null),e=Ii.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return process.nextTick(s.bind(null,null,r[e]));var i=e,n={},a={},o,u,l,c;f();function f(){var b=Io.exec(e);o=b[0].length,u=b[0],l=b[0],c="",Ls&&!a[l]?Hs.lstat(l,function(y){if(y)return s(y);a[l]=!0,d()}):process.nextTick(d)}function d(){if(o>=e.length)return r&&(r[i]=e),s(null,e);ms.lastIndex=o;var b=ms.exec(e);return c=u,u+=b[0],l=c+b[1],o=ms.lastIndex,a[l]||r&&r[l]===l?process.nextTick(d):r&&Object.prototype.hasOwnProperty.call(r,l)?g(r[l]):Hs.lstat(l,p)}function p(b,y){if(b)return s(b);if(!y.isSymbolicLink())return a[l]=!0,r&&(r[l]=l),process.nextTick(d);if(!Ls){var w=y.dev.toString(32)+":"+y.ino.toString(32);if(n.hasOwnProperty(w))return m(null,n[w],l)}Hs.stat(l,function(k){if(k)return s(k);Hs.readlink(l,function(O,P){Ls||(n[w]=P),m(O,P)})})}function m(b,y,w){if(b)return s(b);var k=Ii.resolve(c,y);r&&(r[w]=k),g(k)}function g(b){e=Ii.resolve(b,e.slice(o)),f()}}});var Mh=h((ere,M_)=>{M_.exports=Us;Us.realpath=Us;Us.sync=Ih;Us.realpathSync=Ih;Us.monkeypatch=QM;Us.unmonkeypatch=XM;var Gn=require("fs"),Fh=Gn.realpath,jh=Gn.realpathSync,JM=process.version,F_=/^v[0-5]\./.test(JM),j_=$_();function I_(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function Us(t,e,r){if(F_)return Fh(t,e,r);typeof e=="function"&&(r=e,e=null),Fh(t,e,function(s,i){I_(s)?j_.realpath(t,e,r):r(s,i)})}function Ih(t,e){if(F_)return jh(t,e);try{return jh(t,e)}catch(r){if(I_(r))return j_.realpathSync(t,e);throw r}}function QM(){Gn.realpath=Us,Gn.realpathSync=Ih}function XM(){Gn.realpath=Fh,Gn.realpathSync=jh}});var q_=h((tre,N_)=>{N_.exports=function(t,e){for(var r=[],s=0;s<t.length;s++){var i=e(t[s],s);ZM(i)?r.push.apply(r,i):r.push(i)}return r};var ZM=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}});var G_=h((rre,U_)=>{"use strict";U_.exports=B_;function B_(t,e,r){t instanceof RegExp&&(t=L_(t,r)),e instanceof RegExp&&(e=L_(e,r));var s=H_(t,e,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+t.length,s[1]),post:r.slice(s[1]+e.length)}}function L_(t,e){var r=e.match(t);return r?r[0]:null}B_.range=H_;function H_(t,e,r){var s,i,n,a,o,u=r.indexOf(t),l=r.indexOf(e,u+1),c=u;if(u>=0&&l>0){if(t===e)return[u,l];for(s=[],n=r.length;c>=0&&!o;)c==u?(s.push(c),u=r.indexOf(t,c+1)):s.length==1?o=[s.pop(),l]:(i=s.pop(),i<n&&(n=i,a=l),l=r.indexOf(e,c+1)),c=u<l&&u>=0?u:l;s.length&&(o=[n,a])}return o}});var X_=h((sre,Q_)=>{var eN=q_(),V_=G_();Q_.exports=sN;var z_="\0SLASH"+Math.random()+"\0",W_="\0OPEN"+Math.random()+"\0",Nh="\0CLOSE"+Math.random()+"\0",K_="\0COMMA"+Math.random()+"\0",Y_="\0PERIOD"+Math.random()+"\0";function qh(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function tN(t){return t.split("\\\\").join(z_).split("\\{").join(W_).split("\\}").join(Nh).split("\\,").join(K_).split("\\.").join(Y_)}function rN(t){return t.split(z_).join("\\").split(W_).join("{").split(Nh).join("}").split(K_).join(",").split(Y_).join(".")}function J_(t){if(!t)return[""];var e=[],r=V_("{","}",t);if(!r)return t.split(",");var s=r.pre,i=r.body,n=r.post,a=s.split(",");a[a.length-1]+="{"+i+"}";var o=J_(n);return n.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),e.push.apply(e,a),e}function sN(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Vn(tN(t),!0).map(rN)):[]}function iN(t){return"{"+t+"}"}function nN(t){return/^-?0\d/.test(t)}function aN(t,e){return t<=e}function oN(t,e){return t>=e}function Vn(t,e){var r=[],s=V_("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),n=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),a=i||n,o=s.body.indexOf(",")>=0;if(!a&&!o)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+Nh+s.post,Vn(t)):[t];var u;if(a)u=s.body.split(/\.\./);else if(u=J_(s.body),u.length===1&&(u=Vn(u[0],!1).map(iN),u.length===1)){var c=s.post.length?Vn(s.post,!1):[""];return c.map(function(S){return s.pre+u[0]+S})}var l=s.pre,c=s.post.length?Vn(s.post,!1):[""],f;if(a){var d=qh(u[0]),p=qh(u[1]),m=Math.max(u[0].length,u[1].length),g=u.length==3?Math.abs(qh(u[2])):1,b=aN,y=p<d;y&&(g*=-1,b=oN);var w=u.some(nN);f=[];for(var k=d;b(k,p);k+=g){var O;if(n)O=String.fromCharCode(k),O==="\\"&&(O="");else if(O=String(k),w){var P=m-O.length;if(P>0){var I=new Array(P+1).join("0");k<0?O="-"+I+O.slice(1):O=I+O}}f.push(O)}}else f=eN(u,function(F){return Vn(F,!1)});for(var z=0;z<f.length;z++)for(var T=0;T<c.length;T++){var $=l+f[z]+c[T];(!e||a||$)&&r.push($)}return r}});var Pl=h((ire,iw)=>{iw.exports=fr;fr.Minimatch=ct;var Mo={sep:"/"};try{Mo=require("path")}catch{}var Bh=fr.GLOBSTAR=ct.GLOBSTAR={},uN=X_(),Z_={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Lh="[^/]",Hh=Lh+"*?",lN="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",cN="(?:(?!(?:\\/|^)\\.).)*?",ew=fN("().*{}+?[]^$\\!");function fN(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}var tw=/\/+/;fr.filter=dN;function dN(t,e){return e=e||{},function(r,s,i){return fr(r,t,e)}}function rw(t,e){t=t||{},e=e||{};var r={};return Object.keys(e).forEach(function(s){r[s]=e[s]}),Object.keys(t).forEach(function(s){r[s]=t[s]}),r}fr.defaults=function(t){if(!t||!Object.keys(t).length)return fr;var e=fr,r=function(i,n,a){return e.minimatch(i,n,rw(t,a))};return r.Minimatch=function(i,n){return new e.Minimatch(i,rw(t,n))},r};ct.defaults=function(t){return!t||!Object.keys(t).length?ct:fr.defaults(t).Minimatch};function fr(t,e,r){if(typeof e!="string")throw new TypeError("glob pattern string required");return r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:e.trim()===""?t==="":new ct(e,r).match(t)}function ct(t,e){if(!(this instanceof ct))return new ct(t,e);if(typeof t!="string")throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),Mo.sep!=="/"&&(t=t.split(Mo.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}ct.prototype.debug=function(){};ct.prototype.make=hN;function hN(){if(!this._made){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,r),r=this.globParts=r.map(function(s){return s.split(tw)}),this.debug(this.pattern,r),r=r.map(function(s,i,n){return s.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(s){return s.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}}ct.prototype.parseNegate=pN;function pN(){var t=this.pattern,e=!1,r=this.options,s=0;if(!r.nonegate){for(var i=0,n=t.length;i<n&&t.charAt(i)==="!";i++)e=!e,s++;s&&(this.pattern=t.substr(s)),this.negate=e}}fr.braceExpand=function(t,e){return sw(t,e)};ct.prototype.braceExpand=sw;function sw(t,e){if(e||(this instanceof ct?e=this.options:e={}),t=typeof t=="undefined"?this.pattern:t,typeof t=="undefined")throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:uN(t)}ct.prototype.parse=mN;var Rl={};function mN(t,e){if(t.length>1024*64)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&t==="**")return Bh;if(t==="")return"";var s="",i=!!r.nocase,n=!1,a=[],o=[],u,l=!1,c=-1,f=-1,d=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",p=this;function m(){if(u){switch(u){case"*":s+=Hh,i=!0;break;case"?":s+=Lh,i=!0;break;default:s+="\\"+u;break}p.debug("clearStateChar %j %j",u,s),u=!1}}for(var g=0,b=t.length,y;g<b&&(y=t.charAt(g));g++){if(this.debug("%s %s %s %j",t,g,s,y),n&&ew[y]){s+="\\"+y,n=!1;continue}switch(y){case"/":return!1;case"\\":m(),n=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,g,s,y),l){this.debug(" in class"),y==="!"&&g===f+1&&(y="^"),s+=y;continue}p.debug("call clearStateChar %j",u),m(),u=y,r.noext&&m();continue;case"(":if(l){s+="(";continue}if(!u){s+="\\(";continue}a.push({type:u,start:g-1,reStart:s.length,open:Z_[u].open,close:Z_[u].close}),s+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,s),u=!1;continue;case")":if(l||!a.length){s+="\\)";continue}m(),i=!0;var w=a.pop();s+=w.close,w.type==="!"&&o.push(w),w.reEnd=s.length;continue;case"|":if(l||!a.length||n){s+="\\|",n=!1;continue}m(),s+="|";continue;case"[":if(m(),l){s+="\\"+y;continue}l=!0,f=g,c=s.length,s+=y;continue;case"]":if(g===f+1||!l){s+="\\"+y,n=!1;continue}if(l){var k=t.substring(f+1,g);try{RegExp("["+k+"]")}catch{var O=this.parse(k,Rl);s=s.substr(0,c)+"\\["+O[0]+"\\]",i=i||O[1],l=!1;continue}}i=!0,l=!1,s+=y;continue;default:m(),n?n=!1:ew[y]&&!(y==="^"&&l)&&(s+="\\"),s+=y}}for(l&&(k=t.substr(f+1),O=this.parse(k,Rl),s=s.substr(0,c)+"\\["+O[0],i=i||O[1]),w=a.pop();w;w=a.pop()){var P=s.slice(w.reStart+w.open.length);this.debug("setting tail",s,w),P=P.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(At,st,zr){return zr||(zr="\\"),st+st+zr+"|"}),this.debug(`tail=%j
|
|
24
|
+
%s`,P,P,w,s);var I=w.type==="*"?Hh:w.type==="?"?Lh:"\\"+w.type;i=!0,s=s.slice(0,w.reStart)+I+"\\("+P}m(),n&&(s+="\\\\");var z=!1;switch(s.charAt(0)){case".":case"[":case"(":z=!0}for(var T=o.length-1;T>-1;T--){var $=o[T],F=s.slice(0,$.reStart),S=s.slice($.reStart,$.reEnd-8),H=s.slice($.reEnd-8,$.reEnd),V=s.slice($.reEnd);H+=V;var ge=F.split("(").length-1,x=V;for(g=0;g<ge;g++)x=x.replace(/\)[+*?]?/,"");V=x;var D="";V===""&&e!==Rl&&(D="$");var be=F+S+V+D+H;s=be}if(s!==""&&i&&(s="(?=.)"+s),z&&(s=d+s),e===Rl)return[s,i];if(!i)return vN(t);var L=r.nocase?"i":"";try{var ut=new RegExp("^"+s+"$",L)}catch{return new RegExp("$.")}return ut._glob=t,ut._src=s,ut}fr.makeRe=function(t,e){return new ct(t,e||{}).makeRe()};ct.prototype.makeRe=gN;function gN(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?Hh:e.dot?lN:cN,s=e.nocase?"i":"",i=t.map(function(n){return n.map(function(a){return a===Bh?r:typeof a=="string"?bN(a):a._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}fr.match=function(t,e,r){r=r||{};var s=new ct(e,r);return t=t.filter(function(i){return s.match(i)}),s.options.nonull&&!t.length&&t.push(e),t};ct.prototype.match=yN;function yN(t,e){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&e)return!0;var r=this.options;Mo.sep!=="/"&&(t=t.split(Mo.sep).join("/")),t=t.split(tw),this.debug(this.pattern,"split",t);var s=this.set;this.debug(this.pattern,"set",s);var i,n;for(n=t.length-1;n>=0&&(i=t[n],!i);n--);for(n=0;n<s.length;n++){var a=s[n],o=t;r.matchBase&&a.length===1&&(o=[i]);var u=this.matchOne(o,a,e);if(u)return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}ct.prototype.matchOne=function(t,e,r){var s=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,n=0,a=t.length,o=e.length;i<a&&n<o;i++,n++){this.debug("matchOne loop");var u=e[n],l=t[i];if(this.debug(e,u,l),u===!1)return!1;if(u===Bh){this.debug("GLOBSTAR",[e,u,l]);var c=i,f=n+1;if(f===o){for(this.debug("** at the end");i<a;i++)if(t[i]==="."||t[i]===".."||!s.dot&&t[i].charAt(0)===".")return!1;return!0}for(;c<a;){var d=t[c];if(this.debug(`
|
|
25
25
|
globstar while`,t,c,e,f,d),this.matchOne(t.slice(c),e.slice(f),r))return this.debug("globstar found match!",c,a,d),!0;if(d==="."||d===".."||!s.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,c,e,f);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(r&&(this.debug(`
|
|
26
|
-
>>> no match, partial?`,t,c,e,f),c===a))}var
|
|
26
|
+
>>> no match, partial?`,t,c,e,f),c===a))}var p;if(typeof u=="string"?(s.nocase?p=l.toLowerCase()===u.toLowerCase():p=l===u,this.debug("string match",u,l,p)):(p=l.match(u),this.debug("pattern match",u,l,p)),!p)return!1}if(i===a&&n===o)return!0;if(i===a)return r;if(n===o){var m=i===a-1&&t[i]==="";return m}throw new Error("wtf?")};function vN(t){return t.replace(/\\(.)/g,"$1")}function bN(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var nw=h((nre,Uh)=>{typeof Object.create=="function"?Uh.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Uh.exports=function(e,r){if(r){e.super_=r;var s=function(){};s.prototype=r.prototype,e.prototype=new s,e.prototype.constructor=e}}});var Gs=h((are,Vh)=>{try{if(Gh=require("util"),typeof Gh.inherits!="function")throw"";Vh.exports=Gh.inherits}catch{Vh.exports=nw()}var Gh});var Fl=h((ore,$l)=>{"use strict";function aw(t){return t.charAt(0)==="/"}function ow(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=e.exec(t),s=r[1]||"",i=Boolean(s&&s.charAt(1)!==":");return Boolean(r[2]||i)}$l.exports=process.platform==="win32"?ow:aw;$l.exports.posix=aw;$l.exports.win32=ow});var Wh=h(Vs=>{Vs.setopts=CN;Vs.ownProp=uw;Vs.makeAbs=No;Vs.finish=SN;Vs.mark=xN;Vs.isIgnored=cw;Vs.childrenIgnored=AN;function uw(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var _N=require("fs"),zn=require("path"),wN=Pl(),lw=Fl(),zh=wN.Minimatch;function EN(t,e){return t.localeCompare(e,"en")}function kN(t,e){t.ignore=e.ignore||[],Array.isArray(t.ignore)||(t.ignore=[t.ignore]),t.ignore.length&&(t.ignore=t.ignore.map(DN))}function DN(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new zh(r,{dot:!0})}return{matcher:new zh(t,{dot:!0}),gmatcher:e}}function CN(t,e,r){if(r||(r={}),r.matchBase&&e.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}t.silent=!!r.silent,t.pattern=e,t.strict=r.strict!==!1,t.realpath=!!r.realpath,t.realpathCache=r.realpathCache||Object.create(null),t.follow=!!r.follow,t.dot=!!r.dot,t.mark=!!r.mark,t.nodir=!!r.nodir,t.nodir&&(t.mark=!0),t.sync=!!r.sync,t.nounique=!!r.nounique,t.nonull=!!r.nonull,t.nosort=!!r.nosort,t.nocase=!!r.nocase,t.stat=!!r.stat,t.noprocess=!!r.noprocess,t.absolute=!!r.absolute,t.fs=r.fs||_N,t.maxLength=r.maxLength||1/0,t.cache=r.cache||Object.create(null),t.statCache=r.statCache||Object.create(null),t.symlinks=r.symlinks||Object.create(null),kN(t,r),t.changedCwd=!1;var s=process.cwd();uw(r,"cwd")?(t.cwd=zn.resolve(r.cwd),t.changedCwd=t.cwd!==s):t.cwd=s,t.root=r.root||zn.resolve(t.cwd,"/"),t.root=zn.resolve(t.root),process.platform==="win32"&&(t.root=t.root.replace(/\\/g,"/")),t.cwdAbs=lw(t.cwd)?t.cwd:No(t,t.cwd),process.platform==="win32"&&(t.cwdAbs=t.cwdAbs.replace(/\\/g,"/")),t.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,t.minimatch=new zh(e,r),t.options=t.minimatch.options}function SN(t){for(var e=t.nounique,r=e?[]:Object.create(null),s=0,i=t.matches.length;s<i;s++){var n=t.matches[s];if(!n||Object.keys(n).length===0){if(t.nonull){var a=t.minimatch.globSet[s];e?r.push(a):r[a]=!0}}else{var o=Object.keys(n);e?r.push.apply(r,o):o.forEach(function(u){r[u]=!0})}}if(e||(r=Object.keys(r)),t.nosort||(r=r.sort(EN)),t.mark){for(var s=0;s<r.length;s++)r[s]=t._mark(r[s]);t.nodir&&(r=r.filter(function(u){var l=!/\/$/.test(u),c=t.cache[u]||t.cache[No(t,u)];return l&&c&&(l=c!=="DIR"&&!Array.isArray(c)),l}))}t.ignore.length&&(r=r.filter(function(u){return!cw(t,u)})),t.found=r}function xN(t,e){var r=No(t,e),s=t.cache[r],i=e;if(s){var n=s==="DIR"||Array.isArray(s),a=e.slice(-1)==="/";if(n&&!a?i+="/":!n&&a&&(i=i.slice(0,-1)),i!==e){var o=No(t,i);t.statCache[o]=t.statCache[r],t.cache[o]=t.cache[r]}}return i}function No(t,e){var r=e;return e.charAt(0)==="/"?r=zn.join(t.root,e):lw(e)||e===""?r=e:t.changedCwd?r=zn.resolve(t.cwd,e):r=zn.resolve(e),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function cw(t,e){return t.ignore.length?t.ignore.some(function(r){return r.matcher.match(e)||!!(r.gmatcher&&r.gmatcher.match(e))}):!1}function AN(t,e){return t.ignore.length?t.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(e))}):!1}});var mw=h((dre,pw)=>{pw.exports=hw;hw.GlobSync=it;var ON=Mh(),fw=Pl(),lre=fw.Minimatch,cre=Jh().Glob,fre=require("util"),Kh=require("path"),dw=require("assert"),jl=Fl(),Mi=Wh(),TN=Mi.setopts,Yh=Mi.ownProp,RN=Mi.childrenIgnored,PN=Mi.isIgnored;function hw(t,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
27
27
|
See: https://github.com/isaacs/node-glob/issues/167`);return new it(t,e).found}function it(t,e){if(!t)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
28
|
-
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof it))return new it(t,e);if(ON(this,t,e),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var s=0;s<r;s++)this._process(this.minimatch.set[s],s,!1);this._finish()}it.prototype._finish=function(){if(fw(this instanceof it),this.realpath){var t=this;this.matches.forEach(function(e,r){var s=t.matches[r]=Object.create(null);for(var i in e)try{i=t._makeAbs(i);var n=AN.realpathSync(i,t.realpathCache);s[n]=!0}catch(a){if(a.syscall==="stat")s[t._makeAbs(i)]=!0;else throw a}})}Mi.finish(this)};it.prototype._process=function(t,e,r){fw(this instanceof it);for(var s=0;typeof t[s]=="string";)s++;var i;switch(s){case t.length:this._processSimple(t.join("/"),e);return;case 0:i=null;break;default:i=t.slice(0,s).join("/");break}var n=t.slice(s),a;i===null?a=".":((jl(i)||jl(t.join("/")))&&(!i||!jl(i))&&(i="/"+i),a=i);var o=this._makeAbs(a);if(!TN(this,a)){var u=n[0]===cw.GLOBSTAR;u?this._processGlobStar(i,a,o,n,e,r):this._processReaddir(i,a,o,n,e,r)}};it.prototype._processReaddir=function(t,e,r,s,i,n){var a=this._readdir(r,n);if(!!a){for(var o=s[0],u=!!this.minimatch.negate,l=o._glob,c=this.dot||l.charAt(0)===".",f=[],d=0;d<a.length;d++){var m=a[d];if(m.charAt(0)!=="."||c){var p;u&&!t?p=!m.match(o):p=m.match(o),p&&f.push(m)}}var g=f.length;if(g!==0){if(s.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var d=0;d<g;d++){var m=f[d];t&&(t.slice(-1)!=="/"?m=t+"/"+m:m=t+m),m.charAt(0)==="/"&&!this.nomount&&(m=Wh.join(this.root,m)),this._emitMatch(i,m)}return}s.shift();for(var d=0;d<g;d++){var m=f[d],b;t?b=[t,m]:b=[m],this._process(b.concat(s),i,n)}}}};it.prototype._emitMatch=function(t,e){if(!RN(this,e)){var r=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var s=this.cache[r];if(s==="DIR"||Array.isArray(s))return}this.matches[t][e]=!0,this.stat&&this._stat(e)}}};it.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,r,s;try{r=this.fs.lstatSync(t)}catch(n){if(n.code==="ENOENT")return null}var i=r&&r.isSymbolicLink();return this.symlinks[t]=i,!i&&r&&!r.isDirectory()?this.cache[t]="FILE":e=this._readdir(t,!1),e};it.prototype._readdir=function(t,e){var r;if(e&&!Kh(this.symlinks,t))return this._readdirInGlobStar(t);if(Kh(this.cache,t)){var s=this.cache[t];if(!s||s==="FILE")return null;if(Array.isArray(s))return s}try{return this._readdirEntries(t,this.fs.readdirSync(t))}catch(i){return this._readdirError(t,i),null}};it.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat)for(var r=0;r<e.length;r++){var s=e[r];t==="/"?s=t+s:s=t+"/"+s,this.cache[s]=!0}return this.cache[t]=e,e};it.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);if(this.cache[r]="FILE",r===this.cwdAbs){var s=new Error(e.code+" invalid cwd "+this.cwd);throw s.path=this.cwd,s.code=e.code,s}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:if(this.cache[this._makeAbs(t)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};it.prototype._processGlobStar=function(t,e,r,s,i,n){var a=this._readdir(r,n);if(!!a){var o=s.slice(1),u=t?[t]:[],l=u.concat(o);this._process(l,i,!1);var c=a.length,f=this.symlinks[r];if(!(f&&n))for(var d=0;d<c;d++){var m=a[d];if(!(m.charAt(0)==="."&&!this.dot)){var p=u.concat(a[d],o);this._process(p,i,!0);var g=u.concat(a[d],s);this._process(g,i,!0)}}}};it.prototype._processSimple=function(t,e){var r=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!r){if(t&&jl(t)&&!this.nomount){var s=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=Wh.join(this.root,t):(t=Wh.resolve(this.root,t),s&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t)}};it.prototype._stat=function(t){var e=this._makeAbs(t),r=t.slice(-1)==="/";if(t.length>this.maxLength)return!1;if(!this.stat&&Kh(this.cache,e)){var a=this.cache[e];if(Array.isArray(a)&&(a="DIR"),!r||a==="DIR")return a;if(r&&a==="FILE")return!1}var s,i=this.statCache[e];if(!i){var n;try{n=this.fs.lstatSync(e)}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(n&&n.isSymbolicLink())try{i=this.fs.statSync(e)}catch{i=n}else i=n}this.statCache[e]=i;var a=!0;return i&&(a=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||a,r&&a==="FILE"?!1:a};it.prototype._mark=function(t){return Mi.mark(this,t)};it.prototype._makeAbs=function(t){return Mi.makeAbs(this,t)}});var Jh=h((dre,gw)=>{gw.exports=mw;function mw(t,e){if(t&&e)return mw(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(s){r[s]=t[s]}),r;function r(){for(var s=new Array(arguments.length),i=0;i<s.length;i++)s[i]=arguments[i];var n=t.apply(this,s),a=s[s.length-1];return typeof n=="function"&&n!==a&&Object.keys(a).forEach(function(o){n[o]=a[o]}),n}}});var Xh=h((hre,Qh)=>{var yw=Jh();Qh.exports=yw(Il);Qh.exports.strict=yw(vw);Il.proto=Il(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Il(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return vw(this)},configurable:!0})});function Il(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function vw(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 _w=h((pre,bw)=>{var PN=Jh(),qo=Object.create(null),$N=Xh();bw.exports=PN(FN);function FN(t,e){return qo[t]?(qo[t].push(e),null):(qo[t]=[e],jN(t))}function jN(t){return $N(function e(){var r=qo[t],s=r.length,i=IN(arguments);try{for(var n=0;n<s;n++)r[n].apply(null,i)}finally{r.length>s?(r.splice(0,s),process.nextTick(function(){e.apply(null,i)})):delete qo[t]}})}function IN(t){for(var e=t.length,r=[],s=0;s<e;s++)r[s]=t[s];return r}});var Yh=h((yre,Ew)=>{Ew.exports=qi;var MN=Ih(),ww=Pl(),mre=ww.Minimatch,NN=Gs(),qN=require("events").EventEmitter,Zh=require("path"),ep=require("assert"),Bo=Fl(),tp=pw(),Ni=zh(),BN=Ni.setopts,rp=Ni.ownProp,sp=_w(),gre=require("util"),LN=Ni.childrenIgnored,HN=Ni.isIgnored,UN=Xh();function qi(t,e,r){if(typeof e=="function"&&(r=e,e={}),e||(e={}),e.sync){if(r)throw new TypeError("callback provided to sync glob");return tp(t,e)}return new De(t,e,r)}qi.sync=tp;var GN=qi.GlobSync=tp.GlobSync;qi.glob=qi;function VN(t,e){if(e===null||typeof e!="object")return t;for(var r=Object.keys(e),s=r.length;s--;)t[r[s]]=e[r[s]];return t}qi.hasMagic=function(t,e){var r=VN({},e);r.noprocess=!0;var s=new De(t,r),i=s.minimatch.set;if(!t)return!1;if(i.length>1)return!0;for(var n=0;n<i[0].length;n++)if(typeof i[0][n]!="string")return!0;return!1};qi.Glob=De;NN(De,qN);function De(t,e,r){if(typeof e=="function"&&(r=e,e=null),e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new GN(t,e)}if(!(this instanceof De))return new De(t,e,r);BN(this,t,e),this._didRealPath=!1;var s=this.minimatch.set.length;this.matches=new Array(s),typeof r=="function"&&(r=UN(r),this.on("error",r),this.on("end",function(u){r(null,u)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(s===0)return o();for(var n=!0,a=0;a<s;a++)this._process(this.minimatch.set[a],a,!1,o);n=!1;function o(){--i._processing,i._processing<=0&&(n?process.nextTick(function(){i._finish()}):i._finish())}}De.prototype._finish=function(){if(ep(this instanceof De),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();Ni.finish(this),this.emit("end",this.found)}};De.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var t=this.matches.length;if(t===0)return this._finish();for(var e=this,r=0;r<this.matches.length;r++)this._realpathSet(r,s);function s(){--t==0&&e._finish()}};De.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var s=Object.keys(r),i=this,n=s.length;if(n===0)return e();var a=this.matches[t]=Object.create(null);s.forEach(function(o,u){o=i._makeAbs(o),MN.realpath(o,i.realpathCache,function(l,c){l?l.syscall==="stat"?a[o]=!0:i.emit("error",l):a[c]=!0,--n==0&&(i.matches[t]=a,e())})})};De.prototype._mark=function(t){return Ni.mark(this,t)};De.prototype._makeAbs=function(t){return Ni.makeAbs(this,t)};De.prototype.abort=function(){this.aborted=!0,this.emit("abort")};De.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};De.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var s=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<s.length;e++){var i=s[e];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}};De.prototype._process=function(t,e,r,s){if(ep(this instanceof De),ep(typeof s=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([t,e,r,s]);return}for(var i=0;typeof t[i]=="string";)i++;var n;switch(i){case t.length:this._processSimple(t.join("/"),e,s);return;case 0:n=null;break;default:n=t.slice(0,i).join("/");break}var a=t.slice(i),o;n===null?o=".":((Bo(n)||Bo(t.join("/")))&&(!n||!Bo(n))&&(n="/"+n),o=n);var u=this._makeAbs(o);if(LN(this,o))return s();var l=a[0]===ww.GLOBSTAR;l?this._processGlobStar(n,o,u,a,e,r,s):this._processReaddir(n,o,u,a,e,r,s)}};De.prototype._processReaddir=function(t,e,r,s,i,n,a){var o=this;this._readdir(r,n,function(u,l){return o._processReaddir2(t,e,r,s,i,n,l,a)})};De.prototype._processReaddir2=function(t,e,r,s,i,n,a,o){if(!a)return o();for(var u=s[0],l=!!this.minimatch.negate,c=u._glob,f=this.dot||c.charAt(0)===".",d=[],m=0;m<a.length;m++){var p=a[m];if(p.charAt(0)!=="."||f){var g;l&&!t?g=!p.match(u):g=p.match(u),g&&d.push(p)}}var b=d.length;if(b===0)return o();if(s.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var m=0;m<b;m++){var p=d[m];t&&(t!=="/"?p=t+"/"+p:p=t+p),p.charAt(0)==="/"&&!this.nomount&&(p=Zh.join(this.root,p)),this._emitMatch(i,p)}return o()}s.shift();for(var m=0;m<b;m++){var p=d[m],y;t&&(t!=="/"?p=t+"/"+p:p=t+p),this._process([p].concat(s),i,n,o)}o()};De.prototype._emitMatch=function(t,e){if(!this.aborted&&!HN(this,e)){if(this.paused){this._emitQueue.push([t,e]);return}var r=Bo(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var s=this.cache[r];if(s==="DIR"||Array.isArray(s))return}this.matches[t][e]=!0;var i=this.statCache[r];i&&this.emit("stat",e,i),this.emit("match",e)}}};De.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,!1,e);var r="lstat\0"+t,s=this,i=sp(r,n);i&&s.fs.lstat(t,i);function n(a,o){if(a&&a.code==="ENOENT")return e();var u=o&&o.isSymbolicLink();s.symlinks[t]=u,!u&&o&&!o.isDirectory()?(s.cache[t]="FILE",e()):s._readdir(t,!1,e)}};De.prototype._readdir=function(t,e,r){if(!this.aborted&&(r=sp("readdir\0"+t+"\0"+e,r),!!r)){if(e&&!rp(this.symlinks,t))return this._readdirInGlobStar(t,r);if(rp(this.cache,t)){var s=this.cache[t];if(!s||s==="FILE")return r();if(Array.isArray(s))return r(null,s)}var i=this;i.fs.readdir(t,zN(this,t,r))}};function zN(t,e,r){return function(s,i){s?t._readdirError(e,s,r):t._readdirEntries(e,i,r)}}De.prototype._readdirEntries=function(t,e,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var s=0;s<e.length;s++){var i=e[s];t==="/"?i=t+i:i=t+"/"+i,this.cache[i]=!0}return this.cache[t]=e,r(null,e)}};De.prototype._readdirError=function(t,e,r){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var s=this._makeAbs(t);if(this.cache[s]="FILE",s===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=e.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return r()}};De.prototype._processGlobStar=function(t,e,r,s,i,n,a){var o=this;this._readdir(r,n,function(u,l){o._processGlobStar2(t,e,r,s,i,n,l,a)})};De.prototype._processGlobStar2=function(t,e,r,s,i,n,a,o){if(!a)return o();var u=s.slice(1),l=t?[t]:[],c=l.concat(u);this._process(c,i,!1,o);var f=this.symlinks[r],d=a.length;if(f&&n)return o();for(var m=0;m<d;m++){var p=a[m];if(!(p.charAt(0)==="."&&!this.dot)){var g=l.concat(a[m],u);this._process(g,i,!0,o);var b=l.concat(a[m],s);this._process(b,i,!0,o)}}o()};De.prototype._processSimple=function(t,e,r){var s=this;this._stat(t,function(i,n){s._processSimple2(t,e,i,n,r)})};De.prototype._processSimple2=function(t,e,r,s,i){if(this.matches[e]||(this.matches[e]=Object.create(null)),!s)return i();if(t&&Bo(t)&&!this.nomount){var n=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=Zh.join(this.root,t):(t=Zh.resolve(this.root,t),n&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),i()};De.prototype._stat=function(t,e){var r=this._makeAbs(t),s=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&rp(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!s||i==="DIR")return e(null,i);if(s&&i==="FILE")return e()}var n,a=this.statCache[r];if(a!==void 0){if(a===!1)return e(null,a);var o=a.isDirectory()?"DIR":"FILE";return s&&o==="FILE"?e():e(null,o,a)}var u=this,l=sp("stat\0"+r,c);l&&u.fs.lstat(r,l);function c(f,d){if(d&&d.isSymbolicLink())return u.fs.stat(r,function(m,p){m?u._stat2(t,r,null,d,e):u._stat2(t,r,m,p,e)});u._stat2(t,r,f,d,e)}};De.prototype._stat2=function(t,e,r,s,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[e]=!1,i();var n=t.slice(-1)==="/";if(this.statCache[e]=s,e.slice(-1)==="/"&&s&&!s.isDirectory())return i(null,!1,s);var a=!0;return s&&(a=s.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||a,n&&a==="FILE"?i():i(null,a,s)}});var Dw=h((vre,Bi)=>{var Lo=Yh(),kw=function(t,e){return new Promise((r,s)=>{Lo(t,e,(i,n)=>i===null?r(n):s(i))})};Bi.exports=kw;Bi.exports.glob=Lo;Bi.exports.Glob=Lo.Glob;Bi.exports.hasMagic=Lo.hasMagic;Bi.exports.promise=kw;Bi.exports.sync=Lo.sync});var Ho=h((_re,Rw)=>{"use strict";var KN=require("path"),Jr="\\\\/",xw=`[^${Jr}]`,gs="\\.",YN="\\+",JN="\\?",Ml="\\/",QN="(?=.)",Aw="[^/]",ip=`(?:${Ml}|$)`,Ow=`(?:^|${Ml})`,np=`${gs}{1,2}${ip}`,XN=`(?!${gs})`,ZN=`(?!${Ow}${np})`,eq=`(?!${gs}{0,1}${ip})`,tq=`(?!${np})`,rq=`[^.${Ml}]`,sq=`${Aw}*?`,Tw={DOT_LITERAL:gs,PLUS_LITERAL:YN,QMARK_LITERAL:JN,SLASH_LITERAL:Ml,ONE_CHAR:QN,QMARK:Aw,END_ANCHOR:ip,DOTS_SLASH:np,NO_DOT:XN,NO_DOTS:ZN,NO_DOT_SLASH:eq,NO_DOTS_SLASH:tq,QMARK_NO_DOT:rq,STAR:sq,START_ANCHOR:Ow},iq={...Tw,SLASH_LITERAL:`[${Jr}]`,QMARK:xw,STAR:`${xw}*?`,DOTS_SLASH:`${gs}{1,2}(?:[${Jr}]|$)`,NO_DOT:`(?!${gs})`,NO_DOTS:`(?!(?:^|[${Jr}])${gs}{1,2}(?:[${Jr}]|$))`,NO_DOT_SLASH:`(?!${gs}{0,1}(?:[${Jr}]|$))`,NO_DOTS_SLASH:`(?!${gs}{1,2}(?:[${Jr}]|$))`,QMARK_NO_DOT:`[^.${Jr}]`,START_ANCHOR:`(?:^|[${Jr}])`,END_ANCHOR:`(?:[${Jr}]|$)`},nq={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"};Rw.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:nq,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:KN.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?iq:Tw}}});var Nl=h(Vt=>{"use strict";var aq=require("path"),oq=process.platform==="win32",{REGEX_BACKSLASH:uq,REGEX_REMOVE_BACKSLASH:lq,REGEX_SPECIAL_CHARS:cq,REGEX_SPECIAL_CHARS_GLOBAL:fq}=Ho();Vt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Vt.hasRegexChars=t=>cq.test(t);Vt.isRegexChar=t=>t.length===1&&Vt.hasRegexChars(t);Vt.escapeRegex=t=>t.replace(fq,"\\$1");Vt.toPosixSlashes=t=>t.replace(uq,"/");Vt.removeBackslashes=t=>t.replace(lq,e=>e==="\\"?"":e);Vt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Vt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:oq===!0||aq.sep==="\\";Vt.escapeLast=(t,e,r)=>{let s=t.lastIndexOf(e,r);return s===-1?t:t[s-1]==="\\"?Vt.escapeLast(t,e,s-1):`${t.slice(0,s)}\\${t.slice(s)}`};Vt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Vt.wrapOutput=(t,e={},r={})=>{let s=r.contains?"":"^",i=r.contains?"":"$",n=`${s}(?:${t})${i}`;return e.negated===!0&&(n=`(?:^(?!${n}).*$)`),n}});var qw=h((Ere,Nw)=>{"use strict";var Pw=Nl(),{CHAR_ASTERISK:ap,CHAR_AT:dq,CHAR_BACKWARD_SLASH:Uo,CHAR_COMMA:hq,CHAR_DOT:op,CHAR_EXCLAMATION_MARK:up,CHAR_FORWARD_SLASH:$w,CHAR_LEFT_CURLY_BRACE:lp,CHAR_LEFT_PARENTHESES:cp,CHAR_LEFT_SQUARE_BRACKET:pq,CHAR_PLUS:mq,CHAR_QUESTION_MARK:Fw,CHAR_RIGHT_CURLY_BRACE:gq,CHAR_RIGHT_PARENTHESES:jw,CHAR_RIGHT_SQUARE_BRACKET:yq}=Ho(),Iw=t=>t===$w||t===Uo,Mw=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},vq=(t,e)=>{let r=e||{},s=t.length-1,i=r.parts===!0||r.scanToEnd===!0,n=[],a=[],o=[],u=t,l=-1,c=0,f=0,d=!1,m=!1,p=!1,g=!1,b=!1,y=!1,w=!1,k=!1,O=!1,P=!1,I=0,z,T,$={value:"",depth:0,isGlob:!1},F=()=>l>=s,S=()=>u.charCodeAt(l+1),H=()=>(z=T,u.charCodeAt(++l));for(;l<s;){T=H();let be;if(T===Uo){w=$.backslashes=!0,T=H(),T===lp&&(y=!0);continue}if(y===!0||T===lp){for(I++;F()!==!0&&(T=H());){if(T===Uo){w=$.backslashes=!0,H();continue}if(T===lp){I++;continue}if(y!==!0&&T===op&&(T=H())===op){if(d=$.isBrace=!0,p=$.isGlob=!0,P=!0,i===!0)continue;break}if(y!==!0&&T===hq){if(d=$.isBrace=!0,p=$.isGlob=!0,P=!0,i===!0)continue;break}if(T===gq&&(I--,I===0)){y=!1,d=$.isBrace=!0,P=!0;break}}if(i===!0)continue;break}if(T===$w){if(n.push(l),a.push($),$={value:"",depth:0,isGlob:!1},P===!0)continue;if(z===op&&l===c+1){c+=2;continue}f=l+1;continue}if(r.noext!==!0&&(T===mq||T===dq||T===ap||T===Fw||T===up)===!0&&S()===cp){if(p=$.isGlob=!0,g=$.isExtglob=!0,P=!0,T===up&&l===c&&(O=!0),i===!0){for(;F()!==!0&&(T=H());){if(T===Uo){w=$.backslashes=!0,T=H();continue}if(T===jw){p=$.isGlob=!0,P=!0;break}}continue}break}if(T===ap){if(z===ap&&(b=$.isGlobstar=!0),p=$.isGlob=!0,P=!0,i===!0)continue;break}if(T===Fw){if(p=$.isGlob=!0,P=!0,i===!0)continue;break}if(T===pq){for(;F()!==!0&&(be=H());){if(be===Uo){w=$.backslashes=!0,H();continue}if(be===yq){m=$.isBracket=!0,p=$.isGlob=!0,P=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&T===up&&l===c){k=$.negated=!0,c++;continue}if(r.noparen!==!0&&T===cp){if(p=$.isGlob=!0,i===!0){for(;F()!==!0&&(T=H());){if(T===cp){w=$.backslashes=!0,T=H();continue}if(T===jw){P=!0;break}}continue}break}if(p===!0){if(P=!0,i===!0)continue;break}}r.noext===!0&&(g=!1,p=!1);let V=u,ge="",x="";c>0&&(ge=u.slice(0,c),u=u.slice(c),f-=c),V&&p===!0&&f>0?(V=u.slice(0,f),x=u.slice(f)):p===!0?(V="",x=u):V=u,V&&V!==""&&V!=="/"&&V!==u&&Iw(V.charCodeAt(V.length-1))&&(V=V.slice(0,-1)),r.unescape===!0&&(x&&(x=Pw.removeBackslashes(x)),V&&w===!0&&(V=Pw.removeBackslashes(V)));let D={prefix:ge,input:t,start:c,base:V,glob:x,isBrace:d,isBracket:m,isGlob:p,isExtglob:g,isGlobstar:b,negated:k,negatedExtglob:O};if(r.tokens===!0&&(D.maxDepth=0,Iw(T)||a.push($),D.tokens=a),r.parts===!0||r.tokens===!0){let be;for(let L=0;L<n.length;L++){let ut=be?be+1:c,At=n[L],st=t.slice(ut,At);r.tokens&&(L===0&&c!==0?(a[L].isPrefix=!0,a[L].value=ge):a[L].value=st,Mw(a[L]),D.maxDepth+=a[L].depth),(L!==0||st!=="")&&o.push(st),be=At}if(be&&be+1<t.length){let L=t.slice(be+1);o.push(L),r.tokens&&(a[a.length-1].value=L,Mw(a[a.length-1]),D.maxDepth+=a[a.length-1].depth)}D.slashes=n,D.parts=o}return D};Nw.exports=vq});var Uw=h((kre,Hw)=>{"use strict";var ql=Ho(),sr=Nl(),{MAX_LENGTH:Bl,POSIX_REGEX_SOURCE:bq,REGEX_NON_SPECIAL_CHARS:_q,REGEX_SPECIAL_CHARS_BACKREF:wq,REPLACEMENTS:Bw}=ql,Eq=(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=>sr.escapeRegex(i)).join("..")}return r},Wn=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Lw=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Bw[t]||t;let r={...e},s=typeof r.maxLength=="number"?Math.min(Bl,r.maxLength):Bl,i=t.length;if(i>s)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${s}`);let n={type:"bos",value:"",output:r.prepend||""},a=[n],o=r.capture?"":"?:",u=sr.isWindows(e),l=ql.globChars(u),c=ql.extglobChars(l),{DOT_LITERAL:f,PLUS_LITERAL:d,SLASH_LITERAL:m,ONE_CHAR:p,DOTS_SLASH:g,NO_DOT:b,NO_DOT_SLASH:y,NO_DOTS_SLASH:w,QMARK:k,QMARK_NO_DOT:O,STAR:P,START_ANCHOR:I}=l,z=M=>`(${o}(?:(?!${I}${M.dot?g:f}).)*?)`,T=r.dot?"":b,$=r.dot?k:O,F=r.bash===!0?z(r):P;r.capture&&(F=`(${F})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let S={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:a};t=sr.removePrefix(t,S),i=t.length;let H=[],V=[],ge=[],x=n,D,be=()=>S.index===i-1,L=S.peek=(M=1)=>t[S.index+M],ut=S.advance=()=>t[++S.index]||"",At=()=>t.slice(S.index+1),st=(M="",Se=0)=>{S.consumed+=M,S.index+=Se},zr=M=>{S.output+=M.output!=null?M.output:M.value,st(M.value)},eh=()=>{let M=1;for(;L()==="!"&&(L(2)!=="("||L(3)==="?");)ut(),S.start++,M++;return M%2==0?!1:(S.negated=!0,S.start++,!0)},Ar=M=>{S[M]++,ge.push(M)},Xe=M=>{S[M]--,ge.pop()},K=M=>{if(x.type==="globstar"){let Se=S.braces>0&&(M.type==="comma"||M.type==="brace"),j=M.extglob===!0||H.length&&(M.type==="pipe"||M.type==="paren");M.type!=="slash"&&M.type!=="paren"&&!Se&&!j&&(S.output=S.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=F,S.output+=x.output)}if(H.length&&M.type!=="paren"&&(H[H.length-1].inner+=M.value),(M.value||M.output)&&zr(M),x&&x.type==="text"&&M.type==="text"){x.value+=M.value,x.output=(x.output||"")+M.value;return}M.prev=x,a.push(M),x=M},Or=(M,Se)=>{let j={...c[Se],conditions:1,inner:""};j.prev=x,j.parens=S.parens,j.output=S.output;let te=(r.capture?"(":"")+j.open;Ar("parens"),K({type:M,value:Se,output:S.output?"":p}),K({type:"paren",extglob:!0,value:ut(),output:te}),H.push(j)},vo=M=>{let Se=M.close+(r.capture?")":""),j;if(M.type==="negate"){let te=F;M.inner&&M.inner.length>1&&M.inner.includes("/")&&(te=z(r)),(te!==F||be()||/^\)+$/.test(At()))&&(Se=M.close=`)$))${te}`),M.inner.includes("*")&&(j=At())&&/^\.[^\\/.]+$/.test(j)&&(Se=M.close=`)${j})${te})`),M.prev.type==="bos"&&(S.negatedExtglob=!0)}K({type:"paren",extglob:!0,value:D,output:Se}),Xe("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let M=!1,Se=t.replace(wq,(j,te,Le,$e,Ye,On)=>$e==="\\"?(M=!0,j):$e==="?"?te?te+$e+(Ye?k.repeat(Ye.length):""):On===0?$+(Ye?k.repeat(Ye.length):""):k.repeat(Le.length):$e==="."?f.repeat(Le.length):$e==="*"?te?te+$e+(Ye?F:""):F:te?j:`\\${j}`);return M===!0&&(r.unescape===!0?Se=Se.replace(/\\/g,""):Se=Se.replace(/\\+/g,j=>j.length%2==0?"\\\\":j?"\\":"")),Se===t&&r.contains===!0?(S.output=t,S):(S.output=sr.wrapOutput(Se,S,e),S)}for(;!be();){if(D=ut(),D==="\0")continue;if(D==="\\"){let j=L();if(j==="/"&&r.bash!==!0||j==="."||j===";")continue;if(!j){D+="\\",K({type:"text",value:D});continue}let te=/^\\+/.exec(At()),Le=0;if(te&&te[0].length>2&&(Le=te[0].length,S.index+=Le,Le%2!=0&&(D+="\\")),r.unescape===!0?D=ut():D+=ut(),S.brackets===0){K({type:"text",value:D});continue}}if(S.brackets>0&&(D!=="]"||x.value==="["||x.value==="[^")){if(r.posix!==!1&&D===":"){let j=x.value.slice(1);if(j.includes("[")&&(x.posix=!0,j.includes(":"))){let te=x.value.lastIndexOf("["),Le=x.value.slice(0,te),$e=x.value.slice(te+2),Ye=bq[$e];if(Ye){x.value=Le+Ye,S.backtrack=!0,ut(),!n.output&&a.indexOf(x)===1&&(n.output=p);continue}}}(D==="["&&L()!==":"||D==="-"&&L()==="]")&&(D=`\\${D}`),D==="]"&&(x.value==="["||x.value==="[^")&&(D=`\\${D}`),r.posix===!0&&D==="!"&&x.value==="["&&(D="^"),x.value+=D,zr({value:D});continue}if(S.quotes===1&&D!=='"'){D=sr.escapeRegex(D),x.value+=D,zr({value:D});continue}if(D==='"'){S.quotes=S.quotes===1?0:1,r.keepQuotes===!0&&K({type:"text",value:D});continue}if(D==="("){Ar("parens"),K({type:"paren",value:D});continue}if(D===")"){if(S.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Wn("opening","("));let j=H[H.length-1];if(j&&S.parens===j.parens+1){vo(H.pop());continue}K({type:"paren",value:D,output:S.parens?")":"\\)"}),Xe("parens");continue}if(D==="["){if(r.nobracket===!0||!At().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Wn("closing","]"));D=`\\${D}`}else Ar("brackets");K({type:"bracket",value:D});continue}if(D==="]"){if(r.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){K({type:"text",value:D,output:`\\${D}`});continue}if(S.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Wn("opening","["));K({type:"text",value:D,output:`\\${D}`});continue}Xe("brackets");let j=x.value.slice(1);if(x.posix!==!0&&j[0]==="^"&&!j.includes("/")&&(D=`/${D}`),x.value+=D,zr({value:D}),r.literalBrackets===!1||sr.hasRegexChars(j))continue;let te=sr.escapeRegex(x.value);if(S.output=S.output.slice(0,-x.value.length),r.literalBrackets===!0){S.output+=te,x.value=te;continue}x.value=`(${o}${te}|${x.value})`,S.output+=x.value;continue}if(D==="{"&&r.nobrace!==!0){Ar("braces");let j={type:"brace",value:D,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};V.push(j),K(j);continue}if(D==="}"){let j=V[V.length-1];if(r.nobrace===!0||!j){K({type:"text",value:D,output:D});continue}let te=")";if(j.dots===!0){let Le=a.slice(),$e=[];for(let Ye=Le.length-1;Ye>=0&&(a.pop(),Le[Ye].type!=="brace");Ye--)Le[Ye].type!=="dots"&&$e.unshift(Le[Ye].value);te=Eq($e,r),S.backtrack=!0}if(j.comma!==!0&&j.dots!==!0){let Le=S.output.slice(0,j.outputIndex),$e=S.tokens.slice(j.tokensIndex);j.value=j.output="\\{",D=te="\\}",S.output=Le;for(let Ye of $e)S.output+=Ye.output||Ye.value}K({type:"brace",value:D,output:te}),Xe("braces"),V.pop();continue}if(D==="|"){H.length>0&&H[H.length-1].conditions++,K({type:"text",value:D});continue}if(D===","){let j=D,te=V[V.length-1];te&&ge[ge.length-1]==="braces"&&(te.comma=!0,j="|"),K({type:"comma",value:D,output:j});continue}if(D==="/"){if(x.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",a.pop(),x=n;continue}K({type:"slash",value:D,output:m});continue}if(D==="."){if(S.braces>0&&x.type==="dot"){x.value==="."&&(x.output=f);let j=V[V.length-1];x.type="dots",x.output+=D,x.value+=D,j.dots=!0;continue}if(S.braces+S.parens===0&&x.type!=="bos"&&x.type!=="slash"){K({type:"text",value:D,output:f});continue}K({type:"dot",value:D,output:f});continue}if(D==="?"){if(!(x&&x.value==="(")&&r.noextglob!==!0&&L()==="("&&L(2)!=="?"){Or("qmark",D);continue}if(x&&x.type==="paren"){let te=L(),Le=D;if(te==="<"&&!sr.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(x.value==="("&&!/[!=<:]/.test(te)||te==="<"&&!/<([!=]|\w+>)/.test(At()))&&(Le=`\\${D}`),K({type:"text",value:D,output:Le});continue}if(r.dot!==!0&&(x.type==="slash"||x.type==="bos")){K({type:"qmark",value:D,output:O});continue}K({type:"qmark",value:D,output:k});continue}if(D==="!"){if(r.noextglob!==!0&&L()==="("&&(L(2)!=="?"||!/[!=<:]/.test(L(3)))){Or("negate",D);continue}if(r.nonegate!==!0&&S.index===0){eh();continue}}if(D==="+"){if(r.noextglob!==!0&&L()==="("&&L(2)!=="?"){Or("plus",D);continue}if(x&&x.value==="("||r.regex===!1){K({type:"plus",value:D,output:d});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||S.parens>0){K({type:"plus",value:D});continue}K({type:"plus",value:d});continue}if(D==="@"){if(r.noextglob!==!0&&L()==="("&&L(2)!=="?"){K({type:"at",extglob:!0,value:D,output:""});continue}K({type:"text",value:D});continue}if(D!=="*"){(D==="$"||D==="^")&&(D=`\\${D}`);let j=_q.exec(At());j&&(D+=j[0],S.index+=j[0].length),K({type:"text",value:D});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=D,x.output=F,S.backtrack=!0,S.globstar=!0,st(D);continue}let M=At();if(r.noextglob!==!0&&/^\([^?]/.test(M)){Or("star",D);continue}if(x.type==="star"){if(r.noglobstar===!0){st(D);continue}let j=x.prev,te=j.prev,Le=j.type==="slash"||j.type==="bos",$e=te&&(te.type==="star"||te.type==="globstar");if(r.bash===!0&&(!Le||M[0]&&M[0]!=="/")){K({type:"star",value:D,output:""});continue}let Ye=S.braces>0&&(j.type==="comma"||j.type==="brace"),On=H.length&&(j.type==="pipe"||j.type==="paren");if(!Le&&j.type!=="paren"&&!Ye&&!On){K({type:"star",value:D,output:""});continue}for(;M.slice(0,3)==="/**";){let Ai=t[S.index+4];if(Ai&&Ai!=="/")break;M=M.slice(3),st("/**",3)}if(j.type==="bos"&&be()){x.type="globstar",x.value+=D,x.output=z(r),S.output=x.output,S.globstar=!0,st(D);continue}if(j.type==="slash"&&j.prev.type!=="bos"&&!$e&&be()){S.output=S.output.slice(0,-(j.output+x.output).length),j.output=`(?:${j.output}`,x.type="globstar",x.output=z(r)+(r.strictSlashes?")":"|$)"),x.value+=D,S.globstar=!0,S.output+=j.output+x.output,st(D);continue}if(j.type==="slash"&&j.prev.type!=="bos"&&M[0]==="/"){let Ai=M[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(j.output+x.output).length),j.output=`(?:${j.output}`,x.type="globstar",x.output=`${z(r)}${m}|${m}${Ai})`,x.value+=D,S.output+=j.output+x.output,S.globstar=!0,st(D+ut()),K({type:"slash",value:"/",output:""});continue}if(j.type==="bos"&&M[0]==="/"){x.type="globstar",x.value+=D,x.output=`(?:^|${m}|${z(r)}${m})`,S.output=x.output,S.globstar=!0,st(D+ut()),K({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-x.output.length),x.type="globstar",x.output=z(r),x.value+=D,S.output+=x.output,S.globstar=!0,st(D);continue}let Se={type:"star",value:D,output:F};if(r.bash===!0){Se.output=".*?",(x.type==="bos"||x.type==="slash")&&(Se.output=T+Se.output),K(Se);continue}if(x&&(x.type==="bracket"||x.type==="paren")&&r.regex===!0){Se.output=D,K(Se);continue}(S.index===S.start||x.type==="slash"||x.type==="dot")&&(x.type==="dot"?(S.output+=y,x.output+=y):r.dot===!0?(S.output+=w,x.output+=w):(S.output+=T,x.output+=T),L()!=="*"&&(S.output+=p,x.output+=p)),K(Se)}for(;S.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wn("closing","]"));S.output=sr.escapeLast(S.output,"["),Xe("brackets")}for(;S.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wn("closing",")"));S.output=sr.escapeLast(S.output,"("),Xe("parens")}for(;S.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wn("closing","}"));S.output=sr.escapeLast(S.output,"{"),Xe("braces")}if(r.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&K({type:"maybe_slash",value:"",output:`${m}?`}),S.backtrack===!0){S.output="";for(let M of S.tokens)S.output+=M.output!=null?M.output:M.value,M.suffix&&(S.output+=M.suffix)}return S};Lw.fastpaths=(t,e)=>{let r={...e},s=typeof r.maxLength=="number"?Math.min(Bl,r.maxLength):Bl,i=t.length;if(i>s)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${s}`);t=Bw[t]||t;let n=sr.isWindows(e),{DOT_LITERAL:a,SLASH_LITERAL:o,ONE_CHAR:u,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:d,STAR:m,START_ANCHOR:p}=ql.globChars(n),g=r.dot?f:c,b=r.dot?d:c,y=r.capture?"":"?:",w={negated:!1,prefix:""},k=r.bash===!0?".*?":m;r.capture&&(k=`(${k})`);let O=T=>T.noglobstar===!0?k:`(${y}(?:(?!${p}${T.dot?l:a}).)*?)`,P=T=>{switch(T){case"*":return`${g}${u}${k}`;case".*":return`${a}${u}${k}`;case"*.*":return`${g}${k}${a}${u}${k}`;case"*/*":return`${g}${k}${o}${u}${b}${k}`;case"**":return g+O(r);case"**/*":return`(?:${g}${O(r)}${o})?${b}${u}${k}`;case"**/*.*":return`(?:${g}${O(r)}${o})?${b}${k}${a}${u}${k}`;case"**/.*":return`(?:${g}${O(r)}${o})?${a}${u}${k}`;default:{let $=/^(.*?)\.(\w+)$/.exec(T);if(!$)return;let F=P($[1]);return F?F+a+$[2]:void 0}}},I=sr.removePrefix(t,w),z=P(I);return z&&r.strictSlashes!==!0&&(z+=`${o}?`),z};Hw.exports=Lw});var Vw=h((Dre,Gw)=>{"use strict";var kq=require("path"),Dq=qw(),fp=Uw(),dp=Nl(),Cq=Ho(),Sq=t=>t&&typeof t=="object"&&!Array.isArray(t),Je=(t,e,r=!1)=>{if(Array.isArray(t)){let c=t.map(d=>Je(d,e,r));return d=>{for(let m of c){let p=m(d);if(p)return p}return!1}}let s=Sq(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!s)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},n=dp.isWindows(e),a=s?Je.compileRe(t,e):Je.makeRe(t,e,!1,!0),o=a.state;delete a.state;let u=()=>!1;if(i.ignore){let c={...e,ignore:null,onMatch:null,onResult:null};u=Je(i.ignore,c,r)}let l=(c,f=!1)=>{let{isMatch:d,match:m,output:p}=Je.test(c,a,e,{glob:t,posix:n}),g={glob:t,state:o,regex:a,posix:n,input:c,output:p,match:m,isMatch:d};return typeof i.onResult=="function"&&i.onResult(g),d===!1?(g.isMatch=!1,f?g:!1):u(c)?(typeof i.onIgnore=="function"&&i.onIgnore(g),g.isMatch=!1,f?g:!1):(typeof i.onMatch=="function"&&i.onMatch(g),f?g:!0)};return r&&(l.state=o),l};Je.test=(t,e,r,{glob:s,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let n=r||{},a=n.format||(i?dp.toPosixSlashes:null),o=t===s,u=o&&a?a(t):t;return o===!1&&(u=a?a(t):t,o=u===s),(o===!1||n.capture===!0)&&(n.matchBase===!0||n.basename===!0?o=Je.matchBase(t,e,r,i):o=e.exec(u)),{isMatch:Boolean(o),match:o,output:u}};Je.matchBase=(t,e,r,s=dp.isWindows(r))=>(e instanceof RegExp?e:Je.makeRe(e,r)).test(kq.basename(t));Je.isMatch=(t,e,r)=>Je(e,r)(t);Je.parse=(t,e)=>Array.isArray(t)?t.map(r=>Je.parse(r,e)):fp(t,{...e,fastpaths:!1});Je.scan=(t,e)=>Dq(t,e);Je.compileRe=(t,e,r=!1,s=!1)=>{if(r===!0)return t.output;let i=e||{},n=i.contains?"":"^",a=i.contains?"":"$",o=`${n}(?:${t.output})${a}`;t&&t.negated===!0&&(o=`^(?!${o}).*$`);let u=Je.toRegex(o,e);return s===!0&&(u.state=t),u};Je.makeRe=(t,e={},r=!1,s=!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=fp.fastpaths(t,e)),i.output||(i=fp(t,e)),Je.compileRe(i,e,r,s)};Je.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/$^/}};Je.constants=Cq;Gw.exports=Je});var hp=h((Cre,zw)=>{"use strict";zw.exports=Vw()});var eE=h((Sre,Zw)=>{"use strict";var Go=require("fs"),{Readable:xq}=require("stream"),Vo=require("path"),{promisify:Ll}=require("util"),pp=hp(),Aq=Ll(Go.readdir),Oq=Ll(Go.stat),Ww=Ll(Go.lstat),Tq=Ll(Go.realpath),Rq="!",Kw="READDIRP_RECURSIVE_ERROR",Pq=new Set(["ENOENT","EPERM","EACCES","ELOOP",Kw]),mp="files",Yw="directories",Hl="files_directories",Ul="all",Jw=[mp,Yw,Hl,Ul],$q=t=>Pq.has(t.code),[Qw,Fq]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),jq=process.platform==="win32"&&(Qw>10||Qw===10&&Fq>=5),Xw=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){let e=pp(t.trim());return r=>e(r.basename)}if(Array.isArray(t)){let e=[],r=[];for(let s of t){let i=s.trim();i.charAt(0)===Rq?r.push(pp(i.slice(1))):e.push(pp(i))}return r.length>0?e.length>0?s=>e.some(i=>i(s.basename))&&!r.some(i=>i(s.basename)):s=>!r.some(i=>i(s.basename)):s=>e.some(i=>i(s.basename))}}},zo=class extends xq{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:mp,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});let r={...zo.defaultOptions,...e},{root:s,type:i}=r;this._fileFilter=Xw(r.fileFilter),this._directoryFilter=Xw(r.directoryFilter);let n=r.lstat?Ww:Oq;jq?this._stat=a=>n(a,{bigint:!0}):this._stat=n,this._maxDepth=r.depth,this._wantsDir=[Yw,Hl,Ul].includes(i),this._wantsFile=[mp,Hl,Ul].includes(i),this._wantsEverything=i===Ul,this._root=Vo.resolve(s),this._isDirent="Dirent"in Go&&!r.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(s,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){let{path:r,depth:s,files:i=[]}=this.parent||{};if(i.length>0){let n=i.splice(0,e).map(a=>this._formatEntry(a,r));for(let a of await Promise.all(n)){if(this.destroyed)return;let o=await this._getEntryType(a);o==="directory"&&this._directoryFilter(a)?(s<=this._maxDepth&&this.parents.push(this._exploreDir(a.fullPath,s+1)),this._wantsDir&&(this.push(a),e--)):(o==="file"||this._includeAsFile(a))&&this._fileFilter(a)&&this._wantsFile&&(this.push(a),e--)}}else{let n=this.parents.pop();if(!n){this.push(null);break}if(this.parent=await n,this.destroyed)return}}}catch(r){this.destroy(r)}finally{this.reading=!1}}}async _exploreDir(e,r){let s;try{s=await Aq(e,this._rdOptions)}catch(i){this._onError(i)}return{files:s,depth:r,path:e}}async _formatEntry(e,r){let s;try{let i=this._isDirent?e.name:e,n=Vo.resolve(Vo.join(r,i));s={path:Vo.relative(this._root,n),fullPath:n,basename:i},s[this._statsProp]=this._isDirent?e:await this._stat(n)}catch(i){this._onError(i)}return s}_onError(e){$q(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){let r=e&&e[this._statsProp];if(!!r){if(r.isFile())return"file";if(r.isDirectory())return"directory";if(r&&r.isSymbolicLink()){let s=e.fullPath;try{let i=await Tq(s),n=await Ww(i);if(n.isFile())return"file";if(n.isDirectory()){let a=i.length;if(s.startsWith(i)&&s.substr(a,1)===Vo.sep){let o=new Error(`Circular symlink detected: "${s}" points to "${i}"`);return o.code=Kw,this._onError(o)}return"directory"}}catch(i){this._onError(i)}}}}_includeAsFile(e){let r=e&&e[this._statsProp];return r&&this._wantsEverything&&!r.isDirectory()}},Kn=(t,e={})=>{let r=e.entryType||e.type;if(r==="both"&&(r=Hl),r&&(e.type=r),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(r&&!Jw.includes(r))throw new Error(`readdirp: Invalid type passed. Use one of ${Jw.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new zo(e)},Iq=(t,e={})=>new Promise((r,s)=>{let i=[];Kn(t,e).on("data",n=>i.push(n)).on("end",()=>r(i)).on("error",n=>s(n))});Kn.promise=Iq;Kn.ReaddirpStream=zo;Kn.default=Kn;Zw.exports=Kn});var gp=h((xre,tE)=>{tE.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var s="";if(r>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),s="//")}var n=t.split(/[/\\]+/);return e!==!1&&n[n.length-1]===""&&n.pop(),s+n.join("/")}});var oE=h((nE,aE)=>{"use strict";Object.defineProperty(nE,"__esModule",{value:!0});var rE=hp(),Mq=gp(),sE="!",Nq={returnIndex:!1},qq=t=>Array.isArray(t)?t:[t],Bq=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=rE(t,e);return s=>t===s||r(s)}return t instanceof RegExp?r=>t.test(r):r=>!1},iE=(t,e,r,s)=>{let i=Array.isArray(r),n=i?r[0]:r;if(!i&&typeof n!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(n));let a=Mq(n);for(let u=0;u<e.length;u++)if(e[u](a))return s?-1:!1;let o=i&&[a].concat(r.slice(1));for(let u=0;u<t.length;u++){let l=t[u];if(i?l(...o):l(a))return s?u:!0}return s?-1:!1},yp=(t,e,r=Nq)=>{if(t==null)throw new TypeError("anymatch: specify first argument");let s=typeof r=="boolean"?{returnIndex:r}:r,i=s.returnIndex||!1,n=qq(t),a=n.filter(u=>typeof u=="string"&&u.charAt(0)===sE).map(u=>u.slice(1)).map(u=>rE(u,s)),o=n.filter(u=>typeof u!="string"||typeof u=="string"&&u.charAt(0)!==sE).map(u=>Bq(u,s));return e==null?(u,l=!1)=>iE(o,a,u,typeof l=="boolean"?l:!1):iE(o,a,e,i)};yp.default=yp;aE.exports=yp});var lE=h((Are,uE)=>{uE.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 vp=h((Ore,fE)=>{var Lq=lE(),cE={"{":"}","(":")","[":"]"},Hq=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,s=-2,i=-2,n=-2,a=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||s!==-1&&t[e]==="["&&t[e+1]!=="]"&&(s<e&&(s=t.indexOf("]",e)),s>e&&(a===-1||a>s||(a=t.indexOf("\\",e),a===-1||a>s)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(a=t.indexOf("\\",e),a===-1||a>i))||n!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(n=t.indexOf(")",e),n>e&&(a=t.indexOf("\\",e),a===-1||a>n))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(n=t.indexOf(")",r),n>r&&(a=t.indexOf("\\",r),a===-1||a>n))))return!0;if(t[e]==="\\"){var o=t[e+1];e+=2;var u=cE[o];if(u){var l=t.indexOf(u,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},Uq=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 s=cE[r];if(s){var i=t.indexOf(s,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};fE.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(Lq(e))return!0;var s=Hq;return r&&r.strict===!1&&(s=Uq),s(e)}});var hE=h((Tre,dE)=>{"use strict";var Gq=vp(),Vq=require("path").posix.dirname,zq=require("os").platform()==="win32",bp="/",Wq=/\\/g,Kq=/[\{\[].*[\}\]]$/,Yq=/(^|[^\\])([\{\[]|\([^\)]+$)/,Jq=/\\([\!\*\?\|\[\]\(\)\{\}])/g;dE.exports=function(e,r){var s=Object.assign({flipBackslashes:!0},r);s.flipBackslashes&&zq&&e.indexOf(bp)<0&&(e=e.replace(Wq,bp)),Kq.test(e)&&(e+=bp),e+="a";do e=Vq(e);while(Gq(e)||Yq.test(e));return e.replace(Jq,"$1")}});var Gl=h(dr=>{"use strict";dr.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;dr.find=(t,e)=>t.nodes.find(r=>r.type===e);dr.exceedsLimit=(t,e,r=1,s)=>s===!1||!dr.isInteger(t)||!dr.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=s;dr.escapeNode=(t,e=0,r)=>{let s=t.nodes[e];!s||(r&&s.type===r||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0)};dr.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0==0?(t.invalid=!0,!0):!1;dr.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;dr.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;dr.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);dr.flatten=(...t)=>{let e=[],r=s=>{for(let i=0;i<s.length;i++){let n=s[i];Array.isArray(n)?r(n,e):n!==void 0&&e.push(n)}return e};return r(t),e}});var Vl=h((Pre,mE)=>{"use strict";var pE=Gl();mE.exports=(t,e={})=>{let r=(s,i={})=>{let n=e.escapeInvalid&&pE.isInvalidBrace(i),a=s.invalid===!0&&e.escapeInvalid===!0,o="";if(s.value)return(n||a)&&pE.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let u of s.nodes)o+=r(u);return o};return r(t)}});var yE=h(($re,gE)=>{"use strict";gE.exports=function(t){return typeof t=="number"?t-t==0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var SE=h((Fre,CE)=>{"use strict";var vE=yE(),Li=(t,e,r)=>{if(vE(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(vE(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let s={relaxZeros:!0,...r};typeof s.strictZeros=="boolean"&&(s.relaxZeros=s.strictZeros===!1);let i=String(s.relaxZeros),n=String(s.shorthand),a=String(s.capture),o=String(s.wrap),u=t+":"+e+"="+i+n+a+o;if(Li.cache.hasOwnProperty(u))return Li.cache[u].result;let l=Math.min(t,e),c=Math.max(t,e);if(Math.abs(l-c)===1){let g=t+"|"+e;return s.capture?`(${g})`:s.wrap===!1?g:`(?:${g})`}let f=DE(t)||DE(e),d={min:t,max:e,a:l,b:c},m=[],p=[];if(f&&(d.isPadded=f,d.maxLen=String(d.max).length),l<0){let g=c<0?Math.abs(c):1;p=bE(g,Math.abs(l),d,s),l=d.a=0}return c>=0&&(m=bE(l,c,d,s)),d.negatives=p,d.positives=m,d.result=Qq(p,m,s),s.capture===!0?d.result=`(${d.result})`:s.wrap!==!1&&m.length+p.length>1&&(d.result=`(?:${d.result})`),Li.cache[u]=d,d.result};function Qq(t,e,r){let s=_p(t,e,"-",!1,r)||[],i=_p(e,t,"",!1,r)||[],n=_p(t,e,"-?",!0,r)||[];return s.concat(n).concat(i).join("|")}function Xq(t,e){let r=1,s=1,i=wE(t,r),n=new Set([e]);for(;t<=i&&i<=e;)n.add(i),r+=1,i=wE(t,r);for(i=EE(e+1,s)-1;t<i&&i<=e;)n.add(i),s+=1,i=EE(e+1,s)-1;return n=[...n],n.sort(tB),n}function Zq(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let s=eB(t,e),i=s.length,n="",a=0;for(let o=0;o<i;o++){let[u,l]=s[o];u===l?n+=u:u!=="0"||l!=="9"?n+=rB(u,l,r):a++}return a&&(n+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:n,count:[a],digits:i}}function bE(t,e,r,s){let i=Xq(t,e),n=[],a=t,o;for(let u=0;u<i.length;u++){let l=i[u],c=Zq(String(a),String(l),s),f="";if(!r.isPadded&&o&&o.pattern===c.pattern){o.count.length>1&&o.count.pop(),o.count.push(c.count[0]),o.string=o.pattern+kE(o.count),a=l+1;continue}r.isPadded&&(f=sB(l,r,s)),c.string=f+c.pattern+kE(c.count),n.push(c),a=l+1,o=c}return n}function _p(t,e,r,s,i){let n=[];for(let a of t){let{string:o}=a;!s&&!_E(e,"string",o)&&n.push(r+o),s&&_E(e,"string",o)&&n.push(r+o)}return n}function eB(t,e){let r=[];for(let s=0;s<t.length;s++)r.push([t[s],e[s]]);return r}function tB(t,e){return t>e?1:e>t?-1:0}function _E(t,e,r){return t.some(s=>s[e]===r)}function wE(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function EE(t,e){return t-t%Math.pow(10,e)}function kE(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function rB(t,e,r){return`[${t}${e-t==1?"":"-"}${e}]`}function DE(t){return/^-?(0+)\d/.test(t)}function sB(t,e,r){if(!e.isPadded)return t;let s=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(s){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${s}}`:`0{${s}}`}}Li.cache={};Li.clearCache=()=>Li.cache={};CE.exports=Li});var kp=h((jre,FE)=>{"use strict";var iB=require("util"),xE=SE(),AE=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),nB=t=>e=>t===!0?Number(e):String(e),wp=t=>typeof t=="number"||typeof t=="string"&&t!=="",Wo=t=>Number.isInteger(+t),Ep=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},aB=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,oB=(t,e,r)=>{if(e>0){let s=t[0]==="-"?"-":"";s&&(t=t.slice(1)),t=s+t.padStart(s?e-1:e,"0")}return r===!1?String(t):t},OE=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},uB=(t,e)=>{t.negatives.sort((a,o)=>a<o?-1:a>o?1:0),t.positives.sort((a,o)=>a<o?-1:a>o?1:0);let r=e.capture?"":"?:",s="",i="",n;return t.positives.length&&(s=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),s&&i?n=`${s}|${i}`:n=s||i,e.wrap?`(${r}${n})`:n},TE=(t,e,r,s)=>{if(r)return xE(t,e,{wrap:!1,...s});let i=String.fromCharCode(t);if(t===e)return i;let n=String.fromCharCode(e);return`[${i}-${n}]`},RE=(t,e,r)=>{if(Array.isArray(t)){let s=r.wrap===!0,i=r.capture?"":"?:";return s?`(${i}${t.join("|")})`:t.join("|")}return xE(t,e,r)},PE=(...t)=>new RangeError("Invalid range arguments: "+iB.inspect(...t)),$E=(t,e,r)=>{if(r.strictRanges===!0)throw PE([t,e]);return[]},lB=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},cB=(t,e,r=1,s={})=>{let i=Number(t),n=Number(e);if(!Number.isInteger(i)||!Number.isInteger(n)){if(s.strictRanges===!0)throw PE([t,e]);return[]}i===0&&(i=0),n===0&&(n=0);let a=i>n,o=String(t),u=String(e),l=String(r);r=Math.max(Math.abs(r),1);let c=Ep(o)||Ep(u)||Ep(l),f=c?Math.max(o.length,u.length,l.length):0,d=c===!1&&aB(t,e,s)===!1,m=s.transform||nB(d);if(s.toRegex&&r===1)return TE(OE(t,f),OE(e,f),!0,s);let p={negatives:[],positives:[]},g=w=>p[w<0?"negatives":"positives"].push(Math.abs(w)),b=[],y=0;for(;a?i>=n:i<=n;)s.toRegex===!0&&r>1?g(i):b.push(oB(m(i,y),f,d)),i=a?i-r:i+r,y++;return s.toRegex===!0?r>1?uB(p,s):RE(b,null,{wrap:!1,...s}):b},fB=(t,e,r=1,s={})=>{if(!Wo(t)&&t.length>1||!Wo(e)&&e.length>1)return $E(t,e,s);let i=s.transform||(d=>String.fromCharCode(d)),n=`${t}`.charCodeAt(0),a=`${e}`.charCodeAt(0),o=n>a,u=Math.min(n,a),l=Math.max(n,a);if(s.toRegex&&r===1)return TE(u,l,!1,s);let c=[],f=0;for(;o?n>=a:n<=a;)c.push(i(n,f)),n=o?n-r:n+r,f++;return s.toRegex===!0?RE(c,null,{wrap:!1,options:s}):c},zl=(t,e,r,s={})=>{if(e==null&&wp(t))return[t];if(!wp(t)||!wp(e))return $E(t,e,s);if(typeof r=="function")return zl(t,e,1,{transform:r});if(AE(r))return zl(t,e,0,r);let i={...s};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Wo(r)?Wo(t)&&Wo(e)?cB(t,e,r,i):fB(t,e,Math.max(Math.abs(r),1),i):r!=null&&!AE(r)?lB(r,i):zl(t,e,1,r)};FE.exports=zl});var ME=h((Ire,IE)=>{"use strict";var dB=kp(),jE=Gl(),hB=(t,e={})=>{let r=(s,i={})=>{let n=jE.isInvalidBrace(i),a=s.invalid===!0&&e.escapeInvalid===!0,o=n===!0||a===!0,u=e.escapeInvalid===!0?"\\":"",l="";if(s.isOpen===!0||s.isClose===!0)return u+s.value;if(s.type==="open")return o?u+s.value:"(";if(s.type==="close")return o?u+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":o?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let c=jE.reduce(s.nodes),f=dB(...c,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return c.length>1&&f.length>1?`(${f})`:f}if(s.nodes)for(let c of s.nodes)l+=r(c,s);return l};return r(t)};IE.exports=hB});var BE=h((Mre,qE)=>{"use strict";var pB=kp(),NE=Vl(),Yn=Gl(),Hi=(t="",e="",r=!1)=>{let s=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Yn.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let n of i)s.push(Hi(n,e,r));else for(let n of e)r===!0&&typeof n=="string"&&(n=`{${n}}`),s.push(Array.isArray(n)?Hi(i,n,r):i+n);return Yn.flatten(s)},mB=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,s=(i,n={})=>{i.queue=[];let a=n,o=n.queue;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,o=a.queue;if(i.invalid||i.dollar){o.push(Hi(o.pop(),NE(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){o.push(Hi(o.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=Yn.reduce(i.nodes);if(Yn.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=pB(...f,e);d.length===0&&(d=NE(i,e)),o.push(Hi(o.pop(),d)),i.nodes=[];return}let u=Yn.encloseBrace(i),l=i.queue,c=i;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,l=c.queue;for(let f=0;f<i.nodes.length;f++){let d=i.nodes[f];if(d.type==="comma"&&i.type==="brace"){f===1&&l.push(""),l.push("");continue}if(d.type==="close"){o.push(Hi(o.pop(),l,u));continue}if(d.value&&d.type!=="open"){l.push(Hi(l.pop(),d.value));continue}d.nodes&&s(d,i)}return l};return Yn.flatten(s(t))};qE.exports=mB});var HE=h((Nre,LE)=>{"use strict";LE.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 WE=h((qre,zE)=>{"use strict";var gB=Vl(),{MAX_LENGTH:UE,CHAR_BACKSLASH:Dp,CHAR_BACKTICK:yB,CHAR_COMMA:vB,CHAR_DOT:bB,CHAR_LEFT_PARENTHESES:_B,CHAR_RIGHT_PARENTHESES:wB,CHAR_LEFT_CURLY_BRACE:EB,CHAR_RIGHT_CURLY_BRACE:kB,CHAR_LEFT_SQUARE_BRACKET:GE,CHAR_RIGHT_SQUARE_BRACKET:VE,CHAR_DOUBLE_QUOTE:DB,CHAR_SINGLE_QUOTE:CB,CHAR_NO_BREAK_SPACE:SB,CHAR_ZERO_WIDTH_NOBREAK_SPACE:xB}=HE(),AB=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},s=typeof r.maxLength=="number"?Math.min(UE,r.maxLength):UE;if(t.length>s)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${s})`);let i={type:"root",input:t,nodes:[]},n=[i],a=i,o=i,u=0,l=t.length,c=0,f=0,d,m={},p=()=>t[c++],g=b=>{if(b.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&b.type==="text"){o.value+=b.value;return}return a.nodes.push(b),b.parent=a,b.prev=o,o=b,b};for(g({type:"bos"});c<l;)if(a=n[n.length-1],d=p(),!(d===xB||d===SB)){if(d===Dp){g({type:"text",value:(e.keepEscaping?d:"")+p()});continue}if(d===VE){g({type:"text",value:"\\"+d});continue}if(d===GE){u++;let b=!0,y;for(;c<l&&(y=p());){if(d+=y,y===GE){u++;continue}if(y===Dp){d+=p();continue}if(y===VE&&(u--,u===0))break}g({type:"text",value:d});continue}if(d===_B){a=g({type:"paren",nodes:[]}),n.push(a),g({type:"text",value:d});continue}if(d===wB){if(a.type!=="paren"){g({type:"text",value:d});continue}a=n.pop(),g({type:"text",value:d}),a=n[n.length-1];continue}if(d===DB||d===CB||d===yB){let b=d,y;for(e.keepQuotes!==!0&&(d="");c<l&&(y=p());){if(y===Dp){d+=y+p();continue}if(y===b){e.keepQuotes===!0&&(d+=y);break}d+=y}g({type:"text",value:d});continue}if(d===EB){f++;let b=o.value&&o.value.slice(-1)==="$"||a.dollar===!0;a=g({type:"brace",open:!0,close:!1,dollar:b,depth:f,commas:0,ranges:0,nodes:[]}),n.push(a),g({type:"open",value:d});continue}if(d===kB){if(a.type!=="brace"){g({type:"text",value:d});continue}let b="close";a=n.pop(),a.close=!0,g({type:b,value:d}),f--,a=n[n.length-1];continue}if(d===vB&&f>0){if(a.ranges>0){a.ranges=0;let b=a.nodes.shift();a.nodes=[b,{type:"text",value:gB(a)}]}g({type:"comma",value:d}),a.commas++;continue}if(d===bB&&f>0&&a.commas===0){let b=a.nodes;if(f===0||b.length===0){g({type:"text",value:d});continue}if(o.type==="dot"){if(a.range=[],o.value+=d,o.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,o.type="text";continue}a.ranges++,a.args=[];continue}if(o.type==="range"){b.pop();let y=b[b.length-1];y.value+=o.value+d,o=y,a.ranges--;continue}g({type:"dot",value:d});continue}g({type:"text",value:d})}do if(a=n.pop(),a.type!=="root"){a.nodes.forEach(w=>{w.nodes||(w.type==="open"&&(w.isOpen=!0),w.type==="close"&&(w.isClose=!0),w.nodes||(w.type="text"),w.invalid=!0)});let b=n[n.length-1],y=b.nodes.indexOf(a);b.nodes.splice(y,1,...a.nodes)}while(n.length>0);return g({type:"eos"}),i};zE.exports=AB});var JE=h((Bre,YE)=>{"use strict";var KE=Vl(),OB=ME(),TB=BE(),RB=WE(),ir=(t,e={})=>{let r=[];if(Array.isArray(t))for(let s of t){let i=ir.create(s,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ir.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};ir.parse=(t,e={})=>RB(t,e);ir.stringify=(t,e={})=>KE(typeof t=="string"?ir.parse(t,e):t,e);ir.compile=(t,e={})=>(typeof t=="string"&&(t=ir.parse(t,e)),OB(t,e));ir.expand=(t,e={})=>{typeof t=="string"&&(t=ir.parse(t,e));let r=TB(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};ir.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?ir.compile(t,e):ir.expand(t,e);YE.exports=ir});var QE=h((Lre,PB)=>{PB.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var ZE=h((Hre,XE)=>{XE.exports=QE()});var tk=h((Ure,ek)=>{"use strict";var $B=require("path"),FB=ZE(),jB=new Set(FB);ek.exports=t=>jB.has($B.extname(t).slice(1).toLowerCase())});var Wl=h(U=>{"use strict";var{sep:IB}=require("path"),{platform:Cp}=process,MB=require("os");U.EV_ALL="all";U.EV_READY="ready";U.EV_ADD="add";U.EV_CHANGE="change";U.EV_ADD_DIR="addDir";U.EV_UNLINK="unlink";U.EV_UNLINK_DIR="unlinkDir";U.EV_RAW="raw";U.EV_ERROR="error";U.STR_DATA="data";U.STR_END="end";U.STR_CLOSE="close";U.FSEVENT_CREATED="created";U.FSEVENT_MODIFIED="modified";U.FSEVENT_DELETED="deleted";U.FSEVENT_MOVED="moved";U.FSEVENT_CLONED="cloned";U.FSEVENT_UNKNOWN="unknown";U.FSEVENT_TYPE_FILE="file";U.FSEVENT_TYPE_DIRECTORY="directory";U.FSEVENT_TYPE_SYMLINK="symlink";U.KEY_LISTENERS="listeners";U.KEY_ERR="errHandlers";U.KEY_RAW="rawEmitters";U.HANDLER_KEYS=[U.KEY_LISTENERS,U.KEY_ERR,U.KEY_RAW];U.DOT_SLASH=`.${IB}`;U.BACK_SLASH_RE=/\\/g;U.DOUBLE_SLASH_RE=/\/\//;U.SLASH_OR_BACK_SLASH_RE=/[/\\]/;U.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;U.REPLACER_RE=/^\.[/\\]/;U.SLASH="/";U.SLASH_SLASH="//";U.BRACE_START="{";U.BANG="!";U.ONE_DOT=".";U.TWO_DOTS="..";U.STAR="*";U.GLOBSTAR="**";U.ROOT_GLOBSTAR="/**/*";U.SLASH_GLOBSTAR="/**";U.DIR_SUFFIX="Dir";U.ANYMATCH_OPTS={dot:!0};U.STRING_TYPE="string";U.FUNCTION_TYPE="function";U.EMPTY_STR="";U.EMPTY_FN=()=>{};U.IDENTITY_FN=t=>t;U.isWindows=Cp==="win32";U.isMacos=Cp==="darwin";U.isLinux=Cp==="linux";U.isIBMi=MB.type()==="OS400"});var uk=h((Vre,ok)=>{"use strict";var ys=require("fs"),ft=require("path"),{promisify:Ko}=require("util"),NB=tk(),{isWindows:qB,isLinux:BB,EMPTY_FN:LB,EMPTY_STR:HB,KEY_LISTENERS:Jn,KEY_ERR:Sp,KEY_RAW:Yo,HANDLER_KEYS:UB,EV_CHANGE:Kl,EV_ADD:Yl,EV_ADD_DIR:GB,EV_ERROR:rk,STR_DATA:VB,STR_END:zB,BRACE_START:WB,STAR:KB}=Wl(),YB="watch",JB=Ko(ys.open),sk=Ko(ys.stat),QB=Ko(ys.lstat),XB=Ko(ys.close),xp=Ko(ys.realpath),ZB={lstat:QB,stat:sk},Ap=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},Jo=(t,e,r)=>{let s=t[e];s instanceof Set||(t[e]=s=new Set([s])),s.add(r)},eL=t=>e=>{let r=t[e];r instanceof Set?r.clear():delete t[e]},Qo=(t,e,r)=>{let s=t[e];s instanceof Set?s.delete(r):s===r&&delete t[e]},ik=t=>t instanceof Set?t.size===0:!t,Jl=new Map;function nk(t,e,r,s,i){let n=(a,o)=>{r(t),i(a,o,{watchedPath:t}),o&&t!==o&&Ql(ft.resolve(t,o),Jn,ft.join(t,o))};try{return ys.watch(t,e,n)}catch(a){s(a)}}var Ql=(t,e,r,s,i)=>{let n=Jl.get(t);!n||Ap(n[e],a=>{a(r,s,i)})},tL=(t,e,r,s)=>{let{listener:i,errHandler:n,rawEmitter:a}=s,o=Jl.get(e),u;if(!r.persistent)return u=nk(t,r,i,n,a),u.close.bind(u);if(o)Jo(o,Jn,i),Jo(o,Sp,n),Jo(o,Yo,a);else{if(u=nk(t,r,Ql.bind(null,e,Jn),n,Ql.bind(null,e,Yo)),!u)return;u.on(rk,async l=>{let c=Ql.bind(null,e,Sp);if(o.watcherUnusable=!0,qB&&l.code==="EPERM")try{let f=await JB(t,"r");await XB(f),c(l)}catch{}else c(l)}),o={listeners:i,errHandlers:n,rawEmitters:a,watcher:u},Jl.set(e,o)}return()=>{Qo(o,Jn,i),Qo(o,Sp,n),Qo(o,Yo,a),ik(o.listeners)&&(o.watcher.close(),Jl.delete(e),UB.forEach(eL(o)),o.watcher=void 0,Object.freeze(o))}},Op=new Map,rL=(t,e,r,s)=>{let{listener:i,rawEmitter:n}=s,a=Op.get(e),o=new Set,u=new Set,l=a&&a.options;return l&&(l.persistent<r.persistent||l.interval>r.interval)&&(o=a.listeners,u=a.rawEmitters,ys.unwatchFile(e),a=void 0),a?(Jo(a,Jn,i),Jo(a,Yo,n)):(a={listeners:i,rawEmitters:n,options:r,watcher:ys.watchFile(e,r,(c,f)=>{Ap(a.rawEmitters,m=>{m(Kl,e,{curr:c,prev:f})});let d=c.mtimeMs;(c.size!==f.size||d>f.mtimeMs||d===0)&&Ap(a.listeners,m=>m(t,c))})},Op.set(e,a)),()=>{Qo(a,Jn,i),Qo(a,Yo,n),ik(a.listeners)&&(Op.delete(e),ys.unwatchFile(e),a.options=a.watcher=void 0,Object.freeze(a))}},ak=class{constructor(e){this.fsw=e,this._boundHandleError=r=>e._handleError(r)}_watchWithNodeFs(e,r){let s=this.fsw.options,i=ft.dirname(e),n=ft.basename(e);this.fsw._getWatchedDir(i).add(n);let o=ft.resolve(e),u={persistent:s.persistent};r||(r=LB);let l;return s.usePolling?(u.interval=s.enableBinaryInterval&&NB(n)?s.binaryInterval:s.interval,l=rL(e,o,u,{listener:r,rawEmitter:this.fsw._emitRaw})):l=tL(e,o,u,{listener:r,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(e,r,s){if(this.fsw.closed)return;let i=ft.dirname(e),n=ft.basename(e),a=this.fsw._getWatchedDir(i),o=r;if(a.has(n))return;let u=async(c,f)=>{if(!!this.fsw._throttle(YB,e,5)){if(!f||f.mtimeMs===0)try{let d=await sk(e);if(this.fsw.closed)return;let m=d.atimeMs,p=d.mtimeMs;(!m||m<=p||p!==o.mtimeMs)&&this.fsw._emit(Kl,e,d),BB&&o.ino!==d.ino?(this.fsw._closeFile(c),o=d,this.fsw._addPathCloser(c,this._watchWithNodeFs(e,u))):o=d}catch{this.fsw._remove(i,n)}else if(a.has(n)){let d=f.atimeMs,m=f.mtimeMs;(!d||d<=m||m!==o.mtimeMs)&&this.fsw._emit(Kl,e,f),o=f}}},l=this._watchWithNodeFs(e,u);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(Yl,e,0))return;this.fsw._emit(Yl,e,r)}return l}async _handleSymlink(e,r,s,i){if(this.fsw.closed)return;let n=e.fullPath,a=this.fsw._getWatchedDir(r);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let o=await xp(s);return this.fsw.closed?void 0:(a.has(i)?this.fsw._symlinkPaths.get(n)!==o&&(this.fsw._symlinkPaths.set(n,o),this.fsw._emit(Kl,s,e.stats)):(a.add(i),this.fsw._symlinkPaths.set(n,o),this.fsw._emit(Yl,s,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(n))return!0;this.fsw._symlinkPaths.set(n,!0)}_handleRead(e,r,s,i,n,a,o){if(e=ft.join(e,HB),!s.hasGlob&&(o=this.fsw._throttle("readdir",e,1e3),!o))return;let u=this.fsw._getWatchedDir(s.path),l=new Set,c=this.fsw._readdirp(e,{fileFilter:f=>s.filterPath(f),directoryFilter:f=>s.filterDir(f),depth:0}).on(VB,async f=>{if(this.fsw.closed){c=void 0;return}let d=f.path,m=ft.join(e,d);if(l.add(d),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,m,d))){if(this.fsw.closed){c=void 0;return}(d===i||!i&&!u.has(d))&&(this.fsw._incrReadyCount(),m=ft.join(n,ft.relative(n,m)),this._addToNodeFs(m,r,s,a+1))}}).on(rk,this._boundHandleError);return new Promise(f=>c.once(zB,()=>{if(this.fsw.closed){c=void 0;return}let d=o?o.clear():!1;f(),u.getChildren().filter(m=>m!==e&&!l.has(m)&&(!s.hasGlob||s.filterPath({fullPath:ft.resolve(e,m)}))).forEach(m=>{this.fsw._remove(e,m)}),c=void 0,d&&this._handleRead(e,!1,s,i,n,a,o)}))}async _handleDir(e,r,s,i,n,a,o){let u=this.fsw._getWatchedDir(ft.dirname(e)),l=u.has(ft.basename(e));!(s&&this.fsw.options.ignoreInitial)&&!n&&!l&&(!a.hasGlob||a.globFilter(e))&&this.fsw._emit(GB,e,r),u.add(ft.basename(e)),this.fsw._getWatchedDir(e);let c,f,d=this.fsw.options.depth;if((d==null||i<=d)&&!this.fsw._symlinkPaths.has(o)){if(!n&&(await this._handleRead(e,s,a,n,e,i,c),this.fsw.closed))return;f=this._watchWithNodeFs(e,(m,p)=>{p&&p.mtimeMs===0||this._handleRead(m,!1,a,n,e,i,c)})}return f}async _addToNodeFs(e,r,s,i,n){let a=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return a(),!1;let o=this.fsw._getWatchHelpers(e,i);!o.hasGlob&&s&&(o.hasGlob=s.hasGlob,o.globFilter=s.globFilter,o.filterPath=u=>s.filterPath(u),o.filterDir=u=>s.filterDir(u));try{let u=await ZB[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,u))return a(),!1;let l=this.fsw.options.followSymlinks&&!e.includes(KB)&&!e.includes(WB),c;if(u.isDirectory()){let f=ft.resolve(e),d=l?await xp(e):e;if(this.fsw.closed||(c=await this._handleDir(o.watchPath,u,r,i,n,o,d),this.fsw.closed))return;f!==d&&d!==void 0&&this.fsw._symlinkPaths.set(f,d)}else if(u.isSymbolicLink()){let f=l?await xp(e):e;if(this.fsw.closed)return;let d=ft.dirname(o.watchPath);if(this.fsw._getWatchedDir(d).add(o.watchPath),this.fsw._emit(Yl,o.watchPath,u),c=await this._handleDir(d,u,r,i,e,o,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(ft.resolve(e),f)}else c=this._handleFile(o.watchPath,u,r);return a(),this.fsw._addPathCloser(e,c),!1}catch(u){if(this.fsw._handleError(u))return a(),e}}};ok.exports=ak});var gk=h((zre,Ip)=>{"use strict";var Tp=require("fs"),dt=require("path"),{promisify:Rp}=require("util"),Qn;try{Qn=require("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(Qn){let t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){let e=Number.parseInt(t[1],10),r=Number.parseInt(t[2],10);e===8&&r<16&&(Qn=void 0)}}var{EV_ADD:Pp,EV_CHANGE:sL,EV_ADD_DIR:lk,EV_UNLINK:Xl,EV_ERROR:iL,STR_DATA:nL,STR_END:aL,FSEVENT_CREATED:oL,FSEVENT_MODIFIED:uL,FSEVENT_DELETED:lL,FSEVENT_MOVED:cL,FSEVENT_UNKNOWN:fL,FSEVENT_TYPE_FILE:dL,FSEVENT_TYPE_DIRECTORY:Xo,FSEVENT_TYPE_SYMLINK:ck,ROOT_GLOBSTAR:fk,DIR_SUFFIX:hL,DOT_SLASH:dk,FUNCTION_TYPE:$p,EMPTY_FN:pL,IDENTITY_FN:mL}=Wl(),gL=t=>isNaN(t)?{}:{depth:t},Fp=Rp(Tp.stat),yL=Rp(Tp.lstat),hk=Rp(Tp.realpath),vL={stat:Fp,lstat:yL},Ui=new Map,bL=10,_L=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),wL=(t,e)=>({stop:Qn.watch(t,e)});function EL(t,e,r,s){let i=dt.extname(e)?dt.dirname(e):e,n=dt.dirname(i),a=Ui.get(i);kL(n)&&(i=n);let o=dt.resolve(t),u=o!==e,l=(f,d,m)=>{u&&(f=f.replace(e,o)),(f===o||!f.indexOf(o+dt.sep))&&r(f,d,m)},c=!1;for(let f of Ui.keys())if(e.indexOf(dt.resolve(f)+dt.sep)===0){i=f,a=Ui.get(i),c=!0;break}return a||c?a.listeners.add(l):(a={listeners:new Set([l]),rawEmitter:s,watcher:wL(i,(f,d)=>{if(!a.listeners.size)return;let m=Qn.getInfo(f,d);a.listeners.forEach(p=>{p(f,d,m)}),a.rawEmitter(m.event,f,m)})},Ui.set(i,a)),()=>{let f=a.listeners;if(f.delete(l),!f.size&&(Ui.delete(i),a.watcher))return a.watcher.stop().then(()=>{a.rawEmitter=a.watcher=void 0,Object.freeze(a)})}}var kL=t=>{let e=0;for(let r of Ui.keys())if(r.indexOf(t)===0&&(e++,e>=bL))return!0;return!1},DL=()=>Qn&&Ui.size<128,jp=(t,e)=>{let r=0;for(;!t.indexOf(e)&&(t=dt.dirname(t))!==e;)r++;return r},pk=(t,e)=>t.type===Xo&&e.isDirectory()||t.type===ck&&e.isSymbolicLink()||t.type===dL&&e.isFile(),mk=class{constructor(e){this.fsw=e}checkIgnored(e,r){let s=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,r))return s.add(e),r&&r.isDirectory()&&s.add(e+fk),!0;s.delete(e),s.delete(e+fk)}addOrChange(e,r,s,i,n,a,o,u){let l=n.has(a)?sL:Pp;this.handleEvent(l,e,r,s,i,n,a,o,u)}async checkExists(e,r,s,i,n,a,o,u){try{let l=await Fp(e);if(this.fsw.closed)return;pk(o,l)?this.addOrChange(e,r,s,i,n,a,o,u):this.handleEvent(Xl,e,r,s,i,n,a,o,u)}catch(l){l.code==="EACCES"?this.addOrChange(e,r,s,i,n,a,o,u):this.handleEvent(Xl,e,r,s,i,n,a,o,u)}}handleEvent(e,r,s,i,n,a,o,u,l){if(!(this.fsw.closed||this.checkIgnored(r)))if(e===Xl){let c=u.type===Xo;(c||a.has(o))&&this.fsw._remove(n,o,c)}else{if(e===Pp){if(u.type===Xo&&this.fsw._getWatchedDir(r),u.type===ck&&l.followSymlinks){let f=l.depth===void 0?void 0:jp(s,i)+1;return this._addToFsEvents(r,!1,!0,f)}this.fsw._getWatchedDir(n).add(o)}let c=u.type===Xo?e+hL:e;this.fsw._emit(c,r),c===lk&&this._addToFsEvents(r,!1,!0)}}_watchWithFsEvents(e,r,s,i){if(this.fsw.closed||this.fsw._isIgnored(e))return;let n=this.fsw.options,o=EL(e,r,async(u,l,c)=>{if(this.fsw.closed||n.depth!==void 0&&jp(u,r)>n.depth)return;let f=s(dt.join(e,dt.relative(e,u)));if(i&&!i(f))return;let d=dt.dirname(f),m=dt.basename(f),p=this.fsw._getWatchedDir(c.type===Xo?f:d);if(_L.has(l)||c.event===fL)if(typeof n.ignored===$p){let g;try{g=await Fp(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,g))return;pk(c,g)?this.addOrChange(f,u,r,d,p,m,c,n):this.handleEvent(Xl,f,u,r,d,p,m,c,n)}else this.checkExists(f,u,r,d,p,m,c,n);else switch(c.event){case oL:case uL:return this.addOrChange(f,u,r,d,p,m,c,n);case lL:case cL:return this.checkExists(f,u,r,d,p,m,c,n)}},this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(e,r,s,i){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(r))){this.fsw._symlinkPaths.set(r,!0),this.fsw._incrReadyCount();try{let n=await hk(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(n))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(n||e,a=>{let o=e;return n&&n!==dk?o=a.replace(n,e):a!==dk&&(o=dt.join(e,a)),s(o)},!1,i)}catch(n){if(this.fsw._handleError(n))return this.fsw._emitReady()}}}emitAdd(e,r,s,i,n){let a=s(e),o=r.isDirectory(),u=this.fsw._getWatchedDir(dt.dirname(a)),l=dt.basename(a);o&&this.fsw._getWatchedDir(a),!u.has(l)&&(u.add(l),(!i.ignoreInitial||n===!0)&&this.fsw._emit(o?lk:Pp,a,r))}initWatch(e,r,s,i){if(this.fsw.closed)return;let n=this._watchWithFsEvents(s.watchPath,dt.resolve(e||s.watchPath),i,s.globFilter);this.fsw._addPathCloser(r,n)}async _addToFsEvents(e,r,s,i){if(this.fsw.closed)return;let n=this.fsw.options,a=typeof r===$p?r:mL,o=this.fsw._getWatchHelpers(e);try{let u=await vL[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,u))throw null;if(u.isDirectory()){if(o.globFilter||this.emitAdd(a(e),u,a,n,s),i&&i>n.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:l=>o.filterPath(l),directoryFilter:l=>o.filterDir(l),...gL(n.depth-(i||0))}).on(nL,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!o.filterPath(l))return;let c=dt.join(o.watchPath,l.path),{fullPath:f}=l;if(o.followSymlinks&&l.stats.isSymbolicLink()){let d=n.depth===void 0?void 0:jp(c,dt.resolve(o.watchPath))+1;this._handleFsEventsSymlink(c,f,a,d)}else this.emitAdd(c,l.stats,a,n,s)}).on(iL,pL).on(aL,()=>{this.fsw._emitReady()})}else this.emitAdd(o.watchPath,u,a,n,s),this.fsw._emitReady()}catch(u){(!u||this.fsw._handleError(u))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(n.persistent&&s!==!0)if(typeof r===$p)this.initWatch(void 0,e,o,a);else{let u;try{u=await hk(o.watchPath)}catch{}this.initWatch(u,e,o,a)}}};Ip.exports=mk;Ip.exports.canUse=DL});var Ok=h(Jp=>{"use strict";var{EventEmitter:CL}=require("events"),Mp=require("fs"),xe=require("path"),{promisify:yk}=require("util"),SL=eE(),Np=oE().default,xL=hE(),qp=vp(),AL=JE(),OL=gp(),TL=uk(),vk=gk(),{EV_ALL:Bp,EV_READY:RL,EV_ADD:Zl,EV_CHANGE:Zo,EV_UNLINK:bk,EV_ADD_DIR:PL,EV_UNLINK_DIR:$L,EV_RAW:FL,EV_ERROR:Lp,STR_CLOSE:jL,STR_END:IL,BACK_SLASH_RE:ML,DOUBLE_SLASH_RE:_k,SLASH_OR_BACK_SLASH_RE:NL,DOT_RE:qL,REPLACER_RE:BL,SLASH:Hp,SLASH_SLASH:LL,BRACE_START:HL,BANG:Up,ONE_DOT:wk,TWO_DOTS:UL,GLOBSTAR:GL,SLASH_GLOBSTAR:Gp,ANYMATCH_OPTS:Vp,STRING_TYPE:zp,FUNCTION_TYPE:VL,EMPTY_STR:Wp,EMPTY_FN:zL,isWindows:WL,isMacos:KL,isIBMi:YL}=Wl(),JL=yk(Mp.stat),QL=yk(Mp.readdir),Kp=(t=[])=>Array.isArray(t)?t:[t],Ek=(t,e=[])=>(t.forEach(r=>{Array.isArray(r)?Ek(r,e):e.push(r)}),e),kk=t=>{let e=Ek(Kp(t));if(!e.every(r=>typeof r===zp))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(Ck)},Dk=t=>{let e=t.replace(ML,Hp),r=!1;for(e.startsWith(LL)&&(r=!0);e.match(_k);)e=e.replace(_k,Hp);return r&&(e=Hp+e),e},Ck=t=>Dk(xe.normalize(Dk(t))),Sk=(t=Wp)=>e=>typeof e!==zp?e:Ck(xe.isAbsolute(e)?e:xe.join(t,e)),XL=(t,e)=>xe.isAbsolute(t)?t:t.startsWith(Up)?Up+xe.join(e,t.slice(1)):xe.join(e,t),$r=(t,e)=>t[e]===void 0,xk=class{constructor(e,r){this.path=e,this._removeWatcher=r,this.items=new Set}add(e){let{items:r}=this;!r||e!==wk&&e!==UL&&r.add(e)}async remove(e){let{items:r}=this;if(!r||(r.delete(e),r.size>0))return;let s=this.path;try{await QL(s)}catch{this._removeWatcher&&this._removeWatcher(xe.dirname(s),xe.basename(s))}}has(e){let{items:r}=this;if(!!r)return r.has(e)}getChildren(){let{items:e}=this;if(!!e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},ZL="stat",e3="lstat",Ak=class{constructor(e,r,s,i){this.fsw=i,this.path=e=e.replace(BL,Wp),this.watchPath=r,this.fullWatchPath=xe.resolve(r),this.hasGlob=r!==e,e===Wp&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?Np(e,void 0,Vp):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(n=>{n.length>1&&n.pop()}),this.followSymlinks=s,this.statMethod=s?ZL:e3}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return xe.join(this.watchPath,xe.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){let{stats:r}=e;if(r&&r.isSymbolicLink())return this.filterDir(e);let s=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===VL?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,r)&&this.fsw._hasReadPermissions(r)}getDirParts(e){if(!this.hasGlob)return[];let r=[];return(e.includes(HL)?AL.expand(e):[e]).forEach(i=>{r.push(xe.relative(this.watchPath,i).split(NL))}),r}filterDir(e){if(this.hasGlob){let r=this.getDirParts(this.checkGlobSymlink(e)),s=!1;this.unmatchedGlob=!this.dirParts.some(i=>i.every((n,a)=>(n===GL&&(s=!0),s||!r[0][a]||Np(n,r[0][a],Vp))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}},Yp=class extends CL{constructor(e){super();let r={};e&&Object.assign(r,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,$r(r,"persistent")&&(r.persistent=!0),$r(r,"ignoreInitial")&&(r.ignoreInitial=!1),$r(r,"ignorePermissionErrors")&&(r.ignorePermissionErrors=!1),$r(r,"interval")&&(r.interval=100),$r(r,"binaryInterval")&&(r.binaryInterval=300),$r(r,"disableGlobbing")&&(r.disableGlobbing=!1),r.enableBinaryInterval=r.binaryInterval!==r.interval,$r(r,"useFsEvents")&&(r.useFsEvents=!r.usePolling),vk.canUse()||(r.useFsEvents=!1),$r(r,"usePolling")&&!r.useFsEvents&&(r.usePolling=KL),YL&&(r.usePolling=!0);let i=process.env.CHOKIDAR_USEPOLLING;if(i!==void 0){let u=i.toLowerCase();u==="false"||u==="0"?r.usePolling=!1:u==="true"||u==="1"?r.usePolling=!0:r.usePolling=!!u}let n=process.env.CHOKIDAR_INTERVAL;n&&(r.interval=Number.parseInt(n,10)),$r(r,"atomic")&&(r.atomic=!r.usePolling&&!r.useFsEvents),r.atomic&&(this._pendingUnlinks=new Map),$r(r,"followSymlinks")&&(r.followSymlinks=!0),$r(r,"awaitWriteFinish")&&(r.awaitWriteFinish=!1),r.awaitWriteFinish===!0&&(r.awaitWriteFinish={});let a=r.awaitWriteFinish;a&&(a.stabilityThreshold||(a.stabilityThreshold=2e3),a.pollInterval||(a.pollInterval=100),this._pendingWrites=new Map),r.ignored&&(r.ignored=Kp(r.ignored));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=zL,this._readyEmitted=!0,process.nextTick(()=>this.emit(RL)))},this._emitRaw=(...u)=>this.emit(FL,...u),this._readyEmitted=!1,this.options=r,r.useFsEvents?this._fsEventsHandler=new vk(this):this._nodeFsHandler=new TL(this),Object.freeze(r)}add(e,r,s){let{cwd:i,disableGlobbing:n}=this.options;this.closed=!1;let a=kk(e);return i&&(a=a.map(o=>{let u=XL(o,i);return n||!qp(o)?u:OL(u)})),a=a.filter(o=>o.startsWith(Up)?(this._ignoredPaths.add(o.slice(1)),!1):(this._ignoredPaths.delete(o),this._ignoredPaths.delete(o+Gp),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=a.length),this.options.persistent&&(this._readyCount*=2),a.forEach(o=>this._fsEventsHandler._addToFsEvents(o))):(this._readyCount||(this._readyCount=0),this._readyCount+=a.length,Promise.all(a.map(async o=>{let u=await this._nodeFsHandler._addToNodeFs(o,!s,0,0,r);return u&&this._emitReady(),u})).then(o=>{this.closed||o.filter(u=>u).forEach(u=>{this.add(xe.dirname(u),xe.basename(r||u))})})),this}unwatch(e){if(this.closed)return this;let r=kk(e),{cwd:s}=this.options;return r.forEach(i=>{!xe.isAbsolute(i)&&!this._closers.has(i)&&(s&&(i=xe.join(s,i)),i=xe.resolve(i)),this._closePath(i),this._ignoredPaths.add(i),this._watched.has(i)&&this._ignoredPaths.add(i+Gp),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(r=>r.forEach(s=>{let i=s();i instanceof Promise&&e.push(i)})),this._streams.forEach(r=>r.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(r=>r.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(r=>{this[`_${r}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let e={};return this._watched.forEach((r,s)=>{let i=this.options.cwd?xe.relative(this.options.cwd,s):s;e[i||wk]=r.getChildren().sort()}),e}emitWithAll(e,r){this.emit(...r),e!==Lp&&this.emit(Bp,...r)}async _emit(e,r,s,i,n){if(this.closed)return;let a=this.options;WL&&(r=xe.normalize(r)),a.cwd&&(r=xe.relative(a.cwd,r));let o=[e,r];n!==void 0?o.push(s,i,n):i!==void 0?o.push(s,i):s!==void 0&&o.push(s);let u=a.awaitWriteFinish,l;if(u&&(l=this._pendingWrites.get(r)))return l.lastChange=new Date,this;if(a.atomic){if(e===bk)return this._pendingUnlinks.set(r,o),setTimeout(()=>{this._pendingUnlinks.forEach((c,f)=>{this.emit(...c),this.emit(Bp,...c),this._pendingUnlinks.delete(f)})},typeof a.atomic=="number"?a.atomic:100),this;e===Zl&&this._pendingUnlinks.has(r)&&(e=o[0]=Zo,this._pendingUnlinks.delete(r))}if(u&&(e===Zl||e===Zo)&&this._readyEmitted){let c=(f,d)=>{f?(e=o[0]=Lp,o[1]=f,this.emitWithAll(e,o)):d&&(o.length>2?o[2]=d:o.push(d),this.emitWithAll(e,o))};return this._awaitWriteFinish(r,u.stabilityThreshold,e,c),this}if(e===Zo&&!this._throttle(Zo,r,50))return this;if(a.alwaysStat&&s===void 0&&(e===Zl||e===PL||e===Zo)){let c=a.cwd?xe.join(a.cwd,r):r,f;try{f=await JL(c)}catch{}if(!f||this.closed)return;o.push(f)}return this.emitWithAll(e,o),this}_handleError(e){let r=e&&e.code;return e&&r!=="ENOENT"&&r!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||r!=="EPERM"&&r!=="EACCES")&&this.emit(Lp,e),e||this.closed}_throttle(e,r,s){this._throttled.has(e)||this._throttled.set(e,new Map);let i=this._throttled.get(e),n=i.get(r);if(n)return n.count++,!1;let a,o=()=>{let l=i.get(r),c=l?l.count:0;return i.delete(r),clearTimeout(a),l&&clearTimeout(l.timeoutObject),c};a=setTimeout(o,s);let u={timeoutObject:a,clear:o,count:0};return i.set(r,u),u}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,r,s,i){let n,a=e;this.options.cwd&&!xe.isAbsolute(e)&&(a=xe.join(this.options.cwd,e));let o=new Date,u=l=>{Mp.stat(a,(c,f)=>{if(c||!this._pendingWrites.has(e)){c&&c.code!=="ENOENT"&&i(c);return}let d=Number(new Date);l&&f.size!==l.size&&(this._pendingWrites.get(e).lastChange=d);let m=this._pendingWrites.get(e);d-m.lastChange>=r?(this._pendingWrites.delete(e),i(void 0,f)):n=setTimeout(u,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:o,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(n),s)}),n=setTimeout(u,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,r){if(this.options.atomic&&qL.test(e))return!0;if(!this._userIgnored){let{cwd:s}=this.options,i=this.options.ignored,n=i&&i.map(Sk(s)),a=Kp(n).filter(u=>typeof u===zp&&!qp(u)).map(u=>u+Gp),o=this._getGlobIgnored().map(Sk(s)).concat(n,a);this._userIgnored=Np(o,void 0,Vp)}return this._userIgnored([e,r])}_isntIgnored(e,r){return!this._isIgnored(e,r)}_getWatchHelpers(e,r){let s=r||this.options.disableGlobbing||!qp(e)?e:xL(e),i=this.options.followSymlinks;return new Ak(e,s,i,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));let r=xe.resolve(e);return this._watched.has(r)||this._watched.set(r,new xk(r,this._boundRemove)),this._watched.get(r)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;let s=(e&&Number.parseInt(e.mode,10))&511,i=Number.parseInt(s.toString(8)[0],10);return Boolean(4&i)}_remove(e,r,s){let i=xe.join(e,r),n=xe.resolve(i);if(s=s??(this._watched.has(i)||this._watched.has(n)),!this._throttle("remove",i,100))return;!s&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,r,!0),this._getWatchedDir(i).getChildren().forEach(d=>this._remove(i,d));let u=this._getWatchedDir(e),l=u.has(r);u.remove(r),this._symlinkPaths.has(n)&&this._symlinkPaths.delete(n);let c=i;if(this.options.cwd&&(c=xe.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===Zl)return;this._watched.delete(i),this._watched.delete(n);let f=s?$L:bk;l&&!this._isIgnored(i)&&this._emit(f,i),this.options.useFsEvents||this._closePath(i)}_closePath(e){this._closeFile(e);let r=xe.dirname(e);this._getWatchedDir(r).remove(xe.basename(e))}_closeFile(e){let r=this._closers.get(e);!r||(r.forEach(s=>s()),this._closers.delete(e))}_addPathCloser(e,r){if(!r)return;let s=this._closers.get(e);s||(s=[],this._closers.set(e,s)),s.push(r)}_readdirp(e,r){if(this.closed)return;let s={type:Bp,alwaysStat:!0,lstat:!0,...r},i=SL(e,s);return this._streams.add(i),i.once(jL,()=>{i=void 0}),i.once(IL,()=>{i&&(this._streams.delete(i),i=void 0)}),i}};Jp.FSWatcher=Yp;var t3=(t,e)=>{let r=new Yp(e);return r.add(t),r};Jp.watch=t3});var Rk=h((Kre,Tk)=>{"use strict";var r3=/[|\\{}()[\]^$+*?.]/g;Tk.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(r3,"\\$&")}});var $k=h((Yre,Pk)=>{"use strict";Pk.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 Qp=h((Jre,Mk)=>{var Gi=$k(),Fk={};for(ec in Gi)Gi.hasOwnProperty(ec)&&(Fk[Gi[ec]]=ec);var ec,q=Mk.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(Mt in q)if(q.hasOwnProperty(Mt)){if(!("channels"in q[Mt]))throw new Error("missing channels property: "+Mt);if(!("labels"in q[Mt]))throw new Error("missing channel labels property: "+Mt);if(q[Mt].labels.length!==q[Mt].channels)throw new Error("channel and label counts mismatch: "+Mt);jk=q[Mt].channels,Ik=q[Mt].labels,delete q[Mt].channels,delete q[Mt].labels,Object.defineProperty(q[Mt],"channels",{value:jk}),Object.defineProperty(q[Mt],"labels",{value:Ik})}var jk,Ik,Mt;q.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,s=t[2]/255,i=Math.min(e,r,s),n=Math.max(e,r,s),a=n-i,o,u,l;return n===i?o=0:e===n?o=(r-s)/a:r===n?o=2+(s-e)/a:s===n&&(o=4+(e-r)/a),o=Math.min(o*60,360),o<0&&(o+=360),l=(i+n)/2,n===i?u=0:l<=.5?u=a/(n+i):u=a/(2-n-i),[o,u*100,l*100]};q.rgb.hsv=function(t){var e,r,s,i,n,a=t[0]/255,o=t[1]/255,u=t[2]/255,l=Math.max(a,o,u),c=l-Math.min(a,o,u),f=function(d){return(l-d)/6/c+1/2};return c===0?i=n=0:(n=c/l,e=f(a),r=f(o),s=f(u),a===l?i=s-r:o===l?i=1/3+e-s:u===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,n*100,l*100]};q.rgb.hwb=function(t){var e=t[0],r=t[1],s=t[2],i=q.rgb.hsl(t)[0],n=1/255*Math.min(e,Math.min(r,s));return s=1-1/255*Math.max(e,Math.max(r,s)),[i,n*100,s*100]};q.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,s=t[2]/255,i,n,a,o;return o=Math.min(1-e,1-r,1-s),i=(1-e-o)/(1-o)||0,n=(1-r-o)/(1-o)||0,a=(1-s-o)/(1-o)||0,[i*100,n*100,a*100,o*100]};function s3(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}q.rgb.keyword=function(t){var e=Fk[t];if(e)return e;var r=1/0,s;for(var i in Gi)if(Gi.hasOwnProperty(i)){var n=Gi[i],a=s3(t,n);a<r&&(r=a,s=i)}return s};q.keyword.rgb=function(t){return Gi[t]};q.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,s=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,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;var i=e*.4124+r*.3576+s*.1805,n=e*.2126+r*.7152+s*.0722,a=e*.0193+r*.1192+s*.9505;return[i*100,n*100,a*100]};q.rgb.lab=function(t){var e=q.rgb.xyz(t),r=e[0],s=e[1],i=e[2],n,a,o;return r/=95.047,s/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,n=116*s-16,a=500*(r-s),o=200*(s-i),[n,a,o]};q.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,s=t[2]/100,i,n,a,o,u;if(r===0)return u=s*255,[u,u,u];s<.5?n=s*(1+r):n=s+r-s*r,i=2*s-n,o=[0,0,0];for(var l=0;l<3;l++)a=e+1/3*-(l-1),a<0&&a++,a>1&&a--,6*a<1?u=i+(n-i)*6*a:2*a<1?u=n:3*a<2?u=i+(n-i)*(2/3-a)*6:u=i,o[l]=u*255;return o};q.hsl.hsv=function(t){var e=t[0],r=t[1]/100,s=t[2]/100,i=r,n=Math.max(s,.01),a,o;return s*=2,r*=s<=1?s:2-s,i*=n<=1?n:2-n,o=(s+r)/2,a=s===0?2*i/(n+i):2*r/(s+r),[e,a*100,o*100]};q.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,s=t[2]/100,i=Math.floor(e)%6,n=e-Math.floor(e),a=255*s*(1-r),o=255*s*(1-r*n),u=255*s*(1-r*(1-n));switch(s*=255,i){case 0:return[s,u,a];case 1:return[o,s,a];case 2:return[a,s,u];case 3:return[a,o,s];case 4:return[u,a,s];case 5:return[s,a,o]}};q.hsv.hsl=function(t){var e=t[0],r=t[1]/100,s=t[2]/100,i=Math.max(s,.01),n,a,o;return o=(2-r)*s,n=(2-r)*i,a=r*i,a/=n<=1?n:2-n,a=a||0,o/=2,[e,a*100,o*100]};q.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,s=t[2]/100,i=r+s,n,a,o,u;i>1&&(r/=i,s/=i),n=Math.floor(6*e),a=1-s,o=6*e-n,(n&1)!=0&&(o=1-o),u=r+o*(a-r);var l,c,f;switch(n){default:case 6:case 0:l=a,c=u,f=r;break;case 1:l=u,c=a,f=r;break;case 2:l=r,c=a,f=u;break;case 3:l=r,c=u,f=a;break;case 4:l=u,c=r,f=a;break;case 5:l=a,c=r,f=u;break}return[l*255,c*255,f*255]};q.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,s=t[2]/100,i=t[3]/100,n,a,o;return n=1-Math.min(1,e*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),o=1-Math.min(1,s*(1-i)+i),[n*255,a*255,o*255]};q.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,s=t[2]/100,i,n,a;return i=e*3.2406+r*-1.5372+s*-.4986,n=e*-.9689+r*1.8758+s*.0415,a=e*.0557+r*-.204+s*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),n=Math.min(Math.max(0,n),1),a=Math.min(Math.max(0,a),1),[i*255,n*255,a*255]};q.xyz.lab=function(t){var e=t[0],r=t[1],s=t[2],i,n,a;return e/=95.047,r/=100,s/=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,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,i=116*r-16,n=500*(e-r),a=200*(r-s),[i,n,a]};q.lab.xyz=function(t){var e=t[0],r=t[1],s=t[2],i,n,a;n=(e+16)/116,i=r/500+n,a=n-s/200;var o=Math.pow(n,3),u=Math.pow(i,3),l=Math.pow(a,3);return n=o>.008856?o:(n-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,n*=100,a*=108.883,[i,n,a]};q.lab.lch=function(t){var e=t[0],r=t[1],s=t[2],i,n,a;return i=Math.atan2(s,r),n=i*360/2/Math.PI,n<0&&(n+=360),a=Math.sqrt(r*r+s*s),[e,a,n]};q.lch.lab=function(t){var e=t[0],r=t[1],s=t[2],i,n,a;return a=s/360*2*Math.PI,i=r*Math.cos(a),n=r*Math.sin(a),[e,i,n]};q.rgb.ansi16=function(t){var e=t[0],r=t[1],s=t[2],i=1 in arguments?arguments[1]:q.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var n=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(n+=60),n};q.hsv.ansi16=function(t){return q.rgb.ansi16(q.hsv.rgb(t),t[2])};q.rgb.ansi256=function(t){var e=t[0],r=t[1],s=t[2];if(e===r&&r===s)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(s/255*5);return i};q.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,s=(e&1)*r*255,i=(e>>1&1)*r*255,n=(e>>2&1)*r*255;return[s,i,n]};q.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,s=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,n=r%6/5*255;return[s,i,n]};q.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};q.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(o){return o+o}).join(""));var s=parseInt(r,16),i=s>>16&255,n=s>>8&255,a=s&255;return[i,n,a]};q.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,s=t[2]/255,i=Math.max(Math.max(e,r),s),n=Math.min(Math.min(e,r),s),a=i-n,o,u;return a<1?o=n/(1-a):o=0,a<=0?u=0:i===e?u=(r-s)/a%6:i===r?u=2+(s-e)/a:u=4+(e-r)/a+4,u/=6,u%=1,[u*360,a*100,o*100]};q.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,s=1,i=0;return r<.5?s=2*e*r:s=2*e*(1-r),s<1&&(i=(r-.5*s)/(1-s)),[t[0],s*100,i*100]};q.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,s=e*r,i=0;return s<1&&(i=(r-s)/(1-s)),[t[0],s*100,i*100]};q.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,s=t[2]/100;if(r===0)return[s*255,s*255,s*255];var i=[0,0,0],n=e%1*6,a=n%1,o=1-a,u=0;switch(Math.floor(n)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return u=(1-r)*s,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};q.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,s=e+r*(1-e),i=0;return s>0&&(i=e/s),[t[0],i*100,s*100]};q.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,s=r*(1-e)+.5*e,i=0;return s>0&&s<.5?i=e/(2*s):s>=.5&&s<1&&(i=e/(2*(1-s))),[t[0],i*100,s*100]};q.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,s=e+r*(1-e);return[t[0],(s-e)*100,(1-s)*100]};q.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,s=1-r,i=s-e,n=0;return i<1&&(n=(s-i)/(1-i)),[t[0],i*100,n*100]};q.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};q.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};q.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};q.gray.hsl=q.gray.hsv=function(t){return[0,0,t[0]]};q.gray.hwb=function(t){return[0,100,t[0]]};q.gray.cmyk=function(t){return[0,0,0,t[0]]};q.gray.lab=function(t){return[t[0],0,0]};q.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,s=r.toString(16).toUpperCase();return"000000".substring(s.length)+s};q.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var qk=h((Qre,Nk)=>{var tc=Qp();function i3(){for(var t={},e=Object.keys(tc),r=e.length,s=0;s<r;s++)t[e[s]]={distance:-1,parent:null};return t}function n3(t){var e=i3(),r=[t];for(e[t].distance=0;r.length;)for(var s=r.pop(),i=Object.keys(tc[s]),n=i.length,a=0;a<n;a++){var o=i[a],u=e[o];u.distance===-1&&(u.distance=e[s].distance+1,u.parent=s,r.unshift(o))}return e}function a3(t,e){return function(r){return e(t(r))}}function o3(t,e){for(var r=[e[t].parent,t],s=tc[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),s=a3(tc[e[i].parent][i],s),i=e[i].parent;return s.conversion=r,s}Nk.exports=function(t){for(var e=n3(t),r={},s=Object.keys(e),i=s.length,n=0;n<i;n++){var a=s[n],o=e[a];o.parent!==null&&(r[a]=o3(a,e))}return r}});var Lk=h((Xre,Bk)=>{var Xp=Qp(),u3=qk(),Xn={},l3=Object.keys(Xp);function c3(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 f3(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var s=t(r);if(typeof s=="object")for(var i=s.length,n=0;n<i;n++)s[n]=Math.round(s[n]);return s};return"conversion"in t&&(e.conversion=t.conversion),e}l3.forEach(function(t){Xn[t]={},Object.defineProperty(Xn[t],"channels",{value:Xp[t].channels}),Object.defineProperty(Xn[t],"labels",{value:Xp[t].labels});var e=u3(t),r=Object.keys(e);r.forEach(function(s){var i=e[s];Xn[t][s]=f3(i),Xn[t][s].raw=c3(i)})});Bk.exports=Xn});var Uk=h((Zre,Hk)=>{"use strict";var Zn=Lk(),rc=(t,e)=>function(){return`[${t.apply(Zn,arguments)+e}m`},sc=(t,e)=>function(){let r=t.apply(Zn,arguments);return`[${38+e};5;${r}m`},ic=(t,e)=>function(){let r=t.apply(Zn,arguments);return`[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function d3(){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 n=e[i];for(let a of Object.keys(n)){let o=n[a];e[a]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[a]=e[a],t.set(o[0],o[1])}Object.defineProperty(e,i,{value:n,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,s=(i,n,a)=>[i,n,a];e.color.close="[39m",e.bgColor.close="[49m",e.color.ansi={ansi:rc(r,0)},e.color.ansi256={ansi256:sc(r,0)},e.color.ansi16m={rgb:ic(s,0)},e.bgColor.ansi={ansi:rc(r,10)},e.bgColor.ansi256={ansi256:sc(r,10)},e.bgColor.ansi16m={rgb:ic(s,10)};for(let i of Object.keys(Zn)){if(typeof Zn[i]!="object")continue;let n=Zn[i];i==="ansi16"&&(i="ansi"),"ansi16"in n&&(e.color.ansi[i]=rc(n.ansi16,0),e.bgColor.ansi[i]=rc(n.ansi16,10)),"ansi256"in n&&(e.color.ansi256[i]=sc(n.ansi256,0),e.bgColor.ansi256[i]=sc(n.ansi256,10)),"rgb"in n&&(e.color.ansi16m[i]=ic(n.rgb,0),e.bgColor.ansi16m[i]=ic(n.rgb,10))}return e}Object.defineProperty(Hk,"exports",{enumerable:!0,get:d3})});var Vk=h((ese,Gk)=>{"use strict";Gk.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",s=e.indexOf(r+t),i=e.indexOf("--");return s!==-1&&(i===-1?!0:s<i)}});var Wk=h((tse,zk)=>{"use strict";var h3=require("os"),Fr=Vk(),Tt=process.env,ea;Fr("no-color")||Fr("no-colors")||Fr("color=false")?ea=!1:(Fr("color")||Fr("colors")||Fr("color=true")||Fr("color=always"))&&(ea=!0);"FORCE_COLOR"in Tt&&(ea=Tt.FORCE_COLOR.length===0||parseInt(Tt.FORCE_COLOR,10)!==0);function p3(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function m3(t){if(ea===!1)return 0;if(Fr("color=16m")||Fr("color=full")||Fr("color=truecolor"))return 3;if(Fr("color=256"))return 2;if(t&&!t.isTTY&&ea!==!0)return 0;let e=ea?1:0;if(process.platform==="win32"){let r=h3.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 Tt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in Tt)||Tt.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Tt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Tt.TEAMCITY_VERSION)?1:0;if(Tt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Tt){let r=parseInt((Tt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Tt.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Tt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Tt.TERM)||"COLORTERM"in Tt?1:(Tt.TERM==="dumb",e)}function Zp(t){let e=m3(t);return p3(e)}zk.exports={supportsColor:Zp,stdout:Zp(process.stdout),stderr:Zp(process.stderr)}});var Xk=h((rse,Qk)=>{"use strict";var g3=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Kk=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,y3=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,v3=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,b3=new Map([["n",`
|
|
30
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function
|
|
31
|
-
`).map((r,s)=>s===0?
|
|
32
|
-
`)}function
|
|
33
|
-
${
|
|
34
|
-
`).map((r,s)=>s===0?r.length+e:r.length)}function
|
|
35
|
-
`:`${
|
|
36
|
-
`}),i||
|
|
37
|
-
`)})}checkIfActiveSpinners(){this.hasActiveSpinners()||(this.spin&&(this.setStreamOutput(),fm.moveCursor(this.stream,0,this.lineCount),clearInterval(this.currentInterval),this.isCursorHidden=!1,dm.show()),this.spinners={})}bindSigint(e){process.removeAllListeners("SIGINT"),process.on("SIGINT",()=>{dm.show(),fm.moveCursor(process.stderr,0,this.lineCount),process.exit(0)})}};pc.exports=C1;pc.exports.dots=k1;pc.exports.dashes=E1});var A1=h((yse,mc)=>{mc.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;mc.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;mc.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/});var pm=h((vse,O1)=>{var hm=A1();O1.exports={isSpaceSeparator(t){return typeof t=="string"&&hm.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||hm.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||hm.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}}});var j1=h((bse,F1)=>{var pt=pm(),mm,Nt,vs,gc,zs,jr,mt,gm,su;F1.exports=function(e,r){mm=String(e),Nt="start",vs=[],gc=0,zs=1,jr=0,mt=void 0,gm=void 0,su=void 0;do mt=Q3(),e5[Nt]();while(mt.type!=="eof");return typeof r=="function"?T1({"":su},"",r):su};function T1(t,e,r){let s=t[e];if(s!=null&&typeof s=="object")for(let i in s){let n=T1(s,i,r);n===void 0?delete s[i]:s[i]=n}return r.call(t,e,s)}var re,X,iu,bs,le;function Q3(){for(re="default",X="",iu=!1,bs=1;;){le=_s();let t=R1[re]();if(t)return t}}function _s(){if(mm[gc])return String.fromCodePoint(mm.codePointAt(gc))}function R(){let t=_s();return t===`
|
|
38
|
-
`?(zs++,jr=0):t?jr+=t.length:jr++,t&&(gc+=t.length),t}var
|
|
39
|
-
`:case"\r":case"\u2028":case"\u2029":R();return;case"/":R(),re="comment";return;case void 0:return R(),Fe("eof")}if(pt.isSpaceSeparator(le)){R();return}return
|
|
40
|
-
`:case"\r":case"\u2028":case"\u2029":R(),re="default";return;case void 0:return R(),Fe("eof")}R()},value(){switch(le){case"{":case"[":return Fe("punctuator",R());case"n":return R(),Ki("ull"),Fe("null",null);case"t":return R(),Ki("rue"),Fe("boolean",!0);case"f":return R(),Ki("alse"),Fe("boolean",!1);case"-":case"+":R()==="-"&&(bs=-1),re="sign";return;case".":X=R(),re="decimalPointLeading";return;case"0":X=R(),re="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":X=R(),re="decimalInteger";return;case"I":return R(),Ki("nfinity"),Fe("numeric",1/0);case"N":return R(),Ki("aN"),Fe("numeric",NaN);case'"':case"'":iu=R()==='"',X="",re="string";return}throw je(R())},identifierNameStartEscape(){if(le!=="u")throw je(R());R();let t=
|
|
41
|
-
`:case"\r":throw je(R());case"\u2028":case"\u2029":
|
|
42
|
-
`;case"r":return R(),"\r";case"t":return R()," ";case"v":return R(),"\v";case"0":if(R(),pt.isDigit(_s()))throw je(R());return"\0";case"x":return R(),
|
|
28
|
+
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof it))return new it(t,e);if(TN(this,t,e),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var s=0;s<r;s++)this._process(this.minimatch.set[s],s,!1);this._finish()}it.prototype._finish=function(){if(dw(this instanceof it),this.realpath){var t=this;this.matches.forEach(function(e,r){var s=t.matches[r]=Object.create(null);for(var i in e)try{i=t._makeAbs(i);var n=ON.realpathSync(i,t.realpathCache);s[n]=!0}catch(a){if(a.syscall==="stat")s[t._makeAbs(i)]=!0;else throw a}})}Mi.finish(this)};it.prototype._process=function(t,e,r){dw(this instanceof it);for(var s=0;typeof t[s]=="string";)s++;var i;switch(s){case t.length:this._processSimple(t.join("/"),e);return;case 0:i=null;break;default:i=t.slice(0,s).join("/");break}var n=t.slice(s),a;i===null?a=".":((jl(i)||jl(t.join("/")))&&(!i||!jl(i))&&(i="/"+i),a=i);var o=this._makeAbs(a);if(!RN(this,a)){var u=n[0]===fw.GLOBSTAR;u?this._processGlobStar(i,a,o,n,e,r):this._processReaddir(i,a,o,n,e,r)}};it.prototype._processReaddir=function(t,e,r,s,i,n){var a=this._readdir(r,n);if(!!a){for(var o=s[0],u=!!this.minimatch.negate,l=o._glob,c=this.dot||l.charAt(0)===".",f=[],d=0;d<a.length;d++){var p=a[d];if(p.charAt(0)!=="."||c){var m;u&&!t?m=!p.match(o):m=p.match(o),m&&f.push(p)}}var g=f.length;if(g!==0){if(s.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var d=0;d<g;d++){var p=f[d];t&&(t.slice(-1)!=="/"?p=t+"/"+p:p=t+p),p.charAt(0)==="/"&&!this.nomount&&(p=Kh.join(this.root,p)),this._emitMatch(i,p)}return}s.shift();for(var d=0;d<g;d++){var p=f[d],b;t?b=[t,p]:b=[p],this._process(b.concat(s),i,n)}}}};it.prototype._emitMatch=function(t,e){if(!PN(this,e)){var r=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var s=this.cache[r];if(s==="DIR"||Array.isArray(s))return}this.matches[t][e]=!0,this.stat&&this._stat(e)}}};it.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,r,s;try{r=this.fs.lstatSync(t)}catch(n){if(n.code==="ENOENT")return null}var i=r&&r.isSymbolicLink();return this.symlinks[t]=i,!i&&r&&!r.isDirectory()?this.cache[t]="FILE":e=this._readdir(t,!1),e};it.prototype._readdir=function(t,e){var r;if(e&&!Yh(this.symlinks,t))return this._readdirInGlobStar(t);if(Yh(this.cache,t)){var s=this.cache[t];if(!s||s==="FILE")return null;if(Array.isArray(s))return s}try{return this._readdirEntries(t,this.fs.readdirSync(t))}catch(i){return this._readdirError(t,i),null}};it.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat)for(var r=0;r<e.length;r++){var s=e[r];t==="/"?s=t+s:s=t+"/"+s,this.cache[s]=!0}return this.cache[t]=e,e};it.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);if(this.cache[r]="FILE",r===this.cwdAbs){var s=new Error(e.code+" invalid cwd "+this.cwd);throw s.path=this.cwd,s.code=e.code,s}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:if(this.cache[this._makeAbs(t)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};it.prototype._processGlobStar=function(t,e,r,s,i,n){var a=this._readdir(r,n);if(!!a){var o=s.slice(1),u=t?[t]:[],l=u.concat(o);this._process(l,i,!1);var c=a.length,f=this.symlinks[r];if(!(f&&n))for(var d=0;d<c;d++){var p=a[d];if(!(p.charAt(0)==="."&&!this.dot)){var m=u.concat(a[d],o);this._process(m,i,!0);var g=u.concat(a[d],s);this._process(g,i,!0)}}}};it.prototype._processSimple=function(t,e){var r=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!r){if(t&&jl(t)&&!this.nomount){var s=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=Kh.join(this.root,t):(t=Kh.resolve(this.root,t),s&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t)}};it.prototype._stat=function(t){var e=this._makeAbs(t),r=t.slice(-1)==="/";if(t.length>this.maxLength)return!1;if(!this.stat&&Yh(this.cache,e)){var a=this.cache[e];if(Array.isArray(a)&&(a="DIR"),!r||a==="DIR")return a;if(r&&a==="FILE")return!1}var s,i=this.statCache[e];if(!i){var n;try{n=this.fs.lstatSync(e)}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(n&&n.isSymbolicLink())try{i=this.fs.statSync(e)}catch{i=n}else i=n}this.statCache[e]=i;var a=!0;return i&&(a=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||a,r&&a==="FILE"?!1:a};it.prototype._mark=function(t){return Mi.mark(this,t)};it.prototype._makeAbs=function(t){return Mi.makeAbs(this,t)}});var Qh=h((hre,yw)=>{yw.exports=gw;function gw(t,e){if(t&&e)return gw(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(s){r[s]=t[s]}),r;function r(){for(var s=new Array(arguments.length),i=0;i<s.length;i++)s[i]=arguments[i];var n=t.apply(this,s),a=s[s.length-1];return typeof n=="function"&&n!==a&&Object.keys(a).forEach(function(o){n[o]=a[o]}),n}}});var Zh=h((pre,Xh)=>{var vw=Qh();Xh.exports=vw(Il);Xh.exports.strict=vw(bw);Il.proto=Il(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Il(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return bw(this)},configurable:!0})});function Il(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function bw(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 ww=h((mre,_w)=>{var $N=Qh(),qo=Object.create(null),FN=Zh();_w.exports=$N(jN);function jN(t,e){return qo[t]?(qo[t].push(e),null):(qo[t]=[e],IN(t))}function IN(t){return FN(function e(){var r=qo[t],s=r.length,i=MN(arguments);try{for(var n=0;n<s;n++)r[n].apply(null,i)}finally{r.length>s?(r.splice(0,s),process.nextTick(function(){e.apply(null,i)})):delete qo[t]}})}function MN(t){for(var e=t.length,r=[],s=0;s<e;s++)r[s]=t[s];return r}});var Jh=h((vre,kw)=>{kw.exports=qi;var NN=Mh(),Ew=Pl(),gre=Ew.Minimatch,qN=Gs(),BN=require("events").EventEmitter,ep=require("path"),tp=require("assert"),Bo=Fl(),rp=mw(),Ni=Wh(),LN=Ni.setopts,sp=Ni.ownProp,ip=ww(),yre=require("util"),HN=Ni.childrenIgnored,UN=Ni.isIgnored,GN=Zh();function qi(t,e,r){if(typeof e=="function"&&(r=e,e={}),e||(e={}),e.sync){if(r)throw new TypeError("callback provided to sync glob");return rp(t,e)}return new De(t,e,r)}qi.sync=rp;var VN=qi.GlobSync=rp.GlobSync;qi.glob=qi;function zN(t,e){if(e===null||typeof e!="object")return t;for(var r=Object.keys(e),s=r.length;s--;)t[r[s]]=e[r[s]];return t}qi.hasMagic=function(t,e){var r=zN({},e);r.noprocess=!0;var s=new De(t,r),i=s.minimatch.set;if(!t)return!1;if(i.length>1)return!0;for(var n=0;n<i[0].length;n++)if(typeof i[0][n]!="string")return!0;return!1};qi.Glob=De;qN(De,BN);function De(t,e,r){if(typeof e=="function"&&(r=e,e=null),e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new VN(t,e)}if(!(this instanceof De))return new De(t,e,r);LN(this,t,e),this._didRealPath=!1;var s=this.minimatch.set.length;this.matches=new Array(s),typeof r=="function"&&(r=GN(r),this.on("error",r),this.on("end",function(u){r(null,u)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(s===0)return o();for(var n=!0,a=0;a<s;a++)this._process(this.minimatch.set[a],a,!1,o);n=!1;function o(){--i._processing,i._processing<=0&&(n?process.nextTick(function(){i._finish()}):i._finish())}}De.prototype._finish=function(){if(tp(this instanceof De),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();Ni.finish(this),this.emit("end",this.found)}};De.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var t=this.matches.length;if(t===0)return this._finish();for(var e=this,r=0;r<this.matches.length;r++)this._realpathSet(r,s);function s(){--t==0&&e._finish()}};De.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var s=Object.keys(r),i=this,n=s.length;if(n===0)return e();var a=this.matches[t]=Object.create(null);s.forEach(function(o,u){o=i._makeAbs(o),NN.realpath(o,i.realpathCache,function(l,c){l?l.syscall==="stat"?a[o]=!0:i.emit("error",l):a[c]=!0,--n==0&&(i.matches[t]=a,e())})})};De.prototype._mark=function(t){return Ni.mark(this,t)};De.prototype._makeAbs=function(t){return Ni.makeAbs(this,t)};De.prototype.abort=function(){this.aborted=!0,this.emit("abort")};De.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};De.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var s=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<s.length;e++){var i=s[e];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}};De.prototype._process=function(t,e,r,s){if(tp(this instanceof De),tp(typeof s=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([t,e,r,s]);return}for(var i=0;typeof t[i]=="string";)i++;var n;switch(i){case t.length:this._processSimple(t.join("/"),e,s);return;case 0:n=null;break;default:n=t.slice(0,i).join("/");break}var a=t.slice(i),o;n===null?o=".":((Bo(n)||Bo(t.join("/")))&&(!n||!Bo(n))&&(n="/"+n),o=n);var u=this._makeAbs(o);if(HN(this,o))return s();var l=a[0]===Ew.GLOBSTAR;l?this._processGlobStar(n,o,u,a,e,r,s):this._processReaddir(n,o,u,a,e,r,s)}};De.prototype._processReaddir=function(t,e,r,s,i,n,a){var o=this;this._readdir(r,n,function(u,l){return o._processReaddir2(t,e,r,s,i,n,l,a)})};De.prototype._processReaddir2=function(t,e,r,s,i,n,a,o){if(!a)return o();for(var u=s[0],l=!!this.minimatch.negate,c=u._glob,f=this.dot||c.charAt(0)===".",d=[],p=0;p<a.length;p++){var m=a[p];if(m.charAt(0)!=="."||f){var g;l&&!t?g=!m.match(u):g=m.match(u),g&&d.push(m)}}var b=d.length;if(b===0)return o();if(s.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var p=0;p<b;p++){var m=d[p];t&&(t!=="/"?m=t+"/"+m:m=t+m),m.charAt(0)==="/"&&!this.nomount&&(m=ep.join(this.root,m)),this._emitMatch(i,m)}return o()}s.shift();for(var p=0;p<b;p++){var m=d[p],y;t&&(t!=="/"?m=t+"/"+m:m=t+m),this._process([m].concat(s),i,n,o)}o()};De.prototype._emitMatch=function(t,e){if(!this.aborted&&!UN(this,e)){if(this.paused){this._emitQueue.push([t,e]);return}var r=Bo(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var s=this.cache[r];if(s==="DIR"||Array.isArray(s))return}this.matches[t][e]=!0;var i=this.statCache[r];i&&this.emit("stat",e,i),this.emit("match",e)}}};De.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,!1,e);var r="lstat\0"+t,s=this,i=ip(r,n);i&&s.fs.lstat(t,i);function n(a,o){if(a&&a.code==="ENOENT")return e();var u=o&&o.isSymbolicLink();s.symlinks[t]=u,!u&&o&&!o.isDirectory()?(s.cache[t]="FILE",e()):s._readdir(t,!1,e)}};De.prototype._readdir=function(t,e,r){if(!this.aborted&&(r=ip("readdir\0"+t+"\0"+e,r),!!r)){if(e&&!sp(this.symlinks,t))return this._readdirInGlobStar(t,r);if(sp(this.cache,t)){var s=this.cache[t];if(!s||s==="FILE")return r();if(Array.isArray(s))return r(null,s)}var i=this;i.fs.readdir(t,WN(this,t,r))}};function WN(t,e,r){return function(s,i){s?t._readdirError(e,s,r):t._readdirEntries(e,i,r)}}De.prototype._readdirEntries=function(t,e,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var s=0;s<e.length;s++){var i=e[s];t==="/"?i=t+i:i=t+"/"+i,this.cache[i]=!0}return this.cache[t]=e,r(null,e)}};De.prototype._readdirError=function(t,e,r){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var s=this._makeAbs(t);if(this.cache[s]="FILE",s===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=e.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return r()}};De.prototype._processGlobStar=function(t,e,r,s,i,n,a){var o=this;this._readdir(r,n,function(u,l){o._processGlobStar2(t,e,r,s,i,n,l,a)})};De.prototype._processGlobStar2=function(t,e,r,s,i,n,a,o){if(!a)return o();var u=s.slice(1),l=t?[t]:[],c=l.concat(u);this._process(c,i,!1,o);var f=this.symlinks[r],d=a.length;if(f&&n)return o();for(var p=0;p<d;p++){var m=a[p];if(!(m.charAt(0)==="."&&!this.dot)){var g=l.concat(a[p],u);this._process(g,i,!0,o);var b=l.concat(a[p],s);this._process(b,i,!0,o)}}o()};De.prototype._processSimple=function(t,e,r){var s=this;this._stat(t,function(i,n){s._processSimple2(t,e,i,n,r)})};De.prototype._processSimple2=function(t,e,r,s,i){if(this.matches[e]||(this.matches[e]=Object.create(null)),!s)return i();if(t&&Bo(t)&&!this.nomount){var n=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=ep.join(this.root,t):(t=ep.resolve(this.root,t),n&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),i()};De.prototype._stat=function(t,e){var r=this._makeAbs(t),s=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&sp(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!s||i==="DIR")return e(null,i);if(s&&i==="FILE")return e()}var n,a=this.statCache[r];if(a!==void 0){if(a===!1)return e(null,a);var o=a.isDirectory()?"DIR":"FILE";return s&&o==="FILE"?e():e(null,o,a)}var u=this,l=ip("stat\0"+r,c);l&&u.fs.lstat(r,l);function c(f,d){if(d&&d.isSymbolicLink())return u.fs.stat(r,function(p,m){p?u._stat2(t,r,null,d,e):u._stat2(t,r,p,m,e)});u._stat2(t,r,f,d,e)}};De.prototype._stat2=function(t,e,r,s,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[e]=!1,i();var n=t.slice(-1)==="/";if(this.statCache[e]=s,e.slice(-1)==="/"&&s&&!s.isDirectory())return i(null,!1,s);var a=!0;return s&&(a=s.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||a,n&&a==="FILE"?i():i(null,a,s)}});var Cw=h((bre,Bi)=>{var Lo=Jh(),Dw=function(t,e){return new Promise((r,s)=>{Lo(t,e,(i,n)=>i===null?r(n):s(i))})};Bi.exports=Dw;Bi.exports.glob=Lo;Bi.exports.Glob=Lo.Glob;Bi.exports.hasMagic=Lo.hasMagic;Bi.exports.promise=Dw;Bi.exports.sync=Lo.sync});var Ho=h((wre,Pw)=>{"use strict";var YN=require("path"),Jr="\\\\/",Aw=`[^${Jr}]`,gs="\\.",JN="\\+",QN="\\?",Ml="\\/",XN="(?=.)",Ow="[^/]",np=`(?:${Ml}|$)`,Tw=`(?:^|${Ml})`,ap=`${gs}{1,2}${np}`,ZN=`(?!${gs})`,eq=`(?!${Tw}${ap})`,tq=`(?!${gs}{0,1}${np})`,rq=`(?!${ap})`,sq=`[^.${Ml}]`,iq=`${Ow}*?`,Rw={DOT_LITERAL:gs,PLUS_LITERAL:JN,QMARK_LITERAL:QN,SLASH_LITERAL:Ml,ONE_CHAR:XN,QMARK:Ow,END_ANCHOR:np,DOTS_SLASH:ap,NO_DOT:ZN,NO_DOTS:eq,NO_DOT_SLASH:tq,NO_DOTS_SLASH:rq,QMARK_NO_DOT:sq,STAR:iq,START_ANCHOR:Tw},nq={...Rw,SLASH_LITERAL:`[${Jr}]`,QMARK:Aw,STAR:`${Aw}*?`,DOTS_SLASH:`${gs}{1,2}(?:[${Jr}]|$)`,NO_DOT:`(?!${gs})`,NO_DOTS:`(?!(?:^|[${Jr}])${gs}{1,2}(?:[${Jr}]|$))`,NO_DOT_SLASH:`(?!${gs}{0,1}(?:[${Jr}]|$))`,NO_DOTS_SLASH:`(?!${gs}{1,2}(?:[${Jr}]|$))`,QMARK_NO_DOT:`[^.${Jr}]`,START_ANCHOR:`(?:^|[${Jr}])`,END_ANCHOR:`(?:[${Jr}]|$)`},aq={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"};Pw.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:aq,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:YN.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?nq:Rw}}});var Nl=h(Vt=>{"use strict";var oq=require("path"),uq=process.platform==="win32",{REGEX_BACKSLASH:lq,REGEX_REMOVE_BACKSLASH:cq,REGEX_SPECIAL_CHARS:fq,REGEX_SPECIAL_CHARS_GLOBAL:dq}=Ho();Vt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Vt.hasRegexChars=t=>fq.test(t);Vt.isRegexChar=t=>t.length===1&&Vt.hasRegexChars(t);Vt.escapeRegex=t=>t.replace(dq,"\\$1");Vt.toPosixSlashes=t=>t.replace(lq,"/");Vt.removeBackslashes=t=>t.replace(cq,e=>e==="\\"?"":e);Vt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Vt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:uq===!0||oq.sep==="\\";Vt.escapeLast=(t,e,r)=>{let s=t.lastIndexOf(e,r);return s===-1?t:t[s-1]==="\\"?Vt.escapeLast(t,e,s-1):`${t.slice(0,s)}\\${t.slice(s)}`};Vt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Vt.wrapOutput=(t,e={},r={})=>{let s=r.contains?"":"^",i=r.contains?"":"$",n=`${s}(?:${t})${i}`;return e.negated===!0&&(n=`(?:^(?!${n}).*$)`),n}});var Bw=h((kre,qw)=>{"use strict";var $w=Nl(),{CHAR_ASTERISK:op,CHAR_AT:hq,CHAR_BACKWARD_SLASH:Uo,CHAR_COMMA:pq,CHAR_DOT:up,CHAR_EXCLAMATION_MARK:lp,CHAR_FORWARD_SLASH:Fw,CHAR_LEFT_CURLY_BRACE:cp,CHAR_LEFT_PARENTHESES:fp,CHAR_LEFT_SQUARE_BRACKET:mq,CHAR_PLUS:gq,CHAR_QUESTION_MARK:jw,CHAR_RIGHT_CURLY_BRACE:yq,CHAR_RIGHT_PARENTHESES:Iw,CHAR_RIGHT_SQUARE_BRACKET:vq}=Ho(),Mw=t=>t===Fw||t===Uo,Nw=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},bq=(t,e)=>{let r=e||{},s=t.length-1,i=r.parts===!0||r.scanToEnd===!0,n=[],a=[],o=[],u=t,l=-1,c=0,f=0,d=!1,p=!1,m=!1,g=!1,b=!1,y=!1,w=!1,k=!1,O=!1,P=!1,I=0,z,T,$={value:"",depth:0,isGlob:!1},F=()=>l>=s,S=()=>u.charCodeAt(l+1),H=()=>(z=T,u.charCodeAt(++l));for(;l<s;){T=H();let be;if(T===Uo){w=$.backslashes=!0,T=H(),T===cp&&(y=!0);continue}if(y===!0||T===cp){for(I++;F()!==!0&&(T=H());){if(T===Uo){w=$.backslashes=!0,H();continue}if(T===cp){I++;continue}if(y!==!0&&T===up&&(T=H())===up){if(d=$.isBrace=!0,m=$.isGlob=!0,P=!0,i===!0)continue;break}if(y!==!0&&T===pq){if(d=$.isBrace=!0,m=$.isGlob=!0,P=!0,i===!0)continue;break}if(T===yq&&(I--,I===0)){y=!1,d=$.isBrace=!0,P=!0;break}}if(i===!0)continue;break}if(T===Fw){if(n.push(l),a.push($),$={value:"",depth:0,isGlob:!1},P===!0)continue;if(z===up&&l===c+1){c+=2;continue}f=l+1;continue}if(r.noext!==!0&&(T===gq||T===hq||T===op||T===jw||T===lp)===!0&&S()===fp){if(m=$.isGlob=!0,g=$.isExtglob=!0,P=!0,T===lp&&l===c&&(O=!0),i===!0){for(;F()!==!0&&(T=H());){if(T===Uo){w=$.backslashes=!0,T=H();continue}if(T===Iw){m=$.isGlob=!0,P=!0;break}}continue}break}if(T===op){if(z===op&&(b=$.isGlobstar=!0),m=$.isGlob=!0,P=!0,i===!0)continue;break}if(T===jw){if(m=$.isGlob=!0,P=!0,i===!0)continue;break}if(T===mq){for(;F()!==!0&&(be=H());){if(be===Uo){w=$.backslashes=!0,H();continue}if(be===vq){p=$.isBracket=!0,m=$.isGlob=!0,P=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&T===lp&&l===c){k=$.negated=!0,c++;continue}if(r.noparen!==!0&&T===fp){if(m=$.isGlob=!0,i===!0){for(;F()!==!0&&(T=H());){if(T===fp){w=$.backslashes=!0,T=H();continue}if(T===Iw){P=!0;break}}continue}break}if(m===!0){if(P=!0,i===!0)continue;break}}r.noext===!0&&(g=!1,m=!1);let V=u,ge="",x="";c>0&&(ge=u.slice(0,c),u=u.slice(c),f-=c),V&&m===!0&&f>0?(V=u.slice(0,f),x=u.slice(f)):m===!0?(V="",x=u):V=u,V&&V!==""&&V!=="/"&&V!==u&&Mw(V.charCodeAt(V.length-1))&&(V=V.slice(0,-1)),r.unescape===!0&&(x&&(x=$w.removeBackslashes(x)),V&&w===!0&&(V=$w.removeBackslashes(V)));let D={prefix:ge,input:t,start:c,base:V,glob:x,isBrace:d,isBracket:p,isGlob:m,isExtglob:g,isGlobstar:b,negated:k,negatedExtglob:O};if(r.tokens===!0&&(D.maxDepth=0,Mw(T)||a.push($),D.tokens=a),r.parts===!0||r.tokens===!0){let be;for(let L=0;L<n.length;L++){let ut=be?be+1:c,At=n[L],st=t.slice(ut,At);r.tokens&&(L===0&&c!==0?(a[L].isPrefix=!0,a[L].value=ge):a[L].value=st,Nw(a[L]),D.maxDepth+=a[L].depth),(L!==0||st!=="")&&o.push(st),be=At}if(be&&be+1<t.length){let L=t.slice(be+1);o.push(L),r.tokens&&(a[a.length-1].value=L,Nw(a[a.length-1]),D.maxDepth+=a[a.length-1].depth)}D.slashes=n,D.parts=o}return D};qw.exports=bq});var Gw=h((Dre,Uw)=>{"use strict";var ql=Ho(),sr=Nl(),{MAX_LENGTH:Bl,POSIX_REGEX_SOURCE:_q,REGEX_NON_SPECIAL_CHARS:wq,REGEX_SPECIAL_CHARS_BACKREF:Eq,REPLACEMENTS:Lw}=ql,kq=(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=>sr.escapeRegex(i)).join("..")}return r},Wn=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Hw=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Lw[t]||t;let r={...e},s=typeof r.maxLength=="number"?Math.min(Bl,r.maxLength):Bl,i=t.length;if(i>s)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${s}`);let n={type:"bos",value:"",output:r.prepend||""},a=[n],o=r.capture?"":"?:",u=sr.isWindows(e),l=ql.globChars(u),c=ql.extglobChars(l),{DOT_LITERAL:f,PLUS_LITERAL:d,SLASH_LITERAL:p,ONE_CHAR:m,DOTS_SLASH:g,NO_DOT:b,NO_DOT_SLASH:y,NO_DOTS_SLASH:w,QMARK:k,QMARK_NO_DOT:O,STAR:P,START_ANCHOR:I}=l,z=M=>`(${o}(?:(?!${I}${M.dot?g:f}).)*?)`,T=r.dot?"":b,$=r.dot?k:O,F=r.bash===!0?z(r):P;r.capture&&(F=`(${F})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let S={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:a};t=sr.removePrefix(t,S),i=t.length;let H=[],V=[],ge=[],x=n,D,be=()=>S.index===i-1,L=S.peek=(M=1)=>t[S.index+M],ut=S.advance=()=>t[++S.index]||"",At=()=>t.slice(S.index+1),st=(M="",Se=0)=>{S.consumed+=M,S.index+=Se},zr=M=>{S.output+=M.output!=null?M.output:M.value,st(M.value)},th=()=>{let M=1;for(;L()==="!"&&(L(2)!=="("||L(3)==="?");)ut(),S.start++,M++;return M%2==0?!1:(S.negated=!0,S.start++,!0)},Ar=M=>{S[M]++,ge.push(M)},Xe=M=>{S[M]--,ge.pop()},K=M=>{if(x.type==="globstar"){let Se=S.braces>0&&(M.type==="comma"||M.type==="brace"),j=M.extglob===!0||H.length&&(M.type==="pipe"||M.type==="paren");M.type!=="slash"&&M.type!=="paren"&&!Se&&!j&&(S.output=S.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=F,S.output+=x.output)}if(H.length&&M.type!=="paren"&&(H[H.length-1].inner+=M.value),(M.value||M.output)&&zr(M),x&&x.type==="text"&&M.type==="text"){x.value+=M.value,x.output=(x.output||"")+M.value;return}M.prev=x,a.push(M),x=M},Or=(M,Se)=>{let j={...c[Se],conditions:1,inner:""};j.prev=x,j.parens=S.parens,j.output=S.output;let te=(r.capture?"(":"")+j.open;Ar("parens"),K({type:M,value:Se,output:S.output?"":m}),K({type:"paren",extglob:!0,value:ut(),output:te}),H.push(j)},vo=M=>{let Se=M.close+(r.capture?")":""),j;if(M.type==="negate"){let te=F;M.inner&&M.inner.length>1&&M.inner.includes("/")&&(te=z(r)),(te!==F||be()||/^\)+$/.test(At()))&&(Se=M.close=`)$))${te}`),M.inner.includes("*")&&(j=At())&&/^\.[^\\/.]+$/.test(j)&&(Se=M.close=`)${j})${te})`),M.prev.type==="bos"&&(S.negatedExtglob=!0)}K({type:"paren",extglob:!0,value:D,output:Se}),Xe("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let M=!1,Se=t.replace(Eq,(j,te,Le,$e,Ye,On)=>$e==="\\"?(M=!0,j):$e==="?"?te?te+$e+(Ye?k.repeat(Ye.length):""):On===0?$+(Ye?k.repeat(Ye.length):""):k.repeat(Le.length):$e==="."?f.repeat(Le.length):$e==="*"?te?te+$e+(Ye?F:""):F:te?j:`\\${j}`);return M===!0&&(r.unescape===!0?Se=Se.replace(/\\/g,""):Se=Se.replace(/\\+/g,j=>j.length%2==0?"\\\\":j?"\\":"")),Se===t&&r.contains===!0?(S.output=t,S):(S.output=sr.wrapOutput(Se,S,e),S)}for(;!be();){if(D=ut(),D==="\0")continue;if(D==="\\"){let j=L();if(j==="/"&&r.bash!==!0||j==="."||j===";")continue;if(!j){D+="\\",K({type:"text",value:D});continue}let te=/^\\+/.exec(At()),Le=0;if(te&&te[0].length>2&&(Le=te[0].length,S.index+=Le,Le%2!=0&&(D+="\\")),r.unescape===!0?D=ut():D+=ut(),S.brackets===0){K({type:"text",value:D});continue}}if(S.brackets>0&&(D!=="]"||x.value==="["||x.value==="[^")){if(r.posix!==!1&&D===":"){let j=x.value.slice(1);if(j.includes("[")&&(x.posix=!0,j.includes(":"))){let te=x.value.lastIndexOf("["),Le=x.value.slice(0,te),$e=x.value.slice(te+2),Ye=_q[$e];if(Ye){x.value=Le+Ye,S.backtrack=!0,ut(),!n.output&&a.indexOf(x)===1&&(n.output=m);continue}}}(D==="["&&L()!==":"||D==="-"&&L()==="]")&&(D=`\\${D}`),D==="]"&&(x.value==="["||x.value==="[^")&&(D=`\\${D}`),r.posix===!0&&D==="!"&&x.value==="["&&(D="^"),x.value+=D,zr({value:D});continue}if(S.quotes===1&&D!=='"'){D=sr.escapeRegex(D),x.value+=D,zr({value:D});continue}if(D==='"'){S.quotes=S.quotes===1?0:1,r.keepQuotes===!0&&K({type:"text",value:D});continue}if(D==="("){Ar("parens"),K({type:"paren",value:D});continue}if(D===")"){if(S.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Wn("opening","("));let j=H[H.length-1];if(j&&S.parens===j.parens+1){vo(H.pop());continue}K({type:"paren",value:D,output:S.parens?")":"\\)"}),Xe("parens");continue}if(D==="["){if(r.nobracket===!0||!At().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Wn("closing","]"));D=`\\${D}`}else Ar("brackets");K({type:"bracket",value:D});continue}if(D==="]"){if(r.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){K({type:"text",value:D,output:`\\${D}`});continue}if(S.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Wn("opening","["));K({type:"text",value:D,output:`\\${D}`});continue}Xe("brackets");let j=x.value.slice(1);if(x.posix!==!0&&j[0]==="^"&&!j.includes("/")&&(D=`/${D}`),x.value+=D,zr({value:D}),r.literalBrackets===!1||sr.hasRegexChars(j))continue;let te=sr.escapeRegex(x.value);if(S.output=S.output.slice(0,-x.value.length),r.literalBrackets===!0){S.output+=te,x.value=te;continue}x.value=`(${o}${te}|${x.value})`,S.output+=x.value;continue}if(D==="{"&&r.nobrace!==!0){Ar("braces");let j={type:"brace",value:D,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};V.push(j),K(j);continue}if(D==="}"){let j=V[V.length-1];if(r.nobrace===!0||!j){K({type:"text",value:D,output:D});continue}let te=")";if(j.dots===!0){let Le=a.slice(),$e=[];for(let Ye=Le.length-1;Ye>=0&&(a.pop(),Le[Ye].type!=="brace");Ye--)Le[Ye].type!=="dots"&&$e.unshift(Le[Ye].value);te=kq($e,r),S.backtrack=!0}if(j.comma!==!0&&j.dots!==!0){let Le=S.output.slice(0,j.outputIndex),$e=S.tokens.slice(j.tokensIndex);j.value=j.output="\\{",D=te="\\}",S.output=Le;for(let Ye of $e)S.output+=Ye.output||Ye.value}K({type:"brace",value:D,output:te}),Xe("braces"),V.pop();continue}if(D==="|"){H.length>0&&H[H.length-1].conditions++,K({type:"text",value:D});continue}if(D===","){let j=D,te=V[V.length-1];te&&ge[ge.length-1]==="braces"&&(te.comma=!0,j="|"),K({type:"comma",value:D,output:j});continue}if(D==="/"){if(x.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",a.pop(),x=n;continue}K({type:"slash",value:D,output:p});continue}if(D==="."){if(S.braces>0&&x.type==="dot"){x.value==="."&&(x.output=f);let j=V[V.length-1];x.type="dots",x.output+=D,x.value+=D,j.dots=!0;continue}if(S.braces+S.parens===0&&x.type!=="bos"&&x.type!=="slash"){K({type:"text",value:D,output:f});continue}K({type:"dot",value:D,output:f});continue}if(D==="?"){if(!(x&&x.value==="(")&&r.noextglob!==!0&&L()==="("&&L(2)!=="?"){Or("qmark",D);continue}if(x&&x.type==="paren"){let te=L(),Le=D;if(te==="<"&&!sr.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(x.value==="("&&!/[!=<:]/.test(te)||te==="<"&&!/<([!=]|\w+>)/.test(At()))&&(Le=`\\${D}`),K({type:"text",value:D,output:Le});continue}if(r.dot!==!0&&(x.type==="slash"||x.type==="bos")){K({type:"qmark",value:D,output:O});continue}K({type:"qmark",value:D,output:k});continue}if(D==="!"){if(r.noextglob!==!0&&L()==="("&&(L(2)!=="?"||!/[!=<:]/.test(L(3)))){Or("negate",D);continue}if(r.nonegate!==!0&&S.index===0){th();continue}}if(D==="+"){if(r.noextglob!==!0&&L()==="("&&L(2)!=="?"){Or("plus",D);continue}if(x&&x.value==="("||r.regex===!1){K({type:"plus",value:D,output:d});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||S.parens>0){K({type:"plus",value:D});continue}K({type:"plus",value:d});continue}if(D==="@"){if(r.noextglob!==!0&&L()==="("&&L(2)!=="?"){K({type:"at",extglob:!0,value:D,output:""});continue}K({type:"text",value:D});continue}if(D!=="*"){(D==="$"||D==="^")&&(D=`\\${D}`);let j=wq.exec(At());j&&(D+=j[0],S.index+=j[0].length),K({type:"text",value:D});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=D,x.output=F,S.backtrack=!0,S.globstar=!0,st(D);continue}let M=At();if(r.noextglob!==!0&&/^\([^?]/.test(M)){Or("star",D);continue}if(x.type==="star"){if(r.noglobstar===!0){st(D);continue}let j=x.prev,te=j.prev,Le=j.type==="slash"||j.type==="bos",$e=te&&(te.type==="star"||te.type==="globstar");if(r.bash===!0&&(!Le||M[0]&&M[0]!=="/")){K({type:"star",value:D,output:""});continue}let Ye=S.braces>0&&(j.type==="comma"||j.type==="brace"),On=H.length&&(j.type==="pipe"||j.type==="paren");if(!Le&&j.type!=="paren"&&!Ye&&!On){K({type:"star",value:D,output:""});continue}for(;M.slice(0,3)==="/**";){let Ai=t[S.index+4];if(Ai&&Ai!=="/")break;M=M.slice(3),st("/**",3)}if(j.type==="bos"&&be()){x.type="globstar",x.value+=D,x.output=z(r),S.output=x.output,S.globstar=!0,st(D);continue}if(j.type==="slash"&&j.prev.type!=="bos"&&!$e&&be()){S.output=S.output.slice(0,-(j.output+x.output).length),j.output=`(?:${j.output}`,x.type="globstar",x.output=z(r)+(r.strictSlashes?")":"|$)"),x.value+=D,S.globstar=!0,S.output+=j.output+x.output,st(D);continue}if(j.type==="slash"&&j.prev.type!=="bos"&&M[0]==="/"){let Ai=M[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(j.output+x.output).length),j.output=`(?:${j.output}`,x.type="globstar",x.output=`${z(r)}${p}|${p}${Ai})`,x.value+=D,S.output+=j.output+x.output,S.globstar=!0,st(D+ut()),K({type:"slash",value:"/",output:""});continue}if(j.type==="bos"&&M[0]==="/"){x.type="globstar",x.value+=D,x.output=`(?:^|${p}|${z(r)}${p})`,S.output=x.output,S.globstar=!0,st(D+ut()),K({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-x.output.length),x.type="globstar",x.output=z(r),x.value+=D,S.output+=x.output,S.globstar=!0,st(D);continue}let Se={type:"star",value:D,output:F};if(r.bash===!0){Se.output=".*?",(x.type==="bos"||x.type==="slash")&&(Se.output=T+Se.output),K(Se);continue}if(x&&(x.type==="bracket"||x.type==="paren")&&r.regex===!0){Se.output=D,K(Se);continue}(S.index===S.start||x.type==="slash"||x.type==="dot")&&(x.type==="dot"?(S.output+=y,x.output+=y):r.dot===!0?(S.output+=w,x.output+=w):(S.output+=T,x.output+=T),L()!=="*"&&(S.output+=m,x.output+=m)),K(Se)}for(;S.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wn("closing","]"));S.output=sr.escapeLast(S.output,"["),Xe("brackets")}for(;S.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wn("closing",")"));S.output=sr.escapeLast(S.output,"("),Xe("parens")}for(;S.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wn("closing","}"));S.output=sr.escapeLast(S.output,"{"),Xe("braces")}if(r.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&K({type:"maybe_slash",value:"",output:`${p}?`}),S.backtrack===!0){S.output="";for(let M of S.tokens)S.output+=M.output!=null?M.output:M.value,M.suffix&&(S.output+=M.suffix)}return S};Hw.fastpaths=(t,e)=>{let r={...e},s=typeof r.maxLength=="number"?Math.min(Bl,r.maxLength):Bl,i=t.length;if(i>s)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${s}`);t=Lw[t]||t;let n=sr.isWindows(e),{DOT_LITERAL:a,SLASH_LITERAL:o,ONE_CHAR:u,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:d,STAR:p,START_ANCHOR:m}=ql.globChars(n),g=r.dot?f:c,b=r.dot?d:c,y=r.capture?"":"?:",w={negated:!1,prefix:""},k=r.bash===!0?".*?":p;r.capture&&(k=`(${k})`);let O=T=>T.noglobstar===!0?k:`(${y}(?:(?!${m}${T.dot?l:a}).)*?)`,P=T=>{switch(T){case"*":return`${g}${u}${k}`;case".*":return`${a}${u}${k}`;case"*.*":return`${g}${k}${a}${u}${k}`;case"*/*":return`${g}${k}${o}${u}${b}${k}`;case"**":return g+O(r);case"**/*":return`(?:${g}${O(r)}${o})?${b}${u}${k}`;case"**/*.*":return`(?:${g}${O(r)}${o})?${b}${k}${a}${u}${k}`;case"**/.*":return`(?:${g}${O(r)}${o})?${a}${u}${k}`;default:{let $=/^(.*?)\.(\w+)$/.exec(T);if(!$)return;let F=P($[1]);return F?F+a+$[2]:void 0}}},I=sr.removePrefix(t,w),z=P(I);return z&&r.strictSlashes!==!0&&(z+=`${o}?`),z};Uw.exports=Hw});var zw=h((Cre,Vw)=>{"use strict";var Dq=require("path"),Cq=Bw(),dp=Gw(),hp=Nl(),Sq=Ho(),xq=t=>t&&typeof t=="object"&&!Array.isArray(t),Je=(t,e,r=!1)=>{if(Array.isArray(t)){let c=t.map(d=>Je(d,e,r));return d=>{for(let p of c){let m=p(d);if(m)return m}return!1}}let s=xq(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!s)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},n=hp.isWindows(e),a=s?Je.compileRe(t,e):Je.makeRe(t,e,!1,!0),o=a.state;delete a.state;let u=()=>!1;if(i.ignore){let c={...e,ignore:null,onMatch:null,onResult:null};u=Je(i.ignore,c,r)}let l=(c,f=!1)=>{let{isMatch:d,match:p,output:m}=Je.test(c,a,e,{glob:t,posix:n}),g={glob:t,state:o,regex:a,posix:n,input:c,output:m,match:p,isMatch:d};return typeof i.onResult=="function"&&i.onResult(g),d===!1?(g.isMatch=!1,f?g:!1):u(c)?(typeof i.onIgnore=="function"&&i.onIgnore(g),g.isMatch=!1,f?g:!1):(typeof i.onMatch=="function"&&i.onMatch(g),f?g:!0)};return r&&(l.state=o),l};Je.test=(t,e,r,{glob:s,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let n=r||{},a=n.format||(i?hp.toPosixSlashes:null),o=t===s,u=o&&a?a(t):t;return o===!1&&(u=a?a(t):t,o=u===s),(o===!1||n.capture===!0)&&(n.matchBase===!0||n.basename===!0?o=Je.matchBase(t,e,r,i):o=e.exec(u)),{isMatch:Boolean(o),match:o,output:u}};Je.matchBase=(t,e,r,s=hp.isWindows(r))=>(e instanceof RegExp?e:Je.makeRe(e,r)).test(Dq.basename(t));Je.isMatch=(t,e,r)=>Je(e,r)(t);Je.parse=(t,e)=>Array.isArray(t)?t.map(r=>Je.parse(r,e)):dp(t,{...e,fastpaths:!1});Je.scan=(t,e)=>Cq(t,e);Je.compileRe=(t,e,r=!1,s=!1)=>{if(r===!0)return t.output;let i=e||{},n=i.contains?"":"^",a=i.contains?"":"$",o=`${n}(?:${t.output})${a}`;t&&t.negated===!0&&(o=`^(?!${o}).*$`);let u=Je.toRegex(o,e);return s===!0&&(u.state=t),u};Je.makeRe=(t,e={},r=!1,s=!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=dp.fastpaths(t,e)),i.output||(i=dp(t,e)),Je.compileRe(i,e,r,s)};Je.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/$^/}};Je.constants=Sq;Vw.exports=Je});var pp=h((Sre,Ww)=>{"use strict";Ww.exports=zw()});var tE=h((xre,eE)=>{"use strict";var Go=require("fs"),{Readable:Aq}=require("stream"),Vo=require("path"),{promisify:Ll}=require("util"),mp=pp(),Oq=Ll(Go.readdir),Tq=Ll(Go.stat),Kw=Ll(Go.lstat),Rq=Ll(Go.realpath),Pq="!",Yw="READDIRP_RECURSIVE_ERROR",$q=new Set(["ENOENT","EPERM","EACCES","ELOOP",Yw]),gp="files",Jw="directories",Hl="files_directories",Ul="all",Qw=[gp,Jw,Hl,Ul],Fq=t=>$q.has(t.code),[Xw,jq]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),Iq=process.platform==="win32"&&(Xw>10||Xw===10&&jq>=5),Zw=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){let e=mp(t.trim());return r=>e(r.basename)}if(Array.isArray(t)){let e=[],r=[];for(let s of t){let i=s.trim();i.charAt(0)===Pq?r.push(mp(i.slice(1))):e.push(mp(i))}return r.length>0?e.length>0?s=>e.some(i=>i(s.basename))&&!r.some(i=>i(s.basename)):s=>!r.some(i=>i(s.basename)):s=>e.some(i=>i(s.basename))}}},zo=class extends Aq{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:gp,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});let r={...zo.defaultOptions,...e},{root:s,type:i}=r;this._fileFilter=Zw(r.fileFilter),this._directoryFilter=Zw(r.directoryFilter);let n=r.lstat?Kw:Tq;Iq?this._stat=a=>n(a,{bigint:!0}):this._stat=n,this._maxDepth=r.depth,this._wantsDir=[Jw,Hl,Ul].includes(i),this._wantsFile=[gp,Hl,Ul].includes(i),this._wantsEverything=i===Ul,this._root=Vo.resolve(s),this._isDirent="Dirent"in Go&&!r.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(s,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){let{path:r,depth:s,files:i=[]}=this.parent||{};if(i.length>0){let n=i.splice(0,e).map(a=>this._formatEntry(a,r));for(let a of await Promise.all(n)){if(this.destroyed)return;let o=await this._getEntryType(a);o==="directory"&&this._directoryFilter(a)?(s<=this._maxDepth&&this.parents.push(this._exploreDir(a.fullPath,s+1)),this._wantsDir&&(this.push(a),e--)):(o==="file"||this._includeAsFile(a))&&this._fileFilter(a)&&this._wantsFile&&(this.push(a),e--)}}else{let n=this.parents.pop();if(!n){this.push(null);break}if(this.parent=await n,this.destroyed)return}}}catch(r){this.destroy(r)}finally{this.reading=!1}}}async _exploreDir(e,r){let s;try{s=await Oq(e,this._rdOptions)}catch(i){this._onError(i)}return{files:s,depth:r,path:e}}async _formatEntry(e,r){let s;try{let i=this._isDirent?e.name:e,n=Vo.resolve(Vo.join(r,i));s={path:Vo.relative(this._root,n),fullPath:n,basename:i},s[this._statsProp]=this._isDirent?e:await this._stat(n)}catch(i){this._onError(i)}return s}_onError(e){Fq(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){let r=e&&e[this._statsProp];if(!!r){if(r.isFile())return"file";if(r.isDirectory())return"directory";if(r&&r.isSymbolicLink()){let s=e.fullPath;try{let i=await Rq(s),n=await Kw(i);if(n.isFile())return"file";if(n.isDirectory()){let a=i.length;if(s.startsWith(i)&&s.substr(a,1)===Vo.sep){let o=new Error(`Circular symlink detected: "${s}" points to "${i}"`);return o.code=Yw,this._onError(o)}return"directory"}}catch(i){this._onError(i)}}}}_includeAsFile(e){let r=e&&e[this._statsProp];return r&&this._wantsEverything&&!r.isDirectory()}},Kn=(t,e={})=>{let r=e.entryType||e.type;if(r==="both"&&(r=Hl),r&&(e.type=r),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(r&&!Qw.includes(r))throw new Error(`readdirp: Invalid type passed. Use one of ${Qw.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new zo(e)},Mq=(t,e={})=>new Promise((r,s)=>{let i=[];Kn(t,e).on("data",n=>i.push(n)).on("end",()=>r(i)).on("error",n=>s(n))});Kn.promise=Mq;Kn.ReaddirpStream=zo;Kn.default=Kn;eE.exports=Kn});var yp=h((Are,rE)=>{rE.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var s="";if(r>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),s="//")}var n=t.split(/[/\\]+/);return e!==!1&&n[n.length-1]===""&&n.pop(),s+n.join("/")}});var uE=h((aE,oE)=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});var sE=pp(),Nq=yp(),iE="!",qq={returnIndex:!1},Bq=t=>Array.isArray(t)?t:[t],Lq=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=sE(t,e);return s=>t===s||r(s)}return t instanceof RegExp?r=>t.test(r):r=>!1},nE=(t,e,r,s)=>{let i=Array.isArray(r),n=i?r[0]:r;if(!i&&typeof n!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(n));let a=Nq(n);for(let u=0;u<e.length;u++)if(e[u](a))return s?-1:!1;let o=i&&[a].concat(r.slice(1));for(let u=0;u<t.length;u++){let l=t[u];if(i?l(...o):l(a))return s?u:!0}return s?-1:!1},vp=(t,e,r=qq)=>{if(t==null)throw new TypeError("anymatch: specify first argument");let s=typeof r=="boolean"?{returnIndex:r}:r,i=s.returnIndex||!1,n=Bq(t),a=n.filter(u=>typeof u=="string"&&u.charAt(0)===iE).map(u=>u.slice(1)).map(u=>sE(u,s)),o=n.filter(u=>typeof u!="string"||typeof u=="string"&&u.charAt(0)!==iE).map(u=>Lq(u,s));return e==null?(u,l=!1)=>nE(o,a,u,typeof l=="boolean"?l:!1):nE(o,a,e,i)};vp.default=vp;oE.exports=vp});var cE=h((Ore,lE)=>{lE.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 bp=h((Tre,dE)=>{var Hq=cE(),fE={"{":"}","(":")","[":"]"},Uq=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,s=-2,i=-2,n=-2,a=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||s!==-1&&t[e]==="["&&t[e+1]!=="]"&&(s<e&&(s=t.indexOf("]",e)),s>e&&(a===-1||a>s||(a=t.indexOf("\\",e),a===-1||a>s)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(a=t.indexOf("\\",e),a===-1||a>i))||n!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(n=t.indexOf(")",e),n>e&&(a=t.indexOf("\\",e),a===-1||a>n))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(n=t.indexOf(")",r),n>r&&(a=t.indexOf("\\",r),a===-1||a>n))))return!0;if(t[e]==="\\"){var o=t[e+1];e+=2;var u=fE[o];if(u){var l=t.indexOf(u,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},Gq=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 s=fE[r];if(s){var i=t.indexOf(s,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};dE.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(Hq(e))return!0;var s=Uq;return r&&r.strict===!1&&(s=Gq),s(e)}});var pE=h((Rre,hE)=>{"use strict";var Vq=bp(),zq=require("path").posix.dirname,Wq=require("os").platform()==="win32",_p="/",Kq=/\\/g,Yq=/[\{\[].*[\}\]]$/,Jq=/(^|[^\\])([\{\[]|\([^\)]+$)/,Qq=/\\([\!\*\?\|\[\]\(\)\{\}])/g;hE.exports=function(e,r){var s=Object.assign({flipBackslashes:!0},r);s.flipBackslashes&&Wq&&e.indexOf(_p)<0&&(e=e.replace(Kq,_p)),Yq.test(e)&&(e+=_p),e+="a";do e=zq(e);while(Vq(e)||Jq.test(e));return e.replace(Qq,"$1")}});var Gl=h(dr=>{"use strict";dr.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;dr.find=(t,e)=>t.nodes.find(r=>r.type===e);dr.exceedsLimit=(t,e,r=1,s)=>s===!1||!dr.isInteger(t)||!dr.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=s;dr.escapeNode=(t,e=0,r)=>{let s=t.nodes[e];!s||(r&&s.type===r||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0)};dr.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0==0?(t.invalid=!0,!0):!1;dr.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;dr.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;dr.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);dr.flatten=(...t)=>{let e=[],r=s=>{for(let i=0;i<s.length;i++){let n=s[i];Array.isArray(n)?r(n,e):n!==void 0&&e.push(n)}return e};return r(t),e}});var Vl=h(($re,gE)=>{"use strict";var mE=Gl();gE.exports=(t,e={})=>{let r=(s,i={})=>{let n=e.escapeInvalid&&mE.isInvalidBrace(i),a=s.invalid===!0&&e.escapeInvalid===!0,o="";if(s.value)return(n||a)&&mE.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let u of s.nodes)o+=r(u);return o};return r(t)}});var vE=h((Fre,yE)=>{"use strict";yE.exports=function(t){return typeof t=="number"?t-t==0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var xE=h((jre,SE)=>{"use strict";var bE=vE(),Li=(t,e,r)=>{if(bE(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(bE(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let s={relaxZeros:!0,...r};typeof s.strictZeros=="boolean"&&(s.relaxZeros=s.strictZeros===!1);let i=String(s.relaxZeros),n=String(s.shorthand),a=String(s.capture),o=String(s.wrap),u=t+":"+e+"="+i+n+a+o;if(Li.cache.hasOwnProperty(u))return Li.cache[u].result;let l=Math.min(t,e),c=Math.max(t,e);if(Math.abs(l-c)===1){let g=t+"|"+e;return s.capture?`(${g})`:s.wrap===!1?g:`(?:${g})`}let f=CE(t)||CE(e),d={min:t,max:e,a:l,b:c},p=[],m=[];if(f&&(d.isPadded=f,d.maxLen=String(d.max).length),l<0){let g=c<0?Math.abs(c):1;m=_E(g,Math.abs(l),d,s),l=d.a=0}return c>=0&&(p=_E(l,c,d,s)),d.negatives=m,d.positives=p,d.result=Xq(m,p,s),s.capture===!0?d.result=`(${d.result})`:s.wrap!==!1&&p.length+m.length>1&&(d.result=`(?:${d.result})`),Li.cache[u]=d,d.result};function Xq(t,e,r){let s=wp(t,e,"-",!1,r)||[],i=wp(e,t,"",!1,r)||[],n=wp(t,e,"-?",!0,r)||[];return s.concat(n).concat(i).join("|")}function Zq(t,e){let r=1,s=1,i=EE(t,r),n=new Set([e]);for(;t<=i&&i<=e;)n.add(i),r+=1,i=EE(t,r);for(i=kE(e+1,s)-1;t<i&&i<=e;)n.add(i),s+=1,i=kE(e+1,s)-1;return n=[...n],n.sort(rB),n}function eB(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let s=tB(t,e),i=s.length,n="",a=0;for(let o=0;o<i;o++){let[u,l]=s[o];u===l?n+=u:u!=="0"||l!=="9"?n+=sB(u,l,r):a++}return a&&(n+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:n,count:[a],digits:i}}function _E(t,e,r,s){let i=Zq(t,e),n=[],a=t,o;for(let u=0;u<i.length;u++){let l=i[u],c=eB(String(a),String(l),s),f="";if(!r.isPadded&&o&&o.pattern===c.pattern){o.count.length>1&&o.count.pop(),o.count.push(c.count[0]),o.string=o.pattern+DE(o.count),a=l+1;continue}r.isPadded&&(f=iB(l,r,s)),c.string=f+c.pattern+DE(c.count),n.push(c),a=l+1,o=c}return n}function wp(t,e,r,s,i){let n=[];for(let a of t){let{string:o}=a;!s&&!wE(e,"string",o)&&n.push(r+o),s&&wE(e,"string",o)&&n.push(r+o)}return n}function tB(t,e){let r=[];for(let s=0;s<t.length;s++)r.push([t[s],e[s]]);return r}function rB(t,e){return t>e?1:e>t?-1:0}function wE(t,e,r){return t.some(s=>s[e]===r)}function EE(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function kE(t,e){return t-t%Math.pow(10,e)}function DE(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function sB(t,e,r){return`[${t}${e-t==1?"":"-"}${e}]`}function CE(t){return/^-?(0+)\d/.test(t)}function iB(t,e,r){if(!e.isPadded)return t;let s=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(s){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${s}}`:`0{${s}}`}}Li.cache={};Li.clearCache=()=>Li.cache={};SE.exports=Li});var Dp=h((Ire,jE)=>{"use strict";var nB=require("util"),AE=xE(),OE=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),aB=t=>e=>t===!0?Number(e):String(e),Ep=t=>typeof t=="number"||typeof t=="string"&&t!=="",Wo=t=>Number.isInteger(+t),kp=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},oB=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,uB=(t,e,r)=>{if(e>0){let s=t[0]==="-"?"-":"";s&&(t=t.slice(1)),t=s+t.padStart(s?e-1:e,"0")}return r===!1?String(t):t},TE=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},lB=(t,e)=>{t.negatives.sort((a,o)=>a<o?-1:a>o?1:0),t.positives.sort((a,o)=>a<o?-1:a>o?1:0);let r=e.capture?"":"?:",s="",i="",n;return t.positives.length&&(s=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),s&&i?n=`${s}|${i}`:n=s||i,e.wrap?`(${r}${n})`:n},RE=(t,e,r,s)=>{if(r)return AE(t,e,{wrap:!1,...s});let i=String.fromCharCode(t);if(t===e)return i;let n=String.fromCharCode(e);return`[${i}-${n}]`},PE=(t,e,r)=>{if(Array.isArray(t)){let s=r.wrap===!0,i=r.capture?"":"?:";return s?`(${i}${t.join("|")})`:t.join("|")}return AE(t,e,r)},$E=(...t)=>new RangeError("Invalid range arguments: "+nB.inspect(...t)),FE=(t,e,r)=>{if(r.strictRanges===!0)throw $E([t,e]);return[]},cB=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},fB=(t,e,r=1,s={})=>{let i=Number(t),n=Number(e);if(!Number.isInteger(i)||!Number.isInteger(n)){if(s.strictRanges===!0)throw $E([t,e]);return[]}i===0&&(i=0),n===0&&(n=0);let a=i>n,o=String(t),u=String(e),l=String(r);r=Math.max(Math.abs(r),1);let c=kp(o)||kp(u)||kp(l),f=c?Math.max(o.length,u.length,l.length):0,d=c===!1&&oB(t,e,s)===!1,p=s.transform||aB(d);if(s.toRegex&&r===1)return RE(TE(t,f),TE(e,f),!0,s);let m={negatives:[],positives:[]},g=w=>m[w<0?"negatives":"positives"].push(Math.abs(w)),b=[],y=0;for(;a?i>=n:i<=n;)s.toRegex===!0&&r>1?g(i):b.push(uB(p(i,y),f,d)),i=a?i-r:i+r,y++;return s.toRegex===!0?r>1?lB(m,s):PE(b,null,{wrap:!1,...s}):b},dB=(t,e,r=1,s={})=>{if(!Wo(t)&&t.length>1||!Wo(e)&&e.length>1)return FE(t,e,s);let i=s.transform||(d=>String.fromCharCode(d)),n=`${t}`.charCodeAt(0),a=`${e}`.charCodeAt(0),o=n>a,u=Math.min(n,a),l=Math.max(n,a);if(s.toRegex&&r===1)return RE(u,l,!1,s);let c=[],f=0;for(;o?n>=a:n<=a;)c.push(i(n,f)),n=o?n-r:n+r,f++;return s.toRegex===!0?PE(c,null,{wrap:!1,options:s}):c},zl=(t,e,r,s={})=>{if(e==null&&Ep(t))return[t];if(!Ep(t)||!Ep(e))return FE(t,e,s);if(typeof r=="function")return zl(t,e,1,{transform:r});if(OE(r))return zl(t,e,0,r);let i={...s};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Wo(r)?Wo(t)&&Wo(e)?fB(t,e,r,i):dB(t,e,Math.max(Math.abs(r),1),i):r!=null&&!OE(r)?cB(r,i):zl(t,e,1,r)};jE.exports=zl});var NE=h((Mre,ME)=>{"use strict";var hB=Dp(),IE=Gl(),pB=(t,e={})=>{let r=(s,i={})=>{let n=IE.isInvalidBrace(i),a=s.invalid===!0&&e.escapeInvalid===!0,o=n===!0||a===!0,u=e.escapeInvalid===!0?"\\":"",l="";if(s.isOpen===!0||s.isClose===!0)return u+s.value;if(s.type==="open")return o?u+s.value:"(";if(s.type==="close")return o?u+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":o?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let c=IE.reduce(s.nodes),f=hB(...c,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return c.length>1&&f.length>1?`(${f})`:f}if(s.nodes)for(let c of s.nodes)l+=r(c,s);return l};return r(t)};ME.exports=pB});var LE=h((Nre,BE)=>{"use strict";var mB=Dp(),qE=Vl(),Yn=Gl(),Hi=(t="",e="",r=!1)=>{let s=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Yn.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let n of i)s.push(Hi(n,e,r));else for(let n of e)r===!0&&typeof n=="string"&&(n=`{${n}}`),s.push(Array.isArray(n)?Hi(i,n,r):i+n);return Yn.flatten(s)},gB=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,s=(i,n={})=>{i.queue=[];let a=n,o=n.queue;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,o=a.queue;if(i.invalid||i.dollar){o.push(Hi(o.pop(),qE(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){o.push(Hi(o.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=Yn.reduce(i.nodes);if(Yn.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=mB(...f,e);d.length===0&&(d=qE(i,e)),o.push(Hi(o.pop(),d)),i.nodes=[];return}let u=Yn.encloseBrace(i),l=i.queue,c=i;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,l=c.queue;for(let f=0;f<i.nodes.length;f++){let d=i.nodes[f];if(d.type==="comma"&&i.type==="brace"){f===1&&l.push(""),l.push("");continue}if(d.type==="close"){o.push(Hi(o.pop(),l,u));continue}if(d.value&&d.type!=="open"){l.push(Hi(l.pop(),d.value));continue}d.nodes&&s(d,i)}return l};return Yn.flatten(s(t))};BE.exports=gB});var UE=h((qre,HE)=>{"use strict";HE.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 KE=h((Bre,WE)=>{"use strict";var yB=Vl(),{MAX_LENGTH:GE,CHAR_BACKSLASH:Cp,CHAR_BACKTICK:vB,CHAR_COMMA:bB,CHAR_DOT:_B,CHAR_LEFT_PARENTHESES:wB,CHAR_RIGHT_PARENTHESES:EB,CHAR_LEFT_CURLY_BRACE:kB,CHAR_RIGHT_CURLY_BRACE:DB,CHAR_LEFT_SQUARE_BRACKET:VE,CHAR_RIGHT_SQUARE_BRACKET:zE,CHAR_DOUBLE_QUOTE:CB,CHAR_SINGLE_QUOTE:SB,CHAR_NO_BREAK_SPACE:xB,CHAR_ZERO_WIDTH_NOBREAK_SPACE:AB}=UE(),OB=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},s=typeof r.maxLength=="number"?Math.min(GE,r.maxLength):GE;if(t.length>s)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${s})`);let i={type:"root",input:t,nodes:[]},n=[i],a=i,o=i,u=0,l=t.length,c=0,f=0,d,p={},m=()=>t[c++],g=b=>{if(b.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&b.type==="text"){o.value+=b.value;return}return a.nodes.push(b),b.parent=a,b.prev=o,o=b,b};for(g({type:"bos"});c<l;)if(a=n[n.length-1],d=m(),!(d===AB||d===xB)){if(d===Cp){g({type:"text",value:(e.keepEscaping?d:"")+m()});continue}if(d===zE){g({type:"text",value:"\\"+d});continue}if(d===VE){u++;let b=!0,y;for(;c<l&&(y=m());){if(d+=y,y===VE){u++;continue}if(y===Cp){d+=m();continue}if(y===zE&&(u--,u===0))break}g({type:"text",value:d});continue}if(d===wB){a=g({type:"paren",nodes:[]}),n.push(a),g({type:"text",value:d});continue}if(d===EB){if(a.type!=="paren"){g({type:"text",value:d});continue}a=n.pop(),g({type:"text",value:d}),a=n[n.length-1];continue}if(d===CB||d===SB||d===vB){let b=d,y;for(e.keepQuotes!==!0&&(d="");c<l&&(y=m());){if(y===Cp){d+=y+m();continue}if(y===b){e.keepQuotes===!0&&(d+=y);break}d+=y}g({type:"text",value:d});continue}if(d===kB){f++;let b=o.value&&o.value.slice(-1)==="$"||a.dollar===!0;a=g({type:"brace",open:!0,close:!1,dollar:b,depth:f,commas:0,ranges:0,nodes:[]}),n.push(a),g({type:"open",value:d});continue}if(d===DB){if(a.type!=="brace"){g({type:"text",value:d});continue}let b="close";a=n.pop(),a.close=!0,g({type:b,value:d}),f--,a=n[n.length-1];continue}if(d===bB&&f>0){if(a.ranges>0){a.ranges=0;let b=a.nodes.shift();a.nodes=[b,{type:"text",value:yB(a)}]}g({type:"comma",value:d}),a.commas++;continue}if(d===_B&&f>0&&a.commas===0){let b=a.nodes;if(f===0||b.length===0){g({type:"text",value:d});continue}if(o.type==="dot"){if(a.range=[],o.value+=d,o.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,o.type="text";continue}a.ranges++,a.args=[];continue}if(o.type==="range"){b.pop();let y=b[b.length-1];y.value+=o.value+d,o=y,a.ranges--;continue}g({type:"dot",value:d});continue}g({type:"text",value:d})}do if(a=n.pop(),a.type!=="root"){a.nodes.forEach(w=>{w.nodes||(w.type==="open"&&(w.isOpen=!0),w.type==="close"&&(w.isClose=!0),w.nodes||(w.type="text"),w.invalid=!0)});let b=n[n.length-1],y=b.nodes.indexOf(a);b.nodes.splice(y,1,...a.nodes)}while(n.length>0);return g({type:"eos"}),i};WE.exports=OB});var QE=h((Lre,JE)=>{"use strict";var YE=Vl(),TB=NE(),RB=LE(),PB=KE(),ir=(t,e={})=>{let r=[];if(Array.isArray(t))for(let s of t){let i=ir.create(s,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ir.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};ir.parse=(t,e={})=>PB(t,e);ir.stringify=(t,e={})=>YE(typeof t=="string"?ir.parse(t,e):t,e);ir.compile=(t,e={})=>(typeof t=="string"&&(t=ir.parse(t,e)),TB(t,e));ir.expand=(t,e={})=>{typeof t=="string"&&(t=ir.parse(t,e));let r=RB(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};ir.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?ir.compile(t,e):ir.expand(t,e);JE.exports=ir});var XE=h((Hre,$B)=>{$B.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var ek=h((Ure,ZE)=>{ZE.exports=XE()});var rk=h((Gre,tk)=>{"use strict";var FB=require("path"),jB=ek(),IB=new Set(jB);tk.exports=t=>IB.has(FB.extname(t).slice(1).toLowerCase())});var Wl=h(U=>{"use strict";var{sep:MB}=require("path"),{platform:Sp}=process,NB=require("os");U.EV_ALL="all";U.EV_READY="ready";U.EV_ADD="add";U.EV_CHANGE="change";U.EV_ADD_DIR="addDir";U.EV_UNLINK="unlink";U.EV_UNLINK_DIR="unlinkDir";U.EV_RAW="raw";U.EV_ERROR="error";U.STR_DATA="data";U.STR_END="end";U.STR_CLOSE="close";U.FSEVENT_CREATED="created";U.FSEVENT_MODIFIED="modified";U.FSEVENT_DELETED="deleted";U.FSEVENT_MOVED="moved";U.FSEVENT_CLONED="cloned";U.FSEVENT_UNKNOWN="unknown";U.FSEVENT_TYPE_FILE="file";U.FSEVENT_TYPE_DIRECTORY="directory";U.FSEVENT_TYPE_SYMLINK="symlink";U.KEY_LISTENERS="listeners";U.KEY_ERR="errHandlers";U.KEY_RAW="rawEmitters";U.HANDLER_KEYS=[U.KEY_LISTENERS,U.KEY_ERR,U.KEY_RAW];U.DOT_SLASH=`.${MB}`;U.BACK_SLASH_RE=/\\/g;U.DOUBLE_SLASH_RE=/\/\//;U.SLASH_OR_BACK_SLASH_RE=/[/\\]/;U.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;U.REPLACER_RE=/^\.[/\\]/;U.SLASH="/";U.SLASH_SLASH="//";U.BRACE_START="{";U.BANG="!";U.ONE_DOT=".";U.TWO_DOTS="..";U.STAR="*";U.GLOBSTAR="**";U.ROOT_GLOBSTAR="/**/*";U.SLASH_GLOBSTAR="/**";U.DIR_SUFFIX="Dir";U.ANYMATCH_OPTS={dot:!0};U.STRING_TYPE="string";U.FUNCTION_TYPE="function";U.EMPTY_STR="";U.EMPTY_FN=()=>{};U.IDENTITY_FN=t=>t;U.isWindows=Sp==="win32";U.isMacos=Sp==="darwin";U.isLinux=Sp==="linux";U.isIBMi=NB.type()==="OS400"});var lk=h((zre,uk)=>{"use strict";var ys=require("fs"),ft=require("path"),{promisify:Ko}=require("util"),qB=rk(),{isWindows:BB,isLinux:LB,EMPTY_FN:HB,EMPTY_STR:UB,KEY_LISTENERS:Jn,KEY_ERR:xp,KEY_RAW:Yo,HANDLER_KEYS:GB,EV_CHANGE:Kl,EV_ADD:Yl,EV_ADD_DIR:VB,EV_ERROR:sk,STR_DATA:zB,STR_END:WB,BRACE_START:KB,STAR:YB}=Wl(),JB="watch",QB=Ko(ys.open),ik=Ko(ys.stat),XB=Ko(ys.lstat),ZB=Ko(ys.close),Ap=Ko(ys.realpath),eL={lstat:XB,stat:ik},Op=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},Jo=(t,e,r)=>{let s=t[e];s instanceof Set||(t[e]=s=new Set([s])),s.add(r)},tL=t=>e=>{let r=t[e];r instanceof Set?r.clear():delete t[e]},Qo=(t,e,r)=>{let s=t[e];s instanceof Set?s.delete(r):s===r&&delete t[e]},nk=t=>t instanceof Set?t.size===0:!t,Jl=new Map;function ak(t,e,r,s,i){let n=(a,o)=>{r(t),i(a,o,{watchedPath:t}),o&&t!==o&&Ql(ft.resolve(t,o),Jn,ft.join(t,o))};try{return ys.watch(t,e,n)}catch(a){s(a)}}var Ql=(t,e,r,s,i)=>{let n=Jl.get(t);!n||Op(n[e],a=>{a(r,s,i)})},rL=(t,e,r,s)=>{let{listener:i,errHandler:n,rawEmitter:a}=s,o=Jl.get(e),u;if(!r.persistent)return u=ak(t,r,i,n,a),u.close.bind(u);if(o)Jo(o,Jn,i),Jo(o,xp,n),Jo(o,Yo,a);else{if(u=ak(t,r,Ql.bind(null,e,Jn),n,Ql.bind(null,e,Yo)),!u)return;u.on(sk,async l=>{let c=Ql.bind(null,e,xp);if(o.watcherUnusable=!0,BB&&l.code==="EPERM")try{let f=await QB(t,"r");await ZB(f),c(l)}catch{}else c(l)}),o={listeners:i,errHandlers:n,rawEmitters:a,watcher:u},Jl.set(e,o)}return()=>{Qo(o,Jn,i),Qo(o,xp,n),Qo(o,Yo,a),nk(o.listeners)&&(o.watcher.close(),Jl.delete(e),GB.forEach(tL(o)),o.watcher=void 0,Object.freeze(o))}},Tp=new Map,sL=(t,e,r,s)=>{let{listener:i,rawEmitter:n}=s,a=Tp.get(e),o=new Set,u=new Set,l=a&&a.options;return l&&(l.persistent<r.persistent||l.interval>r.interval)&&(o=a.listeners,u=a.rawEmitters,ys.unwatchFile(e),a=void 0),a?(Jo(a,Jn,i),Jo(a,Yo,n)):(a={listeners:i,rawEmitters:n,options:r,watcher:ys.watchFile(e,r,(c,f)=>{Op(a.rawEmitters,p=>{p(Kl,e,{curr:c,prev:f})});let d=c.mtimeMs;(c.size!==f.size||d>f.mtimeMs||d===0)&&Op(a.listeners,p=>p(t,c))})},Tp.set(e,a)),()=>{Qo(a,Jn,i),Qo(a,Yo,n),nk(a.listeners)&&(Tp.delete(e),ys.unwatchFile(e),a.options=a.watcher=void 0,Object.freeze(a))}},ok=class{constructor(e){this.fsw=e,this._boundHandleError=r=>e._handleError(r)}_watchWithNodeFs(e,r){let s=this.fsw.options,i=ft.dirname(e),n=ft.basename(e);this.fsw._getWatchedDir(i).add(n);let o=ft.resolve(e),u={persistent:s.persistent};r||(r=HB);let l;return s.usePolling?(u.interval=s.enableBinaryInterval&&qB(n)?s.binaryInterval:s.interval,l=sL(e,o,u,{listener:r,rawEmitter:this.fsw._emitRaw})):l=rL(e,o,u,{listener:r,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(e,r,s){if(this.fsw.closed)return;let i=ft.dirname(e),n=ft.basename(e),a=this.fsw._getWatchedDir(i),o=r;if(a.has(n))return;let u=async(c,f)=>{if(!!this.fsw._throttle(JB,e,5)){if(!f||f.mtimeMs===0)try{let d=await ik(e);if(this.fsw.closed)return;let p=d.atimeMs,m=d.mtimeMs;(!p||p<=m||m!==o.mtimeMs)&&this.fsw._emit(Kl,e,d),LB&&o.ino!==d.ino?(this.fsw._closeFile(c),o=d,this.fsw._addPathCloser(c,this._watchWithNodeFs(e,u))):o=d}catch{this.fsw._remove(i,n)}else if(a.has(n)){let d=f.atimeMs,p=f.mtimeMs;(!d||d<=p||p!==o.mtimeMs)&&this.fsw._emit(Kl,e,f),o=f}}},l=this._watchWithNodeFs(e,u);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(Yl,e,0))return;this.fsw._emit(Yl,e,r)}return l}async _handleSymlink(e,r,s,i){if(this.fsw.closed)return;let n=e.fullPath,a=this.fsw._getWatchedDir(r);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let o=await Ap(s);return this.fsw.closed?void 0:(a.has(i)?this.fsw._symlinkPaths.get(n)!==o&&(this.fsw._symlinkPaths.set(n,o),this.fsw._emit(Kl,s,e.stats)):(a.add(i),this.fsw._symlinkPaths.set(n,o),this.fsw._emit(Yl,s,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(n))return!0;this.fsw._symlinkPaths.set(n,!0)}_handleRead(e,r,s,i,n,a,o){if(e=ft.join(e,UB),!s.hasGlob&&(o=this.fsw._throttle("readdir",e,1e3),!o))return;let u=this.fsw._getWatchedDir(s.path),l=new Set,c=this.fsw._readdirp(e,{fileFilter:f=>s.filterPath(f),directoryFilter:f=>s.filterDir(f),depth:0}).on(zB,async f=>{if(this.fsw.closed){c=void 0;return}let d=f.path,p=ft.join(e,d);if(l.add(d),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,p,d))){if(this.fsw.closed){c=void 0;return}(d===i||!i&&!u.has(d))&&(this.fsw._incrReadyCount(),p=ft.join(n,ft.relative(n,p)),this._addToNodeFs(p,r,s,a+1))}}).on(sk,this._boundHandleError);return new Promise(f=>c.once(WB,()=>{if(this.fsw.closed){c=void 0;return}let d=o?o.clear():!1;f(),u.getChildren().filter(p=>p!==e&&!l.has(p)&&(!s.hasGlob||s.filterPath({fullPath:ft.resolve(e,p)}))).forEach(p=>{this.fsw._remove(e,p)}),c=void 0,d&&this._handleRead(e,!1,s,i,n,a,o)}))}async _handleDir(e,r,s,i,n,a,o){let u=this.fsw._getWatchedDir(ft.dirname(e)),l=u.has(ft.basename(e));!(s&&this.fsw.options.ignoreInitial)&&!n&&!l&&(!a.hasGlob||a.globFilter(e))&&this.fsw._emit(VB,e,r),u.add(ft.basename(e)),this.fsw._getWatchedDir(e);let c,f,d=this.fsw.options.depth;if((d==null||i<=d)&&!this.fsw._symlinkPaths.has(o)){if(!n&&(await this._handleRead(e,s,a,n,e,i,c),this.fsw.closed))return;f=this._watchWithNodeFs(e,(p,m)=>{m&&m.mtimeMs===0||this._handleRead(p,!1,a,n,e,i,c)})}return f}async _addToNodeFs(e,r,s,i,n){let a=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return a(),!1;let o=this.fsw._getWatchHelpers(e,i);!o.hasGlob&&s&&(o.hasGlob=s.hasGlob,o.globFilter=s.globFilter,o.filterPath=u=>s.filterPath(u),o.filterDir=u=>s.filterDir(u));try{let u=await eL[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,u))return a(),!1;let l=this.fsw.options.followSymlinks&&!e.includes(YB)&&!e.includes(KB),c;if(u.isDirectory()){let f=ft.resolve(e),d=l?await Ap(e):e;if(this.fsw.closed||(c=await this._handleDir(o.watchPath,u,r,i,n,o,d),this.fsw.closed))return;f!==d&&d!==void 0&&this.fsw._symlinkPaths.set(f,d)}else if(u.isSymbolicLink()){let f=l?await Ap(e):e;if(this.fsw.closed)return;let d=ft.dirname(o.watchPath);if(this.fsw._getWatchedDir(d).add(o.watchPath),this.fsw._emit(Yl,o.watchPath,u),c=await this._handleDir(d,u,r,i,e,o,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(ft.resolve(e),f)}else c=this._handleFile(o.watchPath,u,r);return a(),this.fsw._addPathCloser(e,c),!1}catch(u){if(this.fsw._handleError(u))return a(),e}}};uk.exports=ok});var yk=h((Wre,Mp)=>{"use strict";var Rp=require("fs"),dt=require("path"),{promisify:Pp}=require("util"),Qn;try{Qn=require("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(Qn){let t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){let e=Number.parseInt(t[1],10),r=Number.parseInt(t[2],10);e===8&&r<16&&(Qn=void 0)}}var{EV_ADD:$p,EV_CHANGE:iL,EV_ADD_DIR:ck,EV_UNLINK:Xl,EV_ERROR:nL,STR_DATA:aL,STR_END:oL,FSEVENT_CREATED:uL,FSEVENT_MODIFIED:lL,FSEVENT_DELETED:cL,FSEVENT_MOVED:fL,FSEVENT_UNKNOWN:dL,FSEVENT_TYPE_FILE:hL,FSEVENT_TYPE_DIRECTORY:Xo,FSEVENT_TYPE_SYMLINK:fk,ROOT_GLOBSTAR:dk,DIR_SUFFIX:pL,DOT_SLASH:hk,FUNCTION_TYPE:Fp,EMPTY_FN:mL,IDENTITY_FN:gL}=Wl(),yL=t=>isNaN(t)?{}:{depth:t},jp=Pp(Rp.stat),vL=Pp(Rp.lstat),pk=Pp(Rp.realpath),bL={stat:jp,lstat:vL},Ui=new Map,_L=10,wL=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),EL=(t,e)=>({stop:Qn.watch(t,e)});function kL(t,e,r,s){let i=dt.extname(e)?dt.dirname(e):e,n=dt.dirname(i),a=Ui.get(i);DL(n)&&(i=n);let o=dt.resolve(t),u=o!==e,l=(f,d,p)=>{u&&(f=f.replace(e,o)),(f===o||!f.indexOf(o+dt.sep))&&r(f,d,p)},c=!1;for(let f of Ui.keys())if(e.indexOf(dt.resolve(f)+dt.sep)===0){i=f,a=Ui.get(i),c=!0;break}return a||c?a.listeners.add(l):(a={listeners:new Set([l]),rawEmitter:s,watcher:EL(i,(f,d)=>{if(!a.listeners.size)return;let p=Qn.getInfo(f,d);a.listeners.forEach(m=>{m(f,d,p)}),a.rawEmitter(p.event,f,p)})},Ui.set(i,a)),()=>{let f=a.listeners;if(f.delete(l),!f.size&&(Ui.delete(i),a.watcher))return a.watcher.stop().then(()=>{a.rawEmitter=a.watcher=void 0,Object.freeze(a)})}}var DL=t=>{let e=0;for(let r of Ui.keys())if(r.indexOf(t)===0&&(e++,e>=_L))return!0;return!1},CL=()=>Qn&&Ui.size<128,Ip=(t,e)=>{let r=0;for(;!t.indexOf(e)&&(t=dt.dirname(t))!==e;)r++;return r},mk=(t,e)=>t.type===Xo&&e.isDirectory()||t.type===fk&&e.isSymbolicLink()||t.type===hL&&e.isFile(),gk=class{constructor(e){this.fsw=e}checkIgnored(e,r){let s=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,r))return s.add(e),r&&r.isDirectory()&&s.add(e+dk),!0;s.delete(e),s.delete(e+dk)}addOrChange(e,r,s,i,n,a,o,u){let l=n.has(a)?iL:$p;this.handleEvent(l,e,r,s,i,n,a,o,u)}async checkExists(e,r,s,i,n,a,o,u){try{let l=await jp(e);if(this.fsw.closed)return;mk(o,l)?this.addOrChange(e,r,s,i,n,a,o,u):this.handleEvent(Xl,e,r,s,i,n,a,o,u)}catch(l){l.code==="EACCES"?this.addOrChange(e,r,s,i,n,a,o,u):this.handleEvent(Xl,e,r,s,i,n,a,o,u)}}handleEvent(e,r,s,i,n,a,o,u,l){if(!(this.fsw.closed||this.checkIgnored(r)))if(e===Xl){let c=u.type===Xo;(c||a.has(o))&&this.fsw._remove(n,o,c)}else{if(e===$p){if(u.type===Xo&&this.fsw._getWatchedDir(r),u.type===fk&&l.followSymlinks){let f=l.depth===void 0?void 0:Ip(s,i)+1;return this._addToFsEvents(r,!1,!0,f)}this.fsw._getWatchedDir(n).add(o)}let c=u.type===Xo?e+pL:e;this.fsw._emit(c,r),c===ck&&this._addToFsEvents(r,!1,!0)}}_watchWithFsEvents(e,r,s,i){if(this.fsw.closed||this.fsw._isIgnored(e))return;let n=this.fsw.options,o=kL(e,r,async(u,l,c)=>{if(this.fsw.closed||n.depth!==void 0&&Ip(u,r)>n.depth)return;let f=s(dt.join(e,dt.relative(e,u)));if(i&&!i(f))return;let d=dt.dirname(f),p=dt.basename(f),m=this.fsw._getWatchedDir(c.type===Xo?f:d);if(wL.has(l)||c.event===dL)if(typeof n.ignored===Fp){let g;try{g=await jp(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,g))return;mk(c,g)?this.addOrChange(f,u,r,d,m,p,c,n):this.handleEvent(Xl,f,u,r,d,m,p,c,n)}else this.checkExists(f,u,r,d,m,p,c,n);else switch(c.event){case uL:case lL:return this.addOrChange(f,u,r,d,m,p,c,n);case cL:case fL:return this.checkExists(f,u,r,d,m,p,c,n)}},this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(e,r,s,i){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(r))){this.fsw._symlinkPaths.set(r,!0),this.fsw._incrReadyCount();try{let n=await pk(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(n))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(n||e,a=>{let o=e;return n&&n!==hk?o=a.replace(n,e):a!==hk&&(o=dt.join(e,a)),s(o)},!1,i)}catch(n){if(this.fsw._handleError(n))return this.fsw._emitReady()}}}emitAdd(e,r,s,i,n){let a=s(e),o=r.isDirectory(),u=this.fsw._getWatchedDir(dt.dirname(a)),l=dt.basename(a);o&&this.fsw._getWatchedDir(a),!u.has(l)&&(u.add(l),(!i.ignoreInitial||n===!0)&&this.fsw._emit(o?ck:$p,a,r))}initWatch(e,r,s,i){if(this.fsw.closed)return;let n=this._watchWithFsEvents(s.watchPath,dt.resolve(e||s.watchPath),i,s.globFilter);this.fsw._addPathCloser(r,n)}async _addToFsEvents(e,r,s,i){if(this.fsw.closed)return;let n=this.fsw.options,a=typeof r===Fp?r:gL,o=this.fsw._getWatchHelpers(e);try{let u=await bL[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,u))throw null;if(u.isDirectory()){if(o.globFilter||this.emitAdd(a(e),u,a,n,s),i&&i>n.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:l=>o.filterPath(l),directoryFilter:l=>o.filterDir(l),...yL(n.depth-(i||0))}).on(aL,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!o.filterPath(l))return;let c=dt.join(o.watchPath,l.path),{fullPath:f}=l;if(o.followSymlinks&&l.stats.isSymbolicLink()){let d=n.depth===void 0?void 0:Ip(c,dt.resolve(o.watchPath))+1;this._handleFsEventsSymlink(c,f,a,d)}else this.emitAdd(c,l.stats,a,n,s)}).on(nL,mL).on(oL,()=>{this.fsw._emitReady()})}else this.emitAdd(o.watchPath,u,a,n,s),this.fsw._emitReady()}catch(u){(!u||this.fsw._handleError(u))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(n.persistent&&s!==!0)if(typeof r===Fp)this.initWatch(void 0,e,o,a);else{let u;try{u=await pk(o.watchPath)}catch{}this.initWatch(u,e,o,a)}}};Mp.exports=gk;Mp.exports.canUse=CL});var Tk=h(Qp=>{"use strict";var{EventEmitter:SL}=require("events"),Np=require("fs"),xe=require("path"),{promisify:vk}=require("util"),xL=tE(),qp=uE().default,AL=pE(),Bp=bp(),OL=QE(),TL=yp(),RL=lk(),bk=yk(),{EV_ALL:Lp,EV_READY:PL,EV_ADD:Zl,EV_CHANGE:Zo,EV_UNLINK:_k,EV_ADD_DIR:$L,EV_UNLINK_DIR:FL,EV_RAW:jL,EV_ERROR:Hp,STR_CLOSE:IL,STR_END:ML,BACK_SLASH_RE:NL,DOUBLE_SLASH_RE:wk,SLASH_OR_BACK_SLASH_RE:qL,DOT_RE:BL,REPLACER_RE:LL,SLASH:Up,SLASH_SLASH:HL,BRACE_START:UL,BANG:Gp,ONE_DOT:Ek,TWO_DOTS:GL,GLOBSTAR:VL,SLASH_GLOBSTAR:Vp,ANYMATCH_OPTS:zp,STRING_TYPE:Wp,FUNCTION_TYPE:zL,EMPTY_STR:Kp,EMPTY_FN:WL,isWindows:KL,isMacos:YL,isIBMi:JL}=Wl(),QL=vk(Np.stat),XL=vk(Np.readdir),Yp=(t=[])=>Array.isArray(t)?t:[t],kk=(t,e=[])=>(t.forEach(r=>{Array.isArray(r)?kk(r,e):e.push(r)}),e),Dk=t=>{let e=kk(Yp(t));if(!e.every(r=>typeof r===Wp))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(Sk)},Ck=t=>{let e=t.replace(NL,Up),r=!1;for(e.startsWith(HL)&&(r=!0);e.match(wk);)e=e.replace(wk,Up);return r&&(e=Up+e),e},Sk=t=>Ck(xe.normalize(Ck(t))),xk=(t=Kp)=>e=>typeof e!==Wp?e:Sk(xe.isAbsolute(e)?e:xe.join(t,e)),ZL=(t,e)=>xe.isAbsolute(t)?t:t.startsWith(Gp)?Gp+xe.join(e,t.slice(1)):xe.join(e,t),$r=(t,e)=>t[e]===void 0,Ak=class{constructor(e,r){this.path=e,this._removeWatcher=r,this.items=new Set}add(e){let{items:r}=this;!r||e!==Ek&&e!==GL&&r.add(e)}async remove(e){let{items:r}=this;if(!r||(r.delete(e),r.size>0))return;let s=this.path;try{await XL(s)}catch{this._removeWatcher&&this._removeWatcher(xe.dirname(s),xe.basename(s))}}has(e){let{items:r}=this;if(!!r)return r.has(e)}getChildren(){let{items:e}=this;if(!!e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},e3="stat",t3="lstat",Ok=class{constructor(e,r,s,i){this.fsw=i,this.path=e=e.replace(LL,Kp),this.watchPath=r,this.fullWatchPath=xe.resolve(r),this.hasGlob=r!==e,e===Kp&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?qp(e,void 0,zp):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(n=>{n.length>1&&n.pop()}),this.followSymlinks=s,this.statMethod=s?e3:t3}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return xe.join(this.watchPath,xe.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){let{stats:r}=e;if(r&&r.isSymbolicLink())return this.filterDir(e);let s=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===zL?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,r)&&this.fsw._hasReadPermissions(r)}getDirParts(e){if(!this.hasGlob)return[];let r=[];return(e.includes(UL)?OL.expand(e):[e]).forEach(i=>{r.push(xe.relative(this.watchPath,i).split(qL))}),r}filterDir(e){if(this.hasGlob){let r=this.getDirParts(this.checkGlobSymlink(e)),s=!1;this.unmatchedGlob=!this.dirParts.some(i=>i.every((n,a)=>(n===VL&&(s=!0),s||!r[0][a]||qp(n,r[0][a],zp))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}},Jp=class extends SL{constructor(e){super();let r={};e&&Object.assign(r,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,$r(r,"persistent")&&(r.persistent=!0),$r(r,"ignoreInitial")&&(r.ignoreInitial=!1),$r(r,"ignorePermissionErrors")&&(r.ignorePermissionErrors=!1),$r(r,"interval")&&(r.interval=100),$r(r,"binaryInterval")&&(r.binaryInterval=300),$r(r,"disableGlobbing")&&(r.disableGlobbing=!1),r.enableBinaryInterval=r.binaryInterval!==r.interval,$r(r,"useFsEvents")&&(r.useFsEvents=!r.usePolling),bk.canUse()||(r.useFsEvents=!1),$r(r,"usePolling")&&!r.useFsEvents&&(r.usePolling=YL),JL&&(r.usePolling=!0);let i=process.env.CHOKIDAR_USEPOLLING;if(i!==void 0){let u=i.toLowerCase();u==="false"||u==="0"?r.usePolling=!1:u==="true"||u==="1"?r.usePolling=!0:r.usePolling=!!u}let n=process.env.CHOKIDAR_INTERVAL;n&&(r.interval=Number.parseInt(n,10)),$r(r,"atomic")&&(r.atomic=!r.usePolling&&!r.useFsEvents),r.atomic&&(this._pendingUnlinks=new Map),$r(r,"followSymlinks")&&(r.followSymlinks=!0),$r(r,"awaitWriteFinish")&&(r.awaitWriteFinish=!1),r.awaitWriteFinish===!0&&(r.awaitWriteFinish={});let a=r.awaitWriteFinish;a&&(a.stabilityThreshold||(a.stabilityThreshold=2e3),a.pollInterval||(a.pollInterval=100),this._pendingWrites=new Map),r.ignored&&(r.ignored=Yp(r.ignored));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=WL,this._readyEmitted=!0,process.nextTick(()=>this.emit(PL)))},this._emitRaw=(...u)=>this.emit(jL,...u),this._readyEmitted=!1,this.options=r,r.useFsEvents?this._fsEventsHandler=new bk(this):this._nodeFsHandler=new RL(this),Object.freeze(r)}add(e,r,s){let{cwd:i,disableGlobbing:n}=this.options;this.closed=!1;let a=Dk(e);return i&&(a=a.map(o=>{let u=ZL(o,i);return n||!Bp(o)?u:TL(u)})),a=a.filter(o=>o.startsWith(Gp)?(this._ignoredPaths.add(o.slice(1)),!1):(this._ignoredPaths.delete(o),this._ignoredPaths.delete(o+Vp),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=a.length),this.options.persistent&&(this._readyCount*=2),a.forEach(o=>this._fsEventsHandler._addToFsEvents(o))):(this._readyCount||(this._readyCount=0),this._readyCount+=a.length,Promise.all(a.map(async o=>{let u=await this._nodeFsHandler._addToNodeFs(o,!s,0,0,r);return u&&this._emitReady(),u})).then(o=>{this.closed||o.filter(u=>u).forEach(u=>{this.add(xe.dirname(u),xe.basename(r||u))})})),this}unwatch(e){if(this.closed)return this;let r=Dk(e),{cwd:s}=this.options;return r.forEach(i=>{!xe.isAbsolute(i)&&!this._closers.has(i)&&(s&&(i=xe.join(s,i)),i=xe.resolve(i)),this._closePath(i),this._ignoredPaths.add(i),this._watched.has(i)&&this._ignoredPaths.add(i+Vp),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(r=>r.forEach(s=>{let i=s();i instanceof Promise&&e.push(i)})),this._streams.forEach(r=>r.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(r=>r.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(r=>{this[`_${r}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let e={};return this._watched.forEach((r,s)=>{let i=this.options.cwd?xe.relative(this.options.cwd,s):s;e[i||Ek]=r.getChildren().sort()}),e}emitWithAll(e,r){this.emit(...r),e!==Hp&&this.emit(Lp,...r)}async _emit(e,r,s,i,n){if(this.closed)return;let a=this.options;KL&&(r=xe.normalize(r)),a.cwd&&(r=xe.relative(a.cwd,r));let o=[e,r];n!==void 0?o.push(s,i,n):i!==void 0?o.push(s,i):s!==void 0&&o.push(s);let u=a.awaitWriteFinish,l;if(u&&(l=this._pendingWrites.get(r)))return l.lastChange=new Date,this;if(a.atomic){if(e===_k)return this._pendingUnlinks.set(r,o),setTimeout(()=>{this._pendingUnlinks.forEach((c,f)=>{this.emit(...c),this.emit(Lp,...c),this._pendingUnlinks.delete(f)})},typeof a.atomic=="number"?a.atomic:100),this;e===Zl&&this._pendingUnlinks.has(r)&&(e=o[0]=Zo,this._pendingUnlinks.delete(r))}if(u&&(e===Zl||e===Zo)&&this._readyEmitted){let c=(f,d)=>{f?(e=o[0]=Hp,o[1]=f,this.emitWithAll(e,o)):d&&(o.length>2?o[2]=d:o.push(d),this.emitWithAll(e,o))};return this._awaitWriteFinish(r,u.stabilityThreshold,e,c),this}if(e===Zo&&!this._throttle(Zo,r,50))return this;if(a.alwaysStat&&s===void 0&&(e===Zl||e===$L||e===Zo)){let c=a.cwd?xe.join(a.cwd,r):r,f;try{f=await QL(c)}catch{}if(!f||this.closed)return;o.push(f)}return this.emitWithAll(e,o),this}_handleError(e){let r=e&&e.code;return e&&r!=="ENOENT"&&r!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||r!=="EPERM"&&r!=="EACCES")&&this.emit(Hp,e),e||this.closed}_throttle(e,r,s){this._throttled.has(e)||this._throttled.set(e,new Map);let i=this._throttled.get(e),n=i.get(r);if(n)return n.count++,!1;let a,o=()=>{let l=i.get(r),c=l?l.count:0;return i.delete(r),clearTimeout(a),l&&clearTimeout(l.timeoutObject),c};a=setTimeout(o,s);let u={timeoutObject:a,clear:o,count:0};return i.set(r,u),u}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,r,s,i){let n,a=e;this.options.cwd&&!xe.isAbsolute(e)&&(a=xe.join(this.options.cwd,e));let o=new Date,u=l=>{Np.stat(a,(c,f)=>{if(c||!this._pendingWrites.has(e)){c&&c.code!=="ENOENT"&&i(c);return}let d=Number(new Date);l&&f.size!==l.size&&(this._pendingWrites.get(e).lastChange=d);let p=this._pendingWrites.get(e);d-p.lastChange>=r?(this._pendingWrites.delete(e),i(void 0,f)):n=setTimeout(u,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:o,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(n),s)}),n=setTimeout(u,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,r){if(this.options.atomic&&BL.test(e))return!0;if(!this._userIgnored){let{cwd:s}=this.options,i=this.options.ignored,n=i&&i.map(xk(s)),a=Yp(n).filter(u=>typeof u===Wp&&!Bp(u)).map(u=>u+Vp),o=this._getGlobIgnored().map(xk(s)).concat(n,a);this._userIgnored=qp(o,void 0,zp)}return this._userIgnored([e,r])}_isntIgnored(e,r){return!this._isIgnored(e,r)}_getWatchHelpers(e,r){let s=r||this.options.disableGlobbing||!Bp(e)?e:AL(e),i=this.options.followSymlinks;return new Ok(e,s,i,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));let r=xe.resolve(e);return this._watched.has(r)||this._watched.set(r,new Ak(r,this._boundRemove)),this._watched.get(r)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;let s=(e&&Number.parseInt(e.mode,10))&511,i=Number.parseInt(s.toString(8)[0],10);return Boolean(4&i)}_remove(e,r,s){let i=xe.join(e,r),n=xe.resolve(i);if(s=s??(this._watched.has(i)||this._watched.has(n)),!this._throttle("remove",i,100))return;!s&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,r,!0),this._getWatchedDir(i).getChildren().forEach(d=>this._remove(i,d));let u=this._getWatchedDir(e),l=u.has(r);u.remove(r),this._symlinkPaths.has(n)&&this._symlinkPaths.delete(n);let c=i;if(this.options.cwd&&(c=xe.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===Zl)return;this._watched.delete(i),this._watched.delete(n);let f=s?FL:_k;l&&!this._isIgnored(i)&&this._emit(f,i),this.options.useFsEvents||this._closePath(i)}_closePath(e){this._closeFile(e);let r=xe.dirname(e);this._getWatchedDir(r).remove(xe.basename(e))}_closeFile(e){let r=this._closers.get(e);!r||(r.forEach(s=>s()),this._closers.delete(e))}_addPathCloser(e,r){if(!r)return;let s=this._closers.get(e);s||(s=[],this._closers.set(e,s)),s.push(r)}_readdirp(e,r){if(this.closed)return;let s={type:Lp,alwaysStat:!0,lstat:!0,...r},i=xL(e,s);return this._streams.add(i),i.once(IL,()=>{i=void 0}),i.once(ML,()=>{i&&(this._streams.delete(i),i=void 0)}),i}};Qp.FSWatcher=Jp;var r3=(t,e)=>{let r=new Jp(e);return r.add(t),r};Qp.watch=r3});var Pk=h((Yre,Rk)=>{"use strict";var s3=/[|\\{}()[\]^$+*?.]/g;Rk.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(s3,"\\$&")}});var Fk=h((Jre,$k)=>{"use strict";$k.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 Xp=h((Qre,Nk)=>{var Gi=Fk(),jk={};for(ec in Gi)Gi.hasOwnProperty(ec)&&(jk[Gi[ec]]=ec);var ec,q=Nk.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(Mt in q)if(q.hasOwnProperty(Mt)){if(!("channels"in q[Mt]))throw new Error("missing channels property: "+Mt);if(!("labels"in q[Mt]))throw new Error("missing channel labels property: "+Mt);if(q[Mt].labels.length!==q[Mt].channels)throw new Error("channel and label counts mismatch: "+Mt);Ik=q[Mt].channels,Mk=q[Mt].labels,delete q[Mt].channels,delete q[Mt].labels,Object.defineProperty(q[Mt],"channels",{value:Ik}),Object.defineProperty(q[Mt],"labels",{value:Mk})}var Ik,Mk,Mt;q.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,s=t[2]/255,i=Math.min(e,r,s),n=Math.max(e,r,s),a=n-i,o,u,l;return n===i?o=0:e===n?o=(r-s)/a:r===n?o=2+(s-e)/a:s===n&&(o=4+(e-r)/a),o=Math.min(o*60,360),o<0&&(o+=360),l=(i+n)/2,n===i?u=0:l<=.5?u=a/(n+i):u=a/(2-n-i),[o,u*100,l*100]};q.rgb.hsv=function(t){var e,r,s,i,n,a=t[0]/255,o=t[1]/255,u=t[2]/255,l=Math.max(a,o,u),c=l-Math.min(a,o,u),f=function(d){return(l-d)/6/c+1/2};return c===0?i=n=0:(n=c/l,e=f(a),r=f(o),s=f(u),a===l?i=s-r:o===l?i=1/3+e-s:u===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,n*100,l*100]};q.rgb.hwb=function(t){var e=t[0],r=t[1],s=t[2],i=q.rgb.hsl(t)[0],n=1/255*Math.min(e,Math.min(r,s));return s=1-1/255*Math.max(e,Math.max(r,s)),[i,n*100,s*100]};q.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,s=t[2]/255,i,n,a,o;return o=Math.min(1-e,1-r,1-s),i=(1-e-o)/(1-o)||0,n=(1-r-o)/(1-o)||0,a=(1-s-o)/(1-o)||0,[i*100,n*100,a*100,o*100]};function i3(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}q.rgb.keyword=function(t){var e=jk[t];if(e)return e;var r=1/0,s;for(var i in Gi)if(Gi.hasOwnProperty(i)){var n=Gi[i],a=i3(t,n);a<r&&(r=a,s=i)}return s};q.keyword.rgb=function(t){return Gi[t]};q.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,s=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,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;var i=e*.4124+r*.3576+s*.1805,n=e*.2126+r*.7152+s*.0722,a=e*.0193+r*.1192+s*.9505;return[i*100,n*100,a*100]};q.rgb.lab=function(t){var e=q.rgb.xyz(t),r=e[0],s=e[1],i=e[2],n,a,o;return r/=95.047,s/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,n=116*s-16,a=500*(r-s),o=200*(s-i),[n,a,o]};q.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,s=t[2]/100,i,n,a,o,u;if(r===0)return u=s*255,[u,u,u];s<.5?n=s*(1+r):n=s+r-s*r,i=2*s-n,o=[0,0,0];for(var l=0;l<3;l++)a=e+1/3*-(l-1),a<0&&a++,a>1&&a--,6*a<1?u=i+(n-i)*6*a:2*a<1?u=n:3*a<2?u=i+(n-i)*(2/3-a)*6:u=i,o[l]=u*255;return o};q.hsl.hsv=function(t){var e=t[0],r=t[1]/100,s=t[2]/100,i=r,n=Math.max(s,.01),a,o;return s*=2,r*=s<=1?s:2-s,i*=n<=1?n:2-n,o=(s+r)/2,a=s===0?2*i/(n+i):2*r/(s+r),[e,a*100,o*100]};q.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,s=t[2]/100,i=Math.floor(e)%6,n=e-Math.floor(e),a=255*s*(1-r),o=255*s*(1-r*n),u=255*s*(1-r*(1-n));switch(s*=255,i){case 0:return[s,u,a];case 1:return[o,s,a];case 2:return[a,s,u];case 3:return[a,o,s];case 4:return[u,a,s];case 5:return[s,a,o]}};q.hsv.hsl=function(t){var e=t[0],r=t[1]/100,s=t[2]/100,i=Math.max(s,.01),n,a,o;return o=(2-r)*s,n=(2-r)*i,a=r*i,a/=n<=1?n:2-n,a=a||0,o/=2,[e,a*100,o*100]};q.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,s=t[2]/100,i=r+s,n,a,o,u;i>1&&(r/=i,s/=i),n=Math.floor(6*e),a=1-s,o=6*e-n,(n&1)!=0&&(o=1-o),u=r+o*(a-r);var l,c,f;switch(n){default:case 6:case 0:l=a,c=u,f=r;break;case 1:l=u,c=a,f=r;break;case 2:l=r,c=a,f=u;break;case 3:l=r,c=u,f=a;break;case 4:l=u,c=r,f=a;break;case 5:l=a,c=r,f=u;break}return[l*255,c*255,f*255]};q.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,s=t[2]/100,i=t[3]/100,n,a,o;return n=1-Math.min(1,e*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),o=1-Math.min(1,s*(1-i)+i),[n*255,a*255,o*255]};q.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,s=t[2]/100,i,n,a;return i=e*3.2406+r*-1.5372+s*-.4986,n=e*-.9689+r*1.8758+s*.0415,a=e*.0557+r*-.204+s*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),n=Math.min(Math.max(0,n),1),a=Math.min(Math.max(0,a),1),[i*255,n*255,a*255]};q.xyz.lab=function(t){var e=t[0],r=t[1],s=t[2],i,n,a;return e/=95.047,r/=100,s/=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,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,i=116*r-16,n=500*(e-r),a=200*(r-s),[i,n,a]};q.lab.xyz=function(t){var e=t[0],r=t[1],s=t[2],i,n,a;n=(e+16)/116,i=r/500+n,a=n-s/200;var o=Math.pow(n,3),u=Math.pow(i,3),l=Math.pow(a,3);return n=o>.008856?o:(n-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,n*=100,a*=108.883,[i,n,a]};q.lab.lch=function(t){var e=t[0],r=t[1],s=t[2],i,n,a;return i=Math.atan2(s,r),n=i*360/2/Math.PI,n<0&&(n+=360),a=Math.sqrt(r*r+s*s),[e,a,n]};q.lch.lab=function(t){var e=t[0],r=t[1],s=t[2],i,n,a;return a=s/360*2*Math.PI,i=r*Math.cos(a),n=r*Math.sin(a),[e,i,n]};q.rgb.ansi16=function(t){var e=t[0],r=t[1],s=t[2],i=1 in arguments?arguments[1]:q.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var n=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(n+=60),n};q.hsv.ansi16=function(t){return q.rgb.ansi16(q.hsv.rgb(t),t[2])};q.rgb.ansi256=function(t){var e=t[0],r=t[1],s=t[2];if(e===r&&r===s)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(s/255*5);return i};q.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,s=(e&1)*r*255,i=(e>>1&1)*r*255,n=(e>>2&1)*r*255;return[s,i,n]};q.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,s=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,n=r%6/5*255;return[s,i,n]};q.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};q.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(o){return o+o}).join(""));var s=parseInt(r,16),i=s>>16&255,n=s>>8&255,a=s&255;return[i,n,a]};q.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,s=t[2]/255,i=Math.max(Math.max(e,r),s),n=Math.min(Math.min(e,r),s),a=i-n,o,u;return a<1?o=n/(1-a):o=0,a<=0?u=0:i===e?u=(r-s)/a%6:i===r?u=2+(s-e)/a:u=4+(e-r)/a+4,u/=6,u%=1,[u*360,a*100,o*100]};q.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,s=1,i=0;return r<.5?s=2*e*r:s=2*e*(1-r),s<1&&(i=(r-.5*s)/(1-s)),[t[0],s*100,i*100]};q.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,s=e*r,i=0;return s<1&&(i=(r-s)/(1-s)),[t[0],s*100,i*100]};q.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,s=t[2]/100;if(r===0)return[s*255,s*255,s*255];var i=[0,0,0],n=e%1*6,a=n%1,o=1-a,u=0;switch(Math.floor(n)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return u=(1-r)*s,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};q.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,s=e+r*(1-e),i=0;return s>0&&(i=e/s),[t[0],i*100,s*100]};q.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,s=r*(1-e)+.5*e,i=0;return s>0&&s<.5?i=e/(2*s):s>=.5&&s<1&&(i=e/(2*(1-s))),[t[0],i*100,s*100]};q.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,s=e+r*(1-e);return[t[0],(s-e)*100,(1-s)*100]};q.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,s=1-r,i=s-e,n=0;return i<1&&(n=(s-i)/(1-i)),[t[0],i*100,n*100]};q.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};q.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};q.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};q.gray.hsl=q.gray.hsv=function(t){return[0,0,t[0]]};q.gray.hwb=function(t){return[0,100,t[0]]};q.gray.cmyk=function(t){return[0,0,0,t[0]]};q.gray.lab=function(t){return[t[0],0,0]};q.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,s=r.toString(16).toUpperCase();return"000000".substring(s.length)+s};q.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var Bk=h((Xre,qk)=>{var tc=Xp();function n3(){for(var t={},e=Object.keys(tc),r=e.length,s=0;s<r;s++)t[e[s]]={distance:-1,parent:null};return t}function a3(t){var e=n3(),r=[t];for(e[t].distance=0;r.length;)for(var s=r.pop(),i=Object.keys(tc[s]),n=i.length,a=0;a<n;a++){var o=i[a],u=e[o];u.distance===-1&&(u.distance=e[s].distance+1,u.parent=s,r.unshift(o))}return e}function o3(t,e){return function(r){return e(t(r))}}function u3(t,e){for(var r=[e[t].parent,t],s=tc[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),s=o3(tc[e[i].parent][i],s),i=e[i].parent;return s.conversion=r,s}qk.exports=function(t){for(var e=a3(t),r={},s=Object.keys(e),i=s.length,n=0;n<i;n++){var a=s[n],o=e[a];o.parent!==null&&(r[a]=u3(a,e))}return r}});var Hk=h((Zre,Lk)=>{var Zp=Xp(),l3=Bk(),Xn={},c3=Object.keys(Zp);function f3(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 d3(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var s=t(r);if(typeof s=="object")for(var i=s.length,n=0;n<i;n++)s[n]=Math.round(s[n]);return s};return"conversion"in t&&(e.conversion=t.conversion),e}c3.forEach(function(t){Xn[t]={},Object.defineProperty(Xn[t],"channels",{value:Zp[t].channels}),Object.defineProperty(Xn[t],"labels",{value:Zp[t].labels});var e=l3(t),r=Object.keys(e);r.forEach(function(s){var i=e[s];Xn[t][s]=d3(i),Xn[t][s].raw=f3(i)})});Lk.exports=Xn});var Gk=h((ese,Uk)=>{"use strict";var Zn=Hk(),rc=(t,e)=>function(){return`[${t.apply(Zn,arguments)+e}m`},sc=(t,e)=>function(){let r=t.apply(Zn,arguments);return`[${38+e};5;${r}m`},ic=(t,e)=>function(){let r=t.apply(Zn,arguments);return`[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function h3(){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 n=e[i];for(let a of Object.keys(n)){let o=n[a];e[a]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[a]=e[a],t.set(o[0],o[1])}Object.defineProperty(e,i,{value:n,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,s=(i,n,a)=>[i,n,a];e.color.close="[39m",e.bgColor.close="[49m",e.color.ansi={ansi:rc(r,0)},e.color.ansi256={ansi256:sc(r,0)},e.color.ansi16m={rgb:ic(s,0)},e.bgColor.ansi={ansi:rc(r,10)},e.bgColor.ansi256={ansi256:sc(r,10)},e.bgColor.ansi16m={rgb:ic(s,10)};for(let i of Object.keys(Zn)){if(typeof Zn[i]!="object")continue;let n=Zn[i];i==="ansi16"&&(i="ansi"),"ansi16"in n&&(e.color.ansi[i]=rc(n.ansi16,0),e.bgColor.ansi[i]=rc(n.ansi16,10)),"ansi256"in n&&(e.color.ansi256[i]=sc(n.ansi256,0),e.bgColor.ansi256[i]=sc(n.ansi256,10)),"rgb"in n&&(e.color.ansi16m[i]=ic(n.rgb,0),e.bgColor.ansi16m[i]=ic(n.rgb,10))}return e}Object.defineProperty(Uk,"exports",{enumerable:!0,get:h3})});var zk=h((tse,Vk)=>{"use strict";Vk.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",s=e.indexOf(r+t),i=e.indexOf("--");return s!==-1&&(i===-1?!0:s<i)}});var Kk=h((rse,Wk)=>{"use strict";var p3=require("os"),Fr=zk(),Tt=process.env,ea;Fr("no-color")||Fr("no-colors")||Fr("color=false")?ea=!1:(Fr("color")||Fr("colors")||Fr("color=true")||Fr("color=always"))&&(ea=!0);"FORCE_COLOR"in Tt&&(ea=Tt.FORCE_COLOR.length===0||parseInt(Tt.FORCE_COLOR,10)!==0);function m3(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function g3(t){if(ea===!1)return 0;if(Fr("color=16m")||Fr("color=full")||Fr("color=truecolor"))return 3;if(Fr("color=256"))return 2;if(t&&!t.isTTY&&ea!==!0)return 0;let e=ea?1:0;if(process.platform==="win32"){let r=p3.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 Tt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in Tt)||Tt.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Tt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Tt.TEAMCITY_VERSION)?1:0;if(Tt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Tt){let r=parseInt((Tt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Tt.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Tt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Tt.TERM)||"COLORTERM"in Tt?1:(Tt.TERM==="dumb",e)}function em(t){let e=g3(t);return m3(e)}Wk.exports={supportsColor:em,stdout:em(process.stdout),stderr:em(process.stderr)}});var Zk=h((sse,Xk)=>{"use strict";var y3=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Yk=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,v3=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,b3=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,_3=new Map([["n",`
|
|
30
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function Jk(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):_3.get(t)||t}function w3(t,e){let r=[],s=e.trim().split(/\s*,\s*/g),i;for(let n of s)if(!isNaN(n))r.push(Number(n));else if(i=n.match(v3))r.push(i[2].replace(b3,(a,o,u)=>o?Jk(o):u));else throw new Error(`Invalid Chalk template style argument: ${n} (in style '${t}')`);return r}function E3(t){Yk.lastIndex=0;let e=[],r;for(;(r=Yk.exec(t))!==null;){let s=r[1];if(r[2]){let i=w3(s,r[2]);e.push([s].concat(i))}else e.push([s])}return e}function Qk(t,e){let r={};for(let i of e)for(let n of i.styles)r[n[0]]=i.inverse?null:n.slice(1);let s=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in s))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?s=s[i].apply(s,r[i]):s=s[i]}return s}Xk.exports=(t,e)=>{let r=[],s=[],i=[];if(e.replace(y3,(n,a,o,u,l,c)=>{if(a)i.push(Jk(a));else if(u){let f=i.join("");i=[],s.push(r.length===0?f:Qk(t,r)(f)),r.push({inverse:o,styles:E3(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");s.push(Qk(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),s.push(i.join("")),r.length>0){let n=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(n)}return s.join("")}});var i1=h((ise,tu)=>{"use strict";var tm=Pk(),tt=Gk(),rm=Kk().stdout,k3=Zk(),e1=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),t1=["ansi","ansi","ansi256","ansi16m"],r1=new Set(["gray"]),ta=Object.create(null);function s1(t,e){e=e||{};let r=rm?rm.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function eu(t){if(!this||!(this instanceof eu)||this.template){let e={};return s1(e,t),e.template=function(){let r=[].slice.call(arguments);return S3.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,eu.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=eu,e.template}s1(this,t)}e1&&(tt.blue.open="[94m");for(let t of Object.keys(tt))tt[t].closeRe=new RegExp(tm(tt[t].close),"g"),ta[t]={get(){let e=tt[t];return nc.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};ta.visible={get(){return nc.call(this,this._styles||[],!0,"visible")}};tt.color.closeRe=new RegExp(tm(tt.color.close),"g");for(let t of Object.keys(tt.color.ansi))r1.has(t)||(ta[t]={get(){let e=this.level;return function(){let s={open:tt.color[t1[e]][t].apply(null,arguments),close:tt.color.close,closeRe:tt.color.closeRe};return nc.call(this,this._styles?this._styles.concat(s):[s],this._empty,t)}}});tt.bgColor.closeRe=new RegExp(tm(tt.bgColor.close),"g");for(let t of Object.keys(tt.bgColor.ansi)){if(r1.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);ta[e]={get(){let r=this.level;return function(){let i={open:tt.bgColor[t1[r]][t].apply(null,arguments),close:tt.bgColor.close,closeRe:tt.bgColor.closeRe};return nc.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var D3=Object.defineProperties(()=>{},ta);function nc(t,e,r){let s=function(){return C3.apply(s,arguments)};s._styles=t,s._empty=e;let i=this;return Object.defineProperty(s,"level",{enumerable:!0,get(){return i.level},set(n){i.level=n}}),Object.defineProperty(s,"enabled",{enumerable:!0,get(){return i.enabled},set(n){i.enabled=n}}),s.hasGrey=this.hasGrey||r==="gray"||r==="grey",s.__proto__=D3,s}function C3(){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 s=tt.dim.open;e1&&this.hasGrey&&(tt.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 tt.dim.open=s,r}function S3(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),s=[e.raw[0]];for(let i=1;i<e.length;i++)s.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),s.push(String(e.raw[i]));return k3(t,s.join(""))}Object.defineProperties(eu.prototype,ta);tu.exports=eu();tu.exports.supportsColor=rm;tu.exports.default=tu.exports});var a1=h((nse,sm)=>{"use strict";var n1=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};sm.exports=n1;sm.exports.default=n1});var u1=h((ase,oc)=>{"use strict";var x3=a1(),ac=new WeakMap,o1=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,s=0,i=t.displayName||t.name||"<anonymous>",n=function(...a){if(ac.set(n,++s),s===1)r=t.apply(this,a),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return x3(n,t),ac.set(n,s),n};oc.exports=o1;oc.exports.default=o1;oc.exports.callCount=t=>{if(!ac.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return ac.get(t)}});var l1=h((ose,uc)=>{uc.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&uc.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&uc.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var p1=h((use,ia)=>{var Ee=global.process;typeof Ee!="object"||!Ee?ia.exports=function(){}:(c1=require("assert"),ra=l1(),f1=/^win/i.test(Ee.platform),ru=require("events"),typeof ru!="function"&&(ru=ru.EventEmitter),Ee.__signal_exit_emitter__?ht=Ee.__signal_exit_emitter__:(ht=Ee.__signal_exit_emitter__=new ru,ht.count=0,ht.emitted={}),ht.infinite||(ht.setMaxListeners(1/0),ht.infinite=!0),ia.exports=function(t,e){if(global.process===Ee){c1.equal(typeof t,"function","a callback must be provided for exit handler"),sa===!1&&im();var r="exit";e&&e.alwaysLast&&(r="afterexit");var s=function(){ht.removeListener(r,t),ht.listeners("exit").length===0&&ht.listeners("afterexit").length===0&&lc()};return ht.on(r,t),s}},lc=function(){!sa||global.process!==Ee||(sa=!1,ra.forEach(function(e){try{Ee.removeListener(e,cc[e])}catch{}}),Ee.emit=fc,Ee.reallyExit=nm,ht.count-=1)},ia.exports.unload=lc,Vi=function(e,r,s){ht.emitted[e]||(ht.emitted[e]=!0,ht.emit(e,r,s))},cc={},ra.forEach(function(t){cc[t]=function(){if(Ee===global.process){var r=Ee.listeners(t);r.length===ht.count&&(lc(),Vi("exit",null,t),Vi("afterexit",null,t),f1&&t==="SIGHUP"&&(t="SIGINT"),Ee.kill(Ee.pid,t))}}}),ia.exports.signals=function(){return ra},sa=!1,im=function(){sa||Ee!==global.process||(sa=!0,ht.count+=1,ra=ra.filter(function(e){try{return Ee.on(e,cc[e]),!0}catch{return!1}}),Ee.emit=h1,Ee.reallyExit=d1)},ia.exports.load=im,nm=Ee.reallyExit,d1=function(e){Ee===global.process&&(Ee.exitCode=e||0,Vi("exit",Ee.exitCode,null),Vi("afterexit",Ee.exitCode,null),nm.call(Ee,Ee.exitCode))},fc=Ee.emit,h1=function(e,r){if(e==="exit"&&Ee===global.process){r!==void 0&&(Ee.exitCode=r);var s=fc.apply(this,arguments);return Vi("exit",Ee.exitCode,null),Vi("afterexit",Ee.exitCode,null),s}else return fc.apply(this,arguments)});var c1,ra,f1,ru,ht,lc,Vi,cc,sa,im,nm,d1,fc,h1});var g1=h((lse,m1)=>{"use strict";var A3=u1(),O3=p1();m1.exports=A3(()=>{O3(()=>{process.stderr.write("[?25h")},{alwaysLast:!0})})});var y1=h(na=>{"use strict";var T3=g1(),dc=!1;na.show=(t=process.stderr)=>{!t.isTTY||(dc=!1,t.write("[?25h"))};na.hide=(t=process.stderr)=>{!t.isTTY||(T3(),dc=!0,t.write("[?25l"))};na.toggle=(t,e)=>{t!==void 0&&(dc=t),dc?na.show(e):na.hide(e)}});var am=h((fse,R3)=>{R3.exports={dots:{interval:50,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dashes:{interval:80,frames:["-","_"]}}});var b1=h((dse,v1)=>{"use strict";v1.exports=t=>{t=Object.assign({onlyFirst:!1},t);let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[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.onlyFirst?void 0:"g")}});var w1=h((hse,om)=>{"use strict";var P3=b1(),_1=t=>typeof t=="string"?t.replace(P3(),""):t;om.exports=_1;om.exports.default=_1});var fm=h((pse,E1)=>{"use strict";var zi=require("readline"),$3=w1(),{dashes:F3,dots:j3}=am(),I3=["succeed","fail","spinning","non-spinnable","stopped"],M3=["black","red","green","yellow","blue","magenta","cyan","white","gray","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright"];function N3(t){let{text:e,status:r,indent:s}=t,i={text:e,status:r,indent:s},n=um(t);return I3.includes(r)||delete i.status,typeof e!="string"&&delete i.text,typeof s!="number"&&delete i.indent,{...n,...i}}function q3({spinner:t,disableSpins:e,...r}){let s=um(r),i=L3(r),n=typeof e=="boolean"?{disableSpins:e}:{};return t=B3(t),{...s,...i,...n,spinner:t}}function B3(t={}){let e=cm()?j3:F3;if(!typeof t==="object")return e;let{interval:r,frames:s}=t;return(!Array.isArray(s)||s.length<1)&&(s=e.frames),typeof r!="number"&&(r=e.interval),{interval:r,frames:s}}function um({color:t,succeedColor:e,failColor:r,spinnerColor:s}){let i={color:t,succeedColor:e,failColor:r,spinnerColor:s};return Object.keys(i).forEach(n=>{M3.includes(i[n])||delete i[n]}),i}function L3({succeedPrefix:t,failPrefix:e}){return cm()?(t=t||"\u2713",e=e||"\u2716"):(t=t||"\u221A",e=e||"\xD7"),{succeedPrefix:t,failPrefix:e}}function H3(t,e){return t.split(`
|
|
31
|
+
`).map((r,s)=>s===0?lm(r,e):lm(r,0)).join(`
|
|
32
|
+
`)}function lm(t,e){let r=process.stderr.columns||95;return t.length>=r-e?`${t.substring(0,r-e-1)}
|
|
33
|
+
${lm(t.substring(r-e-1,t.length),0)}`:t}function U3(t,e){return $3(t).split(`
|
|
34
|
+
`).map((r,s)=>s===0?r.length+e:r.length)}function G3(t,e,r){t.write(e),zi.moveCursor(t,0,-r.length)}function V3(t,e){e.forEach((r,s)=>{zi.moveCursor(t,r,s),zi.clearLine(t,1),zi.moveCursor(t,-r,-s)}),zi.moveCursor(t,0,e.length),zi.clearScreenDown(t),zi.moveCursor(t,0,-e.length)}function cm(){return process.platform!=="win32"||process.env.TERM_PROGRAM==="vscode"||!!process.env.WT_SESSION}E1.exports={purgeSpinnersOptions:q3,purgeSpinnerOptions:N3,colorOptions:um,breakText:H3,getLinesLength:U3,writeStream:G3,cleanStream:V3,terminalSupportsUnicode:cm}});var x1=h((gse,pc)=>{"use strict";var dm=require("readline"),Wi=i1(),hm=y1(),{dashes:k1,dots:D1}=am(),{purgeSpinnerOptions:C1,purgeSpinnersOptions:z3,colorOptions:W3,breakText:hc,getLinesLength:K3,terminalSupportsUnicode:Y3}=fm(),{isValidStatus:mse,writeStream:J3,cleanStream:Q3}=fm(),S1=class{constructor(e={}){e=z3(e),this.options={spinnerColor:"greenBright",succeedColor:"green",failColor:"red",spinner:Y3()?D1:k1,disableSpins:!1,...e},this.spinners={},this.isCursorHidden=!1,this.currentInterval=null,this.stream=process.stderr,this.lineCount=0,this.currentFrameIndex=0,this.spin=!this.options.disableSpins&&!process.env.CI&&process.stderr&&process.stderr.isTTY,this.bindSigint()}pick(e){return this.spinners[e]}add(e,r={}){if(typeof e!="string")throw Error("A spinner reference name must be specified");r.text||(r.text=e);let s={...W3(this.options),succeedPrefix:this.options.succeedPrefix,failPrefix:this.options.failPrefix,status:"spinning",...C1(r)};return this.spinners[e]=s,this.updateSpinnerState(),s}update(e,r={}){let{status:s}=r;return this.setSpinnerProperties(e,r,s),this.updateSpinnerState(),this.spinners[e]}succeed(e,r={}){return this.setSpinnerProperties(e,r,"succeed"),this.updateSpinnerState(),this.spinners[e]}fail(e,r={}){return this.setSpinnerProperties(e,r,"fail"),this.updateSpinnerState(),this.spinners[e]}remove(e){if(typeof e!="string")throw Error("A spinner reference name must be specified");let r=this.spinners[e];return delete this.spinners[e],r}stopAll(e="stopped"){return Object.keys(this.spinners).forEach(r=>{let{status:s}=this.spinners[r];s!=="fail"&&s!=="succeed"&&s!=="non-spinnable"&&(e==="succeed"||e==="fail"?(this.spinners[r].status=e,this.spinners[r].color=this.options[`${e}Color`]):(this.spinners[r].status="stopped",this.spinners[r].color="grey"))}),this.checkIfActiveSpinners(),this.spinners}hasActiveSpinners(){return!!Object.values(this.spinners).find(({status:e})=>e==="spinning")}setSpinnerProperties(e,r,s){if(typeof e!="string")throw Error("A spinner reference name must be specified");if(!this.spinners[e])throw Error(`No spinner initialized with name ${e}`);r=C1(r),s=s||"spinning",this.spinners[e]={...this.spinners[e],...r,status:s}}updateSpinnerState(e,r={},s){this.spin?(clearInterval(this.currentInterval),this.currentInterval=this.loopStream(),this.isCursorHidden||hm.hide(),this.isCursorHidden=!0,this.checkIfActiveSpinners()):this.setRawStreamOutput()}loopStream(){let{frames:e,interval:r}=this.options.spinner;return setInterval(()=>{this.setStreamOutput(e[this.currentFrameIndex]),this.currentFrameIndex=this.currentFrameIndex===e.length-1?0:++this.currentFrameIndex},r)}setStreamOutput(e=""){let r="",s=[],i=this.hasActiveSpinners();Object.values(this.spinners).map(({text:n,status:a,color:o,spinnerColor:u,succeedColor:l,failColor:c,succeedPrefix:f,failPrefix:d,indent:p})=>{let m,g=p||0;a==="spinning"?(g+=e.length+1,n=hc(n,g),m=`${Wi[u](e)} ${o?Wi[o](n):n}`):a==="succeed"?(g+=f.length+1,i&&(n=hc(n,g)),m=`${Wi.green(f)} ${Wi[l](n)}`):a==="fail"?(g+=d.length+1,i&&(n=hc(n,g)),m=`${Wi.red(d)} ${Wi[c](n)}`):(i&&(n=hc(n,g)),m=o?Wi[o](n):n),s.push(...K3(n,g)),r+=p?`${" ".repeat(p)}${m}
|
|
35
|
+
`:`${m}
|
|
36
|
+
`}),i||dm.clearScreenDown(this.stream),J3(this.stream,r,s),i&&Q3(this.stream,s),this.lineCount=s.length}setRawStreamOutput(){Object.values(this.spinners).forEach(e=>{process.stderr.write(`- ${e.text}
|
|
37
|
+
`)})}checkIfActiveSpinners(){this.hasActiveSpinners()||(this.spin&&(this.setStreamOutput(),dm.moveCursor(this.stream,0,this.lineCount),clearInterval(this.currentInterval),this.isCursorHidden=!1,hm.show()),this.spinners={})}bindSigint(e){process.removeAllListeners("SIGINT"),process.on("SIGINT",()=>{hm.show(),dm.moveCursor(process.stderr,0,this.lineCount),process.exit(0)})}};pc.exports=S1;pc.exports.dots=D1;pc.exports.dashes=k1});var O1=h((vse,mc)=>{mc.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;mc.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;mc.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/});var mm=h((bse,T1)=>{var pm=O1();T1.exports={isSpaceSeparator(t){return typeof t=="string"&&pm.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||pm.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||pm.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}}});var I1=h((_se,j1)=>{var pt=mm(),gm,Nt,vs,gc,zs,jr,mt,ym,su;j1.exports=function(e,r){gm=String(e),Nt="start",vs=[],gc=0,zs=1,jr=0,mt=void 0,ym=void 0,su=void 0;do mt=X3(),t5[Nt]();while(mt.type!=="eof");return typeof r=="function"?R1({"":su},"",r):su};function R1(t,e,r){let s=t[e];if(s!=null&&typeof s=="object")for(let i in s){let n=R1(s,i,r);n===void 0?delete s[i]:s[i]=n}return r.call(t,e,s)}var re,X,iu,bs,le;function X3(){for(re="default",X="",iu=!1,bs=1;;){le=_s();let t=P1[re]();if(t)return t}}function _s(){if(gm[gc])return String.fromCodePoint(gm.codePointAt(gc))}function R(){let t=_s();return t===`
|
|
38
|
+
`?(zs++,jr=0):t?jr+=t.length:jr++,t&&(gc+=t.length),t}var P1={default(){switch(le){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
39
|
+
`:case"\r":case"\u2028":case"\u2029":R();return;case"/":R(),re="comment";return;case void 0:return R(),Fe("eof")}if(pt.isSpaceSeparator(le)){R();return}return P1[Nt]()},comment(){switch(le){case"*":R(),re="multiLineComment";return;case"/":R(),re="singleLineComment";return}throw je(R())},multiLineComment(){switch(le){case"*":R(),re="multiLineCommentAsterisk";return;case void 0:throw je(R())}R()},multiLineCommentAsterisk(){switch(le){case"*":R();return;case"/":R(),re="default";return;case void 0:throw je(R())}R(),re="multiLineComment"},singleLineComment(){switch(le){case`
|
|
40
|
+
`:case"\r":case"\u2028":case"\u2029":R(),re="default";return;case void 0:return R(),Fe("eof")}R()},value(){switch(le){case"{":case"[":return Fe("punctuator",R());case"n":return R(),Ki("ull"),Fe("null",null);case"t":return R(),Ki("rue"),Fe("boolean",!0);case"f":return R(),Ki("alse"),Fe("boolean",!1);case"-":case"+":R()==="-"&&(bs=-1),re="sign";return;case".":X=R(),re="decimalPointLeading";return;case"0":X=R(),re="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":X=R(),re="decimalInteger";return;case"I":return R(),Ki("nfinity"),Fe("numeric",1/0);case"N":return R(),Ki("aN"),Fe("numeric",NaN);case'"':case"'":iu=R()==='"',X="",re="string";return}throw je(R())},identifierNameStartEscape(){if(le!=="u")throw je(R());R();let t=vm();switch(t){case"$":case"_":break;default:if(!pt.isIdStartChar(t))throw $1();break}X+=t,re="identifierName"},identifierName(){switch(le){case"$":case"_":case"\u200C":case"\u200D":X+=R();return;case"\\":R(),re="identifierNameEscape";return}if(pt.isIdContinueChar(le)){X+=R();return}return Fe("identifier",X)},identifierNameEscape(){if(le!=="u")throw je(R());R();let t=vm();switch(t){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!pt.isIdContinueChar(t))throw $1();break}X+=t,re="identifierName"},sign(){switch(le){case".":X=R(),re="decimalPointLeading";return;case"0":X=R(),re="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":X=R(),re="decimalInteger";return;case"I":return R(),Ki("nfinity"),Fe("numeric",bs*(1/0));case"N":return R(),Ki("aN"),Fe("numeric",NaN)}throw je(R())},zero(){switch(le){case".":X+=R(),re="decimalPoint";return;case"e":case"E":X+=R(),re="decimalExponent";return;case"x":case"X":X+=R(),re="hexadecimal";return}return Fe("numeric",bs*0)},decimalInteger(){switch(le){case".":X+=R(),re="decimalPoint";return;case"e":case"E":X+=R(),re="decimalExponent";return}if(pt.isDigit(le)){X+=R();return}return Fe("numeric",bs*Number(X))},decimalPointLeading(){if(pt.isDigit(le)){X+=R(),re="decimalFraction";return}throw je(R())},decimalPoint(){switch(le){case"e":case"E":X+=R(),re="decimalExponent";return}if(pt.isDigit(le)){X+=R(),re="decimalFraction";return}return Fe("numeric",bs*Number(X))},decimalFraction(){switch(le){case"e":case"E":X+=R(),re="decimalExponent";return}if(pt.isDigit(le)){X+=R();return}return Fe("numeric",bs*Number(X))},decimalExponent(){switch(le){case"+":case"-":X+=R(),re="decimalExponentSign";return}if(pt.isDigit(le)){X+=R(),re="decimalExponentInteger";return}throw je(R())},decimalExponentSign(){if(pt.isDigit(le)){X+=R(),re="decimalExponentInteger";return}throw je(R())},decimalExponentInteger(){if(pt.isDigit(le)){X+=R();return}return Fe("numeric",bs*Number(X))},hexadecimal(){if(pt.isHexDigit(le)){X+=R(),re="hexadecimalInteger";return}throw je(R())},hexadecimalInteger(){if(pt.isHexDigit(le)){X+=R();return}return Fe("numeric",bs*Number(X))},string(){switch(le){case"\\":R(),X+=Z3();return;case'"':if(iu)return R(),Fe("string",X);X+=R();return;case"'":if(!iu)return R(),Fe("string",X);X+=R();return;case`
|
|
41
|
+
`:case"\r":throw je(R());case"\u2028":case"\u2029":r5(le);break;case void 0:throw je(R())}X+=R()},start(){switch(le){case"{":case"[":return Fe("punctuator",R())}re="value"},beforePropertyName(){switch(le){case"$":case"_":X=R(),re="identifierName";return;case"\\":R(),re="identifierNameStartEscape";return;case"}":return Fe("punctuator",R());case'"':case"'":iu=R()==='"',re="string";return}if(pt.isIdStartChar(le)){X+=R(),re="identifierName";return}throw je(R())},afterPropertyName(){if(le===":")return Fe("punctuator",R());throw je(R())},beforePropertyValue(){re="value"},afterPropertyValue(){switch(le){case",":case"}":return Fe("punctuator",R())}throw je(R())},beforeArrayValue(){if(le==="]")return Fe("punctuator",R());re="value"},afterArrayValue(){switch(le){case",":case"]":return Fe("punctuator",R())}throw je(R())},end(){throw je(R())}};function Fe(t,e){return{type:t,value:e,line:zs,column:jr}}function Ki(t){for(let e of t){if(_s()!==e)throw je(R());R()}}function Z3(){switch(_s()){case"b":return R(),"\b";case"f":return R(),"\f";case"n":return R(),`
|
|
42
|
+
`;case"r":return R(),"\r";case"t":return R()," ";case"v":return R(),"\v";case"0":if(R(),pt.isDigit(_s()))throw je(R());return"\0";case"x":return R(),e5();case"u":return R(),vm();case`
|
|
43
43
|
`:case"\u2028":case"\u2029":return R(),"";case"\r":return R(),_s()===`
|
|
44
|
-
`&&R(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw je(R());case void 0:throw je(R())}return R()}function
|
|
44
|
+
`&&R(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw je(R());case void 0:throw je(R())}return R()}function e5(){let t="",e=_s();if(!pt.isHexDigit(e)||(t+=R(),e=_s(),!pt.isHexDigit(e)))throw je(R());return t+=R(),String.fromCodePoint(parseInt(t,16))}function vm(){let t="",e=4;for(;e-- >0;){let r=_s();if(!pt.isHexDigit(r))throw je(R());t+=R()}return String.fromCodePoint(parseInt(t,16))}var t5={start(){if(mt.type==="eof")throw Yi();bm()},beforePropertyName(){switch(mt.type){case"identifier":case"string":ym=mt.value,Nt="afterPropertyName";return;case"punctuator":yc();return;case"eof":throw Yi()}},afterPropertyName(){if(mt.type==="eof")throw Yi();Nt="beforePropertyValue"},beforePropertyValue(){if(mt.type==="eof")throw Yi();bm()},beforeArrayValue(){if(mt.type==="eof")throw Yi();if(mt.type==="punctuator"&&mt.value==="]"){yc();return}bm()},afterPropertyValue(){if(mt.type==="eof")throw Yi();switch(mt.value){case",":Nt="beforePropertyName";return;case"}":yc()}},afterArrayValue(){if(mt.type==="eof")throw Yi();switch(mt.value){case",":Nt="beforeArrayValue";return;case"]":yc()}},end(){}};function bm(){let t;switch(mt.type){case"punctuator":switch(mt.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=mt.value;break}if(su===void 0)su=t;else{let e=vs[vs.length-1];Array.isArray(e)?e.push(t):e[ym]=t}if(t!==null&&typeof t=="object")vs.push(t),Array.isArray(t)?Nt="beforeArrayValue":Nt="beforePropertyName";else{let e=vs[vs.length-1];e==null?Nt="end":Array.isArray(e)?Nt="afterArrayValue":Nt="afterPropertyValue"}}function yc(){vs.pop();let t=vs[vs.length-1];t==null?Nt="end":Array.isArray(t)?Nt="afterArrayValue":Nt="afterPropertyValue"}function je(t){return vc(t===void 0?`JSON5: invalid end of input at ${zs}:${jr}`:`JSON5: invalid character '${F1(t)}' at ${zs}:${jr}`)}function Yi(){return vc(`JSON5: invalid end of input at ${zs}:${jr}`)}function $1(){return jr-=5,vc(`JSON5: invalid identifier character at ${zs}:${jr}`)}function r5(t){console.warn(`JSON5: '${F1(t)}' in strings is not valid ECMAScript; consider escaping`)}function F1(t){let e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[t])return e[t];if(t<" "){let r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}function vc(t){let e=new SyntaxError(t);return e.lineNumber=zs,e.columnNumber=jr,e}});var N1=h((wse,M1)=>{var _m=mm();M1.exports=function(e,r,s){let i=[],n="",a,o,u="",l;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(s=r.space,l=r.quote,r=r.replacer),typeof r=="function")o=r;else if(Array.isArray(r)){a=[];for(let g of r){let b;typeof g=="string"?b=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(b=String(g)),b!==void 0&&a.indexOf(b)<0&&a.push(b)}}return s instanceof Number?s=Number(s):s instanceof String&&(s=String(s)),typeof s=="number"?s>0&&(s=Math.min(10,Math.floor(s)),u=" ".substr(0,s)):typeof s=="string"&&(u=s.substr(0,10)),c("",{"":e});function c(g,b){let y=b[g];switch(y!=null&&(typeof y.toJSON5=="function"?y=y.toJSON5(g):typeof y.toJSON=="function"&&(y=y.toJSON(g))),o&&(y=o.call(b,g,y)),y instanceof Number?y=Number(y):y instanceof String?y=String(y):y instanceof Boolean&&(y=y.valueOf()),y){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof y=="string")return f(y,!1);if(typeof y=="number")return String(y);if(typeof y=="object")return Array.isArray(y)?m(y):d(y)}function f(g){let b={"'":.1,'"':.2},y={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},w="";for(let O=0;O<g.length;O++){let P=g[O];switch(P){case"'":case'"':b[P]++,w+=P;continue;case"\0":if(_m.isDigit(g[O+1])){w+="\\x00";continue}}if(y[P]){w+=y[P];continue}if(P<" "){let I=P.charCodeAt(0).toString(16);w+="\\x"+("00"+I).substring(I.length);continue}w+=P}let k=l||Object.keys(b).reduce((O,P)=>b[O]<b[P]?O:P);return w=w.replace(new RegExp(k,"g"),y[k]),k+w+k}function d(g){if(i.indexOf(g)>=0)throw TypeError("Converting circular structure to JSON5");i.push(g);let b=n;n=n+u;let y=a||Object.keys(g),w=[];for(let O of y){let P=c(O,g);if(P!==void 0){let I=p(O)+":";u!==""&&(I+=" "),I+=P,w.push(I)}}let k;if(w.length===0)k="{}";else{let O;if(u==="")O=w.join(","),k="{"+O+"}";else{let P=`,
|
|
45
45
|
`+n;O=w.join(P),k=`{
|
|
46
46
|
`+n+O+`,
|
|
47
|
-
`+b+"}"}}return i.pop(),n=b,k}function
|
|
47
|
+
`+b+"}"}}return i.pop(),n=b,k}function p(g){if(g.length===0)return f(g,!0);let b=String.fromCodePoint(g.codePointAt(0));if(!_m.isIdStartChar(b))return f(g,!0);for(let y=b.length;y<g.length;y++)if(!_m.isIdContinueChar(String.fromCodePoint(g.codePointAt(y))))return f(g,!0);return g}function m(g){if(i.indexOf(g)>=0)throw TypeError("Converting circular structure to JSON5");i.push(g);let b=n;n=n+u;let y=[];for(let k=0;k<g.length;k++){let O=c(String(k),g);y.push(O!==void 0?O:"null")}let w;if(y.length===0)w="[]";else if(u===""){let k=y.join(",");w="["+k+"]"}else{let k=`,
|
|
48
48
|
`+n,O=y.join(k);w=`[
|
|
49
49
|
`+n+O+`,
|
|
50
|
-
`+b+"]"}return i.pop(),n=b,w}}});var
|
|
51
|
-
`),l=a.length;for(l>0&&a.includes("unstyle")&&(a=[...new Set(["unstyle",...a])].reverse());l-- >0;)o=r(t.styles[a[l]],o,u);return o},i=(n,a,o)=>{t.styles[n]=e({name:n,codes:a}),(t.keys[o]||(t.keys[o]=[])).push(n),Reflect.defineProperty(t,n,{configurable:!0,enumerable:!0,set(l){t.alias(n,l)},get(){let l=c=>s(c,l.stack);return Reflect.setPrototypeOf(l,t),l.stack=this.stack?this.stack.concat(n):[n],l}})};return i("reset",[0,0],"modifier"),i("bold",[1,22],"modifier"),i("dim",[2,22],"modifier"),i("italic",[3,23],"modifier"),i("underline",[4,24],"modifier"),i("inverse",[7,27],"modifier"),i("hidden",[8,28],"modifier"),i("strikethrough",[9,29],"modifier"),i("black",[30,39],"color"),i("red",[31,39],"color"),i("green",[32,39],"color"),i("yellow",[33,39],"color"),i("blue",[34,39],"color"),i("magenta",[35,39],"color"),i("cyan",[36,39],"color"),i("white",[37,39],"color"),i("gray",[90,39],"color"),i("grey",[90,39],"color"),i("bgBlack",[40,49],"bg"),i("bgRed",[41,49],"bg"),i("bgGreen",[42,49],"bg"),i("bgYellow",[43,49],"bg"),i("bgBlue",[44,49],"bg"),i("bgMagenta",[45,49],"bg"),i("bgCyan",[46,49],"bg"),i("bgWhite",[47,49],"bg"),i("blackBright",[90,39],"bright"),i("redBright",[91,39],"bright"),i("greenBright",[92,39],"bright"),i("yellowBright",[93,39],"bright"),i("blueBright",[94,39],"bright"),i("magentaBright",[95,39],"bright"),i("cyanBright",[96,39],"bright"),i("whiteBright",[97,39],"bright"),i("bgBlackBright",[100,49],"bgBright"),i("bgRedBright",[101,49],"bgBright"),i("bgGreenBright",[102,49],"bgBright"),i("bgYellowBright",[103,49],"bgBright"),i("bgBlueBright",[104,49],"bgBright"),i("bgMagentaBright",[105,49],"bgBright"),i("bgCyanBright",[106,49],"bgBright"),i("bgWhiteBright",[107,49],"bgBright"),t.ansiRegex=
|
|
52
|
-
`+r,width:i=80}=e;i-=((s+r).match(/[^\S\n]/g)||[]).length;let a=`.{1,${i}}([\\s\\u200B]+|$)|[^\\s\\u200B]+?([\\s\\u200B]+|$)`,o=t.trim(),u=new RegExp(a,"g"),l=o.match(u)||[];return l=l.map(c=>c.replace(/\n$/,"")),e.padEnd&&(l=l.map(c=>c.padEnd(i," "))),e.padStart&&(l=l.map(c=>c.padStart(i," "))),r+l.join(s)};ce.unmute=t=>{let e=t.stack.find(s=>pr.keys.color.includes(s));return e?pr[e]:t.stack.find(s=>s.slice(2)==="bg")?pr[e.slice(2)]:s=>s};ce.pascal=t=>t?t[0].toUpperCase()+t.slice(1):"";ce.inverse=t=>{if(!t||!t.stack)return t;let e=t.stack.find(s=>pr.keys.color.includes(s));if(e){let s=pr["bg"+ce.pascal(e)];return s?s.black:t}let r=t.stack.find(s=>s.slice(0,2)==="bg");return r?pr[r.slice(2).toLowerCase()]||t:pr.none};ce.complement=t=>{if(!t||!t.stack)return t;let e=t.stack.find(s=>pr.keys.color.includes(s)),r=t.stack.find(s=>s.slice(0,2)==="bg");if(e&&!r)return pr[
|
|
53
|
-
`)s.name="enter";else if(t===" ")s.name="tab";else if(t==="\b"||t==="\x7F"||t==="\x7F"||t==="\b")s.name="backspace",s.meta=t.charAt(0)==="";else if(t===""||t==="")s.name="escape",s.meta=t.length===2;else if(t===" "||t===" ")s.name="space",s.meta=t.length===2;else if(t<="")s.name=String.fromCharCode(t.charCodeAt(0)+"a".charCodeAt(0)-1),s.ctrl=!0;else if(t.length===1&&t>="0"&&t<="9")s.name="number";else if(t.length===1&&t>="a"&&t<="z")s.name=t;else if(t.length===1&&t>="A"&&t<="Z")s.name=t.toLowerCase(),s.shift=!0;else if(r=f5.exec(t))s.meta=!0,s.shift=/^[A-Z]$/.test(r[1]);else if(r=d5.exec(t)){let i=[...t];i[0]===""&&i[1]===""&&(s.option=!0);let n=[r[1],r[2],r[4],r[6]].filter(Boolean).join(""),a=(r[3]||r[5]||1)-1;s.ctrl=!!(a&4),s.meta=!!(a&10),s.shift=!!(a&1),s.code=n,s.name=h5[n],s.shift=p5(n)||s.shift,s.ctrl=m5(n)||s.ctrl}return s};wc.listen=(t={},e)=>{let{stdin:r}=t;if(!r||r!==process.stdin&&!r.isTTY)throw new Error("Invalid stream passed");let s=rD.createInterface({terminal:!0,input:r});rD.emitKeypressEvents(r,s);let i=(o,u)=>e(o,wc(o,u),s),n=r.isRaw;return r.isTTY&&r.setRawMode(!0),r.on("keypress",i),s.resume(),()=>{r.isTTY&&r.setRawMode(n),r.removeListener("keypress",i),s.pause(),s.close()}};wc.action=(t,e,r)=>{let s={...c5,...r};return e.ctrl?(e.action=s.ctrl[e.name],e):e.option&&s.option?(e.action=s.option[e.name],e):e.shift?(e.action=s.shift[e.name],e):(e.action=s.keys[e.name],e)};sD.exports=wc});var aD=h((Nse,nD)=>{"use strict";nD.exports=t=>{t.timers=t.timers||{};let e=t.options.timers;if(!!e)for(let r of Object.keys(e)){let s=e[r];typeof s=="number"&&(s={interval:s}),g5(t,r,s)}};function g5(t,e,r={}){let s=t.timers[e]={name:e,start:Date.now(),ms:0,tick:0},i=r.interval||120;s.frames=r.frames||[],s.loading=!0;let n=setInterval(()=>{s.ms=Date.now()-s.start,s.tick++,t.render()},i);return s.stop=()=>{s.loading=!1,clearInterval(n)},Reflect.defineProperty(s,"interval",{value:n}),t.once("close",()=>s.stop()),s.stop}});var lD=h((qse,uD)=>{"use strict";var{define:y5,width:v5}=Rt(),oD=class{constructor(e){let r=e.options;y5(this,"_prompt",e),this.type=e.type,this.name=e.name,this.message="",this.header="",this.footer="",this.error="",this.hint="",this.input="",this.cursor=0,this.index=0,this.lines=0,this.tick=0,this.prompt="",this.buffer="",this.width=v5(r.stdout||process.stdout),Object.assign(this,r),this.name=this.name||this.message,this.message=this.message||this.name,this.symbols=e.symbols,this.styles=e.styles,this.required=new Set,this.cancelled=!1,this.submitted=!1}clone(){let e={...this};return e.status=this.status,e.buffer=Buffer.from(e.buffer),delete e.clone,e}set color(e){this._color=e}get color(){let e=this.prompt.styles;if(this.cancelled)return e.cancelled;if(this.submitted)return e.submitted;let r=this._color||e[this.status];return typeof r=="function"?r:e.pending}set loading(e){this._loading=e}get loading(){return typeof this._loading=="boolean"?this._loading:this.loadingChoices?"choices":!1}get status(){return this.cancelled?"cancelled":this.submitted?"submitted":"pending"}};uD.exports=oD});var fD=h((Bse,cD)=>{"use strict";var Dm=Rt(),bt=Ir(),Cm={default:bt.noop,noop:bt.noop,set inverse(t){this._inverse=t},get inverse(){return this._inverse||Dm.inverse(this.primary)},set complement(t){this._complement=t},get complement(){return this._complement||Dm.complement(this.primary)},primary:bt.cyan,success:bt.green,danger:bt.magenta,strong:bt.bold,warning:bt.yellow,muted:bt.dim,disabled:bt.gray,dark:bt.dim.gray,underline:bt.underline,set info(t){this._info=t},get info(){return this._info||this.primary},set em(t){this._em=t},get em(){return this._em||this.primary.underline},set heading(t){this._heading=t},get heading(){return this._heading||this.muted.underline},set pending(t){this._pending=t},get pending(){return this._pending||this.primary},set submitted(t){this._submitted=t},get submitted(){return this._submitted||this.success},set cancelled(t){this._cancelled=t},get cancelled(){return this._cancelled||this.danger},set typing(t){this._typing=t},get typing(){return this._typing||this.dim},set placeholder(t){this._placeholder=t},get placeholder(){return this._placeholder||this.primary.dim},set highlight(t){this._highlight=t},get highlight(){return this._highlight||this.inverse}};Cm.merge=(t={})=>{t.styles&&typeof t.styles.enabled=="boolean"&&(bt.enabled=t.styles.enabled),t.styles&&typeof t.styles.visible=="boolean"&&(bt.visible=t.styles.visible);let e=Dm.merge({},Cm,t.styles);delete e.merge;for(let r of Object.keys(bt))e.hasOwnProperty(r)||Reflect.defineProperty(e,r,{get:()=>bt[r]});for(let r of Object.keys(bt.styles))e.hasOwnProperty(r)||Reflect.defineProperty(e,r,{get:()=>bt[r]});return e};cD.exports=Cm});var hD=h((Lse,dD)=>{"use strict";var Sm=process.platform==="win32",ks=Ir(),b5=Rt(),xm={...ks.symbols,upDownDoubleArrow:"\u21D5",upDownDoubleArrow2:"\u2B0D",upDownArrow:"\u2195",asterisk:"*",asterism:"\u2042",bulletWhite:"\u25E6",electricArrow:"\u2301",ellipsisLarge:"\u22EF",ellipsisSmall:"\u2026",fullBlock:"\u2588",identicalTo:"\u2261",indicator:ks.symbols.check,leftAngle:"\u2039",mark:"\u203B",minus:"\u2212",multiplication:"\xD7",obelus:"\xF7",percent:"%",pilcrow:"\xB6",pilcrow2:"\u2761",pencilUpRight:"\u2710",pencilDownRight:"\u270E",pencilRight:"\u270F",plus:"+",plusMinus:"\xB1",pointRight:"\u261E",rightAngle:"\u203A",section:"\xA7",hexagon:{off:"\u2B21",on:"\u2B22",disabled:"\u2B22"},ballot:{on:"\u2611",off:"\u2610",disabled:"\u2612"},stars:{on:"\u2605",off:"\u2606",disabled:"\u2606"},folder:{on:"\u25BC",off:"\u25B6",disabled:"\u25B6"},prefix:{pending:ks.symbols.question,submitted:ks.symbols.check,cancelled:ks.symbols.cross},separator:{pending:ks.symbols.pointerSmall,submitted:ks.symbols.middot,cancelled:ks.symbols.middot},radio:{off:Sm?"( )":"\u25EF",on:Sm?"(*)":"\u25C9",disabled:Sm?"(|)":"\u24BE"},numbers:["\u24EA","\u2460","\u2461","\u2462","\u2463","\u2464","\u2465","\u2466","\u2467","\u2468","\u2469","\u246A","\u246B","\u246C","\u246D","\u246E","\u246F","\u2470","\u2471","\u2472","\u2473","\u3251","\u3252","\u3253","\u3254","\u3255","\u3256","\u3257","\u3258","\u3259","\u325A","\u325B","\u325C","\u325D","\u325E","\u325F","\u32B1","\u32B2","\u32B3","\u32B4","\u32B5","\u32B6","\u32B7","\u32B8","\u32B9","\u32BA","\u32BB","\u32BC","\u32BD","\u32BE","\u32BF"]};xm.merge=t=>{let e=b5.merge({},ks.symbols,xm,t.symbols);return delete e.merge,e};dD.exports=xm});var mD=h((Hse,pD)=>{"use strict";var _5=fD(),w5=hD(),E5=Rt();pD.exports=t=>{t.options=E5.merge({},t.options.theme,t.options),t.symbols=w5.merge(t.options),t.styles=_5.merge(t.options)}});var _D=h((vD,bD)=>{"use strict";var gD=process.env.TERM_PROGRAM==="Apple_Terminal",k5=Ir(),Am=Rt(),Mr=bD.exports=vD,Ve="[",yD="\x07",Om=!1,Ws=Mr.code={bell:yD,beep:yD,beginning:`${Ve}G`,down:`${Ve}J`,esc:Ve,getPosition:`${Ve}6n`,hide:`${Ve}?25l`,line:`${Ve}2K`,lineEnd:`${Ve}K`,lineStart:`${Ve}1K`,restorePosition:Ve+(gD?"8":"u"),savePosition:Ve+(gD?"7":"s"),screen:`${Ve}2J`,show:`${Ve}?25h`,up:`${Ve}1J`},Ji=Mr.cursor={get hidden(){return Om},hide(){return Om=!0,Ws.hide},show(){return Om=!1,Ws.show},forward:(t=1)=>`${Ve}${t}C`,backward:(t=1)=>`${Ve}${t}D`,nextLine:(t=1)=>`${Ve}E`.repeat(t),prevLine:(t=1)=>`${Ve}F`.repeat(t),up:(t=1)=>t?`${Ve}${t}A`:"",down:(t=1)=>t?`${Ve}${t}B`:"",right:(t=1)=>t?`${Ve}${t}C`:"",left:(t=1)=>t?`${Ve}${t}D`:"",to(t,e){return e?`${Ve}${e+1};${t+1}H`:`${Ve}${t+1}G`},move(t=0,e=0){let r="";return r+=t<0?Ji.left(-t):t>0?Ji.right(t):"",r+=e<0?Ji.up(-e):e>0?Ji.down(e):"",r},restore(t={}){let{after:e,cursor:r,initial:s,input:i,prompt:n,size:a,value:o}=t;if(s=Am.isPrimitive(s)?String(s):"",i=Am.isPrimitive(i)?String(i):"",o=Am.isPrimitive(o)?String(o):"",a){let u=Mr.cursor.up(a)+Mr.cursor.to(n.length),l=i.length-r;return l>0&&(u+=Mr.cursor.left(l)),u}if(o||e){let u=!i&&!!s?-s.length:-i.length+r;return e&&(u-=e.length),i===""&&s&&!n.includes(s)&&(u+=s.length),Mr.cursor.move(u)}}},Tm=Mr.erase={screen:Ws.screen,up:Ws.up,down:Ws.down,line:Ws.line,lineEnd:Ws.lineEnd,lineStart:Ws.lineStart,lines(t){let e="";for(let r=0;r<t;r++)e+=Mr.erase.line+(r<t-1?Mr.cursor.up(1):"");return t&&(e+=Mr.code.beginning),e}};Mr.clear=(t="",e=process.stdout.columns)=>{if(!e)return Tm.line+Ji.to(0);let r=n=>[...k5.unstyle(n)].length,s=t.split(/\r?\n/),i=0;for(let n of s)i+=1+Math.floor(Math.max(r(n)-1,0)/e);return(Tm.line+Ji.prevLine()).repeat(i-1)+Tm.line+Ji.to(0)}});var ua=h((Use,ED)=>{"use strict";var D5=require("events"),wD=Ir(),Rm=iD(),C5=aD(),S5=lD(),x5=mD(),zt=Rt(),Qi=_D(),Ec=class extends D5{constructor(e={}){super();this.name=e.name,this.type=e.type,this.options=e,x5(this),C5(this),this.state=new S5(this),this.initial=[e.initial,e.default].find(r=>r!=null),this.stdout=e.stdout||process.stdout,this.stdin=e.stdin||process.stdin,this.scale=e.scale||1,this.term=this.options.term||process.env.TERM_PROGRAM,this.margin=O5(this.options.margin),this.setMaxListeners(0),A5(this)}async keypress(e,r={}){this.keypressed=!0;let s=Rm.action(e,Rm(e,r),this.options.actions);this.state.keypress=s,this.emit("keypress",e,s),this.emit("state",this.state.clone());let i=this.options[s.action]||this[s.action]||this.dispatch;if(typeof i=="function")return await i.call(this,e,s);this.alert()}alert(){delete this.state.alert,this.options.show===!1?this.emit("alert"):this.stdout.write(Qi.code.beep)}cursorHide(){this.stdout.write(Qi.cursor.hide()),zt.onExit(()=>this.cursorShow())}cursorShow(){this.stdout.write(Qi.cursor.show())}write(e){!e||(this.stdout&&this.state.show!==!1&&this.stdout.write(e),this.state.buffer+=e)}clear(e=0){let r=this.state.buffer;this.state.buffer="",!(!r&&!e||this.options.show===!1)&&this.stdout.write(Qi.cursor.down(e)+Qi.clear(r,this.width))}restore(){if(this.state.closed||this.options.show===!1)return;let{prompt:e,after:r,rest:s}=this.sections(),{cursor:i,initial:n="",input:a="",value:o=""}=this,u=this.state.size=s.length,l={after:r,cursor:i,initial:n,input:a,prompt:e,size:u,value:o},c=Qi.cursor.restore(l);c&&this.stdout.write(c)}sections(){let{buffer:e,input:r,prompt:s}=this.state;s=wD.unstyle(s);let i=wD.unstyle(e),n=i.indexOf(s),a=i.slice(0,n),u=i.slice(n).split(`
|
|
54
|
-
`),l=u[0],c=u[u.length-1],d=(s+(r?" "+r:"")).length,
|
|
50
|
+
`+b+"]"}return i.pop(),n=b,w}}});var B1=h((Ese,q1)=>{var s5=I1(),i5=N1(),n5={parse:s5,stringify:i5};q1.exports=n5});var X1=h((Fse,nu)=>{"use strict";var a5=process.env.TERM_PROGRAM==="Hyper",o5=process.platform==="win32",Y1=process.platform==="linux",Em={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},J1=Object.assign({},Em,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",question:"?",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),Q1=Object.assign({},Em,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",question:"?",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:Y1?"\u25B8":"\u276F",pointerSmall:Y1?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});nu.exports=o5&&!a5?J1:Q1;Reflect.defineProperty(nu.exports,"common",{enumerable:!1,value:Em});Reflect.defineProperty(nu.exports,"windows",{enumerable:!1,value:J1});Reflect.defineProperty(nu.exports,"other",{enumerable:!1,value:Q1})});var Ir=h((jse,km)=>{"use strict";var u5=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),l5=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,Z1=()=>{let t={enabled:!0,visible:!0,styles:{},keys:{}};"FORCE_COLOR"in process.env&&(t.enabled=process.env.FORCE_COLOR!=="0");let e=n=>{let a=n.open=`[${n.codes[0]}m`,o=n.close=`[${n.codes[1]}m`,u=n.regex=new RegExp(`\\u001b\\[${n.codes[1]}m`,"g");return n.wrap=(l,c)=>{l.includes(o)&&(l=l.replace(u,o+a));let f=a+l+o;return c?f.replace(/\r*\n/g,`${o}$&${a}`):f},n},r=(n,a,o)=>typeof n=="function"?n(a):n.wrap(a,o),s=(n,a)=>{if(n===""||n==null)return"";if(t.enabled===!1)return n;if(t.visible===!1)return"";let o=""+n,u=o.includes(`
|
|
51
|
+
`),l=a.length;for(l>0&&a.includes("unstyle")&&(a=[...new Set(["unstyle",...a])].reverse());l-- >0;)o=r(t.styles[a[l]],o,u);return o},i=(n,a,o)=>{t.styles[n]=e({name:n,codes:a}),(t.keys[o]||(t.keys[o]=[])).push(n),Reflect.defineProperty(t,n,{configurable:!0,enumerable:!0,set(l){t.alias(n,l)},get(){let l=c=>s(c,l.stack);return Reflect.setPrototypeOf(l,t),l.stack=this.stack?this.stack.concat(n):[n],l}})};return i("reset",[0,0],"modifier"),i("bold",[1,22],"modifier"),i("dim",[2,22],"modifier"),i("italic",[3,23],"modifier"),i("underline",[4,24],"modifier"),i("inverse",[7,27],"modifier"),i("hidden",[8,28],"modifier"),i("strikethrough",[9,29],"modifier"),i("black",[30,39],"color"),i("red",[31,39],"color"),i("green",[32,39],"color"),i("yellow",[33,39],"color"),i("blue",[34,39],"color"),i("magenta",[35,39],"color"),i("cyan",[36,39],"color"),i("white",[37,39],"color"),i("gray",[90,39],"color"),i("grey",[90,39],"color"),i("bgBlack",[40,49],"bg"),i("bgRed",[41,49],"bg"),i("bgGreen",[42,49],"bg"),i("bgYellow",[43,49],"bg"),i("bgBlue",[44,49],"bg"),i("bgMagenta",[45,49],"bg"),i("bgCyan",[46,49],"bg"),i("bgWhite",[47,49],"bg"),i("blackBright",[90,39],"bright"),i("redBright",[91,39],"bright"),i("greenBright",[92,39],"bright"),i("yellowBright",[93,39],"bright"),i("blueBright",[94,39],"bright"),i("magentaBright",[95,39],"bright"),i("cyanBright",[96,39],"bright"),i("whiteBright",[97,39],"bright"),i("bgBlackBright",[100,49],"bgBright"),i("bgRedBright",[101,49],"bgBright"),i("bgGreenBright",[102,49],"bgBright"),i("bgYellowBright",[103,49],"bgBright"),i("bgBlueBright",[104,49],"bgBright"),i("bgMagentaBright",[105,49],"bgBright"),i("bgCyanBright",[106,49],"bgBright"),i("bgWhiteBright",[107,49],"bgBright"),t.ansiRegex=l5,t.hasColor=t.hasAnsi=n=>(t.ansiRegex.lastIndex=0,typeof n=="string"&&n!==""&&t.ansiRegex.test(n)),t.alias=(n,a)=>{let o=typeof a=="string"?t[a]:a;if(typeof o!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");o.stack||(Reflect.defineProperty(o,"name",{value:n}),t.styles[n]=o,o.stack=[n]),Reflect.defineProperty(t,n,{configurable:!0,enumerable:!0,set(u){t.alias(n,u)},get(){let u=l=>s(l,u.stack);return Reflect.setPrototypeOf(u,t),u.stack=this.stack?this.stack.concat(o.stack):o.stack,u}})},t.theme=n=>{if(!u5(n))throw new TypeError("Expected theme to be an object");for(let a of Object.keys(n))t.alias(a,n[a]);return t},t.alias("unstyle",n=>typeof n=="string"&&n!==""?(t.ansiRegex.lastIndex=0,n.replace(t.ansiRegex,"")):""),t.alias("noop",n=>n),t.none=t.clear=t.noop,t.stripColor=t.unstyle,t.symbols=X1(),t.define=i,t};km.exports=Z1();km.exports.create=Z1});var Rt=h(ce=>{"use strict";var c5=Object.prototype.toString,pr=Ir(),eD=!1,Dm=[],tD={yellow:"blue",cyan:"red",green:"magenta",black:"white",blue:"yellow",red:"cyan",magenta:"green",white:"black"};ce.longest=(t,e)=>t.reduce((r,s)=>Math.max(r,e?s[e].length:s.length),0);ce.hasColor=t=>!!t&&pr.hasColor(t);var _c=ce.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);ce.nativeType=t=>c5.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"");ce.isAsyncFn=t=>ce.nativeType(t)==="asyncfunction";ce.isPrimitive=t=>t!=null&&typeof t!="object"&&typeof t!="function";ce.resolve=(t,e,...r)=>typeof e=="function"?e.call(t,...r):e;ce.scrollDown=(t=[])=>[...t.slice(1),t[0]];ce.scrollUp=(t=[])=>[t.pop(),...t];ce.reorder=(t=[])=>{let e=t.slice();return e.sort((r,s)=>r.index>s.index?1:r.index<s.index?-1:0),e};ce.swap=(t,e,r)=>{let s=t.length,i=r===s?0:r<0?s-1:r,n=t[e];t[e]=t[i],t[i]=n};ce.width=(t,e=80)=>{let r=t&&t.columns?t.columns:e;return t&&typeof t.getWindowSize=="function"&&(r=t.getWindowSize()[0]),process.platform==="win32"?r-1:r};ce.height=(t,e=20)=>{let r=t&&t.rows?t.rows:e;return t&&typeof t.getWindowSize=="function"&&(r=t.getWindowSize()[1]),r};ce.wordWrap=(t,e={})=>{if(!t)return t;typeof e=="number"&&(e={width:e});let{indent:r="",newline:s=`
|
|
52
|
+
`+r,width:i=80}=e;i-=((s+r).match(/[^\S\n]/g)||[]).length;let a=`.{1,${i}}([\\s\\u200B]+|$)|[^\\s\\u200B]+?([\\s\\u200B]+|$)`,o=t.trim(),u=new RegExp(a,"g"),l=o.match(u)||[];return l=l.map(c=>c.replace(/\n$/,"")),e.padEnd&&(l=l.map(c=>c.padEnd(i," "))),e.padStart&&(l=l.map(c=>c.padStart(i," "))),r+l.join(s)};ce.unmute=t=>{let e=t.stack.find(s=>pr.keys.color.includes(s));return e?pr[e]:t.stack.find(s=>s.slice(2)==="bg")?pr[e.slice(2)]:s=>s};ce.pascal=t=>t?t[0].toUpperCase()+t.slice(1):"";ce.inverse=t=>{if(!t||!t.stack)return t;let e=t.stack.find(s=>pr.keys.color.includes(s));if(e){let s=pr["bg"+ce.pascal(e)];return s?s.black:t}let r=t.stack.find(s=>s.slice(0,2)==="bg");return r?pr[r.slice(2).toLowerCase()]||t:pr.none};ce.complement=t=>{if(!t||!t.stack)return t;let e=t.stack.find(s=>pr.keys.color.includes(s)),r=t.stack.find(s=>s.slice(0,2)==="bg");if(e&&!r)return pr[tD[e]||e];if(r){let s=r.slice(2).toLowerCase(),i=tD[s];return i&&pr["bg"+ce.pascal(i)]||t}return pr.none};ce.meridiem=t=>{let e=t.getHours(),r=t.getMinutes(),s=e>=12?"pm":"am";e=e%12;let i=e===0?12:e,n=r<10?"0"+r:r;return i+":"+n+" "+s};ce.set=(t={},e="",r)=>e.split(".").reduce((s,i,n,a)=>{let o=a.length-1>n?s[i]||{}:r;return!ce.isObject(o)&&n<a.length-1&&(o={}),s[i]=o},t);ce.get=(t={},e="",r)=>{let s=t[e]==null?e.split(".").reduce((i,n)=>i&&i[n],t):t[e];return s??r};ce.mixin=(t,e)=>{if(!_c(t))return e;if(!_c(e))return t;for(let r of Object.keys(e)){let s=Object.getOwnPropertyDescriptor(e,r);if(s.hasOwnProperty("value"))if(t.hasOwnProperty(r)&&_c(s.value)){let i=Object.getOwnPropertyDescriptor(t,r);_c(i.value)?t[r]=ce.merge({},t[r],e[r]):Reflect.defineProperty(t,r,s)}else Reflect.defineProperty(t,r,s);else Reflect.defineProperty(t,r,s)}return t};ce.merge=(...t)=>{let e={};for(let r of t)ce.mixin(e,r);return e};ce.mixinEmitter=(t,e)=>{let r=e.constructor.prototype;for(let s of Object.keys(r)){let i=r[s];typeof i=="function"?ce.define(t,s,i.bind(e)):ce.define(t,s,i)}};ce.onExit=t=>{let e=(r,s)=>{eD||(eD=!0,Dm.forEach(i=>i()),r===!0&&process.exit(128+s))};Dm.length===0&&(process.once("SIGTERM",e.bind(null,!0,15)),process.once("SIGINT",e.bind(null,!0,2)),process.once("exit",e)),Dm.push(t)};ce.define=(t,e,r)=>{Reflect.defineProperty(t,e,{value:r})};ce.defineExport=(t,e,r)=>{let s;Reflect.defineProperty(t,e,{enumerable:!0,configurable:!0,set(i){s=i},get(){return s?s():r()}})}});var rD=h(oa=>{"use strict";oa.ctrl={a:"first",b:"backward",c:"cancel",d:"deleteForward",e:"last",f:"forward",g:"reset",i:"tab",k:"cutForward",l:"reset",n:"newItem",m:"cancel",j:"submit",p:"search",r:"remove",s:"save",u:"undo",w:"cutLeft",x:"toggleCursor",v:"paste"};oa.shift={up:"shiftUp",down:"shiftDown",left:"shiftLeft",right:"shiftRight",tab:"prev"};oa.fn={up:"pageUp",down:"pageDown",left:"pageLeft",right:"pageRight",delete:"deleteForward"};oa.option={b:"backward",f:"forward",d:"cutRight",left:"cutLeft",up:"altUp",down:"altDown"};oa.keys={pageup:"pageUp",pagedown:"pageDown",home:"home",end:"end",cancel:"cancel",delete:"deleteForward",backspace:"delete",down:"down",enter:"submit",escape:"cancel",left:"left",space:"space",number:"number",return:"submit",right:"right",tab:"next",up:"up"}});var nD=h((Nse,iD)=>{"use strict";var sD=require("readline"),f5=rD(),d5=/^(?:\x1b)([a-zA-Z0-9])$/,h5=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,p5={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"};function m5(t){return["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(t)}function g5(t){return["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(t)}var wc=(t="",e={})=>{let r,s={name:e.name,ctrl:!1,meta:!1,shift:!1,option:!1,sequence:t,raw:t,...e};if(Buffer.isBuffer(t)?t[0]>127&&t[1]===void 0?(t[0]-=128,t=""+String(t)):t=String(t):t!==void 0&&typeof t!="string"?t=String(t):t||(t=s.sequence||""),s.sequence=s.sequence||t||s.name,t==="\r")s.raw=void 0,s.name="return";else if(t===`
|
|
53
|
+
`)s.name="enter";else if(t===" ")s.name="tab";else if(t==="\b"||t==="\x7F"||t==="\x7F"||t==="\b")s.name="backspace",s.meta=t.charAt(0)==="";else if(t===""||t==="")s.name="escape",s.meta=t.length===2;else if(t===" "||t===" ")s.name="space",s.meta=t.length===2;else if(t<="")s.name=String.fromCharCode(t.charCodeAt(0)+"a".charCodeAt(0)-1),s.ctrl=!0;else if(t.length===1&&t>="0"&&t<="9")s.name="number";else if(t.length===1&&t>="a"&&t<="z")s.name=t;else if(t.length===1&&t>="A"&&t<="Z")s.name=t.toLowerCase(),s.shift=!0;else if(r=d5.exec(t))s.meta=!0,s.shift=/^[A-Z]$/.test(r[1]);else if(r=h5.exec(t)){let i=[...t];i[0]===""&&i[1]===""&&(s.option=!0);let n=[r[1],r[2],r[4],r[6]].filter(Boolean).join(""),a=(r[3]||r[5]||1)-1;s.ctrl=!!(a&4),s.meta=!!(a&10),s.shift=!!(a&1),s.code=n,s.name=p5[n],s.shift=m5(n)||s.shift,s.ctrl=g5(n)||s.ctrl}return s};wc.listen=(t={},e)=>{let{stdin:r}=t;if(!r||r!==process.stdin&&!r.isTTY)throw new Error("Invalid stream passed");let s=sD.createInterface({terminal:!0,input:r});sD.emitKeypressEvents(r,s);let i=(o,u)=>e(o,wc(o,u),s),n=r.isRaw;return r.isTTY&&r.setRawMode(!0),r.on("keypress",i),s.resume(),()=>{r.isTTY&&r.setRawMode(n),r.removeListener("keypress",i),s.pause(),s.close()}};wc.action=(t,e,r)=>{let s={...f5,...r};return e.ctrl?(e.action=s.ctrl[e.name],e):e.option&&s.option?(e.action=s.option[e.name],e):e.shift?(e.action=s.shift[e.name],e):(e.action=s.keys[e.name],e)};iD.exports=wc});var oD=h((qse,aD)=>{"use strict";aD.exports=t=>{t.timers=t.timers||{};let e=t.options.timers;if(!!e)for(let r of Object.keys(e)){let s=e[r];typeof s=="number"&&(s={interval:s}),y5(t,r,s)}};function y5(t,e,r={}){let s=t.timers[e]={name:e,start:Date.now(),ms:0,tick:0},i=r.interval||120;s.frames=r.frames||[],s.loading=!0;let n=setInterval(()=>{s.ms=Date.now()-s.start,s.tick++,t.render()},i);return s.stop=()=>{s.loading=!1,clearInterval(n)},Reflect.defineProperty(s,"interval",{value:n}),t.once("close",()=>s.stop()),s.stop}});var cD=h((Bse,lD)=>{"use strict";var{define:v5,width:b5}=Rt(),uD=class{constructor(e){let r=e.options;v5(this,"_prompt",e),this.type=e.type,this.name=e.name,this.message="",this.header="",this.footer="",this.error="",this.hint="",this.input="",this.cursor=0,this.index=0,this.lines=0,this.tick=0,this.prompt="",this.buffer="",this.width=b5(r.stdout||process.stdout),Object.assign(this,r),this.name=this.name||this.message,this.message=this.message||this.name,this.symbols=e.symbols,this.styles=e.styles,this.required=new Set,this.cancelled=!1,this.submitted=!1}clone(){let e={...this};return e.status=this.status,e.buffer=Buffer.from(e.buffer),delete e.clone,e}set color(e){this._color=e}get color(){let e=this.prompt.styles;if(this.cancelled)return e.cancelled;if(this.submitted)return e.submitted;let r=this._color||e[this.status];return typeof r=="function"?r:e.pending}set loading(e){this._loading=e}get loading(){return typeof this._loading=="boolean"?this._loading:this.loadingChoices?"choices":!1}get status(){return this.cancelled?"cancelled":this.submitted?"submitted":"pending"}};lD.exports=uD});var dD=h((Lse,fD)=>{"use strict";var Cm=Rt(),bt=Ir(),Sm={default:bt.noop,noop:bt.noop,set inverse(t){this._inverse=t},get inverse(){return this._inverse||Cm.inverse(this.primary)},set complement(t){this._complement=t},get complement(){return this._complement||Cm.complement(this.primary)},primary:bt.cyan,success:bt.green,danger:bt.magenta,strong:bt.bold,warning:bt.yellow,muted:bt.dim,disabled:bt.gray,dark:bt.dim.gray,underline:bt.underline,set info(t){this._info=t},get info(){return this._info||this.primary},set em(t){this._em=t},get em(){return this._em||this.primary.underline},set heading(t){this._heading=t},get heading(){return this._heading||this.muted.underline},set pending(t){this._pending=t},get pending(){return this._pending||this.primary},set submitted(t){this._submitted=t},get submitted(){return this._submitted||this.success},set cancelled(t){this._cancelled=t},get cancelled(){return this._cancelled||this.danger},set typing(t){this._typing=t},get typing(){return this._typing||this.dim},set placeholder(t){this._placeholder=t},get placeholder(){return this._placeholder||this.primary.dim},set highlight(t){this._highlight=t},get highlight(){return this._highlight||this.inverse}};Sm.merge=(t={})=>{t.styles&&typeof t.styles.enabled=="boolean"&&(bt.enabled=t.styles.enabled),t.styles&&typeof t.styles.visible=="boolean"&&(bt.visible=t.styles.visible);let e=Cm.merge({},Sm,t.styles);delete e.merge;for(let r of Object.keys(bt))e.hasOwnProperty(r)||Reflect.defineProperty(e,r,{get:()=>bt[r]});for(let r of Object.keys(bt.styles))e.hasOwnProperty(r)||Reflect.defineProperty(e,r,{get:()=>bt[r]});return e};fD.exports=Sm});var pD=h((Hse,hD)=>{"use strict";var xm=process.platform==="win32",ks=Ir(),_5=Rt(),Am={...ks.symbols,upDownDoubleArrow:"\u21D5",upDownDoubleArrow2:"\u2B0D",upDownArrow:"\u2195",asterisk:"*",asterism:"\u2042",bulletWhite:"\u25E6",electricArrow:"\u2301",ellipsisLarge:"\u22EF",ellipsisSmall:"\u2026",fullBlock:"\u2588",identicalTo:"\u2261",indicator:ks.symbols.check,leftAngle:"\u2039",mark:"\u203B",minus:"\u2212",multiplication:"\xD7",obelus:"\xF7",percent:"%",pilcrow:"\xB6",pilcrow2:"\u2761",pencilUpRight:"\u2710",pencilDownRight:"\u270E",pencilRight:"\u270F",plus:"+",plusMinus:"\xB1",pointRight:"\u261E",rightAngle:"\u203A",section:"\xA7",hexagon:{off:"\u2B21",on:"\u2B22",disabled:"\u2B22"},ballot:{on:"\u2611",off:"\u2610",disabled:"\u2612"},stars:{on:"\u2605",off:"\u2606",disabled:"\u2606"},folder:{on:"\u25BC",off:"\u25B6",disabled:"\u25B6"},prefix:{pending:ks.symbols.question,submitted:ks.symbols.check,cancelled:ks.symbols.cross},separator:{pending:ks.symbols.pointerSmall,submitted:ks.symbols.middot,cancelled:ks.symbols.middot},radio:{off:xm?"( )":"\u25EF",on:xm?"(*)":"\u25C9",disabled:xm?"(|)":"\u24BE"},numbers:["\u24EA","\u2460","\u2461","\u2462","\u2463","\u2464","\u2465","\u2466","\u2467","\u2468","\u2469","\u246A","\u246B","\u246C","\u246D","\u246E","\u246F","\u2470","\u2471","\u2472","\u2473","\u3251","\u3252","\u3253","\u3254","\u3255","\u3256","\u3257","\u3258","\u3259","\u325A","\u325B","\u325C","\u325D","\u325E","\u325F","\u32B1","\u32B2","\u32B3","\u32B4","\u32B5","\u32B6","\u32B7","\u32B8","\u32B9","\u32BA","\u32BB","\u32BC","\u32BD","\u32BE","\u32BF"]};Am.merge=t=>{let e=_5.merge({},ks.symbols,Am,t.symbols);return delete e.merge,e};hD.exports=Am});var gD=h((Use,mD)=>{"use strict";var w5=dD(),E5=pD(),k5=Rt();mD.exports=t=>{t.options=k5.merge({},t.options.theme,t.options),t.symbols=E5.merge(t.options),t.styles=w5.merge(t.options)}});var wD=h((bD,_D)=>{"use strict";var yD=process.env.TERM_PROGRAM==="Apple_Terminal",D5=Ir(),Om=Rt(),Mr=_D.exports=bD,Ve="[",vD="\x07",Tm=!1,Ws=Mr.code={bell:vD,beep:vD,beginning:`${Ve}G`,down:`${Ve}J`,esc:Ve,getPosition:`${Ve}6n`,hide:`${Ve}?25l`,line:`${Ve}2K`,lineEnd:`${Ve}K`,lineStart:`${Ve}1K`,restorePosition:Ve+(yD?"8":"u"),savePosition:Ve+(yD?"7":"s"),screen:`${Ve}2J`,show:`${Ve}?25h`,up:`${Ve}1J`},Ji=Mr.cursor={get hidden(){return Tm},hide(){return Tm=!0,Ws.hide},show(){return Tm=!1,Ws.show},forward:(t=1)=>`${Ve}${t}C`,backward:(t=1)=>`${Ve}${t}D`,nextLine:(t=1)=>`${Ve}E`.repeat(t),prevLine:(t=1)=>`${Ve}F`.repeat(t),up:(t=1)=>t?`${Ve}${t}A`:"",down:(t=1)=>t?`${Ve}${t}B`:"",right:(t=1)=>t?`${Ve}${t}C`:"",left:(t=1)=>t?`${Ve}${t}D`:"",to(t,e){return e?`${Ve}${e+1};${t+1}H`:`${Ve}${t+1}G`},move(t=0,e=0){let r="";return r+=t<0?Ji.left(-t):t>0?Ji.right(t):"",r+=e<0?Ji.up(-e):e>0?Ji.down(e):"",r},restore(t={}){let{after:e,cursor:r,initial:s,input:i,prompt:n,size:a,value:o}=t;if(s=Om.isPrimitive(s)?String(s):"",i=Om.isPrimitive(i)?String(i):"",o=Om.isPrimitive(o)?String(o):"",a){let u=Mr.cursor.up(a)+Mr.cursor.to(n.length),l=i.length-r;return l>0&&(u+=Mr.cursor.left(l)),u}if(o||e){let u=!i&&!!s?-s.length:-i.length+r;return e&&(u-=e.length),i===""&&s&&!n.includes(s)&&(u+=s.length),Mr.cursor.move(u)}}},Rm=Mr.erase={screen:Ws.screen,up:Ws.up,down:Ws.down,line:Ws.line,lineEnd:Ws.lineEnd,lineStart:Ws.lineStart,lines(t){let e="";for(let r=0;r<t;r++)e+=Mr.erase.line+(r<t-1?Mr.cursor.up(1):"");return t&&(e+=Mr.code.beginning),e}};Mr.clear=(t="",e=process.stdout.columns)=>{if(!e)return Rm.line+Ji.to(0);let r=n=>[...D5.unstyle(n)].length,s=t.split(/\r?\n/),i=0;for(let n of s)i+=1+Math.floor(Math.max(r(n)-1,0)/e);return(Rm.line+Ji.prevLine()).repeat(i-1)+Rm.line+Ji.to(0)}});var ua=h((Gse,kD)=>{"use strict";var C5=require("events"),ED=Ir(),Pm=nD(),S5=oD(),x5=cD(),A5=gD(),zt=Rt(),Qi=wD(),Ec=class extends C5{constructor(e={}){super();this.name=e.name,this.type=e.type,this.options=e,A5(this),S5(this),this.state=new x5(this),this.initial=[e.initial,e.default].find(r=>r!=null),this.stdout=e.stdout||process.stdout,this.stdin=e.stdin||process.stdin,this.scale=e.scale||1,this.term=this.options.term||process.env.TERM_PROGRAM,this.margin=T5(this.options.margin),this.setMaxListeners(0),O5(this)}async keypress(e,r={}){this.keypressed=!0;let s=Pm.action(e,Pm(e,r),this.options.actions);this.state.keypress=s,this.emit("keypress",e,s),this.emit("state",this.state.clone());let i=this.options[s.action]||this[s.action]||this.dispatch;if(typeof i=="function")return await i.call(this,e,s);this.alert()}alert(){delete this.state.alert,this.options.show===!1?this.emit("alert"):this.stdout.write(Qi.code.beep)}cursorHide(){this.stdout.write(Qi.cursor.hide()),zt.onExit(()=>this.cursorShow())}cursorShow(){this.stdout.write(Qi.cursor.show())}write(e){!e||(this.stdout&&this.state.show!==!1&&this.stdout.write(e),this.state.buffer+=e)}clear(e=0){let r=this.state.buffer;this.state.buffer="",!(!r&&!e||this.options.show===!1)&&this.stdout.write(Qi.cursor.down(e)+Qi.clear(r,this.width))}restore(){if(this.state.closed||this.options.show===!1)return;let{prompt:e,after:r,rest:s}=this.sections(),{cursor:i,initial:n="",input:a="",value:o=""}=this,u=this.state.size=s.length,l={after:r,cursor:i,initial:n,input:a,prompt:e,size:u,value:o},c=Qi.cursor.restore(l);c&&this.stdout.write(c)}sections(){let{buffer:e,input:r,prompt:s}=this.state;s=ED.unstyle(s);let i=ED.unstyle(e),n=i.indexOf(s),a=i.slice(0,n),u=i.slice(n).split(`
|
|
54
|
+
`),l=u[0],c=u[u.length-1],d=(s+(r?" "+r:"")).length,p=d<l.length?l.slice(d+1):"";return{header:a,prompt:l,after:p,rest:u.slice(1),last:c}}async submit(){this.state.submitted=!0,this.state.validating=!0,this.options.onSubmit&&await this.options.onSubmit.call(this,this.name,this.value,this);let e=this.state.error||await this.validate(this.value,this.state);if(e!==!0){let r=`
|
|
55
55
|
`+this.symbols.pointer+" ";typeof e=="string"?r+=e.trim():r+="Invalid input",this.state.error=`
|
|
56
56
|
`+this.styles.danger(r),this.state.submitted=!1,await this.render(),await this.alert(),this.state.validating=!1,this.state.error=void 0;return}this.state.validating=!1,await this.render(),await this.close(),this.value=await this.result(this.value),this.emit("submit",this.value)}async cancel(e){this.state.cancelled=this.state.submitted=!0,await this.render(),await this.close(),typeof this.options.onCancel=="function"&&await this.options.onCancel.call(this,this.name,this.value,this),this.emit("cancel",await this.error(e))}async close(){this.state.closed=!0;try{let e=this.sections(),r=Math.ceil(e.prompt.length/this.width);e.rest&&this.write(Qi.cursor.down(e.rest.length)),this.write(`
|
|
57
|
-
`.repeat(r))}catch{}this.emit("close")}start(){!this.stop&&this.options.show!==!1&&(this.stop=
|
|
58
|
-
`:" ",s=[];for(let i=0;i<4;i++){let n=r(i);e[i]?s.push(n.repeat(e[i])):s.push("")}return s}ED.exports=Ec});var CD=h((Gse,DD)=>{"use strict";var T5=Rt(),kD={default(t,e){return e},checkbox(t,e){throw new Error("checkbox role is not implemented yet")},editable(t,e){throw new Error("editable role is not implemented yet")},expandable(t,e){throw new Error("expandable role is not implemented yet")},heading(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||"",e},input(t,e){throw new Error("input role is not implemented yet")},option(t,e){return kD.default(t,e)},radio(t,e){throw new Error("radio role is not implemented yet")},separator(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||t.symbols.line.repeat(5),e},spacer(t,e){return e}};DD.exports=(t,e={})=>{let r=T5.merge({},kD,e.roles);return r[t]||r.default}});var au=h((Vse,OD)=>{"use strict";var R5=Ir(),P5=ua(),$5=CD(),kc=Rt(),{reorder:Pm,scrollUp:F5,scrollDown:j5,isObject:SD,swap:I5}=kc,xD=class extends P5{constructor(e){super(e);this.cursorHide(),this.maxSelected=e.maxSelected||1/0,this.multiple=e.multiple||!1,this.initial=e.initial||0,this.delay=e.delay||0,this.longest=0,this.num=""}async initialize(){typeof this.options.initial=="function"&&(this.initial=await this.options.initial.call(this)),await this.reset(!0),await super.initialize()}async reset(){let{choices:e,initial:r,autofocus:s,suggest:i}=this.options;if(this.state._choices=[],this.state.choices=[],this.choices=await Promise.all(await this.toChoices(e)),this.choices.forEach(n=>n.enabled=!1),typeof i!="function"&&this.selectable.length===0)throw new Error("At least one choice must be selectable");SD(r)&&(r=Object.keys(r)),Array.isArray(r)?(s!=null&&(this.index=this.findIndex(s)),r.forEach(n=>this.enable(this.find(n))),await this.render()):(s!=null&&(r=s),typeof r=="string"&&(r=this.findIndex(r)),typeof r=="number"&&r>-1&&(this.index=Math.max(0,Math.min(r,this.choices.length)),this.enable(this.find(this.index)))),this.isDisabled(this.focused)&&await this.down()}async toChoices(e,r){this.state.loadingChoices=!0;let s=[],i=0,n=async(a,o)=>{typeof a=="function"&&(a=await a.call(this)),a instanceof Promise&&(a=await a);for(let u=0;u<a.length;u++){let l=a[u]=await this.toChoice(a[u],i++,o);s.push(l),l.choices&&await n(l.choices,l)}return s};return n(e,r).then(a=>(this.state.loadingChoices=!1,a))}async toChoice(e,r,s){if(typeof e=="function"&&(e=await e.call(this,this)),e instanceof Promise&&(e=await e),typeof e=="string"&&(e={name:e}),e.normalized)return e;e.normalized=!0;let i=e.value;if(e=$5(e.role,this.options)(this,e),typeof e.disabled=="string"&&!e.hint&&(e.hint=e.disabled,e.disabled=!0),e.disabled===!0&&e.hint==null&&(e.hint="(disabled)"),e.index!=null)return e;e.name=e.name||e.key||e.title||e.value||e.message,e.message=e.message||e.name||"",e.value=[e.value,e.name].find(this.isValue.bind(this)),e.input="",e.index=r,e.cursor=0,kc.define(e,"parent",s),e.level=s?s.level+1:1,e.indent==null&&(e.indent=s?s.indent+" ":e.indent||""),e.path=s?s.path+"."+e.name:e.name,e.enabled=!!(this.multiple&&!this.isDisabled(e)&&(e.enabled||this.isSelected(e))),this.isDisabled(e)||(this.longest=Math.max(this.longest,R5.unstyle(e.message).length));let a={...e};return e.reset=(o=a.input,u=a.value)=>{for(let l of Object.keys(a))e[l]=a[l];e.input=o,e.value=u},i==null&&typeof e.initial=="function"&&(e.input=await e.initial.call(this,this.state,e,r)),e}async onChoice(e,r){this.emit("choice",e,r,this),typeof e.onChoice=="function"&&await e.onChoice.call(this,this.state,e,r)}async addChoice(e,r,s){let i=await this.toChoice(e,r,s);return this.choices.push(i),this.index=this.choices.length-1,this.limit=this.choices.length,i}async newItem(e,r,s){let i={name:"New choice name?",editable:!0,newChoice:!0,...e},n=await this.addChoice(i,r,s);return n.updateChoice=()=>{delete n.newChoice,n.name=n.message=n.input,n.input="",n.cursor=0},this.render()}indent(e){return e.indent==null?e.level>1?" ".repeat(e.level-1):"":e.indent}dispatch(e,r){if(this.multiple&&this[r.name])return this[r.name]();this.alert()}focus(e,r){return typeof r!="boolean"&&(r=e.enabled),r&&!e.enabled&&this.selected.length>=this.maxSelected?this.alert():(this.index=e.index,e.enabled=r&&!this.isDisabled(e),e)}space(){return this.multiple?(this.toggle(this.focused),this.render()):this.alert()}a(){if(this.maxSelected<this.choices.length)return this.alert();let e=this.selectable.every(r=>r.enabled);return this.choices.forEach(r=>r.enabled=!e),this.render()}i(){return this.choices.length-this.selected.length>this.maxSelected?this.alert():(this.choices.forEach(e=>e.enabled=!e.enabled),this.render())}g(e=this.focused){return this.choices.some(r=>!!r.parent)?(this.toggle(e.parent&&!e.choices?e.parent:e),this.render()):this.a()}toggle(e,r){if(!e.enabled&&this.selected.length>=this.maxSelected)return this.alert();typeof r!="boolean"&&(r=!e.enabled),e.enabled=r,e.choices&&e.choices.forEach(i=>this.toggle(i,r));let s=e.parent;for(;s;){let i=s.choices.filter(n=>this.isDisabled(n));s.enabled=i.every(n=>n.enabled===!0),s=s.parent}return AD(this,this.choices),this.emit("toggle",e,this),e}enable(e){return this.selected.length>=this.maxSelected?this.alert():(e.enabled=!this.isDisabled(e),e.choices&&e.choices.forEach(this.enable.bind(this)),e)}disable(e){return e.enabled=!1,e.choices&&e.choices.forEach(this.disable.bind(this)),e}number(e){this.num+=e;let r=s=>{let i=Number(s);if(i>this.choices.length-1)return this.alert();let n=this.focused,a=this.choices.find(o=>i===o.index);if(!a.enabled&&this.selected.length>=this.maxSelected)return this.alert();if(this.visible.indexOf(a)===-1){let o=Pm(this.choices),u=o.indexOf(a);if(n.index>u){let l=o.slice(u,u+this.limit),c=o.filter(f=>!l.includes(f));this.choices=l.concat(c)}else{let l=u-this.limit+1;this.choices=o.slice(l).concat(o.slice(0,l))}}return this.index=this.choices.indexOf(a),this.toggle(this.focused),this.render()};return clearTimeout(this.numberTimeout),new Promise(s=>{let i=this.choices.length,n=this.num,a=(o=!1,u)=>{clearTimeout(this.numberTimeout),o&&(u=r(n)),this.num="",s(u)};if(n==="0"||n.length===1&&Number(n+"0")>i)return a(!0);if(Number(n)>i)return a(!1,this.alert());this.numberTimeout=setTimeout(()=>a(!0),this.delay)})}home(){return this.choices=Pm(this.choices),this.index=0,this.render()}end(){let e=this.choices.length-this.limit,r=Pm(this.choices);return this.choices=r.slice(e).concat(r.slice(0,e)),this.index=this.limit-1,this.render()}first(){return this.index=0,this.render()}last(){return this.index=this.visible.length-1,this.render()}prev(){return this.visible.length<=1?this.alert():this.up()}next(){return this.visible.length<=1?this.alert():this.down()}right(){return this.cursor>=this.input.length?this.alert():(this.cursor++,this.render())}left(){return this.cursor<=0?this.alert():(this.cursor--,this.render())}up(){let e=this.choices.length,r=this.visible.length,s=this.index;return this.options.scroll===!1&&s===0?this.alert():e>r&&s===0?this.scrollUp():(this.index=(s-1%e+e)%e,this.isDisabled()?this.up():this.render())}down(){let e=this.choices.length,r=this.visible.length,s=this.index;return this.options.scroll===!1&&s===r-1?this.alert():e>r&&s===r-1?this.scrollDown():(this.index=(s+1)%e,this.isDisabled()?this.down():this.render())}scrollUp(e=0){return this.choices=F5(this.choices),this.index=e,this.isDisabled()?this.up():this.render()}scrollDown(e=this.visible.length-1){return this.choices=j5(this.choices),this.index=e,this.isDisabled()?this.down():this.render()}async shiftUp(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index-1),await this.up(),this.sorting=!1;return}return this.scrollUp(this.index)}async shiftDown(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index+1),await this.down(),this.sorting=!1;return}return this.scrollDown(this.index)}pageUp(){return this.visible.length<=1?this.alert():(this.limit=Math.max(this.limit-1,0),this.index=Math.min(this.limit-1,this.index),this._limit=this.limit,this.isDisabled()?this.up():this.render())}pageDown(){return this.visible.length>=this.choices.length?this.alert():(this.index=Math.max(0,this.index),this.limit=Math.min(this.limit+1,this.choices.length),this._limit=this.limit,this.isDisabled()?this.down():this.render())}swap(e){I5(this.choices,this.index,e)}isDisabled(e=this.focused){return e&&["disabled","collapsed","hidden","completing","readonly"].some(s=>e[s]===!0)?!0:e&&e.role==="heading"}isEnabled(e=this.focused){if(Array.isArray(e))return e.every(r=>this.isEnabled(r));if(e.choices){let r=e.choices.filter(s=>!this.isDisabled(s));return e.enabled&&r.every(s=>this.isEnabled(s))}return e.enabled&&!this.isDisabled(e)}isChoice(e,r){return e.name===r||e.index===Number(r)}isSelected(e){return Array.isArray(this.initial)?this.initial.some(r=>this.isChoice(e,r)):this.isChoice(e,this.initial)}map(e=[],r="value"){return[].concat(e||[]).reduce((s,i)=>(s[i]=this.find(i,r),s),{})}filter(e,r){let i=typeof e=="function"?e:(o,u)=>[o.name,u].includes(e),a=(this.options.multiple?this.state._choices:this.choices).filter(i);return r?a.map(o=>o[r]):a}find(e,r){if(SD(e))return r?e[r]:e;let i=typeof e=="function"?e:(a,o)=>[a.name,o].includes(e),n=this.choices.find(i);if(n)return r?n[r]:n}findIndex(e){return this.choices.indexOf(this.find(e))}async submit(){let e=this.focused;if(!e)return this.alert();if(e.newChoice)return e.input?(e.updateChoice(),this.render()):this.alert();if(this.choices.some(a=>a.newChoice))return this.alert();let{reorder:r,sort:s}=this.options,i=this.multiple===!0,n=this.selected;return n===void 0?this.alert():(Array.isArray(n)&&r!==!1&&s!==!0&&(n=kc.reorder(n)),this.value=i?n.map(a=>a.name):n.name,super.submit())}set choices(e=[]){this.state._choices=this.state._choices||[],this.state.choices=e;for(let r of e)this.state._choices.some(s=>s.name===r.name)||this.state._choices.push(r);if(!this._initial&&this.options.initial){this._initial=!0;let r=this.initial;if(typeof r=="string"||typeof r=="number"){let s=this.find(r);s&&(this.initial=s.index,this.focus(s,!0))}}}get choices(){return AD(this,this.state.choices||[])}set visible(e){this.state.visible=e}get visible(){return(this.state.visible||this.choices).slice(0,this.limit)}set limit(e){this.state.limit=e}get limit(){let{state:e,options:r,choices:s}=this,i=e.limit||this._limit||r.limit||s.length;return Math.min(i,this.height)}set value(e){super.value=e}get value(){return typeof super.value!="string"&&super.value===this.initial?this.input:super.value}set index(e){this.state.index=e}get index(){return Math.max(0,this.state?this.state.index:0)}get enabled(){return this.filter(this.isEnabled.bind(this))}get focused(){let e=this.choices[this.index];return e&&this.state.submitted&&this.multiple!==!0&&(e.enabled=!0),e}get selectable(){return this.choices.filter(e=>!this.isDisabled(e))}get selected(){return this.multiple?this.enabled:this.focused}};function AD(t,e){if(e instanceof Promise)return e;if(typeof e=="function"){if(kc.isAsyncFn(e))return e;e=e.call(t,t)}for(let r of e){if(Array.isArray(r.choices)){let s=r.choices.filter(i=>!t.isDisabled(i));r.enabled=s.every(i=>i.enabled===!0)}t.isDisabled(r)===!0&&delete r.enabled}return e}OD.exports=xD});var Ks=h((zse,RD)=>{"use strict";var M5=au(),$m=Rt(),TD=class extends M5{constructor(e){super(e);this.emptyError=this.options.emptyError||"No items were selected"}async dispatch(e,r){if(this.multiple)return this[r.name]?await this[r.name](e,r):await super.dispatch(e,r);this.alert()}separator(){if(this.options.separator)return super.separator();let e=this.styles.muted(this.symbols.ellipsis);return this.state.submitted?super.separator():e}pointer(e,r){return!this.multiple||this.options.pointer?super.pointer(e,r):""}indicator(e,r){return this.multiple?super.indicator(e,r):""}choiceMessage(e,r){let s=this.resolve(e.message,this.state,e,r);return e.role==="heading"&&!$m.hasColor(s)&&(s=this.styles.strong(s)),this.resolve(s,this.state,e,r)}choiceSeparator(){return":"}async renderChoice(e,r){await this.onChoice(e,r);let s=this.index===r,i=await this.pointer(e,r),n=await this.indicator(e,r)+(e.pad||""),a=await this.resolve(e.hint,this.state,e,r);a&&!$m.hasColor(a)&&(a=this.styles.muted(a));let o=this.indent(e),u=await this.choiceMessage(e,r),l=()=>[this.margin[3],o+i+n,u,this.margin[1],a].filter(Boolean).join(" ");return e.role==="heading"?l():e.disabled?($m.hasColor(u)||(u=this.styles.disabled(u)),l()):(s&&(u=this.styles.em(u)),l())}async renderChoices(){if(this.state.loading==="choices")return this.styles.warning("Loading choices");if(this.state.submitted)return"";let e=this.visible.map(async(n,a)=>await this.renderChoice(n,a)),r=await Promise.all(e);r.length||r.push(this.styles.danger("No matching choices"));let s=this.margin[0]+r.join(`
|
|
57
|
+
`.repeat(r))}catch{}this.emit("close")}start(){!this.stop&&this.options.show!==!1&&(this.stop=Pm.listen(this,this.keypress.bind(this)),this.once("close",this.stop))}async skip(){return this.skipped=this.options.skip===!0,typeof this.options.skip=="function"&&(this.skipped=await this.options.skip.call(this,this.name,this.value)),this.skipped}async initialize(){let{format:e,options:r,result:s}=this;if(this.format=()=>e.call(this,this.value),this.result=()=>s.call(this,this.value),typeof r.initial=="function"&&(this.initial=await r.initial.call(this,this)),typeof r.onRun=="function"&&await r.onRun.call(this,this),typeof r.onSubmit=="function"){let i=r.onSubmit.bind(this),n=this.submit.bind(this);delete this.options.onSubmit,this.submit=async()=>(await i(this.name,this.value,this),n())}await this.start(),await this.render()}render(){throw new Error("expected prompt to have a custom render method")}run(){return new Promise(async(e,r)=>{if(this.once("submit",e),this.once("cancel",r),await this.skip())return this.render=()=>{},this.submit();await this.initialize(),this.emit("run")})}async element(e,r,s){let{options:i,state:n,symbols:a,timers:o}=this,u=o&&o[e];n.timer=u;let l=i[e]||n[e]||a[e],c=r&&r[e]!=null?r[e]:await l;if(c==="")return c;let f=await this.resolve(c,n,r,s);return!f&&r&&r[e]?this.resolve(l,n,r,s):f}async prefix(){let e=await this.element("prefix")||this.symbols,r=this.timers&&this.timers.prefix,s=this.state;return s.timer=r,zt.isObject(e)&&(e=e[s.status]||e.pending),zt.hasColor(e)?e:(this.styles[s.status]||this.styles.pending)(e)}async message(){let e=await this.element("message");return zt.hasColor(e)?e:this.styles.strong(e)}async separator(){let e=await this.element("separator")||this.symbols,r=this.timers&&this.timers.separator,s=this.state;s.timer=r;let i=e[s.status]||e.pending||s.separator,n=await this.resolve(i,s);return zt.isObject(n)&&(n=n[s.status]||n.pending),zt.hasColor(n)?n:this.styles.muted(n)}async pointer(e,r){let s=await this.element("pointer",e,r);if(typeof s=="string"&&zt.hasColor(s))return s;if(s){let i=this.styles,n=this.index===r,a=n?i.primary:l=>l,o=await this.resolve(s[n?"on":"off"]||s,this.state),u=zt.hasColor(o)?o:a(o);return n?u:" ".repeat(o.length)}}async indicator(e,r){let s=await this.element("indicator",e,r);if(typeof s=="string"&&zt.hasColor(s))return s;if(s){let i=this.styles,n=e.enabled===!0,a=n?i.success:i.dark,o=s[n?"on":"off"]||s;return zt.hasColor(o)?o:a(o)}return""}body(){return null}footer(){if(this.state.status==="pending")return this.element("footer")}header(){if(this.state.status==="pending")return this.element("header")}async hint(){if(this.state.status==="pending"&&!this.isValue(this.state.input)){let e=await this.element("hint");return zt.hasColor(e)?e:this.styles.muted(e)}}error(e){return this.state.submitted?"":e||this.state.error}format(e){return e}result(e){return e}validate(e){return this.options.required===!0?this.isValue(e):!0}isValue(e){return e!=null&&e!==""}resolve(e,...r){return zt.resolve(this,e,...r)}get base(){return Ec.prototype}get style(){return this.styles[this.state.status]}get height(){return this.options.rows||zt.height(this.stdout,25)}get width(){return this.options.columns||zt.width(this.stdout,80)}get size(){return{width:this.width,height:this.height}}set cursor(e){this.state.cursor=e}get cursor(){return this.state.cursor}set input(e){this.state.input=e}get input(){return this.state.input}set value(e){this.state.value=e}get value(){let{input:e,value:r}=this.state,s=[r,e].find(this.isValue.bind(this));return this.isValue(s)?s:this.initial}static get prompt(){return e=>new this(e).run()}};function O5(t){let e=i=>t[i]===void 0||typeof t[i]=="function",r=["actions","choices","initial","margin","roles","styles","symbols","theme","timers","value"],s=["body","footer","error","header","hint","indicator","message","prefix","separator","skip"];for(let i of Object.keys(t.options)){if(r.includes(i)||/^on[A-Z]/.test(i))continue;let n=t.options[i];typeof n=="function"&&e(i)?s.includes(i)||(t[i]=n.bind(t)):typeof t[i]!="function"&&(t[i]=n)}}function T5(t){typeof t=="number"&&(t=[t,t,t,t]);let e=[].concat(t||[]),r=i=>i%2==0?`
|
|
58
|
+
`:" ",s=[];for(let i=0;i<4;i++){let n=r(i);e[i]?s.push(n.repeat(e[i])):s.push("")}return s}kD.exports=Ec});var SD=h((Vse,CD)=>{"use strict";var R5=Rt(),DD={default(t,e){return e},checkbox(t,e){throw new Error("checkbox role is not implemented yet")},editable(t,e){throw new Error("editable role is not implemented yet")},expandable(t,e){throw new Error("expandable role is not implemented yet")},heading(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||"",e},input(t,e){throw new Error("input role is not implemented yet")},option(t,e){return DD.default(t,e)},radio(t,e){throw new Error("radio role is not implemented yet")},separator(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||t.symbols.line.repeat(5),e},spacer(t,e){return e}};CD.exports=(t,e={})=>{let r=R5.merge({},DD,e.roles);return r[t]||r.default}});var au=h((zse,TD)=>{"use strict";var P5=Ir(),$5=ua(),F5=SD(),kc=Rt(),{reorder:$m,scrollUp:j5,scrollDown:I5,isObject:xD,swap:M5}=kc,AD=class extends $5{constructor(e){super(e);this.cursorHide(),this.maxSelected=e.maxSelected||1/0,this.multiple=e.multiple||!1,this.initial=e.initial||0,this.delay=e.delay||0,this.longest=0,this.num=""}async initialize(){typeof this.options.initial=="function"&&(this.initial=await this.options.initial.call(this)),await this.reset(!0),await super.initialize()}async reset(){let{choices:e,initial:r,autofocus:s,suggest:i}=this.options;if(this.state._choices=[],this.state.choices=[],this.choices=await Promise.all(await this.toChoices(e)),this.choices.forEach(n=>n.enabled=!1),typeof i!="function"&&this.selectable.length===0)throw new Error("At least one choice must be selectable");xD(r)&&(r=Object.keys(r)),Array.isArray(r)?(s!=null&&(this.index=this.findIndex(s)),r.forEach(n=>this.enable(this.find(n))),await this.render()):(s!=null&&(r=s),typeof r=="string"&&(r=this.findIndex(r)),typeof r=="number"&&r>-1&&(this.index=Math.max(0,Math.min(r,this.choices.length)),this.enable(this.find(this.index)))),this.isDisabled(this.focused)&&await this.down()}async toChoices(e,r){this.state.loadingChoices=!0;let s=[],i=0,n=async(a,o)=>{typeof a=="function"&&(a=await a.call(this)),a instanceof Promise&&(a=await a);for(let u=0;u<a.length;u++){let l=a[u]=await this.toChoice(a[u],i++,o);s.push(l),l.choices&&await n(l.choices,l)}return s};return n(e,r).then(a=>(this.state.loadingChoices=!1,a))}async toChoice(e,r,s){if(typeof e=="function"&&(e=await e.call(this,this)),e instanceof Promise&&(e=await e),typeof e=="string"&&(e={name:e}),e.normalized)return e;e.normalized=!0;let i=e.value;if(e=F5(e.role,this.options)(this,e),typeof e.disabled=="string"&&!e.hint&&(e.hint=e.disabled,e.disabled=!0),e.disabled===!0&&e.hint==null&&(e.hint="(disabled)"),e.index!=null)return e;e.name=e.name||e.key||e.title||e.value||e.message,e.message=e.message||e.name||"",e.value=[e.value,e.name].find(this.isValue.bind(this)),e.input="",e.index=r,e.cursor=0,kc.define(e,"parent",s),e.level=s?s.level+1:1,e.indent==null&&(e.indent=s?s.indent+" ":e.indent||""),e.path=s?s.path+"."+e.name:e.name,e.enabled=!!(this.multiple&&!this.isDisabled(e)&&(e.enabled||this.isSelected(e))),this.isDisabled(e)||(this.longest=Math.max(this.longest,P5.unstyle(e.message).length));let a={...e};return e.reset=(o=a.input,u=a.value)=>{for(let l of Object.keys(a))e[l]=a[l];e.input=o,e.value=u},i==null&&typeof e.initial=="function"&&(e.input=await e.initial.call(this,this.state,e,r)),e}async onChoice(e,r){this.emit("choice",e,r,this),typeof e.onChoice=="function"&&await e.onChoice.call(this,this.state,e,r)}async addChoice(e,r,s){let i=await this.toChoice(e,r,s);return this.choices.push(i),this.index=this.choices.length-1,this.limit=this.choices.length,i}async newItem(e,r,s){let i={name:"New choice name?",editable:!0,newChoice:!0,...e},n=await this.addChoice(i,r,s);return n.updateChoice=()=>{delete n.newChoice,n.name=n.message=n.input,n.input="",n.cursor=0},this.render()}indent(e){return e.indent==null?e.level>1?" ".repeat(e.level-1):"":e.indent}dispatch(e,r){if(this.multiple&&this[r.name])return this[r.name]();this.alert()}focus(e,r){return typeof r!="boolean"&&(r=e.enabled),r&&!e.enabled&&this.selected.length>=this.maxSelected?this.alert():(this.index=e.index,e.enabled=r&&!this.isDisabled(e),e)}space(){return this.multiple?(this.toggle(this.focused),this.render()):this.alert()}a(){if(this.maxSelected<this.choices.length)return this.alert();let e=this.selectable.every(r=>r.enabled);return this.choices.forEach(r=>r.enabled=!e),this.render()}i(){return this.choices.length-this.selected.length>this.maxSelected?this.alert():(this.choices.forEach(e=>e.enabled=!e.enabled),this.render())}g(e=this.focused){return this.choices.some(r=>!!r.parent)?(this.toggle(e.parent&&!e.choices?e.parent:e),this.render()):this.a()}toggle(e,r){if(!e.enabled&&this.selected.length>=this.maxSelected)return this.alert();typeof r!="boolean"&&(r=!e.enabled),e.enabled=r,e.choices&&e.choices.forEach(i=>this.toggle(i,r));let s=e.parent;for(;s;){let i=s.choices.filter(n=>this.isDisabled(n));s.enabled=i.every(n=>n.enabled===!0),s=s.parent}return OD(this,this.choices),this.emit("toggle",e,this),e}enable(e){return this.selected.length>=this.maxSelected?this.alert():(e.enabled=!this.isDisabled(e),e.choices&&e.choices.forEach(this.enable.bind(this)),e)}disable(e){return e.enabled=!1,e.choices&&e.choices.forEach(this.disable.bind(this)),e}number(e){this.num+=e;let r=s=>{let i=Number(s);if(i>this.choices.length-1)return this.alert();let n=this.focused,a=this.choices.find(o=>i===o.index);if(!a.enabled&&this.selected.length>=this.maxSelected)return this.alert();if(this.visible.indexOf(a)===-1){let o=$m(this.choices),u=o.indexOf(a);if(n.index>u){let l=o.slice(u,u+this.limit),c=o.filter(f=>!l.includes(f));this.choices=l.concat(c)}else{let l=u-this.limit+1;this.choices=o.slice(l).concat(o.slice(0,l))}}return this.index=this.choices.indexOf(a),this.toggle(this.focused),this.render()};return clearTimeout(this.numberTimeout),new Promise(s=>{let i=this.choices.length,n=this.num,a=(o=!1,u)=>{clearTimeout(this.numberTimeout),o&&(u=r(n)),this.num="",s(u)};if(n==="0"||n.length===1&&Number(n+"0")>i)return a(!0);if(Number(n)>i)return a(!1,this.alert());this.numberTimeout=setTimeout(()=>a(!0),this.delay)})}home(){return this.choices=$m(this.choices),this.index=0,this.render()}end(){let e=this.choices.length-this.limit,r=$m(this.choices);return this.choices=r.slice(e).concat(r.slice(0,e)),this.index=this.limit-1,this.render()}first(){return this.index=0,this.render()}last(){return this.index=this.visible.length-1,this.render()}prev(){return this.visible.length<=1?this.alert():this.up()}next(){return this.visible.length<=1?this.alert():this.down()}right(){return this.cursor>=this.input.length?this.alert():(this.cursor++,this.render())}left(){return this.cursor<=0?this.alert():(this.cursor--,this.render())}up(){let e=this.choices.length,r=this.visible.length,s=this.index;return this.options.scroll===!1&&s===0?this.alert():e>r&&s===0?this.scrollUp():(this.index=(s-1%e+e)%e,this.isDisabled()?this.up():this.render())}down(){let e=this.choices.length,r=this.visible.length,s=this.index;return this.options.scroll===!1&&s===r-1?this.alert():e>r&&s===r-1?this.scrollDown():(this.index=(s+1)%e,this.isDisabled()?this.down():this.render())}scrollUp(e=0){return this.choices=j5(this.choices),this.index=e,this.isDisabled()?this.up():this.render()}scrollDown(e=this.visible.length-1){return this.choices=I5(this.choices),this.index=e,this.isDisabled()?this.down():this.render()}async shiftUp(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index-1),await this.up(),this.sorting=!1;return}return this.scrollUp(this.index)}async shiftDown(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index+1),await this.down(),this.sorting=!1;return}return this.scrollDown(this.index)}pageUp(){return this.visible.length<=1?this.alert():(this.limit=Math.max(this.limit-1,0),this.index=Math.min(this.limit-1,this.index),this._limit=this.limit,this.isDisabled()?this.up():this.render())}pageDown(){return this.visible.length>=this.choices.length?this.alert():(this.index=Math.max(0,this.index),this.limit=Math.min(this.limit+1,this.choices.length),this._limit=this.limit,this.isDisabled()?this.down():this.render())}swap(e){M5(this.choices,this.index,e)}isDisabled(e=this.focused){return e&&["disabled","collapsed","hidden","completing","readonly"].some(s=>e[s]===!0)?!0:e&&e.role==="heading"}isEnabled(e=this.focused){if(Array.isArray(e))return e.every(r=>this.isEnabled(r));if(e.choices){let r=e.choices.filter(s=>!this.isDisabled(s));return e.enabled&&r.every(s=>this.isEnabled(s))}return e.enabled&&!this.isDisabled(e)}isChoice(e,r){return e.name===r||e.index===Number(r)}isSelected(e){return Array.isArray(this.initial)?this.initial.some(r=>this.isChoice(e,r)):this.isChoice(e,this.initial)}map(e=[],r="value"){return[].concat(e||[]).reduce((s,i)=>(s[i]=this.find(i,r),s),{})}filter(e,r){let i=typeof e=="function"?e:(o,u)=>[o.name,u].includes(e),a=(this.options.multiple?this.state._choices:this.choices).filter(i);return r?a.map(o=>o[r]):a}find(e,r){if(xD(e))return r?e[r]:e;let i=typeof e=="function"?e:(a,o)=>[a.name,o].includes(e),n=this.choices.find(i);if(n)return r?n[r]:n}findIndex(e){return this.choices.indexOf(this.find(e))}async submit(){let e=this.focused;if(!e)return this.alert();if(e.newChoice)return e.input?(e.updateChoice(),this.render()):this.alert();if(this.choices.some(a=>a.newChoice))return this.alert();let{reorder:r,sort:s}=this.options,i=this.multiple===!0,n=this.selected;return n===void 0?this.alert():(Array.isArray(n)&&r!==!1&&s!==!0&&(n=kc.reorder(n)),this.value=i?n.map(a=>a.name):n.name,super.submit())}set choices(e=[]){this.state._choices=this.state._choices||[],this.state.choices=e;for(let r of e)this.state._choices.some(s=>s.name===r.name)||this.state._choices.push(r);if(!this._initial&&this.options.initial){this._initial=!0;let r=this.initial;if(typeof r=="string"||typeof r=="number"){let s=this.find(r);s&&(this.initial=s.index,this.focus(s,!0))}}}get choices(){return OD(this,this.state.choices||[])}set visible(e){this.state.visible=e}get visible(){return(this.state.visible||this.choices).slice(0,this.limit)}set limit(e){this.state.limit=e}get limit(){let{state:e,options:r,choices:s}=this,i=e.limit||this._limit||r.limit||s.length;return Math.min(i,this.height)}set value(e){super.value=e}get value(){return typeof super.value!="string"&&super.value===this.initial?this.input:super.value}set index(e){this.state.index=e}get index(){return Math.max(0,this.state?this.state.index:0)}get enabled(){return this.filter(this.isEnabled.bind(this))}get focused(){let e=this.choices[this.index];return e&&this.state.submitted&&this.multiple!==!0&&(e.enabled=!0),e}get selectable(){return this.choices.filter(e=>!this.isDisabled(e))}get selected(){return this.multiple?this.enabled:this.focused}};function OD(t,e){if(e instanceof Promise)return e;if(typeof e=="function"){if(kc.isAsyncFn(e))return e;e=e.call(t,t)}for(let r of e){if(Array.isArray(r.choices)){let s=r.choices.filter(i=>!t.isDisabled(i));r.enabled=s.every(i=>i.enabled===!0)}t.isDisabled(r)===!0&&delete r.enabled}return e}TD.exports=AD});var Ks=h((Wse,PD)=>{"use strict";var N5=au(),Fm=Rt(),RD=class extends N5{constructor(e){super(e);this.emptyError=this.options.emptyError||"No items were selected"}async dispatch(e,r){if(this.multiple)return this[r.name]?await this[r.name](e,r):await super.dispatch(e,r);this.alert()}separator(){if(this.options.separator)return super.separator();let e=this.styles.muted(this.symbols.ellipsis);return this.state.submitted?super.separator():e}pointer(e,r){return!this.multiple||this.options.pointer?super.pointer(e,r):""}indicator(e,r){return this.multiple?super.indicator(e,r):""}choiceMessage(e,r){let s=this.resolve(e.message,this.state,e,r);return e.role==="heading"&&!Fm.hasColor(s)&&(s=this.styles.strong(s)),this.resolve(s,this.state,e,r)}choiceSeparator(){return":"}async renderChoice(e,r){await this.onChoice(e,r);let s=this.index===r,i=await this.pointer(e,r),n=await this.indicator(e,r)+(e.pad||""),a=await this.resolve(e.hint,this.state,e,r);a&&!Fm.hasColor(a)&&(a=this.styles.muted(a));let o=this.indent(e),u=await this.choiceMessage(e,r),l=()=>[this.margin[3],o+i+n,u,this.margin[1],a].filter(Boolean).join(" ");return e.role==="heading"?l():e.disabled?(Fm.hasColor(u)||(u=this.styles.disabled(u)),l()):(s&&(u=this.styles.em(u)),l())}async renderChoices(){if(this.state.loading==="choices")return this.styles.warning("Loading choices");if(this.state.submitted)return"";let e=this.visible.map(async(n,a)=>await this.renderChoice(n,a)),r=await Promise.all(e);r.length||r.push(this.styles.danger("No matching choices"));let s=this.margin[0]+r.join(`
|
|
59
59
|
`),i;return this.options.choicesHeader&&(i=await this.resolve(this.options.choicesHeader,this.state)),[i,s].filter(Boolean).join(`
|
|
60
60
|
`)}format(){return!this.state.submitted||this.state.cancelled?"":Array.isArray(this.selected)?this.selected.map(e=>this.styles.primary(e.name)).join(", "):this.styles.primary(this.selected.name)}async render(){let{submitted:e,size:r}=this.state,s="",i=await this.header(),n=await this.prefix(),a=await this.separator(),o=await this.message();this.options.promptLine!==!1&&(s=[n,o,a,""].join(" "),this.state.prompt=s);let u=await this.format(),l=await this.error()||await this.hint(),c=await this.renderChoices(),f=await this.footer();u&&(s+=u),l&&!s.includes(l)&&(s+=" "+l),e&&!u&&!c.trim()&&this.multiple&&this.emptyError!=null&&(s+=this.styles.danger(this.emptyError)),this.clear(r),this.write([i,s,c,f].filter(Boolean).join(`
|
|
61
|
-
`)),this.write(this.margin[2]),this.restore()}};
|
|
62
|
-
`)),this.restore()}set value(e){super.value=e}get value(){return this.cast(super.value)}};
|
|
63
|
-
`,r):super.keypress(e,r)}moveCursor(e){this.cursor+=e}reset(){return this.input=this.value="",this.cursor=0,this.render()}dispatch(e,r){if(!e||r.ctrl||r.code)return this.alert();this.append(e)}append(e){let{cursor:r,input:s}=this.state;this.input=`${s}`.slice(0,r)+e+`${s}`.slice(r),this.moveCursor(String(e).length),this.render()}insert(e){this.append(e)}delete(){let{cursor:e,input:r}=this.state;if(e<=0)return this.alert();this.input=`${r}`.slice(0,e-1)+`${r}`.slice(e),this.moveCursor(-1),this.render()}deleteForward(){let{cursor:e,input:r}=this.state;if(r[e]===void 0)return this.alert();this.input=`${r}`.slice(0,e)+`${r}`.slice(e+1),this.render()}cutForward(){let e=this.cursor;if(this.input.length<=e)return this.alert();this.state.clipboard.push(this.input.slice(e)),this.input=this.input.slice(0,e),this.render()}cutLeft(){let e=this.cursor;if(e===0)return this.alert();let r=this.input.slice(0,e),s=this.input.slice(e),i=r.split(" ");this.state.clipboard.push(i.pop()),this.input=i.join(" "),this.cursor=this.input.length,this.input+=s,this.render()}paste(){if(!this.state.clipboard.length)return this.alert();this.insert(this.state.clipboard.pop()),this.render()}toggleCursor(){this.state.prevCursor?(this.cursor=this.state.prevCursor,this.state.prevCursor=0):(this.state.prevCursor=this.cursor,this.cursor=0),this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.input.length-1,this.render()}next(){let e=this.initial!=null?String(this.initial):"";if(!e||!e.startsWith(this.input))return this.alert();this.input=this.initial,this.cursor=this.initial.length,this.render()}prev(){if(!this.input)return this.alert();this.reset()}backward(){return this.left()}forward(){return this.right()}right(){return this.cursor>=this.input.length?this.alert():(this.moveCursor(1),this.render())}left(){return this.cursor<=0?this.alert():(this.moveCursor(-1),this.render())}isValue(e){return!!e}async format(e=this.value){let r=await this.resolve(this.initial,this.state);return this.state.submitted?this.styles.submitted(e||r):
|
|
64
|
-
`)),this.restore()}};
|
|
61
|
+
`)),this.write(this.margin[2]),this.restore()}};PD.exports=RD});var jD=h((Kse,FD)=>{"use strict";var q5=Ks(),B5=(t,e)=>{let r=t.toLowerCase();return s=>{let n=s.toLowerCase().indexOf(r),a=e(s.slice(n,n+r.length));return n>=0?s.slice(0,n)+a+s.slice(n+r.length):s}},$D=class extends q5{constructor(e){super(e);this.cursorShow()}moveCursor(e){this.state.cursor+=e}dispatch(e){return this.append(e)}space(e){return this.options.multiple?super.space(e):this.append(e)}append(e){let{cursor:r,input:s}=this.state;return this.input=s.slice(0,r)+e+s.slice(r),this.moveCursor(1),this.complete()}delete(){let{cursor:e,input:r}=this.state;return r?(this.input=r.slice(0,e-1)+r.slice(e),this.moveCursor(-1),this.complete()):this.alert()}deleteForward(){let{cursor:e,input:r}=this.state;return r[e]===void 0?this.alert():(this.input=`${r}`.slice(0,e)+`${r}`.slice(e+1),this.complete())}number(e){return this.append(e)}async complete(){this.completing=!0,this.choices=await this.suggest(this.input,this.state._choices),this.state.limit=void 0,this.index=Math.min(Math.max(this.visible.length-1,0),this.index),await this.render(),this.completing=!1}suggest(e=this.input,r=this.state._choices){if(typeof this.options.suggest=="function")return this.options.suggest.call(this,e,r);let s=e.toLowerCase();return r.filter(i=>i.message.toLowerCase().includes(s))}pointer(){return""}format(){if(!this.focused)return this.input;if(this.options.multiple&&this.state.submitted)return this.selected.map(e=>this.styles.primary(e.message)).join(", ");if(this.state.submitted){let e=this.value=this.input=this.focused.value;return this.styles.primary(e)}return this.input}async render(){if(this.state.status!=="pending")return super.render();let e=this.options.highlight?this.options.highlight.bind(this):this.styles.placeholder,r=B5(this.input,e),s=this.choices;this.choices=s.map(i=>({...i,message:r(i.message)})),await super.render(),this.choices=s}submit(){return this.options.multiple&&(this.value=this.selected.map(e=>e.name)),super.submit()}};FD.exports=$D});var Im=h((Yse,ID)=>{"use strict";var jm=Rt();ID.exports=(t,e={})=>{t.cursorHide();let{input:r="",initial:s="",pos:i,showCursor:n=!0,color:a}=e,o=a||t.styles.placeholder,u=jm.inverse(t.styles.primary),l=g=>u(t.styles.black(g)),c=r,f=" ",d=l(f);if(t.blink&&t.blink.off===!0&&(l=g=>g,d=""),n&&i===0&&s===""&&r==="")return l(f);if(n&&i===0&&(r===s||r===""))return l(s[0])+o(s.slice(1));s=jm.isPrimitive(s)?`${s}`:"",r=jm.isPrimitive(r)?`${r}`:"";let p=s&&s.startsWith(r)&&s!==r,m=p?l(s[r.length]):d;if(i!==r.length&&n===!0&&(c=r.slice(0,i)+l(r[i])+r.slice(i+1),m=""),n===!1&&(m=""),p){let g=t.styles.unstyle(c+m);return c+m+o(s.slice(g.length))}return c+m}});var Dc=h((Jse,ND)=>{"use strict";var L5=Ir(),H5=Ks(),U5=Im(),MD=class extends H5{constructor(e){super({...e,multiple:!0});this.type="form",this.initial=this.options.initial,this.align=[this.options.align,"right"].find(r=>r!=null),this.emptyError="",this.values={}}async reset(e){return await super.reset(),e===!0&&(this._index=this.index),this.index=this._index,this.values={},this.choices.forEach(r=>r.reset&&r.reset()),this.render()}dispatch(e){return!!e&&this.append(e)}append(e){let r=this.focused;if(!r)return this.alert();let{cursor:s,input:i}=r;return r.value=r.input=i.slice(0,s)+e+i.slice(s),r.cursor++,this.render()}delete(){let e=this.focused;if(!e||e.cursor<=0)return this.alert();let{cursor:r,input:s}=e;return e.value=e.input=s.slice(0,r-1)+s.slice(r),e.cursor--,this.render()}deleteForward(){let e=this.focused;if(!e)return this.alert();let{cursor:r,input:s}=e;if(s[r]===void 0)return this.alert();let i=`${s}`.slice(0,r)+`${s}`.slice(r+1);return e.value=e.input=i,this.render()}right(){let e=this.focused;return e?e.cursor>=e.input.length?this.alert():(e.cursor++,this.render()):this.alert()}left(){let e=this.focused;return e?e.cursor<=0?this.alert():(e.cursor--,this.render()):this.alert()}space(e,r){return this.dispatch(e,r)}number(e,r){return this.dispatch(e,r)}next(){let e=this.focused;if(!e)return this.alert();let{initial:r,input:s}=e;return r&&r.startsWith(s)&&s!==r?(e.value=e.input=r,e.cursor=e.value.length,this.render()):super.next()}prev(){let e=this.focused;return e?e.cursor===0?super.prev():(e.value=e.input="",e.cursor=0,this.render()):this.alert()}separator(){return""}format(e){return this.state.submitted?"":super.format(e)}pointer(){return""}indicator(e){return e.input?"\u29BF":"\u2299"}async choiceSeparator(e,r){let s=await this.resolve(e.separator,this.state,e,r)||":";return s?" "+this.styles.disabled(s):""}async renderChoice(e,r){await this.onChoice(e,r);let{state:s,styles:i}=this,{cursor:n,initial:a="",name:o,hint:u,input:l=""}=e,{muted:c,submitted:f,primary:d,danger:p}=i,m=u,g=this.index===r,b=e.validate||(()=>!0),y=await this.choiceSeparator(e,r),w=e.message;this.align==="right"&&(w=w.padStart(this.longest+1," ")),this.align==="left"&&(w=w.padEnd(this.longest+1," "));let k=this.values[o]=l||a,O=l?"success":"dark";await b.call(e,k,this.state)!==!0&&(O="danger");let I=i[O](await this.indicator(e,r))+(e.pad||""),z=this.indent(e),T=()=>[z,I,w+y,l,m].filter(Boolean).join(" ");if(s.submitted)return w=L5.unstyle(w),l=f(l),m="",T();if(e.format)l=await e.format.call(this,l,e,r);else{let $=this.styles.muted;l=U5(this,{input:l,initial:a,pos:n,showCursor:g,color:$})}return this.isValue(l)||(l=this.styles.muted(this.symbols.ellipsis)),e.result&&(this.values[o]=await e.result.call(this,k,e,r)),g&&(w=d(w)),e.error?l+=(l?" ":"")+p(e.error.trim()):e.hint&&(l+=(l?" ":"")+c(e.hint.trim())),T()}async submit(){return this.value=this.values,super.base.submit.call(this)}};ND.exports=MD});var Mm=h((Qse,BD)=>{"use strict";var G5=Dc(),V5=()=>{throw new Error("expected prompt to have a custom authenticate method")},qD=(t=V5)=>{class e extends G5{constructor(s){super(s)}async submit(){this.value=await t.call(this,this.values,this.state),super.base.submit.call(this)}static create(s){return qD(s)}}return e};BD.exports=qD()});var UD=h((Xse,HD)=>{"use strict";var z5=Mm();function W5(t,e){return t.username===this.options.username&&t.password===this.options.password}var LD=(t=W5)=>{let e=[{name:"username",message:"username"},{name:"password",message:"password",format(s){return this.options.showPassword?s:(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(s.length))}}];class r extends z5.create(t){constructor(i){super({...i,choices:e})}static create(i){return LD(i)}}return r};HD.exports=LD()});var Cc=h((Zse,VD)=>{"use strict";var K5=ua(),{isPrimitive:Y5,hasColor:J5}=Rt(),GD=class extends K5{constructor(e){super(e);this.cursorHide()}async initialize(){let e=await this.resolve(this.initial,this.state);this.input=await this.cast(e),await super.initialize()}dispatch(e){return this.isValue(e)?(this.input=e,this.submit()):this.alert()}format(e){let{styles:r,state:s}=this;return s.submitted?r.success(e):r.primary(e)}cast(e){return this.isTrue(e)}isTrue(e){return/^[ty1]/i.test(e)}isFalse(e){return/^[fn0]/i.test(e)}isValue(e){return Y5(e)&&(this.isTrue(e)||this.isFalse(e))}async hint(){if(this.state.status==="pending"){let e=await this.element("hint");return J5(e)?e:this.styles.muted(e)}}async render(){let{input:e,size:r}=this.state,s=await this.prefix(),i=await this.separator(),n=await this.message(),a=this.styles.muted(this.default),o=[s,n,a,i].filter(Boolean).join(" ");this.state.prompt=o;let u=await this.header(),l=this.value=this.cast(e),c=await this.format(l),f=await this.error()||await this.hint(),d=await this.footer();f&&!o.includes(f)&&(c+=" "+f),o+=" "+c,this.clear(r),this.write([u,o,d].filter(Boolean).join(`
|
|
62
|
+
`)),this.restore()}set value(e){super.value=e}get value(){return this.cast(super.value)}};VD.exports=GD});var KD=h((eie,WD)=>{"use strict";var Q5=Cc(),zD=class extends Q5{constructor(e){super(e);this.default=this.options.default||(this.initial?"(Y/n)":"(y/N)")}};WD.exports=zD});var QD=h((tie,JD)=>{"use strict";var X5=Ks(),Z5=Dc(),la=Z5.prototype,YD=class extends X5{constructor(e){super({...e,multiple:!0});this.align=[this.options.align,"left"].find(r=>r!=null),this.emptyError="",this.values={}}dispatch(e,r){let s=this.focused,i=s.parent||{};return!s.editable&&!i.editable&&(e==="a"||e==="i")?super[e]():la.dispatch.call(this,e,r)}append(e,r){return la.append.call(this,e,r)}delete(e,r){return la.delete.call(this,e,r)}space(e){return this.focused.editable?this.append(e):super.space()}number(e){return this.focused.editable?this.append(e):super.number(e)}next(){return this.focused.editable?la.next.call(this):super.next()}prev(){return this.focused.editable?la.prev.call(this):super.prev()}async indicator(e,r){let s=e.indicator||"",i=e.editable?s:super.indicator(e,r);return await this.resolve(i,this.state,e,r)||""}indent(e){return e.role==="heading"?"":e.editable?" ":" "}async renderChoice(e,r){return e.indent="",e.editable?la.renderChoice.call(this,e,r):super.renderChoice(e,r)}error(){return""}footer(){return this.state.error}async validate(){let e=!0;for(let r of this.choices){if(typeof r.validate!="function"||r.role==="heading")continue;let s=r.parent?this.value[r.parent.name]:this.value;if(r.editable?s=r.value===r.name?r.initial||"":r.value:this.isDisabled(r)||(s=r.enabled===!0),e=await r.validate(s,this.state),e!==!0)break}return e!==!0&&(this.state.error=typeof e=="string"?e:"Invalid Input"),e}submit(){if(this.focused.newChoice===!0)return super.submit();if(this.choices.some(e=>e.newChoice))return this.alert();this.value={};for(let e of this.choices){let r=e.parent?this.value[e.parent.name]:this.value;if(e.role==="heading"){this.value[e.name]={};continue}e.editable?r[e.name]=e.value===e.name?e.initial||"":e.value:this.isDisabled(e)||(r[e.name]=e.enabled===!0)}return this.base.submit.call(this)}};JD.exports=YD});var Xi=h((rie,ZD)=>{"use strict";var e8=ua(),t8=Im(),{isPrimitive:r8}=Rt(),XD=class extends e8{constructor(e){super(e);this.initial=r8(this.initial)?String(this.initial):"",this.initial&&this.cursorHide(),this.state.prevCursor=0,this.state.clipboard=[]}async keypress(e,r={}){let s=this.state.prevKeypress;return this.state.prevKeypress=r,this.options.multiline===!0&&r.name==="return"&&(!s||s.name!=="return")?this.append(`
|
|
63
|
+
`,r):super.keypress(e,r)}moveCursor(e){this.cursor+=e}reset(){return this.input=this.value="",this.cursor=0,this.render()}dispatch(e,r){if(!e||r.ctrl||r.code)return this.alert();this.append(e)}append(e){let{cursor:r,input:s}=this.state;this.input=`${s}`.slice(0,r)+e+`${s}`.slice(r),this.moveCursor(String(e).length),this.render()}insert(e){this.append(e)}delete(){let{cursor:e,input:r}=this.state;if(e<=0)return this.alert();this.input=`${r}`.slice(0,e-1)+`${r}`.slice(e),this.moveCursor(-1),this.render()}deleteForward(){let{cursor:e,input:r}=this.state;if(r[e]===void 0)return this.alert();this.input=`${r}`.slice(0,e)+`${r}`.slice(e+1),this.render()}cutForward(){let e=this.cursor;if(this.input.length<=e)return this.alert();this.state.clipboard.push(this.input.slice(e)),this.input=this.input.slice(0,e),this.render()}cutLeft(){let e=this.cursor;if(e===0)return this.alert();let r=this.input.slice(0,e),s=this.input.slice(e),i=r.split(" ");this.state.clipboard.push(i.pop()),this.input=i.join(" "),this.cursor=this.input.length,this.input+=s,this.render()}paste(){if(!this.state.clipboard.length)return this.alert();this.insert(this.state.clipboard.pop()),this.render()}toggleCursor(){this.state.prevCursor?(this.cursor=this.state.prevCursor,this.state.prevCursor=0):(this.state.prevCursor=this.cursor,this.cursor=0),this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.input.length-1,this.render()}next(){let e=this.initial!=null?String(this.initial):"";if(!e||!e.startsWith(this.input))return this.alert();this.input=this.initial,this.cursor=this.initial.length,this.render()}prev(){if(!this.input)return this.alert();this.reset()}backward(){return this.left()}forward(){return this.right()}right(){return this.cursor>=this.input.length?this.alert():(this.moveCursor(1),this.render())}left(){return this.cursor<=0?this.alert():(this.moveCursor(-1),this.render())}isValue(e){return!!e}async format(e=this.value){let r=await this.resolve(this.initial,this.state);return this.state.submitted?this.styles.submitted(e||r):t8(this,{input:e,initial:r,pos:this.cursor})}async render(){let e=this.state.size,r=await this.prefix(),s=await this.separator(),i=await this.message(),n=[r,i,s].filter(Boolean).join(" ");this.state.prompt=n;let a=await this.header(),o=await this.format(),u=await this.error()||await this.hint(),l=await this.footer();u&&!o.includes(u)&&(o+=" "+u),n+=" "+o,this.clear(e),this.write([a,n,l].filter(Boolean).join(`
|
|
64
|
+
`)),this.restore()}};ZD.exports=XD});var tC=h((sie,eC)=>{"use strict";var s8=t=>t.filter((e,r)=>t.lastIndexOf(e)===r),Sc=t=>s8(t).filter(Boolean);eC.exports=(t,e={},r="")=>{let{past:s=[],present:i=""}=e,n,a;switch(t){case"prev":case"undo":return n=s.slice(0,s.length-1),a=s[s.length-1]||"",{past:Sc([r,...n]),present:a};case"next":case"redo":return n=s.slice(1),a=s[0]||"",{past:Sc([...n,r]),present:a};case"save":return{past:Sc([...s,r]),present:""};case"remove":return a=Sc(s.filter(o=>o!==r)),i="",a.length&&(i=a.pop()),{past:a,present:i};default:throw new Error(`Invalid action: "${t}"`)}}});var Nm=h((iie,iC)=>{"use strict";var i8=Xi(),rC=tC(),sC=class extends i8{constructor(e){super(e);let r=this.options.history;if(r&&r.store){let s=r.values||this.initial;this.autosave=!!r.autosave,this.store=r.store,this.data=this.store.get("values")||{past:[],present:s},this.initial=this.data.present||this.data.past[this.data.past.length-1]}}completion(e){return this.store?(this.data=rC(e,this.data,this.input),this.data.present?(this.input=this.data.present,this.cursor=this.input.length,this.render()):this.alert()):this.alert()}altUp(){return this.completion("prev")}altDown(){return this.completion("next")}prev(){return this.save(),super.prev()}save(){!this.store||(this.data=rC("save",this.data,this.input),this.store.set("values",this.data))}submit(){return this.store&&this.autosave===!0&&this.save(),super.submit()}};iC.exports=sC});var oC=h((nie,aC)=>{"use strict";var n8=Xi(),nC=class extends n8{format(){return""}};aC.exports=nC});var cC=h((aie,lC)=>{"use strict";var a8=Xi(),uC=class extends a8{constructor(e={}){super(e);this.sep=this.options.separator||/, */,this.initial=e.initial||""}split(e=this.value){return e?String(e).split(this.sep):[]}format(){let e=this.state.submitted?this.styles.primary:r=>r;return this.list.map(e).join(", ")}async submit(e){let r=this.state.error||await this.validate(this.list,this.state);return r!==!0?(this.state.error=r,super.submit()):(this.value=this.list,super.submit())}get list(){return this.split()}};lC.exports=uC});var hC=h((oie,dC)=>{"use strict";var o8=Ks(),fC=class extends o8{constructor(e){super({...e,multiple:!0})}};dC.exports=fC});var qm=h((uie,mC)=>{"use strict";var u8=Xi(),pC=class extends u8{constructor(e={}){super({style:"number",...e});this.min=this.isValue(e.min)?this.toNumber(e.min):-1/0,this.max=this.isValue(e.max)?this.toNumber(e.max):1/0,this.delay=e.delay!=null?e.delay:1e3,this.float=e.float!==!1,this.round=e.round===!0||e.float===!1,this.major=e.major||10,this.minor=e.minor||1,this.initial=e.initial!=null?e.initial:"",this.input=String(this.initial),this.cursor=this.input.length,this.cursorShow()}append(e){return!/[-+.]/.test(e)||e==="."&&this.input.includes(".")?this.alert("invalid number"):super.append(e)}number(e){return super.append(e)}next(){return this.input&&this.input!==this.initial?this.alert():this.isValue(this.initial)?(this.input=this.initial,this.cursor=String(this.initial).length,this.render()):this.alert()}up(e){let r=e||this.minor,s=this.toNumber(this.input);return s>this.max+r?this.alert():(this.input=`${s+r}`,this.render())}down(e){let r=e||this.minor,s=this.toNumber(this.input);return s<this.min-r?this.alert():(this.input=`${s-r}`,this.render())}shiftDown(){return this.down(this.major)}shiftUp(){return this.up(this.major)}format(e=this.input){return typeof this.options.format=="function"?this.options.format.call(this,e):this.styles.info(e)}toNumber(e=""){return this.float?+e:Math.round(+e)}isValue(e){return/^[-+]?[0-9]+((\.)|(\.[0-9]+))?$/.test(e)}submit(){let e=[this.input,this.initial].find(r=>this.isValue(r));return this.value=this.toNumber(e||0),super.submit()}};mC.exports=pC});var yC=h((lie,gC)=>{gC.exports=qm()});var _C=h((cie,bC)=>{"use strict";var l8=Xi(),vC=class extends l8{constructor(e){super(e);this.cursorShow()}format(e=this.input){return this.keypressed?(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(e.length)):""}};bC.exports=vC});var DC=h((fie,kC)=>{"use strict";var c8=Ir(),f8=au(),wC=Rt(),EC=class extends f8{constructor(e={}){super(e);this.widths=[].concat(e.messageWidth||50),this.align=[].concat(e.align||"left"),this.linebreak=e.linebreak||!1,this.edgeLength=e.edgeLength||3,this.newline=e.newline||`
|
|
65
65
|
`;let r=e.startNumber||1;typeof this.scale=="number"&&(this.scaleKey=!1,this.scale=Array(this.scale).fill(0).map((s,i)=>({name:i+r})))}async reset(){return this.tableized=!1,await super.reset(),this.render()}tableize(){if(this.tableized===!0)return;this.tableized=!0;let e=0;for(let r of this.choices){e=Math.max(e,r.message.length),r.scaleIndex=r.initial||2,r.scale=[];for(let s=0;s<this.scale.length;s++)r.scale.push({index:s})}this.widths[0]=Math.min(this.widths[0],e+3)}async dispatch(e,r){if(this.multiple)return this[r.name]?await this[r.name](e,r):await super.dispatch(e,r);this.alert()}heading(e,r,s){return this.styles.strong(e)}separator(){return this.styles.muted(this.symbols.ellipsis)}right(){let e=this.focused;return e.scaleIndex>=this.scale.length-1?this.alert():(e.scaleIndex++,this.render())}left(){let e=this.focused;return e.scaleIndex<=0?this.alert():(e.scaleIndex--,this.render())}indent(){return""}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.index)).join(", "):""}pointer(){return""}renderScaleKey(){if(this.scaleKey===!1||this.state.submitted)return"";let e=this.scale.map(s=>` ${s.name} - ${s.message}`);return["",...e].map(s=>this.styles.muted(s)).join(`
|
|
66
|
-
`)}renderScaleHeading(e){let r=this.scale.map(u=>u.name);typeof this.options.renderScaleHeading=="function"&&(r=this.options.renderScaleHeading.call(this,e));let s=this.scaleLength-r.join("").length,i=Math.round(s/(r.length-1)),a=r.map(u=>this.styles.strong(u)).join(" ".repeat(i)),o=" ".repeat(this.widths[0]);return this.margin[3]+o+this.margin[1]+a}scaleIndicator(e,r,s){if(typeof this.options.scaleIndicator=="function")return this.options.scaleIndicator.call(this,e,r,s);let i=e.scaleIndex===r.index;return r.disabled?this.styles.hint(this.symbols.radio.disabled):i?this.styles.success(this.symbols.radio.on):this.symbols.radio.off}renderScale(e,r){let s=e.scale.map(n=>this.scaleIndicator(e,n,r)),i=this.term==="Hyper"?"":" ";return s.join(i+this.symbols.line.repeat(this.edgeLength))}async renderChoice(e,r){await this.onChoice(e,r);let s=this.index===r,i=await this.pointer(e,r),n=await e.hint;n&&!
|
|
67
|
-
`).map(
|
|
66
|
+
`)}renderScaleHeading(e){let r=this.scale.map(u=>u.name);typeof this.options.renderScaleHeading=="function"&&(r=this.options.renderScaleHeading.call(this,e));let s=this.scaleLength-r.join("").length,i=Math.round(s/(r.length-1)),a=r.map(u=>this.styles.strong(u)).join(" ".repeat(i)),o=" ".repeat(this.widths[0]);return this.margin[3]+o+this.margin[1]+a}scaleIndicator(e,r,s){if(typeof this.options.scaleIndicator=="function")return this.options.scaleIndicator.call(this,e,r,s);let i=e.scaleIndex===r.index;return r.disabled?this.styles.hint(this.symbols.radio.disabled):i?this.styles.success(this.symbols.radio.on):this.symbols.radio.off}renderScale(e,r){let s=e.scale.map(n=>this.scaleIndicator(e,n,r)),i=this.term==="Hyper"?"":" ";return s.join(i+this.symbols.line.repeat(this.edgeLength))}async renderChoice(e,r){await this.onChoice(e,r);let s=this.index===r,i=await this.pointer(e,r),n=await e.hint;n&&!wC.hasColor(n)&&(n=this.styles.muted(n));let a=m=>this.margin[3]+m.replace(/\s+$/,"").padEnd(this.widths[0]," "),o=this.newline,u=this.indent(e),l=await this.resolve(e.message,this.state,e,r),c=await this.renderScale(e,r),f=this.margin[1]+this.margin[3];this.scaleLength=c8.unstyle(c).length,this.widths[0]=Math.min(this.widths[0],this.width-this.scaleLength-f.length);let p=wC.wordWrap(l,{width:this.widths[0],newline:o}).split(`
|
|
67
|
+
`).map(m=>a(m)+this.margin[1]);return s&&(c=this.styles.info(c),p=p.map(m=>this.styles.info(m))),p[0]+=c,this.linebreak&&p.push(""),[u+i,p.join(`
|
|
68
68
|
`)].filter(Boolean)}async renderChoices(){if(this.state.submitted)return"";this.tableize();let e=this.visible.map(async(i,n)=>await this.renderChoice(i,n)),r=await Promise.all(e),s=await this.renderScaleHeading();return this.margin[0]+[s,...r.map(i=>i.join(" "))].join(`
|
|
69
|
-
`)}async render(){let{submitted:e,size:r}=this.state,s=await this.prefix(),i=await this.separator(),n=await this.message(),a="";this.options.promptLine!==!1&&(a=[s,n,i,""].join(" "),this.state.prompt=a);let o=await this.header(),u=await this.format(),l=await this.renderScaleKey(),c=await this.error()||await this.hint(),f=await this.renderChoices(),d=await this.footer(),
|
|
70
|
-
`)),this.state.submitted||this.write(this.margin[2]),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIndex;return this.base.submit.call(this)}};
|
|
71
|
-
`){
|
|
69
|
+
`)}async render(){let{submitted:e,size:r}=this.state,s=await this.prefix(),i=await this.separator(),n=await this.message(),a="";this.options.promptLine!==!1&&(a=[s,n,i,""].join(" "),this.state.prompt=a);let o=await this.header(),u=await this.format(),l=await this.renderScaleKey(),c=await this.error()||await this.hint(),f=await this.renderChoices(),d=await this.footer(),p=this.emptyError;u&&(a+=u),c&&!a.includes(c)&&(a+=" "+c),e&&!u&&!f.trim()&&this.multiple&&p!=null&&(a+=this.styles.danger(p)),this.clear(r),this.write([o,a,l,f,d].filter(Boolean).join(`
|
|
70
|
+
`)),this.state.submitted||this.write(this.margin[2]),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIndex;return this.base.submit.call(this)}};kC.exports=EC});var AC=h((die,xC)=>{"use strict";var CC=Ir(),d8=(t="")=>typeof t=="string"?t.replace(/^['"]|['"]$/g,""):"",SC=class{constructor(e){this.name=e.key,this.field=e.field||{},this.value=d8(e.initial||this.field.initial||""),this.message=e.message||this.name,this.cursor=0,this.input="",this.lines=[]}},h8=async(t={},e={},r=s=>s)=>{let s=new Set,i=t.fields||[],n=t.template,a=[],o=[],u=[],l=1;typeof n=="function"&&(n=await n());let c=-1,f=()=>n[++c],d=()=>n[c+1],p=m=>{m.line=l,a.push(m)};for(p({type:"bos",value:""});c<n.length-1;){let m=f();if(/^[^\S\n ]$/.test(m)){p({type:"text",value:m});continue}if(m===`
|
|
71
|
+
`){p({type:"newline",value:m}),l++;continue}if(m==="\\"){m+=f(),p({type:"text",value:m});continue}if((m==="$"||m==="#"||m==="{")&&d()==="{"){m+=f();let y={type:"template",open:m,inner:"",close:"",value:m},w;for(;w=f();){if(w==="}"){d()==="}"&&(w+=f()),y.value+=w,y.close=w;break}w===":"?(y.initial="",y.key=y.inner):y.initial!==void 0&&(y.initial+=w),y.value+=w,y.inner+=w}y.template=y.open+(y.initial||y.inner)+y.close,y.key=y.key||y.inner,e.hasOwnProperty(y.key)&&(y.initial=e[y.key]),y=r(y),p(y),u.push(y.key),s.add(y.key);let k=o.find(O=>O.name===y.key);y.field=i.find(O=>O.name===y.key),k||(k=new SC(y),o.push(k)),k.lines.push(y.line-1);continue}let g=a[a.length-1];g.type==="text"&&g.line===l?g.value+=m:p({type:"text",value:m})}return p({type:"eos",value:""}),{input:n,tabstops:a,unique:s,keys:u,items:o}};xC.exports=async t=>{let e=t.options,r=new Set(e.required===!0?[]:e.required||[]),s={...e.values,...e.initial},{tabstops:i,items:n,keys:a}=await h8(e,s),o=Bm("result",t,e),u=Bm("format",t,e),l=Bm("validate",t,e,!0),c=t.isValue.bind(t);return async(f={},d=!1)=>{let p=0;f.required=r,f.items=n,f.keys=a,f.output="";let m=async(w,k,O,P)=>{let I=await l(w,k,O,P);return I===!1?"Invalid field "+O.name:I};for(let w of i){let k=w.value,O=w.key;if(w.type!=="template"){k&&(f.output+=k);continue}if(w.type==="template"){let P=n.find(F=>F.name===O);e.required===!0&&f.required.add(P.name);let I=[P.input,f.values[P.value],P.value,k].find(c),T=(P.field||{}).message||w.inner;if(d){let F=await m(f.values[O],f,P,p);if(F&&typeof F=="string"||F===!1){f.invalid.set(O,F);continue}f.invalid.delete(O);let S=await o(f.values[O],f,P,p);f.output+=CC.unstyle(S);continue}P.placeholder=!1;let $=k;k=await u(k,f,P,p),I!==k?(f.values[O]=I,k=t.styles.typing(I),f.missing.delete(T)):(f.values[O]=void 0,I=`<${T}>`,k=t.styles.primary(I),P.placeholder=!0,f.required.has(O)&&f.missing.add(T)),f.missing.has(T)&&f.validating&&(k=t.styles.warning(I)),f.invalid.has(O)&&f.validating&&(k=t.styles.danger(I)),p===f.index&&($!==k?k=t.styles.underline(k):k=t.styles.heading(CC.unstyle(k))),p++}k&&(f.output+=k)}let g=f.output.split(`
|
|
72
72
|
`).map(w=>" "+w),b=n.length,y=0;for(let w of n)f.invalid.has(w.name)&&w.lines.forEach(k=>{g[k][0]===" "&&(g[k]=f.styles.danger(f.symbols.bullet)+g[k].slice(1))}),t.isValue(f.values[w.name])&&y++;return f.completed=(y/b*100).toFixed(0),f.output=g.join(`
|
|
73
|
-
`),f.output}};function
|
|
74
|
-
`].find(w=>w!=null),a=await this.prefix(),o=await this.separator(),u=await this.message(),l=[a,u,o].filter(Boolean).join(" ");this.state.prompt=l;let c=await this.header(),f=await this.error()||"",d=await this.hint()||"",
|
|
75
|
-
`;return this.state.error=o,super.submit()}if(r.size)return this.state.error="Required: "+[...r.keys()].join(", "),super.submit();let a=
|
|
73
|
+
`),f.output}};function Bm(t,e,r,s){return(i,n,a,o)=>typeof a.field[t]=="function"?a.field[t].call(e,i,n,a,o):[s,i].find(u=>e.isValue(u))}});var RC=h((hie,TC)=>{"use strict";var p8=Ir(),m8=AC(),g8=ua(),OC=class extends g8{constructor(e){super(e);this.cursorHide(),this.reset(!0)}async initialize(){this.interpolate=await m8(this),await super.initialize()}async reset(e){this.state.keys=[],this.state.invalid=new Map,this.state.missing=new Set,this.state.completed=0,this.state.values={},e!==!0&&(await this.initialize(),await this.render())}moveCursor(e){let r=this.getItem();this.cursor+=e,r.cursor+=e}dispatch(e,r){if(!r.code&&!r.ctrl&&e!=null&&this.getItem()){this.append(e,r);return}this.alert()}append(e,r){let s=this.getItem(),i=s.input.slice(0,this.cursor),n=s.input.slice(this.cursor);this.input=s.input=`${i}${e}${n}`,this.moveCursor(1),this.render()}delete(){let e=this.getItem();if(this.cursor<=0||!e.input)return this.alert();let r=e.input.slice(this.cursor),s=e.input.slice(0,this.cursor-1);this.input=e.input=`${s}${r}`,this.moveCursor(-1),this.render()}increment(e){return e>=this.state.keys.length-1?0:e+1}decrement(e){return e<=0?this.state.keys.length-1:e-1}first(){this.state.index=0,this.render()}last(){this.state.index=this.state.keys.length-1,this.render()}right(){if(this.cursor>=this.input.length)return this.alert();this.moveCursor(1),this.render()}left(){if(this.cursor<=0)return this.alert();this.moveCursor(-1),this.render()}prev(){this.state.index=this.decrement(this.state.index),this.getItem(),this.render()}next(){this.state.index=this.increment(this.state.index),this.getItem(),this.render()}up(){this.prev()}down(){this.next()}format(e){let r=this.state.completed<100?this.styles.warning:this.styles.success;return this.state.submitted===!0&&this.state.completed!==100&&(r=this.styles.danger),r(`${this.state.completed}% completed`)}async render(){let{index:e,keys:r=[],submitted:s,size:i}=this.state,n=[this.options.newline,`
|
|
74
|
+
`].find(w=>w!=null),a=await this.prefix(),o=await this.separator(),u=await this.message(),l=[a,u,o].filter(Boolean).join(" ");this.state.prompt=l;let c=await this.header(),f=await this.error()||"",d=await this.hint()||"",p=s?"":await this.interpolate(this.state),m=this.state.key=r[e]||"",g=await this.format(m),b=await this.footer();g&&(l+=" "+g),d&&!g&&this.state.completed===0&&(l+=" "+d),this.clear(i);let y=[c,l,p,b,f.trim()];this.write(y.filter(Boolean).join(n)),this.restore()}getItem(e){let{items:r,keys:s,index:i}=this.state,n=r.find(a=>a.name===s[i]);return n&&n.input!=null&&(this.input=n.input,this.cursor=n.cursor),n}async submit(){typeof this.interpolate!="function"&&await this.initialize(),await this.interpolate(this.state,!0);let{invalid:e,missing:r,output:s,values:i}=this.state;if(e.size){let o="";for(let[u,l]of e)o+=`Invalid ${u}: ${l}
|
|
75
|
+
`;return this.state.error=o,super.submit()}if(r.size)return this.state.error="Required: "+[...r.keys()].join(", "),super.submit();let a=p8.unstyle(s).split(`
|
|
76
76
|
`).map(o=>o.slice(1)).join(`
|
|
77
|
-
`);return this.value={values:i,result:a},super.submit()}};
|
|
78
|
-
`)}}async toChoices(...e){if(this.createdScales)return!1;this.createdScales=!0;let r=await super.toChoices(...e);for(let s of r)s.scale=
|
|
79
|
-
`);return s&&(
|
|
77
|
+
`);return this.value={values:i,result:a},super.submit()}};TC.exports=OC});var FC=h((pie,$C)=>{"use strict";var y8="(Use <shift>+<up/down> to sort)",v8=Ks(),PC=class extends v8{constructor(e){super({...e,reorder:!1,sort:!0,multiple:!0});this.state.hint=[this.options.hint,y8].find(this.isValue.bind(this))}indicator(){return""}async renderChoice(e,r){let s=await super.renderChoice(e,r),i=this.symbols.identicalTo+" ",n=this.index===r&&this.sorting?this.styles.muted(i):" ";return this.options.drag===!1&&(n=""),this.options.numbered===!0?n+`${r+1} - `+s:n+s}get selected(){return this.choices}submit(){return this.value=this.choices.map(e=>e.value),super.submit()}};$C.exports=PC});var MC=h((mie,IC)=>{"use strict";var b8=au(),jC=class extends b8{constructor(e={}){super(e);if(this.emptyError=e.emptyError||"No items were selected",this.term=process.env.TERM_PROGRAM,!this.options.header){let r=["","4 - Strongly Agree","3 - Agree","2 - Neutral","1 - Disagree","0 - Strongly Disagree",""];r=r.map(s=>this.styles.muted(s)),this.state.header=r.join(`
|
|
78
|
+
`)}}async toChoices(...e){if(this.createdScales)return!1;this.createdScales=!0;let r=await super.toChoices(...e);for(let s of r)s.scale=_8(5,this.options),s.scaleIdx=2;return r}dispatch(){this.alert()}space(){let e=this.focused,r=e.scale[e.scaleIdx],s=r.selected;return e.scale.forEach(i=>i.selected=!1),r.selected=!s,this.render()}indicator(){return""}pointer(){return""}separator(){return this.styles.muted(this.symbols.ellipsis)}right(){let e=this.focused;return e.scaleIdx>=e.scale.length-1?this.alert():(e.scaleIdx++,this.render())}left(){let e=this.focused;return e.scaleIdx<=0?this.alert():(e.scaleIdx--,this.render())}indent(){return" "}async renderChoice(e,r){await this.onChoice(e,r);let s=this.index===r,i=this.term==="Hyper",n=i?9:8,a=i?"":" ",o=this.symbols.line.repeat(n),u=" ".repeat(n+(i?0:1)),l=k=>(k?this.styles.success("\u25C9"):"\u25EF")+a,c=r+1+".",f=s?this.styles.heading:this.styles.noop,d=await this.resolve(e.message,this.state,e,r),p=this.indent(e),m=p+e.scale.map((k,O)=>l(O===e.scaleIdx)).join(o),g=k=>k===e.scaleIdx?f(k):k,b=p+e.scale.map((k,O)=>g(O)).join(u),y=()=>[c,d].filter(Boolean).join(" "),w=()=>[y(),m,b," "].filter(Boolean).join(`
|
|
79
|
+
`);return s&&(m=this.styles.cyan(m),b=this.styles.cyan(b)),w()}async renderChoices(){if(this.state.submitted)return"";let e=this.visible.map(async(s,i)=>await this.renderChoice(s,i)),r=await Promise.all(e);return r.length||r.push(this.styles.danger("No matching choices")),r.join(`
|
|
80
80
|
`)}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.scaleIdx)).join(", "):""}async render(){let{submitted:e,size:r}=this.state,s=await this.prefix(),i=await this.separator(),n=await this.message(),a=[s,n,i].filter(Boolean).join(" ");this.state.prompt=a;let o=await this.header(),u=await this.format(),l=await this.error()||await this.hint(),c=await this.renderChoices(),f=await this.footer();(u||!l)&&(a+=" "+u),l&&!a.includes(l)&&(a+=" "+l),e&&!u&&!c&&this.multiple&&this.type!=="form"&&(a+=this.styles.danger(this.emptyError)),this.clear(r),this.write([a,o,c,f].filter(Boolean).join(`
|
|
81
|
-
`)),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIdx;return this.base.submit.call(this)}};function
|
|
82
|
-
`)),this.write(this.margin[2]),this.restore()}};BC.exports=qC});var GC=h((yie,UC)=>{"use strict";var w8=Ks(),HC=class extends w8{constructor(e){super(e);if(typeof this.options.correctChoice!="number"||this.options.correctChoice<0)throw new Error("Please specify the index of the correct answer from the list of choices")}async toChoices(e,r){let s=await super.toChoices(e,r);if(s.length<2)throw new Error("Please give at least two choices to the user");if(this.options.correctChoice>s.length)throw new Error("Please specify the index of the correct answer from the list of choices");return s}check(e){return e.index===this.options.correctChoice}async result(e){return{selectedAnswer:e,correctAnswer:this.options.choices[this.options.correctChoice].value,correct:await this.check(this.state)}}};UC.exports=HC});var zC=h(Bm=>{"use strict";var VC=Rt(),nt=(t,e)=>{VC.defineExport(Bm,t,e),VC.defineExport(Bm,t.toLowerCase(),e)};nt("AutoComplete",()=>FD());nt("BasicAuth",()=>HD());nt("Confirm",()=>WD());nt("Editable",()=>JD());nt("Form",()=>Dc());nt("Input",()=>Mm());nt("Invisible",()=>aC());nt("List",()=>lC());nt("MultiSelect",()=>dC());nt("Numeral",()=>gC());nt("Password",()=>bC());nt("Scale",()=>kC());nt("Select",()=>Ks());nt("Snippet",()=>TC());nt("Sort",()=>$C());nt("Survey",()=>IC());nt("Text",()=>NC());nt("Toggle",()=>LC());nt("Quiz",()=>GC())});var KC=h((bie,WC)=>{WC.exports={ArrayPrompt:au(),AuthPrompt:Im(),BooleanPrompt:Cc(),NumberPrompt:Nm(),StringPrompt:Xi()}});var Um=h((_ie,JC)=>{"use strict";var YC=require("assert"),Lm=require("events"),Ys=Rt(),Qr=class extends Lm{constructor(e,r){super();this.options=Ys.merge({},e),this.answers={...r}}register(e,r){if(Ys.isObject(e)){for(let i of Object.keys(e))this.register(i,e[i]);return this}YC.equal(typeof r,"function","expected a function");let s=e.toLowerCase();return r.prototype instanceof this.Prompt?this.prompts[s]=r:this.prompts[s]=r(this.Prompt,this),this}async prompt(e=[]){for(let r of[].concat(e))try{typeof r=="function"&&(r=await r.call(this)),await this.ask(Ys.merge({},this.options,r))}catch(s){return Promise.reject(s)}return this.answers}async ask(e){typeof e=="function"&&(e=await e.call(this));let r=Ys.merge({},this.options,e),{type:s,name:i}=e,{set:n,get:a}=Ys;if(typeof s=="function"&&(s=await s.call(this,e,this.answers)),!s)return this.answers[i];YC(this.prompts[s],`Prompt "${s}" is not registered`);let o=new this.prompts[s](r),u=a(this.answers,i);o.state.answers=this.answers,o.enquirer=this,i&&o.on("submit",c=>{this.emit("answer",i,c,o),n(this.answers,i,c)});let l=o.emit.bind(o);return o.emit=(...c)=>(this.emit.call(this,...c),l(...c)),this.emit("prompt",o,this),r.autofill&&u!=null?(o.value=o.input=u,r.autofill==="show"&&await o.submit()):u=o.value=await o.run(),u}use(e){return e.call(this,this),this}set Prompt(e){this._Prompt=e}get Prompt(){return this._Prompt||this.constructor.Prompt}get prompts(){return this.constructor.prompts}static set Prompt(e){this._Prompt=e}static get Prompt(){return this._Prompt||ua()}static get prompts(){return zC()}static get types(){return KC()}static get prompt(){let e=(r,...s)=>{let i=new this(...s),n=i.emit.bind(i);return i.emit=(...a)=>(e.emit(...a),n(...a)),i.prompt(r)};return Ys.mixinEmitter(e,new Lm),e}};Ys.mixinEmitter(Qr,new Lm);var Hm=Qr.prompts;for(let t of Object.keys(Hm)){let e=t.toLowerCase(),r=s=>new Hm[t](s).run();Qr.prompt[e]=r,Qr[e]=r,Qr[t]||Reflect.defineProperty(Qr,t,{get:()=>Hm[t]})}var ou=t=>{Ys.defineExport(Qr,t,()=>Qr.types[t])};ou("ArrayPrompt");ou("AuthPrompt");ou("BooleanPrompt");ou("NumberPrompt");ou("StringPrompt");JC.exports=Qr});var Xm=h((jle,$x)=>{$x.exports=require("stream")});var Mx=h((Ile,Ix)=>{"use strict";function Fx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,s)}return r}function iH(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fx(Object(r),!0).forEach(function(s){nH(t,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fx(Object(r)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(r,s))})}return t}function nH(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jx(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function oH(t,e,r){return e&&jx(t.prototype,e),r&&jx(t,r),t}var uH=require("buffer"),Gc=uH.Buffer,lH=require("util"),Zm=lH.inspect,cH=Zm&&Zm.custom||"inspect";function fH(t,e,r){Gc.prototype.copy.call(t,e,r)}Ix.exports=function(){function t(){aH(this,t),this.head=null,this.tail=null,this.length=0}return oH(t,[{key:"push",value:function(r){var s={data:r,next:null};this.length>0?this.tail.next=s:this.head=s,this.tail=s,++this.length}},{key:"unshift",value:function(r){var s={data:r,next:this.head};this.length===0&&(this.tail=s),this.head=s,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var s=this.head,i=""+s.data;s=s.next;)i+=r+s.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Gc.alloc(0);for(var s=Gc.allocUnsafe(r>>>0),i=this.head,n=0;i;)fH(i.data,s,n),n+=i.data.length,i=i.next;return s}},{key:"consume",value:function(r,s){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=s?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var s=this.head,i=1,n=s.data;for(r-=n.length;s=s.next;){var a=s.data,o=r>a.length?a.length:r;if(o===a.length?n+=a:n+=a.slice(0,r),r-=o,r===0){o===a.length?(++i,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=a.slice(o));break}++i}return this.length-=i,n}},{key:"_getBuffer",value:function(r){var s=Gc.allocUnsafe(r),i=this.head,n=1;for(i.data.copy(s),r-=i.data.length;i=i.next;){var a=i.data,o=r>a.length?a.length:r;if(a.copy(s,s.length-r,0,o),r-=o,r===0){o===a.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(o));break}++n}return this.length-=n,s}},{key:cH,value:function(r,s){return Zm(this,iH({},s,{depth:0,customInspect:!1}))}}]),t}()});var tg=h((Mle,qx)=>{"use strict";function dH(t,e){var r=this,s=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return s||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(eg,this,t)):process.nextTick(eg,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(n){!e&&n?r._writableState?r._writableState.errorEmitted?process.nextTick(Vc,r):(r._writableState.errorEmitted=!0,process.nextTick(Nx,r,n)):process.nextTick(Nx,r,n):e?(process.nextTick(Vc,r),e(n)):process.nextTick(Vc,r)}),this)}function Nx(t,e){eg(t,e),Vc(t)}function Vc(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function hH(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function eg(t,e){t.emit("error",e)}function pH(t,e){var r=t._readableState,s=t._writableState;r&&r.autoDestroy||s&&s.autoDestroy?t.destroy(e):t.emit("error",e)}qx.exports={destroy:dH,undestroy:hH,errorOrDestroy:pH}});var si=h((Nle,Hx)=>{"use strict";var Bx={};function yr(t,e,r){r||(r=Error);function s(n,a,o){return typeof e=="string"?e:e(n,a,o)}class i extends r{constructor(a,o,u){super(s(a,o,u))}}i.prototype.name=r.name,i.prototype.code=t,Bx[t]=i}function Lx(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(s=>String(s)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function mH(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function gH(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function yH(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}yr("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);yr("ERR_INVALID_ARG_TYPE",function(t,e,r){let s;typeof e=="string"&&mH(e,"not ")?(s="must not be",e=e.replace(/^not /,"")):s="must be";let i;if(gH(t," argument"))i=`The ${t} ${s} ${Lx(e,"type")}`;else{let n=yH(t,".")?"property":"argument";i=`The "${t}" ${n} ${s} ${Lx(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);yr("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");yr("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});yr("ERR_STREAM_PREMATURE_CLOSE","Premature close");yr("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});yr("ERR_MULTIPLE_CALLBACK","Callback called multiple times");yr("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");yr("ERR_STREAM_WRITE_AFTER_END","write after end");yr("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);yr("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);yr("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Hx.exports.codes=Bx});var rg=h((qle,Ux)=>{"use strict";var vH=si().codes.ERR_INVALID_OPT_VALUE;function bH(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function _H(t,e,r,s){var i=bH(e,s,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var n=s?r:"highWaterMark";throw new vH(n,i)}return Math.floor(i)}return t.objectMode?16:16*1024}Ux.exports={getHighWaterMark:_H}});var Vx=h((Ble,Gx)=>{Gx.exports=require("util").deprecate});var ng=h((Lle,Qx)=>{"use strict";Qx.exports=We;function zx(t){var e=this;this.next=null,this.entry=null,this.finish=function(){WH(e,t)}}var Da;We.WritableState=yu;var wH={deprecate:Vx()},Wx=Xm(),zc=require("buffer").Buffer,EH=global.Uint8Array||function(){};function kH(t){return zc.from(t)}function DH(t){return zc.isBuffer(t)||t instanceof EH}var sg=tg(),CH=rg(),SH=CH.getHighWaterMark,ii=si().codes,xH=ii.ERR_INVALID_ARG_TYPE,AH=ii.ERR_METHOD_NOT_IMPLEMENTED,OH=ii.ERR_MULTIPLE_CALLBACK,TH=ii.ERR_STREAM_CANNOT_PIPE,RH=ii.ERR_STREAM_DESTROYED,PH=ii.ERR_STREAM_NULL_VALUES,$H=ii.ERR_STREAM_WRITE_AFTER_END,FH=ii.ERR_UNKNOWN_ENCODING,Ca=sg.errorOrDestroy;Gs()(We,Wx);function jH(){}function yu(t,e,r){Da=Da||rn(),t=t||{},typeof r!="boolean"&&(r=e instanceof Da),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=SH(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=t.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){HH(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new zx(this)}yu.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(yu.prototype,"buffer",{get:wH.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Wc;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Wc=Function.prototype[Symbol.hasInstance],Object.defineProperty(We,Symbol.hasInstance,{value:function(e){return Wc.call(this,e)?!0:this!==We?!1:e&&e._writableState instanceof yu}})):Wc=function(e){return e instanceof this};function We(t){Da=Da||rn();var e=this instanceof Da;if(!e&&!Wc.call(We,this))return new We(t);this._writableState=new yu(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Wx.call(this)}We.prototype.pipe=function(){Ca(this,new TH)};function IH(t,e){var r=new $H;Ca(t,r),process.nextTick(e,r)}function MH(t,e,r,s){var i;return r===null?i=new PH:typeof r!="string"&&!e.objectMode&&(i=new xH("chunk",["string","Buffer"],r)),i?(Ca(t,i),process.nextTick(s,i),!1):!0}We.prototype.write=function(t,e,r){var s=this._writableState,i=!1,n=!s.objectMode&&DH(t);return n&&!zc.isBuffer(t)&&(t=kH(t)),typeof e=="function"&&(r=e,e=null),n?e="buffer":e||(e=s.defaultEncoding),typeof r!="function"&&(r=jH),s.ending?IH(this,r):(n||MH(this,s,t,r))&&(s.pendingcb++,i=qH(this,s,n,t,e,r)),i};We.prototype.cork=function(){this._writableState.corked++};We.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Yx(this,t))};We.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new FH(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(We.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function NH(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=zc.from(e,r)),e}Object.defineProperty(We.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function qH(t,e,r,s,i,n){if(!r){var a=NH(e,s,i);s!==a&&(r=!0,i="buffer",s=a)}var o=e.objectMode?1:s.length;e.length+=o;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:s,encoding:i,isBuf:r,callback:n,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ig(t,e,!1,o,s,i,n);return u}function ig(t,e,r,s,i,n,a){e.writelen=s,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new RH("write")):r?t._writev(i,e.onwrite):t._write(i,n,e.onwrite),e.sync=!1}function BH(t,e,r,s,i){--e.pendingcb,r?(process.nextTick(i,s),process.nextTick(vu,t,e),t._writableState.errorEmitted=!0,Ca(t,s)):(i(s),t._writableState.errorEmitted=!0,Ca(t,s),vu(t,e))}function LH(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function HH(t,e){var r=t._writableState,s=r.sync,i=r.writecb;if(typeof i!="function")throw new OH;if(LH(r),e)BH(t,r,s,e,i);else{var n=Jx(r)||t.destroyed;!n&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Yx(t,r),s?process.nextTick(Kx,t,r,n,i):Kx(t,r,n,i)}}function Kx(t,e,r,s){r||UH(t,e),e.pendingcb--,s(),vu(t,e)}function UH(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Yx(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var s=e.bufferedRequestCount,i=new Array(s),n=e.corkedRequestsFree;n.entry=r;for(var a=0,o=!0;r;)i[a]=r,r.isBuf||(o=!1),r=r.next,a+=1;i.allBuffers=o,ig(t,e,!0,e.length,i,"",n.finish),e.pendingcb++,e.lastBufferedRequest=null,n.next?(e.corkedRequestsFree=n.next,n.next=null):e.corkedRequestsFree=new zx(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,c=r.callback,f=e.objectMode?1:u.length;if(ig(t,e,!1,f,u,l,c),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}We.prototype._write=function(t,e,r){r(new AH("_write()"))};We.prototype._writev=null;We.prototype.end=function(t,e,r){var s=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),s.corked&&(s.corked=1,this.uncork()),s.ending||zH(this,s,r),this};Object.defineProperty(We.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Jx(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function GH(t,e){t._final(function(r){e.pendingcb--,r&&Ca(t,r),e.prefinished=!0,t.emit("prefinish"),vu(t,e)})}function VH(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(GH,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function vu(t,e){var r=Jx(e);if(r&&(VH(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var s=t._readableState;(!s||s.autoDestroy&&s.endEmitted)&&t.destroy()}return r}function zH(t,e,r){e.ending=!0,vu(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function WH(t,e,r){var s=t.entry;for(t.entry=null;s;){var i=s.callback;e.pendingcb--,i(r),s=s.next}e.corkedRequestsFree.next=t}Object.defineProperty(We.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){!this._writableState||(this._writableState.destroyed=e)}});We.prototype.destroy=sg.destroy;We.prototype._undestroy=sg.undestroy;We.prototype._destroy=function(t,e){e(t)}});var rn=h((Hle,Zx)=>{"use strict";var KH=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Zx.exports=es;var Xx=ug(),ag=ng();Gs()(es,Xx);for(og=KH(ag.prototype),Kc=0;Kc<og.length;Kc++)Yc=og[Kc],es.prototype[Yc]||(es.prototype[Yc]=ag.prototype[Yc]);var og,Yc,Kc;function es(t){if(!(this instanceof es))return new es(t);Xx.call(this,t),ag.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",YH)))}Object.defineProperty(es.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(es.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(es.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function YH(){this._writableState.ended||process.nextTick(JH,this)}function JH(t){t.end()}Object.defineProperty(es.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var rA=h((lg,tA)=>{var Jc=require("buffer"),ts=Jc.Buffer;function eA(t,e){for(var r in t)e[r]=t[r]}ts.from&&ts.alloc&&ts.allocUnsafe&&ts.allocUnsafeSlow?tA.exports=Jc:(eA(Jc,lg),lg.Buffer=sn);function sn(t,e,r){return ts(t,e,r)}sn.prototype=Object.create(ts.prototype);eA(ts,sn);sn.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ts(t,e,r)};sn.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var s=ts(t);return e!==void 0?typeof r=="string"?s.fill(e,r):s.fill(e):s.fill(0),s};sn.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ts(t)};sn.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Jc.SlowBuffer(t)}});var dg=h(iA=>{"use strict";var cg=rA().Buffer,sA=cg.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function QH(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function XH(t){var e=QH(t);if(typeof e!="string"&&(cg.isEncoding===sA||!sA(t)))throw new Error("Unknown encoding: "+t);return e||t}iA.StringDecoder=bu;function bu(t){this.encoding=XH(t);var e;switch(this.encoding){case"utf16le":this.text=i7,this.end=n7,e=4;break;case"utf8":this.fillLast=t7,e=4;break;case"base64":this.text=a7,this.end=o7,e=3;break;default:this.write=u7,this.end=l7;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=cg.allocUnsafe(e)}bu.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};bu.prototype.end=s7;bu.prototype.text=r7;bu.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function fg(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function ZH(t,e,r){var s=e.length-1;if(s<r)return 0;var i=fg(e[s]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--s<r||i===-2?0:(i=fg(e[s]),i>=0?(i>0&&(t.lastNeed=i-2),i):--s<r||i===-2?0:(i=fg(e[s]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function e7(t,e,r){if((e[0]&192)!=128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!=128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!=128)return t.lastNeed=2,"\uFFFD"}}function t7(t){var e=this.lastTotal-this.lastNeed,r=e7(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function r7(t,e){var r=ZH(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var s=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,s),t.toString("utf8",e,s)}function s7(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function i7(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var s=r.charCodeAt(r.length-1);if(s>=55296&&s<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function n7(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function a7(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function o7(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function u7(t){return t.toString(this.encoding)}function l7(t){return t&&t.length?this.write(t):""}});var Qc=h((Gle,oA)=>{"use strict";var nA=si().codes.ERR_STREAM_PREMATURE_CLOSE;function c7(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];t.apply(this,s)}}}function f7(){}function d7(t){return t.setHeader&&typeof t.abort=="function"}function aA(t,e,r){if(typeof e=="function")return aA(t,null,e);e||(e={}),r=c7(r||f7);var s=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,n=function(){t.writable||o()},a=t._writableState&&t._writableState.finished,o=function(){i=!1,a=!0,s||r.call(t)},u=t._readableState&&t._readableState.endEmitted,l=function(){s=!1,u=!0,i||r.call(t)},c=function(p){r.call(t,p)},f=function(){var p;if(s&&!u)return(!t._readableState||!t._readableState.ended)&&(p=new nA),r.call(t,p);if(i&&!a)return(!t._writableState||!t._writableState.ended)&&(p=new nA),r.call(t,p)},d=function(){t.req.on("finish",o)};return d7(t)?(t.on("complete",o),t.on("abort",f),t.req?d():t.on("request",d)):i&&!t._writableState&&(t.on("end",n),t.on("close",n)),t.on("end",l),t.on("finish",o),e.error!==!1&&t.on("error",c),t.on("close",f),function(){t.removeListener("complete",o),t.removeListener("abort",f),t.removeListener("request",d),t.req&&t.req.removeListener("finish",o),t.removeListener("end",n),t.removeListener("close",n),t.removeListener("finish",o),t.removeListener("end",l),t.removeListener("error",c),t.removeListener("close",f)}}oA.exports=aA});var lA=h((Vle,uA)=>{"use strict";var Xc;function ni(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h7=Qc(),ai=Symbol("lastResolve"),nn=Symbol("lastReject"),_u=Symbol("error"),Zc=Symbol("ended"),an=Symbol("lastPromise"),hg=Symbol("handlePromise"),on=Symbol("stream");function oi(t,e){return{value:t,done:e}}function p7(t){var e=t[ai];if(e!==null){var r=t[on].read();r!==null&&(t[an]=null,t[ai]=null,t[nn]=null,e(oi(r,!1)))}}function m7(t){process.nextTick(p7,t)}function g7(t,e){return function(r,s){t.then(function(){if(e[Zc]){r(oi(void 0,!0));return}e[hg](r,s)},s)}}var y7=Object.getPrototypeOf(function(){}),v7=Object.setPrototypeOf((Xc={get stream(){return this[on]},next:function(){var e=this,r=this[_u];if(r!==null)return Promise.reject(r);if(this[Zc])return Promise.resolve(oi(void 0,!0));if(this[on].destroyed)return new Promise(function(a,o){process.nextTick(function(){e[_u]?o(e[_u]):a(oi(void 0,!0))})});var s=this[an],i;if(s)i=new Promise(g7(s,this));else{var n=this[on].read();if(n!==null)return Promise.resolve(oi(n,!1));i=new Promise(this[hg])}return this[an]=i,i}},ni(Xc,Symbol.asyncIterator,function(){return this}),ni(Xc,"return",function(){var e=this;return new Promise(function(r,s){e[on].destroy(null,function(i){if(i){s(i);return}r(oi(void 0,!0))})})}),Xc),y7),b7=function(e){var r,s=Object.create(v7,(r={},ni(r,on,{value:e,writable:!0}),ni(r,ai,{value:null,writable:!0}),ni(r,nn,{value:null,writable:!0}),ni(r,_u,{value:null,writable:!0}),ni(r,Zc,{value:e._readableState.endEmitted,writable:!0}),ni(r,hg,{value:function(n,a){var o=s[on].read();o?(s[an]=null,s[ai]=null,s[nn]=null,n(oi(o,!1))):(s[ai]=n,s[nn]=a)},writable:!0}),r));return s[an]=null,h7(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=s[nn];n!==null&&(s[an]=null,s[ai]=null,s[nn]=null,n(i)),s[_u]=i;return}var a=s[ai];a!==null&&(s[an]=null,s[ai]=null,s[nn]=null,a(oi(void 0,!0))),s[Zc]=!0}),e.on("readable",m7.bind(null,s)),s};uA.exports=b7});var hA=h((zle,dA)=>{"use strict";function cA(t,e,r,s,i,n,a){try{var o=t[n](a),u=o.value}catch(l){r(l);return}o.done?e(u):Promise.resolve(u).then(s,i)}function _7(t){return function(){var e=this,r=arguments;return new Promise(function(s,i){var n=t.apply(e,r);function a(u){cA(n,s,i,a,o,"next",u)}function o(u){cA(n,s,i,a,o,"throw",u)}a(void 0)})}}function fA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,s)}return r}function w7(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fA(Object(r),!0).forEach(function(s){E7(t,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fA(Object(r)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(r,s))})}return t}function E7(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var k7=si().codes.ERR_INVALID_ARG_TYPE;function D7(t,e,r){var s;if(e&&typeof e.next=="function")s=e;else if(e&&e[Symbol.asyncIterator])s=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])s=e[Symbol.iterator]();else throw new k7("iterable",["Iterable"],e);var i=new t(w7({objectMode:!0},r)),n=!1;i._read=function(){n||(n=!0,a())};function a(){return o.apply(this,arguments)}function o(){return o=_7(function*(){try{var u=yield s.next(),l=u.value,c=u.done;c?i.push(null):i.push(yield l)?a():n=!1}catch(f){i.destroy(f)}}),o.apply(this,arguments)}return i}dA.exports=D7});var ug=h((Kle,kA)=>{"use strict";kA.exports=ve;var Sa;ve.ReadableState=mA;var Wle=require("events").EventEmitter,pA=function(e,r){return e.listeners(r).length},wu=Xm(),ef=require("buffer").Buffer,C7=global.Uint8Array||function(){};function S7(t){return ef.from(t)}function x7(t){return ef.isBuffer(t)||t instanceof C7}var pg=require("util"),ne;pg&&pg.debuglog?ne=pg.debuglog("stream"):ne=function(){};var A7=Mx(),mg=tg(),O7=rg(),T7=O7.getHighWaterMark,tf=si().codes,R7=tf.ERR_INVALID_ARG_TYPE,P7=tf.ERR_STREAM_PUSH_AFTER_EOF,$7=tf.ERR_METHOD_NOT_IMPLEMENTED,F7=tf.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,xa,gg,yg;Gs()(ve,wu);var Eu=mg.errorOrDestroy,vg=["error","close","destroy","pause","resume"];function j7(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function mA(t,e,r){Sa=Sa||rn(),t=t||{},typeof r!="boolean"&&(r=e instanceof Sa),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=T7(this,t,"readableHighWaterMark",r),this.buffer=new A7,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(xa||(xa=dg().StringDecoder),this.decoder=new xa(t.encoding),this.encoding=t.encoding)}function ve(t){if(Sa=Sa||rn(),!(this instanceof ve))return new ve(t);var e=this instanceof Sa;this._readableState=new mA(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),wu.call(this)}Object.defineProperty(ve.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});ve.prototype.destroy=mg.destroy;ve.prototype._undestroy=mg.undestroy;ve.prototype._destroy=function(t,e){e(t)};ve.prototype.push=function(t,e){var r=this._readableState,s;return r.objectMode?s=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=ef.from(t,e),e=""),s=!0),gA(this,t,e,!1,s)};ve.prototype.unshift=function(t){return gA(this,t,null,!0,!1)};function gA(t,e,r,s,i){ne("readableAddChunk",e);var n=t._readableState;if(e===null)n.reading=!1,N7(t,n);else{var a;if(i||(a=I7(n,e)),a)Eu(t,a);else if(n.objectMode||e&&e.length>0)if(typeof e!="string"&&!n.objectMode&&Object.getPrototypeOf(e)!==ef.prototype&&(e=S7(e)),s)n.endEmitted?Eu(t,new F7):bg(t,n,e,!0);else if(n.ended)Eu(t,new P7);else{if(n.destroyed)return!1;n.reading=!1,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?bg(t,n,e,!1):_g(t,n)):bg(t,n,e,!1)}else s||(n.reading=!1,_g(t,n))}return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function bg(t,e,r,s){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,s?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&rf(t)),_g(t,e)}function I7(t,e){var r;return!x7(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new R7("chunk",["string","Buffer","Uint8Array"],e)),r}ve.prototype.isPaused=function(){return this._readableState.flowing===!1};ve.prototype.setEncoding=function(t){xa||(xa=dg().StringDecoder);var e=new xa(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,s="";r!==null;)s+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),s!==""&&this._readableState.buffer.push(s),this._readableState.length=s.length,this};var yA=1073741824;function M7(t){return t>=yA?t=yA:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function vA(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=M7(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}ve.prototype.read=function(t){ne("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return ne("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Eg(this):rf(this),null;if(t=vA(t,e),t===0&&e.ended)return e.length===0&&Eg(this),null;var s=e.needReadable;ne("need readable",s),(e.length===0||e.length-t<e.highWaterMark)&&(s=!0,ne("length less than watermark",s)),e.ended||e.reading?(s=!1,ne("reading or ended",s)):s&&(ne("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=vA(r,e)));var i;return t>0?i=wA(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Eg(this)),i!==null&&this.emit("data",i),i};function N7(t,e){if(ne("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?rf(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,bA(t)))}}function rf(t){var e=t._readableState;ne("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(ne("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(bA,t))}function bA(t){var e=t._readableState;ne("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,wg(t)}function _g(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(q7,t,e))}function q7(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(ne("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}ve.prototype._read=function(t){Eu(this,new $7("_read()"))};ve.prototype.pipe=function(t,e){var r=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t);break}s.pipesCount+=1,ne("pipe count=%d opts=%j",s.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,n=i?o:g;s.endEmitted?process.nextTick(n):r.once("end",n),t.on("unpipe",a);function a(b,y){ne("onunpipe"),b===r&&y&&y.hasUnpiped===!1&&(y.hasUnpiped=!0,c())}function o(){ne("onend"),t.end()}var u=B7(r);t.on("drain",u);var l=!1;function c(){ne("cleanup"),t.removeListener("close",m),t.removeListener("finish",p),t.removeListener("drain",u),t.removeListener("error",d),t.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",g),r.removeListener("data",f),l=!0,s.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}r.on("data",f);function f(b){ne("ondata");var y=t.write(b);ne("dest.write",y),y===!1&&((s.pipesCount===1&&s.pipes===t||s.pipesCount>1&&EA(s.pipes,t)!==-1)&&!l&&(ne("false write response, pause",s.awaitDrain),s.awaitDrain++),r.pause())}function d(b){ne("onerror",b),g(),t.removeListener("error",d),pA(t,"error")===0&&Eu(t,b)}j7(t,"error",d);function m(){t.removeListener("finish",p),g()}t.once("close",m);function p(){ne("onfinish"),t.removeListener("close",m),g()}t.once("finish",p);function g(){ne("unpipe"),r.unpipe(t)}return t.emit("pipe",r),s.flowing||(ne("pipe resume"),r.resume()),t};function B7(t){return function(){var r=t._readableState;ne("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&pA(t,"data")&&(r.flowing=!0,wg(t))}}ve.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var s=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var n=0;n<i;n++)s[n].emit("unpipe",this,{hasUnpiped:!1});return this}var a=EA(e.pipes,t);return a===-1?this:(e.pipes.splice(a,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};ve.prototype.on=function(t,e){var r=wu.prototype.on.call(this,t,e),s=this._readableState;return t==="data"?(s.readableListening=this.listenerCount("readable")>0,s.flowing!==!1&&this.resume()):t==="readable"&&!s.endEmitted&&!s.readableListening&&(s.readableListening=s.needReadable=!0,s.flowing=!1,s.emittedReadable=!1,ne("on readable",s.length,s.reading),s.length?rf(this):s.reading||process.nextTick(L7,this)),r};ve.prototype.addListener=ve.prototype.on;ve.prototype.removeListener=function(t,e){var r=wu.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(_A,this),r};ve.prototype.removeAllListeners=function(t){var e=wu.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(_A,this),e};function _A(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function L7(t){ne("readable nexttick read 0"),t.read(0)}ve.prototype.resume=function(){var t=this._readableState;return t.flowing||(ne("resume"),t.flowing=!t.readableListening,H7(this,t)),t.paused=!1,this};function H7(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(U7,t,e))}function U7(t,e){ne("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),wg(t),e.flowing&&!e.reading&&t.read(0)}ve.prototype.pause=function(){return ne("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ne("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function wg(t){var e=t._readableState;for(ne("flow",e.flowing);e.flowing&&t.read()!==null;);}ve.prototype.wrap=function(t){var e=this,r=this._readableState,s=!1;t.on("end",function(){if(ne("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&e.push(a)}e.push(null)}),t.on("data",function(a){if(ne("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var o=e.push(a);o||(s=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(o){return function(){return t[o].apply(t,arguments)}}(i));for(var n=0;n<vg.length;n++)t.on(vg[n],this.emit.bind(this,vg[n]));return this._read=function(a){ne("wrapped _read",a),s&&(s=!1,t.resume())},this};typeof Symbol=="function"&&(ve.prototype[Symbol.asyncIterator]=function(){return gg===void 0&&(gg=lA()),gg(this)});Object.defineProperty(ve.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ve.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ve.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});ve._fromList=wA;Object.defineProperty(ve.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function wA(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Eg(t){var e=t._readableState;ne("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(G7,e,t))}function G7(t,e){if(ne("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(ve.from=function(t,e){return yg===void 0&&(yg=hA()),yg(ve,t,e)});function EA(t,e){for(var r=0,s=t.length;r<s;r++)if(t[r]===e)return r;return-1}});var kg=h((Yle,CA)=>{"use strict";CA.exports=As;var sf=si().codes,V7=sf.ERR_METHOD_NOT_IMPLEMENTED,z7=sf.ERR_MULTIPLE_CALLBACK,W7=sf.ERR_TRANSFORM_ALREADY_TRANSFORMING,K7=sf.ERR_TRANSFORM_WITH_LENGTH_0,nf=rn();Gs()(As,nf);function Y7(t,e){var r=this._transformState;r.transforming=!1;var s=r.writecb;if(s===null)return this.emit("error",new z7);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),s(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function As(t){if(!(this instanceof As))return new As(t);nf.call(this,t),this._transformState={afterTransform:Y7.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",J7)}function J7(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){DA(t,e,r)}):DA(this,null,null)}As.prototype.push=function(t,e){return this._transformState.needTransform=!1,nf.prototype.push.call(this,t,e)};As.prototype._transform=function(t,e,r){r(new V7("_transform()"))};As.prototype._write=function(t,e,r){var s=this._transformState;if(s.writecb=r,s.writechunk=t,s.writeencoding=e,!s.transforming){var i=this._readableState;(s.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};As.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};As.prototype._destroy=function(t,e){nf.prototype._destroy.call(this,t,function(r){e(r)})};function DA(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new K7;if(t._transformState.transforming)throw new W7;return t.push(null)}});var AA=h((Jle,xA)=>{"use strict";xA.exports=ku;var SA=kg();Gs()(ku,SA);function ku(t){if(!(this instanceof ku))return new ku(t);SA.call(this,t)}ku.prototype._transform=function(t,e,r){r(null,t)}});var $A=h((Qle,PA)=>{"use strict";var Dg;function Q7(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var OA=si().codes,X7=OA.ERR_MISSING_ARGS,Z7=OA.ERR_STREAM_DESTROYED;function TA(t){if(t)throw t}function eU(t){return t.setHeader&&typeof t.abort=="function"}function tU(t,e,r,s){s=Q7(s);var i=!1;t.on("close",function(){i=!0}),Dg===void 0&&(Dg=Qc()),Dg(t,{readable:e,writable:r},function(a){if(a)return s(a);i=!0,s()});var n=!1;return function(a){if(!i&&!n){if(n=!0,eU(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();s(a||new Z7("pipe"))}}}function RA(t){t()}function rU(t,e){return t.pipe(e)}function sU(t){return!t.length||typeof t[t.length-1]!="function"?TA:t.pop()}function iU(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var s=sU(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new X7("streams");var i,n=e.map(function(a,o){var u=o<e.length-1,l=o>0;return tU(a,u,l,function(c){i||(i=c),c&&n.forEach(RA),!u&&(n.forEach(RA),s(i))})});return e.reduce(rU)}PA.exports=iU});var FA=h((vr,Cu)=>{var Du=require("stream");process.env.READABLE_STREAM==="disable"&&Du?(Cu.exports=Du.Readable,Object.assign(Cu.exports,Du),Cu.exports.Stream=Du):(vr=Cu.exports=ug(),vr.Stream=Du||vr,vr.Readable=vr,vr.Writable=ng(),vr.Duplex=rn(),vr.Transform=kg(),vr.PassThrough=AA(),vr.finished=Qc(),vr.pipeline=$A())});var IA=h((Xle,jA)=>{var nU=Object.prototype.toString,Cg=typeof Buffer!="undefined"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function aU(t){return nU.call(t).slice(8,-1)==="ArrayBuffer"}function oU(t,e,r){e>>>=0;var s=t.byteLength-e;if(s<0)throw new RangeError("'offset' is out of bounds");if(r===void 0)r=s;else if(r>>>=0,r>s)throw new RangeError("'length' is out of bounds");return Cg?Buffer.from(t.slice(e,e+r)):new Buffer(new Uint8Array(t.slice(e,e+r)))}function uU(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Buffer.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');return Cg?Buffer.from(t,e):new Buffer(t,e)}function lU(t,e,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return aU(t)?oU(t,e,r):typeof t=="string"?uU(t,e):Cg?Buffer.from(t):new Buffer(t)}jA.exports=lU});var HA=h(W=>{var MA=void 0,cU=1e5,Be=function(){var t=Object.prototype.toString,e=Object.prototype.hasOwnProperty;return{Class:function(r){return t.call(r).replace(/^\[object *|\]$/g,"")},HasProperty:function(r,s){return s in r},HasOwnProperty:function(r,s){return e.call(r,s)},IsCallable:function(r){return typeof r=="function"},ToInt32:function(r){return r>>0},ToUint32:function(r){return r>>>0}}}(),fU=Math.LN2,dU=Math.abs,af=Math.floor,hU=Math.log,pU=Math.min,qr=Math.pow,mU=Math.round;function Sg(t){if(NA&&Aa){var e=NA(t),r;for(r=0;r<e.length;r+=1)Aa(t,e[r],{value:t[e[r]],writable:!1,enumerable:!1,configurable:!1})}}var Aa;Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch{return!1}}()?Aa=Object.defineProperty:Aa=function(t,e,r){if(!t===Object(t))throw new TypeError("Object.defineProperty called on non-object");return Be.HasProperty(r,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(t,e,r.get),Be.HasProperty(r,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(t,e,r.set),Be.HasProperty(r,"value")&&(t[e]=r.value),t};var NA=Object.getOwnPropertyNames||function(t){if(t!==Object(t))throw new TypeError("Object.getOwnPropertyNames called on non-object");var e=[],r;for(r in t)Be.HasOwnProperty(t,r)&&e.push(r);return e};function gU(t){if(!Aa)return;if(t.length>cU)throw new RangeError("Array too large for polyfill");function e(s){Aa(t,s,{get:function(){return t._getter(s)},set:function(i){t._setter(s,i)},enumerable:!0,configurable:!1})}var r;for(r=0;r<t.length;r+=1)e(r)}function xg(t,e){var r=32-e;return t<<r>>r}function Ag(t,e){var r=32-e;return t<<r>>>r}function yU(t){return[t&255]}function vU(t){return xg(t[0],8)}function bU(t){return[t&255]}function qA(t){return Ag(t[0],8)}function _U(t){return t=mU(Number(t)),[t<0?0:t>255?255:t&255]}function wU(t){return[t>>8&255,t&255]}function EU(t){return xg(t[0]<<8|t[1],16)}function kU(t){return[t>>8&255,t&255]}function DU(t){return Ag(t[0]<<8|t[1],16)}function CU(t){return[t>>24&255,t>>16&255,t>>8&255,t&255]}function SU(t){return xg(t[0]<<24|t[1]<<16|t[2]<<8|t[3],32)}function xU(t){return[t>>24&255,t>>16&255,t>>8&255,t&255]}function AU(t){return Ag(t[0]<<24|t[1]<<16|t[2]<<8|t[3],32)}function BA(t,e,r){var s=(1<<e-1)-1,i,n,a,o,u,l,c,f;function d(m){var p=af(m),g=m-p;return g<.5?p:g>.5||p%2?p+1:p}for(t!==t?(n=(1<<e)-1,a=qr(2,r-1),i=0):t===1/0||t===-1/0?(n=(1<<e)-1,a=0,i=t<0?1:0):t===0?(n=0,a=0,i=1/t==-1/0?1:0):(i=t<0,t=dU(t),t>=qr(2,1-s)?(n=pU(af(hU(t)/fU),1023),a=d(t/qr(2,n)*qr(2,r)),a/qr(2,r)>=2&&(n=n+1,a=1),n>s?(n=(1<<e)-1,a=0):(n=n+s,a=a-qr(2,r))):(n=0,a=d(t/qr(2,1-s-r)))),l=[],u=r;u;u-=1)l.push(a%2?1:0),a=af(a/2);for(u=e;u;u-=1)l.push(n%2?1:0),n=af(n/2);for(l.push(i?1:0),l.reverse(),c=l.join(""),f=[];c.length;)f.push(parseInt(c.substring(0,8),2)),c=c.substring(8);return f}function LA(t,e,r){var s=[],i,n,a,o,u,l,c,f;for(i=t.length;i;i-=1)for(a=t[i-1],n=8;n;n-=1)s.push(a%2?1:0),a=a>>1;return s.reverse(),o=s.join(""),u=(1<<e-1)-1,l=parseInt(o.substring(0,1),2)?-1:1,c=parseInt(o.substring(1,1+e),2),f=parseInt(o.substring(1+e),2),c===(1<<e)-1?f!==0?NaN:l*(1/0):c>0?l*qr(2,c-u)*(1+f/qr(2,r)):f!==0?l*qr(2,-(u-1))*(f/qr(2,r)):l<0?-0:0}function OU(t){return LA(t,11,52)}function TU(t){return BA(t,11,52)}function RU(t){return LA(t,8,23)}function PU(t){return BA(t,8,23)}(function(){var t=function(m){if(m=Be.ToInt32(m),m<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");this.byteLength=m,this._bytes=[],this._bytes.length=m;var p;for(p=0;p<this.byteLength;p+=1)this._bytes[p]=0;Sg(this)};W.ArrayBuffer=W.ArrayBuffer||t;var e=function(){};function r(d,m,p){var g;return g=function(b,y,w){var k,O,P,I;if(!arguments.length||typeof arguments[0]=="number"){if(this.length=Be.ToInt32(arguments[0]),w<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0}else if(typeof arguments[0]=="object"&&arguments[0].constructor===g)for(k=arguments[0],this.length=k.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0,P=0;P<this.length;P+=1)this._setter(P,k._getter(P));else if(typeof arguments[0]=="object"&&!(arguments[0]instanceof t||Be.Class(arguments[0])==="ArrayBuffer"))for(O=arguments[0],this.length=Be.ToUint32(O.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0,P=0;P<this.length;P+=1)I=O[P],this._setter(P,Number(I));else if(typeof arguments[0]=="object"&&(arguments[0]instanceof t||Be.Class(arguments[0])==="ArrayBuffer")){if(this.buffer=b,this.byteOffset=Be.ToUint32(y),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=Be.ToUint32(w),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else throw new TypeError("Unexpected argument type(s)");this.constructor=g,Sg(this),gU(this)},g.prototype=new e,g.prototype.BYTES_PER_ELEMENT=d,g.prototype._pack=m,g.prototype._unpack=p,g.BYTES_PER_ELEMENT=d,g.prototype._getter=function(b){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if(b=Be.ToUint32(b),b>=this.length)return MA;var y=[],w,k;for(w=0,k=this.byteOffset+b*this.BYTES_PER_ELEMENT;w<this.BYTES_PER_ELEMENT;w+=1,k+=1)y.push(this.buffer._bytes[k]);return this._unpack(y)},g.prototype.get=g.prototype._getter,g.prototype._setter=function(b,y){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if(b=Be.ToUint32(b),b>=this.length)return MA;var w=this._pack(y),k,O;for(k=0,O=this.byteOffset+b*this.BYTES_PER_ELEMENT;k<this.BYTES_PER_ELEMENT;k+=1,O+=1)this.buffer._bytes[O]=w[k]},g.prototype.set=function(b,y){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var w,k,O,P,I,z,T,$,F,S;if(typeof arguments[0]=="object"&&arguments[0].constructor===this.constructor){if(w=arguments[0],O=Be.ToUint32(arguments[1]),O+w.length>this.length)throw new RangeError("Offset plus length of array is out of range");if($=this.byteOffset+O*this.BYTES_PER_ELEMENT,F=w.length*this.BYTES_PER_ELEMENT,w.buffer===this.buffer){for(S=[],I=0,z=w.byteOffset;I<F;I+=1,z+=1)S[I]=w.buffer._bytes[z];for(I=0,T=$;I<F;I+=1,T+=1)this.buffer._bytes[T]=S[I]}else for(I=0,z=w.byteOffset,T=$;I<F;I+=1,z+=1,T+=1)this.buffer._bytes[T]=w.buffer._bytes[z]}else if(typeof arguments[0]=="object"&&typeof arguments[0].length!="undefined"){if(k=arguments[0],P=Be.ToUint32(k.length),O=Be.ToUint32(arguments[1]),O+P>this.length)throw new RangeError("Offset plus length of array is out of range");for(I=0;I<P;I+=1)z=k[I],this._setter(O+I,Number(z))}else throw new TypeError("Unexpected argument type(s)")},g.prototype.subarray=function(b,y){function w(O,P,I){return O<P?P:O>I?I:O}b=Be.ToInt32(b),y=Be.ToInt32(y),arguments.length<1&&(b=0),arguments.length<2&&(y=this.length),b<0&&(b=this.length+b),y<0&&(y=this.length+y),b=w(b,0,this.length),y=w(y,0,this.length);var k=y-b;return k<0&&(k=0),new this.constructor(this.buffer,this.byteOffset+b*this.BYTES_PER_ELEMENT,k)},g}var s=r(1,yU,vU),i=r(1,bU,qA),n=r(1,_U,qA),a=r(2,wU,EU),o=r(2,kU,DU),u=r(4,CU,SU),l=r(4,xU,AU),c=r(4,PU,RU),f=r(8,TU,OU);W.Int8Array=W.Int8Array||s,W.Uint8Array=W.Uint8Array||i,W.Uint8ClampedArray=W.Uint8ClampedArray||n,W.Int16Array=W.Int16Array||a,W.Uint16Array=W.Uint16Array||o,W.Int32Array=W.Int32Array||u,W.Uint32Array=W.Uint32Array||l,W.Float32Array=W.Float32Array||c,W.Float64Array=W.Float64Array||f})();(function(){function t(n,a){return Be.IsCallable(n.get)?n.get(a):n[a]}var e=function(){var n=new W.Uint16Array([4660]),a=new W.Uint8Array(n.buffer);return t(a,0)===18}(),r=function(a,o,u){if(arguments.length===0)a=new W.ArrayBuffer(0);else if(!(a instanceof W.ArrayBuffer||Be.Class(a)==="ArrayBuffer"))throw new TypeError("TypeError");if(this.buffer=a||new W.ArrayBuffer(0),this.byteOffset=Be.ToUint32(o),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=Be.ToUint32(u),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");Sg(this)};function s(n){return function(a,o){if(a=Be.ToUint32(a),a+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");a+=this.byteOffset;var u=new W.Uint8Array(this.buffer,a,n.BYTES_PER_ELEMENT),l=[],c;for(c=0;c<n.BYTES_PER_ELEMENT;c+=1)l.push(t(u,c));return Boolean(o)===Boolean(e)&&l.reverse(),t(new n(new W.Uint8Array(l).buffer),0)}}r.prototype.getUint8=s(W.Uint8Array),r.prototype.getInt8=s(W.Int8Array),r.prototype.getUint16=s(W.Uint16Array),r.prototype.getInt16=s(W.Int16Array),r.prototype.getUint32=s(W.Uint32Array),r.prototype.getInt32=s(W.Int32Array),r.prototype.getFloat32=s(W.Float32Array),r.prototype.getFloat64=s(W.Float64Array);function i(n){return function(a,o,u){if(a=Be.ToUint32(a),a+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var l=new n([o]),c=new W.Uint8Array(l.buffer),f=[],d,m;for(d=0;d<n.BYTES_PER_ELEMENT;d+=1)f.push(t(c,d));Boolean(u)===Boolean(e)&&f.reverse(),m=new W.Uint8Array(this.buffer,a,n.BYTES_PER_ELEMENT),m.set(f)}}r.prototype.setUint8=i(W.Uint8Array),r.prototype.setInt8=i(W.Int8Array),r.prototype.setUint16=i(W.Uint16Array),r.prototype.setInt16=i(W.Int16Array),r.prototype.setUint32=i(W.Uint32Array),r.prototype.setInt32=i(W.Int32Array),r.prototype.setFloat32=i(W.Float32Array),r.prototype.setFloat64=i(W.Float64Array),W.DataView=W.DataView||r})()});var zA=h((tce,VA)=>{var UA=FA().Writable,$U=Gs(),Su=IA();typeof Uint8Array=="undefined"?of=HA().Uint8Array:of=Uint8Array;var of;function un(t,e){if(!(this instanceof un))return new un(t,e);typeof t=="function"&&(e=t,t={}),t||(t={});var r=t.encoding,s=!1;r?(r=String(r).toLowerCase(),(r==="u8"||r==="uint8")&&(r="uint8array")):s=!0,UA.call(this,{objectMode:!0}),this.encoding=r,this.shouldInferEncoding=s,e&&this.on("finish",function(){e(this.getBody())}),this.body=[]}VA.exports=un;$U(un,UA);un.prototype._write=function(t,e,r){this.body.push(t),r()};un.prototype.inferEncoding=function(t){var e=t===void 0?this.body[0]:t;return Buffer.isBuffer(e)?"buffer":typeof Uint8Array!="undefined"&&e instanceof Uint8Array?"uint8array":Array.isArray(e)?"array":typeof e=="string"?"string":Object.prototype.toString.call(e)==="[object Object]"?"object":"buffer"};un.prototype.getBody=function(){return!this.encoding&&this.body.length===0?[]:(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),this.encoding==="array"?MU(this.body):this.encoding==="string"?jU(this.body):this.encoding==="buffer"?IU(this.body):this.encoding==="uint8array"?NU(this.body):this.body)};var ece=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"};function FU(t){return/Array\]$/.test(Object.prototype.toString.call(t))}function GA(t){return typeof t=="string"||FU(t)||t&&typeof t.subarray=="function"}function jU(t){for(var e=[],r=!1,s=0;s<t.length;s++){var i=t[s];typeof i=="string"||Buffer.isBuffer(i)?e.push(i):GA(i)?e.push(Su(i)):e.push(Su(String(i)))}return Buffer.isBuffer(t[0])?(e=Buffer.concat(e),e=e.toString("utf8")):e=e.join(""),e}function IU(t){for(var e=[],r=0;r<t.length;r++){var s=t[r];Buffer.isBuffer(s)?e.push(s):GA(s)?e.push(Su(s)):e.push(Su(String(s)))}return Buffer.concat(e)}function MU(t){for(var e=[],r=0;r<t.length;r++)e.push.apply(e,t[r]);return e}function NU(t){for(var e=0,r=0;r<t.length;r++)typeof t[r]=="string"&&(t[r]=Su(t[r])),e+=t[r].length;for(var s=new of(e),r=0,i=0;r<t.length;r++)for(var n=t[r],a=0;a<n.length;a++)s[i++]=n[a];return s}});var YA=h((rce,KA)=>{"use strict";function WA(t,e){for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!0,configurable:!0});return t}function qU(t,e,r){if(!t||typeof t=="string")throw new TypeError("Please pass an Error to err-code");r||(r={}),typeof e=="object"&&(r=e,e=void 0),e!=null&&(r.code=e);try{return WA(t,r)}catch{r.message=t.message,r.stack=t.stack;let i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(t)),WA(new i,r)}}KA.exports=qU});var QA=h((sce,JA)=>{function br(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._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}JA.exports=br;br.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};br.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};br.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.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(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var s=this,i=setTimeout(function(){s._attempts++,s._operationTimeoutCb&&(s._timeout=setTimeout(function(){s._operationTimeoutCb(s._attempts)},s._operationTimeout),s._options.unref&&s._timeout.unref()),s._fn(s._attempts)},r);return this._options.unref&&i.unref(),!0};br.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)};br.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};br.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};br.prototype.start=br.prototype.try;br.prototype.errors=function(){return this._errors};br.prototype.attempts=function(){return this._attempts};br.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,s=0;s<this._errors.length;s++){var i=this._errors[s],n=i.message,a=(t[n]||0)+1;t[n]=a,a>=r&&(e=i,r=a)}return e}});var XA=h(ln=>{var BU=QA();ln.operation=function(t){var e=ln.timeouts(t);return new BU(e,{forever:t&&t.forever,unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};ln.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 s=[],i=0;i<e.retries;i++)s.push(this.createTimeout(i,e));return t&&t.forever&&!s.length&&s.push(this.createTimeout(i,e)),s.sort(function(n,a){return n-a}),s};ln.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,s=Math.round(r*e.minTimeout*Math.pow(e.factor,t));return s=Math.min(s,e.maxTimeout),s};ln.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var s in t)typeof t[s]=="function"&&r.push(s)}for(var i=0;i<r.length;i++){var n=r[i],a=t[n];t[n]=function(u){var l=ln.operation(e),c=Array.prototype.slice.call(arguments,1),f=c.pop();c.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),f.apply(this,arguments))}),l.attempt(function(){u.apply(t,c)})}.bind(t,a),t[n].options=e}}});var eO=h((nce,ZA)=>{ZA.exports=XA()});var sO=h((ace,rO)=>{"use strict";var LU=YA(),HU=eO(),UU=Object.prototype.hasOwnProperty;function tO(t){return t&&t.code==="EPROMISERETRY"&&UU.call(t,"retried")}function GU(t,e){var r,s;return typeof t=="object"&&typeof e=="function"&&(r=e,e=t,t=r),s=HU.operation(e),new Promise(function(i,n){s.attempt(function(a){Promise.resolve().then(function(){return t(function(o){throw tO(o)&&(o=o.retried),LU(new Error("Retrying"),"EPROMISERETRY",{retried:o})},a)}).then(i,function(o){tO(o)&&(o=o.retried,s.retry(o||new Error))||n(o)})})})}rO.exports=GU});var Og=h((oce,iO)=>{var VU={generic:"ERR_GENERIC_CLIENT",connect:"ERR_NOT_CONNECTED",badPath:"ERR_BAD_PATH",permission:"EACCES",notexist:"ENOENT",notdir:"ENOTDIR"},zU={writeFile:1,readFile:2,writeDir:3,readDir:4,readObj:5,writeObj:6};iO.exports={errorCode:VU,targetType:zU}});var lO=h((uce,uO)=>{"use strict";var xu=require("fs"),WU=require("path"),{errorCode:Au}=Og();function rs(t,e="sftp",r,s){let i="",n="",a=s?` after ${s} ${s>1?"attempts":"attempt"}`:"";if(t===void 0)i=`${e}: Undefined error - probably a bug!`,n=Au.generic;else if(typeof t=="string")i=`${e}: ${t}${a}`,n=r||Au.generic;else if(t.custom)i=`${e}->${t.message}${a}`,n=t.code;else{switch(t.code){case"ENOTFOUND":i=`${e}: ${t.level} error. Address lookup failed for host ${t.hostname}${a}`;break;case"ECONNREFUSED":i=`${e}: ${t.level} error. Remote host at ${t.address} refused connection${a}`;break;case"ECONNRESET":i=`${e}: Remote host has reset the connection: ${t.message}${a}`;break;default:i=`${e}: ${t.message}${a}`}n=t.code?t.code:Au.generic}let o=new Error(i);return o.code=n,o.custom=!0,o}function uf(t,e,r,s){e in t.tempListeners?t.tempListeners[e].push([r,s]):t.tempListeners[e]=[[r,s]]}function nO(t,e,r){let s=i=>{if(t.endCalled||t.errorHandled)t.debugMsg(`${e}: Ignoring handled error: ${i.message}`);else if(t.debugMsg(`${e}: Handling error: ${i.message}`),t.errorHandled=!0,r)t.debugMsg(`${e}: handled error with reject`),r(rs(i,e,i.code));else throw t.debugMsg(`${e}: handling error with throw`),rs(i,e,i.code)};return uf(t,e,"error",s),s}function aO(t,e,r){let s=function(){if(t.endCalled||t.endHandled)t.debugMsg(`${e}: Ignoring expected end event`);else if(t.debugMsg(`${e}: Handling end event`),t.sftp=void 0,t.endHandled=!0,r)t.debugMsg(`${e}: handling end event with reject'`),r(rs("Unexpected end event raised",e));else throw t.debugMsg(`${e}: handling end event with throw`),rs("Unexpected end event raised",e)};return uf(t,e,"end",s),s}function oO(t,e,r){let s=function(){if(t.endCalled||t.closeHandled)t.debugMsg(`${e}: ignoring expected close event`);else if(t.debugMsg(`${e}: handling unexpected close event`),t.sftp=void 0,t.closeHandled=!0,r)t.debugMsg(`${e}: handling close event with reject`),r(rs("Unexpected close event raised",e));else throw t.debugMsg(`${e}: handling close event with throw`),rs("Unexpected close event raised",e)};return uf(t,e,"close",s),s}function KU(t,e,r){t.debugMsg(`${e}: Adding temp event listeners`),t.client.prependListener("end",aO(t,e,r)),t.client.prependListener("close",oO(t,e,r)),t.client.prependListener("error",nO(t,e,r))}function YU(t,e){t.debugMsg(`${e}: Removing temp event listeners`),e in t.tempListeners&&(t.tempListeners[e].forEach(([r,s])=>{t.client.removeListener(r,s)}),t.tempListeners=[])}function Tg(t){let e=xu.statSync(t,{throwIfNoEntry:!1});if(e){if(e.isDirectory())return"d";if(e.isFile())return"-";throw rs(`Bad path: ${t}: target must be a file or directory`,"localExists",Au.badPath)}else return!1}function Rg(t,e="r"){let r=xu.constants.F_OK|e==="w"?xu.constants.W_OK:xu.constants.R_OK;try{xu.accessSync(t,r);let s=Tg(t);return{status:!0,type:s,details:"access OK",code:0}}catch(s){switch(s.errno){case-2:return{status:!1,type:null,details:"not exist",code:-2};case-13:return{status:!1,type:Tg(t),details:"permission denied",code:-13};case-20:return{status:!1,type:null,details:"parent not a directory"};default:return{status:!1,type:null,details:s.message}}}}function JU(t){let{status:e,details:r,type:s}=Rg(t,"w");if(!e&&r==="permission denied")return{status:e,details:r,type:s};if(!e){let i=WU.dirname(t),n=Rg(i,"w");return n.status&&n.type!=="d"?{status:!1,details:`${i}: not a directory`,type:null}:n.status?{status:!0,details:"access OK",type:null,code:0}:{status:n.status,details:`${i}: ${n.details}`,type:null}}return{status:e,details:r,type:s}}async function QU(t,e){try{return e.startsWith("..")?await t.realPath("..")+t.remotePathSep+e.slice(3):e.startsWith(".")?await t.realPath(".")+t.remotePathSep+e.slice(2):e}catch(r){throw rs(r,"normalizeRemotePath")}}function XU(t,e,r){if(!t.sftp){let s=rs("No SFTP connection available",e,Au.connect);if(r)return r(s),!1;throw s}return!0}function ZU(t){return new Promise((e,r)=>{try{setTimeout(()=>{e(!0)},t)}catch(s){r(s)}})}uO.exports={fmtError:rs,addToTempListenerList:uf,errorListener:nO,endListener:aO,closeListener:oO,addTempListeners:KU,removeTempListeners:YU,haveLocalAccess:Rg,haveLocalCreate:JU,normalizeRemotePath:QU,localExists:Tg,haveConnection:XU,sleep:ZU}});var pO=h((lce,hO)=>{"use strict";var{Client:eG}=require("ssh2"),lf=require("fs"),tG=zA(),rG=sO(),{join:cf,parse:sG}=require("path"),{fmtError:fe,addTempListeners:wt,removeTempListeners:Et,haveConnection:kt,normalizeRemotePath:ff,localExists:cO,haveLocalAccess:fO,haveLocalCreate:Pg,sleep:iG}=lO(),{errorCode:Kt}=Og(),dO=class{constructor(e){this.client=new eG,this.sftp=void 0,this.clientName=e||"sftp",this.endCalled=!1,this.errorHandled=!1,this.closeHandled=!1,this.endHandled=!1,this.remotePathSep="/",this.remotePlatform="unix",this.debug=void 0,this.tempListeners={},this.client.on("close",()=>{this.endCalled||this.closeHandled?this.debugMsg("Global: Ignoring handled close event"):(this.debugMsg("Global: Handling unexpected close event"),this.sftp=void 0)}),this.client.on("end",()=>{this.endCalled||this.endHandled?this.debugMsg("Global: Ignoring hanlded end event"):(this.debugMsg("Global: Handling unexpected end event"),this.sftp=void 0)}),this.client.on("error",r=>{this.endCalled||this.errorHandled?this.debugMsg("Global: Ignoring handled error"):(this.debugMsg(`Global; Handling unexpected error; ${r.message}`),this.sftp=void 0,console.log(`ssh2-sftp-client: Unexpected error: ${r.message}. Error code: ${r.code}`))})}debugMsg(e,r){this.debug&&(r?this.debug(`CLIENT[${this.clientName}]: ${e} ${JSON.stringify(r,null," ")}`):this.debug(`CLIENT[${this.clientName}]: ${e}`))}on(e,r){this.debugMsg(`Adding listener to ${e} event`),this.client.prependListener(e,r)}removeListener(e,r){this.debugMsg(`Removing listener from ${e} event`),this.client.removeListener(e,r)}_resetEventFlags(){this.closeHandled=!1,this.endHandled=!1,this.errorHandled=!1}getConnection(e){let r;return new Promise((s,i)=>{wt(this,"getConnection",i),this.debugMsg("getConnection: created promise"),r=()=>{this.debugMsg("getConnection: got connection - promise resolved"),s(!0)},this.on("ready",r),this.client.connect(e)}).finally(async()=>{this.debugMsg("getConnection: finally clause fired"),await iG(500),this.removeListener("ready",r),Et(this,"getConnection"),this._resetEventFlags()})}getSftpChannel(){return new Promise((e,r)=>{wt(this,"getSftpChannel",r),this.debugMsg("getSftpChannel: created promise"),this.client.sftp((s,i)=>{s?(this.debugMsg(`getSftpChannel: SFTP Channel Error: ${s.message}`),this.client.end(),r(fe(s,"getSftpChannel",s.code))):(this.debugMsg("getSftpChannel: SFTP channel established"),this.sftp=i,e(i))})}).finally(()=>{this.debugMsg("getSftpChannel: finally clause fired"),Et(this,"getSftpChannel"),this._resetEventFlags()})}async connect(e){try{if(e.debug&&(this.debug=e.debug,this.debugMsg("connect: Debugging turned on")),this.sftp)throw this.debugMsg("connect: Already connected - reject"),fe("An existing SFTP connection is already defined","connect",Kt.connect);return await rG((r,s)=>(this.debugMsg(`connect: Connect attempt ${s}`),this.getConnection(e).catch(i=>{this.debugMsg("getConnection retry catch"),r(i)})),{retries:e.retries||1,factor:e.retry_factor||2,minTimeout:e.retry_minTimeout||1e3}),this.getSftpChannel()}catch(r){throw this.debugMsg(`connect: Error ${r.message}`),this._resetEventFlags(),fe(r,"connect")}}realPath(e){return new Promise((r,s)=>{this.debugMsg(`realPath -> ${e}`),wt(this,"realPath",s),kt(this,"realPath",s)&&this.sftp.realpath(e,(i,n)=>{i&&(this.debugMsg(`realPath Error: ${i.message} Code: ${i.code}`),i.code===2?r(""):s(fe(`${i.message} ${e}`,"realPath",i.code))),this.debugMsg(`realPath <- ${n}`),r(n)})}).finally(()=>{Et(this,"realPath"),this._resetEventFlags()})}cwd(){return this.realPath(".")}async stat(e){let r=s=>new Promise((i,n)=>{this.debugMsg(`_stat: ${s}`),wt(this,"_stat",n),this.sftp.stat(s,(a,o)=>{if(a)this.debugMsg(`_stat: Error ${a.message} code: ${a.code}`),a.code===2||a.code===4?n(fe(`No such file: ${e}`,"_stat",Kt.notexist)):n(fe(`${a.message} ${e}`,"_stat",a.code));else{let u={mode:o.mode,uid:o.uid,gid:o.gid,size:o.size,accessTime:o.atime*1e3,modifyTime:o.mtime*1e3,isDirectory:o.isDirectory(),isFile:o.isFile(),isBlockDevice:o.isBlockDevice(),isCharacterDevice:o.isCharacterDevice(),isSymbolicLink:o.isSymbolicLink(),isFIFO:o.isFIFO(),isSocket:o.isSocket()};this.debugMsg("_stat: stats <- ",u),i(u)}})}).finally(()=>{Et(this,"_stat")});try{kt(this,"stat");let s=await ff(this,e);return r(s)}catch(s){throw this._resetEventFlags(),s.custom?s:fe(s,"stat",s.code)}}async exists(e){try{if(kt(this,"exists")){if(e===".")return this.debugMsg("exists: . = d"),"d";let r=await ff(this,e);try{this.debugMsg(`exists: ${e} -> ${r}`);let s=await this.stat(r);return this.debugMsg("exists: <- ",s),s.isDirectory?(this.debugMsg(`exists: ${e} = d`),"d"):s.isSymbolicLink?(this.debugMsg(`exists: ${e} = l`),"l"):s.isFile?(this.debugMsg(`exists: ${e} = -`),"-"):(this.debugMsg(`exists: ${e} = false`),!1)}catch(s){if(s.code===Kt.notexist)return this.debugMsg(`exists: ${e} = false errorCode = ${s.code}`),!1;throw this.debugMsg(`exists: throw error ${s.message} ${s.code}`),s}}return this.debugMsg(`exists: default ${e} = false`),!1}catch(r){throw this._resetEventFlags(),r.custom?r:fe(r,"exists",r.code)}}list(e,r=/.*/){return new Promise((s,i)=>{if(kt(this,"list",i)){let n=/-/gi;this.debugMsg(`list: ${e} filter: ${r}`),wt(this,"list",i),this.sftp.readdir(e,(a,o)=>{if(a)this.debugMsg(`list: Error ${a.message} code: ${a.code}`),i(fe(`${a.message} ${e}`,"list",a.code));else{let u=[];o&&(u=o.map(f=>({type:f.longname.slice(0,1),name:f.filename,size:f.attrs.size,modifyTime:f.attrs.mtime*1e3,accessTime:f.attrs.atime*1e3,rights:{user:f.longname.slice(1,4).replace(n,""),group:f.longname.slice(4,7).replace(n,""),other:f.longname.slice(7,10).replace(n,"")},owner:f.attrs.uid,group:f.attrs.gid})));let l;if(r instanceof RegExp)l=r;else{let f=r.replace(/\*([^*])*?/gi,".*");l=new RegExp(f)}let c=u.filter(f=>l.test(f.name));this.debugMsg("list: result: ",c),s(c)}})}}).finally(()=>{Et(this,"list"),this._resetEventFlags()})}get(e,r,s={readStreamOptions:{},writeStreamOptions:{},pipeOptions:{}}){let i,n;return new Promise((a,o)=>{if(kt(this,"get",o)){if(this.debugMsg(`get -> ${e} `,s),wt(this,"get",o),i=this.sftp.createReadStream(e,s.readStreamOptions?s.readStreamOptions:{}),i.once("error",u=>{o(fe(`${u.message} ${e}`,"get",u.code))}),r===void 0)this.debugMsg("get returning buffer of data"),n=tG(u=>{a(u)});else{if(typeof r=="string"){this.debugMsg("get returning local file");let u=Pg(r);if(!u.status)return o(fe(`Bad path: ${r}: ${u.details}`,"get",u.code));n=lf.createWriteStream(r,s.writeStreamOptions?s.writeStreamOptions:{})}else this.debugMsg("get returning data into supplied stream"),n=r;n.once("error",u=>{o(fe(`${u.message} ${typeof r=="string"?r:""}`,"get",u.code))}),Object.hasOwnProperty.call(s,"pipeOptions")&&Object.hasOwnProperty.call(s.pipeOptions,"end")&&!s.pipeOptions.end?i.once("end",()=>{this.debugMsg("get resolved on reader end event"),a(typeof r=="string"?r:n)}):n.once("finish",()=>{this.debugMsg("get resolved on writer finish event"),a(typeof r=="string"?r:n)})}i.pipe(n,s.pipeOptions?s.pipeOptions:{})}}).finally(()=>{Et(this,"get"),this._resetEventFlags(),i&&Object.hasOwnProperty.call(s,"readStreamOptions")&&Object.hasOwnProperty.call(s.readStreamOptions,"autoClose")&&s.readStreamOptions.autoClose===!1&&i.destroy(),n&&Object.hasOwnProperty.call(s,"writeStreamOptions")&&Object.hasOwnProperty.call(s.writeStreamOptions,"autoClose")&&s.writeStreamOptions.autoClose===!1&&typeof r=="string"&&n.destroy()})}async fastGet(e,r,s){try{let i=await this.exists(e);if(i!=="-"){let o=i===!1?`No such file ${e}`:`Not a regular file ${e}`,u=new Error(o);throw u.code=Kt.badPath,u}let n=Pg(r);if(!n.status){let o=new Error(`Bad path: ${r}: ${n.details}`);throw o.code=Kt.badPath,o}return await new Promise((o,u)=>{kt(this,"fastGet",u)&&(this.debugMsg(`fastGet -> remote: ${e} local: ${r} `,s),wt(this,"fastGet",u),this.sftp.fastGet(e,r,s,l=>{l&&(this.debugMsg(`fastGet error ${l.message} code: ${l.code}`),u(l)),o(`${e} was successfully download to ${r}!`)}))}).finally(()=>{Et(this,"fastGet")})}catch(i){throw this._resetEventFlags(),fe(i,"fastGet")}}fastPut(e,r,s){return this.debugMsg(`fastPut -> local ${e} remote ${r}`),new Promise((i,n)=>{let a=fO(e);a.status?a.status&&cO(e)==="d"?n(fe(`Bad path: ${e} not a regular file`,"fastPut",Kt.badPath)):kt(this,"fastPut",n)&&(this.debugMsg(`fastPut -> local: ${e} remote: ${r} opts: ${JSON.stringify(s)}`),wt(this,"fastPut",n),this.sftp.fastPut(e,r,s,o=>{o&&(this.debugMsg(`fastPut error ${o.message} ${o.code}`),n(fe(`${o.message} Local: ${e} Remote: ${r}`,"fastPut",o.code))),this.debugMsg("fastPut file transferred"),i(`${e} was successfully uploaded to ${r}!`)})):n(fe(`Bad path: ${e}: ${a.details}`,"fastPut",a.code))}).finally(()=>{Et(this,"fastPut"),this._resetEventFlags()})}put(e,r,s={readStreamOptions:{},writeStreamOptions:{autoClose:!0},pipeOptions:{}}){let i,n;return new Promise((a,o)=>{if(typeof e=="string"){let u=fO(e);if(!u.status)return this.debugMsg(`put: local source check error ${u.details}`),o(fe(`Bad path: ${e}: ${u.details}`,"put",u.code))}kt(this,"put")&&(wt(this,"put",o),i=this.sftp.createWriteStream(r,s.writeStreamOptions?{...s.writeStreamOptions,autoClose:!0}:{}),i.once("error",u=>{this.debugMsg(`put: write stream error ${u.message}`),o(fe(`${u.message} ${r}`,"put",u.code))}),i.once("close",()=>{this.debugMsg("put: promise resolved"),a(`Uploaded data stream to ${r}`)}),e instanceof Buffer?(this.debugMsg("put source is a buffer"),i.end(e)):(typeof e=="string"?(this.debugMsg(`put source is a file path: ${e}`),n=lf.createReadStream(e,s.readStreamOptions?s.readStreamOptions:{})):(this.debugMsg("put source is a stream"),n=e),n.once("error",u=>{this.debugMsg(`put: read stream error ${u.message}`),o(fe(`${u.message} ${typeof e=="string"?e:""}`,"put",u.code))}),n.pipe(i,s.pipeOptions?s.pipeOptions:{})))}).finally(()=>{Et(this,"put"),this._resetEventFlags(),n&&Object.hasOwnProperty.call(s,"readStreamOptions")&&Object.hasOwnProperty.call(s.readStreamOptions,"autoClose")&&s.readStreamOptions.autoClose===!1&&typeof e=="string"&&n.destroy()})}async append(e,r,s={}){let i=await this.exists(r);if(i&&i==="d")throw fe(`Bad path: ${r}: cannot append to a directory`,"append",Kt.badPath);return await new Promise((n,a)=>{if(kt(this,"append",a))if(typeof e=="string")a(fe("Cannot append one file to another","append"));else{this.debugMsg(`append -> remote: ${r} `,s),wt(this,"append",a),s.flags="a";let o=this.sftp.createWriteStream(r,s);o.on("error",u=>{a(fe(`${u.message} ${r}`,"append",u.code))}),o.on("finish",()=>{n(`Appended data to ${r}`)}),e instanceof Buffer?(o.write(e),o.end()):e.pipe(o)}}).finally(()=>{Et(this,"append"),this._resetEventFlags()})}async mkdir(e,r=!1){let s=i=>new Promise((n,a)=>{this.debugMsg(`_mkdir: create ${i}`),wt(this,"_mkdir",a),this.sftp.mkdir(i,o=>{if(o)if(this.debugMsg(`_mkdir: Error ${o.message} code: ${o.code}`),o.code===4){let u=new Error(`Bad path: ${i} permission denied`);u.code=Kt.badPath,a(u)}else if(o.code===2){let u=new Error(`Bad path: ${i} parent not a directory or not exist`);u.code=Kt.badPath,a(u)}else a(o);else this.debugMsg("_mkdir: directory created"),n(`${i} directory created`)})}).finally(()=>{Et(this,"_mkdir"),this._resetEventFlags()});try{kt(this,"mkdir");let i=await ff(this,e),n=await this.exists(i);if(n&&n!=="d"){let o=new Error(`Bad path: ${i} already exists as a file`);throw o.code=Kt.badPath,o}else if(n)return`${i} already exists`;if(!r)return await s(i);let a=sG(i).dir;if(a){let o=await this.exists(a);if(!o)await this.mkdir(a,!0);else if(o!=="d"){let u=new Error(`Bad path: ${a} not a directory`);throw u.code=Kt.badPath,u}}return await s(i)}catch(i){throw fe(`${i.message}`,"mkdir",i.code)}}async rmdir(e,r=!1){let s=i=>new Promise((n,a)=>{this.debugMsg(`rmdir -> ${i}`),wt(this,"rmdir",a),this.sftp.rmdir(i,o=>{o&&(this.debugMsg(`rmdir error ${o.message} code: ${o.code}`),a(fe(`${o.message} ${i}`,"_rmdir",o.code))),n("Successfully removed directory")})}).finally(()=>{Et(this,"rmdir")});try{kt(this,"rmdir");let i=await ff(this,e);if(!r)return s(i);let n=await this.list(i);if(n.length){let a=n.filter(u=>u.type!=="d"),o=n.filter(u=>u.type==="d");this.debugMsg("rmdir contents (files): ",a),this.debugMsg("rmdir contents (dirs): ",o);for(let u of a)await this.delete(`${i}${this.remotePathSep}${u.name}`);for(let u of o)await this.rmdir(`${i}${this.remotePathSep}${u.name}`,!0)}return s(i)}catch(i){throw this._resetEventFlags(),i.custom?i:fe(i,"rmdir",i.code)}}delete(e,r=!1){return new Promise((s,i)=>{kt(this,"delete",i)&&(this.debugMsg(`delete -> ${e}`),wt(this,"delete",i),this.sftp.unlink(e,n=>{n&&(this.debugMsg(`delete error ${n.message} code: ${n.code}`),r&&n.code===2?(this.debugMsg("delete ignore missing target error"),s(`Successfully deleted ${e}`)):i(fe(`${n.message} ${e}`,"delete",n.code))),s(`Successfully deleted ${e}`)}))}).finally(()=>{Et(this,"delete"),this._resetEventFlags()})}rename(e,r){return new Promise((s,i)=>{kt(this,"rename",i)&&(this.debugMsg(`rename -> ${e} ${r}`),wt(this,"rename",i),this.sftp.rename(e,r,n=>{n&&(this.debugMsg(`rename error ${n.message} code: ${n.code}`),i(fe(`${n.message} From: ${e} To: ${r}`,"rename",n.code))),s(`Successfully renamed ${e} to ${r}`)}))}).finally(()=>{Et(this,"rename"),this._resetEventFlags()})}posixRename(e,r){return new Promise((s,i)=>{kt(this,"posixRename",i)&&(this.debugMsg(`posixRename -> ${e} ${r}`),wt(this,"posixRename",i),this.sftp.ext_openssh_rename(e,r,n=>{n&&(this.debugMsg(`posixRename error ${n.message} code: ${n.code}`),i(fe(`${n.message} From: ${e} To: ${r}`,"posixRename",n.code))),s(`Successful POSIX rename ${e} to ${r}`)}))}).finally(()=>{Et(this,"posixRename"),this._resetEventFlags()})}chmod(e,r){return new Promise((s,i)=>{this.debugMsg(`chmod -> ${e} ${r}`),wt(this,"chmod",i),this.sftp.chmod(e,r,n=>{n&&i(fe(`${n.message} ${e}`,"chmod",n.code)),s("Successfully change file mode")})}).finally(()=>{Et(this,"chmod"),this._resetEventFlags()})}async uploadDir(e,r,s=/.*/){try{if(this.debugMsg(`uploadDir -> ${e} ${r}`),cO(e)!=="d")throw fe(`Bad path: ${e}: not a directory`,"uploadDir",Kt.badPath);kt(this,"uploadDir");let n=await this.exists(r);if(n&&n!=="d")throw fe(`Bad path ${r}`,"uploadDir",Kt.badPath);n||await this.mkdir(r,!0);let a=lf.readdirSync(e,{encoding:"utf8",withFileTypes:!0});a=a.filter(o=>s.test(o.name));for(let o of a)if(o.isDirectory()){let u=cf(e,o.name),l=r+this.remotePathSep+o.name;await this.uploadDir(u,l,s)}else if(o.isFile()){let u=cf(e,o.name),l=r+this.remotePathSep+o.name;await this.fastPut(u,l),this.client.emit("upload",{source:u,destination:l})}else this.debugMsg(`uploadDir: File ignored: ${o.name} not a regular file`);return`${e} uploaded to ${r}`}catch(i){throw this._resetEventFlags(),i.custom?i:fe(i,"uploadDir")}}async downloadDir(e,r,s=/.*/){try{this.debugMsg(`downloadDir -> ${e} ${r}`),kt(this,"downloadDir");let i=await this.list(e,s),n=Pg(r);if(!n.status&&n.details==="permission denied")throw fe(`Bad path: ${r}: ${n.details}`,"downloadDir",n.code);if(n.status&&!n.type)lf.mkdirSync(r,{recursive:!0});else if(n.status&&n.type!=="d")throw fe(`Bad path: ${r}: not a directory`,"downloadDir",Kt.badPath);for(let a of i)if(a.type==="d"){let o=e+this.remotePathSep+a.name,u=cf(r,a.name);await this.downloadDir(o,u,s)}else if(a.type==="-"){let o=e+this.remotePathSep+a.name,u=cf(r,a.name);await this.fastGet(o,u),this.client.emit("download",{source:o,destination:u})}else this.debugMsg(`downloadDir: File ignored: ${a.name} not regular file`);return`${e} downloaded to ${r}`}catch(i){throw this._resetEventFlags(),i.custom?i:fe(i,"downloadDir",i.code)}}end(){let e;return new Promise((r,s)=>{this.endCalled=!0,wt(this,"end",s),e=()=>{this.sftp=void 0,this.debugMsg("end: Connection closed"),r(!0)},this.on("close",e),kt(this,"end",s)&&(this.debugMsg("end: Have connection - calling end()"),this.client.end())}).finally(()=>{this.debugMsg("end: finally clause fired"),Et(this,"end"),this.removeListener("close",e),this.endCalled=!1,this._resetEventFlags()})}};hO.exports=dO});var Tu=h(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.regexpCode=Ce.getProperty=Ce.safeStringify=Ce.stringify=Ce.strConcat=Ce.addCodeArg=Ce.str=Ce._=Ce.nil=Ce._Code=Ce.Name=Ce.IDENTIFIER=Ce._CodeOrName=void 0;var df=class{};Ce._CodeOrName=df;Ce.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Oa=class extends df{constructor(e){super();if(!Ce.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Ce.Name=Oa;var ss=class extends df{constructor(e){super();this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,s)=>`${r}${s}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,s)=>(s instanceof Oa&&(r[s.str]=(r[s.str]||0)+1),r),{})}};Ce._Code=ss;Ce.nil=new ss("");function mO(t,...e){let r=[t[0]],s=0;for(;s<e.length;)Fg(r,e[s]),r.push(t[++s]);return new ss(r)}Ce._=mO;var $g=new ss("+");function gO(t,...e){let r=[Ou(t[0])],s=0;for(;s<e.length;)r.push($g),Fg(r,e[s]),r.push($g,Ou(t[++s]));return nG(r),new ss(r)}Ce.str=gO;function Fg(t,e){e instanceof ss?t.push(...e._items):e instanceof Oa?t.push(e):t.push(uG(e))}Ce.addCodeArg=Fg;function nG(t){let e=1;for(;e<t.length-1;){if(t[e]===$g){let r=aG(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function aG(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Oa||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Oa))return`"${t}${e.slice(1)}`}function oG(t,e){return e.emptyStr()?t:t.emptyStr()?e:gO`${t}${e}`}Ce.strConcat=oG;function uG(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Ou(Array.isArray(t)?t.join(","):t)}function lG(t){return new ss(Ou(t))}Ce.stringify=lG;function Ou(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ce.safeStringify=Ou;function cG(t){return typeof t=="string"&&Ce.IDENTIFIER.test(t)?new ss(`.${t}`):mO`[${t}]`}Ce.getProperty=cG;function fG(t){return new ss(t.toString())}Ce.regexpCode=fG});var Ng=h(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.ValueScope=Bt.ValueScopeName=Bt.Scope=Bt.varKinds=Bt.UsedValueState=void 0;var Yt=Tu(),yO=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}},jg;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(jg=Bt.UsedValueState||(Bt.UsedValueState={}));Bt.varKinds={const:new Yt.Name("const"),let:new Yt.Name("let"),var:new Yt.Name("var")};var Ig=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Yt.Name?e:this.name(e)}name(e){return new Yt.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,s;if(((s=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||s===void 0?void 0:s.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Bt.Scope=Ig;var Mg=class extends Yt.Name{constructor(e,r){super(r);this.prefix=e}setValue(e,{property:r,itemIndex:s}){this.value=e,this.scopePath=(0,Yt._)`.${new Yt.Name(r)}[${s}]`}};Bt.ValueScopeName=Mg;var dG=(0,Yt._)`\n`,vO=class extends Ig{constructor(e){super(e);this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?dG:Yt.nil}}get(){return this._scope}name(e){return new Mg(e,this._newName(e))}value(e,r){var s;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(e),{prefix:n}=i,a=(s=r.key)!==null&&s!==void 0?s:r.ref,o=this._values[n];if(o){let c=o.get(a);if(c)return c}else o=this._values[n]=new Map;o.set(a,i);let u=this._scope[n]||(this._scope[n]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:n,itemIndex:l}),i}getValue(e,r){let s=this._values[e];if(!!s)return s.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,Yt._)`${e}${s.scopePath}`})}scopeCode(e=this._values,r,s){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,s)}_reduceValues(e,r,s={},i){let n=Yt.nil;for(let a in e){let o=e[a];if(!o)continue;let u=s[a]=s[a]||new Map;o.forEach(l=>{if(u.has(l))return;u.set(l,jg.Started);let c=r(l);if(c){let f=this.opts.es5?Bt.varKinds.var:Bt.varKinds.const;n=(0,Yt._)`${n}${f} ${l} = ${c};${this.opts._n}`}else if(c=i==null?void 0:i(l))n=(0,Yt._)`${n}${c}${this.opts._n}`;else throw new yO(l);u.set(l,jg.Completed)})}return n}};Bt.ValueScope=vO});var ae=h(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.or=se.and=se.not=se.CodeGen=se.operators=se.varKinds=se.ValueScopeName=se.ValueScope=se.Scope=se.Name=se.regexpCode=se.stringify=se.getProperty=se.nil=se.strConcat=se.str=se._=void 0;var de=Tu(),Br=Ng(),ui=Tu();Object.defineProperty(se,"_",{enumerable:!0,get:function(){return ui._}});Object.defineProperty(se,"str",{enumerable:!0,get:function(){return ui.str}});Object.defineProperty(se,"strConcat",{enumerable:!0,get:function(){return ui.strConcat}});Object.defineProperty(se,"nil",{enumerable:!0,get:function(){return ui.nil}});Object.defineProperty(se,"getProperty",{enumerable:!0,get:function(){return ui.getProperty}});Object.defineProperty(se,"stringify",{enumerable:!0,get:function(){return ui.stringify}});Object.defineProperty(se,"regexpCode",{enumerable:!0,get:function(){return ui.regexpCode}});Object.defineProperty(se,"Name",{enumerable:!0,get:function(){return ui.Name}});var hf=Ng();Object.defineProperty(se,"Scope",{enumerable:!0,get:function(){return hf.Scope}});Object.defineProperty(se,"ValueScope",{enumerable:!0,get:function(){return hf.ValueScope}});Object.defineProperty(se,"ValueScopeName",{enumerable:!0,get:function(){return hf.ValueScopeName}});Object.defineProperty(se,"varKinds",{enumerable:!0,get:function(){return hf.varKinds}});se.operators={GT:new de._Code(">"),GTE:new de._Code(">="),LT:new de._Code("<"),LTE:new de._Code("<="),EQ:new de._Code("==="),NEQ:new de._Code("!=="),NOT:new de._Code("!"),OR:new de._Code("||"),AND:new de._Code("&&"),ADD:new de._Code("+")};var li=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},bO=class extends li{constructor(e,r,s){super();this.varKind=e,this.name=r,this.rhs=s}render({es5:e,_n:r}){let s=e?Br.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${i};`+r}optimizeNames(e,r){if(!!e[this.name.str])return this.rhs&&(this.rhs=Ra(this.rhs,e,r)),this}get names(){return this.rhs instanceof de._CodeOrName?this.rhs.names:{}}},qg=class extends li{constructor(e,r,s){super();this.lhs=e,this.rhs=r,this.sideEffects=s}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof de.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Ra(this.rhs,e,r),this}get names(){let e=this.lhs instanceof de.Name?{}:{...this.lhs.names};return bf(e,this.rhs)}},_O=class extends qg{constructor(e,r,s,i){super(e,s,i);this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},wO=class extends li{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},EO=class extends li{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},kO=class extends li{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},DO=class extends li{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=Ra(this.code,e,r),this}get names(){return this.code instanceof de._CodeOrName?this.code.names:{}}},pf=class extends li{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce((r,s)=>r+s.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let s=e[r].optimizeNodes();Array.isArray(s)?e.splice(r,1,...s):s?e[r]=s:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:s}=this,i=s.length;for(;i--;){let n=s[i];n.optimizeNames(e,r)||(hG(e,n.names),s.splice(i,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>cn(e,r.names),{})}},ci=class extends pf{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},CO=class extends pf{},Ru=class extends ci{};Ru.kind="else";var is=class extends ci{constructor(e,r){super(r);this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let s=r.optimizeNodes();r=this.else=Array.isArray(s)?new Ru(s):s}if(r)return e===!1?r instanceof is?r:r.nodes:this.nodes.length?this:new is(TO(e),r instanceof is?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var s;if(this.else=(s=this.else)===null||s===void 0?void 0:s.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=Ra(this.condition,e,r),this}get names(){let e=super.names;return bf(e,this.condition),this.else&&cn(e,this.else.names),e}};is.kind="if";var Ta=class extends ci{};Ta.kind="for";var SO=class extends Ta{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(!!super.optimizeNames(e,r))return this.iteration=Ra(this.iteration,e,r),this}get names(){return cn(super.names,this.iteration.names)}},xO=class extends Ta{constructor(e,r,s,i){super();this.varKind=e,this.name=r,this.from=s,this.to=i}render(e){let r=e.es5?Br.varKinds.var:this.varKind,{name:s,from:i,to:n}=this;return`for(${r} ${s}=${i}; ${s}<${n}; ${s}++)`+super.render(e)}get names(){let e=bf(super.names,this.from);return bf(e,this.to)}},Bg=class extends Ta{constructor(e,r,s,i){super();this.loop=e,this.varKind=r,this.name=s,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(!!super.optimizeNames(e,r))return this.iterable=Ra(this.iterable,e,r),this}get names(){return cn(super.names,this.iterable.names)}},mf=class extends ci{constructor(e,r,s){super();this.name=e,this.args=r,this.async=s}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};mf.kind="func";var gf=class extends pf{render(e){return"return "+super.render(e)}};gf.kind="return";var AO=class extends ci{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var s,i;return super.optimizeNames(e,r),(s=this.catch)===null||s===void 0||s.optimizeNames(e,r),(i=this.finally)===null||i===void 0||i.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&cn(e,this.catch.names),this.finally&&cn(e,this.finally.names),e}},yf=class extends ci{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};yf.kind="catch";var vf=class extends ci{render(e){return"finally"+super.render(e)}};vf.kind="finally";var OO=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
83
|
-
`:""},this._extScope=e,this._scope=new Br.Scope({parent:e}),this._nodes=[new CO]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let s=this._extScope.value(e,r);return(this._values[s.prefix]||(this._values[s.prefix]=new Set)).add(s),s}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,s,i){let n=this._scope.toName(r);return s!==void 0&&i&&(this._constants[n.str]=s),this._leafNode(new bO(e,n,s)),n}const(e,r,s){return this._def(Br.varKinds.const,e,r,s)}let(e,r,s){return this._def(Br.varKinds.let,e,r,s)}var(e,r,s){return this._def(Br.varKinds.var,e,r,s)}assign(e,r,s){return this._leafNode(new qg(e,r,s))}add(e,r){return this._leafNode(new _O(e,se.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==de.nil&&this._leafNode(new DO(e)),this}object(...e){let r=["{"];for(let[s,i]of e)r.length>1&&r.push(","),r.push(s),(s!==i||this.opts.es5)&&(r.push(":"),(0,de.addCodeArg)(r,i));return r.push("}"),new de._Code(r)}if(e,r,s){if(this._blockNode(new is(e)),r&&s)this.code(r).else().code(s).endIf();else if(r)this.code(r).endIf();else if(s)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new is(e))}else(){return this._elseNode(new Ru)}endIf(){return this._endBlockNode(is,Ru)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new SO(e),r)}forRange(e,r,s,i,n=this.opts.es5?Br.varKinds.var:Br.varKinds.let){let a=this._scope.toName(e);return this._for(new xO(n,a,r,s),()=>i(a))}forOf(e,r,s,i=Br.varKinds.const){let n=this._scope.toName(e);if(this.opts.es5){let a=r instanceof de.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,de._)`${a}.length`,o=>{this.var(n,(0,de._)`${a}[${o}]`),s(n)})}return this._for(new Bg("of",i,n,r),()=>s(n))}forIn(e,r,s,i=this.opts.es5?Br.varKinds.var:Br.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,de._)`Object.keys(${r})`,s);let n=this._scope.toName(e);return this._for(new Bg("in",i,n,r),()=>s(n))}endFor(){return this._endBlockNode(Ta)}label(e){return this._leafNode(new wO(e))}break(e){return this._leafNode(new EO(e))}return(e){let r=new gf;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(gf)}try(e,r,s){if(!r&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new AO;if(this._blockNode(i),this.code(e),r){let n=this.name("e");this._currNode=i.catch=new yf(n),r(n)}return s&&(this._currNode=i.finally=new vf,this.code(s)),this._endBlockNode(yf,vf)}throw(e){return this._leafNode(new kO(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let s=this._nodes.length-r;if(s<0||e!==void 0&&s!==e)throw new Error(`CodeGen: wrong number of nodes: ${s} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=de.nil,s,i){return this._blockNode(new mf(e,r,s)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(mf)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let s=this._currNode;if(s instanceof e||r&&s instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof is))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};se.CodeGen=OO;function cn(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function bf(t,e){return e instanceof de._CodeOrName?cn(t,e.names):t}function Ra(t,e,r){if(t instanceof de.Name)return s(t);if(!i(t))return t;return new de._Code(t._items.reduce((n,a)=>(a instanceof de.Name&&(a=s(a)),a instanceof de._Code?n.push(...a._items):n.push(a),n),[]));function s(n){let a=r[n.str];return a===void 0||e[n.str]!==1?n:(delete e[n.str],a)}function i(n){return n instanceof de._Code&&n._items.some(a=>a instanceof de.Name&&e[a.str]===1&&r[a.str]!==void 0)}}function hG(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function TO(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,de._)`!${Lg(t)}`}se.not=TO;var pG=RO(se.operators.AND);function mG(...t){return t.reduce(pG)}se.and=mG;var gG=RO(se.operators.OR);function yG(...t){return t.reduce(gG)}se.or=yG;function RO(t){return(e,r)=>e===de.nil?r:r===de.nil?e:(0,de._)`${Lg(e)} ${t} ${Lg(r)}`}function Lg(t){return t instanceof de.Name?t:(0,de._)`(${t})`}});var we=h(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.checkStrictMode=ie.getErrorPath=ie.Type=ie.useFunc=ie.setEvaluated=ie.evaluatedPropsToName=ie.mergeEvaluated=ie.eachItem=ie.unescapeJsonPointer=ie.escapeJsonPointer=ie.escapeFragment=ie.unescapeFragment=ie.schemaRefOrVal=ie.schemaHasRulesButRef=ie.schemaHasRules=ie.checkUnknownRules=ie.alwaysValidSchema=ie.toHash=void 0;var Pe=ae(),vG=Tu();function bG(t){let e={};for(let r of t)e[r]=!0;return e}ie.toHash=bG;function _G(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(PO(t,e),!$O(e,t.self.RULES.all))}ie.alwaysValidSchema=_G;function PO(t,e=t.schema){let{opts:r,self:s}=t;if(!r.strictSchema||typeof e=="boolean")return;let i=s.RULES.keywords;for(let n in e)i[n]||qO(t,`unknown keyword: "${n}"`)}ie.checkUnknownRules=PO;function $O(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}ie.schemaHasRules=$O;function wG(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}ie.schemaHasRulesButRef=wG;function EG({topSchemaRef:t,schemaPath:e},r,s,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Pe._)`${r}`}return(0,Pe._)`${t}${e}${(0,Pe.getProperty)(s)}`}ie.schemaRefOrVal=EG;function kG(t){return FO(decodeURIComponent(t))}ie.unescapeFragment=kG;function DG(t){return encodeURIComponent(Hg(t))}ie.escapeFragment=DG;function Hg(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}ie.escapeJsonPointer=Hg;function FO(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}ie.unescapeJsonPointer=FO;function CG(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}ie.eachItem=CG;function jO({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:s}){return(i,n,a,o)=>{let u=a===void 0?n:a instanceof Pe.Name?(n instanceof Pe.Name?t(i,n,a):e(i,n,a),a):n instanceof Pe.Name?(e(i,a,n),n):r(n,a);return o===Pe.Name&&!(u instanceof Pe.Name)?s(i,u):u}}ie.mergeEvaluated={props:jO({mergeNames:(t,e,r)=>t.if((0,Pe._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,Pe._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,Pe._)`${r} || {}`).code((0,Pe._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,Pe._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,Pe._)`${r} || {}`),Ug(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:IO}),items:jO({mergeNames:(t,e,r)=>t.if((0,Pe._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,Pe._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,Pe._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,Pe._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function IO(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,Pe._)`{}`);return e!==void 0&&Ug(t,r,e),r}ie.evaluatedPropsToName=IO;function Ug(t,e,r){Object.keys(r).forEach(s=>t.assign((0,Pe._)`${e}${(0,Pe.getProperty)(s)}`,!0))}ie.setEvaluated=Ug;var MO={};function SG(t,e){return t.scopeValue("func",{ref:e,code:MO[e.code]||(MO[e.code]=new vG._Code(e.code))})}ie.useFunc=SG;var NO;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(NO=ie.Type||(ie.Type={}));function xG(t,e,r){if(t instanceof Pe.Name){let s=e===NO.Num;return r?s?(0,Pe._)`"[" + ${t} + "]"`:(0,Pe._)`"['" + ${t} + "']"`:s?(0,Pe._)`"/" + ${t}`:(0,Pe._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Pe.getProperty)(t).toString():"/"+Hg(t)}ie.getErrorPath=xG;function qO(t,e,r=t.opts.strictSchema){if(!!r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}ie.checkStrictMode=qO});var Os=h(Gg=>{"use strict";Object.defineProperty(Gg,"__esModule",{value:!0});var Pt=ae(),AG={data:new Pt.Name("data"),valCxt:new Pt.Name("valCxt"),instancePath:new Pt.Name("instancePath"),parentData:new Pt.Name("parentData"),parentDataProperty:new Pt.Name("parentDataProperty"),rootData:new Pt.Name("rootData"),dynamicAnchors:new Pt.Name("dynamicAnchors"),vErrors:new Pt.Name("vErrors"),errors:new Pt.Name("errors"),this:new Pt.Name("this"),self:new Pt.Name("self"),scope:new Pt.Name("scope"),json:new Pt.Name("json"),jsonPos:new Pt.Name("jsonPos"),jsonLen:new Pt.Name("jsonLen"),jsonPart:new Pt.Name("jsonPart")};Gg.default=AG});var Pu=h($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.extendErrors=$t.resetErrorsCount=$t.reportExtraError=$t.reportError=$t.keyword$DataError=$t.keywordError=void 0;var me=ae(),_f=we(),Lt=Os();$t.keywordError={message:({keyword:t})=>(0,me.str)`must pass "${t}" keyword validation`};$t.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,me.str)`"${t}" keyword must be ${e} ($data)`:(0,me.str)`"${t}" keyword is invalid ($data)`};function OG(t,e=$t.keywordError,r,s){let{it:i}=t,{gen:n,compositeRule:a,allErrors:o}=i,u=HO(t,e,r);s??(a||o)?BO(n,u):LO(i,(0,me._)`[${u}]`)}$t.reportError=OG;function TG(t,e=$t.keywordError,r){let{it:s}=t,{gen:i,compositeRule:n,allErrors:a}=s,o=HO(t,e,r);BO(i,o),n||a||LO(s,Lt.default.vErrors)}$t.reportExtraError=TG;function RG(t,e){t.assign(Lt.default.errors,e),t.if((0,me._)`${Lt.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,me._)`${Lt.default.vErrors}.length`,e),()=>t.assign(Lt.default.vErrors,null)))}$t.resetErrorsCount=RG;function PG({gen:t,keyword:e,schemaValue:r,data:s,errsCount:i,it:n}){if(i===void 0)throw new Error("ajv implementation error");let a=t.name("err");t.forRange("i",i,Lt.default.errors,o=>{t.const(a,(0,me._)`${Lt.default.vErrors}[${o}]`),t.if((0,me._)`${a}.instancePath === undefined`,()=>t.assign((0,me._)`${a}.instancePath`,(0,me.strConcat)(Lt.default.instancePath,n.errorPath))),t.assign((0,me._)`${a}.schemaPath`,(0,me.str)`${n.errSchemaPath}/${e}`),n.opts.verbose&&(t.assign((0,me._)`${a}.schema`,r),t.assign((0,me._)`${a}.data`,s))})}$t.extendErrors=PG;function BO(t,e){let r=t.const("err",e);t.if((0,me._)`${Lt.default.vErrors} === null`,()=>t.assign(Lt.default.vErrors,(0,me._)`[${r}]`),(0,me._)`${Lt.default.vErrors}.push(${r})`),t.code((0,me._)`${Lt.default.errors}++`)}function LO(t,e){let{gen:r,validateName:s,schemaEnv:i}=t;i.$async?r.throw((0,me._)`new ${t.ValidationError}(${e})`):(r.assign((0,me._)`${s}.errors`,e),r.return(!1))}var fn={keyword:new me.Name("keyword"),schemaPath:new me.Name("schemaPath"),params:new me.Name("params"),propertyName:new me.Name("propertyName"),message:new me.Name("message"),schema:new me.Name("schema"),parentSchema:new me.Name("parentSchema")};function HO(t,e,r){let{createErrors:s}=t.it;return s===!1?(0,me._)`{}`:$G(t,e,r)}function $G(t,e,r={}){let{gen:s,it:i}=t,n=[FG(i,r),jG(t,r)];return IG(t,e,n),s.object(...n)}function FG({errorPath:t},{instancePath:e}){let r=e?(0,me.str)`${t}${(0,_f.getErrorPath)(e,_f.Type.Str)}`:t;return[Lt.default.instancePath,(0,me.strConcat)(Lt.default.instancePath,r)]}function jG({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:s}){let i=s?e:(0,me.str)`${e}/${t}`;return r&&(i=(0,me.str)`${i}${(0,_f.getErrorPath)(r,_f.Type.Str)}`),[fn.schemaPath,i]}function IG(t,{params:e,message:r},s){let{keyword:i,data:n,schemaValue:a,it:o}=t,{opts:u,propertyName:l,topSchemaRef:c,schemaPath:f}=o;s.push([fn.keyword,i],[fn.params,typeof e=="function"?e(t):e||(0,me._)`{}`]),u.messages&&s.push([fn.message,typeof r=="function"?r(t):r]),u.verbose&&s.push([fn.schema,a],[fn.parentSchema,(0,me._)`${c}${f}`],[Lt.default.data,n]),l&&s.push([fn.propertyName,l])}});var GO=h(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.boolOrEmptySchema=Pa.topBoolOrEmptySchema=void 0;var MG=Pu(),NG=ae(),qG=Os(),BG={message:"boolean schema is false"};function LG(t){let{gen:e,schema:r,validateName:s}=t;r===!1?UO(t,!1):typeof r=="object"&&r.$async===!0?e.return(qG.default.data):(e.assign((0,NG._)`${s}.errors`,null),e.return(!0))}Pa.topBoolOrEmptySchema=LG;function HG(t,e){let{gen:r,schema:s}=t;s===!1?(r.var(e,!1),UO(t)):r.var(e,!0)}Pa.boolOrEmptySchema=HG;function UO(t,e){let{gen:r,data:s}=t,i={gen:r,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,MG.reportError)(i,BG,void 0,e)}});var Vg=h($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.getRules=$a.isJSONType=void 0;var UG=["string","number","integer","boolean","null","object","array"],GG=new Set(UG);function VG(t){return typeof t=="string"&&GG.has(t)}$a.isJSONType=VG;function zG(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}$a.getRules=zG});var zg=h(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.shouldUseRule=fi.shouldUseGroup=fi.schemaHasRulesForType=void 0;function WG({schema:t,self:e},r){let s=e.RULES.types[r];return s&&s!==!0&&VO(t,s)}fi.schemaHasRulesForType=WG;function VO(t,e){return e.rules.some(r=>zO(t,r))}fi.shouldUseGroup=VO;function zO(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(s=>t[s]!==void 0))}fi.shouldUseRule=zO});var Fu=h(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.reportTypeError=Dt.checkDataTypes=Dt.checkDataType=Dt.coerceAndCheckDataType=Dt.getJSONTypes=Dt.getSchemaTypes=Dt.DataType=void 0;var KG=Vg(),YG=zg(),JG=Pu(),ee=ae(),WO=we(),$u;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})($u=Dt.DataType||(Dt.DataType={}));function QG(t){let e=KO(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Dt.getSchemaTypes=QG;function KO(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(KG.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Dt.getJSONTypes=KO;function XG(t,e){let{gen:r,data:s,opts:i}=t,n=ZG(e,i.coerceTypes),a=e.length>0&&!(n.length===0&&e.length===1&&(0,YG.schemaHasRulesForType)(t,e[0]));if(a){let o=Kg(e,s,i.strictNumbers,$u.Wrong);r.if(o,()=>{n.length?eV(t,e,n):Yg(t)})}return a}Dt.coerceAndCheckDataType=XG;var YO=new Set(["string","number","integer","boolean","null"]);function ZG(t,e){return e?t.filter(r=>YO.has(r)||e==="array"&&r==="array"):[]}function eV(t,e,r){let{gen:s,data:i,opts:n}=t,a=s.let("dataType",(0,ee._)`typeof ${i}`),o=s.let("coerced",(0,ee._)`undefined`);n.coerceTypes==="array"&&s.if((0,ee._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>s.assign(i,(0,ee._)`${i}[0]`).assign(a,(0,ee._)`typeof ${i}`).if(Kg(e,i,n.strictNumbers),()=>s.assign(o,i))),s.if((0,ee._)`${o} !== undefined`);for(let l of r)(YO.has(l)||l==="array"&&n.coerceTypes==="array")&&u(l);s.else(),Yg(t),s.endIf(),s.if((0,ee._)`${o} !== undefined`,()=>{s.assign(i,o),tV(t,o)});function u(l){switch(l){case"string":s.elseIf((0,ee._)`${a} == "number" || ${a} == "boolean"`).assign(o,(0,ee._)`"" + ${i}`).elseIf((0,ee._)`${i} === null`).assign(o,(0,ee._)`""`);return;case"number":s.elseIf((0,ee._)`${a} == "boolean" || ${i} === null
|
|
81
|
+
`)),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIdx;return this.base.submit.call(this)}};function _8(t,e={}){if(Array.isArray(e.scale))return e.scale.map(s=>({...s}));let r=[];for(let s=1;s<t+1;s++)r.push({i:s,selected:!1});return r}IC.exports=jC});var qC=h((gie,NC)=>{NC.exports=Nm()});var HC=h((yie,LC)=>{"use strict";var w8=Cc(),BC=class extends w8{async initialize(){await super.initialize(),this.value=this.initial=!!this.options.initial,this.disabled=this.options.disabled||"no",this.enabled=this.options.enabled||"yes",await this.render()}reset(){this.value=this.initial,this.render()}delete(){this.alert()}toggle(){this.value=!this.value,this.render()}enable(){if(this.value===!0)return this.alert();this.value=!0,this.render()}disable(){if(this.value===!1)return this.alert();this.value=!1,this.render()}up(){this.toggle()}down(){this.toggle()}right(){this.toggle()}left(){this.toggle()}next(){this.toggle()}prev(){this.toggle()}dispatch(e="",r){switch(e.toLowerCase()){case" ":return this.toggle();case"1":case"y":case"t":return this.enable();case"0":case"n":case"f":return this.disable();default:return this.alert()}}format(){let e=s=>this.styles.primary.underline(s);return[this.value?this.disabled:e(this.disabled),this.value?e(this.enabled):this.enabled].join(this.styles.muted(" / "))}async render(){let{size:e}=this.state,r=await this.header(),s=await this.prefix(),i=await this.separator(),n=await this.message(),a=await this.format(),o=await this.error()||await this.hint(),u=await this.footer(),l=[s,n,i,a].join(" ");this.state.prompt=l,o&&!l.includes(o)&&(l+=" "+o),this.clear(e),this.write([r,l,u].filter(Boolean).join(`
|
|
82
|
+
`)),this.write(this.margin[2]),this.restore()}};LC.exports=BC});var VC=h((vie,GC)=>{"use strict";var E8=Ks(),UC=class extends E8{constructor(e){super(e);if(typeof this.options.correctChoice!="number"||this.options.correctChoice<0)throw new Error("Please specify the index of the correct answer from the list of choices")}async toChoices(e,r){let s=await super.toChoices(e,r);if(s.length<2)throw new Error("Please give at least two choices to the user");if(this.options.correctChoice>s.length)throw new Error("Please specify the index of the correct answer from the list of choices");return s}check(e){return e.index===this.options.correctChoice}async result(e){return{selectedAnswer:e,correctAnswer:this.options.choices[this.options.correctChoice].value,correct:await this.check(this.state)}}};GC.exports=UC});var WC=h(Lm=>{"use strict";var zC=Rt(),nt=(t,e)=>{zC.defineExport(Lm,t,e),zC.defineExport(Lm,t.toLowerCase(),e)};nt("AutoComplete",()=>jD());nt("BasicAuth",()=>UD());nt("Confirm",()=>KD());nt("Editable",()=>QD());nt("Form",()=>Dc());nt("Input",()=>Nm());nt("Invisible",()=>oC());nt("List",()=>cC());nt("MultiSelect",()=>hC());nt("Numeral",()=>yC());nt("Password",()=>_C());nt("Scale",()=>DC());nt("Select",()=>Ks());nt("Snippet",()=>RC());nt("Sort",()=>FC());nt("Survey",()=>MC());nt("Text",()=>qC());nt("Toggle",()=>HC());nt("Quiz",()=>VC())});var YC=h((_ie,KC)=>{KC.exports={ArrayPrompt:au(),AuthPrompt:Mm(),BooleanPrompt:Cc(),NumberPrompt:qm(),StringPrompt:Xi()}});var Gm=h((wie,QC)=>{"use strict";var JC=require("assert"),Hm=require("events"),Ys=Rt(),Qr=class extends Hm{constructor(e,r){super();this.options=Ys.merge({},e),this.answers={...r}}register(e,r){if(Ys.isObject(e)){for(let i of Object.keys(e))this.register(i,e[i]);return this}JC.equal(typeof r,"function","expected a function");let s=e.toLowerCase();return r.prototype instanceof this.Prompt?this.prompts[s]=r:this.prompts[s]=r(this.Prompt,this),this}async prompt(e=[]){for(let r of[].concat(e))try{typeof r=="function"&&(r=await r.call(this)),await this.ask(Ys.merge({},this.options,r))}catch(s){return Promise.reject(s)}return this.answers}async ask(e){typeof e=="function"&&(e=await e.call(this));let r=Ys.merge({},this.options,e),{type:s,name:i}=e,{set:n,get:a}=Ys;if(typeof s=="function"&&(s=await s.call(this,e,this.answers)),!s)return this.answers[i];JC(this.prompts[s],`Prompt "${s}" is not registered`);let o=new this.prompts[s](r),u=a(this.answers,i);o.state.answers=this.answers,o.enquirer=this,i&&o.on("submit",c=>{this.emit("answer",i,c,o),n(this.answers,i,c)});let l=o.emit.bind(o);return o.emit=(...c)=>(this.emit.call(this,...c),l(...c)),this.emit("prompt",o,this),r.autofill&&u!=null?(o.value=o.input=u,r.autofill==="show"&&await o.submit()):u=o.value=await o.run(),u}use(e){return e.call(this,this),this}set Prompt(e){this._Prompt=e}get Prompt(){return this._Prompt||this.constructor.Prompt}get prompts(){return this.constructor.prompts}static set Prompt(e){this._Prompt=e}static get Prompt(){return this._Prompt||ua()}static get prompts(){return WC()}static get types(){return YC()}static get prompt(){let e=(r,...s)=>{let i=new this(...s),n=i.emit.bind(i);return i.emit=(...a)=>(e.emit(...a),n(...a)),i.prompt(r)};return Ys.mixinEmitter(e,new Hm),e}};Ys.mixinEmitter(Qr,new Hm);var Um=Qr.prompts;for(let t of Object.keys(Um)){let e=t.toLowerCase(),r=s=>new Um[t](s).run();Qr.prompt[e]=r,Qr[e]=r,Qr[t]||Reflect.defineProperty(Qr,t,{get:()=>Um[t]})}var ou=t=>{Ys.defineExport(Qr,t,()=>Qr.types[t])};ou("ArrayPrompt");ou("AuthPrompt");ou("BooleanPrompt");ou("NumberPrompt");ou("StringPrompt");QC.exports=Qr});var Zm=h((Ile,Fx)=>{Fx.exports=require("stream")});var Nx=h((Mle,Mx)=>{"use strict";function jx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,s)}return r}function nH(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jx(Object(r),!0).forEach(function(s){aH(t,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jx(Object(r)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(r,s))})}return t}function aH(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ix(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function uH(t,e,r){return e&&Ix(t.prototype,e),r&&Ix(t,r),t}var lH=require("buffer"),Gc=lH.Buffer,cH=require("util"),eg=cH.inspect,fH=eg&&eg.custom||"inspect";function dH(t,e,r){Gc.prototype.copy.call(t,e,r)}Mx.exports=function(){function t(){oH(this,t),this.head=null,this.tail=null,this.length=0}return uH(t,[{key:"push",value:function(r){var s={data:r,next:null};this.length>0?this.tail.next=s:this.head=s,this.tail=s,++this.length}},{key:"unshift",value:function(r){var s={data:r,next:this.head};this.length===0&&(this.tail=s),this.head=s,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var s=this.head,i=""+s.data;s=s.next;)i+=r+s.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Gc.alloc(0);for(var s=Gc.allocUnsafe(r>>>0),i=this.head,n=0;i;)dH(i.data,s,n),n+=i.data.length,i=i.next;return s}},{key:"consume",value:function(r,s){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=s?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var s=this.head,i=1,n=s.data;for(r-=n.length;s=s.next;){var a=s.data,o=r>a.length?a.length:r;if(o===a.length?n+=a:n+=a.slice(0,r),r-=o,r===0){o===a.length?(++i,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=a.slice(o));break}++i}return this.length-=i,n}},{key:"_getBuffer",value:function(r){var s=Gc.allocUnsafe(r),i=this.head,n=1;for(i.data.copy(s),r-=i.data.length;i=i.next;){var a=i.data,o=r>a.length?a.length:r;if(a.copy(s,s.length-r,0,o),r-=o,r===0){o===a.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(o));break}++n}return this.length-=n,s}},{key:fH,value:function(r,s){return eg(this,nH({},s,{depth:0,customInspect:!1}))}}]),t}()});var rg=h((Nle,Bx)=>{"use strict";function hH(t,e){var r=this,s=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return s||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(tg,this,t)):process.nextTick(tg,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(n){!e&&n?r._writableState?r._writableState.errorEmitted?process.nextTick(Vc,r):(r._writableState.errorEmitted=!0,process.nextTick(qx,r,n)):process.nextTick(qx,r,n):e?(process.nextTick(Vc,r),e(n)):process.nextTick(Vc,r)}),this)}function qx(t,e){tg(t,e),Vc(t)}function Vc(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function pH(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function tg(t,e){t.emit("error",e)}function mH(t,e){var r=t._readableState,s=t._writableState;r&&r.autoDestroy||s&&s.autoDestroy?t.destroy(e):t.emit("error",e)}Bx.exports={destroy:hH,undestroy:pH,errorOrDestroy:mH}});var si=h((qle,Ux)=>{"use strict";var Lx={};function yr(t,e,r){r||(r=Error);function s(n,a,o){return typeof e=="string"?e:e(n,a,o)}class i extends r{constructor(a,o,u){super(s(a,o,u))}}i.prototype.name=r.name,i.prototype.code=t,Lx[t]=i}function Hx(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(s=>String(s)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function gH(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function yH(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function vH(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}yr("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);yr("ERR_INVALID_ARG_TYPE",function(t,e,r){let s;typeof e=="string"&&gH(e,"not ")?(s="must not be",e=e.replace(/^not /,"")):s="must be";let i;if(yH(t," argument"))i=`The ${t} ${s} ${Hx(e,"type")}`;else{let n=vH(t,".")?"property":"argument";i=`The "${t}" ${n} ${s} ${Hx(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);yr("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");yr("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});yr("ERR_STREAM_PREMATURE_CLOSE","Premature close");yr("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});yr("ERR_MULTIPLE_CALLBACK","Callback called multiple times");yr("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");yr("ERR_STREAM_WRITE_AFTER_END","write after end");yr("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);yr("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);yr("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Ux.exports.codes=Lx});var sg=h((Ble,Gx)=>{"use strict";var bH=si().codes.ERR_INVALID_OPT_VALUE;function _H(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function wH(t,e,r,s){var i=_H(e,s,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var n=s?r:"highWaterMark";throw new bH(n,i)}return Math.floor(i)}return t.objectMode?16:16*1024}Gx.exports={getHighWaterMark:wH}});var zx=h((Lle,Vx)=>{Vx.exports=require("util").deprecate});var ag=h((Hle,Xx)=>{"use strict";Xx.exports=We;function Wx(t){var e=this;this.next=null,this.entry=null,this.finish=function(){KH(e,t)}}var Da;We.WritableState=yu;var EH={deprecate:zx()},Kx=Zm(),zc=require("buffer").Buffer,kH=global.Uint8Array||function(){};function DH(t){return zc.from(t)}function CH(t){return zc.isBuffer(t)||t instanceof kH}var ig=rg(),SH=sg(),xH=SH.getHighWaterMark,ii=si().codes,AH=ii.ERR_INVALID_ARG_TYPE,OH=ii.ERR_METHOD_NOT_IMPLEMENTED,TH=ii.ERR_MULTIPLE_CALLBACK,RH=ii.ERR_STREAM_CANNOT_PIPE,PH=ii.ERR_STREAM_DESTROYED,$H=ii.ERR_STREAM_NULL_VALUES,FH=ii.ERR_STREAM_WRITE_AFTER_END,jH=ii.ERR_UNKNOWN_ENCODING,Ca=ig.errorOrDestroy;Gs()(We,Kx);function IH(){}function yu(t,e,r){Da=Da||rn(),t=t||{},typeof r!="boolean"&&(r=e instanceof Da),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=xH(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=t.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){UH(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Wx(this)}yu.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(yu.prototype,"buffer",{get:EH.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Wc;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Wc=Function.prototype[Symbol.hasInstance],Object.defineProperty(We,Symbol.hasInstance,{value:function(e){return Wc.call(this,e)?!0:this!==We?!1:e&&e._writableState instanceof yu}})):Wc=function(e){return e instanceof this};function We(t){Da=Da||rn();var e=this instanceof Da;if(!e&&!Wc.call(We,this))return new We(t);this._writableState=new yu(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Kx.call(this)}We.prototype.pipe=function(){Ca(this,new RH)};function MH(t,e){var r=new FH;Ca(t,r),process.nextTick(e,r)}function NH(t,e,r,s){var i;return r===null?i=new $H:typeof r!="string"&&!e.objectMode&&(i=new AH("chunk",["string","Buffer"],r)),i?(Ca(t,i),process.nextTick(s,i),!1):!0}We.prototype.write=function(t,e,r){var s=this._writableState,i=!1,n=!s.objectMode&&CH(t);return n&&!zc.isBuffer(t)&&(t=DH(t)),typeof e=="function"&&(r=e,e=null),n?e="buffer":e||(e=s.defaultEncoding),typeof r!="function"&&(r=IH),s.ending?MH(this,r):(n||NH(this,s,t,r))&&(s.pendingcb++,i=BH(this,s,n,t,e,r)),i};We.prototype.cork=function(){this._writableState.corked++};We.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Jx(this,t))};We.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new jH(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(We.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function qH(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=zc.from(e,r)),e}Object.defineProperty(We.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function BH(t,e,r,s,i,n){if(!r){var a=qH(e,s,i);s!==a&&(r=!0,i="buffer",s=a)}var o=e.objectMode?1:s.length;e.length+=o;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:s,encoding:i,isBuf:r,callback:n,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ng(t,e,!1,o,s,i,n);return u}function ng(t,e,r,s,i,n,a){e.writelen=s,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new PH("write")):r?t._writev(i,e.onwrite):t._write(i,n,e.onwrite),e.sync=!1}function LH(t,e,r,s,i){--e.pendingcb,r?(process.nextTick(i,s),process.nextTick(vu,t,e),t._writableState.errorEmitted=!0,Ca(t,s)):(i(s),t._writableState.errorEmitted=!0,Ca(t,s),vu(t,e))}function HH(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function UH(t,e){var r=t._writableState,s=r.sync,i=r.writecb;if(typeof i!="function")throw new TH;if(HH(r),e)LH(t,r,s,e,i);else{var n=Qx(r)||t.destroyed;!n&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Jx(t,r),s?process.nextTick(Yx,t,r,n,i):Yx(t,r,n,i)}}function Yx(t,e,r,s){r||GH(t,e),e.pendingcb--,s(),vu(t,e)}function GH(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Jx(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var s=e.bufferedRequestCount,i=new Array(s),n=e.corkedRequestsFree;n.entry=r;for(var a=0,o=!0;r;)i[a]=r,r.isBuf||(o=!1),r=r.next,a+=1;i.allBuffers=o,ng(t,e,!0,e.length,i,"",n.finish),e.pendingcb++,e.lastBufferedRequest=null,n.next?(e.corkedRequestsFree=n.next,n.next=null):e.corkedRequestsFree=new Wx(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,c=r.callback,f=e.objectMode?1:u.length;if(ng(t,e,!1,f,u,l,c),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}We.prototype._write=function(t,e,r){r(new OH("_write()"))};We.prototype._writev=null;We.prototype.end=function(t,e,r){var s=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),s.corked&&(s.corked=1,this.uncork()),s.ending||WH(this,s,r),this};Object.defineProperty(We.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Qx(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function VH(t,e){t._final(function(r){e.pendingcb--,r&&Ca(t,r),e.prefinished=!0,t.emit("prefinish"),vu(t,e)})}function zH(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(VH,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function vu(t,e){var r=Qx(e);if(r&&(zH(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var s=t._readableState;(!s||s.autoDestroy&&s.endEmitted)&&t.destroy()}return r}function WH(t,e,r){e.ending=!0,vu(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function KH(t,e,r){var s=t.entry;for(t.entry=null;s;){var i=s.callback;e.pendingcb--,i(r),s=s.next}e.corkedRequestsFree.next=t}Object.defineProperty(We.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){!this._writableState||(this._writableState.destroyed=e)}});We.prototype.destroy=ig.destroy;We.prototype._undestroy=ig.undestroy;We.prototype._destroy=function(t,e){e(t)}});var rn=h((Ule,eA)=>{"use strict";var YH=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};eA.exports=es;var Zx=lg(),og=ag();Gs()(es,Zx);for(ug=YH(og.prototype),Kc=0;Kc<ug.length;Kc++)Yc=ug[Kc],es.prototype[Yc]||(es.prototype[Yc]=og.prototype[Yc]);var ug,Yc,Kc;function es(t){if(!(this instanceof es))return new es(t);Zx.call(this,t),og.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",JH)))}Object.defineProperty(es.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(es.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(es.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function JH(){this._writableState.ended||process.nextTick(QH,this)}function QH(t){t.end()}Object.defineProperty(es.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var sA=h((cg,rA)=>{var Jc=require("buffer"),ts=Jc.Buffer;function tA(t,e){for(var r in t)e[r]=t[r]}ts.from&&ts.alloc&&ts.allocUnsafe&&ts.allocUnsafeSlow?rA.exports=Jc:(tA(Jc,cg),cg.Buffer=sn);function sn(t,e,r){return ts(t,e,r)}sn.prototype=Object.create(ts.prototype);tA(ts,sn);sn.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ts(t,e,r)};sn.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var s=ts(t);return e!==void 0?typeof r=="string"?s.fill(e,r):s.fill(e):s.fill(0),s};sn.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ts(t)};sn.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Jc.SlowBuffer(t)}});var hg=h(nA=>{"use strict";var fg=sA().Buffer,iA=fg.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function XH(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function ZH(t){var e=XH(t);if(typeof e!="string"&&(fg.isEncoding===iA||!iA(t)))throw new Error("Unknown encoding: "+t);return e||t}nA.StringDecoder=bu;function bu(t){this.encoding=ZH(t);var e;switch(this.encoding){case"utf16le":this.text=n7,this.end=a7,e=4;break;case"utf8":this.fillLast=r7,e=4;break;case"base64":this.text=o7,this.end=u7,e=3;break;default:this.write=l7,this.end=c7;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=fg.allocUnsafe(e)}bu.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};bu.prototype.end=i7;bu.prototype.text=s7;bu.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function dg(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function e7(t,e,r){var s=e.length-1;if(s<r)return 0;var i=dg(e[s]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--s<r||i===-2?0:(i=dg(e[s]),i>=0?(i>0&&(t.lastNeed=i-2),i):--s<r||i===-2?0:(i=dg(e[s]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function t7(t,e,r){if((e[0]&192)!=128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!=128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!=128)return t.lastNeed=2,"\uFFFD"}}function r7(t){var e=this.lastTotal-this.lastNeed,r=t7(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function s7(t,e){var r=e7(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var s=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,s),t.toString("utf8",e,s)}function i7(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function n7(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var s=r.charCodeAt(r.length-1);if(s>=55296&&s<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function a7(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function o7(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function u7(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l7(t){return t.toString(this.encoding)}function c7(t){return t&&t.length?this.write(t):""}});var Qc=h((Vle,uA)=>{"use strict";var aA=si().codes.ERR_STREAM_PREMATURE_CLOSE;function f7(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];t.apply(this,s)}}}function d7(){}function h7(t){return t.setHeader&&typeof t.abort=="function"}function oA(t,e,r){if(typeof e=="function")return oA(t,null,e);e||(e={}),r=f7(r||d7);var s=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,n=function(){t.writable||o()},a=t._writableState&&t._writableState.finished,o=function(){i=!1,a=!0,s||r.call(t)},u=t._readableState&&t._readableState.endEmitted,l=function(){s=!1,u=!0,i||r.call(t)},c=function(m){r.call(t,m)},f=function(){var m;if(s&&!u)return(!t._readableState||!t._readableState.ended)&&(m=new aA),r.call(t,m);if(i&&!a)return(!t._writableState||!t._writableState.ended)&&(m=new aA),r.call(t,m)},d=function(){t.req.on("finish",o)};return h7(t)?(t.on("complete",o),t.on("abort",f),t.req?d():t.on("request",d)):i&&!t._writableState&&(t.on("end",n),t.on("close",n)),t.on("end",l),t.on("finish",o),e.error!==!1&&t.on("error",c),t.on("close",f),function(){t.removeListener("complete",o),t.removeListener("abort",f),t.removeListener("request",d),t.req&&t.req.removeListener("finish",o),t.removeListener("end",n),t.removeListener("close",n),t.removeListener("finish",o),t.removeListener("end",l),t.removeListener("error",c),t.removeListener("close",f)}}uA.exports=oA});var cA=h((zle,lA)=>{"use strict";var Xc;function ni(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p7=Qc(),ai=Symbol("lastResolve"),nn=Symbol("lastReject"),_u=Symbol("error"),Zc=Symbol("ended"),an=Symbol("lastPromise"),pg=Symbol("handlePromise"),on=Symbol("stream");function oi(t,e){return{value:t,done:e}}function m7(t){var e=t[ai];if(e!==null){var r=t[on].read();r!==null&&(t[an]=null,t[ai]=null,t[nn]=null,e(oi(r,!1)))}}function g7(t){process.nextTick(m7,t)}function y7(t,e){return function(r,s){t.then(function(){if(e[Zc]){r(oi(void 0,!0));return}e[pg](r,s)},s)}}var v7=Object.getPrototypeOf(function(){}),b7=Object.setPrototypeOf((Xc={get stream(){return this[on]},next:function(){var e=this,r=this[_u];if(r!==null)return Promise.reject(r);if(this[Zc])return Promise.resolve(oi(void 0,!0));if(this[on].destroyed)return new Promise(function(a,o){process.nextTick(function(){e[_u]?o(e[_u]):a(oi(void 0,!0))})});var s=this[an],i;if(s)i=new Promise(y7(s,this));else{var n=this[on].read();if(n!==null)return Promise.resolve(oi(n,!1));i=new Promise(this[pg])}return this[an]=i,i}},ni(Xc,Symbol.asyncIterator,function(){return this}),ni(Xc,"return",function(){var e=this;return new Promise(function(r,s){e[on].destroy(null,function(i){if(i){s(i);return}r(oi(void 0,!0))})})}),Xc),v7),_7=function(e){var r,s=Object.create(b7,(r={},ni(r,on,{value:e,writable:!0}),ni(r,ai,{value:null,writable:!0}),ni(r,nn,{value:null,writable:!0}),ni(r,_u,{value:null,writable:!0}),ni(r,Zc,{value:e._readableState.endEmitted,writable:!0}),ni(r,pg,{value:function(n,a){var o=s[on].read();o?(s[an]=null,s[ai]=null,s[nn]=null,n(oi(o,!1))):(s[ai]=n,s[nn]=a)},writable:!0}),r));return s[an]=null,p7(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=s[nn];n!==null&&(s[an]=null,s[ai]=null,s[nn]=null,n(i)),s[_u]=i;return}var a=s[ai];a!==null&&(s[an]=null,s[ai]=null,s[nn]=null,a(oi(void 0,!0))),s[Zc]=!0}),e.on("readable",g7.bind(null,s)),s};lA.exports=_7});var pA=h((Wle,hA)=>{"use strict";function fA(t,e,r,s,i,n,a){try{var o=t[n](a),u=o.value}catch(l){r(l);return}o.done?e(u):Promise.resolve(u).then(s,i)}function w7(t){return function(){var e=this,r=arguments;return new Promise(function(s,i){var n=t.apply(e,r);function a(u){fA(n,s,i,a,o,"next",u)}function o(u){fA(n,s,i,a,o,"throw",u)}a(void 0)})}}function dA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,s)}return r}function E7(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?dA(Object(r),!0).forEach(function(s){k7(t,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dA(Object(r)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(r,s))})}return t}function k7(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var D7=si().codes.ERR_INVALID_ARG_TYPE;function C7(t,e,r){var s;if(e&&typeof e.next=="function")s=e;else if(e&&e[Symbol.asyncIterator])s=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])s=e[Symbol.iterator]();else throw new D7("iterable",["Iterable"],e);var i=new t(E7({objectMode:!0},r)),n=!1;i._read=function(){n||(n=!0,a())};function a(){return o.apply(this,arguments)}function o(){return o=w7(function*(){try{var u=yield s.next(),l=u.value,c=u.done;c?i.push(null):i.push(yield l)?a():n=!1}catch(f){i.destroy(f)}}),o.apply(this,arguments)}return i}hA.exports=C7});var lg=h((Yle,DA)=>{"use strict";DA.exports=ve;var Sa;ve.ReadableState=gA;var Kle=require("events").EventEmitter,mA=function(e,r){return e.listeners(r).length},wu=Zm(),ef=require("buffer").Buffer,S7=global.Uint8Array||function(){};function x7(t){return ef.from(t)}function A7(t){return ef.isBuffer(t)||t instanceof S7}var mg=require("util"),ae;mg&&mg.debuglog?ae=mg.debuglog("stream"):ae=function(){};var O7=Nx(),gg=rg(),T7=sg(),R7=T7.getHighWaterMark,tf=si().codes,P7=tf.ERR_INVALID_ARG_TYPE,$7=tf.ERR_STREAM_PUSH_AFTER_EOF,F7=tf.ERR_METHOD_NOT_IMPLEMENTED,j7=tf.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,xa,yg,vg;Gs()(ve,wu);var Eu=gg.errorOrDestroy,bg=["error","close","destroy","pause","resume"];function I7(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function gA(t,e,r){Sa=Sa||rn(),t=t||{},typeof r!="boolean"&&(r=e instanceof Sa),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=R7(this,t,"readableHighWaterMark",r),this.buffer=new O7,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(xa||(xa=hg().StringDecoder),this.decoder=new xa(t.encoding),this.encoding=t.encoding)}function ve(t){if(Sa=Sa||rn(),!(this instanceof ve))return new ve(t);var e=this instanceof Sa;this._readableState=new gA(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),wu.call(this)}Object.defineProperty(ve.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});ve.prototype.destroy=gg.destroy;ve.prototype._undestroy=gg.undestroy;ve.prototype._destroy=function(t,e){e(t)};ve.prototype.push=function(t,e){var r=this._readableState,s;return r.objectMode?s=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=ef.from(t,e),e=""),s=!0),yA(this,t,e,!1,s)};ve.prototype.unshift=function(t){return yA(this,t,null,!0,!1)};function yA(t,e,r,s,i){ae("readableAddChunk",e);var n=t._readableState;if(e===null)n.reading=!1,q7(t,n);else{var a;if(i||(a=M7(n,e)),a)Eu(t,a);else if(n.objectMode||e&&e.length>0)if(typeof e!="string"&&!n.objectMode&&Object.getPrototypeOf(e)!==ef.prototype&&(e=x7(e)),s)n.endEmitted?Eu(t,new j7):_g(t,n,e,!0);else if(n.ended)Eu(t,new $7);else{if(n.destroyed)return!1;n.reading=!1,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?_g(t,n,e,!1):wg(t,n)):_g(t,n,e,!1)}else s||(n.reading=!1,wg(t,n))}return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function _g(t,e,r,s){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,s?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&rf(t)),wg(t,e)}function M7(t,e){var r;return!A7(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new P7("chunk",["string","Buffer","Uint8Array"],e)),r}ve.prototype.isPaused=function(){return this._readableState.flowing===!1};ve.prototype.setEncoding=function(t){xa||(xa=hg().StringDecoder);var e=new xa(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,s="";r!==null;)s+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),s!==""&&this._readableState.buffer.push(s),this._readableState.length=s.length,this};var vA=1073741824;function N7(t){return t>=vA?t=vA:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function bA(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=N7(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}ve.prototype.read=function(t){ae("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return ae("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?kg(this):rf(this),null;if(t=bA(t,e),t===0&&e.ended)return e.length===0&&kg(this),null;var s=e.needReadable;ae("need readable",s),(e.length===0||e.length-t<e.highWaterMark)&&(s=!0,ae("length less than watermark",s)),e.ended||e.reading?(s=!1,ae("reading or ended",s)):s&&(ae("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=bA(r,e)));var i;return t>0?i=EA(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&kg(this)),i!==null&&this.emit("data",i),i};function q7(t,e){if(ae("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?rf(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,_A(t)))}}function rf(t){var e=t._readableState;ae("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(ae("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(_A,t))}function _A(t){var e=t._readableState;ae("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Eg(t)}function wg(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(B7,t,e))}function B7(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(ae("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}ve.prototype._read=function(t){Eu(this,new F7("_read()"))};ve.prototype.pipe=function(t,e){var r=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t);break}s.pipesCount+=1,ae("pipe count=%d opts=%j",s.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,n=i?o:g;s.endEmitted?process.nextTick(n):r.once("end",n),t.on("unpipe",a);function a(b,y){ae("onunpipe"),b===r&&y&&y.hasUnpiped===!1&&(y.hasUnpiped=!0,c())}function o(){ae("onend"),t.end()}var u=L7(r);t.on("drain",u);var l=!1;function c(){ae("cleanup"),t.removeListener("close",p),t.removeListener("finish",m),t.removeListener("drain",u),t.removeListener("error",d),t.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",g),r.removeListener("data",f),l=!0,s.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}r.on("data",f);function f(b){ae("ondata");var y=t.write(b);ae("dest.write",y),y===!1&&((s.pipesCount===1&&s.pipes===t||s.pipesCount>1&&kA(s.pipes,t)!==-1)&&!l&&(ae("false write response, pause",s.awaitDrain),s.awaitDrain++),r.pause())}function d(b){ae("onerror",b),g(),t.removeListener("error",d),mA(t,"error")===0&&Eu(t,b)}I7(t,"error",d);function p(){t.removeListener("finish",m),g()}t.once("close",p);function m(){ae("onfinish"),t.removeListener("close",p),g()}t.once("finish",m);function g(){ae("unpipe"),r.unpipe(t)}return t.emit("pipe",r),s.flowing||(ae("pipe resume"),r.resume()),t};function L7(t){return function(){var r=t._readableState;ae("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&mA(t,"data")&&(r.flowing=!0,Eg(t))}}ve.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var s=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var n=0;n<i;n++)s[n].emit("unpipe",this,{hasUnpiped:!1});return this}var a=kA(e.pipes,t);return a===-1?this:(e.pipes.splice(a,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};ve.prototype.on=function(t,e){var r=wu.prototype.on.call(this,t,e),s=this._readableState;return t==="data"?(s.readableListening=this.listenerCount("readable")>0,s.flowing!==!1&&this.resume()):t==="readable"&&!s.endEmitted&&!s.readableListening&&(s.readableListening=s.needReadable=!0,s.flowing=!1,s.emittedReadable=!1,ae("on readable",s.length,s.reading),s.length?rf(this):s.reading||process.nextTick(H7,this)),r};ve.prototype.addListener=ve.prototype.on;ve.prototype.removeListener=function(t,e){var r=wu.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(wA,this),r};ve.prototype.removeAllListeners=function(t){var e=wu.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(wA,this),e};function wA(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function H7(t){ae("readable nexttick read 0"),t.read(0)}ve.prototype.resume=function(){var t=this._readableState;return t.flowing||(ae("resume"),t.flowing=!t.readableListening,U7(this,t)),t.paused=!1,this};function U7(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(G7,t,e))}function G7(t,e){ae("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Eg(t),e.flowing&&!e.reading&&t.read(0)}ve.prototype.pause=function(){return ae("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ae("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Eg(t){var e=t._readableState;for(ae("flow",e.flowing);e.flowing&&t.read()!==null;);}ve.prototype.wrap=function(t){var e=this,r=this._readableState,s=!1;t.on("end",function(){if(ae("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&e.push(a)}e.push(null)}),t.on("data",function(a){if(ae("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var o=e.push(a);o||(s=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(o){return function(){return t[o].apply(t,arguments)}}(i));for(var n=0;n<bg.length;n++)t.on(bg[n],this.emit.bind(this,bg[n]));return this._read=function(a){ae("wrapped _read",a),s&&(s=!1,t.resume())},this};typeof Symbol=="function"&&(ve.prototype[Symbol.asyncIterator]=function(){return yg===void 0&&(yg=cA()),yg(this)});Object.defineProperty(ve.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ve.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ve.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});ve._fromList=EA;Object.defineProperty(ve.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function EA(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function kg(t){var e=t._readableState;ae("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(V7,e,t))}function V7(t,e){if(ae("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(ve.from=function(t,e){return vg===void 0&&(vg=pA()),vg(ve,t,e)});function kA(t,e){for(var r=0,s=t.length;r<s;r++)if(t[r]===e)return r;return-1}});var Dg=h((Jle,SA)=>{"use strict";SA.exports=As;var sf=si().codes,z7=sf.ERR_METHOD_NOT_IMPLEMENTED,W7=sf.ERR_MULTIPLE_CALLBACK,K7=sf.ERR_TRANSFORM_ALREADY_TRANSFORMING,Y7=sf.ERR_TRANSFORM_WITH_LENGTH_0,nf=rn();Gs()(As,nf);function J7(t,e){var r=this._transformState;r.transforming=!1;var s=r.writecb;if(s===null)return this.emit("error",new W7);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),s(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function As(t){if(!(this instanceof As))return new As(t);nf.call(this,t),this._transformState={afterTransform:J7.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Q7)}function Q7(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){CA(t,e,r)}):CA(this,null,null)}As.prototype.push=function(t,e){return this._transformState.needTransform=!1,nf.prototype.push.call(this,t,e)};As.prototype._transform=function(t,e,r){r(new z7("_transform()"))};As.prototype._write=function(t,e,r){var s=this._transformState;if(s.writecb=r,s.writechunk=t,s.writeencoding=e,!s.transforming){var i=this._readableState;(s.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};As.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};As.prototype._destroy=function(t,e){nf.prototype._destroy.call(this,t,function(r){e(r)})};function CA(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Y7;if(t._transformState.transforming)throw new K7;return t.push(null)}});var OA=h((Qle,AA)=>{"use strict";AA.exports=ku;var xA=Dg();Gs()(ku,xA);function ku(t){if(!(this instanceof ku))return new ku(t);xA.call(this,t)}ku.prototype._transform=function(t,e,r){r(null,t)}});var FA=h((Xle,$A)=>{"use strict";var Cg;function X7(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var TA=si().codes,Z7=TA.ERR_MISSING_ARGS,eU=TA.ERR_STREAM_DESTROYED;function RA(t){if(t)throw t}function tU(t){return t.setHeader&&typeof t.abort=="function"}function rU(t,e,r,s){s=X7(s);var i=!1;t.on("close",function(){i=!0}),Cg===void 0&&(Cg=Qc()),Cg(t,{readable:e,writable:r},function(a){if(a)return s(a);i=!0,s()});var n=!1;return function(a){if(!i&&!n){if(n=!0,tU(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();s(a||new eU("pipe"))}}}function PA(t){t()}function sU(t,e){return t.pipe(e)}function iU(t){return!t.length||typeof t[t.length-1]!="function"?RA:t.pop()}function nU(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var s=iU(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Z7("streams");var i,n=e.map(function(a,o){var u=o<e.length-1,l=o>0;return rU(a,u,l,function(c){i||(i=c),c&&n.forEach(PA),!u&&(n.forEach(PA),s(i))})});return e.reduce(sU)}$A.exports=nU});var jA=h((vr,Cu)=>{var Du=require("stream");process.env.READABLE_STREAM==="disable"&&Du?(Cu.exports=Du.Readable,Object.assign(Cu.exports,Du),Cu.exports.Stream=Du):(vr=Cu.exports=lg(),vr.Stream=Du||vr,vr.Readable=vr,vr.Writable=ag(),vr.Duplex=rn(),vr.Transform=Dg(),vr.PassThrough=OA(),vr.finished=Qc(),vr.pipeline=FA())});var MA=h((Zle,IA)=>{var aU=Object.prototype.toString,Sg=typeof Buffer!="undefined"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function oU(t){return aU.call(t).slice(8,-1)==="ArrayBuffer"}function uU(t,e,r){e>>>=0;var s=t.byteLength-e;if(s<0)throw new RangeError("'offset' is out of bounds");if(r===void 0)r=s;else if(r>>>=0,r>s)throw new RangeError("'length' is out of bounds");return Sg?Buffer.from(t.slice(e,e+r)):new Buffer(new Uint8Array(t.slice(e,e+r)))}function lU(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Buffer.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');return Sg?Buffer.from(t,e):new Buffer(t,e)}function cU(t,e,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return oU(t)?uU(t,e,r):typeof t=="string"?lU(t,e):Sg?Buffer.from(t):new Buffer(t)}IA.exports=cU});var UA=h(W=>{var NA=void 0,fU=1e5,Be=function(){var t=Object.prototype.toString,e=Object.prototype.hasOwnProperty;return{Class:function(r){return t.call(r).replace(/^\[object *|\]$/g,"")},HasProperty:function(r,s){return s in r},HasOwnProperty:function(r,s){return e.call(r,s)},IsCallable:function(r){return typeof r=="function"},ToInt32:function(r){return r>>0},ToUint32:function(r){return r>>>0}}}(),dU=Math.LN2,hU=Math.abs,af=Math.floor,pU=Math.log,mU=Math.min,qr=Math.pow,gU=Math.round;function xg(t){if(qA&&Aa){var e=qA(t),r;for(r=0;r<e.length;r+=1)Aa(t,e[r],{value:t[e[r]],writable:!1,enumerable:!1,configurable:!1})}}var Aa;Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch{return!1}}()?Aa=Object.defineProperty:Aa=function(t,e,r){if(!t===Object(t))throw new TypeError("Object.defineProperty called on non-object");return Be.HasProperty(r,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(t,e,r.get),Be.HasProperty(r,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(t,e,r.set),Be.HasProperty(r,"value")&&(t[e]=r.value),t};var qA=Object.getOwnPropertyNames||function(t){if(t!==Object(t))throw new TypeError("Object.getOwnPropertyNames called on non-object");var e=[],r;for(r in t)Be.HasOwnProperty(t,r)&&e.push(r);return e};function yU(t){if(!Aa)return;if(t.length>fU)throw new RangeError("Array too large for polyfill");function e(s){Aa(t,s,{get:function(){return t._getter(s)},set:function(i){t._setter(s,i)},enumerable:!0,configurable:!1})}var r;for(r=0;r<t.length;r+=1)e(r)}function Ag(t,e){var r=32-e;return t<<r>>r}function Og(t,e){var r=32-e;return t<<r>>>r}function vU(t){return[t&255]}function bU(t){return Ag(t[0],8)}function _U(t){return[t&255]}function BA(t){return Og(t[0],8)}function wU(t){return t=gU(Number(t)),[t<0?0:t>255?255:t&255]}function EU(t){return[t>>8&255,t&255]}function kU(t){return Ag(t[0]<<8|t[1],16)}function DU(t){return[t>>8&255,t&255]}function CU(t){return Og(t[0]<<8|t[1],16)}function SU(t){return[t>>24&255,t>>16&255,t>>8&255,t&255]}function xU(t){return Ag(t[0]<<24|t[1]<<16|t[2]<<8|t[3],32)}function AU(t){return[t>>24&255,t>>16&255,t>>8&255,t&255]}function OU(t){return Og(t[0]<<24|t[1]<<16|t[2]<<8|t[3],32)}function LA(t,e,r){var s=(1<<e-1)-1,i,n,a,o,u,l,c,f;function d(p){var m=af(p),g=p-m;return g<.5?m:g>.5||m%2?m+1:m}for(t!==t?(n=(1<<e)-1,a=qr(2,r-1),i=0):t===1/0||t===-1/0?(n=(1<<e)-1,a=0,i=t<0?1:0):t===0?(n=0,a=0,i=1/t==-1/0?1:0):(i=t<0,t=hU(t),t>=qr(2,1-s)?(n=mU(af(pU(t)/dU),1023),a=d(t/qr(2,n)*qr(2,r)),a/qr(2,r)>=2&&(n=n+1,a=1),n>s?(n=(1<<e)-1,a=0):(n=n+s,a=a-qr(2,r))):(n=0,a=d(t/qr(2,1-s-r)))),l=[],u=r;u;u-=1)l.push(a%2?1:0),a=af(a/2);for(u=e;u;u-=1)l.push(n%2?1:0),n=af(n/2);for(l.push(i?1:0),l.reverse(),c=l.join(""),f=[];c.length;)f.push(parseInt(c.substring(0,8),2)),c=c.substring(8);return f}function HA(t,e,r){var s=[],i,n,a,o,u,l,c,f;for(i=t.length;i;i-=1)for(a=t[i-1],n=8;n;n-=1)s.push(a%2?1:0),a=a>>1;return s.reverse(),o=s.join(""),u=(1<<e-1)-1,l=parseInt(o.substring(0,1),2)?-1:1,c=parseInt(o.substring(1,1+e),2),f=parseInt(o.substring(1+e),2),c===(1<<e)-1?f!==0?NaN:l*(1/0):c>0?l*qr(2,c-u)*(1+f/qr(2,r)):f!==0?l*qr(2,-(u-1))*(f/qr(2,r)):l<0?-0:0}function TU(t){return HA(t,11,52)}function RU(t){return LA(t,11,52)}function PU(t){return HA(t,8,23)}function $U(t){return LA(t,8,23)}(function(){var t=function(p){if(p=Be.ToInt32(p),p<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");this.byteLength=p,this._bytes=[],this._bytes.length=p;var m;for(m=0;m<this.byteLength;m+=1)this._bytes[m]=0;xg(this)};W.ArrayBuffer=W.ArrayBuffer||t;var e=function(){};function r(d,p,m){var g;return g=function(b,y,w){var k,O,P,I;if(!arguments.length||typeof arguments[0]=="number"){if(this.length=Be.ToInt32(arguments[0]),w<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0}else if(typeof arguments[0]=="object"&&arguments[0].constructor===g)for(k=arguments[0],this.length=k.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0,P=0;P<this.length;P+=1)this._setter(P,k._getter(P));else if(typeof arguments[0]=="object"&&!(arguments[0]instanceof t||Be.Class(arguments[0])==="ArrayBuffer"))for(O=arguments[0],this.length=Be.ToUint32(O.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0,P=0;P<this.length;P+=1)I=O[P],this._setter(P,Number(I));else if(typeof arguments[0]=="object"&&(arguments[0]instanceof t||Be.Class(arguments[0])==="ArrayBuffer")){if(this.buffer=b,this.byteOffset=Be.ToUint32(y),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=Be.ToUint32(w),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else throw new TypeError("Unexpected argument type(s)");this.constructor=g,xg(this),yU(this)},g.prototype=new e,g.prototype.BYTES_PER_ELEMENT=d,g.prototype._pack=p,g.prototype._unpack=m,g.BYTES_PER_ELEMENT=d,g.prototype._getter=function(b){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if(b=Be.ToUint32(b),b>=this.length)return NA;var y=[],w,k;for(w=0,k=this.byteOffset+b*this.BYTES_PER_ELEMENT;w<this.BYTES_PER_ELEMENT;w+=1,k+=1)y.push(this.buffer._bytes[k]);return this._unpack(y)},g.prototype.get=g.prototype._getter,g.prototype._setter=function(b,y){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if(b=Be.ToUint32(b),b>=this.length)return NA;var w=this._pack(y),k,O;for(k=0,O=this.byteOffset+b*this.BYTES_PER_ELEMENT;k<this.BYTES_PER_ELEMENT;k+=1,O+=1)this.buffer._bytes[O]=w[k]},g.prototype.set=function(b,y){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var w,k,O,P,I,z,T,$,F,S;if(typeof arguments[0]=="object"&&arguments[0].constructor===this.constructor){if(w=arguments[0],O=Be.ToUint32(arguments[1]),O+w.length>this.length)throw new RangeError("Offset plus length of array is out of range");if($=this.byteOffset+O*this.BYTES_PER_ELEMENT,F=w.length*this.BYTES_PER_ELEMENT,w.buffer===this.buffer){for(S=[],I=0,z=w.byteOffset;I<F;I+=1,z+=1)S[I]=w.buffer._bytes[z];for(I=0,T=$;I<F;I+=1,T+=1)this.buffer._bytes[T]=S[I]}else for(I=0,z=w.byteOffset,T=$;I<F;I+=1,z+=1,T+=1)this.buffer._bytes[T]=w.buffer._bytes[z]}else if(typeof arguments[0]=="object"&&typeof arguments[0].length!="undefined"){if(k=arguments[0],P=Be.ToUint32(k.length),O=Be.ToUint32(arguments[1]),O+P>this.length)throw new RangeError("Offset plus length of array is out of range");for(I=0;I<P;I+=1)z=k[I],this._setter(O+I,Number(z))}else throw new TypeError("Unexpected argument type(s)")},g.prototype.subarray=function(b,y){function w(O,P,I){return O<P?P:O>I?I:O}b=Be.ToInt32(b),y=Be.ToInt32(y),arguments.length<1&&(b=0),arguments.length<2&&(y=this.length),b<0&&(b=this.length+b),y<0&&(y=this.length+y),b=w(b,0,this.length),y=w(y,0,this.length);var k=y-b;return k<0&&(k=0),new this.constructor(this.buffer,this.byteOffset+b*this.BYTES_PER_ELEMENT,k)},g}var s=r(1,vU,bU),i=r(1,_U,BA),n=r(1,wU,BA),a=r(2,EU,kU),o=r(2,DU,CU),u=r(4,SU,xU),l=r(4,AU,OU),c=r(4,$U,PU),f=r(8,RU,TU);W.Int8Array=W.Int8Array||s,W.Uint8Array=W.Uint8Array||i,W.Uint8ClampedArray=W.Uint8ClampedArray||n,W.Int16Array=W.Int16Array||a,W.Uint16Array=W.Uint16Array||o,W.Int32Array=W.Int32Array||u,W.Uint32Array=W.Uint32Array||l,W.Float32Array=W.Float32Array||c,W.Float64Array=W.Float64Array||f})();(function(){function t(n,a){return Be.IsCallable(n.get)?n.get(a):n[a]}var e=function(){var n=new W.Uint16Array([4660]),a=new W.Uint8Array(n.buffer);return t(a,0)===18}(),r=function(a,o,u){if(arguments.length===0)a=new W.ArrayBuffer(0);else if(!(a instanceof W.ArrayBuffer||Be.Class(a)==="ArrayBuffer"))throw new TypeError("TypeError");if(this.buffer=a||new W.ArrayBuffer(0),this.byteOffset=Be.ToUint32(o),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=Be.ToUint32(u),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");xg(this)};function s(n){return function(a,o){if(a=Be.ToUint32(a),a+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");a+=this.byteOffset;var u=new W.Uint8Array(this.buffer,a,n.BYTES_PER_ELEMENT),l=[],c;for(c=0;c<n.BYTES_PER_ELEMENT;c+=1)l.push(t(u,c));return Boolean(o)===Boolean(e)&&l.reverse(),t(new n(new W.Uint8Array(l).buffer),0)}}r.prototype.getUint8=s(W.Uint8Array),r.prototype.getInt8=s(W.Int8Array),r.prototype.getUint16=s(W.Uint16Array),r.prototype.getInt16=s(W.Int16Array),r.prototype.getUint32=s(W.Uint32Array),r.prototype.getInt32=s(W.Int32Array),r.prototype.getFloat32=s(W.Float32Array),r.prototype.getFloat64=s(W.Float64Array);function i(n){return function(a,o,u){if(a=Be.ToUint32(a),a+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var l=new n([o]),c=new W.Uint8Array(l.buffer),f=[],d,p;for(d=0;d<n.BYTES_PER_ELEMENT;d+=1)f.push(t(c,d));Boolean(u)===Boolean(e)&&f.reverse(),p=new W.Uint8Array(this.buffer,a,n.BYTES_PER_ELEMENT),p.set(f)}}r.prototype.setUint8=i(W.Uint8Array),r.prototype.setInt8=i(W.Int8Array),r.prototype.setUint16=i(W.Uint16Array),r.prototype.setInt16=i(W.Int16Array),r.prototype.setUint32=i(W.Uint32Array),r.prototype.setInt32=i(W.Int32Array),r.prototype.setFloat32=i(W.Float32Array),r.prototype.setFloat64=i(W.Float64Array),W.DataView=W.DataView||r})()});var WA=h((rce,zA)=>{var GA=jA().Writable,FU=Gs(),Su=MA();typeof Uint8Array=="undefined"?of=UA().Uint8Array:of=Uint8Array;var of;function un(t,e){if(!(this instanceof un))return new un(t,e);typeof t=="function"&&(e=t,t={}),t||(t={});var r=t.encoding,s=!1;r?(r=String(r).toLowerCase(),(r==="u8"||r==="uint8")&&(r="uint8array")):s=!0,GA.call(this,{objectMode:!0}),this.encoding=r,this.shouldInferEncoding=s,e&&this.on("finish",function(){e(this.getBody())}),this.body=[]}zA.exports=un;FU(un,GA);un.prototype._write=function(t,e,r){this.body.push(t),r()};un.prototype.inferEncoding=function(t){var e=t===void 0?this.body[0]:t;return Buffer.isBuffer(e)?"buffer":typeof Uint8Array!="undefined"&&e instanceof Uint8Array?"uint8array":Array.isArray(e)?"array":typeof e=="string"?"string":Object.prototype.toString.call(e)==="[object Object]"?"object":"buffer"};un.prototype.getBody=function(){return!this.encoding&&this.body.length===0?[]:(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),this.encoding==="array"?NU(this.body):this.encoding==="string"?IU(this.body):this.encoding==="buffer"?MU(this.body):this.encoding==="uint8array"?qU(this.body):this.body)};var tce=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"};function jU(t){return/Array\]$/.test(Object.prototype.toString.call(t))}function VA(t){return typeof t=="string"||jU(t)||t&&typeof t.subarray=="function"}function IU(t){for(var e=[],r=!1,s=0;s<t.length;s++){var i=t[s];typeof i=="string"||Buffer.isBuffer(i)?e.push(i):VA(i)?e.push(Su(i)):e.push(Su(String(i)))}return Buffer.isBuffer(t[0])?(e=Buffer.concat(e),e=e.toString("utf8")):e=e.join(""),e}function MU(t){for(var e=[],r=0;r<t.length;r++){var s=t[r];Buffer.isBuffer(s)?e.push(s):VA(s)?e.push(Su(s)):e.push(Su(String(s)))}return Buffer.concat(e)}function NU(t){for(var e=[],r=0;r<t.length;r++)e.push.apply(e,t[r]);return e}function qU(t){for(var e=0,r=0;r<t.length;r++)typeof t[r]=="string"&&(t[r]=Su(t[r])),e+=t[r].length;for(var s=new of(e),r=0,i=0;r<t.length;r++)for(var n=t[r],a=0;a<n.length;a++)s[i++]=n[a];return s}});var JA=h((sce,YA)=>{"use strict";function KA(t,e){for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!0,configurable:!0});return t}function BU(t,e,r){if(!t||typeof t=="string")throw new TypeError("Please pass an Error to err-code");r||(r={}),typeof e=="object"&&(r=e,e=void 0),e!=null&&(r.code=e);try{return KA(t,r)}catch{r.message=t.message,r.stack=t.stack;let i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(t)),KA(new i,r)}}YA.exports=BU});var XA=h((ice,QA)=>{function br(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._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}QA.exports=br;br.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};br.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};br.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.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(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var s=this,i=setTimeout(function(){s._attempts++,s._operationTimeoutCb&&(s._timeout=setTimeout(function(){s._operationTimeoutCb(s._attempts)},s._operationTimeout),s._options.unref&&s._timeout.unref()),s._fn(s._attempts)},r);return this._options.unref&&i.unref(),!0};br.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)};br.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};br.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};br.prototype.start=br.prototype.try;br.prototype.errors=function(){return this._errors};br.prototype.attempts=function(){return this._attempts};br.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,s=0;s<this._errors.length;s++){var i=this._errors[s],n=i.message,a=(t[n]||0)+1;t[n]=a,a>=r&&(e=i,r=a)}return e}});var ZA=h(ln=>{var LU=XA();ln.operation=function(t){var e=ln.timeouts(t);return new LU(e,{forever:t&&t.forever,unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};ln.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 s=[],i=0;i<e.retries;i++)s.push(this.createTimeout(i,e));return t&&t.forever&&!s.length&&s.push(this.createTimeout(i,e)),s.sort(function(n,a){return n-a}),s};ln.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,s=Math.round(r*e.minTimeout*Math.pow(e.factor,t));return s=Math.min(s,e.maxTimeout),s};ln.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var s in t)typeof t[s]=="function"&&r.push(s)}for(var i=0;i<r.length;i++){var n=r[i],a=t[n];t[n]=function(u){var l=ln.operation(e),c=Array.prototype.slice.call(arguments,1),f=c.pop();c.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),f.apply(this,arguments))}),l.attempt(function(){u.apply(t,c)})}.bind(t,a),t[n].options=e}}});var tO=h((ace,eO)=>{eO.exports=ZA()});var iO=h((oce,sO)=>{"use strict";var HU=JA(),UU=tO(),GU=Object.prototype.hasOwnProperty;function rO(t){return t&&t.code==="EPROMISERETRY"&&GU.call(t,"retried")}function VU(t,e){var r,s;return typeof t=="object"&&typeof e=="function"&&(r=e,e=t,t=r),s=UU.operation(e),new Promise(function(i,n){s.attempt(function(a){Promise.resolve().then(function(){return t(function(o){throw rO(o)&&(o=o.retried),HU(new Error("Retrying"),"EPROMISERETRY",{retried:o})},a)}).then(i,function(o){rO(o)&&(o=o.retried,s.retry(o||new Error))||n(o)})})})}sO.exports=VU});var Tg=h((uce,nO)=>{var zU={generic:"ERR_GENERIC_CLIENT",connect:"ERR_NOT_CONNECTED",badPath:"ERR_BAD_PATH",permission:"EACCES",notexist:"ENOENT",notdir:"ENOTDIR"},WU={writeFile:1,readFile:2,writeDir:3,readDir:4,readObj:5,writeObj:6};nO.exports={errorCode:zU,targetType:WU}});var cO=h((lce,lO)=>{"use strict";var xu=require("fs"),KU=require("path"),{errorCode:Au}=Tg();function rs(t,e="sftp",r,s){let i="",n="",a=s?` after ${s} ${s>1?"attempts":"attempt"}`:"";if(t===void 0)i=`${e}: Undefined error - probably a bug!`,n=Au.generic;else if(typeof t=="string")i=`${e}: ${t}${a}`,n=r||Au.generic;else if(t.custom)i=`${e}->${t.message}${a}`,n=t.code;else{switch(t.code){case"ENOTFOUND":i=`${e}: ${t.level} error. Address lookup failed for host ${t.hostname}${a}`;break;case"ECONNREFUSED":i=`${e}: ${t.level} error. Remote host at ${t.address} refused connection${a}`;break;case"ECONNRESET":i=`${e}: Remote host has reset the connection: ${t.message}${a}`;break;default:i=`${e}: ${t.message}${a}`}n=t.code?t.code:Au.generic}let o=new Error(i);return o.code=n,o.custom=!0,o}function uf(t,e,r,s){e in t.tempListeners?t.tempListeners[e].push([r,s]):t.tempListeners[e]=[[r,s]]}function aO(t,e,r){let s=i=>{if(t.endCalled||t.errorHandled)t.debugMsg(`${e}: Ignoring handled error: ${i.message}`);else if(t.debugMsg(`${e}: Handling error: ${i.message}`),t.errorHandled=!0,r)t.debugMsg(`${e}: handled error with reject`),r(rs(i,e,i.code));else throw t.debugMsg(`${e}: handling error with throw`),rs(i,e,i.code)};return uf(t,e,"error",s),s}function oO(t,e,r){let s=function(){if(t.endCalled||t.endHandled)t.debugMsg(`${e}: Ignoring expected end event`);else if(t.debugMsg(`${e}: Handling end event`),t.sftp=void 0,t.endHandled=!0,r)t.debugMsg(`${e}: handling end event with reject'`),r(rs("Unexpected end event raised",e));else throw t.debugMsg(`${e}: handling end event with throw`),rs("Unexpected end event raised",e)};return uf(t,e,"end",s),s}function uO(t,e,r){let s=function(){if(t.endCalled||t.closeHandled)t.debugMsg(`${e}: ignoring expected close event`);else if(t.debugMsg(`${e}: handling unexpected close event`),t.sftp=void 0,t.closeHandled=!0,r)t.debugMsg(`${e}: handling close event with reject`),r(rs("Unexpected close event raised",e));else throw t.debugMsg(`${e}: handling close event with throw`),rs("Unexpected close event raised",e)};return uf(t,e,"close",s),s}function YU(t,e,r){t.debugMsg(`${e}: Adding temp event listeners`),t.client.prependListener("end",oO(t,e,r)),t.client.prependListener("close",uO(t,e,r)),t.client.prependListener("error",aO(t,e,r))}function JU(t,e){t.debugMsg(`${e}: Removing temp event listeners`),e in t.tempListeners&&(t.tempListeners[e].forEach(([r,s])=>{t.client.removeListener(r,s)}),t.tempListeners=[])}function Rg(t){let e=xu.statSync(t,{throwIfNoEntry:!1});if(e){if(e.isDirectory())return"d";if(e.isFile())return"-";throw rs(`Bad path: ${t}: target must be a file or directory`,"localExists",Au.badPath)}else return!1}function Pg(t,e="r"){let r=xu.constants.F_OK|e==="w"?xu.constants.W_OK:xu.constants.R_OK;try{xu.accessSync(t,r);let s=Rg(t);return{status:!0,type:s,details:"access OK",code:0}}catch(s){switch(s.errno){case-2:return{status:!1,type:null,details:"not exist",code:-2};case-13:return{status:!1,type:Rg(t),details:"permission denied",code:-13};case-20:return{status:!1,type:null,details:"parent not a directory"};default:return{status:!1,type:null,details:s.message}}}}function QU(t){let{status:e,details:r,type:s}=Pg(t,"w");if(!e&&r==="permission denied")return{status:e,details:r,type:s};if(!e){let i=KU.dirname(t),n=Pg(i,"w");return n.status&&n.type!=="d"?{status:!1,details:`${i}: not a directory`,type:null}:n.status?{status:!0,details:"access OK",type:null,code:0}:{status:n.status,details:`${i}: ${n.details}`,type:null}}return{status:e,details:r,type:s}}async function XU(t,e){try{return e.startsWith("..")?await t.realPath("..")+t.remotePathSep+e.slice(3):e.startsWith(".")?await t.realPath(".")+t.remotePathSep+e.slice(2):e}catch(r){throw rs(r,"normalizeRemotePath")}}function ZU(t,e,r){if(!t.sftp){let s=rs("No SFTP connection available",e,Au.connect);if(r)return r(s),!1;throw s}return!0}function eG(t){return new Promise((e,r)=>{try{setTimeout(()=>{e(!0)},t)}catch(s){r(s)}})}lO.exports={fmtError:rs,addToTempListenerList:uf,errorListener:aO,endListener:oO,closeListener:uO,addTempListeners:YU,removeTempListeners:JU,haveLocalAccess:Pg,haveLocalCreate:QU,normalizeRemotePath:XU,localExists:Rg,haveConnection:ZU,sleep:eG}});var mO=h((cce,pO)=>{"use strict";var{Client:tG}=require("ssh2"),lf=require("fs"),rG=WA(),sG=iO(),{join:cf,parse:iG}=require("path"),{fmtError:fe,addTempListeners:wt,removeTempListeners:Et,haveConnection:kt,normalizeRemotePath:ff,localExists:fO,haveLocalAccess:dO,haveLocalCreate:$g,sleep:nG}=cO(),{errorCode:Kt}=Tg(),hO=class{constructor(e){this.client=new tG,this.sftp=void 0,this.clientName=e||"sftp",this.endCalled=!1,this.errorHandled=!1,this.closeHandled=!1,this.endHandled=!1,this.remotePathSep="/",this.remotePlatform="unix",this.debug=void 0,this.tempListeners={},this.client.on("close",()=>{this.endCalled||this.closeHandled?this.debugMsg("Global: Ignoring handled close event"):(this.debugMsg("Global: Handling unexpected close event"),this.sftp=void 0)}),this.client.on("end",()=>{this.endCalled||this.endHandled?this.debugMsg("Global: Ignoring hanlded end event"):(this.debugMsg("Global: Handling unexpected end event"),this.sftp=void 0)}),this.client.on("error",r=>{this.endCalled||this.errorHandled?this.debugMsg("Global: Ignoring handled error"):(this.debugMsg(`Global; Handling unexpected error; ${r.message}`),this.sftp=void 0,console.log(`ssh2-sftp-client: Unexpected error: ${r.message}. Error code: ${r.code}`))})}debugMsg(e,r){this.debug&&(r?this.debug(`CLIENT[${this.clientName}]: ${e} ${JSON.stringify(r,null," ")}`):this.debug(`CLIENT[${this.clientName}]: ${e}`))}on(e,r){this.debugMsg(`Adding listener to ${e} event`),this.client.prependListener(e,r)}removeListener(e,r){this.debugMsg(`Removing listener from ${e} event`),this.client.removeListener(e,r)}_resetEventFlags(){this.closeHandled=!1,this.endHandled=!1,this.errorHandled=!1}getConnection(e){let r;return new Promise((s,i)=>{wt(this,"getConnection",i),this.debugMsg("getConnection: created promise"),r=()=>{this.debugMsg("getConnection: got connection - promise resolved"),s(!0)},this.on("ready",r),this.client.connect(e)}).finally(async()=>{this.debugMsg("getConnection: finally clause fired"),await nG(500),this.removeListener("ready",r),Et(this,"getConnection"),this._resetEventFlags()})}getSftpChannel(){return new Promise((e,r)=>{wt(this,"getSftpChannel",r),this.debugMsg("getSftpChannel: created promise"),this.client.sftp((s,i)=>{s?(this.debugMsg(`getSftpChannel: SFTP Channel Error: ${s.message}`),this.client.end(),r(fe(s,"getSftpChannel",s.code))):(this.debugMsg("getSftpChannel: SFTP channel established"),this.sftp=i,e(i))})}).finally(()=>{this.debugMsg("getSftpChannel: finally clause fired"),Et(this,"getSftpChannel"),this._resetEventFlags()})}async connect(e){try{if(e.debug&&(this.debug=e.debug,this.debugMsg("connect: Debugging turned on")),this.sftp)throw this.debugMsg("connect: Already connected - reject"),fe("An existing SFTP connection is already defined","connect",Kt.connect);return await sG((r,s)=>(this.debugMsg(`connect: Connect attempt ${s}`),this.getConnection(e).catch(i=>{this.debugMsg("getConnection retry catch"),r(i)})),{retries:e.retries||1,factor:e.retry_factor||2,minTimeout:e.retry_minTimeout||1e3}),this.getSftpChannel()}catch(r){throw this.debugMsg(`connect: Error ${r.message}`),this._resetEventFlags(),fe(r,"connect")}}realPath(e){return new Promise((r,s)=>{this.debugMsg(`realPath -> ${e}`),wt(this,"realPath",s),kt(this,"realPath",s)&&this.sftp.realpath(e,(i,n)=>{i&&(this.debugMsg(`realPath Error: ${i.message} Code: ${i.code}`),i.code===2?r(""):s(fe(`${i.message} ${e}`,"realPath",i.code))),this.debugMsg(`realPath <- ${n}`),r(n)})}).finally(()=>{Et(this,"realPath"),this._resetEventFlags()})}cwd(){return this.realPath(".")}async stat(e){let r=s=>new Promise((i,n)=>{this.debugMsg(`_stat: ${s}`),wt(this,"_stat",n),this.sftp.stat(s,(a,o)=>{if(a)this.debugMsg(`_stat: Error ${a.message} code: ${a.code}`),a.code===2||a.code===4?n(fe(`No such file: ${e}`,"_stat",Kt.notexist)):n(fe(`${a.message} ${e}`,"_stat",a.code));else{let u={mode:o.mode,uid:o.uid,gid:o.gid,size:o.size,accessTime:o.atime*1e3,modifyTime:o.mtime*1e3,isDirectory:o.isDirectory(),isFile:o.isFile(),isBlockDevice:o.isBlockDevice(),isCharacterDevice:o.isCharacterDevice(),isSymbolicLink:o.isSymbolicLink(),isFIFO:o.isFIFO(),isSocket:o.isSocket()};this.debugMsg("_stat: stats <- ",u),i(u)}})}).finally(()=>{Et(this,"_stat")});try{kt(this,"stat");let s=await ff(this,e);return r(s)}catch(s){throw this._resetEventFlags(),s.custom?s:fe(s,"stat",s.code)}}async exists(e){try{if(kt(this,"exists")){if(e===".")return this.debugMsg("exists: . = d"),"d";let r=await ff(this,e);try{this.debugMsg(`exists: ${e} -> ${r}`);let s=await this.stat(r);return this.debugMsg("exists: <- ",s),s.isDirectory?(this.debugMsg(`exists: ${e} = d`),"d"):s.isSymbolicLink?(this.debugMsg(`exists: ${e} = l`),"l"):s.isFile?(this.debugMsg(`exists: ${e} = -`),"-"):(this.debugMsg(`exists: ${e} = false`),!1)}catch(s){if(s.code===Kt.notexist)return this.debugMsg(`exists: ${e} = false errorCode = ${s.code}`),!1;throw this.debugMsg(`exists: throw error ${s.message} ${s.code}`),s}}return this.debugMsg(`exists: default ${e} = false`),!1}catch(r){throw this._resetEventFlags(),r.custom?r:fe(r,"exists",r.code)}}list(e,r=/.*/){return new Promise((s,i)=>{if(kt(this,"list",i)){let n=/-/gi;this.debugMsg(`list: ${e} filter: ${r}`),wt(this,"list",i),this.sftp.readdir(e,(a,o)=>{if(a)this.debugMsg(`list: Error ${a.message} code: ${a.code}`),i(fe(`${a.message} ${e}`,"list",a.code));else{let u=[];o&&(u=o.map(f=>({type:f.longname.slice(0,1),name:f.filename,size:f.attrs.size,modifyTime:f.attrs.mtime*1e3,accessTime:f.attrs.atime*1e3,rights:{user:f.longname.slice(1,4).replace(n,""),group:f.longname.slice(4,7).replace(n,""),other:f.longname.slice(7,10).replace(n,"")},owner:f.attrs.uid,group:f.attrs.gid})));let l;if(r instanceof RegExp)l=r;else{let f=r.replace(/\*([^*])*?/gi,".*");l=new RegExp(f)}let c=u.filter(f=>l.test(f.name));this.debugMsg("list: result: ",c),s(c)}})}}).finally(()=>{Et(this,"list"),this._resetEventFlags()})}get(e,r,s={readStreamOptions:{},writeStreamOptions:{},pipeOptions:{}}){let i,n;return new Promise((a,o)=>{if(kt(this,"get",o)){if(this.debugMsg(`get -> ${e} `,s),wt(this,"get",o),i=this.sftp.createReadStream(e,s.readStreamOptions?s.readStreamOptions:{}),i.once("error",u=>{o(fe(`${u.message} ${e}`,"get",u.code))}),r===void 0)this.debugMsg("get returning buffer of data"),n=rG(u=>{a(u)});else{if(typeof r=="string"){this.debugMsg("get returning local file");let u=$g(r);if(!u.status)return o(fe(`Bad path: ${r}: ${u.details}`,"get",u.code));n=lf.createWriteStream(r,s.writeStreamOptions?s.writeStreamOptions:{})}else this.debugMsg("get returning data into supplied stream"),n=r;n.once("error",u=>{o(fe(`${u.message} ${typeof r=="string"?r:""}`,"get",u.code))}),Object.hasOwnProperty.call(s,"pipeOptions")&&Object.hasOwnProperty.call(s.pipeOptions,"end")&&!s.pipeOptions.end?i.once("end",()=>{this.debugMsg("get resolved on reader end event"),a(typeof r=="string"?r:n)}):n.once("finish",()=>{this.debugMsg("get resolved on writer finish event"),a(typeof r=="string"?r:n)})}i.pipe(n,s.pipeOptions?s.pipeOptions:{})}}).finally(()=>{Et(this,"get"),this._resetEventFlags(),i&&Object.hasOwnProperty.call(s,"readStreamOptions")&&Object.hasOwnProperty.call(s.readStreamOptions,"autoClose")&&s.readStreamOptions.autoClose===!1&&i.destroy(),n&&Object.hasOwnProperty.call(s,"writeStreamOptions")&&Object.hasOwnProperty.call(s.writeStreamOptions,"autoClose")&&s.writeStreamOptions.autoClose===!1&&typeof r=="string"&&n.destroy()})}async fastGet(e,r,s){try{let i=await this.exists(e);if(i!=="-"){let o=i===!1?`No such file ${e}`:`Not a regular file ${e}`,u=new Error(o);throw u.code=Kt.badPath,u}let n=$g(r);if(!n.status){let o=new Error(`Bad path: ${r}: ${n.details}`);throw o.code=Kt.badPath,o}return await new Promise((o,u)=>{kt(this,"fastGet",u)&&(this.debugMsg(`fastGet -> remote: ${e} local: ${r} `,s),wt(this,"fastGet",u),this.sftp.fastGet(e,r,s,l=>{l&&(this.debugMsg(`fastGet error ${l.message} code: ${l.code}`),u(l)),o(`${e} was successfully download to ${r}!`)}))}).finally(()=>{Et(this,"fastGet")})}catch(i){throw this._resetEventFlags(),fe(i,"fastGet")}}fastPut(e,r,s){return this.debugMsg(`fastPut -> local ${e} remote ${r}`),new Promise((i,n)=>{let a=dO(e);a.status?a.status&&fO(e)==="d"?n(fe(`Bad path: ${e} not a regular file`,"fastPut",Kt.badPath)):kt(this,"fastPut",n)&&(this.debugMsg(`fastPut -> local: ${e} remote: ${r} opts: ${JSON.stringify(s)}`),wt(this,"fastPut",n),this.sftp.fastPut(e,r,s,o=>{o&&(this.debugMsg(`fastPut error ${o.message} ${o.code}`),n(fe(`${o.message} Local: ${e} Remote: ${r}`,"fastPut",o.code))),this.debugMsg("fastPut file transferred"),i(`${e} was successfully uploaded to ${r}!`)})):n(fe(`Bad path: ${e}: ${a.details}`,"fastPut",a.code))}).finally(()=>{Et(this,"fastPut"),this._resetEventFlags()})}put(e,r,s={readStreamOptions:{},writeStreamOptions:{autoClose:!0},pipeOptions:{}}){let i,n;return new Promise((a,o)=>{if(typeof e=="string"){let u=dO(e);if(!u.status)return this.debugMsg(`put: local source check error ${u.details}`),o(fe(`Bad path: ${e}: ${u.details}`,"put",u.code))}kt(this,"put")&&(wt(this,"put",o),i=this.sftp.createWriteStream(r,s.writeStreamOptions?{...s.writeStreamOptions,autoClose:!0}:{}),i.once("error",u=>{this.debugMsg(`put: write stream error ${u.message}`),o(fe(`${u.message} ${r}`,"put",u.code))}),i.once("close",()=>{this.debugMsg("put: promise resolved"),a(`Uploaded data stream to ${r}`)}),e instanceof Buffer?(this.debugMsg("put source is a buffer"),i.end(e)):(typeof e=="string"?(this.debugMsg(`put source is a file path: ${e}`),n=lf.createReadStream(e,s.readStreamOptions?s.readStreamOptions:{})):(this.debugMsg("put source is a stream"),n=e),n.once("error",u=>{this.debugMsg(`put: read stream error ${u.message}`),o(fe(`${u.message} ${typeof e=="string"?e:""}`,"put",u.code))}),n.pipe(i,s.pipeOptions?s.pipeOptions:{})))}).finally(()=>{Et(this,"put"),this._resetEventFlags(),n&&Object.hasOwnProperty.call(s,"readStreamOptions")&&Object.hasOwnProperty.call(s.readStreamOptions,"autoClose")&&s.readStreamOptions.autoClose===!1&&typeof e=="string"&&n.destroy()})}async append(e,r,s={}){let i=await this.exists(r);if(i&&i==="d")throw fe(`Bad path: ${r}: cannot append to a directory`,"append",Kt.badPath);return await new Promise((n,a)=>{if(kt(this,"append",a))if(typeof e=="string")a(fe("Cannot append one file to another","append"));else{this.debugMsg(`append -> remote: ${r} `,s),wt(this,"append",a),s.flags="a";let o=this.sftp.createWriteStream(r,s);o.on("error",u=>{a(fe(`${u.message} ${r}`,"append",u.code))}),o.on("finish",()=>{n(`Appended data to ${r}`)}),e instanceof Buffer?(o.write(e),o.end()):e.pipe(o)}}).finally(()=>{Et(this,"append"),this._resetEventFlags()})}async mkdir(e,r=!1){let s=i=>new Promise((n,a)=>{this.debugMsg(`_mkdir: create ${i}`),wt(this,"_mkdir",a),this.sftp.mkdir(i,o=>{if(o)if(this.debugMsg(`_mkdir: Error ${o.message} code: ${o.code}`),o.code===4){let u=new Error(`Bad path: ${i} permission denied`);u.code=Kt.badPath,a(u)}else if(o.code===2){let u=new Error(`Bad path: ${i} parent not a directory or not exist`);u.code=Kt.badPath,a(u)}else a(o);else this.debugMsg("_mkdir: directory created"),n(`${i} directory created`)})}).finally(()=>{Et(this,"_mkdir"),this._resetEventFlags()});try{kt(this,"mkdir");let i=await ff(this,e),n=await this.exists(i);if(n&&n!=="d"){let o=new Error(`Bad path: ${i} already exists as a file`);throw o.code=Kt.badPath,o}else if(n)return`${i} already exists`;if(!r)return await s(i);let a=iG(i).dir;if(a){let o=await this.exists(a);if(!o)await this.mkdir(a,!0);else if(o!=="d"){let u=new Error(`Bad path: ${a} not a directory`);throw u.code=Kt.badPath,u}}return await s(i)}catch(i){throw fe(`${i.message}`,"mkdir",i.code)}}async rmdir(e,r=!1){let s=i=>new Promise((n,a)=>{this.debugMsg(`rmdir -> ${i}`),wt(this,"rmdir",a),this.sftp.rmdir(i,o=>{o&&(this.debugMsg(`rmdir error ${o.message} code: ${o.code}`),a(fe(`${o.message} ${i}`,"_rmdir",o.code))),n("Successfully removed directory")})}).finally(()=>{Et(this,"rmdir")});try{kt(this,"rmdir");let i=await ff(this,e);if(!r)return s(i);let n=await this.list(i);if(n.length){let a=n.filter(u=>u.type!=="d"),o=n.filter(u=>u.type==="d");this.debugMsg("rmdir contents (files): ",a),this.debugMsg("rmdir contents (dirs): ",o);for(let u of a)await this.delete(`${i}${this.remotePathSep}${u.name}`);for(let u of o)await this.rmdir(`${i}${this.remotePathSep}${u.name}`,!0)}return s(i)}catch(i){throw this._resetEventFlags(),i.custom?i:fe(i,"rmdir",i.code)}}delete(e,r=!1){return new Promise((s,i)=>{kt(this,"delete",i)&&(this.debugMsg(`delete -> ${e}`),wt(this,"delete",i),this.sftp.unlink(e,n=>{n&&(this.debugMsg(`delete error ${n.message} code: ${n.code}`),r&&n.code===2?(this.debugMsg("delete ignore missing target error"),s(`Successfully deleted ${e}`)):i(fe(`${n.message} ${e}`,"delete",n.code))),s(`Successfully deleted ${e}`)}))}).finally(()=>{Et(this,"delete"),this._resetEventFlags()})}rename(e,r){return new Promise((s,i)=>{kt(this,"rename",i)&&(this.debugMsg(`rename -> ${e} ${r}`),wt(this,"rename",i),this.sftp.rename(e,r,n=>{n&&(this.debugMsg(`rename error ${n.message} code: ${n.code}`),i(fe(`${n.message} From: ${e} To: ${r}`,"rename",n.code))),s(`Successfully renamed ${e} to ${r}`)}))}).finally(()=>{Et(this,"rename"),this._resetEventFlags()})}posixRename(e,r){return new Promise((s,i)=>{kt(this,"posixRename",i)&&(this.debugMsg(`posixRename -> ${e} ${r}`),wt(this,"posixRename",i),this.sftp.ext_openssh_rename(e,r,n=>{n&&(this.debugMsg(`posixRename error ${n.message} code: ${n.code}`),i(fe(`${n.message} From: ${e} To: ${r}`,"posixRename",n.code))),s(`Successful POSIX rename ${e} to ${r}`)}))}).finally(()=>{Et(this,"posixRename"),this._resetEventFlags()})}chmod(e,r){return new Promise((s,i)=>{this.debugMsg(`chmod -> ${e} ${r}`),wt(this,"chmod",i),this.sftp.chmod(e,r,n=>{n&&i(fe(`${n.message} ${e}`,"chmod",n.code)),s("Successfully change file mode")})}).finally(()=>{Et(this,"chmod"),this._resetEventFlags()})}async uploadDir(e,r,s=/.*/){try{if(this.debugMsg(`uploadDir -> ${e} ${r}`),fO(e)!=="d")throw fe(`Bad path: ${e}: not a directory`,"uploadDir",Kt.badPath);kt(this,"uploadDir");let n=await this.exists(r);if(n&&n!=="d")throw fe(`Bad path ${r}`,"uploadDir",Kt.badPath);n||await this.mkdir(r,!0);let a=lf.readdirSync(e,{encoding:"utf8",withFileTypes:!0});a=a.filter(o=>s.test(o.name));for(let o of a)if(o.isDirectory()){let u=cf(e,o.name),l=r+this.remotePathSep+o.name;await this.uploadDir(u,l,s)}else if(o.isFile()){let u=cf(e,o.name),l=r+this.remotePathSep+o.name;await this.fastPut(u,l),this.client.emit("upload",{source:u,destination:l})}else this.debugMsg(`uploadDir: File ignored: ${o.name} not a regular file`);return`${e} uploaded to ${r}`}catch(i){throw this._resetEventFlags(),i.custom?i:fe(i,"uploadDir")}}async downloadDir(e,r,s=/.*/){try{this.debugMsg(`downloadDir -> ${e} ${r}`),kt(this,"downloadDir");let i=await this.list(e,s),n=$g(r);if(!n.status&&n.details==="permission denied")throw fe(`Bad path: ${r}: ${n.details}`,"downloadDir",n.code);if(n.status&&!n.type)lf.mkdirSync(r,{recursive:!0});else if(n.status&&n.type!=="d")throw fe(`Bad path: ${r}: not a directory`,"downloadDir",Kt.badPath);for(let a of i)if(a.type==="d"){let o=e+this.remotePathSep+a.name,u=cf(r,a.name);await this.downloadDir(o,u,s)}else if(a.type==="-"){let o=e+this.remotePathSep+a.name,u=cf(r,a.name);await this.fastGet(o,u),this.client.emit("download",{source:o,destination:u})}else this.debugMsg(`downloadDir: File ignored: ${a.name} not regular file`);return`${e} downloaded to ${r}`}catch(i){throw this._resetEventFlags(),i.custom?i:fe(i,"downloadDir",i.code)}}end(){let e;return new Promise((r,s)=>{this.endCalled=!0,wt(this,"end",s),e=()=>{this.sftp=void 0,this.debugMsg("end: Connection closed"),r(!0)},this.on("close",e),kt(this,"end",s)&&(this.debugMsg("end: Have connection - calling end()"),this.client.end())}).finally(()=>{this.debugMsg("end: finally clause fired"),Et(this,"end"),this.removeListener("close",e),this.endCalled=!1,this._resetEventFlags()})}};pO.exports=hO});var Tu=h(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.regexpCode=Ce.getProperty=Ce.safeStringify=Ce.stringify=Ce.strConcat=Ce.addCodeArg=Ce.str=Ce._=Ce.nil=Ce._Code=Ce.Name=Ce.IDENTIFIER=Ce._CodeOrName=void 0;var df=class{};Ce._CodeOrName=df;Ce.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Oa=class extends df{constructor(e){super();if(!Ce.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Ce.Name=Oa;var ss=class extends df{constructor(e){super();this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,s)=>`${r}${s}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,s)=>(s instanceof Oa&&(r[s.str]=(r[s.str]||0)+1),r),{})}};Ce._Code=ss;Ce.nil=new ss("");function gO(t,...e){let r=[t[0]],s=0;for(;s<e.length;)jg(r,e[s]),r.push(t[++s]);return new ss(r)}Ce._=gO;var Fg=new ss("+");function yO(t,...e){let r=[Ou(t[0])],s=0;for(;s<e.length;)r.push(Fg),jg(r,e[s]),r.push(Fg,Ou(t[++s]));return aG(r),new ss(r)}Ce.str=yO;function jg(t,e){e instanceof ss?t.push(...e._items):e instanceof Oa?t.push(e):t.push(lG(e))}Ce.addCodeArg=jg;function aG(t){let e=1;for(;e<t.length-1;){if(t[e]===Fg){let r=oG(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function oG(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Oa||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Oa))return`"${t}${e.slice(1)}`}function uG(t,e){return e.emptyStr()?t:t.emptyStr()?e:yO`${t}${e}`}Ce.strConcat=uG;function lG(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Ou(Array.isArray(t)?t.join(","):t)}function cG(t){return new ss(Ou(t))}Ce.stringify=cG;function Ou(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ce.safeStringify=Ou;function fG(t){return typeof t=="string"&&Ce.IDENTIFIER.test(t)?new ss(`.${t}`):gO`[${t}]`}Ce.getProperty=fG;function dG(t){return new ss(t.toString())}Ce.regexpCode=dG});var qg=h(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.ValueScope=Bt.ValueScopeName=Bt.Scope=Bt.varKinds=Bt.UsedValueState=void 0;var Yt=Tu(),vO=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}},Ig;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Ig=Bt.UsedValueState||(Bt.UsedValueState={}));Bt.varKinds={const:new Yt.Name("const"),let:new Yt.Name("let"),var:new Yt.Name("var")};var Mg=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Yt.Name?e:this.name(e)}name(e){return new Yt.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,s;if(((s=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||s===void 0?void 0:s.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Bt.Scope=Mg;var Ng=class extends Yt.Name{constructor(e,r){super(r);this.prefix=e}setValue(e,{property:r,itemIndex:s}){this.value=e,this.scopePath=(0,Yt._)`.${new Yt.Name(r)}[${s}]`}};Bt.ValueScopeName=Ng;var hG=(0,Yt._)`\n`,bO=class extends Mg{constructor(e){super(e);this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?hG:Yt.nil}}get(){return this._scope}name(e){return new Ng(e,this._newName(e))}value(e,r){var s;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(e),{prefix:n}=i,a=(s=r.key)!==null&&s!==void 0?s:r.ref,o=this._values[n];if(o){let c=o.get(a);if(c)return c}else o=this._values[n]=new Map;o.set(a,i);let u=this._scope[n]||(this._scope[n]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:n,itemIndex:l}),i}getValue(e,r){let s=this._values[e];if(!!s)return s.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,Yt._)`${e}${s.scopePath}`})}scopeCode(e=this._values,r,s){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,s)}_reduceValues(e,r,s={},i){let n=Yt.nil;for(let a in e){let o=e[a];if(!o)continue;let u=s[a]=s[a]||new Map;o.forEach(l=>{if(u.has(l))return;u.set(l,Ig.Started);let c=r(l);if(c){let f=this.opts.es5?Bt.varKinds.var:Bt.varKinds.const;n=(0,Yt._)`${n}${f} ${l} = ${c};${this.opts._n}`}else if(c=i==null?void 0:i(l))n=(0,Yt._)`${n}${c}${this.opts._n}`;else throw new vO(l);u.set(l,Ig.Completed)})}return n}};Bt.ValueScope=bO});var oe=h(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.or=se.and=se.not=se.CodeGen=se.operators=se.varKinds=se.ValueScopeName=se.ValueScope=se.Scope=se.Name=se.regexpCode=se.stringify=se.getProperty=se.nil=se.strConcat=se.str=se._=void 0;var de=Tu(),Br=qg(),ui=Tu();Object.defineProperty(se,"_",{enumerable:!0,get:function(){return ui._}});Object.defineProperty(se,"str",{enumerable:!0,get:function(){return ui.str}});Object.defineProperty(se,"strConcat",{enumerable:!0,get:function(){return ui.strConcat}});Object.defineProperty(se,"nil",{enumerable:!0,get:function(){return ui.nil}});Object.defineProperty(se,"getProperty",{enumerable:!0,get:function(){return ui.getProperty}});Object.defineProperty(se,"stringify",{enumerable:!0,get:function(){return ui.stringify}});Object.defineProperty(se,"regexpCode",{enumerable:!0,get:function(){return ui.regexpCode}});Object.defineProperty(se,"Name",{enumerable:!0,get:function(){return ui.Name}});var hf=qg();Object.defineProperty(se,"Scope",{enumerable:!0,get:function(){return hf.Scope}});Object.defineProperty(se,"ValueScope",{enumerable:!0,get:function(){return hf.ValueScope}});Object.defineProperty(se,"ValueScopeName",{enumerable:!0,get:function(){return hf.ValueScopeName}});Object.defineProperty(se,"varKinds",{enumerable:!0,get:function(){return hf.varKinds}});se.operators={GT:new de._Code(">"),GTE:new de._Code(">="),LT:new de._Code("<"),LTE:new de._Code("<="),EQ:new de._Code("==="),NEQ:new de._Code("!=="),NOT:new de._Code("!"),OR:new de._Code("||"),AND:new de._Code("&&"),ADD:new de._Code("+")};var li=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},_O=class extends li{constructor(e,r,s){super();this.varKind=e,this.name=r,this.rhs=s}render({es5:e,_n:r}){let s=e?Br.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${i};`+r}optimizeNames(e,r){if(!!e[this.name.str])return this.rhs&&(this.rhs=Ra(this.rhs,e,r)),this}get names(){return this.rhs instanceof de._CodeOrName?this.rhs.names:{}}},Bg=class extends li{constructor(e,r,s){super();this.lhs=e,this.rhs=r,this.sideEffects=s}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof de.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Ra(this.rhs,e,r),this}get names(){let e=this.lhs instanceof de.Name?{}:{...this.lhs.names};return bf(e,this.rhs)}},wO=class extends Bg{constructor(e,r,s,i){super(e,s,i);this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},EO=class extends li{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},kO=class extends li{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},DO=class extends li{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},CO=class extends li{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=Ra(this.code,e,r),this}get names(){return this.code instanceof de._CodeOrName?this.code.names:{}}},pf=class extends li{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce((r,s)=>r+s.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let s=e[r].optimizeNodes();Array.isArray(s)?e.splice(r,1,...s):s?e[r]=s:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:s}=this,i=s.length;for(;i--;){let n=s[i];n.optimizeNames(e,r)||(pG(e,n.names),s.splice(i,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>cn(e,r.names),{})}},ci=class extends pf{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},SO=class extends pf{},Ru=class extends ci{};Ru.kind="else";var is=class extends ci{constructor(e,r){super(r);this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let s=r.optimizeNodes();r=this.else=Array.isArray(s)?new Ru(s):s}if(r)return e===!1?r instanceof is?r:r.nodes:this.nodes.length?this:new is(RO(e),r instanceof is?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var s;if(this.else=(s=this.else)===null||s===void 0?void 0:s.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=Ra(this.condition,e,r),this}get names(){let e=super.names;return bf(e,this.condition),this.else&&cn(e,this.else.names),e}};is.kind="if";var Ta=class extends ci{};Ta.kind="for";var xO=class extends Ta{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(!!super.optimizeNames(e,r))return this.iteration=Ra(this.iteration,e,r),this}get names(){return cn(super.names,this.iteration.names)}},AO=class extends Ta{constructor(e,r,s,i){super();this.varKind=e,this.name=r,this.from=s,this.to=i}render(e){let r=e.es5?Br.varKinds.var:this.varKind,{name:s,from:i,to:n}=this;return`for(${r} ${s}=${i}; ${s}<${n}; ${s}++)`+super.render(e)}get names(){let e=bf(super.names,this.from);return bf(e,this.to)}},Lg=class extends Ta{constructor(e,r,s,i){super();this.loop=e,this.varKind=r,this.name=s,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(!!super.optimizeNames(e,r))return this.iterable=Ra(this.iterable,e,r),this}get names(){return cn(super.names,this.iterable.names)}},mf=class extends ci{constructor(e,r,s){super();this.name=e,this.args=r,this.async=s}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};mf.kind="func";var gf=class extends pf{render(e){return"return "+super.render(e)}};gf.kind="return";var OO=class extends ci{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var s,i;return super.optimizeNames(e,r),(s=this.catch)===null||s===void 0||s.optimizeNames(e,r),(i=this.finally)===null||i===void 0||i.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&cn(e,this.catch.names),this.finally&&cn(e,this.finally.names),e}},yf=class extends ci{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};yf.kind="catch";var vf=class extends ci{render(e){return"finally"+super.render(e)}};vf.kind="finally";var TO=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
83
|
+
`:""},this._extScope=e,this._scope=new Br.Scope({parent:e}),this._nodes=[new SO]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let s=this._extScope.value(e,r);return(this._values[s.prefix]||(this._values[s.prefix]=new Set)).add(s),s}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,s,i){let n=this._scope.toName(r);return s!==void 0&&i&&(this._constants[n.str]=s),this._leafNode(new _O(e,n,s)),n}const(e,r,s){return this._def(Br.varKinds.const,e,r,s)}let(e,r,s){return this._def(Br.varKinds.let,e,r,s)}var(e,r,s){return this._def(Br.varKinds.var,e,r,s)}assign(e,r,s){return this._leafNode(new Bg(e,r,s))}add(e,r){return this._leafNode(new wO(e,se.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==de.nil&&this._leafNode(new CO(e)),this}object(...e){let r=["{"];for(let[s,i]of e)r.length>1&&r.push(","),r.push(s),(s!==i||this.opts.es5)&&(r.push(":"),(0,de.addCodeArg)(r,i));return r.push("}"),new de._Code(r)}if(e,r,s){if(this._blockNode(new is(e)),r&&s)this.code(r).else().code(s).endIf();else if(r)this.code(r).endIf();else if(s)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new is(e))}else(){return this._elseNode(new Ru)}endIf(){return this._endBlockNode(is,Ru)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new xO(e),r)}forRange(e,r,s,i,n=this.opts.es5?Br.varKinds.var:Br.varKinds.let){let a=this._scope.toName(e);return this._for(new AO(n,a,r,s),()=>i(a))}forOf(e,r,s,i=Br.varKinds.const){let n=this._scope.toName(e);if(this.opts.es5){let a=r instanceof de.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,de._)`${a}.length`,o=>{this.var(n,(0,de._)`${a}[${o}]`),s(n)})}return this._for(new Lg("of",i,n,r),()=>s(n))}forIn(e,r,s,i=this.opts.es5?Br.varKinds.var:Br.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,de._)`Object.keys(${r})`,s);let n=this._scope.toName(e);return this._for(new Lg("in",i,n,r),()=>s(n))}endFor(){return this._endBlockNode(Ta)}label(e){return this._leafNode(new EO(e))}break(e){return this._leafNode(new kO(e))}return(e){let r=new gf;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(gf)}try(e,r,s){if(!r&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new OO;if(this._blockNode(i),this.code(e),r){let n=this.name("e");this._currNode=i.catch=new yf(n),r(n)}return s&&(this._currNode=i.finally=new vf,this.code(s)),this._endBlockNode(yf,vf)}throw(e){return this._leafNode(new DO(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let s=this._nodes.length-r;if(s<0||e!==void 0&&s!==e)throw new Error(`CodeGen: wrong number of nodes: ${s} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=de.nil,s,i){return this._blockNode(new mf(e,r,s)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(mf)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let s=this._currNode;if(s instanceof e||r&&s instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof is))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};se.CodeGen=TO;function cn(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function bf(t,e){return e instanceof de._CodeOrName?cn(t,e.names):t}function Ra(t,e,r){if(t instanceof de.Name)return s(t);if(!i(t))return t;return new de._Code(t._items.reduce((n,a)=>(a instanceof de.Name&&(a=s(a)),a instanceof de._Code?n.push(...a._items):n.push(a),n),[]));function s(n){let a=r[n.str];return a===void 0||e[n.str]!==1?n:(delete e[n.str],a)}function i(n){return n instanceof de._Code&&n._items.some(a=>a instanceof de.Name&&e[a.str]===1&&r[a.str]!==void 0)}}function pG(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function RO(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,de._)`!${Hg(t)}`}se.not=RO;var mG=PO(se.operators.AND);function gG(...t){return t.reduce(mG)}se.and=gG;var yG=PO(se.operators.OR);function vG(...t){return t.reduce(yG)}se.or=vG;function PO(t){return(e,r)=>e===de.nil?r:r===de.nil?e:(0,de._)`${Hg(e)} ${t} ${Hg(r)}`}function Hg(t){return t instanceof de.Name?t:(0,de._)`(${t})`}});var we=h(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.checkStrictMode=ie.getErrorPath=ie.Type=ie.useFunc=ie.setEvaluated=ie.evaluatedPropsToName=ie.mergeEvaluated=ie.eachItem=ie.unescapeJsonPointer=ie.escapeJsonPointer=ie.escapeFragment=ie.unescapeFragment=ie.schemaRefOrVal=ie.schemaHasRulesButRef=ie.schemaHasRules=ie.checkUnknownRules=ie.alwaysValidSchema=ie.toHash=void 0;var Pe=oe(),bG=Tu();function _G(t){let e={};for(let r of t)e[r]=!0;return e}ie.toHash=_G;function wG(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:($O(t,e),!FO(e,t.self.RULES.all))}ie.alwaysValidSchema=wG;function $O(t,e=t.schema){let{opts:r,self:s}=t;if(!r.strictSchema||typeof e=="boolean")return;let i=s.RULES.keywords;for(let n in e)i[n]||BO(t,`unknown keyword: "${n}"`)}ie.checkUnknownRules=$O;function FO(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}ie.schemaHasRules=FO;function EG(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}ie.schemaHasRulesButRef=EG;function kG({topSchemaRef:t,schemaPath:e},r,s,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Pe._)`${r}`}return(0,Pe._)`${t}${e}${(0,Pe.getProperty)(s)}`}ie.schemaRefOrVal=kG;function DG(t){return jO(decodeURIComponent(t))}ie.unescapeFragment=DG;function CG(t){return encodeURIComponent(Ug(t))}ie.escapeFragment=CG;function Ug(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}ie.escapeJsonPointer=Ug;function jO(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}ie.unescapeJsonPointer=jO;function SG(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}ie.eachItem=SG;function IO({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:s}){return(i,n,a,o)=>{let u=a===void 0?n:a instanceof Pe.Name?(n instanceof Pe.Name?t(i,n,a):e(i,n,a),a):n instanceof Pe.Name?(e(i,a,n),n):r(n,a);return o===Pe.Name&&!(u instanceof Pe.Name)?s(i,u):u}}ie.mergeEvaluated={props:IO({mergeNames:(t,e,r)=>t.if((0,Pe._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,Pe._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,Pe._)`${r} || {}`).code((0,Pe._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,Pe._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,Pe._)`${r} || {}`),Gg(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:MO}),items:IO({mergeNames:(t,e,r)=>t.if((0,Pe._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,Pe._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,Pe._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,Pe._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function MO(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,Pe._)`{}`);return e!==void 0&&Gg(t,r,e),r}ie.evaluatedPropsToName=MO;function Gg(t,e,r){Object.keys(r).forEach(s=>t.assign((0,Pe._)`${e}${(0,Pe.getProperty)(s)}`,!0))}ie.setEvaluated=Gg;var NO={};function xG(t,e){return t.scopeValue("func",{ref:e,code:NO[e.code]||(NO[e.code]=new bG._Code(e.code))})}ie.useFunc=xG;var qO;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(qO=ie.Type||(ie.Type={}));function AG(t,e,r){if(t instanceof Pe.Name){let s=e===qO.Num;return r?s?(0,Pe._)`"[" + ${t} + "]"`:(0,Pe._)`"['" + ${t} + "']"`:s?(0,Pe._)`"/" + ${t}`:(0,Pe._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Pe.getProperty)(t).toString():"/"+Ug(t)}ie.getErrorPath=AG;function BO(t,e,r=t.opts.strictSchema){if(!!r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}ie.checkStrictMode=BO});var Os=h(Vg=>{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0});var Pt=oe(),OG={data:new Pt.Name("data"),valCxt:new Pt.Name("valCxt"),instancePath:new Pt.Name("instancePath"),parentData:new Pt.Name("parentData"),parentDataProperty:new Pt.Name("parentDataProperty"),rootData:new Pt.Name("rootData"),dynamicAnchors:new Pt.Name("dynamicAnchors"),vErrors:new Pt.Name("vErrors"),errors:new Pt.Name("errors"),this:new Pt.Name("this"),self:new Pt.Name("self"),scope:new Pt.Name("scope"),json:new Pt.Name("json"),jsonPos:new Pt.Name("jsonPos"),jsonLen:new Pt.Name("jsonLen"),jsonPart:new Pt.Name("jsonPart")};Vg.default=OG});var Pu=h($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.extendErrors=$t.resetErrorsCount=$t.reportExtraError=$t.reportError=$t.keyword$DataError=$t.keywordError=void 0;var me=oe(),_f=we(),Lt=Os();$t.keywordError={message:({keyword:t})=>(0,me.str)`must pass "${t}" keyword validation`};$t.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,me.str)`"${t}" keyword must be ${e} ($data)`:(0,me.str)`"${t}" keyword is invalid ($data)`};function TG(t,e=$t.keywordError,r,s){let{it:i}=t,{gen:n,compositeRule:a,allErrors:o}=i,u=UO(t,e,r);s??(a||o)?LO(n,u):HO(i,(0,me._)`[${u}]`)}$t.reportError=TG;function RG(t,e=$t.keywordError,r){let{it:s}=t,{gen:i,compositeRule:n,allErrors:a}=s,o=UO(t,e,r);LO(i,o),n||a||HO(s,Lt.default.vErrors)}$t.reportExtraError=RG;function PG(t,e){t.assign(Lt.default.errors,e),t.if((0,me._)`${Lt.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,me._)`${Lt.default.vErrors}.length`,e),()=>t.assign(Lt.default.vErrors,null)))}$t.resetErrorsCount=PG;function $G({gen:t,keyword:e,schemaValue:r,data:s,errsCount:i,it:n}){if(i===void 0)throw new Error("ajv implementation error");let a=t.name("err");t.forRange("i",i,Lt.default.errors,o=>{t.const(a,(0,me._)`${Lt.default.vErrors}[${o}]`),t.if((0,me._)`${a}.instancePath === undefined`,()=>t.assign((0,me._)`${a}.instancePath`,(0,me.strConcat)(Lt.default.instancePath,n.errorPath))),t.assign((0,me._)`${a}.schemaPath`,(0,me.str)`${n.errSchemaPath}/${e}`),n.opts.verbose&&(t.assign((0,me._)`${a}.schema`,r),t.assign((0,me._)`${a}.data`,s))})}$t.extendErrors=$G;function LO(t,e){let r=t.const("err",e);t.if((0,me._)`${Lt.default.vErrors} === null`,()=>t.assign(Lt.default.vErrors,(0,me._)`[${r}]`),(0,me._)`${Lt.default.vErrors}.push(${r})`),t.code((0,me._)`${Lt.default.errors}++`)}function HO(t,e){let{gen:r,validateName:s,schemaEnv:i}=t;i.$async?r.throw((0,me._)`new ${t.ValidationError}(${e})`):(r.assign((0,me._)`${s}.errors`,e),r.return(!1))}var fn={keyword:new me.Name("keyword"),schemaPath:new me.Name("schemaPath"),params:new me.Name("params"),propertyName:new me.Name("propertyName"),message:new me.Name("message"),schema:new me.Name("schema"),parentSchema:new me.Name("parentSchema")};function UO(t,e,r){let{createErrors:s}=t.it;return s===!1?(0,me._)`{}`:FG(t,e,r)}function FG(t,e,r={}){let{gen:s,it:i}=t,n=[jG(i,r),IG(t,r)];return MG(t,e,n),s.object(...n)}function jG({errorPath:t},{instancePath:e}){let r=e?(0,me.str)`${t}${(0,_f.getErrorPath)(e,_f.Type.Str)}`:t;return[Lt.default.instancePath,(0,me.strConcat)(Lt.default.instancePath,r)]}function IG({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:s}){let i=s?e:(0,me.str)`${e}/${t}`;return r&&(i=(0,me.str)`${i}${(0,_f.getErrorPath)(r,_f.Type.Str)}`),[fn.schemaPath,i]}function MG(t,{params:e,message:r},s){let{keyword:i,data:n,schemaValue:a,it:o}=t,{opts:u,propertyName:l,topSchemaRef:c,schemaPath:f}=o;s.push([fn.keyword,i],[fn.params,typeof e=="function"?e(t):e||(0,me._)`{}`]),u.messages&&s.push([fn.message,typeof r=="function"?r(t):r]),u.verbose&&s.push([fn.schema,a],[fn.parentSchema,(0,me._)`${c}${f}`],[Lt.default.data,n]),l&&s.push([fn.propertyName,l])}});var VO=h(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.boolOrEmptySchema=Pa.topBoolOrEmptySchema=void 0;var NG=Pu(),qG=oe(),BG=Os(),LG={message:"boolean schema is false"};function HG(t){let{gen:e,schema:r,validateName:s}=t;r===!1?GO(t,!1):typeof r=="object"&&r.$async===!0?e.return(BG.default.data):(e.assign((0,qG._)`${s}.errors`,null),e.return(!0))}Pa.topBoolOrEmptySchema=HG;function UG(t,e){let{gen:r,schema:s}=t;s===!1?(r.var(e,!1),GO(t)):r.var(e,!0)}Pa.boolOrEmptySchema=UG;function GO(t,e){let{gen:r,data:s}=t,i={gen:r,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,NG.reportError)(i,LG,void 0,e)}});var zg=h($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.getRules=$a.isJSONType=void 0;var GG=["string","number","integer","boolean","null","object","array"],VG=new Set(GG);function zG(t){return typeof t=="string"&&VG.has(t)}$a.isJSONType=zG;function WG(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}$a.getRules=WG});var Wg=h(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.shouldUseRule=fi.shouldUseGroup=fi.schemaHasRulesForType=void 0;function KG({schema:t,self:e},r){let s=e.RULES.types[r];return s&&s!==!0&&zO(t,s)}fi.schemaHasRulesForType=KG;function zO(t,e){return e.rules.some(r=>WO(t,r))}fi.shouldUseGroup=zO;function WO(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(s=>t[s]!==void 0))}fi.shouldUseRule=WO});var Fu=h(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.reportTypeError=Dt.checkDataTypes=Dt.checkDataType=Dt.coerceAndCheckDataType=Dt.getJSONTypes=Dt.getSchemaTypes=Dt.DataType=void 0;var YG=zg(),JG=Wg(),QG=Pu(),ee=oe(),KO=we(),$u;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})($u=Dt.DataType||(Dt.DataType={}));function XG(t){let e=YO(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Dt.getSchemaTypes=XG;function YO(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(YG.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Dt.getJSONTypes=YO;function ZG(t,e){let{gen:r,data:s,opts:i}=t,n=eV(e,i.coerceTypes),a=e.length>0&&!(n.length===0&&e.length===1&&(0,JG.schemaHasRulesForType)(t,e[0]));if(a){let o=Yg(e,s,i.strictNumbers,$u.Wrong);r.if(o,()=>{n.length?tV(t,e,n):Jg(t)})}return a}Dt.coerceAndCheckDataType=ZG;var JO=new Set(["string","number","integer","boolean","null"]);function eV(t,e){return e?t.filter(r=>JO.has(r)||e==="array"&&r==="array"):[]}function tV(t,e,r){let{gen:s,data:i,opts:n}=t,a=s.let("dataType",(0,ee._)`typeof ${i}`),o=s.let("coerced",(0,ee._)`undefined`);n.coerceTypes==="array"&&s.if((0,ee._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>s.assign(i,(0,ee._)`${i}[0]`).assign(a,(0,ee._)`typeof ${i}`).if(Yg(e,i,n.strictNumbers),()=>s.assign(o,i))),s.if((0,ee._)`${o} !== undefined`);for(let l of r)(JO.has(l)||l==="array"&&n.coerceTypes==="array")&&u(l);s.else(),Jg(t),s.endIf(),s.if((0,ee._)`${o} !== undefined`,()=>{s.assign(i,o),rV(t,o)});function u(l){switch(l){case"string":s.elseIf((0,ee._)`${a} == "number" || ${a} == "boolean"`).assign(o,(0,ee._)`"" + ${i}`).elseIf((0,ee._)`${i} === null`).assign(o,(0,ee._)`""`);return;case"number":s.elseIf((0,ee._)`${a} == "boolean" || ${i} === null
|
|
84
84
|
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(o,(0,ee._)`+${i}`);return;case"integer":s.elseIf((0,ee._)`${a} === "boolean" || ${i} === null
|
|
85
85
|
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(o,(0,ee._)`+${i}`);return;case"boolean":s.elseIf((0,ee._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(o,!1).elseIf((0,ee._)`${i} === "true" || ${i} === 1`).assign(o,!0);return;case"null":s.elseIf((0,ee._)`${i} === "" || ${i} === 0 || ${i} === false`),s.assign(o,null);return;case"array":s.elseIf((0,ee._)`${a} === "string" || ${a} === "number"
|
|
86
|
-
|| ${a} === "boolean" || ${i} === null`).assign(o,(0,ee._)`[${i}]`)}}}function tV({gen:t,parentData:e,parentDataProperty:r},s){t.if((0,ee._)`${e} !== undefined`,()=>t.assign((0,ee._)`${e}[${r}]`,s))}function Wg(t,e,r,s=$u.Correct){let i=s===$u.Correct?ee.operators.EQ:ee.operators.NEQ,n;switch(t){case"null":return(0,ee._)`${e} ${i} null`;case"array":n=(0,ee._)`Array.isArray(${e})`;break;case"object":n=(0,ee._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":n=a((0,ee._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":n=a();break;default:return(0,ee._)`typeof ${e} ${i} ${t}`}return s===$u.Correct?n:(0,ee.not)(n);function a(o=ee.nil){return(0,ee.and)((0,ee._)`typeof ${e} == "number"`,o,r?(0,ee._)`isFinite(${e})`:ee.nil)}}Dt.checkDataType=Wg;function Kg(t,e,r,s){if(t.length===1)return Wg(t[0],e,r,s);let i,n=(0,WO.toHash)(t);if(n.array&&n.object){let a=(0,ee._)`typeof ${e} != "object"`;i=n.null?a:(0,ee._)`!${e} || ${a}`,delete n.null,delete n.array,delete n.object}else i=ee.nil;n.number&&delete n.integer;for(let a in n)i=(0,ee.and)(i,Wg(a,e,r,s));return i}Dt.checkDataTypes=Kg;var rV={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,ee._)`{type: ${t}}`:(0,ee._)`{type: ${e}}`};function Yg(t){let e=sV(t);(0,JG.reportError)(e,rV)}Dt.reportTypeError=Yg;function sV(t){let{gen:e,data:r,schema:s}=t,i=(0,WO.schemaRefOrVal)(t,s,"type");return{gen:e,keyword:"type",data:r,schema:s.type,schemaCode:i,schemaValue:i,parentSchema:s,params:{},it:t}}});var QO=h(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.assignDefaults=void 0;var Fa=ae(),iV=we();function nV(t,e){let{properties:r,items:s}=t.schema;if(e==="object"&&r)for(let i in r)JO(t,i,r[i].default);else e==="array"&&Array.isArray(s)&&s.forEach((i,n)=>JO(t,n,i.default))}wf.assignDefaults=nV;function JO(t,e,r){let{gen:s,compositeRule:i,data:n,opts:a}=t;if(r===void 0)return;let o=(0,Fa._)`${n}${(0,Fa.getProperty)(e)}`;if(i){(0,iV.checkStrictMode)(t,`default is ignored for: ${o}`);return}let u=(0,Fa._)`${o} === undefined`;a.useDefaults==="empty"&&(u=(0,Fa._)`${u} || ${o} === null || ${o} === ""`),s.if(u,(0,Fa._)`${o} = ${(0,Fa.stringify)(r)}`)}});var _r=h(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.validateUnion=Oe.validateArray=Oe.usePattern=Oe.callValidateCode=Oe.schemaProperties=Oe.allSchemaProperties=Oe.noPropertyInData=Oe.propertyInData=Oe.isOwnProperty=Oe.hasPropFunc=Oe.reportMissingProp=Oe.checkMissingProp=Oe.checkReportMissingProp=void 0;var Me=ae(),Jg=we(),di=Os(),aV=we();function oV(t,e){let{gen:r,data:s,it:i}=t;r.if(Xg(r,s,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Me._)`${e}`},!0),t.error()})}Oe.checkReportMissingProp=oV;function uV({gen:t,data:e,it:{opts:r}},s,i){return(0,Me.or)(...s.map(n=>(0,Me.and)(Xg(t,e,n,r.ownProperties),(0,Me._)`${i} = ${n}`)))}Oe.checkMissingProp=uV;function lV(t,e){t.setParams({missingProperty:e},!0),t.error()}Oe.reportMissingProp=lV;function XO(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Me._)`Object.prototype.hasOwnProperty`})}Oe.hasPropFunc=XO;function Qg(t,e,r){return(0,Me._)`${XO(t)}.call(${e}, ${r})`}Oe.isOwnProperty=Qg;function cV(t,e,r,s){let i=(0,Me._)`${e}${(0,Me.getProperty)(r)} !== undefined`;return s?(0,Me._)`${i} && ${Qg(t,e,r)}`:i}Oe.propertyInData=cV;function Xg(t,e,r,s){let i=(0,Me._)`${e}${(0,Me.getProperty)(r)} === undefined`;return s?(0,Me.or)(i,(0,Me.not)(Qg(t,e,r))):i}Oe.noPropertyInData=Xg;function ZO(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Oe.allSchemaProperties=ZO;function fV(t,e){return ZO(e).filter(r=>!(0,Jg.alwaysValidSchema)(t,e[r]))}Oe.schemaProperties=fV;function dV({schemaCode:t,data:e,it:{gen:r,topSchemaRef:s,schemaPath:i,errorPath:n},it:a},o,u,l){let c=l?(0,Me._)`${t}, ${e}, ${s}${i}`:e,f=[[di.default.instancePath,(0,Me.strConcat)(di.default.instancePath,n)],[di.default.parentData,a.parentData],[di.default.parentDataProperty,a.parentDataProperty],[di.default.rootData,di.default.rootData]];a.opts.dynamicRef&&f.push([di.default.dynamicAnchors,di.default.dynamicAnchors]);let d=(0,Me._)`${c}, ${r.object(...f)}`;return u!==Me.nil?(0,Me._)`${o}.call(${u}, ${d})`:(0,Me._)`${o}(${d})`}Oe.callValidateCode=dV;var hV=(0,Me._)`new RegExp`;function pV({gen:t,it:{opts:e}},r){let s=e.unicodeRegExp?"u":"",{regExp:i}=e.code,n=i(r,s);return t.scopeValue("pattern",{key:n.toString(),ref:n,code:(0,Me._)`${i.code==="new RegExp"?hV:(0,aV.useFunc)(t,i)}(${r}, ${s})`})}Oe.usePattern=pV;function mV(t){let{gen:e,data:r,keyword:s,it:i}=t,n=e.name("valid");if(i.allErrors){let o=e.let("valid",!0);return a(()=>e.assign(o,!1)),o}return e.var(n,!0),a(()=>e.break()),n;function a(o){let u=e.const("len",(0,Me._)`${r}.length`);e.forRange("i",0,u,l=>{t.subschema({keyword:s,dataProp:l,dataPropType:Jg.Type.Num},n),e.if((0,Me.not)(n),o)})}}Oe.validateArray=mV;function gV(t){let{gen:e,schema:r,keyword:s,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,Jg.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=e.let("valid",!1),o=e.name("_valid");e.block(()=>r.forEach((u,l)=>{let c=t.subschema({keyword:s,schemaProp:l,compositeRule:!0},o);e.assign(a,(0,Me._)`${a} || ${o}`),t.mergeValidEvaluated(c,o)||e.if((0,Me.not)(a))})),t.result(a,()=>t.reset(),()=>t.error(!0))}Oe.validateUnion=gV});var rT=h(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.validateKeywordUsage=ns.validSchemaType=ns.funcKeywordCode=ns.macroKeywordCode=void 0;var Ht=ae(),dn=Os(),yV=_r(),vV=Pu();function bV(t,e){let{gen:r,keyword:s,schema:i,parentSchema:n,it:a}=t,o=e.macro.call(a.self,i,n,a),u=tT(r,s,o);a.opts.validateSchema!==!1&&a.self.validateSchema(o,!0);let l=r.name("valid");t.subschema({schema:o,schemaPath:Ht.nil,errSchemaPath:`${a.errSchemaPath}/${s}`,topSchemaRef:u,compositeRule:!0},l),t.pass(l,()=>t.error(!0))}ns.macroKeywordCode=bV;function _V(t,e){var r;let{gen:s,keyword:i,schema:n,parentSchema:a,$data:o,it:u}=t;EV(u,e);let l=!o&&e.compile?e.compile.call(u.self,n,a,u):e.validate,c=tT(s,i,l),f=s.let("valid");t.block$data(f,d),t.ok((r=e.valid)!==null&&r!==void 0?r:f);function d(){if(e.errors===!1)g(),e.modifying&&eT(t),b(()=>t.error());else{let y=e.async?m():p();e.modifying&&eT(t),b(()=>wV(t,y))}}function m(){let y=s.let("ruleErrs",null);return s.try(()=>g((0,Ht._)`await `),w=>s.assign(f,!1).if((0,Ht._)`${w} instanceof ${u.ValidationError}`,()=>s.assign(y,(0,Ht._)`${w}.errors`),()=>s.throw(w))),y}function p(){let y=(0,Ht._)`${c}.errors`;return s.assign(y,null),g(Ht.nil),y}function g(y=e.async?(0,Ht._)`await `:Ht.nil){let w=u.opts.passContext?dn.default.this:dn.default.self,k=!("compile"in e&&!o||e.schema===!1);s.assign(f,(0,Ht._)`${y}${(0,yV.callValidateCode)(t,c,w,k)}`,e.modifying)}function b(y){var w;s.if((0,Ht.not)((w=e.valid)!==null&&w!==void 0?w:f),y)}}ns.funcKeywordCode=_V;function eT(t){let{gen:e,data:r,it:s}=t;e.if(s.parentData,()=>e.assign(r,(0,Ht._)`${s.parentData}[${s.parentDataProperty}]`))}function wV(t,e){let{gen:r}=t;r.if((0,Ht._)`Array.isArray(${e})`,()=>{r.assign(dn.default.vErrors,(0,Ht._)`${dn.default.vErrors} === null ? ${e} : ${dn.default.vErrors}.concat(${e})`).assign(dn.default.errors,(0,Ht._)`${dn.default.vErrors}.length`),(0,vV.extendErrors)(t)},()=>t.error())}function EV({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function tT(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Ht.stringify)(r)})}function kV(t,e,r=!1){return!e.length||e.some(s=>s==="array"?Array.isArray(t):s==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==s||r&&typeof t=="undefined")}ns.validSchemaType=kV;function DV({schema:t,opts:e,self:r,errSchemaPath:s},i,n){if(Array.isArray(i.keyword)?!i.keyword.includes(n):i.keyword!==n)throw new Error("ajv implementation error");let a=i.dependencies;if(a==null?void 0:a.some(o=>!Object.prototype.hasOwnProperty.call(t,o)))throw new Error(`parent schema must have dependencies of ${n}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(t[n])){let u=`keyword "${n}" value is invalid at path "${s}": `+r.errorsText(i.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}ns.validateKeywordUsage=DV});var iT=h(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.extendSubschemaMode=hi.extendSubschemaData=hi.getSubschema=void 0;var as=ae(),sT=we();function CV(t,{keyword:e,schemaProp:r,schema:s,schemaPath:i,errSchemaPath:n,topSchemaRef:a}){if(e!==void 0&&s!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let o=t.schema[e];return r===void 0?{schema:o,schemaPath:(0,as._)`${t.schemaPath}${(0,as.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:o[r],schemaPath:(0,as._)`${t.schemaPath}${(0,as.getProperty)(e)}${(0,as.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,sT.escapeFragment)(r)}`}}if(s!==void 0){if(i===void 0||n===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:i,topSchemaRef:a,errSchemaPath:n}}throw new Error('either "keyword" or "schema" must be passed')}hi.getSubschema=CV;function SV(t,e,{dataProp:r,dataPropType:s,data:i,dataTypes:n,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=e;if(r!==void 0){let{errorPath:l,dataPathArr:c,opts:f}=e,d=o.let("data",(0,as._)`${e.data}${(0,as.getProperty)(r)}`,!0);u(d),t.errorPath=(0,as.str)`${l}${(0,sT.getErrorPath)(r,s,f.jsPropertySyntax)}`,t.parentDataProperty=(0,as._)`${r}`,t.dataPathArr=[...c,t.parentDataProperty]}if(i!==void 0){let l=i instanceof as.Name?i:o.let("data",i,!0);u(l),a!==void 0&&(t.propertyName=a)}n&&(t.dataTypes=n);function u(l){t.data=l,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,l]}}hi.extendSubschemaData=SV;function xV(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:s,createErrors:i,allErrors:n}){s!==void 0&&(t.compositeRule=s),i!==void 0&&(t.createErrors=i),n!==void 0&&(t.allErrors=n),t.jtdDiscriminator=e,t.jtdMetadata=r}hi.extendSubschemaMode=xV});var Zg=h((Dce,nT)=>{"use strict";nT.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var s,i,n;if(Array.isArray(e)){if(s=e.length,s!=r.length)return!1;for(i=s;i--!=0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(n=Object.keys(e),s=n.length,s!==Object.keys(r).length)return!1;for(i=s;i--!=0;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=s;i--!=0;){var a=n[i];if(!t(e[a],r[a]))return!1}return!0}return e!==e&&r!==r}});var oT=h((Cce,aT)=>{"use strict";var pi=aT.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var s=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Ef(e,s,i,t,"",t)};pi.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};pi.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};pi.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};pi.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Ef(t,e,r,s,i,n,a,o,u,l){if(s&&typeof s=="object"&&!Array.isArray(s)){e(s,i,n,a,o,u,l);for(var c in s){var f=s[c];if(Array.isArray(f)){if(c in pi.arrayKeywords)for(var d=0;d<f.length;d++)Ef(t,e,r,f[d],i+"/"+c+"/"+d,n,i,c,s,d)}else if(c in pi.propsKeywords){if(f&&typeof f=="object")for(var m in f)Ef(t,e,r,f[m],i+"/"+c+"/"+AV(m),n,i,c,s,m)}else(c in pi.keywords||t.allKeys&&!(c in pi.skipKeywords))&&Ef(t,e,r,f,i+"/"+c,n,i,c,s)}r(s,i,n,a,o,u,l)}}function AV(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var ey=h((kf,uT)=>{(function(t,e){typeof kf=="object"&&typeof uT!="undefined"?e(kf):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(kf,function(t){"use strict";function e(){for(var _=arguments.length,v=Array(_),E=0;E<_;E++)v[E]=arguments[E];if(v.length>1){v[0]=v[0].slice(0,-1);for(var C=v.length-1,A=1;A<C;++A)v[A]=v[A].slice(1,-1);return v[C]=v[C].slice(1),v.join("")}else return v[0]}function r(_){return"(?:"+_+")"}function s(_){return _===void 0?"undefined":_===null?"null":Object.prototype.toString.call(_).split(" ").pop().split("]").shift().toLowerCase()}function i(_){return _.toUpperCase()}function n(_){return _!=null?_ instanceof Array?_:typeof _.length!="number"||_.split||_.setInterval||_.call?[_]:Array.prototype.slice.call(_):[]}function a(_,v){var E=_;if(v)for(var C in v)E[C]=v[C];return E}function o(_){var v="[A-Za-z]",E="[\\x0D]",C="[0-9]",A="[\\x22]",N=e(C,"[A-Fa-f]"),Z="[\\x0A]",ye="[\\x20]",ke=r(r("%[EFef]"+N+"%"+N+N+"%"+N+N)+"|"+r("%[89A-Fa-f]"+N+"%"+N+N)+"|"+r("%"+N+N)),Ze="[\\:\\/\\?\\#\\[\\]\\@]",pe="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",He=e(Ze,pe),et=_?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",qe=_?"[\\uE000-\\uF8FF]":"[]",_e=e(v,C,"[\\-\\.\\_\\~]",et),Ue=r(v+e(v,C,"[\\+\\-\\.]")+"*"),Ae=r(r(ke+"|"+e(_e,pe,"[\\:]"))+"*"),Oi=r(r("25[0-5]")+"|"+r("2[0-4]"+C)+"|"+r("1"+C+C)+"|"+r("[1-9]"+C)+"|"+C),er=r(r("25[0-5]")+"|"+r("2[0-4]"+C)+"|"+r("1"+C+C)+"|"+r("0?[1-9]"+C)+"|0?0?"+C),lr=r(er+"\\."+er+"\\."+er+"\\."+er),Te=r(N+"{1,4}"),tr=r(r(Te+"\\:"+Te)+"|"+lr),cr=r(r(Te+"\\:")+"{6}"+tr),Yr=r("\\:\\:"+r(Te+"\\:")+"{5}"+tr),Ti=r(r(Te)+"?\\:\\:"+r(Te+"\\:")+"{4}"+tr),ds=r(r(r(Te+"\\:")+"{0,1}"+Te)+"?\\:\\:"+r(Te+"\\:")+"{3}"+tr),wo=r(r(r(Te+"\\:")+"{0,2}"+Te)+"?\\:\\:"+r(Te+"\\:")+"{2}"+tr),ul=r(r(r(Te+"\\:")+"{0,3}"+Te)+"?\\:\\:"+Te+"\\:"+tr),ll=r(r(r(Te+"\\:")+"{0,4}"+Te)+"?\\:\\:"+tr),Pn=r(r(r(Te+"\\:")+"{0,5}"+Te)+"?\\:\\:"+Te),$n=r(r(r(Te+"\\:")+"{0,6}"+Te)+"?\\:\\:"),hs=r([cr,Yr,Ti,ds,wo,ul,ll,Pn,$n].join("|")),Fn=r(r(_e+"|"+ke)+"+"),rh=r(hs+"\\%25"+Fn),Ri=r(hs+r("\\%25|\\%(?!"+N+"{2})")+Fn),i2=r("[vV]"+N+"+\\."+e(_e,pe,"[\\:]")+"+"),n2=r("\\["+r(Ri+"|"+hs+"|"+i2)+"\\]"),av=r(r(ke+"|"+e(_e,pe))+"*"),Eo=r(n2+"|"+lr+"(?!"+av+")|"+av),ko=r(C+"*"),ov=r(r(Ae+"@")+"?"+Eo+r("\\:"+ko)+"?"),Do=r(ke+"|"+e(_e,pe,"[\\:\\@]")),a2=r(Do+"*"),uv=r(Do+"+"),o2=r(r(ke+"|"+e(_e,pe,"[\\@]"))+"+"),ps=r(r("\\/"+a2)+"*"),jn=r("\\/"+r(uv+ps)+"?"),sh=r(o2+ps),cl=r(uv+ps),In="(?!"+Do+")",Zee=r(ps+"|"+jn+"|"+sh+"|"+cl+"|"+In),Mn=r(r(Do+"|"+e("[\\/\\?]",qe))+"*"),Co=r(r(Do+"|[\\/\\?]")+"*"),lv=r(r("\\/\\/"+ov+ps)+"|"+jn+"|"+cl+"|"+In),u2=r(Ue+"\\:"+lv+r("\\?"+Mn)+"?"+r("\\#"+Co)+"?"),l2=r(r("\\/\\/"+ov+ps)+"|"+jn+"|"+sh+"|"+In),c2=r(l2+r("\\?"+Mn)+"?"+r("\\#"+Co)+"?"),ete=r(u2+"|"+c2),tte=r(Ue+"\\:"+lv+r("\\?"+Mn)+"?"),rte="^("+Ue+")\\:"+r(r("\\/\\/("+r("("+Ae+")@")+"?("+Eo+")"+r("\\:("+ko+")")+"?)")+"?("+ps+"|"+jn+"|"+cl+"|"+In+")")+r("\\?("+Mn+")")+"?"+r("\\#("+Co+")")+"?$",ste="^(){0}"+r(r("\\/\\/("+r("("+Ae+")@")+"?("+Eo+")"+r("\\:("+ko+")")+"?)")+"?("+ps+"|"+jn+"|"+sh+"|"+In+")")+r("\\?("+Mn+")")+"?"+r("\\#("+Co+")")+"?$",ite="^("+Ue+")\\:"+r(r("\\/\\/("+r("("+Ae+")@")+"?("+Eo+")"+r("\\:("+ko+")")+"?)")+"?("+ps+"|"+jn+"|"+cl+"|"+In+")")+r("\\?("+Mn+")")+"?$",nte="^"+r("\\#("+Co+")")+"?$",ate="^"+r("("+Ae+")@")+"?("+Eo+")"+r("\\:("+ko+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",v,C,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",_e,pe),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",_e,pe),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",_e,pe),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",_e,pe),"g"),NOT_QUERY:new RegExp(e("[^\\%]",_e,pe,"[\\:\\@\\/\\?]",qe),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",_e,pe,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",_e,pe),"g"),UNRESERVED:new RegExp(_e,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",_e,He),"g"),PCT_ENCODED:new RegExp(ke,"g"),IPV4ADDRESS:new RegExp("^("+lr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+hs+")"+r(r("\\%25|\\%(?!"+N+"{2})")+"("+Fn+")")+"?\\]?$")}}var u=o(!1),l=o(!0),c=function(){function _(v,E){var C=[],A=!0,N=!1,Z=void 0;try{for(var ye=v[Symbol.iterator](),ke;!(A=(ke=ye.next()).done)&&(C.push(ke.value),!(E&&C.length===E));A=!0);}catch(Ze){N=!0,Z=Ze}finally{try{!A&&ye.return&&ye.return()}finally{if(N)throw Z}}return C}return function(v,E){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return _(v,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(_){if(Array.isArray(_)){for(var v=0,E=Array(_.length);v<_.length;v++)E[v]=_[v];return E}else return Array.from(_)},d=2147483647,m=36,p=1,g=26,b=38,y=700,w=72,k=128,O="-",P=/^xn--/,I=/[^\0-\x7E]/,z=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=m-p,F=Math.floor,S=String.fromCharCode;function H(_){throw new RangeError(T[_])}function V(_,v){for(var E=[],C=_.length;C--;)E[C]=v(_[C]);return E}function ge(_,v){var E=_.split("@"),C="";E.length>1&&(C=E[0]+"@",_=E[1]),_=_.replace(z,".");var A=_.split("."),N=V(A,v).join(".");return C+N}function x(_){for(var v=[],E=0,C=_.length;E<C;){var A=_.charCodeAt(E++);if(A>=55296&&A<=56319&&E<C){var N=_.charCodeAt(E++);(N&64512)==56320?v.push(((A&1023)<<10)+(N&1023)+65536):(v.push(A),E--)}else v.push(A)}return v}var D=function(v){return String.fromCodePoint.apply(String,f(v))},be=function(v){return v-48<10?v-22:v-65<26?v-65:v-97<26?v-97:m},L=function(v,E){return v+22+75*(v<26)-((E!=0)<<5)},ut=function(v,E,C){var A=0;for(v=C?F(v/y):v>>1,v+=F(v/E);v>$*g>>1;A+=m)v=F(v/$);return F(A+($+1)*v/(v+b))},At=function(v){var E=[],C=v.length,A=0,N=k,Z=w,ye=v.lastIndexOf(O);ye<0&&(ye=0);for(var ke=0;ke<ye;++ke)v.charCodeAt(ke)>=128&&H("not-basic"),E.push(v.charCodeAt(ke));for(var Ze=ye>0?ye+1:0;Ze<C;){for(var pe=A,He=1,et=m;;et+=m){Ze>=C&&H("invalid-input");var qe=be(v.charCodeAt(Ze++));(qe>=m||qe>F((d-A)/He))&&H("overflow"),A+=qe*He;var _e=et<=Z?p:et>=Z+g?g:et-Z;if(qe<_e)break;var Ue=m-_e;He>F(d/Ue)&&H("overflow"),He*=Ue}var Ae=E.length+1;Z=ut(A-pe,Ae,pe==0),F(A/Ae)>d-N&&H("overflow"),N+=F(A/Ae),A%=Ae,E.splice(A++,0,N)}return String.fromCodePoint.apply(String,E)},st=function(v){var E=[];v=x(v);var C=v.length,A=k,N=0,Z=w,ye=!0,ke=!1,Ze=void 0;try{for(var pe=v[Symbol.iterator](),He;!(ye=(He=pe.next()).done);ye=!0){var et=He.value;et<128&&E.push(S(et))}}catch(Ri){ke=!0,Ze=Ri}finally{try{!ye&&pe.return&&pe.return()}finally{if(ke)throw Ze}}var qe=E.length,_e=qe;for(qe&&E.push(O);_e<C;){var Ue=d,Ae=!0,Oi=!1,er=void 0;try{for(var lr=v[Symbol.iterator](),Te;!(Ae=(Te=lr.next()).done);Ae=!0){var tr=Te.value;tr>=A&&tr<Ue&&(Ue=tr)}}catch(Ri){Oi=!0,er=Ri}finally{try{!Ae&&lr.return&&lr.return()}finally{if(Oi)throw er}}var cr=_e+1;Ue-A>F((d-N)/cr)&&H("overflow"),N+=(Ue-A)*cr,A=Ue;var Yr=!0,Ti=!1,ds=void 0;try{for(var wo=v[Symbol.iterator](),ul;!(Yr=(ul=wo.next()).done);Yr=!0){var ll=ul.value;if(ll<A&&++N>d&&H("overflow"),ll==A){for(var Pn=N,$n=m;;$n+=m){var hs=$n<=Z?p:$n>=Z+g?g:$n-Z;if(Pn<hs)break;var Fn=Pn-hs,rh=m-hs;E.push(S(L(hs+Fn%rh,0))),Pn=F(Fn/rh)}E.push(S(L(Pn,0))),Z=ut(N,cr,_e==qe),N=0,++_e}}}catch(Ri){Ti=!0,ds=Ri}finally{try{!Yr&&wo.return&&wo.return()}finally{if(Ti)throw ds}}++N,++A}return E.join("")},zr=function(v){return ge(v,function(E){return P.test(E)?At(E.slice(4).toLowerCase()):E})},eh=function(v){return ge(v,function(E){return I.test(E)?"xn--"+st(E):E})},Ar={version:"2.1.0",ucs2:{decode:x,encode:D},decode:At,encode:st,toASCII:eh,toUnicode:zr},Xe={};function K(_){var v=_.charCodeAt(0),E=void 0;return v<16?E="%0"+v.toString(16).toUpperCase():v<128?E="%"+v.toString(16).toUpperCase():v<2048?E="%"+(v>>6|192).toString(16).toUpperCase()+"%"+(v&63|128).toString(16).toUpperCase():E="%"+(v>>12|224).toString(16).toUpperCase()+"%"+(v>>6&63|128).toString(16).toUpperCase()+"%"+(v&63|128).toString(16).toUpperCase(),E}function Or(_){for(var v="",E=0,C=_.length;E<C;){var A=parseInt(_.substr(E+1,2),16);if(A<128)v+=String.fromCharCode(A),E+=3;else if(A>=194&&A<224){if(C-E>=6){var N=parseInt(_.substr(E+4,2),16);v+=String.fromCharCode((A&31)<<6|N&63)}else v+=_.substr(E,6);E+=6}else if(A>=224){if(C-E>=9){var Z=parseInt(_.substr(E+4,2),16),ye=parseInt(_.substr(E+7,2),16);v+=String.fromCharCode((A&15)<<12|(Z&63)<<6|ye&63)}else v+=_.substr(E,9);E+=9}else v+=_.substr(E,3),E+=3}return v}function vo(_,v){function E(C){var A=Or(C);return A.match(v.UNRESERVED)?A:C}return _.scheme&&(_.scheme=String(_.scheme).replace(v.PCT_ENCODED,E).toLowerCase().replace(v.NOT_SCHEME,"")),_.userinfo!==void 0&&(_.userinfo=String(_.userinfo).replace(v.PCT_ENCODED,E).replace(v.NOT_USERINFO,K).replace(v.PCT_ENCODED,i)),_.host!==void 0&&(_.host=String(_.host).replace(v.PCT_ENCODED,E).toLowerCase().replace(v.NOT_HOST,K).replace(v.PCT_ENCODED,i)),_.path!==void 0&&(_.path=String(_.path).replace(v.PCT_ENCODED,E).replace(_.scheme?v.NOT_PATH:v.NOT_PATH_NOSCHEME,K).replace(v.PCT_ENCODED,i)),_.query!==void 0&&(_.query=String(_.query).replace(v.PCT_ENCODED,E).replace(v.NOT_QUERY,K).replace(v.PCT_ENCODED,i)),_.fragment!==void 0&&(_.fragment=String(_.fragment).replace(v.PCT_ENCODED,E).replace(v.NOT_FRAGMENT,K).replace(v.PCT_ENCODED,i)),_}function M(_){return _.replace(/^0*(.*)/,"$1")||"0"}function Se(_,v){var E=_.match(v.IPV4ADDRESS)||[],C=c(E,2),A=C[1];return A?A.split(".").map(M).join("."):_}function j(_,v){var E=_.match(v.IPV6ADDRESS)||[],C=c(E,3),A=C[1],N=C[2];if(A){for(var Z=A.toLowerCase().split("::").reverse(),ye=c(Z,2),ke=ye[0],Ze=ye[1],pe=Ze?Ze.split(":").map(M):[],He=ke.split(":").map(M),et=v.IPV4ADDRESS.test(He[He.length-1]),qe=et?7:8,_e=He.length-qe,Ue=Array(qe),Ae=0;Ae<qe;++Ae)Ue[Ae]=pe[Ae]||He[_e+Ae]||"";et&&(Ue[qe-1]=Se(Ue[qe-1],v));var Oi=Ue.reduce(function(cr,Yr,Ti){if(!Yr||Yr==="0"){var ds=cr[cr.length-1];ds&&ds.index+ds.length===Ti?ds.length++:cr.push({index:Ti,length:1})}return cr},[]),er=Oi.sort(function(cr,Yr){return Yr.length-cr.length})[0],lr=void 0;if(er&&er.length>1){var Te=Ue.slice(0,er.index),tr=Ue.slice(er.index+er.length);lr=Te.join(":")+"::"+tr.join(":")}else lr=Ue.join(":");return N&&(lr+="%"+N),lr}else return _}var te=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Le="".match(/(){0}/)[1]===void 0;function $e(_){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E={},C=v.iri!==!1?l:u;v.reference==="suffix"&&(_=(v.scheme?v.scheme+":":"")+"//"+_);var A=_.match(te);if(A){Le?(E.scheme=A[1],E.userinfo=A[3],E.host=A[4],E.port=parseInt(A[5],10),E.path=A[6]||"",E.query=A[7],E.fragment=A[8],isNaN(E.port)&&(E.port=A[5])):(E.scheme=A[1]||void 0,E.userinfo=_.indexOf("@")!==-1?A[3]:void 0,E.host=_.indexOf("//")!==-1?A[4]:void 0,E.port=parseInt(A[5],10),E.path=A[6]||"",E.query=_.indexOf("?")!==-1?A[7]:void 0,E.fragment=_.indexOf("#")!==-1?A[8]:void 0,isNaN(E.port)&&(E.port=_.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?A[4]:void 0)),E.host&&(E.host=j(Se(E.host,C),C)),E.scheme===void 0&&E.userinfo===void 0&&E.host===void 0&&E.port===void 0&&!E.path&&E.query===void 0?E.reference="same-document":E.scheme===void 0?E.reference="relative":E.fragment===void 0?E.reference="absolute":E.reference="uri",v.reference&&v.reference!=="suffix"&&v.reference!==E.reference&&(E.error=E.error||"URI is not a "+v.reference+" reference.");var N=Xe[(v.scheme||E.scheme||"").toLowerCase()];if(!v.unicodeSupport&&(!N||!N.unicodeSupport)){if(E.host&&(v.domainHost||N&&N.domainHost))try{E.host=Ar.toASCII(E.host.replace(C.PCT_ENCODED,Or).toLowerCase())}catch(Z){E.error=E.error||"Host's domain name can not be converted to ASCII via punycode: "+Z}vo(E,u)}else vo(E,C);N&&N.parse&&N.parse(E,v)}else E.error=E.error||"URI can not be parsed.";return E}function Ye(_,v){var E=v.iri!==!1?l:u,C=[];return _.userinfo!==void 0&&(C.push(_.userinfo),C.push("@")),_.host!==void 0&&C.push(j(Se(String(_.host),E),E).replace(E.IPV6ADDRESS,function(A,N,Z){return"["+N+(Z?"%25"+Z:"")+"]"})),(typeof _.port=="number"||typeof _.port=="string")&&(C.push(":"),C.push(String(_.port))),C.length?C.join(""):void 0}var On=/^\.\.?\//,Ai=/^\/\.(\/|$)/,J0=/^\/\.\.(\/|$)/,Lj=/^\/?(?:.|\n)*?(?=\/|$)/;function Tn(_){for(var v=[];_.length;)if(_.match(On))_=_.replace(On,"");else if(_.match(Ai))_=_.replace(Ai,"/");else if(_.match(J0))_=_.replace(J0,"/"),v.pop();else if(_==="."||_==="..")_="";else{var E=_.match(Lj);if(E){var C=E[0];_=_.slice(C.length),v.push(C)}else throw new Error("Unexpected dot segment condition")}return v.join("")}function Wr(_){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=v.iri?l:u,C=[],A=Xe[(v.scheme||_.scheme||"").toLowerCase()];if(A&&A.serialize&&A.serialize(_,v),_.host&&!E.IPV6ADDRESS.test(_.host)){if(v.domainHost||A&&A.domainHost)try{_.host=v.iri?Ar.toUnicode(_.host):Ar.toASCII(_.host.replace(E.PCT_ENCODED,Or).toLowerCase())}catch(ye){_.error=_.error||"Host's domain name can not be converted to "+(v.iri?"Unicode":"ASCII")+" via punycode: "+ye}}vo(_,E),v.reference!=="suffix"&&_.scheme&&(C.push(_.scheme),C.push(":"));var N=Ye(_,v);if(N!==void 0&&(v.reference!=="suffix"&&C.push("//"),C.push(N),_.path&&_.path.charAt(0)!=="/"&&C.push("/")),_.path!==void 0){var Z=_.path;!v.absolutePath&&(!A||!A.absolutePath)&&(Z=Tn(Z)),N===void 0&&(Z=Z.replace(/^\/\//,"/%2F")),C.push(Z)}return _.query!==void 0&&(C.push("?"),C.push(_.query)),_.fragment!==void 0&&(C.push("#"),C.push(_.fragment)),C.join("")}function Q0(_,v){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},C=arguments[3],A={};return C||(_=$e(Wr(_,E),E),v=$e(Wr(v,E),E)),E=E||{},!E.tolerant&&v.scheme?(A.scheme=v.scheme,A.userinfo=v.userinfo,A.host=v.host,A.port=v.port,A.path=Tn(v.path||""),A.query=v.query):(v.userinfo!==void 0||v.host!==void 0||v.port!==void 0?(A.userinfo=v.userinfo,A.host=v.host,A.port=v.port,A.path=Tn(v.path||""),A.query=v.query):(v.path?(v.path.charAt(0)==="/"?A.path=Tn(v.path):((_.userinfo!==void 0||_.host!==void 0||_.port!==void 0)&&!_.path?A.path="/"+v.path:_.path?A.path=_.path.slice(0,_.path.lastIndexOf("/")+1)+v.path:A.path=v.path,A.path=Tn(A.path)),A.query=v.query):(A.path=_.path,v.query!==void 0?A.query=v.query:A.query=_.query),A.userinfo=_.userinfo,A.host=_.host,A.port=_.port),A.scheme=_.scheme),A.fragment=v.fragment,A}function Hj(_,v,E){var C=a({scheme:"null"},E);return Wr(Q0($e(_,C),$e(v,C),C,!0),C)}function Uj(_,v){return typeof _=="string"?_=Wr($e(_,v),v):s(_)==="object"&&(_=$e(Wr(_,v),v)),_}function Gj(_,v,E){return typeof _=="string"?_=Wr($e(_,E),E):s(_)==="object"&&(_=Wr(_,E)),typeof v=="string"?v=Wr($e(v,E),E):s(v)==="object"&&(v=Wr(v,E)),_===v}function Vj(_,v){return _&&_.toString().replace(!v||!v.iri?u.ESCAPE:l.ESCAPE,K)}function fs(_,v){return _&&_.toString().replace(!v||!v.iri?u.PCT_ENCODED:l.PCT_ENCODED,Or)}var bo={scheme:"http",domainHost:!0,parse:function(v,E){return v.host||(v.error=v.error||"HTTP URIs must have a host."),v},serialize:function(v,E){var C=String(v.scheme).toLowerCase()==="https";return(v.port===(C?443:80)||v.port==="")&&(v.port=void 0),v.path||(v.path="/"),v}},X0={scheme:"https",domainHost:bo.domainHost,parse:bo.parse,serialize:bo.serialize};function Z0(_){return typeof _.secure=="boolean"?_.secure:String(_.scheme).toLowerCase()==="wss"}var _o={scheme:"ws",domainHost:!0,parse:function(v,E){var C=v;return C.secure=Z0(C),C.resourceName=(C.path||"/")+(C.query?"?"+C.query:""),C.path=void 0,C.query=void 0,C},serialize:function(v,E){if((v.port===(Z0(v)?443:80)||v.port==="")&&(v.port=void 0),typeof v.secure=="boolean"&&(v.scheme=v.secure?"wss":"ws",v.secure=void 0),v.resourceName){var C=v.resourceName.split("?"),A=c(C,2),N=A[0],Z=A[1];v.path=N&&N!=="/"?N:void 0,v.query=Z,v.resourceName=void 0}return v.fragment=void 0,v}},ev={scheme:"wss",domainHost:_o.domainHost,parse:_o.parse,serialize:_o.serialize},zj={},Wj=!0,tv="[A-Za-z0-9\\-\\.\\_\\~"+(Wj?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Kr="[0-9A-Fa-f]",Kj=r(r("%[EFef]"+Kr+"%"+Kr+Kr+"%"+Kr+Kr)+"|"+r("%[89A-Fa-f]"+Kr+"%"+Kr+Kr)+"|"+r("%"+Kr+Kr)),Yj="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Jj="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Qj=e(Jj,'[\\"\\\\]'),Xj="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Zj=new RegExp(tv,"g"),Rn=new RegExp(Kj,"g"),e2=new RegExp(e("[^]",Yj,"[\\.]",'[\\"]',Qj),"g"),rv=new RegExp(e("[^]",tv,Xj),"g"),t2=rv;function th(_){var v=Or(_);return v.match(Zj)?v:_}var sv={scheme:"mailto",parse:function(v,E){var C=v,A=C.to=C.path?C.path.split(","):[];if(C.path=void 0,C.query){for(var N=!1,Z={},ye=C.query.split("&"),ke=0,Ze=ye.length;ke<Ze;++ke){var pe=ye[ke].split("=");switch(pe[0]){case"to":for(var He=pe[1].split(","),et=0,qe=He.length;et<qe;++et)A.push(He[et]);break;case"subject":C.subject=fs(pe[1],E);break;case"body":C.body=fs(pe[1],E);break;default:N=!0,Z[fs(pe[0],E)]=fs(pe[1],E);break}}N&&(C.headers=Z)}C.query=void 0;for(var _e=0,Ue=A.length;_e<Ue;++_e){var Ae=A[_e].split("@");if(Ae[0]=fs(Ae[0]),E.unicodeSupport)Ae[1]=fs(Ae[1],E).toLowerCase();else try{Ae[1]=Ar.toASCII(fs(Ae[1],E).toLowerCase())}catch(Oi){C.error=C.error||"Email address's domain name can not be converted to ASCII via punycode: "+Oi}A[_e]=Ae.join("@")}return C},serialize:function(v,E){var C=v,A=n(v.to);if(A){for(var N=0,Z=A.length;N<Z;++N){var ye=String(A[N]),ke=ye.lastIndexOf("@"),Ze=ye.slice(0,ke).replace(Rn,th).replace(Rn,i).replace(e2,K),pe=ye.slice(ke+1);try{pe=E.iri?Ar.toUnicode(pe):Ar.toASCII(fs(pe,E).toLowerCase())}catch(_e){C.error=C.error||"Email address's domain name can not be converted to "+(E.iri?"Unicode":"ASCII")+" via punycode: "+_e}A[N]=Ze+"@"+pe}C.path=A.join(",")}var He=v.headers=v.headers||{};v.subject&&(He.subject=v.subject),v.body&&(He.body=v.body);var et=[];for(var qe in He)He[qe]!==zj[qe]&&et.push(qe.replace(Rn,th).replace(Rn,i).replace(rv,K)+"="+He[qe].replace(Rn,th).replace(Rn,i).replace(t2,K));return et.length&&(C.query=et.join("&")),C}},r2=/^([^\:]+)\:(.*)/,iv={scheme:"urn",parse:function(v,E){var C=v.path&&v.path.match(r2),A=v;if(C){var N=E.scheme||A.scheme||"urn",Z=C[1].toLowerCase(),ye=C[2],ke=N+":"+(E.nid||Z),Ze=Xe[ke];A.nid=Z,A.nss=ye,A.path=void 0,Ze&&(A=Ze.parse(A,E))}else A.error=A.error||"URN can not be parsed.";return A},serialize:function(v,E){var C=E.scheme||v.scheme||"urn",A=v.nid,N=C+":"+(E.nid||A),Z=Xe[N];Z&&(v=Z.serialize(v,E));var ye=v,ke=v.nss;return ye.path=(A||E.nid)+":"+ke,ye}},s2=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,nv={scheme:"urn:uuid",parse:function(v,E){var C=v;return C.uuid=C.nss,C.nss=void 0,!E.tolerant&&(!C.uuid||!C.uuid.match(s2))&&(C.error=C.error||"UUID is not valid."),C},serialize:function(v,E){var C=v;return C.nss=(v.uuid||"").toLowerCase(),C}};Xe[bo.scheme]=bo,Xe[X0.scheme]=X0,Xe[_o.scheme]=_o,Xe[ev.scheme]=ev,Xe[sv.scheme]=sv,Xe[iv.scheme]=iv,Xe[nv.scheme]=nv,t.SCHEMES=Xe,t.pctEncChar=K,t.pctDecChars=Or,t.parse=$e,t.removeDotSegments=Tn,t.serialize=Wr,t.resolveComponents=Q0,t.resolve=Hj,t.normalize=Uj,t.equal=Gj,t.escapeComponent=Vj,t.unescapeComponent=fs,Object.defineProperty(t,"__esModule",{value:!0})})});var ju=h(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.getSchemaRefs=Jt.resolveUrl=Jt.normalizeId=Jt._getFullPath=Jt.getFullPath=Jt.inlineRef=void 0;var OV=we(),TV=Zg(),RV=oT(),Df=ey(),PV=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function $V(t,e=!0){return typeof t=="boolean"?!0:e===!0?!ty(t):e?lT(t)<=e:!1}Jt.inlineRef=$V;var FV=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ty(t){for(let e in t){if(FV.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(ty)||typeof r=="object"&&ty(r))return!0}return!1}function lT(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!PV.has(r)&&(typeof t[r]=="object"&&(0,OV.eachItem)(t[r],s=>e+=lT(s)),e===1/0))return 1/0}return e}function cT(t="",e){e!==!1&&(t=ja(t));let r=Df.parse(t);return fT(r)}Jt.getFullPath=cT;function fT(t){return Df.serialize(t).split("#")[0]+"#"}Jt._getFullPath=fT;var jV=/#\/?$/;function ja(t){return t?t.replace(jV,""):""}Jt.normalizeId=ja;function IV(t,e){return e=ja(e),Df.resolve(t,e)}Jt.resolveUrl=IV;var MV=/^[a-z_][-a-z0-9._]*$/i;function NV(t,e){if(typeof t=="boolean")return{};let{schemaId:r}=this.opts,s=ja(t[r]||e),i={"":s},n=cT(s,!1),a={},o=new Set;return RV(t,{allKeys:!0},(c,f,d,m)=>{if(m===void 0)return;let p=n+f,g=i[m];typeof c[r]=="string"&&(g=b.call(this,c[r])),y.call(this,c.$anchor),y.call(this,c.$dynamicAnchor),i[f]=g;function b(w){if(w=ja(g?Df.resolve(g,w):w),o.has(w))throw l(w);o.add(w);let k=this.refs[w];return typeof k=="string"&&(k=this.refs[k]),typeof k=="object"?u(c,k.schema,w):w!==ja(p)&&(w[0]==="#"?(u(c,a[w],w),a[w]=c):this.refs[w]=p),w}function y(w){if(typeof w=="string"){if(!MV.test(w))throw new Error(`invalid anchor "${w}"`);b.call(this,`#${w}`)}}}),a;function u(c,f,d){if(f!==void 0&&!TV(c,f))throw l(d)}function l(c){return new Error(`reference "${c}" resolves to more than one schema`)}}Jt.getSchemaRefs=NV});var Nu=h(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.getData=mi.KeywordCxt=mi.validateFunctionCode=void 0;var dT=GO(),hT=Fu(),ry=zg(),Cf=Fu(),qV=QO(),Iu=rT(),sy=iT(),B=ae(),Y=Os(),BV=ju(),Ts=we(),Mu=Pu();function LV(t){if(yT(t)&&(vT(t),gT(t))){GV(t);return}pT(t,()=>(0,dT.topBoolOrEmptySchema)(t))}mi.validateFunctionCode=LV;function pT({gen:t,validateName:e,schema:r,schemaEnv:s,opts:i},n){i.code.es5?t.func(e,(0,B._)`${Y.default.data}, ${Y.default.valCxt}`,s.$async,()=>{t.code((0,B._)`"use strict"; ${mT(r,i)}`),UV(t,i),t.code(n)}):t.func(e,(0,B._)`${Y.default.data}, ${HV(i)}`,s.$async,()=>t.code(mT(r,i)).code(n))}function HV(t){return(0,B._)`{${Y.default.instancePath}="", ${Y.default.parentData}, ${Y.default.parentDataProperty}, ${Y.default.rootData}=${Y.default.data}${t.dynamicRef?(0,B._)`, ${Y.default.dynamicAnchors}={}`:B.nil}}={}`}function UV(t,e){t.if(Y.default.valCxt,()=>{t.var(Y.default.instancePath,(0,B._)`${Y.default.valCxt}.${Y.default.instancePath}`),t.var(Y.default.parentData,(0,B._)`${Y.default.valCxt}.${Y.default.parentData}`),t.var(Y.default.parentDataProperty,(0,B._)`${Y.default.valCxt}.${Y.default.parentDataProperty}`),t.var(Y.default.rootData,(0,B._)`${Y.default.valCxt}.${Y.default.rootData}`),e.dynamicRef&&t.var(Y.default.dynamicAnchors,(0,B._)`${Y.default.valCxt}.${Y.default.dynamicAnchors}`)},()=>{t.var(Y.default.instancePath,(0,B._)`""`),t.var(Y.default.parentData,(0,B._)`undefined`),t.var(Y.default.parentDataProperty,(0,B._)`undefined`),t.var(Y.default.rootData,Y.default.data),e.dynamicRef&&t.var(Y.default.dynamicAnchors,(0,B._)`{}`)})}function GV(t){let{schema:e,opts:r,gen:s}=t;pT(t,()=>{r.$comment&&e.$comment&&_T(t),YV(t),s.let(Y.default.vErrors,null),s.let(Y.default.errors,0),r.unevaluated&&VV(t),bT(t),XV(t)})}function VV(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,B._)`${r}.evaluated`),e.if((0,B._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,B._)`${t.evaluated}.props`,(0,B._)`undefined`)),e.if((0,B._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,B._)`${t.evaluated}.items`,(0,B._)`undefined`))}function mT(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,B._)`/*# sourceURL=${r} */`:B.nil}function zV(t,e){if(yT(t)&&(vT(t),gT(t))){WV(t,e);return}(0,dT.boolOrEmptySchema)(t,e)}function gT({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function yT(t){return typeof t.schema!="boolean"}function WV(t,e){let{schema:r,gen:s,opts:i}=t;i.$comment&&r.$comment&&_T(t),JV(t),QV(t);let n=s.const("_errs",Y.default.errors);bT(t,n),s.var(e,(0,B._)`${n} === ${Y.default.errors}`)}function vT(t){(0,Ts.checkUnknownRules)(t),KV(t)}function bT(t,e){if(t.opts.jtd)return wT(t,[],!1,e);let r=(0,hT.getSchemaTypes)(t.schema),s=(0,hT.coerceAndCheckDataType)(t,r);wT(t,r,!s,e)}function KV(t){let{schema:e,errSchemaPath:r,opts:s,self:i}=t;e.$ref&&s.ignoreKeywordsWithRef&&(0,Ts.schemaHasRulesButRef)(e,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function YV(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ts.checkStrictMode)(t,"default is ignored in the schema root")}function JV(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,BV.resolveUrl)(t.baseId,e))}function QV(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function _T({gen:t,schemaEnv:e,schema:r,errSchemaPath:s,opts:i}){let n=r.$comment;if(i.$comment===!0)t.code((0,B._)`${Y.default.self}.logger.log(${n})`);else if(typeof i.$comment=="function"){let a=(0,B.str)`${s}/$comment`,o=t.scopeValue("root",{ref:e.root});t.code((0,B._)`${Y.default.self}.opts.$comment(${n}, ${a}, ${o}.schema)`)}}function XV(t){let{gen:e,schemaEnv:r,validateName:s,ValidationError:i,opts:n}=t;r.$async?e.if((0,B._)`${Y.default.errors} === 0`,()=>e.return(Y.default.data),()=>e.throw((0,B._)`new ${i}(${Y.default.vErrors})`)):(e.assign((0,B._)`${s}.errors`,Y.default.vErrors),n.unevaluated&&ZV(t),e.return((0,B._)`${Y.default.errors} === 0`))}function ZV({gen:t,evaluated:e,props:r,items:s}){r instanceof B.Name&&t.assign((0,B._)`${e}.props`,r),s instanceof B.Name&&t.assign((0,B._)`${e}.items`,s)}function wT(t,e,r,s){let{gen:i,schema:n,data:a,allErrors:o,opts:u,self:l}=t,{RULES:c}=l;if(n.$ref&&(u.ignoreKeywordsWithRef||!(0,Ts.schemaHasRulesButRef)(n,c))){i.block(()=>DT(t,"$ref",c.all.$ref.definition));return}u.jtd||ez(t,e),i.block(()=>{for(let d of c.rules)f(d);f(c.post)});function f(d){!(0,ry.shouldUseGroup)(n,d)||(d.type?(i.if((0,Cf.checkDataType)(d.type,a,u.strictNumbers)),ET(t,d),e.length===1&&e[0]===d.type&&r&&(i.else(),(0,Cf.reportTypeError)(t)),i.endIf()):ET(t,d),o||i.if((0,B._)`${Y.default.errors} === ${s||0}`))}}function ET(t,e){let{gen:r,schema:s,opts:{useDefaults:i}}=t;i&&(0,qV.assignDefaults)(t,e.type),r.block(()=>{for(let n of e.rules)(0,ry.shouldUseRule)(s,n)&&DT(t,n.keyword,n.definition,e.type)})}function ez(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(tz(t,e),t.opts.allowUnionTypes||rz(t,e),sz(t,t.dataTypes))}function tz(t,e){if(!!e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{kT(t.dataTypes,r)||iy(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),t.dataTypes=t.dataTypes.filter(r=>kT(e,r))}}function rz(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&iy(t,"use allowUnionTypes to allow union type keyword")}function sz(t,e){let r=t.self.RULES.all;for(let s in r){let i=r[s];if(typeof i=="object"&&(0,ry.shouldUseRule)(t.schema,i)){let{type:n}=i.definition;n.length&&!n.some(a=>iz(e,a))&&iy(t,`missing type "${n.join(",")}" for keyword "${s}"`)}}}function iz(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function kT(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function iy(t,e){e+=` at "${t.schemaEnv.baseId+t.errSchemaPath}" (strictTypes)`,(0,Ts.checkStrictMode)(t,e,t.opts.strictTypes)}var ny=class{constructor(e,r,s){if((0,Iu.validateKeywordUsage)(e,r,s),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=s,this.data=e.data,this.schema=e.schema[s],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ts.schemaRefOrVal)(e,this.schema,s,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",CT(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Iu.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${s} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",Y.default.errors))}result(e,r,s){this.failResult((0,B.not)(e),r,s)}failResult(e,r,s){this.gen.if(e),s?s():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,B.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,B._)`${r} !== undefined && (${(0,B.or)(this.invalid$data(),e)})`)}error(e,r,s){if(r){this.setParams(r),this._error(e,s),this.setParams({});return}this._error(e,s)}_error(e,r){(e?Mu.reportExtraError:Mu.reportError)(this,this.def.error,r)}$dataError(){(0,Mu.reportError)(this,this.def.$dataError||Mu.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Mu.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,s=B.nil){this.gen.block(()=>{this.check$data(e,s),r()})}check$data(e=B.nil,r=B.nil){if(!this.$data)return;let{gen:s,schemaCode:i,schemaType:n,def:a}=this;s.if((0,B.or)((0,B._)`${i} === undefined`,r)),e!==B.nil&&s.assign(e,!0),(n.length||a.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),e!==B.nil&&s.assign(e,!1)),s.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:s,def:i,it:n}=this;return(0,B.or)(a(),o());function a(){if(s.length){if(!(r instanceof B.Name))throw new Error("ajv implementation error");let u=Array.isArray(s)?s:[s];return(0,B._)`${(0,Cf.checkDataTypes)(u,r,n.opts.strictNumbers,Cf.DataType.Wrong)}`}return B.nil}function o(){if(i.validateSchema){let u=e.scopeValue("validate$data",{ref:i.validateSchema});return(0,B._)`!${u}(${r})`}return B.nil}}subschema(e,r){let s=(0,sy.getSubschema)(this.it,e);(0,sy.extendSubschemaData)(s,this.it,e),(0,sy.extendSubschemaMode)(s,e);let i={...this.it,...s,items:void 0,props:void 0};return zV(i,r),i}mergeEvaluated(e,r){let{it:s,gen:i}=this;!s.opts.unevaluated||(s.props!==!0&&e.props!==void 0&&(s.props=Ts.mergeEvaluated.props(i,e.props,s.props,r)),s.items!==!0&&e.items!==void 0&&(s.items=Ts.mergeEvaluated.items(i,e.items,s.items,r)))}mergeValidEvaluated(e,r){let{it:s,gen:i}=this;if(s.opts.unevaluated&&(s.props!==!0||s.items!==!0))return i.if(r,()=>this.mergeEvaluated(e,B.Name)),!0}};mi.KeywordCxt=ny;function DT(t,e,r,s){let i=new ny(t,r,e);"code"in r?r.code(i,s):i.$data&&r.validate?(0,Iu.funcKeywordCode)(i,r):"macro"in r?(0,Iu.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Iu.funcKeywordCode)(i,r)}var nz=/^\/(?:[^~]|~0|~1)*$/,az=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function CT(t,{dataLevel:e,dataNames:r,dataPathArr:s}){let i,n;if(t==="")return Y.default.rootData;if(t[0]==="/"){if(!nz.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,n=Y.default.rootData}else{let l=az.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);let c=+l[1];if(i=l[2],i==="#"){if(c>=e)throw new Error(u("property/index",c));return s[e-c]}if(c>e)throw new Error(u("data",c));if(n=r[e-c],!i)return n}let a=n,o=i.split("/");for(let l of o)l&&(n=(0,B._)`${n}${(0,B.getProperty)((0,Ts.unescapeJsonPointer)(l))}`,a=(0,B._)`${a} && ${n}`);return a;function u(l,c){return`Cannot access ${l} ${c} levels up, current level is ${e}`}}mi.getData=CT});var oy=h(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});var ST=class extends Error{constructor(e){super("validation failed");this.errors=e,this.ajv=this.validation=!0}};ay.default=ST});var cy=h(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var uy=ju(),xT=class extends Error{constructor(e,r,s){super(s||`can't resolve reference ${r} from id ${e}`);this.missingRef=(0,uy.resolveUrl)(e,r),this.missingSchema=(0,uy.normalizeId)((0,uy.getFullPath)(this.missingRef))}};ly.default=xT});var hy=h(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.resolveSchema=wr.getCompilingSchema=wr.resolveRef=wr.compileSchema=wr.SchemaEnv=void 0;var Lr=ae(),oz=oy(),hn=Os(),Hr=ju(),AT=we(),uz=Nu(),lz=ey(),qu=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let s;typeof e.schema=="object"&&(s=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,Hr.normalizeId)(s==null?void 0:s[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=s==null?void 0:s.$async,this.refs={}}};wr.SchemaEnv=qu;function fy(t){let e=OT.call(this,t);if(e)return e;let r=(0,Hr.getFullPath)(t.root.baseId),{es5:s,lines:i}=this.opts.code,{ownProperties:n}=this.opts,a=new Lr.CodeGen(this.scope,{es5:s,lines:i,ownProperties:n}),o;t.$async&&(o=a.scopeValue("Error",{ref:oz.default,code:(0,Lr._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");t.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:hn.default.data,parentData:hn.default.parentData,parentDataProperty:hn.default.parentDataProperty,dataNames:[hn.default.data],dataPathArr:[Lr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Lr.stringify)(t.schema)}:{ref:t.schema}),validateName:u,ValidationError:o,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:Lr.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Lr._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(t),(0,uz.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();c=`${a.scopeRefs(hn.default.scope)}return ${f}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let m=new Function(`${hn.default.self}`,`${hn.default.scope}`,c)(this,this.scope.get());if(this.scope.value(u,{ref:m}),m.errors=null,m.schema=t.schema,m.schemaEnv=t,t.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:p,items:g}=l;m.evaluated={props:p instanceof Lr.Name?void 0:p,items:g instanceof Lr.Name?void 0:g,dynamicProps:p instanceof Lr.Name,dynamicItems:g instanceof Lr.Name},m.source&&(m.source.evaluated=(0,Lr.stringify)(m.evaluated))}return t.validate=m,t}catch(f){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),f}finally{this._compilations.delete(t)}}wr.compileSchema=fy;function cz(t,e,r){var s;r=(0,Hr.resolveUrl)(e,r);let i=t.refs[r];if(i)return i;let n=hz.call(this,t,r);if(n===void 0){let a=(s=t.localRefs)===null||s===void 0?void 0:s[r],{schemaId:o}=this.opts;a&&(n=new qu({schema:a,schemaId:o,root:t,baseId:e}))}if(n!==void 0)return t.refs[r]=fz.call(this,n)}wr.resolveRef=cz;function fz(t){return(0,Hr.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:fy.call(this,t)}function OT(t){for(let e of this._compilations)if(dz(e,t))return e}wr.getCompilingSchema=OT;function dz(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function hz(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||Sf.call(this,t,e)}function Sf(t,e){let r=lz.parse(e),s=(0,Hr._getFullPath)(r),i=(0,Hr.getFullPath)(t.baseId);if(Object.keys(t.schema).length>0&&s===i)return dy.call(this,r,t);let n=(0,Hr.normalizeId)(s),a=this.refs[n]||this.schemas[n];if(typeof a=="string"){let o=Sf.call(this,t,a);return typeof(o==null?void 0:o.schema)!="object"?void 0:dy.call(this,r,o)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||fy.call(this,a),n===(0,Hr.normalizeId)(e)){let{schema:o}=a,{schemaId:u}=this.opts,l=o[u];return l&&(i=(0,Hr.resolveUrl)(i,l)),new qu({schema:o,schemaId:u,root:t,baseId:i})}return dy.call(this,r,a)}}wr.resolveSchema=Sf;var pz=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function dy(t,{baseId:e,schema:r,root:s}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let o of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,AT.unescapeFragment)(o)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!pz.has(o)&&l&&(e=(0,Hr.resolveUrl)(e,l))}let n;if(typeof r!="boolean"&&r.$ref&&!(0,AT.schemaHasRulesButRef)(r,this.RULES)){let o=(0,Hr.resolveUrl)(e,r.$ref);n=Sf.call(this,s,o)}let{schemaId:a}=this.opts;if(n=n||new qu({schema:r,schemaId:a,root:s,baseId:e}),n.schema!==n.root.schema)return n}});var TT=h((Rce,mz)=>{mz.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var NT=h(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.CodeGen=Ct.Name=Ct.nil=Ct.stringify=Ct.str=Ct._=Ct.KeywordCxt=void 0;var gz=Nu();Object.defineProperty(Ct,"KeywordCxt",{enumerable:!0,get:function(){return gz.KeywordCxt}});var Ia=ae();Object.defineProperty(Ct,"_",{enumerable:!0,get:function(){return Ia._}});Object.defineProperty(Ct,"str",{enumerable:!0,get:function(){return Ia.str}});Object.defineProperty(Ct,"stringify",{enumerable:!0,get:function(){return Ia.stringify}});Object.defineProperty(Ct,"nil",{enumerable:!0,get:function(){return Ia.nil}});Object.defineProperty(Ct,"Name",{enumerable:!0,get:function(){return Ia.Name}});Object.defineProperty(Ct,"CodeGen",{enumerable:!0,get:function(){return Ia.CodeGen}});var yz=oy(),RT=cy(),vz=Vg(),Bu=hy(),bz=ae(),Lu=ju(),xf=Fu(),py=we(),PT=TT(),$T=(t,e)=>new RegExp(t,e);$T.code="new RegExp";var _z=["removeAdditional","useDefaults","coerceTypes"],wz=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Ez={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},kz={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},FT=200;function Dz(t){var e,r,s,i,n,a,o,u,l,c,f,d,m,p,g,b,y,w,k,O,P,I,z,T;let $=t.strict,F=(e=t.code)===null||e===void 0?void 0:e.optimize,S=F===!0||F===void 0?1:F||0,H=(s=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&s!==void 0?s:$T;return{strictSchema:(n=(i=t.strictSchema)!==null&&i!==void 0?i:$)!==null&&n!==void 0?n:!0,strictNumbers:(o=(a=t.strictNumbers)!==null&&a!==void 0?a:$)!==null&&o!==void 0?o:!0,strictTypes:(l=(u=t.strictTypes)!==null&&u!==void 0?u:$)!==null&&l!==void 0?l:"log",strictTuples:(f=(c=t.strictTuples)!==null&&c!==void 0?c:$)!==null&&f!==void 0?f:"log",strictRequired:(m=(d=t.strictRequired)!==null&&d!==void 0?d:$)!==null&&m!==void 0?m:!1,code:t.code?{...t.code,optimize:S,regExp:H}:{optimize:S,regExp:H},loopRequired:(p=t.loopRequired)!==null&&p!==void 0?p:FT,loopEnum:(g=t.loopEnum)!==null&&g!==void 0?g:FT,meta:(b=t.meta)!==null&&b!==void 0?b:!0,messages:(y=t.messages)!==null&&y!==void 0?y:!0,inlineRefs:(w=t.inlineRefs)!==null&&w!==void 0?w:!0,schemaId:(k=t.schemaId)!==null&&k!==void 0?k:"$id",addUsedSchema:(O=t.addUsedSchema)!==null&&O!==void 0?O:!0,validateSchema:(P=t.validateSchema)!==null&&P!==void 0?P:!0,validateFormats:(I=t.validateFormats)!==null&&I!==void 0?I:!0,unicodeRegExp:(z=t.unicodeRegExp)!==null&&z!==void 0?z:!0,int32range:(T=t.int32range)!==null&&T!==void 0?T:!0}}var Af=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...Dz(e)};let{es5:r,lines:s}=this.opts.code;this.scope=new bz.ValueScope({scope:{},prefixes:wz,es5:r,lines:s}),this.logger=Tz(e.logger);let i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,vz.getRules)(),jT.call(this,Ez,e,"NOT SUPPORTED"),jT.call(this,kz,e,"DEPRECATED","warn"),this._metaOpts=Az.call(this),e.formats&&Sz.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&xz.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),Cz.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:s}=this.opts,i=PT;s==="id"&&(i={...PT},i.id=i.$id,delete i.$id),r&&e&&this.addMetaSchema(i,i[s],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let s;if(typeof e=="string"){if(s=this.getSchema(e),!s)throw new Error(`no schema with key or ref "${e}"`)}else s=this.compile(e);let i=s(r);return"$async"in s||(this.errors=s.errors),i}compile(e,r){let s=this._addSchema(e,r);return s.validate||this._compileSchemaEnv(s)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:s}=this.opts;return i.call(this,e,r);async function i(c,f){await n.call(this,c.$schema);let d=this._addSchema(c,f);return d.validate||a.call(this,d)}async function n(c){c&&!this.getSchema(c)&&await i.call(this,{$ref:c},!0)}async function a(c){try{return this._compileSchemaEnv(c)}catch(f){if(!(f instanceof RT.default))throw f;return o.call(this,f),await u.call(this,f.missingSchema),a.call(this,c)}}function o({missingSchema:c,missingRef:f}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${f} cannot be resolved`)}async function u(c){let f=await l.call(this,c);this.refs[c]||await n.call(this,f.$schema),this.refs[c]||this.addSchema(f,c,r)}async function l(c){let f=this._loading[c];if(f)return f;try{return await(this._loading[c]=s(c))}finally{delete this._loading[c]}}}addSchema(e,r,s,i=this.opts.validateSchema){if(Array.isArray(e)){for(let a of e)this.addSchema(a,void 0,s,i);return this}let n;if(typeof e=="object"){let{schemaId:a}=this.opts;if(n=e[a],n!==void 0&&typeof n!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Lu.normalizeId)(r||n),this._checkUnique(r),this.schemas[r]=this._addSchema(e,s,r,i,!0),this}addMetaSchema(e,r,s=this.opts.validateSchema){return this.addSchema(e,r,!0,s),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let s;if(s=e.$schema,s!==void 0&&typeof s!="string")throw new Error("$schema must be a string");if(s=s||this.opts.defaultMeta||this.defaultMeta(),!s)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(s,e);if(!i&&r){let n="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(n);else throw new Error(n)}return i}getSchema(e){let r;for(;typeof(r=IT.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:s}=this.opts,i=new Bu.SchemaEnv({schema:{},schemaId:s});if(r=Bu.resolveSchema.call(this,i,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=IT.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let s=e[this.opts.schemaId];return s&&(s=(0,Lu.normalizeId)(s),delete this.schemas[s],delete this.refs[s]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let s;if(typeof e=="string")s=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=s);else if(typeof e=="object"&&r===void 0){if(r=e,s=r.keyword,Array.isArray(s)&&!s.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Pz.call(this,s,r),!r)return(0,py.eachItem)(s,n=>my.call(this,n)),this;Fz.call(this,r);let i={...r,type:(0,xf.getJSONTypes)(r.type),schemaType:(0,xf.getJSONTypes)(r.schemaType)};return(0,py.eachItem)(s,i.type.length===0?n=>my.call(this,n,i):n=>i.type.forEach(a=>my.call(this,n,i,a))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let s of r.rules){let i=s.rules.findIndex(n=>n.keyword===e);i>=0&&s.rules.splice(i,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:s="data"}={}){return!e||e.length===0?"No errors":e.map(i=>`${s}${i.instancePath} ${i.message}`).reduce((i,n)=>i+r+n)}$dataMetaSchema(e,r){let s=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let i of r){let n=i.split("/").slice(1),a=e;for(let o of n)a=a[o];for(let o in s){let u=s[o];if(typeof u!="object")continue;let{$data:l}=u.definition,c=a[o];l&&c&&(a[o]=MT(c))}}return e}_removeAllSchemas(e,r){for(let s in e){let i=e[s];(!r||r.test(s))&&(typeof i=="string"?delete e[s]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[s]))}}_addSchema(e,r,s,i=this.opts.validateSchema,n=this.opts.addUsedSchema){let a,{schemaId:o}=this.opts;if(typeof e=="object")a=e[o];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(u!==void 0)return u;s=(0,Lu.normalizeId)(a||s);let l=Lu.getSchemaRefs.call(this,e,s);return u=new Bu.SchemaEnv({schema:e,schemaId:o,meta:r,baseId:s,localRefs:l}),this._cache.set(u.schema,u),n&&!s.startsWith("#")&&(s&&this._checkUnique(s),this.refs[s]=u),i&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):Bu.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{Bu.compileSchema.call(this,e)}finally{this.opts=r}}};Ct.default=Af;Af.ValidationError=yz.default;Af.MissingRefError=RT.default;function jT(t,e,r,s="error"){for(let i in t){let n=i;n in e&&this.logger[s](`${r}: option ${i}. ${t[n]}`)}}function IT(t){return t=(0,Lu.normalizeId)(t),this.schemas[t]||this.refs[t]}function Cz(){let t=this.opts.schemas;if(!!t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function Sz(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function xz(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function Az(){let t={...this.opts};for(let e of _z)delete t[e];return t}var Oz={log(){},warn(){},error(){}};function Tz(t){if(t===!1)return Oz;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var Rz=/^[a-z_$][a-z0-9_$:-]*$/i;function Pz(t,e){let{RULES:r}=this;if((0,py.eachItem)(t,s=>{if(r.keywords[s])throw new Error(`Keyword ${s} is already defined`);if(!Rz.test(s))throw new Error(`Keyword ${s} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function my(t,e,r){var s;let i=e==null?void 0:e.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:n}=this,a=i?n.post:n.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},n.rules.push(a)),n.keywords[t]=!0,!e)return;let o={keyword:t,definition:{...e,type:(0,xf.getJSONTypes)(e.type),schemaType:(0,xf.getJSONTypes)(e.schemaType)}};e.before?$z.call(this,a,o,e.before):a.rules.push(o),n.all[t]=o,(s=e.implements)===null||s===void 0||s.forEach(u=>this.addKeyword(u))}function $z(t,e,r){let s=t.rules.findIndex(i=>i.keyword===r);s>=0?t.rules.splice(s,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function Fz(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=MT(e)),t.validateSchema=this.compile(e,!0))}var jz={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function MT(t){return{anyOf:[t,jz]}}});var qT=h(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var Iz={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};gy.default=Iz});var UT=h(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.callRef=pn.getValidate=void 0;var Mz=cy(),BT=_r(),Qt=ae(),Ma=Os(),LT=hy(),Of=we(),Nz={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:s}=t,{baseId:i,schemaEnv:n,validateName:a,opts:o,self:u}=s,{root:l}=n;if((r==="#"||r==="#/")&&i===l.baseId)return f();let c=LT.resolveRef.call(u,l,i,r);if(c===void 0)throw new Mz.default(i,r);if(c instanceof LT.SchemaEnv)return d(c);return m(c);function f(){if(n===l)return Tf(t,a,n,n.$async);let p=e.scopeValue("root",{ref:l});return Tf(t,(0,Qt._)`${p}.validate`,l,l.$async)}function d(p){let g=HT(t,p);Tf(t,g,p,p.$async)}function m(p){let g=e.scopeValue("schema",o.code.source===!0?{ref:p,code:(0,Qt.stringify)(p)}:{ref:p}),b=e.name("valid"),y=t.subschema({schema:p,dataTypes:[],schemaPath:Qt.nil,topSchemaRef:g,errSchemaPath:r},b);t.mergeEvaluated(y),t.ok(b)}}};function HT(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,Qt._)`${r.scopeValue("wrapper",{ref:e})}.validate`}pn.getValidate=HT;function Tf(t,e,r,s){let{gen:i,it:n}=t,{allErrors:a,schemaEnv:o,opts:u}=n,l=u.passContext?Ma.default.this:Qt.nil;s?c():f();function c(){if(!o.$async)throw new Error("async schema referenced by sync schema");let p=i.let("valid");i.try(()=>{i.code((0,Qt._)`await ${(0,BT.callValidateCode)(t,e,l)}`),m(e),a||i.assign(p,!0)},g=>{i.if((0,Qt._)`!(${g} instanceof ${n.ValidationError})`,()=>i.throw(g)),d(g),a||i.assign(p,!1)}),t.ok(p)}function f(){t.result((0,BT.callValidateCode)(t,e,l),()=>m(e),()=>d(e))}function d(p){let g=(0,Qt._)`${p}.errors`;i.assign(Ma.default.vErrors,(0,Qt._)`${Ma.default.vErrors} === null ? ${g} : ${Ma.default.vErrors}.concat(${g})`),i.assign(Ma.default.errors,(0,Qt._)`${Ma.default.vErrors}.length`)}function m(p){var g;if(!n.opts.unevaluated)return;let b=(g=r==null?void 0:r.validate)===null||g===void 0?void 0:g.evaluated;if(n.props!==!0)if(b&&!b.dynamicProps)b.props!==void 0&&(n.props=Of.mergeEvaluated.props(i,b.props,n.props));else{let y=i.var("props",(0,Qt._)`${p}.evaluated.props`);n.props=Of.mergeEvaluated.props(i,y,n.props,Qt.Name)}if(n.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(n.items=Of.mergeEvaluated.items(i,b.items,n.items));else{let y=i.var("items",(0,Qt._)`${p}.evaluated.items`);n.items=Of.mergeEvaluated.items(i,y,n.items,Qt.Name)}}}pn.callRef=Tf;pn.default=Nz});var GT=h(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var qz=qT(),Bz=UT(),Lz=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",qz.default,Bz.default];yy.default=Lz});var VT=h(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var Rf=ae(),gi=Rf.operators,Pf={maximum:{okStr:"<=",ok:gi.LTE,fail:gi.GT},minimum:{okStr:">=",ok:gi.GTE,fail:gi.LT},exclusiveMaximum:{okStr:"<",ok:gi.LT,fail:gi.GTE},exclusiveMinimum:{okStr:">",ok:gi.GT,fail:gi.LTE}},Hz={message:({keyword:t,schemaCode:e})=>(0,Rf.str)`must be ${Pf[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Rf._)`{comparison: ${Pf[t].okStr}, limit: ${e}}`},Uz={keyword:Object.keys(Pf),type:"number",schemaType:"number",$data:!0,error:Hz,code(t){let{keyword:e,data:r,schemaCode:s}=t;t.fail$data((0,Rf._)`${r} ${Pf[e].fail} ${s} || isNaN(${r})`)}};vy.default=Uz});var zT=h(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var Hu=ae(),Gz={message:({schemaCode:t})=>(0,Hu.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Hu._)`{multipleOf: ${t}}`},Vz={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Gz,code(t){let{gen:e,data:r,schemaCode:s,it:i}=t,n=i.opts.multipleOfPrecision,a=e.let("res"),o=n?(0,Hu._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${n}`:(0,Hu._)`${a} !== parseInt(${a})`;t.fail$data((0,Hu._)`(${s} === 0 || (${a} = ${r}/${s}, ${o}))`)}};by.default=Vz});var KT=h(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});function WT(t){let e=t.length,r=0,s=0,i;for(;s<e;)r++,i=t.charCodeAt(s++),i>=55296&&i<=56319&&s<e&&(i=t.charCodeAt(s),(i&64512)==56320&&s++);return r}_y.default=WT;WT.code='require("ajv/dist/runtime/ucs2length").default'});var YT=h(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var mn=ae(),zz=we(),Wz=KT(),Kz={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,mn.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,mn._)`{limit: ${t}}`},Yz={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Kz,code(t){let{keyword:e,data:r,schemaCode:s,it:i}=t,n=e==="maxLength"?mn.operators.GT:mn.operators.LT,a=i.opts.unicode===!1?(0,mn._)`${r}.length`:(0,mn._)`${(0,zz.useFunc)(t.gen,Wz.default)}(${r})`;t.fail$data((0,mn._)`${a} ${n} ${s}`)}};wy.default=Yz});var JT=h(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var Jz=_r(),$f=ae(),Qz={message:({schemaCode:t})=>(0,$f.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,$f._)`{pattern: ${t}}`},Xz={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Qz,code(t){let{data:e,$data:r,schema:s,schemaCode:i,it:n}=t,a=n.opts.unicodeRegExp?"u":"",o=r?(0,$f._)`(new RegExp(${i}, ${a}))`:(0,Jz.usePattern)(t,s);t.fail$data((0,$f._)`!${o}.test(${e})`)}};Ey.default=Xz});var QT=h(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var Uu=ae(),Zz={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,Uu.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,Uu._)`{limit: ${t}}`},eW={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Zz,code(t){let{keyword:e,data:r,schemaCode:s}=t,i=e==="maxProperties"?Uu.operators.GT:Uu.operators.LT;t.fail$data((0,Uu._)`Object.keys(${r}).length ${i} ${s}`)}};ky.default=eW});var XT=h(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var Gu=_r(),Vu=ae(),tW=we(),rW={message:({params:{missingProperty:t}})=>(0,Vu.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Vu._)`{missingProperty: ${t}}`},sW={keyword:"required",type:"object",schemaType:"array",$data:!0,error:rW,code(t){let{gen:e,schema:r,schemaCode:s,data:i,$data:n,it:a}=t,{opts:o}=a;if(!n&&r.length===0)return;let u=r.length>=o.loopRequired;if(a.allErrors?l():c(),o.strictRequired){let m=t.parentSchema.properties,{definedProperties:p}=t.it;for(let g of r)if((m==null?void 0:m[g])===void 0&&!p.has(g)){let b=a.schemaEnv.baseId+a.errSchemaPath,y=`required property "${g}" is not defined at "${b}" (strictRequired)`;(0,tW.checkStrictMode)(a,y,a.opts.strictRequired)}}function l(){if(u||n)t.block$data(Vu.nil,f);else for(let m of r)(0,Gu.checkReportMissingProp)(t,m)}function c(){let m=e.let("missing");if(u||n){let p=e.let("valid",!0);t.block$data(p,()=>d(m,p)),t.ok(p)}else e.if((0,Gu.checkMissingProp)(t,r,m)),(0,Gu.reportMissingProp)(t,m),e.else()}function f(){e.forOf("prop",s,m=>{t.setParams({missingProperty:m}),e.if((0,Gu.noPropertyInData)(e,i,m,o.ownProperties),()=>t.error())})}function d(m,p){t.setParams({missingProperty:m}),e.forOf(m,s,()=>{e.assign(p,(0,Gu.propertyInData)(e,i,m,o.ownProperties)),e.if((0,Vu.not)(p),()=>{t.error(),e.break()})},Vu.nil)}}};Dy.default=sW});var ZT=h(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var zu=ae(),iW={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,zu.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,zu._)`{limit: ${t}}`},nW={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:iW,code(t){let{keyword:e,data:r,schemaCode:s}=t,i=e==="maxItems"?zu.operators.GT:zu.operators.LT;t.fail$data((0,zu._)`${r}.length ${i} ${s}`)}};Cy.default=nW});var Ff=h(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var eR=Zg();eR.code='require("ajv/dist/runtime/equal").default';Sy.default=eR});var tR=h(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var xy=Fu(),St=ae(),aW=we(),oW=Ff(),uW={message:({params:{i:t,j:e}})=>(0,St.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,St._)`{i: ${t}, j: ${e}}`},lW={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:uW,code(t){let{gen:e,data:r,$data:s,schema:i,parentSchema:n,schemaCode:a,it:o}=t;if(!s&&!i)return;let u=e.let("valid"),l=n.items?(0,xy.getSchemaTypes)(n.items):[];t.block$data(u,c,(0,St._)`${a} === false`),t.ok(u);function c(){let p=e.let("i",(0,St._)`${r}.length`),g=e.let("j");t.setParams({i:p,j:g}),e.assign(u,!0),e.if((0,St._)`${p} > 1`,()=>(f()?d:m)(p,g))}function f(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function d(p,g){let b=e.name("item"),y=(0,xy.checkDataTypes)(l,b,o.opts.strictNumbers,xy.DataType.Wrong),w=e.const("indices",(0,St._)`{}`);e.for((0,St._)`;${p}--;`,()=>{e.let(b,(0,St._)`${r}[${p}]`),e.if(y,(0,St._)`continue`),l.length>1&&e.if((0,St._)`typeof ${b} == "string"`,(0,St._)`${b} += "_"`),e.if((0,St._)`typeof ${w}[${b}] == "number"`,()=>{e.assign(g,(0,St._)`${w}[${b}]`),t.error(),e.assign(u,!1).break()}).code((0,St._)`${w}[${b}] = ${p}`)})}function m(p,g){let b=(0,aW.useFunc)(e,oW.default),y=e.name("outer");e.label(y).for((0,St._)`;${p}--;`,()=>e.for((0,St._)`${g} = ${p}; ${g}--;`,()=>e.if((0,St._)`${b}(${r}[${p}], ${r}[${g}])`,()=>{t.error(),e.assign(u,!1).break(y)})))}}};Ay.default=lW});var rR=h(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var Oy=ae(),cW=we(),fW=Ff(),dW={message:"must be equal to constant",params:({schemaCode:t})=>(0,Oy._)`{allowedValue: ${t}}`},hW={keyword:"const",$data:!0,error:dW,code(t){let{gen:e,data:r,$data:s,schemaCode:i,schema:n}=t;s||n&&typeof n=="object"?t.fail$data((0,Oy._)`!${(0,cW.useFunc)(e,fW.default)}(${r}, ${i})`):t.fail((0,Oy._)`${n} !== ${r}`)}};Ty.default=hW});var sR=h(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var Wu=ae(),pW=we(),mW=Ff(),gW={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,Wu._)`{allowedValues: ${t}}`},yW={keyword:"enum",schemaType:"array",$data:!0,error:gW,code(t){let{gen:e,data:r,$data:s,schema:i,schemaCode:n,it:a}=t;if(!s&&i.length===0)throw new Error("enum must have non-empty array");let o=i.length>=a.opts.loopEnum,u=(0,pW.useFunc)(e,mW.default),l;if(o||s)l=e.let("valid"),t.block$data(l,c);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=e.const("vSchema",n);l=(0,Wu.or)(...i.map((m,p)=>f(d,p)))}t.pass(l);function c(){e.assign(l,!1),e.forOf("v",n,d=>e.if((0,Wu._)`${u}(${r}, ${d})`,()=>e.assign(l,!0).break()))}function f(d,m){let p=i[m];return typeof p=="object"&&p!==null?(0,Wu._)`${u}(${r}, ${d}[${m}])`:(0,Wu._)`${r} === ${p}`}}};Ry.default=yW});var iR=h(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var vW=VT(),bW=zT(),_W=YT(),wW=JT(),EW=QT(),kW=XT(),DW=ZT(),CW=tR(),SW=rR(),xW=sR(),AW=[vW.default,bW.default,_W.default,wW.default,EW.default,kW.default,DW.default,CW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},SW.default,xW.default];Py.default=AW});var Fy=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.validateAdditionalItems=void 0;var gn=ae(),$y=we(),OW={message:({params:{len:t}})=>(0,gn.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,gn._)`{limit: ${t}}`},TW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:OW,code(t){let{parentSchema:e,it:r}=t,{items:s}=e;if(!Array.isArray(s)){(0,$y.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}nR(t,s)}};function nR(t,e){let{gen:r,schema:s,data:i,keyword:n,it:a}=t;a.items=!0;let o=r.const("len",(0,gn._)`${i}.length`);if(s===!1)t.setParams({len:e.length}),t.pass((0,gn._)`${o} <= ${e.length}`);else if(typeof s=="object"&&!(0,$y.alwaysValidSchema)(a,s)){let l=r.var("valid",(0,gn._)`${o} <= ${e.length}`);r.if((0,gn.not)(l),()=>u(l)),t.ok(l)}function u(l){r.forRange("i",e.length,o,c=>{t.subschema({keyword:n,dataProp:c,dataPropType:$y.Type.Num},l),a.allErrors||r.if((0,gn.not)(l),()=>r.break())})}}Ku.validateAdditionalItems=nR;Ku.default=TW});var jy=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.validateTuple=void 0;var aR=ae(),jf=we(),RW=_r(),PW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return oR(t,"additionalItems",e);r.items=!0,!(0,jf.alwaysValidSchema)(r,e)&&t.ok((0,RW.validateArray)(t))}};function oR(t,e,r=t.schema){let{gen:s,parentSchema:i,data:n,keyword:a,it:o}=t;c(i),o.opts.unevaluated&&r.length&&o.items!==!0&&(o.items=jf.mergeEvaluated.items(s,r.length,o.items));let u=s.name("valid"),l=s.const("len",(0,aR._)`${n}.length`);r.forEach((f,d)=>{(0,jf.alwaysValidSchema)(o,f)||(s.if((0,aR._)`${l} > ${d}`,()=>t.subschema({keyword:a,schemaProp:d,dataProp:d},u)),t.ok(u))});function c(f){let{opts:d,errSchemaPath:m}=o,p=r.length,g=p===f.minItems&&(p===f.maxItems||f[e]===!1);if(d.strictTuples&&!g){let b=`"${a}" is ${p}-tuple, but minItems or maxItems/${e} are not specified or different at path "${m}"`;(0,jf.checkStrictMode)(o,b,d.strictTuples)}}}Yu.validateTuple=oR;Yu.default=PW});var uR=h(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var $W=jy(),FW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,$W.validateTuple)(t,"items")};Iy.default=FW});var cR=h(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});var lR=ae(),jW=we(),IW=_r(),MW=Fy(),NW={message:({params:{len:t}})=>(0,lR.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,lR._)`{limit: ${t}}`},qW={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:NW,code(t){let{schema:e,parentSchema:r,it:s}=t,{prefixItems:i}=r;s.items=!0,!(0,jW.alwaysValidSchema)(s,e)&&(i?(0,MW.validateAdditionalItems)(t,i):t.ok((0,IW.validateArray)(t)))}};My.default=qW});var fR=h(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var Er=ae(),If=we(),BW={message:({params:{min:t,max:e}})=>e===void 0?(0,Er.str)`must contain at least ${t} valid item(s)`:(0,Er.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Er._)`{minContains: ${t}}`:(0,Er._)`{minContains: ${t}, maxContains: ${e}}`},LW={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:BW,code(t){let{gen:e,schema:r,parentSchema:s,data:i,it:n}=t,a,o,{minContains:u,maxContains:l}=s;n.opts.next?(a=u===void 0?1:u,o=l):a=1;let c=e.const("len",(0,Er._)`${i}.length`);if(t.setParams({min:a,max:o}),o===void 0&&a===0){(0,If.checkStrictMode)(n,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&a>o){(0,If.checkStrictMode)(n,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,If.alwaysValidSchema)(n,r)){let g=(0,Er._)`${c} >= ${a}`;o!==void 0&&(g=(0,Er._)`${g} && ${c} <= ${o}`),t.pass(g);return}n.items=!0;let f=e.name("valid");o===void 0&&a===1?m(f,()=>e.if(f,()=>e.break())):a===0?(e.let(f,!0),o!==void 0&&e.if((0,Er._)`${i}.length > 0`,d)):(e.let(f,!1),d()),t.result(f,()=>t.reset());function d(){let g=e.name("_valid"),b=e.let("count",0);m(g,()=>e.if(g,()=>p(b)))}function m(g,b){e.forRange("i",0,c,y=>{t.subschema({keyword:"contains",dataProp:y,dataPropType:If.Type.Num,compositeRule:!0},g),b()})}function p(g){e.code((0,Er._)`${g}++`),o===void 0?e.if((0,Er._)`${g} >= ${a}`,()=>e.assign(f,!0).break()):(e.if((0,Er._)`${g} > ${o}`,()=>e.assign(f,!1).break()),a===1?e.assign(f,!0):e.if((0,Er._)`${g} >= ${a}`,()=>e.assign(f,!0)))}}};Ny.default=LW});var pR=h(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.validateSchemaDeps=os.validatePropertyDeps=os.error=void 0;var qy=ae(),HW=we(),Ju=_r();os.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let s=e===1?"property":"properties";return(0,qy.str)`must have ${s} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:s}})=>(0,qy._)`{property: ${t},
|
|
86
|
+
|| ${a} === "boolean" || ${i} === null`).assign(o,(0,ee._)`[${i}]`)}}}function rV({gen:t,parentData:e,parentDataProperty:r},s){t.if((0,ee._)`${e} !== undefined`,()=>t.assign((0,ee._)`${e}[${r}]`,s))}function Kg(t,e,r,s=$u.Correct){let i=s===$u.Correct?ee.operators.EQ:ee.operators.NEQ,n;switch(t){case"null":return(0,ee._)`${e} ${i} null`;case"array":n=(0,ee._)`Array.isArray(${e})`;break;case"object":n=(0,ee._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":n=a((0,ee._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":n=a();break;default:return(0,ee._)`typeof ${e} ${i} ${t}`}return s===$u.Correct?n:(0,ee.not)(n);function a(o=ee.nil){return(0,ee.and)((0,ee._)`typeof ${e} == "number"`,o,r?(0,ee._)`isFinite(${e})`:ee.nil)}}Dt.checkDataType=Kg;function Yg(t,e,r,s){if(t.length===1)return Kg(t[0],e,r,s);let i,n=(0,KO.toHash)(t);if(n.array&&n.object){let a=(0,ee._)`typeof ${e} != "object"`;i=n.null?a:(0,ee._)`!${e} || ${a}`,delete n.null,delete n.array,delete n.object}else i=ee.nil;n.number&&delete n.integer;for(let a in n)i=(0,ee.and)(i,Kg(a,e,r,s));return i}Dt.checkDataTypes=Yg;var sV={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,ee._)`{type: ${t}}`:(0,ee._)`{type: ${e}}`};function Jg(t){let e=iV(t);(0,QG.reportError)(e,sV)}Dt.reportTypeError=Jg;function iV(t){let{gen:e,data:r,schema:s}=t,i=(0,KO.schemaRefOrVal)(t,s,"type");return{gen:e,keyword:"type",data:r,schema:s.type,schemaCode:i,schemaValue:i,parentSchema:s,params:{},it:t}}});var XO=h(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.assignDefaults=void 0;var Fa=oe(),nV=we();function aV(t,e){let{properties:r,items:s}=t.schema;if(e==="object"&&r)for(let i in r)QO(t,i,r[i].default);else e==="array"&&Array.isArray(s)&&s.forEach((i,n)=>QO(t,n,i.default))}wf.assignDefaults=aV;function QO(t,e,r){let{gen:s,compositeRule:i,data:n,opts:a}=t;if(r===void 0)return;let o=(0,Fa._)`${n}${(0,Fa.getProperty)(e)}`;if(i){(0,nV.checkStrictMode)(t,`default is ignored for: ${o}`);return}let u=(0,Fa._)`${o} === undefined`;a.useDefaults==="empty"&&(u=(0,Fa._)`${u} || ${o} === null || ${o} === ""`),s.if(u,(0,Fa._)`${o} = ${(0,Fa.stringify)(r)}`)}});var _r=h(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.validateUnion=Oe.validateArray=Oe.usePattern=Oe.callValidateCode=Oe.schemaProperties=Oe.allSchemaProperties=Oe.noPropertyInData=Oe.propertyInData=Oe.isOwnProperty=Oe.hasPropFunc=Oe.reportMissingProp=Oe.checkMissingProp=Oe.checkReportMissingProp=void 0;var Me=oe(),Qg=we(),di=Os(),oV=we();function uV(t,e){let{gen:r,data:s,it:i}=t;r.if(Zg(r,s,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Me._)`${e}`},!0),t.error()})}Oe.checkReportMissingProp=uV;function lV({gen:t,data:e,it:{opts:r}},s,i){return(0,Me.or)(...s.map(n=>(0,Me.and)(Zg(t,e,n,r.ownProperties),(0,Me._)`${i} = ${n}`)))}Oe.checkMissingProp=lV;function cV(t,e){t.setParams({missingProperty:e},!0),t.error()}Oe.reportMissingProp=cV;function ZO(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Me._)`Object.prototype.hasOwnProperty`})}Oe.hasPropFunc=ZO;function Xg(t,e,r){return(0,Me._)`${ZO(t)}.call(${e}, ${r})`}Oe.isOwnProperty=Xg;function fV(t,e,r,s){let i=(0,Me._)`${e}${(0,Me.getProperty)(r)} !== undefined`;return s?(0,Me._)`${i} && ${Xg(t,e,r)}`:i}Oe.propertyInData=fV;function Zg(t,e,r,s){let i=(0,Me._)`${e}${(0,Me.getProperty)(r)} === undefined`;return s?(0,Me.or)(i,(0,Me.not)(Xg(t,e,r))):i}Oe.noPropertyInData=Zg;function eT(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Oe.allSchemaProperties=eT;function dV(t,e){return eT(e).filter(r=>!(0,Qg.alwaysValidSchema)(t,e[r]))}Oe.schemaProperties=dV;function hV({schemaCode:t,data:e,it:{gen:r,topSchemaRef:s,schemaPath:i,errorPath:n},it:a},o,u,l){let c=l?(0,Me._)`${t}, ${e}, ${s}${i}`:e,f=[[di.default.instancePath,(0,Me.strConcat)(di.default.instancePath,n)],[di.default.parentData,a.parentData],[di.default.parentDataProperty,a.parentDataProperty],[di.default.rootData,di.default.rootData]];a.opts.dynamicRef&&f.push([di.default.dynamicAnchors,di.default.dynamicAnchors]);let d=(0,Me._)`${c}, ${r.object(...f)}`;return u!==Me.nil?(0,Me._)`${o}.call(${u}, ${d})`:(0,Me._)`${o}(${d})`}Oe.callValidateCode=hV;var pV=(0,Me._)`new RegExp`;function mV({gen:t,it:{opts:e}},r){let s=e.unicodeRegExp?"u":"",{regExp:i}=e.code,n=i(r,s);return t.scopeValue("pattern",{key:n.toString(),ref:n,code:(0,Me._)`${i.code==="new RegExp"?pV:(0,oV.useFunc)(t,i)}(${r}, ${s})`})}Oe.usePattern=mV;function gV(t){let{gen:e,data:r,keyword:s,it:i}=t,n=e.name("valid");if(i.allErrors){let o=e.let("valid",!0);return a(()=>e.assign(o,!1)),o}return e.var(n,!0),a(()=>e.break()),n;function a(o){let u=e.const("len",(0,Me._)`${r}.length`);e.forRange("i",0,u,l=>{t.subschema({keyword:s,dataProp:l,dataPropType:Qg.Type.Num},n),e.if((0,Me.not)(n),o)})}}Oe.validateArray=gV;function yV(t){let{gen:e,schema:r,keyword:s,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,Qg.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=e.let("valid",!1),o=e.name("_valid");e.block(()=>r.forEach((u,l)=>{let c=t.subschema({keyword:s,schemaProp:l,compositeRule:!0},o);e.assign(a,(0,Me._)`${a} || ${o}`),t.mergeValidEvaluated(c,o)||e.if((0,Me.not)(a))})),t.result(a,()=>t.reset(),()=>t.error(!0))}Oe.validateUnion=yV});var sT=h(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.validateKeywordUsage=ns.validSchemaType=ns.funcKeywordCode=ns.macroKeywordCode=void 0;var Ht=oe(),dn=Os(),vV=_r(),bV=Pu();function _V(t,e){let{gen:r,keyword:s,schema:i,parentSchema:n,it:a}=t,o=e.macro.call(a.self,i,n,a),u=rT(r,s,o);a.opts.validateSchema!==!1&&a.self.validateSchema(o,!0);let l=r.name("valid");t.subschema({schema:o,schemaPath:Ht.nil,errSchemaPath:`${a.errSchemaPath}/${s}`,topSchemaRef:u,compositeRule:!0},l),t.pass(l,()=>t.error(!0))}ns.macroKeywordCode=_V;function wV(t,e){var r;let{gen:s,keyword:i,schema:n,parentSchema:a,$data:o,it:u}=t;kV(u,e);let l=!o&&e.compile?e.compile.call(u.self,n,a,u):e.validate,c=rT(s,i,l),f=s.let("valid");t.block$data(f,d),t.ok((r=e.valid)!==null&&r!==void 0?r:f);function d(){if(e.errors===!1)g(),e.modifying&&tT(t),b(()=>t.error());else{let y=e.async?p():m();e.modifying&&tT(t),b(()=>EV(t,y))}}function p(){let y=s.let("ruleErrs",null);return s.try(()=>g((0,Ht._)`await `),w=>s.assign(f,!1).if((0,Ht._)`${w} instanceof ${u.ValidationError}`,()=>s.assign(y,(0,Ht._)`${w}.errors`),()=>s.throw(w))),y}function m(){let y=(0,Ht._)`${c}.errors`;return s.assign(y,null),g(Ht.nil),y}function g(y=e.async?(0,Ht._)`await `:Ht.nil){let w=u.opts.passContext?dn.default.this:dn.default.self,k=!("compile"in e&&!o||e.schema===!1);s.assign(f,(0,Ht._)`${y}${(0,vV.callValidateCode)(t,c,w,k)}`,e.modifying)}function b(y){var w;s.if((0,Ht.not)((w=e.valid)!==null&&w!==void 0?w:f),y)}}ns.funcKeywordCode=wV;function tT(t){let{gen:e,data:r,it:s}=t;e.if(s.parentData,()=>e.assign(r,(0,Ht._)`${s.parentData}[${s.parentDataProperty}]`))}function EV(t,e){let{gen:r}=t;r.if((0,Ht._)`Array.isArray(${e})`,()=>{r.assign(dn.default.vErrors,(0,Ht._)`${dn.default.vErrors} === null ? ${e} : ${dn.default.vErrors}.concat(${e})`).assign(dn.default.errors,(0,Ht._)`${dn.default.vErrors}.length`),(0,bV.extendErrors)(t)},()=>t.error())}function kV({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function rT(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Ht.stringify)(r)})}function DV(t,e,r=!1){return!e.length||e.some(s=>s==="array"?Array.isArray(t):s==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==s||r&&typeof t=="undefined")}ns.validSchemaType=DV;function CV({schema:t,opts:e,self:r,errSchemaPath:s},i,n){if(Array.isArray(i.keyword)?!i.keyword.includes(n):i.keyword!==n)throw new Error("ajv implementation error");let a=i.dependencies;if(a==null?void 0:a.some(o=>!Object.prototype.hasOwnProperty.call(t,o)))throw new Error(`parent schema must have dependencies of ${n}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(t[n])){let u=`keyword "${n}" value is invalid at path "${s}": `+r.errorsText(i.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}ns.validateKeywordUsage=CV});var nT=h(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.extendSubschemaMode=hi.extendSubschemaData=hi.getSubschema=void 0;var as=oe(),iT=we();function SV(t,{keyword:e,schemaProp:r,schema:s,schemaPath:i,errSchemaPath:n,topSchemaRef:a}){if(e!==void 0&&s!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let o=t.schema[e];return r===void 0?{schema:o,schemaPath:(0,as._)`${t.schemaPath}${(0,as.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:o[r],schemaPath:(0,as._)`${t.schemaPath}${(0,as.getProperty)(e)}${(0,as.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,iT.escapeFragment)(r)}`}}if(s!==void 0){if(i===void 0||n===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:i,topSchemaRef:a,errSchemaPath:n}}throw new Error('either "keyword" or "schema" must be passed')}hi.getSubschema=SV;function xV(t,e,{dataProp:r,dataPropType:s,data:i,dataTypes:n,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=e;if(r!==void 0){let{errorPath:l,dataPathArr:c,opts:f}=e,d=o.let("data",(0,as._)`${e.data}${(0,as.getProperty)(r)}`,!0);u(d),t.errorPath=(0,as.str)`${l}${(0,iT.getErrorPath)(r,s,f.jsPropertySyntax)}`,t.parentDataProperty=(0,as._)`${r}`,t.dataPathArr=[...c,t.parentDataProperty]}if(i!==void 0){let l=i instanceof as.Name?i:o.let("data",i,!0);u(l),a!==void 0&&(t.propertyName=a)}n&&(t.dataTypes=n);function u(l){t.data=l,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,l]}}hi.extendSubschemaData=xV;function AV(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:s,createErrors:i,allErrors:n}){s!==void 0&&(t.compositeRule=s),i!==void 0&&(t.createErrors=i),n!==void 0&&(t.allErrors=n),t.jtdDiscriminator=e,t.jtdMetadata=r}hi.extendSubschemaMode=AV});var ey=h((Cce,aT)=>{"use strict";aT.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var s,i,n;if(Array.isArray(e)){if(s=e.length,s!=r.length)return!1;for(i=s;i--!=0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(n=Object.keys(e),s=n.length,s!==Object.keys(r).length)return!1;for(i=s;i--!=0;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=s;i--!=0;){var a=n[i];if(!t(e[a],r[a]))return!1}return!0}return e!==e&&r!==r}});var uT=h((Sce,oT)=>{"use strict";var pi=oT.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var s=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Ef(e,s,i,t,"",t)};pi.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};pi.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};pi.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};pi.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Ef(t,e,r,s,i,n,a,o,u,l){if(s&&typeof s=="object"&&!Array.isArray(s)){e(s,i,n,a,o,u,l);for(var c in s){var f=s[c];if(Array.isArray(f)){if(c in pi.arrayKeywords)for(var d=0;d<f.length;d++)Ef(t,e,r,f[d],i+"/"+c+"/"+d,n,i,c,s,d)}else if(c in pi.propsKeywords){if(f&&typeof f=="object")for(var p in f)Ef(t,e,r,f[p],i+"/"+c+"/"+OV(p),n,i,c,s,p)}else(c in pi.keywords||t.allKeys&&!(c in pi.skipKeywords))&&Ef(t,e,r,f,i+"/"+c,n,i,c,s)}r(s,i,n,a,o,u,l)}}function OV(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var ty=h((kf,lT)=>{(function(t,e){typeof kf=="object"&&typeof lT!="undefined"?e(kf):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(kf,function(t){"use strict";function e(){for(var _=arguments.length,v=Array(_),E=0;E<_;E++)v[E]=arguments[E];if(v.length>1){v[0]=v[0].slice(0,-1);for(var C=v.length-1,A=1;A<C;++A)v[A]=v[A].slice(1,-1);return v[C]=v[C].slice(1),v.join("")}else return v[0]}function r(_){return"(?:"+_+")"}function s(_){return _===void 0?"undefined":_===null?"null":Object.prototype.toString.call(_).split(" ").pop().split("]").shift().toLowerCase()}function i(_){return _.toUpperCase()}function n(_){return _!=null?_ instanceof Array?_:typeof _.length!="number"||_.split||_.setInterval||_.call?[_]:Array.prototype.slice.call(_):[]}function a(_,v){var E=_;if(v)for(var C in v)E[C]=v[C];return E}function o(_){var v="[A-Za-z]",E="[\\x0D]",C="[0-9]",A="[\\x22]",N=e(C,"[A-Fa-f]"),Z="[\\x0A]",ye="[\\x20]",ke=r(r("%[EFef]"+N+"%"+N+N+"%"+N+N)+"|"+r("%[89A-Fa-f]"+N+"%"+N+N)+"|"+r("%"+N+N)),Ze="[\\:\\/\\?\\#\\[\\]\\@]",pe="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",He=e(Ze,pe),et=_?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",qe=_?"[\\uE000-\\uF8FF]":"[]",_e=e(v,C,"[\\-\\.\\_\\~]",et),Ue=r(v+e(v,C,"[\\+\\-\\.]")+"*"),Ae=r(r(ke+"|"+e(_e,pe,"[\\:]"))+"*"),Oi=r(r("25[0-5]")+"|"+r("2[0-4]"+C)+"|"+r("1"+C+C)+"|"+r("[1-9]"+C)+"|"+C),er=r(r("25[0-5]")+"|"+r("2[0-4]"+C)+"|"+r("1"+C+C)+"|"+r("0?[1-9]"+C)+"|0?0?"+C),lr=r(er+"\\."+er+"\\."+er+"\\."+er),Te=r(N+"{1,4}"),tr=r(r(Te+"\\:"+Te)+"|"+lr),cr=r(r(Te+"\\:")+"{6}"+tr),Yr=r("\\:\\:"+r(Te+"\\:")+"{5}"+tr),Ti=r(r(Te)+"?\\:\\:"+r(Te+"\\:")+"{4}"+tr),ds=r(r(r(Te+"\\:")+"{0,1}"+Te)+"?\\:\\:"+r(Te+"\\:")+"{3}"+tr),wo=r(r(r(Te+"\\:")+"{0,2}"+Te)+"?\\:\\:"+r(Te+"\\:")+"{2}"+tr),ul=r(r(r(Te+"\\:")+"{0,3}"+Te)+"?\\:\\:"+Te+"\\:"+tr),ll=r(r(r(Te+"\\:")+"{0,4}"+Te)+"?\\:\\:"+tr),Pn=r(r(r(Te+"\\:")+"{0,5}"+Te)+"?\\:\\:"+Te),$n=r(r(r(Te+"\\:")+"{0,6}"+Te)+"?\\:\\:"),hs=r([cr,Yr,Ti,ds,wo,ul,ll,Pn,$n].join("|")),Fn=r(r(_e+"|"+ke)+"+"),sh=r(hs+"\\%25"+Fn),Ri=r(hs+r("\\%25|\\%(?!"+N+"{2})")+Fn),n2=r("[vV]"+N+"+\\."+e(_e,pe,"[\\:]")+"+"),a2=r("\\["+r(Ri+"|"+hs+"|"+n2)+"\\]"),ov=r(r(ke+"|"+e(_e,pe))+"*"),Eo=r(a2+"|"+lr+"(?!"+ov+")|"+ov),ko=r(C+"*"),uv=r(r(Ae+"@")+"?"+Eo+r("\\:"+ko)+"?"),Do=r(ke+"|"+e(_e,pe,"[\\:\\@]")),o2=r(Do+"*"),lv=r(Do+"+"),u2=r(r(ke+"|"+e(_e,pe,"[\\@]"))+"+"),ps=r(r("\\/"+o2)+"*"),jn=r("\\/"+r(lv+ps)+"?"),ih=r(u2+ps),cl=r(lv+ps),In="(?!"+Do+")",ete=r(ps+"|"+jn+"|"+ih+"|"+cl+"|"+In),Mn=r(r(Do+"|"+e("[\\/\\?]",qe))+"*"),Co=r(r(Do+"|[\\/\\?]")+"*"),cv=r(r("\\/\\/"+uv+ps)+"|"+jn+"|"+cl+"|"+In),l2=r(Ue+"\\:"+cv+r("\\?"+Mn)+"?"+r("\\#"+Co)+"?"),c2=r(r("\\/\\/"+uv+ps)+"|"+jn+"|"+ih+"|"+In),f2=r(c2+r("\\?"+Mn)+"?"+r("\\#"+Co)+"?"),tte=r(l2+"|"+f2),rte=r(Ue+"\\:"+cv+r("\\?"+Mn)+"?"),ste="^("+Ue+")\\:"+r(r("\\/\\/("+r("("+Ae+")@")+"?("+Eo+")"+r("\\:("+ko+")")+"?)")+"?("+ps+"|"+jn+"|"+cl+"|"+In+")")+r("\\?("+Mn+")")+"?"+r("\\#("+Co+")")+"?$",ite="^(){0}"+r(r("\\/\\/("+r("("+Ae+")@")+"?("+Eo+")"+r("\\:("+ko+")")+"?)")+"?("+ps+"|"+jn+"|"+ih+"|"+In+")")+r("\\?("+Mn+")")+"?"+r("\\#("+Co+")")+"?$",nte="^("+Ue+")\\:"+r(r("\\/\\/("+r("("+Ae+")@")+"?("+Eo+")"+r("\\:("+ko+")")+"?)")+"?("+ps+"|"+jn+"|"+cl+"|"+In+")")+r("\\?("+Mn+")")+"?$",ate="^"+r("\\#("+Co+")")+"?$",ote="^"+r("("+Ae+")@")+"?("+Eo+")"+r("\\:("+ko+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",v,C,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",_e,pe),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",_e,pe),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",_e,pe),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",_e,pe),"g"),NOT_QUERY:new RegExp(e("[^\\%]",_e,pe,"[\\:\\@\\/\\?]",qe),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",_e,pe,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",_e,pe),"g"),UNRESERVED:new RegExp(_e,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",_e,He),"g"),PCT_ENCODED:new RegExp(ke,"g"),IPV4ADDRESS:new RegExp("^("+lr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+hs+")"+r(r("\\%25|\\%(?!"+N+"{2})")+"("+Fn+")")+"?\\]?$")}}var u=o(!1),l=o(!0),c=function(){function _(v,E){var C=[],A=!0,N=!1,Z=void 0;try{for(var ye=v[Symbol.iterator](),ke;!(A=(ke=ye.next()).done)&&(C.push(ke.value),!(E&&C.length===E));A=!0);}catch(Ze){N=!0,Z=Ze}finally{try{!A&&ye.return&&ye.return()}finally{if(N)throw Z}}return C}return function(v,E){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return _(v,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(_){if(Array.isArray(_)){for(var v=0,E=Array(_.length);v<_.length;v++)E[v]=_[v];return E}else return Array.from(_)},d=2147483647,p=36,m=1,g=26,b=38,y=700,w=72,k=128,O="-",P=/^xn--/,I=/[^\0-\x7E]/,z=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=p-m,F=Math.floor,S=String.fromCharCode;function H(_){throw new RangeError(T[_])}function V(_,v){for(var E=[],C=_.length;C--;)E[C]=v(_[C]);return E}function ge(_,v){var E=_.split("@"),C="";E.length>1&&(C=E[0]+"@",_=E[1]),_=_.replace(z,".");var A=_.split("."),N=V(A,v).join(".");return C+N}function x(_){for(var v=[],E=0,C=_.length;E<C;){var A=_.charCodeAt(E++);if(A>=55296&&A<=56319&&E<C){var N=_.charCodeAt(E++);(N&64512)==56320?v.push(((A&1023)<<10)+(N&1023)+65536):(v.push(A),E--)}else v.push(A)}return v}var D=function(v){return String.fromCodePoint.apply(String,f(v))},be=function(v){return v-48<10?v-22:v-65<26?v-65:v-97<26?v-97:p},L=function(v,E){return v+22+75*(v<26)-((E!=0)<<5)},ut=function(v,E,C){var A=0;for(v=C?F(v/y):v>>1,v+=F(v/E);v>$*g>>1;A+=p)v=F(v/$);return F(A+($+1)*v/(v+b))},At=function(v){var E=[],C=v.length,A=0,N=k,Z=w,ye=v.lastIndexOf(O);ye<0&&(ye=0);for(var ke=0;ke<ye;++ke)v.charCodeAt(ke)>=128&&H("not-basic"),E.push(v.charCodeAt(ke));for(var Ze=ye>0?ye+1:0;Ze<C;){for(var pe=A,He=1,et=p;;et+=p){Ze>=C&&H("invalid-input");var qe=be(v.charCodeAt(Ze++));(qe>=p||qe>F((d-A)/He))&&H("overflow"),A+=qe*He;var _e=et<=Z?m:et>=Z+g?g:et-Z;if(qe<_e)break;var Ue=p-_e;He>F(d/Ue)&&H("overflow"),He*=Ue}var Ae=E.length+1;Z=ut(A-pe,Ae,pe==0),F(A/Ae)>d-N&&H("overflow"),N+=F(A/Ae),A%=Ae,E.splice(A++,0,N)}return String.fromCodePoint.apply(String,E)},st=function(v){var E=[];v=x(v);var C=v.length,A=k,N=0,Z=w,ye=!0,ke=!1,Ze=void 0;try{for(var pe=v[Symbol.iterator](),He;!(ye=(He=pe.next()).done);ye=!0){var et=He.value;et<128&&E.push(S(et))}}catch(Ri){ke=!0,Ze=Ri}finally{try{!ye&&pe.return&&pe.return()}finally{if(ke)throw Ze}}var qe=E.length,_e=qe;for(qe&&E.push(O);_e<C;){var Ue=d,Ae=!0,Oi=!1,er=void 0;try{for(var lr=v[Symbol.iterator](),Te;!(Ae=(Te=lr.next()).done);Ae=!0){var tr=Te.value;tr>=A&&tr<Ue&&(Ue=tr)}}catch(Ri){Oi=!0,er=Ri}finally{try{!Ae&&lr.return&&lr.return()}finally{if(Oi)throw er}}var cr=_e+1;Ue-A>F((d-N)/cr)&&H("overflow"),N+=(Ue-A)*cr,A=Ue;var Yr=!0,Ti=!1,ds=void 0;try{for(var wo=v[Symbol.iterator](),ul;!(Yr=(ul=wo.next()).done);Yr=!0){var ll=ul.value;if(ll<A&&++N>d&&H("overflow"),ll==A){for(var Pn=N,$n=p;;$n+=p){var hs=$n<=Z?m:$n>=Z+g?g:$n-Z;if(Pn<hs)break;var Fn=Pn-hs,sh=p-hs;E.push(S(L(hs+Fn%sh,0))),Pn=F(Fn/sh)}E.push(S(L(Pn,0))),Z=ut(N,cr,_e==qe),N=0,++_e}}}catch(Ri){Ti=!0,ds=Ri}finally{try{!Yr&&wo.return&&wo.return()}finally{if(Ti)throw ds}}++N,++A}return E.join("")},zr=function(v){return ge(v,function(E){return P.test(E)?At(E.slice(4).toLowerCase()):E})},th=function(v){return ge(v,function(E){return I.test(E)?"xn--"+st(E):E})},Ar={version:"2.1.0",ucs2:{decode:x,encode:D},decode:At,encode:st,toASCII:th,toUnicode:zr},Xe={};function K(_){var v=_.charCodeAt(0),E=void 0;return v<16?E="%0"+v.toString(16).toUpperCase():v<128?E="%"+v.toString(16).toUpperCase():v<2048?E="%"+(v>>6|192).toString(16).toUpperCase()+"%"+(v&63|128).toString(16).toUpperCase():E="%"+(v>>12|224).toString(16).toUpperCase()+"%"+(v>>6&63|128).toString(16).toUpperCase()+"%"+(v&63|128).toString(16).toUpperCase(),E}function Or(_){for(var v="",E=0,C=_.length;E<C;){var A=parseInt(_.substr(E+1,2),16);if(A<128)v+=String.fromCharCode(A),E+=3;else if(A>=194&&A<224){if(C-E>=6){var N=parseInt(_.substr(E+4,2),16);v+=String.fromCharCode((A&31)<<6|N&63)}else v+=_.substr(E,6);E+=6}else if(A>=224){if(C-E>=9){var Z=parseInt(_.substr(E+4,2),16),ye=parseInt(_.substr(E+7,2),16);v+=String.fromCharCode((A&15)<<12|(Z&63)<<6|ye&63)}else v+=_.substr(E,9);E+=9}else v+=_.substr(E,3),E+=3}return v}function vo(_,v){function E(C){var A=Or(C);return A.match(v.UNRESERVED)?A:C}return _.scheme&&(_.scheme=String(_.scheme).replace(v.PCT_ENCODED,E).toLowerCase().replace(v.NOT_SCHEME,"")),_.userinfo!==void 0&&(_.userinfo=String(_.userinfo).replace(v.PCT_ENCODED,E).replace(v.NOT_USERINFO,K).replace(v.PCT_ENCODED,i)),_.host!==void 0&&(_.host=String(_.host).replace(v.PCT_ENCODED,E).toLowerCase().replace(v.NOT_HOST,K).replace(v.PCT_ENCODED,i)),_.path!==void 0&&(_.path=String(_.path).replace(v.PCT_ENCODED,E).replace(_.scheme?v.NOT_PATH:v.NOT_PATH_NOSCHEME,K).replace(v.PCT_ENCODED,i)),_.query!==void 0&&(_.query=String(_.query).replace(v.PCT_ENCODED,E).replace(v.NOT_QUERY,K).replace(v.PCT_ENCODED,i)),_.fragment!==void 0&&(_.fragment=String(_.fragment).replace(v.PCT_ENCODED,E).replace(v.NOT_FRAGMENT,K).replace(v.PCT_ENCODED,i)),_}function M(_){return _.replace(/^0*(.*)/,"$1")||"0"}function Se(_,v){var E=_.match(v.IPV4ADDRESS)||[],C=c(E,2),A=C[1];return A?A.split(".").map(M).join("."):_}function j(_,v){var E=_.match(v.IPV6ADDRESS)||[],C=c(E,3),A=C[1],N=C[2];if(A){for(var Z=A.toLowerCase().split("::").reverse(),ye=c(Z,2),ke=ye[0],Ze=ye[1],pe=Ze?Ze.split(":").map(M):[],He=ke.split(":").map(M),et=v.IPV4ADDRESS.test(He[He.length-1]),qe=et?7:8,_e=He.length-qe,Ue=Array(qe),Ae=0;Ae<qe;++Ae)Ue[Ae]=pe[Ae]||He[_e+Ae]||"";et&&(Ue[qe-1]=Se(Ue[qe-1],v));var Oi=Ue.reduce(function(cr,Yr,Ti){if(!Yr||Yr==="0"){var ds=cr[cr.length-1];ds&&ds.index+ds.length===Ti?ds.length++:cr.push({index:Ti,length:1})}return cr},[]),er=Oi.sort(function(cr,Yr){return Yr.length-cr.length})[0],lr=void 0;if(er&&er.length>1){var Te=Ue.slice(0,er.index),tr=Ue.slice(er.index+er.length);lr=Te.join(":")+"::"+tr.join(":")}else lr=Ue.join(":");return N&&(lr+="%"+N),lr}else return _}var te=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Le="".match(/(){0}/)[1]===void 0;function $e(_){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E={},C=v.iri!==!1?l:u;v.reference==="suffix"&&(_=(v.scheme?v.scheme+":":"")+"//"+_);var A=_.match(te);if(A){Le?(E.scheme=A[1],E.userinfo=A[3],E.host=A[4],E.port=parseInt(A[5],10),E.path=A[6]||"",E.query=A[7],E.fragment=A[8],isNaN(E.port)&&(E.port=A[5])):(E.scheme=A[1]||void 0,E.userinfo=_.indexOf("@")!==-1?A[3]:void 0,E.host=_.indexOf("//")!==-1?A[4]:void 0,E.port=parseInt(A[5],10),E.path=A[6]||"",E.query=_.indexOf("?")!==-1?A[7]:void 0,E.fragment=_.indexOf("#")!==-1?A[8]:void 0,isNaN(E.port)&&(E.port=_.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?A[4]:void 0)),E.host&&(E.host=j(Se(E.host,C),C)),E.scheme===void 0&&E.userinfo===void 0&&E.host===void 0&&E.port===void 0&&!E.path&&E.query===void 0?E.reference="same-document":E.scheme===void 0?E.reference="relative":E.fragment===void 0?E.reference="absolute":E.reference="uri",v.reference&&v.reference!=="suffix"&&v.reference!==E.reference&&(E.error=E.error||"URI is not a "+v.reference+" reference.");var N=Xe[(v.scheme||E.scheme||"").toLowerCase()];if(!v.unicodeSupport&&(!N||!N.unicodeSupport)){if(E.host&&(v.domainHost||N&&N.domainHost))try{E.host=Ar.toASCII(E.host.replace(C.PCT_ENCODED,Or).toLowerCase())}catch(Z){E.error=E.error||"Host's domain name can not be converted to ASCII via punycode: "+Z}vo(E,u)}else vo(E,C);N&&N.parse&&N.parse(E,v)}else E.error=E.error||"URI can not be parsed.";return E}function Ye(_,v){var E=v.iri!==!1?l:u,C=[];return _.userinfo!==void 0&&(C.push(_.userinfo),C.push("@")),_.host!==void 0&&C.push(j(Se(String(_.host),E),E).replace(E.IPV6ADDRESS,function(A,N,Z){return"["+N+(Z?"%25"+Z:"")+"]"})),(typeof _.port=="number"||typeof _.port=="string")&&(C.push(":"),C.push(String(_.port))),C.length?C.join(""):void 0}var On=/^\.\.?\//,Ai=/^\/\.(\/|$)/,Q0=/^\/\.\.(\/|$)/,Hj=/^\/?(?:.|\n)*?(?=\/|$)/;function Tn(_){for(var v=[];_.length;)if(_.match(On))_=_.replace(On,"");else if(_.match(Ai))_=_.replace(Ai,"/");else if(_.match(Q0))_=_.replace(Q0,"/"),v.pop();else if(_==="."||_==="..")_="";else{var E=_.match(Hj);if(E){var C=E[0];_=_.slice(C.length),v.push(C)}else throw new Error("Unexpected dot segment condition")}return v.join("")}function Wr(_){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=v.iri?l:u,C=[],A=Xe[(v.scheme||_.scheme||"").toLowerCase()];if(A&&A.serialize&&A.serialize(_,v),_.host&&!E.IPV6ADDRESS.test(_.host)){if(v.domainHost||A&&A.domainHost)try{_.host=v.iri?Ar.toUnicode(_.host):Ar.toASCII(_.host.replace(E.PCT_ENCODED,Or).toLowerCase())}catch(ye){_.error=_.error||"Host's domain name can not be converted to "+(v.iri?"Unicode":"ASCII")+" via punycode: "+ye}}vo(_,E),v.reference!=="suffix"&&_.scheme&&(C.push(_.scheme),C.push(":"));var N=Ye(_,v);if(N!==void 0&&(v.reference!=="suffix"&&C.push("//"),C.push(N),_.path&&_.path.charAt(0)!=="/"&&C.push("/")),_.path!==void 0){var Z=_.path;!v.absolutePath&&(!A||!A.absolutePath)&&(Z=Tn(Z)),N===void 0&&(Z=Z.replace(/^\/\//,"/%2F")),C.push(Z)}return _.query!==void 0&&(C.push("?"),C.push(_.query)),_.fragment!==void 0&&(C.push("#"),C.push(_.fragment)),C.join("")}function X0(_,v){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},C=arguments[3],A={};return C||(_=$e(Wr(_,E),E),v=$e(Wr(v,E),E)),E=E||{},!E.tolerant&&v.scheme?(A.scheme=v.scheme,A.userinfo=v.userinfo,A.host=v.host,A.port=v.port,A.path=Tn(v.path||""),A.query=v.query):(v.userinfo!==void 0||v.host!==void 0||v.port!==void 0?(A.userinfo=v.userinfo,A.host=v.host,A.port=v.port,A.path=Tn(v.path||""),A.query=v.query):(v.path?(v.path.charAt(0)==="/"?A.path=Tn(v.path):((_.userinfo!==void 0||_.host!==void 0||_.port!==void 0)&&!_.path?A.path="/"+v.path:_.path?A.path=_.path.slice(0,_.path.lastIndexOf("/")+1)+v.path:A.path=v.path,A.path=Tn(A.path)),A.query=v.query):(A.path=_.path,v.query!==void 0?A.query=v.query:A.query=_.query),A.userinfo=_.userinfo,A.host=_.host,A.port=_.port),A.scheme=_.scheme),A.fragment=v.fragment,A}function Uj(_,v,E){var C=a({scheme:"null"},E);return Wr(X0($e(_,C),$e(v,C),C,!0),C)}function Gj(_,v){return typeof _=="string"?_=Wr($e(_,v),v):s(_)==="object"&&(_=$e(Wr(_,v),v)),_}function Vj(_,v,E){return typeof _=="string"?_=Wr($e(_,E),E):s(_)==="object"&&(_=Wr(_,E)),typeof v=="string"?v=Wr($e(v,E),E):s(v)==="object"&&(v=Wr(v,E)),_===v}function zj(_,v){return _&&_.toString().replace(!v||!v.iri?u.ESCAPE:l.ESCAPE,K)}function fs(_,v){return _&&_.toString().replace(!v||!v.iri?u.PCT_ENCODED:l.PCT_ENCODED,Or)}var bo={scheme:"http",domainHost:!0,parse:function(v,E){return v.host||(v.error=v.error||"HTTP URIs must have a host."),v},serialize:function(v,E){var C=String(v.scheme).toLowerCase()==="https";return(v.port===(C?443:80)||v.port==="")&&(v.port=void 0),v.path||(v.path="/"),v}},Z0={scheme:"https",domainHost:bo.domainHost,parse:bo.parse,serialize:bo.serialize};function ev(_){return typeof _.secure=="boolean"?_.secure:String(_.scheme).toLowerCase()==="wss"}var _o={scheme:"ws",domainHost:!0,parse:function(v,E){var C=v;return C.secure=ev(C),C.resourceName=(C.path||"/")+(C.query?"?"+C.query:""),C.path=void 0,C.query=void 0,C},serialize:function(v,E){if((v.port===(ev(v)?443:80)||v.port==="")&&(v.port=void 0),typeof v.secure=="boolean"&&(v.scheme=v.secure?"wss":"ws",v.secure=void 0),v.resourceName){var C=v.resourceName.split("?"),A=c(C,2),N=A[0],Z=A[1];v.path=N&&N!=="/"?N:void 0,v.query=Z,v.resourceName=void 0}return v.fragment=void 0,v}},tv={scheme:"wss",domainHost:_o.domainHost,parse:_o.parse,serialize:_o.serialize},Wj={},Kj=!0,rv="[A-Za-z0-9\\-\\.\\_\\~"+(Kj?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Kr="[0-9A-Fa-f]",Yj=r(r("%[EFef]"+Kr+"%"+Kr+Kr+"%"+Kr+Kr)+"|"+r("%[89A-Fa-f]"+Kr+"%"+Kr+Kr)+"|"+r("%"+Kr+Kr)),Jj="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Qj="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Xj=e(Qj,'[\\"\\\\]'),Zj="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",e2=new RegExp(rv,"g"),Rn=new RegExp(Yj,"g"),t2=new RegExp(e("[^]",Jj,"[\\.]",'[\\"]',Xj),"g"),sv=new RegExp(e("[^]",rv,Zj),"g"),r2=sv;function rh(_){var v=Or(_);return v.match(e2)?v:_}var iv={scheme:"mailto",parse:function(v,E){var C=v,A=C.to=C.path?C.path.split(","):[];if(C.path=void 0,C.query){for(var N=!1,Z={},ye=C.query.split("&"),ke=0,Ze=ye.length;ke<Ze;++ke){var pe=ye[ke].split("=");switch(pe[0]){case"to":for(var He=pe[1].split(","),et=0,qe=He.length;et<qe;++et)A.push(He[et]);break;case"subject":C.subject=fs(pe[1],E);break;case"body":C.body=fs(pe[1],E);break;default:N=!0,Z[fs(pe[0],E)]=fs(pe[1],E);break}}N&&(C.headers=Z)}C.query=void 0;for(var _e=0,Ue=A.length;_e<Ue;++_e){var Ae=A[_e].split("@");if(Ae[0]=fs(Ae[0]),E.unicodeSupport)Ae[1]=fs(Ae[1],E).toLowerCase();else try{Ae[1]=Ar.toASCII(fs(Ae[1],E).toLowerCase())}catch(Oi){C.error=C.error||"Email address's domain name can not be converted to ASCII via punycode: "+Oi}A[_e]=Ae.join("@")}return C},serialize:function(v,E){var C=v,A=n(v.to);if(A){for(var N=0,Z=A.length;N<Z;++N){var ye=String(A[N]),ke=ye.lastIndexOf("@"),Ze=ye.slice(0,ke).replace(Rn,rh).replace(Rn,i).replace(t2,K),pe=ye.slice(ke+1);try{pe=E.iri?Ar.toUnicode(pe):Ar.toASCII(fs(pe,E).toLowerCase())}catch(_e){C.error=C.error||"Email address's domain name can not be converted to "+(E.iri?"Unicode":"ASCII")+" via punycode: "+_e}A[N]=Ze+"@"+pe}C.path=A.join(",")}var He=v.headers=v.headers||{};v.subject&&(He.subject=v.subject),v.body&&(He.body=v.body);var et=[];for(var qe in He)He[qe]!==Wj[qe]&&et.push(qe.replace(Rn,rh).replace(Rn,i).replace(sv,K)+"="+He[qe].replace(Rn,rh).replace(Rn,i).replace(r2,K));return et.length&&(C.query=et.join("&")),C}},s2=/^([^\:]+)\:(.*)/,nv={scheme:"urn",parse:function(v,E){var C=v.path&&v.path.match(s2),A=v;if(C){var N=E.scheme||A.scheme||"urn",Z=C[1].toLowerCase(),ye=C[2],ke=N+":"+(E.nid||Z),Ze=Xe[ke];A.nid=Z,A.nss=ye,A.path=void 0,Ze&&(A=Ze.parse(A,E))}else A.error=A.error||"URN can not be parsed.";return A},serialize:function(v,E){var C=E.scheme||v.scheme||"urn",A=v.nid,N=C+":"+(E.nid||A),Z=Xe[N];Z&&(v=Z.serialize(v,E));var ye=v,ke=v.nss;return ye.path=(A||E.nid)+":"+ke,ye}},i2=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,av={scheme:"urn:uuid",parse:function(v,E){var C=v;return C.uuid=C.nss,C.nss=void 0,!E.tolerant&&(!C.uuid||!C.uuid.match(i2))&&(C.error=C.error||"UUID is not valid."),C},serialize:function(v,E){var C=v;return C.nss=(v.uuid||"").toLowerCase(),C}};Xe[bo.scheme]=bo,Xe[Z0.scheme]=Z0,Xe[_o.scheme]=_o,Xe[tv.scheme]=tv,Xe[iv.scheme]=iv,Xe[nv.scheme]=nv,Xe[av.scheme]=av,t.SCHEMES=Xe,t.pctEncChar=K,t.pctDecChars=Or,t.parse=$e,t.removeDotSegments=Tn,t.serialize=Wr,t.resolveComponents=X0,t.resolve=Uj,t.normalize=Gj,t.equal=Vj,t.escapeComponent=zj,t.unescapeComponent=fs,Object.defineProperty(t,"__esModule",{value:!0})})});var ju=h(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.getSchemaRefs=Jt.resolveUrl=Jt.normalizeId=Jt._getFullPath=Jt.getFullPath=Jt.inlineRef=void 0;var TV=we(),RV=ey(),PV=uT(),Df=ty(),$V=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function FV(t,e=!0){return typeof t=="boolean"?!0:e===!0?!ry(t):e?cT(t)<=e:!1}Jt.inlineRef=FV;var jV=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ry(t){for(let e in t){if(jV.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(ry)||typeof r=="object"&&ry(r))return!0}return!1}function cT(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!$V.has(r)&&(typeof t[r]=="object"&&(0,TV.eachItem)(t[r],s=>e+=cT(s)),e===1/0))return 1/0}return e}function fT(t="",e){e!==!1&&(t=ja(t));let r=Df.parse(t);return dT(r)}Jt.getFullPath=fT;function dT(t){return Df.serialize(t).split("#")[0]+"#"}Jt._getFullPath=dT;var IV=/#\/?$/;function ja(t){return t?t.replace(IV,""):""}Jt.normalizeId=ja;function MV(t,e){return e=ja(e),Df.resolve(t,e)}Jt.resolveUrl=MV;var NV=/^[a-z_][-a-z0-9._]*$/i;function qV(t,e){if(typeof t=="boolean")return{};let{schemaId:r}=this.opts,s=ja(t[r]||e),i={"":s},n=fT(s,!1),a={},o=new Set;return PV(t,{allKeys:!0},(c,f,d,p)=>{if(p===void 0)return;let m=n+f,g=i[p];typeof c[r]=="string"&&(g=b.call(this,c[r])),y.call(this,c.$anchor),y.call(this,c.$dynamicAnchor),i[f]=g;function b(w){if(w=ja(g?Df.resolve(g,w):w),o.has(w))throw l(w);o.add(w);let k=this.refs[w];return typeof k=="string"&&(k=this.refs[k]),typeof k=="object"?u(c,k.schema,w):w!==ja(m)&&(w[0]==="#"?(u(c,a[w],w),a[w]=c):this.refs[w]=m),w}function y(w){if(typeof w=="string"){if(!NV.test(w))throw new Error(`invalid anchor "${w}"`);b.call(this,`#${w}`)}}}),a;function u(c,f,d){if(f!==void 0&&!RV(c,f))throw l(d)}function l(c){return new Error(`reference "${c}" resolves to more than one schema`)}}Jt.getSchemaRefs=qV});var Nu=h(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.getData=mi.KeywordCxt=mi.validateFunctionCode=void 0;var hT=VO(),pT=Fu(),sy=Wg(),Cf=Fu(),BV=XO(),Iu=sT(),iy=nT(),B=oe(),Y=Os(),LV=ju(),Ts=we(),Mu=Pu();function HV(t){if(vT(t)&&(bT(t),yT(t))){VV(t);return}mT(t,()=>(0,hT.topBoolOrEmptySchema)(t))}mi.validateFunctionCode=HV;function mT({gen:t,validateName:e,schema:r,schemaEnv:s,opts:i},n){i.code.es5?t.func(e,(0,B._)`${Y.default.data}, ${Y.default.valCxt}`,s.$async,()=>{t.code((0,B._)`"use strict"; ${gT(r,i)}`),GV(t,i),t.code(n)}):t.func(e,(0,B._)`${Y.default.data}, ${UV(i)}`,s.$async,()=>t.code(gT(r,i)).code(n))}function UV(t){return(0,B._)`{${Y.default.instancePath}="", ${Y.default.parentData}, ${Y.default.parentDataProperty}, ${Y.default.rootData}=${Y.default.data}${t.dynamicRef?(0,B._)`, ${Y.default.dynamicAnchors}={}`:B.nil}}={}`}function GV(t,e){t.if(Y.default.valCxt,()=>{t.var(Y.default.instancePath,(0,B._)`${Y.default.valCxt}.${Y.default.instancePath}`),t.var(Y.default.parentData,(0,B._)`${Y.default.valCxt}.${Y.default.parentData}`),t.var(Y.default.parentDataProperty,(0,B._)`${Y.default.valCxt}.${Y.default.parentDataProperty}`),t.var(Y.default.rootData,(0,B._)`${Y.default.valCxt}.${Y.default.rootData}`),e.dynamicRef&&t.var(Y.default.dynamicAnchors,(0,B._)`${Y.default.valCxt}.${Y.default.dynamicAnchors}`)},()=>{t.var(Y.default.instancePath,(0,B._)`""`),t.var(Y.default.parentData,(0,B._)`undefined`),t.var(Y.default.parentDataProperty,(0,B._)`undefined`),t.var(Y.default.rootData,Y.default.data),e.dynamicRef&&t.var(Y.default.dynamicAnchors,(0,B._)`{}`)})}function VV(t){let{schema:e,opts:r,gen:s}=t;mT(t,()=>{r.$comment&&e.$comment&&wT(t),JV(t),s.let(Y.default.vErrors,null),s.let(Y.default.errors,0),r.unevaluated&&zV(t),_T(t),ZV(t)})}function zV(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,B._)`${r}.evaluated`),e.if((0,B._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,B._)`${t.evaluated}.props`,(0,B._)`undefined`)),e.if((0,B._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,B._)`${t.evaluated}.items`,(0,B._)`undefined`))}function gT(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,B._)`/*# sourceURL=${r} */`:B.nil}function WV(t,e){if(vT(t)&&(bT(t),yT(t))){KV(t,e);return}(0,hT.boolOrEmptySchema)(t,e)}function yT({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function vT(t){return typeof t.schema!="boolean"}function KV(t,e){let{schema:r,gen:s,opts:i}=t;i.$comment&&r.$comment&&wT(t),QV(t),XV(t);let n=s.const("_errs",Y.default.errors);_T(t,n),s.var(e,(0,B._)`${n} === ${Y.default.errors}`)}function bT(t){(0,Ts.checkUnknownRules)(t),YV(t)}function _T(t,e){if(t.opts.jtd)return ET(t,[],!1,e);let r=(0,pT.getSchemaTypes)(t.schema),s=(0,pT.coerceAndCheckDataType)(t,r);ET(t,r,!s,e)}function YV(t){let{schema:e,errSchemaPath:r,opts:s,self:i}=t;e.$ref&&s.ignoreKeywordsWithRef&&(0,Ts.schemaHasRulesButRef)(e,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function JV(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ts.checkStrictMode)(t,"default is ignored in the schema root")}function QV(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,LV.resolveUrl)(t.baseId,e))}function XV(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function wT({gen:t,schemaEnv:e,schema:r,errSchemaPath:s,opts:i}){let n=r.$comment;if(i.$comment===!0)t.code((0,B._)`${Y.default.self}.logger.log(${n})`);else if(typeof i.$comment=="function"){let a=(0,B.str)`${s}/$comment`,o=t.scopeValue("root",{ref:e.root});t.code((0,B._)`${Y.default.self}.opts.$comment(${n}, ${a}, ${o}.schema)`)}}function ZV(t){let{gen:e,schemaEnv:r,validateName:s,ValidationError:i,opts:n}=t;r.$async?e.if((0,B._)`${Y.default.errors} === 0`,()=>e.return(Y.default.data),()=>e.throw((0,B._)`new ${i}(${Y.default.vErrors})`)):(e.assign((0,B._)`${s}.errors`,Y.default.vErrors),n.unevaluated&&ez(t),e.return((0,B._)`${Y.default.errors} === 0`))}function ez({gen:t,evaluated:e,props:r,items:s}){r instanceof B.Name&&t.assign((0,B._)`${e}.props`,r),s instanceof B.Name&&t.assign((0,B._)`${e}.items`,s)}function ET(t,e,r,s){let{gen:i,schema:n,data:a,allErrors:o,opts:u,self:l}=t,{RULES:c}=l;if(n.$ref&&(u.ignoreKeywordsWithRef||!(0,Ts.schemaHasRulesButRef)(n,c))){i.block(()=>CT(t,"$ref",c.all.$ref.definition));return}u.jtd||tz(t,e),i.block(()=>{for(let d of c.rules)f(d);f(c.post)});function f(d){!(0,sy.shouldUseGroup)(n,d)||(d.type?(i.if((0,Cf.checkDataType)(d.type,a,u.strictNumbers)),kT(t,d),e.length===1&&e[0]===d.type&&r&&(i.else(),(0,Cf.reportTypeError)(t)),i.endIf()):kT(t,d),o||i.if((0,B._)`${Y.default.errors} === ${s||0}`))}}function kT(t,e){let{gen:r,schema:s,opts:{useDefaults:i}}=t;i&&(0,BV.assignDefaults)(t,e.type),r.block(()=>{for(let n of e.rules)(0,sy.shouldUseRule)(s,n)&&CT(t,n.keyword,n.definition,e.type)})}function tz(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(rz(t,e),t.opts.allowUnionTypes||sz(t,e),iz(t,t.dataTypes))}function rz(t,e){if(!!e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{DT(t.dataTypes,r)||ny(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),t.dataTypes=t.dataTypes.filter(r=>DT(e,r))}}function sz(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&ny(t,"use allowUnionTypes to allow union type keyword")}function iz(t,e){let r=t.self.RULES.all;for(let s in r){let i=r[s];if(typeof i=="object"&&(0,sy.shouldUseRule)(t.schema,i)){let{type:n}=i.definition;n.length&&!n.some(a=>nz(e,a))&&ny(t,`missing type "${n.join(",")}" for keyword "${s}"`)}}}function nz(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function DT(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function ny(t,e){e+=` at "${t.schemaEnv.baseId+t.errSchemaPath}" (strictTypes)`,(0,Ts.checkStrictMode)(t,e,t.opts.strictTypes)}var ay=class{constructor(e,r,s){if((0,Iu.validateKeywordUsage)(e,r,s),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=s,this.data=e.data,this.schema=e.schema[s],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ts.schemaRefOrVal)(e,this.schema,s,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",ST(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Iu.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${s} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",Y.default.errors))}result(e,r,s){this.failResult((0,B.not)(e),r,s)}failResult(e,r,s){this.gen.if(e),s?s():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,B.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,B._)`${r} !== undefined && (${(0,B.or)(this.invalid$data(),e)})`)}error(e,r,s){if(r){this.setParams(r),this._error(e,s),this.setParams({});return}this._error(e,s)}_error(e,r){(e?Mu.reportExtraError:Mu.reportError)(this,this.def.error,r)}$dataError(){(0,Mu.reportError)(this,this.def.$dataError||Mu.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Mu.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,s=B.nil){this.gen.block(()=>{this.check$data(e,s),r()})}check$data(e=B.nil,r=B.nil){if(!this.$data)return;let{gen:s,schemaCode:i,schemaType:n,def:a}=this;s.if((0,B.or)((0,B._)`${i} === undefined`,r)),e!==B.nil&&s.assign(e,!0),(n.length||a.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),e!==B.nil&&s.assign(e,!1)),s.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:s,def:i,it:n}=this;return(0,B.or)(a(),o());function a(){if(s.length){if(!(r instanceof B.Name))throw new Error("ajv implementation error");let u=Array.isArray(s)?s:[s];return(0,B._)`${(0,Cf.checkDataTypes)(u,r,n.opts.strictNumbers,Cf.DataType.Wrong)}`}return B.nil}function o(){if(i.validateSchema){let u=e.scopeValue("validate$data",{ref:i.validateSchema});return(0,B._)`!${u}(${r})`}return B.nil}}subschema(e,r){let s=(0,iy.getSubschema)(this.it,e);(0,iy.extendSubschemaData)(s,this.it,e),(0,iy.extendSubschemaMode)(s,e);let i={...this.it,...s,items:void 0,props:void 0};return WV(i,r),i}mergeEvaluated(e,r){let{it:s,gen:i}=this;!s.opts.unevaluated||(s.props!==!0&&e.props!==void 0&&(s.props=Ts.mergeEvaluated.props(i,e.props,s.props,r)),s.items!==!0&&e.items!==void 0&&(s.items=Ts.mergeEvaluated.items(i,e.items,s.items,r)))}mergeValidEvaluated(e,r){let{it:s,gen:i}=this;if(s.opts.unevaluated&&(s.props!==!0||s.items!==!0))return i.if(r,()=>this.mergeEvaluated(e,B.Name)),!0}};mi.KeywordCxt=ay;function CT(t,e,r,s){let i=new ay(t,r,e);"code"in r?r.code(i,s):i.$data&&r.validate?(0,Iu.funcKeywordCode)(i,r):"macro"in r?(0,Iu.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Iu.funcKeywordCode)(i,r)}var az=/^\/(?:[^~]|~0|~1)*$/,oz=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ST(t,{dataLevel:e,dataNames:r,dataPathArr:s}){let i,n;if(t==="")return Y.default.rootData;if(t[0]==="/"){if(!az.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,n=Y.default.rootData}else{let l=oz.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);let c=+l[1];if(i=l[2],i==="#"){if(c>=e)throw new Error(u("property/index",c));return s[e-c]}if(c>e)throw new Error(u("data",c));if(n=r[e-c],!i)return n}let a=n,o=i.split("/");for(let l of o)l&&(n=(0,B._)`${n}${(0,B.getProperty)((0,Ts.unescapeJsonPointer)(l))}`,a=(0,B._)`${a} && ${n}`);return a;function u(l,c){return`Cannot access ${l} ${c} levels up, current level is ${e}`}}mi.getData=ST});var uy=h(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var xT=class extends Error{constructor(e){super("validation failed");this.errors=e,this.ajv=this.validation=!0}};oy.default=xT});var fy=h(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});var ly=ju(),AT=class extends Error{constructor(e,r,s){super(s||`can't resolve reference ${r} from id ${e}`);this.missingRef=(0,ly.resolveUrl)(e,r),this.missingSchema=(0,ly.normalizeId)((0,ly.getFullPath)(this.missingRef))}};cy.default=AT});var py=h(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.resolveSchema=wr.getCompilingSchema=wr.resolveRef=wr.compileSchema=wr.SchemaEnv=void 0;var Lr=oe(),uz=uy(),hn=Os(),Hr=ju(),OT=we(),lz=Nu(),cz=ty(),qu=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let s;typeof e.schema=="object"&&(s=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,Hr.normalizeId)(s==null?void 0:s[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=s==null?void 0:s.$async,this.refs={}}};wr.SchemaEnv=qu;function dy(t){let e=TT.call(this,t);if(e)return e;let r=(0,Hr.getFullPath)(t.root.baseId),{es5:s,lines:i}=this.opts.code,{ownProperties:n}=this.opts,a=new Lr.CodeGen(this.scope,{es5:s,lines:i,ownProperties:n}),o;t.$async&&(o=a.scopeValue("Error",{ref:uz.default,code:(0,Lr._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");t.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:hn.default.data,parentData:hn.default.parentData,parentDataProperty:hn.default.parentDataProperty,dataNames:[hn.default.data],dataPathArr:[Lr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Lr.stringify)(t.schema)}:{ref:t.schema}),validateName:u,ValidationError:o,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:Lr.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Lr._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(t),(0,lz.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();c=`${a.scopeRefs(hn.default.scope)}return ${f}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let p=new Function(`${hn.default.self}`,`${hn.default.scope}`,c)(this,this.scope.get());if(this.scope.value(u,{ref:p}),p.errors=null,p.schema=t.schema,p.schemaEnv=t,t.$async&&(p.$async=!0),this.opts.code.source===!0&&(p.source={validateName:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:m,items:g}=l;p.evaluated={props:m instanceof Lr.Name?void 0:m,items:g instanceof Lr.Name?void 0:g,dynamicProps:m instanceof Lr.Name,dynamicItems:g instanceof Lr.Name},p.source&&(p.source.evaluated=(0,Lr.stringify)(p.evaluated))}return t.validate=p,t}catch(f){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),f}finally{this._compilations.delete(t)}}wr.compileSchema=dy;function fz(t,e,r){var s;r=(0,Hr.resolveUrl)(e,r);let i=t.refs[r];if(i)return i;let n=pz.call(this,t,r);if(n===void 0){let a=(s=t.localRefs)===null||s===void 0?void 0:s[r],{schemaId:o}=this.opts;a&&(n=new qu({schema:a,schemaId:o,root:t,baseId:e}))}if(n!==void 0)return t.refs[r]=dz.call(this,n)}wr.resolveRef=fz;function dz(t){return(0,Hr.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:dy.call(this,t)}function TT(t){for(let e of this._compilations)if(hz(e,t))return e}wr.getCompilingSchema=TT;function hz(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function pz(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||Sf.call(this,t,e)}function Sf(t,e){let r=cz.parse(e),s=(0,Hr._getFullPath)(r),i=(0,Hr.getFullPath)(t.baseId);if(Object.keys(t.schema).length>0&&s===i)return hy.call(this,r,t);let n=(0,Hr.normalizeId)(s),a=this.refs[n]||this.schemas[n];if(typeof a=="string"){let o=Sf.call(this,t,a);return typeof(o==null?void 0:o.schema)!="object"?void 0:hy.call(this,r,o)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||dy.call(this,a),n===(0,Hr.normalizeId)(e)){let{schema:o}=a,{schemaId:u}=this.opts,l=o[u];return l&&(i=(0,Hr.resolveUrl)(i,l)),new qu({schema:o,schemaId:u,root:t,baseId:i})}return hy.call(this,r,a)}}wr.resolveSchema=Sf;var mz=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function hy(t,{baseId:e,schema:r,root:s}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let o of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,OT.unescapeFragment)(o)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!mz.has(o)&&l&&(e=(0,Hr.resolveUrl)(e,l))}let n;if(typeof r!="boolean"&&r.$ref&&!(0,OT.schemaHasRulesButRef)(r,this.RULES)){let o=(0,Hr.resolveUrl)(e,r.$ref);n=Sf.call(this,s,o)}let{schemaId:a}=this.opts;if(n=n||new qu({schema:r,schemaId:a,root:s,baseId:e}),n.schema!==n.root.schema)return n}});var RT=h((Pce,gz)=>{gz.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var qT=h(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.CodeGen=Ct.Name=Ct.nil=Ct.stringify=Ct.str=Ct._=Ct.KeywordCxt=void 0;var yz=Nu();Object.defineProperty(Ct,"KeywordCxt",{enumerable:!0,get:function(){return yz.KeywordCxt}});var Ia=oe();Object.defineProperty(Ct,"_",{enumerable:!0,get:function(){return Ia._}});Object.defineProperty(Ct,"str",{enumerable:!0,get:function(){return Ia.str}});Object.defineProperty(Ct,"stringify",{enumerable:!0,get:function(){return Ia.stringify}});Object.defineProperty(Ct,"nil",{enumerable:!0,get:function(){return Ia.nil}});Object.defineProperty(Ct,"Name",{enumerable:!0,get:function(){return Ia.Name}});Object.defineProperty(Ct,"CodeGen",{enumerable:!0,get:function(){return Ia.CodeGen}});var vz=uy(),PT=fy(),bz=zg(),Bu=py(),_z=oe(),Lu=ju(),xf=Fu(),my=we(),$T=RT(),FT=(t,e)=>new RegExp(t,e);FT.code="new RegExp";var wz=["removeAdditional","useDefaults","coerceTypes"],Ez=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),kz={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},Dz={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},jT=200;function Cz(t){var e,r,s,i,n,a,o,u,l,c,f,d,p,m,g,b,y,w,k,O,P,I,z,T;let $=t.strict,F=(e=t.code)===null||e===void 0?void 0:e.optimize,S=F===!0||F===void 0?1:F||0,H=(s=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&s!==void 0?s:FT;return{strictSchema:(n=(i=t.strictSchema)!==null&&i!==void 0?i:$)!==null&&n!==void 0?n:!0,strictNumbers:(o=(a=t.strictNumbers)!==null&&a!==void 0?a:$)!==null&&o!==void 0?o:!0,strictTypes:(l=(u=t.strictTypes)!==null&&u!==void 0?u:$)!==null&&l!==void 0?l:"log",strictTuples:(f=(c=t.strictTuples)!==null&&c!==void 0?c:$)!==null&&f!==void 0?f:"log",strictRequired:(p=(d=t.strictRequired)!==null&&d!==void 0?d:$)!==null&&p!==void 0?p:!1,code:t.code?{...t.code,optimize:S,regExp:H}:{optimize:S,regExp:H},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:jT,loopEnum:(g=t.loopEnum)!==null&&g!==void 0?g:jT,meta:(b=t.meta)!==null&&b!==void 0?b:!0,messages:(y=t.messages)!==null&&y!==void 0?y:!0,inlineRefs:(w=t.inlineRefs)!==null&&w!==void 0?w:!0,schemaId:(k=t.schemaId)!==null&&k!==void 0?k:"$id",addUsedSchema:(O=t.addUsedSchema)!==null&&O!==void 0?O:!0,validateSchema:(P=t.validateSchema)!==null&&P!==void 0?P:!0,validateFormats:(I=t.validateFormats)!==null&&I!==void 0?I:!0,unicodeRegExp:(z=t.unicodeRegExp)!==null&&z!==void 0?z:!0,int32range:(T=t.int32range)!==null&&T!==void 0?T:!0}}var Af=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...Cz(e)};let{es5:r,lines:s}=this.opts.code;this.scope=new _z.ValueScope({scope:{},prefixes:Ez,es5:r,lines:s}),this.logger=Rz(e.logger);let i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,bz.getRules)(),IT.call(this,kz,e,"NOT SUPPORTED"),IT.call(this,Dz,e,"DEPRECATED","warn"),this._metaOpts=Oz.call(this),e.formats&&xz.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&Az.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),Sz.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:s}=this.opts,i=$T;s==="id"&&(i={...$T},i.id=i.$id,delete i.$id),r&&e&&this.addMetaSchema(i,i[s],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let s;if(typeof e=="string"){if(s=this.getSchema(e),!s)throw new Error(`no schema with key or ref "${e}"`)}else s=this.compile(e);let i=s(r);return"$async"in s||(this.errors=s.errors),i}compile(e,r){let s=this._addSchema(e,r);return s.validate||this._compileSchemaEnv(s)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:s}=this.opts;return i.call(this,e,r);async function i(c,f){await n.call(this,c.$schema);let d=this._addSchema(c,f);return d.validate||a.call(this,d)}async function n(c){c&&!this.getSchema(c)&&await i.call(this,{$ref:c},!0)}async function a(c){try{return this._compileSchemaEnv(c)}catch(f){if(!(f instanceof PT.default))throw f;return o.call(this,f),await u.call(this,f.missingSchema),a.call(this,c)}}function o({missingSchema:c,missingRef:f}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${f} cannot be resolved`)}async function u(c){let f=await l.call(this,c);this.refs[c]||await n.call(this,f.$schema),this.refs[c]||this.addSchema(f,c,r)}async function l(c){let f=this._loading[c];if(f)return f;try{return await(this._loading[c]=s(c))}finally{delete this._loading[c]}}}addSchema(e,r,s,i=this.opts.validateSchema){if(Array.isArray(e)){for(let a of e)this.addSchema(a,void 0,s,i);return this}let n;if(typeof e=="object"){let{schemaId:a}=this.opts;if(n=e[a],n!==void 0&&typeof n!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Lu.normalizeId)(r||n),this._checkUnique(r),this.schemas[r]=this._addSchema(e,s,r,i,!0),this}addMetaSchema(e,r,s=this.opts.validateSchema){return this.addSchema(e,r,!0,s),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let s;if(s=e.$schema,s!==void 0&&typeof s!="string")throw new Error("$schema must be a string");if(s=s||this.opts.defaultMeta||this.defaultMeta(),!s)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(s,e);if(!i&&r){let n="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(n);else throw new Error(n)}return i}getSchema(e){let r;for(;typeof(r=MT.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:s}=this.opts,i=new Bu.SchemaEnv({schema:{},schemaId:s});if(r=Bu.resolveSchema.call(this,i,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=MT.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let s=e[this.opts.schemaId];return s&&(s=(0,Lu.normalizeId)(s),delete this.schemas[s],delete this.refs[s]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let s;if(typeof e=="string")s=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=s);else if(typeof e=="object"&&r===void 0){if(r=e,s=r.keyword,Array.isArray(s)&&!s.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if($z.call(this,s,r),!r)return(0,my.eachItem)(s,n=>gy.call(this,n)),this;jz.call(this,r);let i={...r,type:(0,xf.getJSONTypes)(r.type),schemaType:(0,xf.getJSONTypes)(r.schemaType)};return(0,my.eachItem)(s,i.type.length===0?n=>gy.call(this,n,i):n=>i.type.forEach(a=>gy.call(this,n,i,a))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let s of r.rules){let i=s.rules.findIndex(n=>n.keyword===e);i>=0&&s.rules.splice(i,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:s="data"}={}){return!e||e.length===0?"No errors":e.map(i=>`${s}${i.instancePath} ${i.message}`).reduce((i,n)=>i+r+n)}$dataMetaSchema(e,r){let s=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let i of r){let n=i.split("/").slice(1),a=e;for(let o of n)a=a[o];for(let o in s){let u=s[o];if(typeof u!="object")continue;let{$data:l}=u.definition,c=a[o];l&&c&&(a[o]=NT(c))}}return e}_removeAllSchemas(e,r){for(let s in e){let i=e[s];(!r||r.test(s))&&(typeof i=="string"?delete e[s]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[s]))}}_addSchema(e,r,s,i=this.opts.validateSchema,n=this.opts.addUsedSchema){let a,{schemaId:o}=this.opts;if(typeof e=="object")a=e[o];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(u!==void 0)return u;s=(0,Lu.normalizeId)(a||s);let l=Lu.getSchemaRefs.call(this,e,s);return u=new Bu.SchemaEnv({schema:e,schemaId:o,meta:r,baseId:s,localRefs:l}),this._cache.set(u.schema,u),n&&!s.startsWith("#")&&(s&&this._checkUnique(s),this.refs[s]=u),i&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):Bu.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{Bu.compileSchema.call(this,e)}finally{this.opts=r}}};Ct.default=Af;Af.ValidationError=vz.default;Af.MissingRefError=PT.default;function IT(t,e,r,s="error"){for(let i in t){let n=i;n in e&&this.logger[s](`${r}: option ${i}. ${t[n]}`)}}function MT(t){return t=(0,Lu.normalizeId)(t),this.schemas[t]||this.refs[t]}function Sz(){let t=this.opts.schemas;if(!!t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function xz(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function Az(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function Oz(){let t={...this.opts};for(let e of wz)delete t[e];return t}var Tz={log(){},warn(){},error(){}};function Rz(t){if(t===!1)return Tz;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var Pz=/^[a-z_$][a-z0-9_$:-]*$/i;function $z(t,e){let{RULES:r}=this;if((0,my.eachItem)(t,s=>{if(r.keywords[s])throw new Error(`Keyword ${s} is already defined`);if(!Pz.test(s))throw new Error(`Keyword ${s} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function gy(t,e,r){var s;let i=e==null?void 0:e.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:n}=this,a=i?n.post:n.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},n.rules.push(a)),n.keywords[t]=!0,!e)return;let o={keyword:t,definition:{...e,type:(0,xf.getJSONTypes)(e.type),schemaType:(0,xf.getJSONTypes)(e.schemaType)}};e.before?Fz.call(this,a,o,e.before):a.rules.push(o),n.all[t]=o,(s=e.implements)===null||s===void 0||s.forEach(u=>this.addKeyword(u))}function Fz(t,e,r){let s=t.rules.findIndex(i=>i.keyword===r);s>=0?t.rules.splice(s,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function jz(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=NT(e)),t.validateSchema=this.compile(e,!0))}var Iz={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function NT(t){return{anyOf:[t,Iz]}}});var BT=h(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var Mz={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};yy.default=Mz});var GT=h(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.callRef=pn.getValidate=void 0;var Nz=fy(),LT=_r(),Qt=oe(),Ma=Os(),HT=py(),Of=we(),qz={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:s}=t,{baseId:i,schemaEnv:n,validateName:a,opts:o,self:u}=s,{root:l}=n;if((r==="#"||r==="#/")&&i===l.baseId)return f();let c=HT.resolveRef.call(u,l,i,r);if(c===void 0)throw new Nz.default(i,r);if(c instanceof HT.SchemaEnv)return d(c);return p(c);function f(){if(n===l)return Tf(t,a,n,n.$async);let m=e.scopeValue("root",{ref:l});return Tf(t,(0,Qt._)`${m}.validate`,l,l.$async)}function d(m){let g=UT(t,m);Tf(t,g,m,m.$async)}function p(m){let g=e.scopeValue("schema",o.code.source===!0?{ref:m,code:(0,Qt.stringify)(m)}:{ref:m}),b=e.name("valid"),y=t.subschema({schema:m,dataTypes:[],schemaPath:Qt.nil,topSchemaRef:g,errSchemaPath:r},b);t.mergeEvaluated(y),t.ok(b)}}};function UT(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,Qt._)`${r.scopeValue("wrapper",{ref:e})}.validate`}pn.getValidate=UT;function Tf(t,e,r,s){let{gen:i,it:n}=t,{allErrors:a,schemaEnv:o,opts:u}=n,l=u.passContext?Ma.default.this:Qt.nil;s?c():f();function c(){if(!o.$async)throw new Error("async schema referenced by sync schema");let m=i.let("valid");i.try(()=>{i.code((0,Qt._)`await ${(0,LT.callValidateCode)(t,e,l)}`),p(e),a||i.assign(m,!0)},g=>{i.if((0,Qt._)`!(${g} instanceof ${n.ValidationError})`,()=>i.throw(g)),d(g),a||i.assign(m,!1)}),t.ok(m)}function f(){t.result((0,LT.callValidateCode)(t,e,l),()=>p(e),()=>d(e))}function d(m){let g=(0,Qt._)`${m}.errors`;i.assign(Ma.default.vErrors,(0,Qt._)`${Ma.default.vErrors} === null ? ${g} : ${Ma.default.vErrors}.concat(${g})`),i.assign(Ma.default.errors,(0,Qt._)`${Ma.default.vErrors}.length`)}function p(m){var g;if(!n.opts.unevaluated)return;let b=(g=r==null?void 0:r.validate)===null||g===void 0?void 0:g.evaluated;if(n.props!==!0)if(b&&!b.dynamicProps)b.props!==void 0&&(n.props=Of.mergeEvaluated.props(i,b.props,n.props));else{let y=i.var("props",(0,Qt._)`${m}.evaluated.props`);n.props=Of.mergeEvaluated.props(i,y,n.props,Qt.Name)}if(n.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(n.items=Of.mergeEvaluated.items(i,b.items,n.items));else{let y=i.var("items",(0,Qt._)`${m}.evaluated.items`);n.items=Of.mergeEvaluated.items(i,y,n.items,Qt.Name)}}}pn.callRef=Tf;pn.default=qz});var VT=h(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var Bz=BT(),Lz=GT(),Hz=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Bz.default,Lz.default];vy.default=Hz});var zT=h(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var Rf=oe(),gi=Rf.operators,Pf={maximum:{okStr:"<=",ok:gi.LTE,fail:gi.GT},minimum:{okStr:">=",ok:gi.GTE,fail:gi.LT},exclusiveMaximum:{okStr:"<",ok:gi.LT,fail:gi.GTE},exclusiveMinimum:{okStr:">",ok:gi.GT,fail:gi.LTE}},Uz={message:({keyword:t,schemaCode:e})=>(0,Rf.str)`must be ${Pf[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Rf._)`{comparison: ${Pf[t].okStr}, limit: ${e}}`},Gz={keyword:Object.keys(Pf),type:"number",schemaType:"number",$data:!0,error:Uz,code(t){let{keyword:e,data:r,schemaCode:s}=t;t.fail$data((0,Rf._)`${r} ${Pf[e].fail} ${s} || isNaN(${r})`)}};by.default=Gz});var WT=h(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var Hu=oe(),Vz={message:({schemaCode:t})=>(0,Hu.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Hu._)`{multipleOf: ${t}}`},zz={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Vz,code(t){let{gen:e,data:r,schemaCode:s,it:i}=t,n=i.opts.multipleOfPrecision,a=e.let("res"),o=n?(0,Hu._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${n}`:(0,Hu._)`${a} !== parseInt(${a})`;t.fail$data((0,Hu._)`(${s} === 0 || (${a} = ${r}/${s}, ${o}))`)}};_y.default=zz});var YT=h(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});function KT(t){let e=t.length,r=0,s=0,i;for(;s<e;)r++,i=t.charCodeAt(s++),i>=55296&&i<=56319&&s<e&&(i=t.charCodeAt(s),(i&64512)==56320&&s++);return r}wy.default=KT;KT.code='require("ajv/dist/runtime/ucs2length").default'});var JT=h(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var mn=oe(),Wz=we(),Kz=YT(),Yz={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,mn.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,mn._)`{limit: ${t}}`},Jz={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Yz,code(t){let{keyword:e,data:r,schemaCode:s,it:i}=t,n=e==="maxLength"?mn.operators.GT:mn.operators.LT,a=i.opts.unicode===!1?(0,mn._)`${r}.length`:(0,mn._)`${(0,Wz.useFunc)(t.gen,Kz.default)}(${r})`;t.fail$data((0,mn._)`${a} ${n} ${s}`)}};Ey.default=Jz});var QT=h(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var Qz=_r(),$f=oe(),Xz={message:({schemaCode:t})=>(0,$f.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,$f._)`{pattern: ${t}}`},Zz={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Xz,code(t){let{data:e,$data:r,schema:s,schemaCode:i,it:n}=t,a=n.opts.unicodeRegExp?"u":"",o=r?(0,$f._)`(new RegExp(${i}, ${a}))`:(0,Qz.usePattern)(t,s);t.fail$data((0,$f._)`!${o}.test(${e})`)}};ky.default=Zz});var XT=h(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var Uu=oe(),eW={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,Uu.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,Uu._)`{limit: ${t}}`},tW={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:eW,code(t){let{keyword:e,data:r,schemaCode:s}=t,i=e==="maxProperties"?Uu.operators.GT:Uu.operators.LT;t.fail$data((0,Uu._)`Object.keys(${r}).length ${i} ${s}`)}};Dy.default=tW});var ZT=h(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var Gu=_r(),Vu=oe(),rW=we(),sW={message:({params:{missingProperty:t}})=>(0,Vu.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Vu._)`{missingProperty: ${t}}`},iW={keyword:"required",type:"object",schemaType:"array",$data:!0,error:sW,code(t){let{gen:e,schema:r,schemaCode:s,data:i,$data:n,it:a}=t,{opts:o}=a;if(!n&&r.length===0)return;let u=r.length>=o.loopRequired;if(a.allErrors?l():c(),o.strictRequired){let p=t.parentSchema.properties,{definedProperties:m}=t.it;for(let g of r)if((p==null?void 0:p[g])===void 0&&!m.has(g)){let b=a.schemaEnv.baseId+a.errSchemaPath,y=`required property "${g}" is not defined at "${b}" (strictRequired)`;(0,rW.checkStrictMode)(a,y,a.opts.strictRequired)}}function l(){if(u||n)t.block$data(Vu.nil,f);else for(let p of r)(0,Gu.checkReportMissingProp)(t,p)}function c(){let p=e.let("missing");if(u||n){let m=e.let("valid",!0);t.block$data(m,()=>d(p,m)),t.ok(m)}else e.if((0,Gu.checkMissingProp)(t,r,p)),(0,Gu.reportMissingProp)(t,p),e.else()}function f(){e.forOf("prop",s,p=>{t.setParams({missingProperty:p}),e.if((0,Gu.noPropertyInData)(e,i,p,o.ownProperties),()=>t.error())})}function d(p,m){t.setParams({missingProperty:p}),e.forOf(p,s,()=>{e.assign(m,(0,Gu.propertyInData)(e,i,p,o.ownProperties)),e.if((0,Vu.not)(m),()=>{t.error(),e.break()})},Vu.nil)}}};Cy.default=iW});var eR=h(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var zu=oe(),nW={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,zu.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,zu._)`{limit: ${t}}`},aW={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:nW,code(t){let{keyword:e,data:r,schemaCode:s}=t,i=e==="maxItems"?zu.operators.GT:zu.operators.LT;t.fail$data((0,zu._)`${r}.length ${i} ${s}`)}};Sy.default=aW});var Ff=h(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var tR=ey();tR.code='require("ajv/dist/runtime/equal").default';xy.default=tR});var rR=h(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var Ay=Fu(),St=oe(),oW=we(),uW=Ff(),lW={message:({params:{i:t,j:e}})=>(0,St.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,St._)`{i: ${t}, j: ${e}}`},cW={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:lW,code(t){let{gen:e,data:r,$data:s,schema:i,parentSchema:n,schemaCode:a,it:o}=t;if(!s&&!i)return;let u=e.let("valid"),l=n.items?(0,Ay.getSchemaTypes)(n.items):[];t.block$data(u,c,(0,St._)`${a} === false`),t.ok(u);function c(){let m=e.let("i",(0,St._)`${r}.length`),g=e.let("j");t.setParams({i:m,j:g}),e.assign(u,!0),e.if((0,St._)`${m} > 1`,()=>(f()?d:p)(m,g))}function f(){return l.length>0&&!l.some(m=>m==="object"||m==="array")}function d(m,g){let b=e.name("item"),y=(0,Ay.checkDataTypes)(l,b,o.opts.strictNumbers,Ay.DataType.Wrong),w=e.const("indices",(0,St._)`{}`);e.for((0,St._)`;${m}--;`,()=>{e.let(b,(0,St._)`${r}[${m}]`),e.if(y,(0,St._)`continue`),l.length>1&&e.if((0,St._)`typeof ${b} == "string"`,(0,St._)`${b} += "_"`),e.if((0,St._)`typeof ${w}[${b}] == "number"`,()=>{e.assign(g,(0,St._)`${w}[${b}]`),t.error(),e.assign(u,!1).break()}).code((0,St._)`${w}[${b}] = ${m}`)})}function p(m,g){let b=(0,oW.useFunc)(e,uW.default),y=e.name("outer");e.label(y).for((0,St._)`;${m}--;`,()=>e.for((0,St._)`${g} = ${m}; ${g}--;`,()=>e.if((0,St._)`${b}(${r}[${m}], ${r}[${g}])`,()=>{t.error(),e.assign(u,!1).break(y)})))}}};Oy.default=cW});var sR=h(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var Ty=oe(),fW=we(),dW=Ff(),hW={message:"must be equal to constant",params:({schemaCode:t})=>(0,Ty._)`{allowedValue: ${t}}`},pW={keyword:"const",$data:!0,error:hW,code(t){let{gen:e,data:r,$data:s,schemaCode:i,schema:n}=t;s||n&&typeof n=="object"?t.fail$data((0,Ty._)`!${(0,fW.useFunc)(e,dW.default)}(${r}, ${i})`):t.fail((0,Ty._)`${n} !== ${r}`)}};Ry.default=pW});var iR=h(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var Wu=oe(),mW=we(),gW=Ff(),yW={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,Wu._)`{allowedValues: ${t}}`},vW={keyword:"enum",schemaType:"array",$data:!0,error:yW,code(t){let{gen:e,data:r,$data:s,schema:i,schemaCode:n,it:a}=t;if(!s&&i.length===0)throw new Error("enum must have non-empty array");let o=i.length>=a.opts.loopEnum,u=(0,mW.useFunc)(e,gW.default),l;if(o||s)l=e.let("valid"),t.block$data(l,c);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=e.const("vSchema",n);l=(0,Wu.or)(...i.map((p,m)=>f(d,m)))}t.pass(l);function c(){e.assign(l,!1),e.forOf("v",n,d=>e.if((0,Wu._)`${u}(${r}, ${d})`,()=>e.assign(l,!0).break()))}function f(d,p){let m=i[p];return typeof m=="object"&&m!==null?(0,Wu._)`${u}(${r}, ${d}[${p}])`:(0,Wu._)`${r} === ${m}`}}};Py.default=vW});var nR=h($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var bW=zT(),_W=WT(),wW=JT(),EW=QT(),kW=XT(),DW=ZT(),CW=eR(),SW=rR(),xW=sR(),AW=iR(),OW=[bW.default,_W.default,wW.default,EW.default,kW.default,DW.default,CW.default,SW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},xW.default,AW.default];$y.default=OW});var jy=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.validateAdditionalItems=void 0;var gn=oe(),Fy=we(),TW={message:({params:{len:t}})=>(0,gn.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,gn._)`{limit: ${t}}`},RW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:TW,code(t){let{parentSchema:e,it:r}=t,{items:s}=e;if(!Array.isArray(s)){(0,Fy.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}aR(t,s)}};function aR(t,e){let{gen:r,schema:s,data:i,keyword:n,it:a}=t;a.items=!0;let o=r.const("len",(0,gn._)`${i}.length`);if(s===!1)t.setParams({len:e.length}),t.pass((0,gn._)`${o} <= ${e.length}`);else if(typeof s=="object"&&!(0,Fy.alwaysValidSchema)(a,s)){let l=r.var("valid",(0,gn._)`${o} <= ${e.length}`);r.if((0,gn.not)(l),()=>u(l)),t.ok(l)}function u(l){r.forRange("i",e.length,o,c=>{t.subschema({keyword:n,dataProp:c,dataPropType:Fy.Type.Num},l),a.allErrors||r.if((0,gn.not)(l),()=>r.break())})}}Ku.validateAdditionalItems=aR;Ku.default=RW});var Iy=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.validateTuple=void 0;var oR=oe(),jf=we(),PW=_r(),$W={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return uR(t,"additionalItems",e);r.items=!0,!(0,jf.alwaysValidSchema)(r,e)&&t.ok((0,PW.validateArray)(t))}};function uR(t,e,r=t.schema){let{gen:s,parentSchema:i,data:n,keyword:a,it:o}=t;c(i),o.opts.unevaluated&&r.length&&o.items!==!0&&(o.items=jf.mergeEvaluated.items(s,r.length,o.items));let u=s.name("valid"),l=s.const("len",(0,oR._)`${n}.length`);r.forEach((f,d)=>{(0,jf.alwaysValidSchema)(o,f)||(s.if((0,oR._)`${l} > ${d}`,()=>t.subschema({keyword:a,schemaProp:d,dataProp:d},u)),t.ok(u))});function c(f){let{opts:d,errSchemaPath:p}=o,m=r.length,g=m===f.minItems&&(m===f.maxItems||f[e]===!1);if(d.strictTuples&&!g){let b=`"${a}" is ${m}-tuple, but minItems or maxItems/${e} are not specified or different at path "${p}"`;(0,jf.checkStrictMode)(o,b,d.strictTuples)}}}Yu.validateTuple=uR;Yu.default=$W});var lR=h(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});var FW=Iy(),jW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,FW.validateTuple)(t,"items")};My.default=jW});var fR=h(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var cR=oe(),IW=we(),MW=_r(),NW=jy(),qW={message:({params:{len:t}})=>(0,cR.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,cR._)`{limit: ${t}}`},BW={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:qW,code(t){let{schema:e,parentSchema:r,it:s}=t,{prefixItems:i}=r;s.items=!0,!(0,IW.alwaysValidSchema)(s,e)&&(i?(0,NW.validateAdditionalItems)(t,i):t.ok((0,MW.validateArray)(t)))}};Ny.default=BW});var dR=h(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var Er=oe(),If=we(),LW={message:({params:{min:t,max:e}})=>e===void 0?(0,Er.str)`must contain at least ${t} valid item(s)`:(0,Er.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Er._)`{minContains: ${t}}`:(0,Er._)`{minContains: ${t}, maxContains: ${e}}`},HW={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:LW,code(t){let{gen:e,schema:r,parentSchema:s,data:i,it:n}=t,a,o,{minContains:u,maxContains:l}=s;n.opts.next?(a=u===void 0?1:u,o=l):a=1;let c=e.const("len",(0,Er._)`${i}.length`);if(t.setParams({min:a,max:o}),o===void 0&&a===0){(0,If.checkStrictMode)(n,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&a>o){(0,If.checkStrictMode)(n,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,If.alwaysValidSchema)(n,r)){let g=(0,Er._)`${c} >= ${a}`;o!==void 0&&(g=(0,Er._)`${g} && ${c} <= ${o}`),t.pass(g);return}n.items=!0;let f=e.name("valid");o===void 0&&a===1?p(f,()=>e.if(f,()=>e.break())):a===0?(e.let(f,!0),o!==void 0&&e.if((0,Er._)`${i}.length > 0`,d)):(e.let(f,!1),d()),t.result(f,()=>t.reset());function d(){let g=e.name("_valid"),b=e.let("count",0);p(g,()=>e.if(g,()=>m(b)))}function p(g,b){e.forRange("i",0,c,y=>{t.subschema({keyword:"contains",dataProp:y,dataPropType:If.Type.Num,compositeRule:!0},g),b()})}function m(g){e.code((0,Er._)`${g}++`),o===void 0?e.if((0,Er._)`${g} >= ${a}`,()=>e.assign(f,!0).break()):(e.if((0,Er._)`${g} > ${o}`,()=>e.assign(f,!1).break()),a===1?e.assign(f,!0):e.if((0,Er._)`${g} >= ${a}`,()=>e.assign(f,!0)))}}};qy.default=HW});var mR=h(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.validateSchemaDeps=os.validatePropertyDeps=os.error=void 0;var By=oe(),UW=we(),Ju=_r();os.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let s=e===1?"property":"properties";return(0,By.str)`must have ${s} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:s}})=>(0,By._)`{property: ${t},
|
|
87
87
|
missingProperty: ${s},
|
|
88
88
|
depsCount: ${e},
|
|
89
|
-
deps: ${r}}`};var UW={keyword:"dependencies",type:"object",schemaType:"object",error:os.error,code(t){let[e,r]=GW(t);dR(t,e),hR(t,r)}};function GW({schema:t}){let e={},r={};for(let s in t){if(s==="__proto__")continue;let i=Array.isArray(t[s])?e:r;i[s]=t[s]}return[e,r]}function dR(t,e=t.schema){let{gen:r,data:s,it:i}=t;if(Object.keys(e).length===0)return;let n=r.let("missing");for(let a in e){let o=e[a];if(o.length===0)continue;let u=(0,Ju.propertyInData)(r,s,a,i.opts.ownProperties);t.setParams({property:a,depsCount:o.length,deps:o.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of o)(0,Ju.checkReportMissingProp)(t,l)}):(r.if((0,qy._)`${u} && (${(0,Ju.checkMissingProp)(t,o,n)})`),(0,Ju.reportMissingProp)(t,n),r.else())}}os.validatePropertyDeps=dR;function hR(t,e=t.schema){let{gen:r,data:s,keyword:i,it:n}=t,a=r.name("valid");for(let o in e)(0,HW.alwaysValidSchema)(n,e[o])||(r.if((0,Ju.propertyInData)(r,s,o,n.opts.ownProperties),()=>{let u=t.subschema({keyword:i,schemaProp:o},a);t.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),t.ok(a))}os.validateSchemaDeps=hR;os.default=UW});var gR=h(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});var mR=ae(),VW=we(),zW={message:"property name must be valid",params:({params:t})=>(0,mR._)`{propertyName: ${t.propertyName}}`},WW={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:zW,code(t){let{gen:e,schema:r,data:s,it:i}=t;if((0,VW.alwaysValidSchema)(i,r))return;let n=e.name("valid");e.forIn("key",s,a=>{t.setParams({propertyName:a}),t.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},n),e.if((0,mR.not)(n),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(n)}};By.default=WW});var Hy=h(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var Mf=_r(),Ur=ae(),KW=Os(),Nf=we(),YW={message:"must NOT have additional properties",params:({params:t})=>(0,Ur._)`{additionalProperty: ${t.additionalProperty}}`},JW={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:YW,code(t){let{gen:e,schema:r,parentSchema:s,data:i,errsCount:n,it:a}=t;if(!n)throw new Error("ajv implementation error");let{allErrors:o,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Nf.alwaysValidSchema)(a,r))return;let l=(0,Mf.allSchemaProperties)(s.properties),c=(0,Mf.allSchemaProperties)(s.patternProperties);f(),t.ok((0,Ur._)`${n} === ${KW.default.errors}`);function f(){e.forIn("key",i,b=>{!l.length&&!c.length?p(b):e.if(d(b),()=>p(b))})}function d(b){let y;if(l.length>8){let w=(0,Nf.schemaRefOrVal)(a,s.properties,"properties");y=(0,Mf.isOwnProperty)(e,w,b)}else l.length?y=(0,Ur.or)(...l.map(w=>(0,Ur._)`${b} === ${w}`)):y=Ur.nil;return c.length&&(y=(0,Ur.or)(y,...c.map(w=>(0,Ur._)`${(0,Mf.usePattern)(t,w)}.test(${b})`))),(0,Ur.not)(y)}function m(b){e.code((0,Ur._)`delete ${i}[${b}]`)}function p(b){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){m(b);return}if(r===!1){t.setParams({additionalProperty:b}),t.error(),o||e.break();return}if(typeof r=="object"&&!(0,Nf.alwaysValidSchema)(a,r)){let y=e.name("valid");u.removeAdditional==="failing"?(g(b,y,!1),e.if((0,Ur.not)(y),()=>{t.reset(),m(b)})):(g(b,y),o||e.if((0,Ur.not)(y),()=>e.break()))}}function g(b,y,w){let k={keyword:"additionalProperties",dataProp:b,dataPropType:Nf.Type.Str};w===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(k,y)}}};Ly.default=JW});var bR=h(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});var QW=Nu(),yR=_r(),Uy=we(),vR=Hy(),XW={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:s,data:i,it:n}=t;n.opts.removeAdditional==="all"&&s.additionalProperties===void 0&&vR.default.code(new QW.KeywordCxt(n,vR.default,"additionalProperties"));let a=(0,yR.allSchemaProperties)(r);for(let f of a)n.definedProperties.add(f);n.opts.unevaluated&&a.length&&n.props!==!0&&(n.props=Uy.mergeEvaluated.props(e,(0,Uy.toHash)(a),n.props));let o=a.filter(f=>!(0,Uy.alwaysValidSchema)(n,r[f]));if(o.length===0)return;let u=e.name("valid");for(let f of o)l(f)?c(f):(e.if((0,yR.propertyInData)(e,i,f,n.opts.ownProperties)),c(f),n.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(u);function l(f){return n.opts.useDefaults&&!n.compositeRule&&r[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};Gy.default=XW});var kR=h(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});var _R=_r(),qf=ae(),wR=we(),ER=we(),ZW={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:s,parentSchema:i,it:n}=t,{opts:a}=n,o=(0,_R.allSchemaProperties)(r),u=o.filter(g=>(0,wR.alwaysValidSchema)(n,r[g]));if(o.length===0||u.length===o.length&&(!n.opts.unevaluated||n.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,c=e.name("valid");n.props!==!0&&!(n.props instanceof qf.Name)&&(n.props=(0,ER.evaluatedPropsToName)(e,n.props));let{props:f}=n;d();function d(){for(let g of o)l&&m(g),n.allErrors?p(g):(e.var(c,!0),p(g),e.if(c))}function m(g){for(let b in l)new RegExp(g).test(b)&&(0,wR.checkStrictMode)(n,`property ${b} matches pattern ${g} (use allowMatchingProperties)`)}function p(g){e.forIn("key",s,b=>{e.if((0,qf._)`${(0,_R.usePattern)(t,g)}.test(${b})`,()=>{let y=u.includes(g);y||t.subschema({keyword:"patternProperties",schemaProp:g,dataProp:b,dataPropType:ER.Type.Str},c),n.opts.unevaluated&&f!==!0?e.assign((0,qf._)`${f}[${b}]`,!0):!y&&!n.allErrors&&e.if((0,qf.not)(c),()=>e.break())})})}}};Vy.default=ZW});var DR=h(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});var eK=we(),tK={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:s}=t;if((0,eK.alwaysValidSchema)(s,r)){t.fail();return}let i=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};zy.default=tK});var CR=h(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var rK=_r(),sK={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:rK.validateUnion,error:{message:"must match a schema in anyOf"}};Wy.default=sK});var SR=h(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});var Bf=ae(),iK=we(),nK={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,Bf._)`{passingSchemas: ${t.passing}}`},aK={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:nK,code(t){let{gen:e,schema:r,parentSchema:s,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&s.discriminator)return;let n=r,a=e.let("valid",!1),o=e.let("passing",null),u=e.name("_valid");t.setParams({passing:o}),e.block(l),t.result(a,()=>t.reset(),()=>t.error(!0));function l(){n.forEach((c,f)=>{let d;(0,iK.alwaysValidSchema)(i,c)?e.var(u,!0):d=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&e.if((0,Bf._)`${u} && ${a}`).assign(a,!1).assign(o,(0,Bf._)`[${o}, ${f}]`).else(),e.if(u,()=>{e.assign(a,!0),e.assign(o,f),d&&t.mergeEvaluated(d,Bf.Name)})})}}};Ky.default=aK});var xR=h(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});var oK=we(),uK={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=e.name("valid");r.forEach((n,a)=>{if((0,oK.alwaysValidSchema)(s,n))return;let o=t.subschema({keyword:"allOf",schemaProp:a},i);t.ok(i),t.mergeEvaluated(o)})}};Yy.default=uK});var TR=h(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});var Lf=ae(),AR=we(),lK={message:({params:t})=>(0,Lf.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Lf._)`{failingKeyword: ${t.ifClause}}`},cK={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:lK,code(t){let{gen:e,parentSchema:r,it:s}=t;r.then===void 0&&r.else===void 0&&(0,AR.checkStrictMode)(s,'"if" without "then" and "else" is ignored');let i=OR(s,"then"),n=OR(s,"else");if(!i&&!n)return;let a=e.let("valid",!0),o=e.name("_valid");if(u(),t.reset(),i&&n){let c=e.let("ifClause");t.setParams({ifClause:c}),e.if(o,l("then",c),l("else",c))}else i?e.if(o,l("then")):e.if((0,Lf.not)(o),l("else"));t.pass(a,()=>t.error(!0));function u(){let c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(c)}function l(c,f){return()=>{let d=t.subschema({keyword:c},o);e.assign(a,o),t.mergeValidEvaluated(d,a),f?e.assign(f,(0,Lf._)`${c}`):t.setParams({ifClause:c})}}}};function OR(t,e){let r=t.schema[e];return r!==void 0&&!(0,AR.alwaysValidSchema)(t,r)}Jy.default=cK});var RR=h(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});var fK=we(),dK={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,fK.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};Qy.default=dK});var PR=h(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});var hK=Fy(),pK=uR(),mK=jy(),gK=cR(),yK=fR(),vK=pR(),bK=gR(),_K=Hy(),wK=bR(),EK=kR(),kK=DR(),DK=CR(),CK=SR(),SK=xR(),xK=TR(),AK=RR();function OK(t=!1){let e=[kK.default,DK.default,CK.default,SK.default,xK.default,AK.default,bK.default,_K.default,vK.default,wK.default,EK.default];return t?e.push(pK.default,gK.default):e.push(hK.default,mK.default),e.push(yK.default),e}Xy.default=OK});var $R=h(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});var Qe=ae(),TK={message:({schemaCode:t})=>(0,Qe.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Qe._)`{format: ${t}}`},RK={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:TK,code(t,e){let{gen:r,data:s,$data:i,schema:n,schemaCode:a,it:o}=t,{opts:u,errSchemaPath:l,schemaEnv:c,self:f}=o;if(!u.validateFormats)return;i?d():m();function d(){let p=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),g=r.const("fDef",(0,Qe._)`${p}[${a}]`),b=r.let("fType"),y=r.let("format");r.if((0,Qe._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(b,(0,Qe._)`${g}.type || "string"`).assign(y,(0,Qe._)`${g}.validate`),()=>r.assign(b,(0,Qe._)`"string"`).assign(y,g)),t.fail$data((0,Qe.or)(w(),k()));function w(){return u.strictSchema===!1?Qe.nil:(0,Qe._)`${a} && !${y}`}function k(){let O=c.$async?(0,Qe._)`(${g}.async ? await ${y}(${s}) : ${y}(${s}))`:(0,Qe._)`${y}(${s})`,P=(0,Qe._)`(typeof ${y} == "function" ? ${O} : ${y}.test(${s}))`;return(0,Qe._)`${y} && ${y} !== true && ${b} === ${e} && !${P}`}}function m(){let p=f.formats[n];if(!p){w();return}if(p===!0)return;let[g,b,y]=k(p);g===e&&t.pass(O());function w(){if(u.strictSchema===!1){f.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${n}" ignored in schema at path "${l}"`}}function k(P){let I=P instanceof RegExp?(0,Qe.regexpCode)(P):u.code.formats?(0,Qe._)`${u.code.formats}${(0,Qe.getProperty)(n)}`:void 0,z=r.scopeValue("formats",{key:n,ref:P,code:I});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,Qe._)`${z}.validate`]:["string",P,z]}function O(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!c.$async)throw new Error("async format in sync schema");return(0,Qe._)`await ${y}(${s})`}return typeof b=="function"?(0,Qe._)`${y}(${s})`:(0,Qe._)`${y}.test(${s})`}}}};Zy.default=RK});var FR=h(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});var PK=$R(),$K=[PK.default];e0.default=$K});var jR=h(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.contentVocabulary=Na.metadataVocabulary=void 0;Na.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Na.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var MR=h(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});var FK=GT(),jK=iR(),IK=PR(),MK=FR(),IR=jR(),NK=[FK.default,jK.default,(0,IK.default)(),MK.default,IR.metadataVocabulary,IR.contentVocabulary];t0.default=NK});var NR=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.DiscrError=void 0;var qK;(function(t){t.Tag="tag",t.Mapping="mapping"})(qK=Qu.DiscrError||(Qu.DiscrError={}))});var qR=h(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});var qa=ae(),r0=NR(),BK={message:({params:{discrError:t,tagName:e}})=>t===r0.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,qa._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},LK={keyword:"discriminator",type:"object",schemaType:"object",error:BK,code(t){let{gen:e,data:r,schema:s,parentSchema:i,it:n}=t,{oneOf:a}=i;if(!n.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=s.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=e.let("valid",!1),l=e.const("tag",(0,qa._)`${r}${(0,qa.getProperty)(o)}`);e.if((0,qa._)`typeof ${l} == "string"`,()=>c(),()=>t.error(!1,{discrError:r0.DiscrError.Tag,tag:l,tagName:o})),t.ok(u);function c(){let m=d();e.if(!1);for(let p in m)e.elseIf((0,qa._)`${l} === ${p}`),e.assign(u,f(m[p]));e.else(),t.error(!1,{discrError:r0.DiscrError.Mapping,tag:l,tagName:o}),e.endIf()}function f(m){let p=e.name("valid"),g=t.subschema({keyword:"oneOf",schemaProp:m},p);return t.mergeEvaluated(g,qa.Name),p}function d(){var m;let p={},g=y(i),b=!0;for(let O=0;O<a.length;O++){let P=a[O],I=(m=P.properties)===null||m===void 0?void 0:m[o];if(typeof I!="object")throw new Error(`discriminator: oneOf schemas must have "properties/${o}"`);b=b&&(g||y(P)),w(I,O)}if(!b)throw new Error(`discriminator: "${o}" must be required`);return p;function y({required:O}){return Array.isArray(O)&&O.includes(o)}function w(O,P){if(O.const)k(O.const,P);else if(O.enum)for(let I of O.enum)k(I,P);else throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`)}function k(O,P){if(typeof O!="string"||O in p)throw new Error(`discriminator: "${o}" values must be unique strings`);p[O]=P}}}};s0.default=LK});var BR=h((vfe,HK)=>{HK.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var UR=h((at,HR)=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.CodeGen=at.Name=at.nil=at.stringify=at.str=at._=at.KeywordCxt=void 0;var UK=NT(),GK=MR(),VK=qR(),LR=BR(),zK=["/properties"],Hf="http://json-schema.org/draft-07/schema",i0=class extends UK.default{_addVocabularies(){super._addVocabularies(),GK.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(VK.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(LR,zK):LR;this.addMetaSchema(e,Hf,!1),this.refs["http://json-schema.org/schema"]=Hf}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Hf)?Hf:void 0)}};HR.exports=at=i0;Object.defineProperty(at,"__esModule",{value:!0});at.default=i0;var WK=Nu();Object.defineProperty(at,"KeywordCxt",{enumerable:!0,get:function(){return WK.KeywordCxt}});var Ba=ae();Object.defineProperty(at,"_",{enumerable:!0,get:function(){return Ba._}});Object.defineProperty(at,"str",{enumerable:!0,get:function(){return Ba.str}});Object.defineProperty(at,"stringify",{enumerable:!0,get:function(){return Ba.stringify}});Object.defineProperty(at,"nil",{enumerable:!0,get:function(){return Ba.nil}});Object.defineProperty(at,"Name",{enumerable:!0,get:function(){return Ba.Name}});Object.defineProperty(at,"CodeGen",{enumerable:!0,get:function(){return Ba.CodeGen}})});var VR=h((bfe,GR)=>{"use strict";GR.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"additionalProperties":n="must NOT have additional properties";break;case"anyOf":n='must match a schema in "anyOf"';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="must have propert",r==1?n+="y":n+="ies",n+=" "+i.params.deps+" when property "+i.params.property+" is present";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="must be equal to one of the allowed values";break;case"false schema":n="boolean schema is false";break;case"format":n='must match format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"maxItems":n="";var r=i.params.limit;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"maxLength":n="";var r=i.params.limit;n+="must NOT be longer than "+r+" character",r!=1&&(n+="s");break;case"maxProperties":n="";var r=i.params.limit;n+="must NOT have more than "+r+" propert",r==1?n+="y":n+="ies";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"minItems":n="";var r=i.params.limit;n+="must NOT have less than "+r+" item",r!=1&&(n+="s");break;case"minLength":n="";var r=i.params.limit;n+="must NOT be shorter than "+r+" character",r!=1&&(n+="s");break;case"minProperties":n="";var r=i.params.limit;n+="must NOT have less than "+r+" propert",r==1?n+="y":n+="ies";break;case"multipleOf":n="must be a multiple of "+i.params.multipleOf;break;case"not":n='must NOT be valid according to schema in "not"';break;case"oneOf":n='must match exactly one schema in "oneOf"';break;case"pattern":n='must match pattern "'+i.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="must have required property "+i.params.missingProperty;break;case"type":n="must be "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="must NOT have duplicate items (items ## "+i.params.j+" and "+i.params.i+" are identical)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}});var WR=h((_fe,zR)=>{"use strict";zR.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0643\u062B\u0631 \u0645\u0646 "+r+" \u0639\u0646\u0635\u0631";break;case"additionalProperties":n="\u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u062E\u0635\u0627\u0626\u0635 \u0625\u0636\u0627\u0641\u064A\u0629";break;case"anyOf":n='\u064A\u062C\u0628 \u0623\u0646 \u064A\u0648\u0627\u0641\u0642 \u0623\u062D\u062F \u0627\u0644\u0645\u062E\u0637\u0637\u0627\u062A \u0627\u0644\u0645\u0648\u062C\u0648\u062F\u0629 \u0641\u064A "anyOf"';break;case"const":n="\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u062B\u0627\u0628\u062A\u0627\u064B";break;case"contains":n="\u064A\u062C\u0628 \u0623\u0646 \u064A\u062D\u0648\u064A \u0639\u0646\u0635\u0631\u0627 \u0635\u062D\u064A\u062D";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+=" \u064A\u062C\u0628 \u0623\u0646 \u064A\u062D\u0648\u064A \u0627\u0644\u062E\u0635\u0627\u0626\u0635 "+i.params.deps+" \u0639\u0646\u062F\u0645\u0627 \u062A\u0643\u0648\u0646 \u0627\u0644\u062E\u0627\u0635\u064A\u0629 "+i.params.property+" \u0645\u0648\u062C\u0648\u062F\u0629";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='\u064A\u062C\u0628 \u0623\u0646 \u062A\u0645\u0631\u0631 \u0643\u0644\u0645\u0629 \u0627\u0644\u062A\u062D\u0642\u0642 \u0627\u0644\u0645\u0641\u062A\u0627\u062D\u064A\u0629 "'+i.keyword+'"'}break;case"enum":n="\u0642\u064A\u0645\u0629 \u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0645\u0633\u0627\u0648\u064A\u0629 \u0644\u0623\u062D\u062F \u0627\u0644\u0642\u064A\u0645 \u0627\u0644\u0645\u0639\u0631\u0641\u0629 \u0645\u0633\u0628\u0642\u0627\u064B";break;case"false schema":n="\u0627\u0644\u0645\u062E\u0637\u0637 \u0627\u0644\u0645\u0646\u0637\u0642\u064A \u063A\u064A\u0631 \u0635\u062D\u064A\u062D";break;case"format":n='\u064A\u062C\u0628 \u0623\u0646 \u064A\u0648\u0627\u0641\u0642 \u0627\u0644\u0635\u064A\u063A\u0629 "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 "+s;break;case"if":n='\u064A\u062C\u0628 \u0623\u0646 \u062A\u0648\u0627\u0641\u0642 \u0627\u0644\u0645\u062E\u0637\u0637 "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 "+s;break;case"maxItems":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0643\u062B\u0631 \u0645\u0646 "+r+" \u0639\u0646\u0635\u0631";break;case"maxLength":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0643\u062B\u0631 \u0645\u0646 "+r+" \u0645\u062D\u0631\u0641";break;case"maxProperties":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0643\u062B\u0631 \u0645\u0646 "+r+" \u062E\u0635\u0627\u0626\u0635";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 "+s;break;case"minItems":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0642\u0644 \u0645\u0646 "+r+" \u0639\u0646\u0635\u0631";break;case"minLength":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0642\u0644 \u0645\u0646 "+r+" \u0645\u062D\u0631\u0641";break;case"minProperties":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0642\u0644 \u0645\u0646 "+r+" \u062E\u0635\u0627\u0626\u0635";break;case"multipleOf":n=" \u064A\u062C\u0628 \u0623\u0646 \u064A\u062D\u0648\u064A \u0623\u0643\u062B\u0631 \u0645\u0646 "+i.params.multipleOf;break;case"not":n='\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u063A\u064A\u0631 \u0635\u062D\u064A\u062D \u0648\u0641\u0642\u0627\u064B \u0644\u0644\u0645\u062E\u0637\u0637 "not"';break;case"oneOf":n='\u064A\u062C\u0628 \u0623\u0646 \u064A\u0648\u0627\u0641\u0642 \u0645\u062E\u0637\u0637 \u0648\u0627\u062D\u062F \u0641\u0642\u0637 \u0645\u0648\u062C\u0648\u062F \u0641\u064A "oneOf"';break;case"pattern":n='\u064A\u062C\u0628 \u0623\u0646 \u064A\u0648\u0627\u0641\u0642 \u0627\u0644\u0646\u0645\u0637 "'+i.params.pattern+'"';break;case"patternRequired":n='\u064A\u062C\u0628 \u0623\u0646 \u064A\u062D\u0648\u064A \u062E\u0627\u0635\u064A\u0629 \u062A\u0648\u0627\u0641\u0642 \u0627\u0644\u0646\u0645\u0637 "'+i.params.missingPattern+'"';break;case"propertyNames":n="\u0627\u0633\u0645 \u0627\u0644\u062E\u0627\u0635\u064A\u0629 \u063A\u064A\u0631 \u0635\u0627\u0644\u062D";break;case"required":n="\u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u0625\u0644\u0632\u0627\u0645\u064A";break;case"type":n="\u0642\u064A\u0645\u0629 \u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u063A\u064A\u0631 \u0635\u0627\u0644\u062D\u0629";break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="\u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0639\u0646\u0627\u0635\u0631 \u0645\u0643\u0631\u0631\u0629 (\u0627\u0644\u0639\u0646\u0635\u0631 ## "+i.params.j+" \u0648 "+i.params.i+" \u0645\u062A\u0637\u0627\u0628\u0642\u0629)";break;default:n='\u064A\u062C\u0628 \u0623\u0646 \u062A\u0645\u0631\u0631 \u0643\u0644\u0645\u0629 \u0627\u0644\u062A\u062D\u0642\u0642 \u0627\u0644\u0645\u0641\u062A\u0627\u062D\u064A\u0629 "'+i.keyword+'"'}i.message=n}}});var YR=h((wfe,KR)=>{"use strict";KR.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="no ha de tenir m\xE9s de "+r+" element",r!=1&&(n+="s");break;case"additionalProperties":n="no ha de tenir propietats addicionals";break;case"anyOf":n='ha de coincidir amb algun esquema definit a "anyOf"';break;case"const":n="ha de ser igual a la constant";break;case"contains":n="ha de contenir un \xEDtem v\xE0lid";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="ha de contenir la propietat",r!=1&&(n+="s"),n+=" "+i.params.deps+" quan la propietat "+i.params.property+" \xE9s present";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='ha de passar la validaci\xF3 de la clau "'+i.keyword+'"'}break;case"enum":n="ha de ser igual a un dels valors predefinits";break;case"false schema":n="l\u2019esquema \xE9s fals";break;case"format":n='ha de coincidir amb el format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="ha de ser "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="ha de ser "+s;break;case"if":n='ha de correspondre\u2019s amb l\u2019esquema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="ha de ser "+s;break;case"maxItems":n="";var r=i.params.limit;n+="no ha de tenir m\xE9s de "+r+" \xEDtem",r!=1&&(n+="s");break;case"maxLength":n="";var r=i.params.limit;n+="no pot contenir m\xE9s de "+r+" car\xE0cter",r!=1&&(n+="s");break;case"maxProperties":n="";var r=i.params.limit;n+="no pot contenir m\xE9s de "+r+" propietat",r!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="ha de ser "+s;break;case"minItems":n="";var r=i.params.limit;n+="no ha de tenir menys de "+r+" \xEDtem",r!=1&&(n+="s");break;case"minLength":n="";var r=i.params.limit;n+="no pot contenir menys de "+r+" car\xE0cter",r!=1&&(n+="s");break;case"minProperties":n="";var r=i.params.limit;n+="no pot contenir menys de "+r+" propietat",r!=1&&(n+="s");break;case"multipleOf":n="ha de ser m\xFAltiple de "+i.params.multipleOf;break;case"not":n='no ha de ser v\xE0lid d\u2019acord amb l\u2019esquema definit a "not"';break;case"oneOf":n='ha de coincidir nom\xE9s amb un esquema definit a "oneOf"';break;case"pattern":n='ha de coincidir amb el patr\xF3 "'+i.params.pattern+'"';break;case"patternRequired":n='la propietat ha de coincidir amb el patr\xF3 "'+i.params.missingPattern+'"';break;case"propertyNames":n="la propietat no \xE9s v\xE0lida";break;case"required":n="ha de tenir la propietat requerida "+i.params.missingProperty;break;case"type":n="ha de ser del tipus "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no ha de tenir \xEDtems duplicats (els \xEDtems ## "+i.params.j+" i "+i.params.i+" s\xF3n id\xE8ntics)";break;default:n='ha de passar la validaci\xF3 de la clau "'+i.keyword+'"'}i.message=n}}});var QR=h((Efe,JR)=>{"use strict";JR.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="nem\u016F\u017Ee m\xEDt v\xEDc, ne\u017E "+r+" prv",r>=2&&r<=4?n+="ky":r!=1?n+="ek":n+="k\u016F";break;case"additionalProperties":n="nem\u016F\u017Ee m\xEDt dal\u0161\xED polo\u017Eky";break;case"anyOf":n='mus\xED vyhov\u011Bt alespo\u0148 jednomu sch\xE9matu v "anyOf"';break;case"const":n="mus\xED b\xFDt roven konstant\u011B";break;case"contains":n="mus\xED obsahovat prvek odpov\xEDdaj\xEDc\xED sch\xE9matu";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="mus\xED m\xEDt polo\u017E",r>=2&&r<=4?n+="ky":r!=1?n+="ek":n+="ka",n+=": "+i.params.deps+", pokud obsahuje "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='mus\xED vyhov\u011Bt "'+i.keyword+'" validaci'}break;case"enum":n="mus\xED b\xFDt rovno jedn\xE9 hodnot\u011B z v\xFD\u010Dtu";break;case"false schema":n="sch\xE9ma je false";break;case"format":n='mus\xED b\xFDt ve form\xE1tu "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED b\xFDt "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED b\xFDt "+s;break;case"if":n='mus\xED vyhov\u011Bt "'+i.params.failingKeyword+'" sch\xE9matu';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED b\xFDt "+s;break;case"maxItems":n="";var r=i.params.limit;n+="nesm\xED obsahovat v\xEDc ne\u017E "+r+" prv",r>=2&&r<=4?n+="ky":r!=1?n+="ek":n+="k\u016F";break;case"maxLength":n="";var r=i.params.limit;n+="nesm\xED b\xFDt del\u0161\xED ne\u017E "+r+" zna",r>=2&&r<=4?n+="ky":r!=1?n+="k":n+="k\u016F";break;case"maxProperties":n="";var r=i.params.limit;n+="nesm\xED m\xEDt v\xEDc ne\u017E "+r+" polo\u017E",r>=2&&r<=4?n+="ky":r!=1?n+="ek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED b\xFDt "+s;break;case"minItems":n="";var r=i.params.limit;n+="nesm\xED obsahovat m\xE9n\u011B ne\u017E "+r+" prv",r>=2&&r<=4?n+="ky":r!=1?n+="ek":n+="k\u016F";break;case"minLength":n="";var r=i.params.limit;n+="nesm\xED b\xFDt krat\u0161\xED ne\u017E "+r+" zna",r>=2&&r<=4?n+="ky":r!=1?n+="k":n+="k\u016F";break;case"minProperties":n="";var r=i.params.limit;n+="nesm\xED m\xEDt m\xE9n\u011B ne\u017E "+r+" polo\u017E",r>=2&&r<=4?n+="ky":r!=1?n+="ek":n+="ka";break;case"multipleOf":n="mus\xED b\xFDt n\xE1sobkem "+i.params.multipleOf;break;case"not":n='nesm\xED vyhov\u011Bt sch\xE9matu v "not"';break;case"oneOf":n='mus\xED vyhov\u011Bt pr\xE1v\u011B jednomu sch\xE9matu v "oneOf"';break;case"pattern":n='mus\xED vyhov\u011Bt regul\xE1rn\xEDmu v\xFDrazu "'+i.params.pattern+'"';break;case"patternRequired":n='mus\xED obsahovat polo\u017Eku vyhovuj\xEDc\xED regul\xE1rn\xEDmu v\xFDrazu "'+i.params.missingPattern+'"';break;case"propertyNames":n="n\xE1zev polo\u017Eky nen\xED platn\xFD";break;case"required":n="mus\xED obsahovat po\u017Eadovanou polo\u017Eku "+i.params.missingProperty;break;case"type":n="mus\xED b\xFDt "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesm\xED obsahovat duplicitn\xED prvky (prvky ## "+i.params.j+" a "+i.params.i+" jsou identick\xE9)";break;default:n='mus\xED vyhov\u011Bt "'+i.keyword+'" validaci'}i.message=n}}});var ZR=h((kfe,XR)=>{"use strict";XR.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="darf nicht mehr als "+r+" Element",r!=1&&(n+="e"),n+=" enthalten";break;case"additionalProperties":n="darf keine zus\xE4tzlichen Attribute haben";break;case"anyOf":n='muss einem der Schemata in "anyOf" entsprechen';break;case"const":n="muss gleich der Konstanten sein";break;case"contains":n="muss ein valides Element enthalten";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="muss Attribut",r!=1&&(n+="e"),n+=" "+i.params.deps+" aufweisen, wenn Attribut "+i.params.property+" gesetzt ist";break;case"discriminator":switch(i.params.error){case"tag":n='der Tag "'+i.params.tag+'" muss eine Zeichenkette sein';break;case"mapping":n='der Wert vom Tag "'+i.params.tag+'" muss im oneOf enthalten sein';break;default:n='muss die Validierung "'+i.keyword+'" bestehen'}break;case"enum":n="muss einem der vorgegebenen Werte entsprechen";break;case"false schema":n="boolesches Schema ist falsch";break;case"format":n='muss diesem Format entsprechen: "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="muss "+s+" sein";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="muss "+s+" sein";break;case"if":n='muss dem Schema "'+i.params.failingKeyword+'" entsprechen';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="muss "+s+" sein";break;case"maxItems":n="";var r=i.params.limit;n+="darf nicht mehr als "+r+" Element",r!=1&&(n+="e"),n+=" haben";break;case"maxLength":n="";var r=i.params.limit;n+="darf nicht l\xE4nger als "+r+" Zeichen sein";break;case"maxProperties":n="";var r=i.params.limit;n+="darf nicht mehr als "+r+" Attribut",r!=1&&(n+="e"),n+=" haben";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="muss "+s+" sein";break;case"minItems":n="";var r=i.params.limit;n+="darf nicht weniger als "+r+" Element",r!=1&&(n+="e"),n+=" haben";break;case"minLength":n="";var r=i.params.limit;n+="darf nicht k\xFCrzer als "+r+" Zeichen sein";break;case"minProperties":n="";var r=i.params.limit;n+="darf nicht weniger als "+r+" Attribut",r!=1&&(n+="e"),n+=" haben";break;case"multipleOf":n="muss ein Vielfaches von "+i.params.multipleOf+" sein";break;case"not":n='muss dem in "not" angegebenen Schema widersprechen';break;case"oneOf":n='muss genau einem der Schemata in "oneOf" entsprechen';break;case"pattern":n='muss diesem Muster entsprechen: "'+i.params.pattern+'"';break;case"patternRequired":n='muss ein Attribut nach folgendem Muster haben "'+i.params.missingPattern+'"';break;case"propertyNames":n="Attributname ist ung\xFCltig";break;case"required":n="muss das erforderliche Attribut "+i.params.missingProperty+" enthalten";break;case"type":n="muss sein: "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="darf nicht mehr als "+r+" Element",r!=1&&(n+="e"),n+=" haben";break;case"unevaluatedProperties":n="darf keine unausgewerteten Attribute haben";break;case"uniqueItems":n="darf keine Duplikate enthalten (Elemente #"+i.params.j+" und #"+i.params.i+" sind gleich)";break;default:n='muss die Validierung "'+i.keyword+'" bestehen'}i.message=n}}});var tP=h((Dfe,eP)=>{"use strict";eP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="no debe tener m\xE1s de "+r+" elemento",r!=1&&(n+="s");break;case"additionalProperties":n="no debe tener propiedades adicionales";break;case"anyOf":n='debe coincidir con alg\xFAn esquema en "anyOf"';break;case"const":n="debe ser igual a la constante";break;case"contains":n="debe contener un elemento v\xE1lido";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="debe contener la",r!=1&&(n+="s"),n+=" propiedad",r!=1&&(n+="es"),n+=" "+i.params.deps+" cuando la propiedad "+i.params.property+" se encuentra presente";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='debe pasar la validaci\xF3n de palabra clave "'+i.keyword+'"'}break;case"enum":n="deber ser igual a uno de los valores predefinidos";break;case"false schema":n="el esquema \xE9s falso";break;case"format":n='debe coincidir con el formato "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="debe ser "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="debe ser "+s;break;case"if":n='debe corresponderse con el esquema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="debe ser "+s;break;case"maxItems":n="";var r=i.params.limit;n+="no debe contener m\xE1s de "+r+" elemento",r!=1&&(n+="s");break;case"maxLength":n="";var r=i.params.limit;n+="no debe contener m\xE1s de "+r+" caracter",r!=1&&(n+="es");break;case"maxProperties":n="";var r=i.params.limit;n+="no debe contener m\xE1s de "+r+" propiedad",r!=1&&(n+="es");break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="debe ser "+s;break;case"minItems":n="";var r=i.params.limit;n+="no debe contener menos de "+r+" elemento",r!=1&&(n+="s");break;case"minLength":n="";var r=i.params.limit;n+="no debe contener menos de "+r+" caracter",r!=1&&(n+="es");break;case"minProperties":n="";var r=i.params.limit;n+="no debe contener menos de "+r+" propiedad",r!=1&&(n+="es");break;case"multipleOf":n="debe ser m\xFAltiplo de "+i.params.multipleOf;break;case"not":n='no debe ser v\xE1lido seg\xFAn el esquema en "not"';break;case"oneOf":n='debe coincidir con un solo esquema en "oneOf"';break;case"pattern":n='debe coincidir con el patron "'+i.params.pattern+'"';break;case"patternRequired":n='la propiedad debe coincidir con el patr\xF3n "'+i.params.missingPattern+'"';break;case"propertyNames":n="la propiedad no \xE9s v\xE1lida";break;case"required":n="debe tener la propiedad requerida "+i.params.missingProperty;break;case"type":n="debe ser "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no debe contener elementos duplicados, (los elementos ## "+i.params.j+" y "+i.params.i+" son id\xE9nticos)";break;default:n='debe pasar la validaci\xF3n de palabra clave "'+i.keyword+'"'}i.message=n}}});var sP=h((Cfe,rP)=>{"use strict";rP.exports=function(e){if(!!(e&&e.length))for(let n of e){let a;switch(n.keyword){case"additionalItems":case"items":a="";var r=n.params.limit;a+="saa sis\xE4lt\xE4\xE4 enint\xE4\xE4n "+r,r==1?a+=":n elementin":a+=" elementti\xE4";break;case"additionalProperties":a="ei saa sis\xE4lt\xE4\xE4 ylim\xE4\xE4r\xE4isi\xE4 ominaisuuksia";break;case"anyOf":a='t\xE4ytyy vastata "anyOf" skeemaa';break;case"const":a="t\xE4ytyy olla yht\xE4 kuin vakio";break;case"contains":a="t\xE4ytyy sis\xE4lt\xE4\xE4 kelvollinen elementti";break;case"dependencies":case"dependentRequired":a="";var r=n.params.depsCount;a+="t\xE4ytyy sis\xE4lt\xE4\xE4 "+n.params.deps+" ominaisuu",r==1?a+="s":a+="det",a+=" kun "+n.params.property+"-ominaisuus on l\xE4sn\xE4";break;case"discriminator":switch(n.params.error){case"tag":a='tunniste "'+n.params.tag+'" t\xE4ytyy olla merkkijono';break;case"mapping":a='tunnisteen "'+n.params.tag+'" arvon muoto pit\xE4\xE4 olla oneOf';break;default:a='t\xE4ytyy l\xE4p\xE4ist\xE4 "'+n.keyword+'" avainsanatarkistus'}break;case"enum":a="t\xE4ytyy olla yht\xE4 kuin jokin sallituista arvoista";break;case"false schema":a="boolean skeema on v\xE4\xE4r\xE4";break;case"format":a='t\xE4ytyy vastata muotoa "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="t\xE4ytyy olla "+s;break;case"formatMinimum":case"formatExclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="t\xE4ytyy olla "+s;break;case"if":a='t\xE4ytyy vastata "'+n.params.failingKeyword+'" skeemaa';break;case"maximum":case"exclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="t\xE4ytyy olla "+s;break;case"maxItems":a="";var r=n.params.limit;a+="tulee sis\xE4lt\xE4\xE4 enint\xE4\xE4n "+r+" ",r==1?a+="elementti":a+="elementti\xE4";break;case"maxLength":a="";var r=n.params.limit;a+="ei saa olla pidempi kuin "+r+" merkki",r!=1&&(a+="\xE4");break;case"maxProperties":a="";var r=n.params.limit;a+="tulee sis\xE4lt\xE4\xE4 enint\xE4\xE4n "+r+" ",r==1?a+="ominaisuus":a+="ominaisuutta";break;case"minimum":case"exclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="t\xE4ytyy olla "+s;break;case"minItems":a="";var r=n.params.limit;a+="tulee sis\xE4lt\xE4\xE4 v\xE4hint\xE4\xE4n "+r+" ",r==1?a+="elementti":a+="elementti\xE4";break;case"minLength":a="";var r=n.params.limit;a+="ei saa olla lyhyempi kuin "+r+" merkki",r!=1&&(a+="\xE4");break;case"minProperties":a="";var r=n.params.limit;a+="tulee sis\xE4lt\xE4\xE4 v\xE4hint\xE4\xE4n "+r+" ",r==1?a+="ominaisuus":a+="ominaisuutta";break;case"multipleOf":a="t\xE4ytyy olla moninkertainen: "+n.params.multipleOf;break;case"not":a='ei saa olla hyv\xE4ksytty skeeman "not" mukaan';break;case"oneOf":a='t\xE4ytyy vastata t\xE4sm\xE4lleen yht\xE4 "oneOf" -kohdassa m\xE4\xE4ritelty\xE4 skeemaa';break;case"pattern":a='t\xE4ytyy vastata muotoa "'+n.params.pattern+'"';break;case"patternRequired":a='t\xE4ytyy sis\xE4lt\xE4\xE4 ominaisuus joka vastaa kaavaa "'+n.params.missingPattern+'"';break;case"propertyNames":a="ominaisuuden nimi on virheellinen";break;case"required":a="t\xE4ytyy sis\xE4lt\xE4\xE4 vaadittu ominaisuus "+n.params.missingProperty;break;case"type":a="";var i=n.params.type;a+="t\xE4ytyy olla ",i=="number"?a+="numero":i=="integer"?a+="kokonaisluku":i=="string"?a+="merkkijono":i=="boolean"?a+="boolean":a+=i;break;case"unevaluatedItems":a="";var r=n.params.len;a+="ei saa olla enemm\xE4n kuin "+r+" elementti",r!=1&&(a+="\xE4");break;case"unevaluatedProperties":a="ei saa sis\xE4lt\xE4\xE4 arvioimattomia ominaisuuksia";break;case"uniqueItems":a="ei saa sis\xE4lt\xE4\xE4 duplikaatteja (elementit ## "+n.params.j+" ja "+n.params.i+" ovat identtiset)";break;default:a='t\xE4ytyy l\xE4p\xE4ist\xE4 "'+n.keyword+'" avainsanatarkistus'}n.message=a}}});var nP=h((Sfe,iP)=>{"use strict";iP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="ne doit pas contenir plus de "+r+" \xE9l\xE9m\xE9nt",r!=1&&(n+="s");break;case"additionalProperties":n="ne doit pas contenir de propri\xE9t\xE9s additionnelles";break;case"anyOf":n='doit correspondre \xE0 un sch\xE9ma de "anyOf"';break;case"const":n="doit \xEAtre \xE9gal \xE0 la constante";break;case"contains":n="doit contenir un \xE9l\xE9ment valide";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="doit avoir la propri\xE9t\xE9 "+i.params.deps+" quand la propri\xE9t\xE9 "+i.params.property+" est pr\xE9sente";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='doit \xEAtre valide selon le crit\xE8re "'+i.keyword+'"'}break;case"enum":n="doit \xEAtre \xE9gal \xE0 une des valeurs pr\xE9d\xE9finies";break;case"false schema":n='le schema est "false"';break;case"format":n='doit correspondre au format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="doit \xEAtre "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="doit \xEAtre "+s;break;case"if":n='doit correspondre au sch\xE9ma "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="doit \xEAtre "+s;break;case"maxItems":n="";var r=i.params.limit;n+="ne doit pas contenir plus de "+r+" \xE9l\xE9ment",r!=1&&(n+="s");break;case"maxLength":n="";var r=i.params.limit;n+="ne doit pas d\xE9passer "+r+" caract\xE8re",r!=1&&(n+="s");break;case"maxProperties":n="";var r=i.params.limit;n+="ne doit pas contenir plus de "+r+" propri\xE9t\xE9",r!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="doit \xEAtre "+s;break;case"minItems":n="";var r=i.params.limit;n+="ne doit pas contenir moins de "+r+" \xE9l\xE9ment",r!=1&&(n+="s");break;case"minLength":n="";var r=i.params.limit;n+="ne doit pas faire moins de "+r+" caract\xE8re",r!=1&&(n+="s");break;case"minProperties":n="";var r=i.params.limit;n+="ne doit pas contenir moins de "+r+" propri\xE9t\xE9",r!=1&&(n+="s");break;case"multipleOf":n="doit \xEAtre un multiple de "+i.params.multipleOf;break;case"not":n='est invalide selon le sch\xE9ma "not"';break;case"oneOf":n='doit correspondre \xE0 exactement un sch\xE9ma de "oneOf"';break;case"pattern":n='doit correspondre au format "'+i.params.pattern+'"';break;case"patternRequired":n='la propri\xE9t\xE9 doit correspondre au format "'+i.params.missingPattern+'"';break;case"propertyNames":n="le nom de propri\xE9t\xE9 est invalide";break;case"required":n="requiert la propri\xE9t\xE9 "+i.params.missingProperty;break;case"type":n="doit \xEAtre de type "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="ne doit pas contenir de doublons (les \xE9l\xE9ments ## "+i.params.j+" et "+i.params.i+" sont identiques)";break;default:n='doit \xEAtre valide selon le crit\xE8re "'+i.keyword+'"'}i.message=n}}});var oP=h((xfe,aP)=>{"use strict";aP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="nem lehet t\xF6bb, mint "+r+" eleme";break;case"additionalProperties":n="nem lehetnek tov\xE1bbi elemei";break;case"anyOf":n='meg kell feleljen legal\xE1bb egy "anyOf" alaknak';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="-nak kell legyen",r>1&&(n+="ek"),n+=" a k\xF6vetkez\u0151 tulajdons\xE1ga",r!=1&&(n+="i"),n+=": "+i.params.deps+", ha van "+i.params.property+" tulajdons\xE1ga";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="egyenl\u0151 kell legyen valamely el\u0151re meghat\xE1rozott \xE9rt\xE9kkel";break;case"false schema":n="boolean schema is false";break;case"format":n='meg kell feleljen a k\xF6vetkez\u0151 form\xE1tumnak: "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="kell legyen "+s;break;case"maxItems":n="";var r=i.params.limit;n+="nem lehet t\xF6bb, mint "+r+" eleme";break;case"maxLength":n="";var r=i.params.limit;n+="nem lehet hosszabb, mint "+r+" szimb\xF3lum";break;case"maxProperties":n="";var r=i.params.limit;n+="nem lehet t\xF6bb, mint "+r+" tulajdons\xE1ga";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="kell legyen "+s;break;case"minItems":n="";var r=i.params.limit;n+="nem lehet kevesebb, mint "+r+" eleme";break;case"minLength":n="";var r=i.params.limit;n+="nem lehet r\xF6videbb, mint "+r+" szimb\xF3lum";break;case"minProperties":n="";var r=i.params.limit;n+="nem lehet kevesebb, mint "+r+" tulajdons\xE1ga";break;case"multipleOf":n="a t\xF6bbsz\xF6r\xF6se kell legyen a k\xF6vetkez\u0151 sz\xE1mnak: "+i.params.multipleOf;break;case"not":n='nem lehet \xE9rv\xE9nyes a "not" alaknak megfelel\u0151en';break;case"oneOf":n='meg kell feleljen pontosan egy "oneOf" alaknak';break;case"pattern":n='meg kell feleljen a k\xF6vetkez\u0151 mint\xE1nak: "'+i.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="kell legyen "+i.params.missingProperty+" tulajdons\xE1ga";break;case"type":n=""+i.params.type+" kell legyen";break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nem lehetnek azonos elemei ("+i.params.j+" \xE9s "+i.params.i+" elemek azonosak)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}});var lP=h((Afe,uP)=>{"use strict";uP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+=" tidak boleh memiliki lebih dari "+r+" item";break;case"additionalProperties":n="tidak boleh memiliki properti tambahan";break;case"anyOf":n='harus cocok dengan beberapa skema pada "anyOf"';break;case"const":n="harus sama dengan konstan";break;case"contains":n="harus berisi item yang valid";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+=" harus memiliki properti "+i.params.deps+" ketika properti "+i.params.property+" hadir";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='harus lulus validasi kata kunci "'+i.keyword+'"'}break;case"enum":n="harus sama dengan salah satu dari nilai yang telah ditentukan";break;case"false schema":n="skema boolean salah";break;case"format":n='harus cocok dengan format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="harus "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="harus "+s;break;case"if":n='harus cocok dengan skema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="harus "+s;break;case"maxItems":n="";var r=i.params.limit;n+=" tidak boleh memiliki lebih dari "+r+" item";break;case"maxLength":n="";var r=i.params.limit;n+=" tidak boleh lebih dari "+r+" karakter";break;case"maxProperties":n="";var r=i.params.limit;n+=" tidak boleh memiliki lebih dari "+r+" properti";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="harus "+s;break;case"minItems":n="";var r=i.params.limit;n+=" tidak boleh kurang dari "+r+" item";break;case"minLength":n="";var r=i.params.limit;n+=" tidak boleh lebih pendek dari "+r+" karakter";break;case"minProperties":n="";var r=i.params.limit;n+=" tidak boleh kurang dari "+r+" properti";break;case"multipleOf":n="harus merupakan kelipatan dari "+i.params.multipleOf;break;case"not":n='tidak boleh valid sesuai dengan skema pada "not"';break;case"oneOf":n='harus sama persis dengan satu skema pada "oneOf"';break;case"pattern":n='harus cocok dengan pola "'+i.params.pattern+'"';break;case"patternRequired":n='harus memiliki pola pencocokan properti "'+i.params.missingPattern+'"';break;case"propertyNames":n="nama properti tidak valid";break;case"required":n="harus memiliki properti "+i.params.missingProperty;break;case"type":n="harus berupa "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="tidak boleh memiliki item duplikat (item ## "+i.params.j+" dan "+i.params.i+" identik)";break;default:n='harus lulus validasi kata kunci "'+i.keyword+'"'}i.message=n}}});var fP=h((Ofe,cP)=>{"use strict";cP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="non dovrebbe avere pi\xF9 di "+r+" element",r==1?n+="o":n+="i";break;case"additionalProperties":n="non deve avere attributi aggiuntivi";break;case"anyOf":n='deve corrispondere ad uno degli schema in "anyOf"';break;case"const":n="deve essere uguale alla costante";break;case"contains":n="deve contentere un elemento valido";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="dovrebbe avere ",r==1?n+="l'":n+="gli ",n+="attribut",r==1?n+="o":n+="i",n+=" "+i.params.deps+" quando l'attributo "+i.params.property+" \xE8 presente";break;case"discriminator":switch(i.params.error){case"tag":n='il tag "'+i.params.tag+'" deve essere di tipo stringa';break;case"mapping":n='il valore del tag "'+i.params.tag+'" deve essere nei oneOf';break;default:n='deve essere valido secondo il criterio "'+i.keyword+'"'}break;case"enum":n="deve essere uguale ad uno dei valori consentiti";break;case"false schema":n="lo schema booleano \xE8 falso";break;case"format":n='deve corrispondere al formato "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="deve essere "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="deve essere "+s;break;case"if":n='deve corrispondere allo schema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="deve essere "+s;break;case"maxItems":n="";var r=i.params.limit;n+="non deve avere pi\xF9 di "+r+" element",r==1?n+="o":n+="i";break;case"maxLength":n="";var r=i.params.limit;n+="non deve essere pi\xF9 lungo di "+r+" caratter",r==1?n+="e":n+="i";break;case"maxProperties":n="";var r=i.params.limit;n+="non deve avere pi\xF9 di "+r+" attribut",r==1?n+="o":n+="i";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="deve essere "+s;break;case"minItems":n="";var r=i.params.limit;n+="non deve avere meno di "+r+" element",r==1?n+="o":n+="i";break;case"minLength":n="";var r=i.params.limit;n+="non deve essere meno lungo di "+r+" caratter",r==1?n+="e":n+="i";break;case"minProperties":n="";var r=i.params.limit;n+="non deve avere meno di "+r+" attribut",r==1?n+="o":n+="i";break;case"multipleOf":n="deve essere un multiplo di "+i.params.multipleOf;break;case"not":n='non deve essere valido in base allo schema di "non"';break;case"oneOf":n='deve corrispondere esattamente ad uno degli schema in "oneOf"';break;case"pattern":n='deve corrispondere al formato "'+i.params.pattern+'"';break;case"patternRequired":n='deve avere un attributo che corrisponda al formato "'+i.params.missingPattern+'"';break;case"propertyNames":n="il nome dell'attritbuto non \xE8 valido";break;case"required":n="deve avere l'attributo obbligatorio "+i.params.missingProperty;break;case"type":n="deve essere di tipo "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="non deve avere pi\xF9 di "+r+" elementi",r==1?n+="o":n+="i";break;case"unevaluatedProperties":n="non deve avere attributi non valutati";break;case"uniqueItems":n="non deve avere duplicati (gli elementi ## "+i.params.j+" e "+i.params.i+" sono uguali)";break;default:n='deve essere valido secondo il criterio "'+i.keyword+'"'}i.message=n}}});var hP=h((Tfe,dP)=>{"use strict";dP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="\u306F"+r+"\u4EE5\u4E0A\u3042\u3063\u3066\u306F\u3044\u3051\u306A\u3044";break;case"additionalProperties":n="\u8FFD\u52A0\u3057\u3066\u306F\u3044\u3051\u306A\u3044";break;case"anyOf":n='"anyOf"\u306E\u30B9\u30AD\u30FC\u30DE\u3068\u30DE\u30C3\u30C1\u3057\u306A\u304F\u3066\u306F\u3044\u3051\u306A\u3044';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n=""+i.params.property+"\u304C\u3042\u308B\u5834\u5408\u3001";var r=i.params.depsCount;n+="\u306F"+i.params.deps+"\u3092\u3064\u3051\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="\u4E8B\u524D\u306B\u5B9A\u7FA9\u3055\u308C\u305F\u5024\u306E\u3044\u305A\u308C\u304B\u306B\u7B49\u3057\u304F\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"false schema":n="boolean schema is false";break;case"format":n='"'+i.params.format+'"\u5F62\u5F0F\u306B\u63C3\u3048\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+=s+"\u3067\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"maxItems":n="";var r=i.params.limit;n+="\u306F"+r+"\u500B\u4EE5\u4E0A\u3067\u3042\u3063\u3066\u306F\u3044\u3051\u306A\u3044";break;case"maxLength":n="";var r=i.params.limit;n+="\u306F"+r+"\u6587\u5B57\u4EE5\u4E0A\u3067\u3042\u3063\u3066\u306F\u3044\u3051\u306A\u3044";break;case"maxProperties":n="";var r=i.params.limit;n+="\u306F"+r+"\u500B\u4EE5\u4E0A\u306E\u30D7\u30ED\u30D1\u30C6\u30A3\u3092\u6709\u3057\u3066\u306F\u3044\u3051\u306A\u3044";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+=s+"\u3067\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"minItems":n="";var r=i.params.limit;n+="\u306F"+r+"\u500B\u4EE5\u4E0B\u3067\u3042\u3063\u3066\u306F\u3044\u3051\u306A\u3044";break;case"minLength":n="";var r=i.params.limit;n+="\u306F"+r+"\u6587\u5B57\u4EE5\u4E0B\u3067\u3042\u3063\u3066\u306F\u3044\u3051\u306A\u3044";break;case"minProperties":n="";var r=i.params.limit;n+="\u306F"+r+"\u500B\u4EE5\u4E0B\u306E\u30D7\u30ED\u30D1\u30C6\u30A3\u3092\u6709\u3057\u3066\u306F\u3044\u3051\u306A\u3044";break;case"multipleOf":n=""+i.params.multipleOf+"\u306E\u500D\u6570\u3067\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"not":n='"not"\u306E\u30B9\u30AD\u30FC\u30DE\u306B\u5F93\u3063\u3066\u6709\u52B9\u3068\u3057\u3066\u306F\u3044\u3051\u306A\u3044';break;case"oneOf":n='"oneOf"\u306E\u30B9\u30AD\u30FC\u30DE\u3068\u5B8C\u5168\u306B\u4E00\u81F4\u3057\u306A\u304F\u3066\u306F\u3044\u3051\u306A\u3044';break;case"pattern":n='"'+i.params.pattern+'"\u306E\u30D1\u30BF\u30FC\u30F3\u3068\u4E00\u81F4\u3057\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="\u5FC5\u8981\u306A\u30D7\u30ED\u30D1\u30C6\u30A3"+i.params.missingProperty+"\u304C\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"type":n=""+i.params.type+"\u3067\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="\u91CD\u8907\u3059\u308B\u30A2\u30A4\u30C6\u30E0\u304C\u3042\u3063\u3066\u306F\u3044\u3051\u306A\u3044\uFF08"+i.params.j+"\u3068"+i.params.i+"\u306F\u540C\u3058\u3067\u3042\u308B\uFF09";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}});var mP=h((Rfe,pP)=>{"use strict";pP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+=" \uD56D\uBAA9\uC740 \uC544\uC774\uD15C\uC744 "+r+"\uAC1C \uC774\uC0C1 \uAC00\uC9C8 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4";break;case"additionalProperties":n="\uCD94\uAC00\uC801\uC778 \uC18D\uC131\uC740 \uD5C8\uC6A9\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4";break;case"anyOf":n='"anyOf"\uC758 \uC2A4\uD0A4\uB9C8\uC640 \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4';break;case"const":n="\uC0C1\uC218\uC640 \uAC19\uC544\uC57C\uD569\uB2C8\uB2E4";break;case"contains":n="\uC62C\uBC14\uB978 \uC544\uC774\uD15C\uC744 \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+=i.params.property+"\uC18D\uC131\uC774 \uC788\uB294 \uACBD\uC6B0, "+i.params.deps+" \uC18D\uC131\uC774 \uC788\uC5B4\uC57C\uD569\uB2C8\uB2E4";break;case"discriminator":switch(i.params.error){case"tag":n='"'+i.params.tag+'"\uD0DC\uADF8\uB294 \uBC18\uB4DC\uC2DC \uBB38\uC790\uC5F4\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4';break;case"mapping":n='"'+i.params.tag+'"\uD0DC\uADF8\uC758 \uAC12\uC740 \uBC18\uB4DC\uC2DC oneOf\uC5D0 \uC788\uC5B4\uC57C \uD569\uB2C8\uB2E4';break;default:n='"'+i.keyword+'"\uD0A4\uC6CC\uB4DC \uAC80\uC0AC\uB97C \uD1B5\uACFC\uD574\uC57C \uD569\uB2C8\uB2E4'}break;case"enum":n="\uBBF8\uB9AC \uC815\uC758\uB41C \uAC12\uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"false schema":n="boolean \uC2A4\uD0A4\uB9C8\uB294 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4";break;case"format":n='"'+i.params.format+'" \uD3EC\uB9F7\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" "+s+" \uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" "+s+" \uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"if":n='"'+i.params.failingKeyword+'" \uC2A4\uD0A4\uB9C8\uC640 \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" "+s+" \uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"maxItems":n="";var r=i.params.limit;n+="\uC544\uC774\uD15C\uC774 \uCD5C\uB300 "+r+"\uAC1C\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"maxLength":n="";var r=i.params.limit;n+="\uCD5C\uB300 "+r+"\uAE00\uC790\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"maxProperties":n="";var r=i.params.limit;n+="\uC18D\uC131\uC740 \uCD5C\uB300 "+r+"\uAC1C \uC774\uB0B4\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" "+s+" \uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"minItems":n="";var r=i.params.limit;n+="\uC544\uC774\uD15C\uC774 \uCD5C\uC18C "+r+"\uAC1C\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"minLength":n="";var r=i.params.limit;n+="\uCD5C\uC18C "+r+"\uAE00\uC790\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"minProperties":n="";var r=i.params.limit;n+="\uC18D\uC131\uC740 \uCD5C\uC18C "+r+"\uAC1C \uC774\uC0C1\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"multipleOf":n=""+i.params.multipleOf+"\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"not":n='"not"\uC2A4\uD0A4\uB9C8\uC5D0 \uB530\uB77C \uC720\uD6A8\uD558\uC9C0 \uC54A\uC544\uC57C \uD569\uB2C8\uB2E4';break;case"oneOf":n='"oneOf" \uC2A4\uD0A4\uB9C8\uC911 \uD558\uB098\uC640 \uC815\uD655\uD558\uAC8C \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4';break;case"pattern":n='"'+i.params.pattern+'"\uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4';break;case"patternRequired":n='"'+i.params.missingPattern+'"\uD328\uD134\uACFC \uC77C\uCE58\uD558\uB294 \uC18D\uC131\uC744 \uAC00\uC838\uC57C \uD569\uB2C8\uB2E4';break;case"propertyNames":n="\uC18D\uC131\uBA85\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4";break;case"required":n=""+i.params.missingProperty+" \uC18D\uC131\uC740 \uD544\uC218\uC785\uB2C8\uB2E4";break;case"type":n=""+i.params.type+"\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"unevaluatedItems":n="";var r=i.params.len;n+="\uD56D\uBAA9\uC774 "+r+"\uAC1C \uC544\uC774\uD15C\uC744 \uCD08\uACFC\uD558\uBA74 \uC548\uB429\uB2C8\uB2E4";break;case"unevaluatedProperties":n="\uD3C9\uAC00\uB418\uC9C0 \uC54A\uC740 \uC18D\uC131\uC774 \uC5C6\uC5B4\uC57C\uD569\uB2C8\uB2E4.";break;case"uniqueItems":n="\uC911\uBCF5 \uC544\uC774\uD15C\uC774 \uC5C6\uC5B4\uC57C \uD569\uB2C8\uB2E4 (\uC544\uC774\uD15C"+i.params.j+"\uACFC \uC544\uC774\uD15C"+i.params.i+"\uAC00 \uB3D9\uC77C\uD569\uB2C8\uB2E4)";break;default:n='"'+i.keyword+'"\uD0A4\uC6CC\uB4DC \uAC80\uC0AC\uB97C \uD1B5\uACFC\uD574\uC57C \uD569\uB2C8\uB2E4'}i.message=n}}});var yP=h((Pfe,gP)=>{"use strict";gP.exports=function(e){if(!!(e&&e.length))for(let n of e){let a;switch(n.keyword){case"additionalItems":case"items":a="";var r=n.params.limit;a+="kan ikke ha mer enn "+r+" element",r!=1&&(a+="er");break;case"additionalProperties":a="kan ikke ha flere egenskaper";break;case"anyOf":a='m\xE5 samsvare med et schema i "anyOf"';break;case"const":a="m\xE5 v\xE6re lik konstanten";break;case"contains":a="m\xE5 inneholde et gyldig element";break;case"dependencies":case"dependentRequired":a="";var r=n.params.depsCount;a+="m\xE5 ha egenskapen",r!=1&&(a+="e"),a+=" "+n.params.deps+" n\xE5r egenskapen "+n.params.property+" er angitt";break;case"discriminator":switch(n.params.error){case"tag":a='tag "'+n.params.tag+'" must be string';break;case"mapping":a='value of tag "'+n.params.tag+'" must be in oneOf';break;default:a="m\xE5 samsvare med valideringen for "+n.keyword}break;case"enum":a="m\xE5 v\xE6re lik en av de forh\xE5ndsdefinerte verdiene";break;case"false schema":a="boolsk schema er usannt";break;case"format":a='m\xE5 stemme overens med formatet "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="m\xE5 v\xE6re "+s;break;case"formatMinimum":case"formatExclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="m\xE5 v\xE6re "+s;break;case"if":a='must match "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="m\xE5 v\xE6re "+s;break;case"maxItems":a="";var r=n.params.limit;a+="kan ikke ha fler enn "+r+" element",r!=1&&(a+="er");break;case"maxLength":a="";var r=n.params.limit;a+="kan ikke v\xE6re lengre enn "+r+" tegn";break;case"maxProperties":a="";var r=n.params.limit;a+="kan ikke ha mer enn "+r+" egenskap",r!=1&&(a+="er");break;case"minimum":case"exclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="m\xE5 v\xE6re "+s;break;case"minItems":a="";var r=n.params.limit;a+="kan ikke ha f\xE6rre enn "+r+" element",r!=1&&(a+="er");break;case"minLength":a="";var r=n.params.limit;a+="kan ikke v\xE6re kortere enn "+r+" tegn";break;case"minProperties":a="";var r=n.params.limit;a+="kan ikke ha mindre enn "+r+" egenskap",r!=1&&(a+="er");break;case"multipleOf":a="m\xE5 v\xE6re et multiplum av "+n.params.multipleOf;break;case"not":a='kan ikke samsvare med schema i "not"';break;case"oneOf":a='m\xE5 samsvare med n\xF8yaktig ett schema i "oneOf"';break;case"pattern":a='m\xE5 samsvare med m\xF8nsteret "'+n.params.pattern+'"';break;case"patternRequired":a='m\xE5 ha en egenskap som samsvarer med m\xF8nsteret "'+n.params.missingPattern;break;case"propertyNames":a="egenskapen med navnet '",n.params.propertyNameout+="' er ugyldig";break;case"required":a="m\xE5 ha den p\xE5krevde egenskapen "+n.params.missingProperty;break;case"type":a="";var i=n.params.type;a+="m\xE5 v\xE6re ",i=="number"?a+="et tall":i=="integer"?a+="et heltall":i=="string"?a+="en streng":i=="boolean"?a+="ja eller nei":a+=i;break;case"unevaluatedItems":a="";var r=n.params.len;a+="must NOT have more than "+r+" item",r!=1&&(a+="s");break;case"unevaluatedProperties":a="must NOT have unevaluated properties";break;case"uniqueItems":a="kan ikke ha duplikate elemeneter (elementene ## "+n.params.j+" og "+n.params.i+" er identiske)";break;default:a="m\xE5 samsvare med valideringen for "+n.keyword}n.message=a}}});var bP=h(($fe,vP)=>{"use strict";vP.exports=function(e){if(!!(e&&e.length))for(let n of e){let a;switch(n.keyword){case"additionalItems":case"items":a="";var r=n.params.limit;a+="mag niet meer dan "+r+" item",r!=1&&(a+="s"),a+=" bevatten";break;case"additionalProperties":a="mag geen extra eigenschappen bevatten";break;case"anyOf":a='moet overeenkomen met een schema in "anyOf"';break;case"const":a="moet gelijk zijn aan constante";break;case"contains":a="moet een geldig item bevatten";break;case"dependencies":case"dependentRequired":a="";var r=n.params.depsCount;a+="moet de eigenschap",r!=1&&(a+="pen"),a+=" "+n.params.deps+" bevatten als "+n.params.property+" is gedefinieerd";break;case"discriminator":switch(n.params.error){case"tag":a='tag "'+n.params.tag+'" moet een tekenreeks zijn';break;case"mapping":a='de waarde van het veld "'+n.params.tag+'" moet voorkomen in de oneOf';break;default:a='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}break;case"enum":a="moet overeenkomen met \xE9\xE9n van de voorgedefinieerde waarden";break;case"false schema":a="boolean schema is fout";break;case"format":a='moet overeenkomen met het volgende formaat: "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="moet "+s+" zijn";break;case"formatMinimum":case"formatExclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="moet "+s+" zijn";break;case"if":a='moet overeenkomen met "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="moet "+s+" zijn";break;case"maxItems":a="";var r=n.params.limit;a+="mag niet meer dan "+r+" item",r!=1&&(a+="s"),a+=" bevatten";break;case"maxLength":a="";var r=n.params.limit;a+="mag niet langer dan "+r+" karakter",r!=1&&(a+="s"),a+=" zijn";break;case"maxProperties":a="";var r=n.params.limit;a+="mag niet meer dan "+r+" eigenschap",r!=1&&(a+="pen"),a+=" bevatten";break;case"minimum":case"exclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="moet "+s+" zijn";break;case"minItems":a="";var r=n.params.limit;a+="mag niet minder dan "+r+" item",r!=1&&(a+="s"),a+=" bevatten";break;case"minLength":a="";var r=n.params.limit;a+="mag niet korter dan "+r+" karakter",r!=1&&(a+="s"),a+=" zijn";break;case"minProperties":a="";var r=n.params.limit;a+="mag niet minder dan "+r+" eigenschap",r!=1&&(a+="pen"),a+=" bevatten";break;case"multipleOf":a="moet een veelvoud van "+n.params.multipleOf+" zijn";break;case"not":a='mag niet overeenkomen met een schema in "not"';break;case"oneOf":a='moet overeenkomen met \xE9\xE9n schema in "oneOf"';break;case"pattern":a='moet overeenkomen met het volgende patroon: "'+n.params.pattern+'"';break;case"patternRequired":a='moet een eigenschap bevatten die overeenkomt met het pattroon: "'+n.params.missingPattern+'"';break;case"propertyNames":a="eigenschapnaam is ongeldig";break;case"required":a="moet de eigenschap "+n.params.missingProperty+" bevatten";break;case"type":a="";var i=n.params.type;a+="moet een ",i=="number"?a+="nummer":i=="integer"?a+="geheel getal":i=="string"?a+="tekenreeks":i=="boolean"&&(a+="ja of nee waarde"),a+=" ("+i+") bevatten";break;case"unevaluatedItems":a="";var r=n.params.len;a+="mag niet meer dan "+r+" item",r!=1&&(a+="s"),a+=" bevatten";break;case"unevaluatedProperties":a="mag geen ongecontroleerde eigenschappen bevatten";break;case"uniqueItems":a="mag geen gedupliceerde items bevatten (items ## "+n.params.j+" en "+n.params.i+" zijn identiek)";break;default:a='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}n.message=a}}});var wP=h((Ffe,_P)=>{"use strict";_P.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="nie powinien mie\u0107 wi\u0119cej ni\u017C "+r+" element",r==1?n+="u":n+="\xF3w";break;case"additionalProperties":n="nie powinien zawiera\u0107 dodatkowych p\xF3l";break;case"anyOf":n='powinien pasowa\u0107 do wzoru z sekcji "anyOf"';break;case"const":n="powinien by\u0107 r\xF3wny sta\u0142ej";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="powinien zawiera\u0107 pol",r==1?n+="e":n+="a",n+=" "+i.params.deps+" kiedy pole "+i.params.property+" jest obecne";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='powinien przej\u015B\u0107 walidacj\u0119 "'+i.keyword+'"'}break;case"enum":n="powinien by\u0107 r\xF3wny jednej z predefiniowanych warto\u015Bci";break;case"false schema":n="boolean schema is false";break;case"format":n='powinien zgadza\u0107 si\u0119 z formatem "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="powinien by\u0107 "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="powinien by\u0107 "+s;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="powinien by\u0107 "+s;break;case"maxItems":n="";var r=i.params.limit;n+="nie powinien mie\u0107 wi\u0119cej ni\u017C "+r+" element",r==1?n+="u":n+="\xF3w";break;case"maxLength":n="";var r=i.params.limit;n+="nie powinien by\u0107 d\u0142u\u017Cszy ni\u017C "+r+" znak",r!=1&&(n+="\xF3w");break;case"maxProperties":n="";var r=i.params.limit;n+="nie powinien zawiera\u0107 wi\u0119cej ni\u017C "+r+" ",r==1?n+="pole":n+="p\xF3l";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="powinien by\u0107 "+s;break;case"minItems":n="";var r=i.params.limit;n+="nie powinien mie\u0107 mniej ni\u017C "+r+" element",r==1?n+="u":n+="\xF3w";break;case"minLength":n="";var r=i.params.limit;n+="nie powinien by\u0107 kr\xF3tszy ni\u017C "+r+" znak",r!=1&&(n+="\xF3w");break;case"minProperties":n="";var r=i.params.limit;n+="nie powinien zawiera\u0107 mniej ni\u017C "+r+" ",r==1?n+="pole":n+="p\xF3l";break;case"multipleOf":n="powinien by\u0107 wielokrotno\u015Bci\u0105 "+i.params.multipleOf;break;case"not":n='nie powinien pasowa\u0107 do wzoru z sekcji "not"';break;case"oneOf":n='powinien pasowa\u0107 do jednego wzoru z sekcji "oneOf"';break;case"pattern":n='powinien zgadza\u0107 si\u0119 ze wzorem "'+i.params.pattern+'"';break;case"patternRequired":n='powinien mie\u0107 pole pasuj\u0105ce do wzorca "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="powinien zawiera\u0107 wymagane pole "+i.params.missingProperty;break;case"type":n="powinien by\u0107 "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nie powinien zawiera\u0107 element\xF3w kt\xF3re si\u0119 powtarzaj\u0105 (elementy "+i.params.j+" i "+i.params.i+" s\u0105 identyczne)";break;default:n='powinien przej\u015B\u0107 walidacj\u0119 "'+i.keyword+'"'}i.message=n}}});var kP=h((jfe,EP)=>{"use strict";EP.exports=function(e){if(!!(e&&e.length))for(let n of e){let a;switch(n.keyword){case"additionalItems":case"items":a="n\xE3o s\xE3o permitidos itens adicionais (mais do que "+r+")";break;case"additionalProperties":a="n\xE3o s\xE3o permitidas propriedades adicionais";break;case"anyOf":a='os dados n\xE3o correspondem a nenhum schema de "anyOf"';break;case"const":a="deve ser igual \xE0 constante";break;case"contains":a="deve conter um item v\xE1lido";break;case"dependencies":case"dependentRequired":a="";var r=n.params.depsCount;a+=" deve ter propriedade",r!=1&&(a+="s"),a+=" "+n.params.deps+" quando a propriedade "+n.params.property+" estiver presente";break;case"discriminator":switch(n.params.error){case"tag":a='a tag "'+n.params.tag+'" deve ser uma string';break;case"mapping":a='o valor da tag "'+n.params.tag+'" deve estar no oneOf';break;default:a='deve passar a valida\xE7\xE3o da keyword "'+n.keyword+'"'}break;case"enum":a="deve ser igual a um dos valores permitidos";break;case"false schema":a='o schema booleano \xE9 "false"';break;case"format":a='deve corresponder ao formato "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="deve ser "+s;break;case"formatMinimum":case"formatExclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="deve ser "+s;break;case"if":a='deve corresponder ao schema "'+n.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="deve ser "+s;break;case"maxItems":a="";var r=n.params.limit;a+="n\xE3o deve ter mais que "+r+" elemento",r!=1&&(a+="s");break;case"maxLength":a="";var r=n.params.limit;a+="n\xE3o deve ser maior que "+r+" caracter",r!=1&&(a+="es");break;case"maxProperties":a="";var r=n.params.limit;a+="n\xE3o deve ter mais que "+r+" propriedade",r!=1&&(a+="s");break;case"minimum":case"exclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="deve ser "+s;break;case"minItems":a="";var r=n.params.limit;a+="n\xE3o deve ter menos que "+r+" elemento",r!=1&&(a+="s");break;case"minLength":a="";var r=n.params.limit;a+="n\xE3o deve ser mais curta que "+r+" caracter",r!=1&&(a+="es");break;case"minProperties":a="";var r=n.params.limit;a+="n\xE3o deve ter menos que "+r+" propriedade",r!=1&&(a+="s");break;case"multipleOf":a="deve ser m\xFAltiplo de "+n.params.multipleOf;break;case"not":a='n\xE3o deve ser valido segundo o schema em "not"';break;case"oneOf":a='deve corresponder exatamente com um schema em "oneOf"';break;case"pattern":a='deve corresponder ao padr\xE3o "'+n.params.pattern+'"';break;case"patternRequired":a='deve ter a propriedade correspondente ao padr\xE3o "'+n.params.missingPattern+'"';break;case"propertyNames":a="o nome da propriedade \xE9 inv\xE1lido";break;case"required":a="deve ter a propriedade obrigat\xF3ria "+n.params.missingProperty;break;case"type":a="";var i=n.params.type;a+="deve ser ",i=="number"?a+="um n\xFAmero":i=="integer"?a+="um n\xFAmero inteiro":i=="string"?a+="um texto":i=="boolean"?a+="um booleano":a+=i;break;case"unevaluatedItems":a="";var r=n.params.len;a+="n\xE3o pode possuir mais que "+r+" ",r==1?a+="item":a+="itens";break;case"unevaluatedProperties":a="n\xE3o pode possuir propridades n\xE3o avaliadas";break;case"uniqueItems":a="n\xE3o deve ter itens duplicados (os itens ## "+n.params.j+" e "+n.params.i+" s\xE3o id\xEAnticos)";break;default:a='deve passar a valida\xE7\xE3o da keyword "'+n.keyword+'"'}n.message=a}}});var CP=h((Ife,DP)=>{"use strict";DP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u0431\u043E\u043B\u0435\u0435, \u0447\u0435\u043C "+r+" \u044D\u043B\u0435\u043C\u0435\u043D\u0442",r>=2&&r<=4?n+="\u0430":r!=1&&(n+="\u043E\u0432");break;case"additionalProperties":n="\u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u043F\u043E\u043B\u0435\u0439";break;case"anyOf":n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043E\u0434\u043D\u043E\u0439 \u0438\u0445 \u0441\u0445\u0435\u043C \u0432 "anyOf"';break;case"const":n="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0440\u0430\u0432\u043D\u043E \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u043C\u0443 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044E";break;case"contains":n="\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0435 \u0441\u0445\u0435\u043C\u0435";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043F\u043E\u043B",r==1?n+="\u0435":n+="\u044F",n+=" "+i.params.deps+", \u043A\u043E\u0433\u0434\u0430 \u043F\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043F\u043E\u043B\u0435 "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='\u043F\u043E\u043B\u0435 "'+i.params.tag+'" \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u043E\u0439';break;case"mapping":n='\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u044F "'+i.params.tag+'" \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0432 \u043E\u0434\u043D\u043E\u0439 \u0438\u0437 oneOf \u0441\u0445\u0435\u043C ';break;default:n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u0430\u0432\u0438\u043B\u0443 "'+i.keyword+'"'}break;case"enum":n="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0440\u0430\u0432\u043D\u043E \u043E\u0434\u043D\u043E\u043C\u0443 \u0438\u0437 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043D\u044B\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439";break;case"false schema":n="\u0441\u0445\u0435\u043C\u0430 \u0440\u0430\u0432\u043D\u0430 false";break;case"format":n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0444\u043E\u0440\u043C\u0430\u0442\u0443 "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C "+s;break;case"if":n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0441\u0445\u0435\u043Ce "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C "+s;break;case"maxItems":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u0431\u043E\u043B\u0435\u0435, \u0447\u0435\u043C "+r+" \u044D\u043B\u0435\u043C\u0435\u043D\u0442",r>=2&&r<=4?n+="\u0430":r!=1&&(n+="\u043E\u0432");break;case"maxLength":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u0434\u043B\u0438\u043D\u043D\u0435\u0435, \u0447\u0435\u043C "+r+" \u0441\u0438\u043C\u0432\u043E\u043B",r>=2&&r<=4?n+="\u0430":r!=1&&(n+="\u043E\u0432");break;case"maxProperties":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u0431\u043E\u043B\u0435\u0435, \u0447\u0435\u043C "+r+" \u043F\u043E\u043B",r==1?n+="\u0435":r>=2&&r<=4?n+="\u044F":n+="\u0435\u0439";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C "+s;break;case"minItems":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u043C\u0435\u043D\u0435\u0435, \u0447\u0435\u043C "+r+" \u044D\u043B\u0435\u043C\u0435\u043D\u0442",r>=2&&r<=4?n+="\u0430":r!=1&&(n+="\u043E\u0432");break;case"minLength":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u043A\u043E\u0440\u043E\u0447\u0435, \u0447\u0435\u043C "+r+" \u0441\u0438\u043C\u0432\u043E\u043B",r>=2&&r<=4?n+="\u0430":r!=1&&(n+="\u043E\u0432");break;case"minProperties":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u043C\u0435\u043D\u0435\u0435, \u0447\u0435\u043C "+r+" \u043F\u043E\u043B",r==1?n+="\u0435":r>=2&&r<=4?n+="\u044F":n+="\u0435\u0439";break;case"multipleOf":n="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C "+i.params.multipleOf;break;case"not":n='\u0434\u043E\u043B\u0436\u043D\u043E \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0441\u0445\u0435\u043C\u0435 \u0432 "not"';break;case"oneOf":n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0432 \u0442\u043E\u0447\u043D\u043E\u0441\u0442\u0438 \u043E\u0434\u043D\u043E\u0439 \u0441\u0445\u0435\u043Ce \u0432 "oneOf"';break;case"pattern":n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u0443 "'+i.params.pattern+'"';break;case"patternRequired":n='\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043F\u043E\u043B\u0435, \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0435 \u043E\u0431\u0440\u0430\u0437\u0446\u0443 "'+i.params.missingPattern+'"';break;case"propertyNames":n="\u0438\u043C\u044F \u043F\u043E\u043B\u044F \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0445\u0435\u043C\u0435";break;case"required":n="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 "+i.params.missingProperty;break;case"type":n="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u0431\u043E\u043B\u0435\u0435, \u0447\u0435\u043C "+r+" \u044D\u043B\u0435\u043C\u0435\u043D\u0442",r>=2&&r<=4?n+="\u0430":r!=1&&(n+="\u043E\u0432");break;case"unevaluatedProperties":n="\u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435\u043F\u0440\u043E\u0432\u0435\u0440\u0435\u043D\u043D\u044B\u0445 \u043F\u043E\u043B\u0435\u0439";break;case"uniqueItems":n="\u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u044E\u0449\u0438\u0445\u0441\u044F \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 (\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B "+i.params.j+" \u0438 "+i.params.i+" \u0438\u0434\u0435\u043D\u0442\u0438\u0447\u043D\u044B)";break;default:n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u0430\u0432\u0438\u043B\u0443 "'+i.keyword+'"'}i.message=n}}});var xP=h((Mfe,SP)=>{"use strict";SP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="nem\xF4\u017Ee obsahova\u0165 viac, ne\u017E "+r+" prv",r==1?n+="ok":n+="kov";break;case"additionalProperties":n="nem\xF4\u017Ee obsahova\u0165 \u010Fal\u0161ie polo\u017Eky";break;case"anyOf":n='mus\xED spl\u0148ova\u0165 aspo\u0148 jednu zo sch\xE9m v "anyOf"';break;case"const":n="mus\xED by\u0165 kon\u0161tanta";break;case"contains":n="mus\xED obsahova\u0165 prvok zodpovedaj\xFAci sch\xE9me";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+=" mus\xED obsahova\u0165 polo\u017E",r>=2&&r<=4?n+="ky":r!=1?n+="iek":n+="ka",n+=": "+i.params.deps+", ak obsahuje "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='mus\xED splni\u0165 "'+i.keyword+'" valid\xE1ciu'}break;case"enum":n="mus\xED by\u0165 jedna z definovan\xFDch hodn\xF4t";break;case"false schema":n="sch\xE9ma je false";break;case"format":n='mus\xED obsahova\u0165 form\xE1t "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED by\u0165 "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED by\u0165 "+s;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED by\u0165 "+s;break;case"maxItems":n="";var r=i.params.limit;n+="nesmie obsahova\u0165 viac ne\u017E "+r+" prv",r==1?n+="ok":n+="kov";break;case"maxLength":n="";var r=i.params.limit;n+="nesmie by\u0165 dlh\u0161\xED ne\u017E "+r+" znak",r!=1&&(n+="ov");break;case"maxProperties":n="";var r=i.params.limit;n+="nesmie obsahova\u0165 viac ne\u017E "+r+" polo\u017E",r>=2&&r<=4?n+="ky":r!=1?n+="iek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED by\u0165 "+s;break;case"minItems":n="";var r=i.params.limit;n+="nesmie obsahova\u0165 menej ne\u017E "+r+" prv",r==1?n+="ok":n+="kov";break;case"minLength":n="";var r=i.params.limit;n+="nesmie by\u0165 krat\u0161\xED ne\u017E "+r+" znak",r!=1&&(n+="ov");break;case"minProperties":n="";var r=i.params.limit;n+="nesmie obsahova\u0165 menej ne\u017E "+r+" polo\u017E",r>=2&&r<=4?n+="ky":r!=1?n+="iek":n+="ka";break;case"multipleOf":n="mus\xED by\u0165 n\xE1sobkom "+i.params.multipleOf;break;case"not":n='nesmie spl\u0148ova\u0165 sch\xE9mu v "not"';break;case"oneOf":n='mus\xED spl\u0148ova\u0165 pr\xE1ve jednu sch\xE9mu v "oneOf"';break;case"pattern":n='mus\xED spl\u0148ova\u0165 regul\xE1rny v\xFDraz "'+i.params.pattern+'"';break;case"patternRequired":n='mus\xED obsahova\u0165 polo\u017Eku spl\u0148j\xFAcu regul\xE1rny v\xFDraz "'+i.params.missingPattern+'"';break;case"propertyNames":n="n\xE1zov polo\u017Eky nezodpoved\xE1 sch\xE9me";break;case"required":n="mus\xED obsahova\u0165 po\u017Eadovan\xFA polo\u017Eku "+i.params.missingProperty;break;case"type":n="mus\xED by\u0165 "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmie obsahova\u0165 duplicitn\xE9 prvky (prvky ## "+i.params.j+" a "+i.params.i+" s\xFA rovnak\xE9)";break;default:n='mus\xED splni\u0165 "'+i.keyword+'" valid\xE1ciu'}i.message=n}}});var OP=h((Nfe,AP)=>{"use strict";AP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="borde ha fler \xE4n "+r+" sak",r!=1&&(n+="er");break;case"additionalProperties":n="borde inte ha fler egenskaper";break;case"anyOf":n='borde matcha n\xE5got schema i "anyOf"';break;case"const":n="b\xF6r vara en konstant";break;case"contains":n="b\xF6r inneh\xE5lla ett giltigt objekt";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="borde ha egenskap",r!=1&&(n+="er"),n+=" "+i.params.deps+" n\xE4r egenskap "+i.params.property+" finns tillg\xE4ngligt";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='b\xF6r passera "'+i.keyword+'" nyckelord validering'}break;case"enum":n="borde vara ekvivalent med en av dess f\xF6rdefinierade v\xE4rden";break;case"false schema":n="boolean schema \xE4r falskt";break;case"format":n='borde matcha formatet "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="b\xF6r vara "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="b\xF6r vara "+s;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="borde vara "+s;break;case"maxItems":n="";var r=i.params.limit;n+="borde inte ha fler \xE4n "+r+" sak",r!=1&&(n+="er");break;case"maxLength":n="";var r=i.params.limit;n+="borde inte vara l\xE4ngre \xE4n "+r+" tecken";break;case"maxProperties":n="";var r=i.params.limit;n+="borde inte ha fler \xE4n "+r+" egenskap",r!=1&&(n+="er");break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="borde vara "+s;break;case"minItems":n="";var r=i.params.limit;n+="borde inte ha f\xE4rre \xE4n "+r+" sak",r!=1&&(n+="er");break;case"minLength":n="";var r=i.params.limit;n+="borde inte vara kortare \xE4n "+r+" tecken";break;case"minProperties":n="";var r=i.params.limit;n+="borde inte ha f\xE4rre \xE4n "+r+" egenskap",r!=1&&(n+="er");break;case"multipleOf":n="borde vara en multipel av "+i.params.multipleOf;break;case"not":n='borde inte vara giltigt enligt schema i "not"';break;case"oneOf":n='borde matcha exakt ett schema i "oneOf"';break;case"pattern":n='borde matcha m\xF6nstret "'+i.params.pattern+'"';break;case"patternRequired":n='b\xF6r ha en egenskap som matchar m\xF6nstret "'+i.params.missingPattern+'"';break;case"propertyNames":n="egenskap med namnet \xE4r inte giltig";break;case"required":n="borde ha den n\xF6dv\xE4ndiga egenskapen "+i.params.missingProperty;break;case"type":n="borde vara "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="borde inte ha duplicerade saker (sakerna ## "+i.params.j+" och "+i.params.i+" \xE4r identiska)";break;default:n='b\xF6r passera "'+i.keyword+'" nyckelord validering'}i.message=n}}});var RP=h((qfe,TP)=>{"use strict";TP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E2A\u0E21\u0E32\u0E0A\u0E34\u0E01\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 "+r+" \u0E15\u0E31\u0E27";break;case"additionalProperties":n="\u0E15\u0E49\u0E2D\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35 property \u0E2D\u0E37\u0E48\u0E19\u0E46 \u0E19\u0E2D\u0E01\u0E40\u0E2B\u0E19\u0E35\u0E2D\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";break;case"anyOf":n='\u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 schema \u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49\u0E43\u0E19 "anyOf"';break;case"const":n="\u0E15\u0E49\u0E2D\u0E07\u0E40\u0E17\u0E48\u0E32\u0E01\u0E31\u0E1A\u0E04\u0E48\u0E32\u0E04\u0E07\u0E17\u0E35\u0E48";break;case"contains":n="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E2A\u0E21\u0E32\u0E0A\u0E34\u0E01\u0E17\u0E35\u0E48\u0E1C\u0E48\u0E32\u0E19\u0E40\u0E07\u0E37\u0E48\u0E2D\u0E19\u0E44\u0E02\u0E2D\u0E22\u0E39\u0E48";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E21\u0E35 property "+i.params.property+" \u0E41\u0E25\u0E49\u0E27\u0E08\u0E30\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 property "+i.params.deps+" \u0E14\u0E49\u0E27\u0E22";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19 string';break;case"mapping":n='\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E04\u0E48\u0E32\u0E02\u0E2D\u0E07 tag "'+i.params.tag+'" \u0E43\u0E19 oneOf';break;default:n='\u0E15\u0E49\u0E2D\u0E07\u0E1C\u0E48\u0E32\u0E19\u0E04\u0E35\u0E22\u0E4C\u0E40\u0E27\u0E34\u0E23\u0E4C\u0E14 "'+i.keyword+'"'}break;case"enum":n="\u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19\u0E04\u0E48\u0E32\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";break;case"false schema":n="schema \u0E40\u0E1B\u0E47\u0E19 false";break;case"format":n='\u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07 "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07 "+s;break;case"if":n='\u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A schema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07 "+s;break;case"maxItems":n="";var r=i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E2A\u0E21\u0E32\u0E0A\u0E34\u0E01\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 "+r;break;case"maxLength":n="";var r=i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07\u0E22\u0E32\u0E27\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 "+r+" \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23";break;case"maxProperties":n="";var r=i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 property \u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 "+r+" \u0E15\u0E31\u0E27";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07 "+s;break;case"minItems":n="";var r=i.params.limit;n+="\u0E04\u0E27\u0E23\u0E21\u0E35\u0E2A\u0E21\u0E32\u0E0A\u0E34\u0E01\u0E44\u0E21\u0E48\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32 "+r;break;case"minLength":n="";var r=i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 "+r+" \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23";break;case"minProperties":n="";var r=i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 property \u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 "+r+" \u0E15\u0E31\u0E27";break;case"multipleOf":n="\u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E40\u0E25\u0E02\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23 "+i.params.multipleOf+" \u0E25\u0E07\u0E15\u0E31\u0E27";break;case"not":n='\u0E15\u0E49\u0E2D\u0E07\u0E44\u0E21\u0E48\u0E1C\u0E48\u0E32\u0E19 schema \u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49\u0E43\u0E19 "not"';break;case"oneOf":n='\u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A schema \u0E15\u0E31\u0E27\u0E40\u0E14\u0E35\u0E22\u0E27\u0E43\u0E19 "oneOf" \u0E40\u0E17\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19';break;case"pattern":n='\u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E15\u0E32\u0E21 pattern "'+i.params.pattern+'"';break;case"patternRequired":n='\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 property \u0E17\u0E35\u0E48\u0E21\u0E35\u0E0A\u0E37\u0E48\u0E2D\u0E15\u0E23\u0E07\u0E15\u0E32\u0E21 pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="\u0E0A\u0E37\u0E48\u0E2D property \u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07";break;case"required":n="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 property "+i.params.missingProperty+" \u0E14\u0E49\u0E27\u0E22";break;case"type":n="\u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19 "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 "+r+" \u0E15\u0E31\u0E27";break;case"unevaluatedProperties":n="\u0E15\u0E49\u0E2D\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35 property \u0E17\u0E35\u0E48\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E1C\u0E48\u0E32\u0E19\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E40\u0E07\u0E37\u0E48\u0E2D\u0E19\u0E44\u0E02\u0E43\u0E14\u0E46";break;case"uniqueItems":n="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E2A\u0E21\u0E32\u0E0A\u0E34\u0E01\u0E44\u0E21\u0E48\u0E0B\u0E49\u0E33\u0E31\u0E01\u0E31\u0E19 (\u0E25\u0E33\u0E14\u0E31\u0E1A\u0E17\u0E35\u0E48 "+i.params.j+" \u0E01\u0E31\u0E1A "+i.params.i+" \u0E0B\u0E49\u0E33\u0E01\u0E31\u0E19)";break;default:n='\u0E15\u0E49\u0E2D\u0E07\u0E1C\u0E48\u0E32\u0E19\u0E04\u0E35\u0E22\u0E4C\u0E40\u0E27\u0E34\u0E23\u0E4C\u0E14 "'+i.keyword+'"'}i.message=n}}});var $P=h((Bfe,PP)=>{"use strict";PP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="\u4E0D\u5141\u8BB8\u8D85\u8FC7"+r+"\u4E2A\u5143\u7D20";break;case"additionalProperties":n="\u4E0D\u5141\u8BB8\u6709\u989D\u5916\u7684\u5C5E\u6027";break;case"anyOf":n="\u6570\u636E\u5E94\u4E3A anyOf \u6240\u6307\u5B9A\u7684\u5176\u4E2D\u4E00\u4E2A";break;case"const":n="\u5E94\u5F53\u7B49\u4E8E\u5E38\u91CF";break;case"contains":n="\u5E94\u5F53\u5305\u542B\u4E00\u4E2A\u6709\u6548\u9879";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="\u5E94\u5F53\u62E5\u6709\u5C5E\u6027"+i.params.property+"\u7684\u4F9D\u8D56\u5C5E\u6027"+i.params.deps;break;case"discriminator":switch(i.params.error){case"tag":n='\u6807\u7B7E "'+i.params.tag+'" \u7684\u7C7B\u578B\u5FC5\u987B\u4E3A\u5B57\u7B26\u4E32';break;case"mapping":n='\u6807\u7B7E "'+i.params.tag+'" \u7684\u503C\u5FC5\u987B\u5728 oneOf \u4E4B\u4E2D';break;default:n='\u5E94\u5F53\u901A\u8FC7 "'+i.keyword+' \u5173\u952E\u8BCD\u6821\u9A8C"'}break;case"enum":n="\u5E94\u5F53\u662F\u9884\u8BBE\u5B9A\u7684\u679A\u4E3E\u503C\u4E4B\u4E00";break;case"false schema":n="\u5E03\u5C14\u6A21\u5F0F\u51FA\u9519";break;case"format":n='\u5E94\u5F53\u5339\u914D\u683C\u5F0F "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u5E94\u5F53\u662F "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u5E94\u5F53\u662F "+s;break;case"if":n='\u5E94\u5F53\u5339\u914D\u6A21\u5F0F "'+i.params.failingKeyword+'" ';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u5E94\u5F53\u4E3A "+s;break;case"maxItems":n="";var r=i.params.limit;n+="\u4E0D\u5E94\u591A\u4E8E "+r+" \u4E2A\u9879";break;case"maxLength":n="";var r=i.params.limit;n+="\u4E0D\u5E94\u591A\u4E8E "+r+" \u4E2A\u5B57\u7B26";break;case"maxProperties":n="";var r=i.params.limit;n+="\u4E0D\u5E94\u6709\u591A\u4E8E "+r+" \u4E2A\u5C5E\u6027";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u5E94\u5F53\u4E3A "+s;break;case"minItems":n="";var r=i.params.limit;n+="\u4E0D\u5E94\u5C11\u4E8E "+r+" \u4E2A\u9879";break;case"minLength":n="";var r=i.params.limit;n+="\u4E0D\u5E94\u5C11\u4E8E "+r+" \u4E2A\u5B57\u7B26";break;case"minProperties":n="";var r=i.params.limit;n+="\u4E0D\u5E94\u6709\u5C11\u4E8E "+r+" \u4E2A\u5C5E\u6027";break;case"multipleOf":n="\u5E94\u5F53\u662F "+i.params.multipleOf+" \u7684\u6574\u6570\u500D";break;case"not":n='\u4E0D\u5E94\u5F53\u5339\u914D "not" schema';break;case"oneOf":n='\u53EA\u80FD\u5339\u914D\u4E00\u4E2A "oneOf" \u4E2D\u7684 schema';break;case"pattern":n='\u5E94\u5F53\u5339\u914D\u6A21\u5F0F "'+i.params.pattern+'"';break;case"patternRequired":n="\u5E94\u5F53\u6709\u5C5E\u6027\u5339\u914D\u6A21\u5F0F "+i.params.missingPattern;break;case"propertyNames":n="\u5C5E\u6027\u540D \u65E0\u6548";break;case"required":n="\u5E94\u5F53\u6709\u5FC5\u9700\u5C5E\u6027 "+i.params.missingProperty;break;case"type":n="\u5E94\u5F53\u662F "+i.params.type+" \u7C7B\u578B";break;case"unevaluatedItems":n="";var r=i.params.len;n+=" \u4E0D\u5141\u8BB8\u6709\u8D85\u8FC7 "+r+" \u4E2A\u5143\u7D20";break;case"unevaluatedProperties":n="\u4E0D\u5141\u8BB8\u5B58\u5728\u672A\u6C42\u503C\u7684\u5C5E\u6027";break;case"uniqueItems":n="\u4E0D\u5E94\u5F53\u542B\u6709\u91CD\u590D\u9879 (\u7B2C "+i.params.j+" \u9879\u4E0E\u7B2C "+i.params.i+" \u9879\u662F\u91CD\u590D\u7684)";break;default:n='\u5E94\u5F53\u901A\u8FC7 "'+i.keyword+' \u5173\u952E\u8BCD\u6821\u9A8C"'}i.message=n}}});var jP=h((Lfe,FP)=>{"use strict";FP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="\u4E0D\u53EF\u4EE5\u8D85\u904E"+r+"\u500B\u5143\u7D20";break;case"additionalProperties":n="\u4E0D\u53EF\u4EE5\u6709\u984D\u5916\u7684\u5C6C\u6027";break;case"anyOf":n="\u4E0D\u7B26\u5408 anyOf \u6307\u5B9A\u7684\u6A21\u5F0F";break;case"const":n="\u61C9\u8A72\u7B49\u65BC\u5E38\u6578";break;case"contains":n="\u61C9\u8A72\u5305\u542B\u4E00\u500B\u6709\u6548\u5143\u7D20";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="\u61C9\u8A72\u8981\u6709\u5C6C\u6027"+i.params.property+"\u7684\u4F9D\u8CF4\u5C6C\u6027"+i.params.deps;break;case"discriminator":switch(i.params.error){case"tag":n='\u6A19\u7C64 "'+i.params.tag+'" \u7684\u985E\u578B\u5FC5\u9808\u662F\u5B57\u4E32';break;case"mapping":n='\u6A19\u7C64 "'+i.params.tag+'" \u5FC5\u9808\u5728 oneOf \u5176\u4E2D\u4E4B\u4E00';break;default:n='\u61C9\u8A72\u901A\u904E "'+i.keyword+' \u95DC\u9375\u8A5E\u6AA2\u9A57"'}break;case"enum":n="\u61C9\u8A72\u8981\u5728\u9810\u8A2D\u7684\u503C\u4E4B\u4E2D";break;case"false schema":n="\u5E03\u6797\u6A21\u5F0F\u4E0D\u6B63\u78BA";break;case"format":n="\u61C9\u8A72\u8981\u7B26\u5408"+i.params.format+"\u683C\u5F0F";break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u61C9\u8A72\u662F "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u61C9\u8A72\u662F "+s;break;case"if":n='\u61C9\u8A72\u7B26\u5408 "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u61C9\u8A72\u8981 "+s;break;case"maxItems":n="";var r=i.params.limit;n+="\u4E0D\u61C9\u8A72\u591A\u65BC "+r+" \u500B";break;case"maxLength":n="";var r=i.params.limit;n+="\u4E0D\u61C9\u8A72\u591A\u65BC "+r+" \u500B\u5B57\u5143";break;case"maxProperties":n="";var r=i.params.limit;n+="\u4E0D\u61C9\u8A72\u591A\u65BC "+r+" \u500B\u5C6C\u6027";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u61C9\u8A72\u8981 "+s;break;case"minItems":n="";var r=i.params.limit;n+="\u4E0D\u61C9\u8A72\u5C11\u65BC "+r+" \u500B";break;case"minLength":n="";var r=i.params.limit;n+="\u4E0D\u61C9\u8A72\u5C11\u65BC "+r+" \u500B\u5B57\u5143";break;case"minProperties":n="";var r=i.params.limit;n+="\u4E0D\u61C9\u8A72\u5C11\u65BC "+r+" \u500B\u5C6C\u6027";break;case"multipleOf":n="\u61C9\u8A72\u662F "+i.params.multipleOf+" \u7684\u6574\u6578\u500D";break;case"not":n='\u4E0D\u61C9\u8A72\u7B26\u5408 "not" schema';break;case"oneOf":n='\u53EA\u80FD\u7B26\u5408\u4E00\u500B "oneOf" \u4E2D\u7684 schema';break;case"pattern":n='\u61C9\u8A72\u7B26\u5408\u6A21\u5F0F "'+i.params.pattern+'"';break;case"patternRequired":n="\u61C9\u8A72\u6709\u5C6C\u6027\u5C0D\u61C9\u6A21\u5F0F "+i.params.missingPattern;break;case"propertyNames":n="\u5C5E\u6027\u540D \u7121\u6548";break;case"required":n="\u61C9\u8A72\u6709\u5FC5\u9808\u5C6C\u6027 "+i.params.missingProperty;break;case"type":n="\u61C9\u8A72\u662F "+i.params.type+" \u985E\u578B";break;case"unevaluatedItems":n="";var r=i.params.len;n+=" \u7684\u5143\u7D20\u4E0D\u53EF\u4EE5\u8D85\u904E "+r+" \u500B";break;case"unevaluatedProperties":n="\u4E0D\u61C9\u8A72\u6709\u672A\u9A57\u8B49\u7684\u5C6C\u6027";break;case"uniqueItems":n="\u4E0D\u61C9\u8A72\u6709\u91CD\u8907\u9805\u76EE (\u7B2C "+i.params.j+" \u9805\u548C\u7B2C "+i.params.i+" \u9805\u662F\u91CD\u8907\u7684)";break;default:n='\u61C9\u8A72\u901A\u904E "'+i.keyword+' \u95DC\u9375\u8A5E\u6AA2\u9A57"'}i.message=n}}});var MP=h((Hfe,IP)=>{"use strict";IP.exports={en:VR(),ar:WR(),ca:YR(),cs:QR(),de:ZR(),es:tP(),fi:sP(),fr:nP(),hu:oP(),id:lP(),it:fP(),ja:hP(),ko:mP(),nb:yP(),nl:bP(),pl:wP(),"pt-BR":kP(),ru:CP(),sk:xP(),sv:OP(),th:RP(),zh:$P(),"zh-TW":jP()}});var Rs=h(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.GitError=void 0;var NP=class extends Error{constructor(e,r){super(r);this.task=e,Object.setPrototypeOf(this,new.target.prototype)}};Uf.GitError=NP});var La=h(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.GitResponseError=void 0;var KK=Rs(),qP=class extends KK.GitError{constructor(e,r){super(void 0,r||String(e));this.git=e}};Gf.GitResponseError=qP});var LP=h(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.GitConstructError=void 0;var YK=Rs(),BP=class extends YK.GitError{constructor(e,r){super(void 0,r);this.config=e}};Vf.GitConstructError=BP});var n0=h(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.GitPluginError=void 0;var JK=Rs(),HP=class extends JK.GitError{constructor(e,r,s){super(e,s);this.task=e,this.plugin=r,Object.setPrototypeOf(this,new.target.prototype)}};zf.GitPluginError=HP});var a0=h(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.TaskConfigurationError=void 0;var QK=Rs(),UP=class extends QK.GitError{constructor(e){super(void 0,e)}};Wf.TaskConfigurationError=UP});var VP=h((Kfe,GP)=>{var Ha=1e3,Ua=Ha*60,Ga=Ua*60,yn=Ga*24,XK=yn*7,ZK=yn*365.25;GP.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return eY(t);if(r==="number"&&isFinite(t))return e.long?rY(t):tY(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function eY(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!!e){var r=parseFloat(e[1]),s=(e[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return r*ZK;case"weeks":case"week":case"w":return r*XK;case"days":case"day":case"d":return r*yn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ga;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ua;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ha;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function tY(t){var e=Math.abs(t);return e>=yn?Math.round(t/yn)+"d":e>=Ga?Math.round(t/Ga)+"h":e>=Ua?Math.round(t/Ua)+"m":e>=Ha?Math.round(t/Ha)+"s":t+"ms"}function rY(t){var e=Math.abs(t);return e>=yn?Kf(t,e,yn,"day"):e>=Ga?Kf(t,e,Ga,"hour"):e>=Ua?Kf(t,e,Ua,"minute"):e>=Ha?Kf(t,e,Ha,"second"):t+" ms"}function Kf(t,e,r,s){var i=e>=r*1.5;return Math.round(t/r)+" "+s+(i?"s":"")}});var o0=h((Yfe,zP)=>{function sY(t){r.debug=r,r.default=r,r.coerce=u,r.disable=n,r.enable=i,r.enabled=a,r.humanize=VP(),r.destroy=l,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let f=0;for(let d=0;d<c.length;d++)f=(f<<5)-f+c.charCodeAt(d),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=e;function r(c){let f,d=null,m,p;function g(...b){if(!g.enabled)return;let y=g,w=Number(new Date),k=w-(f||w);y.diff=k,y.prev=f,y.curr=w,f=w,b[0]=r.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let O=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(I,z)=>{if(I==="%%")return"%";O++;let T=r.formatters[z];if(typeof T=="function"){let $=b[O];I=T.call(y,$),b.splice(O,1),O--}return I}),r.formatArgs.call(y,b),(y.log||r.log).apply(y,b)}return g.namespace=c,g.useColors=r.useColors(),g.color=r.selectColor(c),g.extend=s,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(m!==r.namespaces&&(m=r.namespaces,p=r.enabled(c)),p),set:b=>{d=b}}),typeof r.init=="function"&&r.init(g),g}function s(c,f){let d=r(this.namespace+(typeof f=="undefined"?":":f)+c);return d.log=this.log,d}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f,d=(typeof c=="string"?c:"").split(/[\s,]+/),m=d.length;for(f=0;f<m;f++)!d[f]||(c=d[f].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.substr(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function n(){let c=[...r.names.map(o),...r.skips.map(o).map(f=>"-"+f)].join(",");return r.enable(""),c}function a(c){if(c[c.length-1]==="*")return!0;let f,d;for(f=0,d=r.skips.length;f<d;f++)if(r.skips[f].test(c))return!1;for(f=0,d=r.names.length;f<d;f++)if(r.names[f].test(c))return!0;return!1}function o(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}zP.exports=sY});var WP=h((ar,Yf)=>{ar.formatArgs=nY;ar.save=aY;ar.load=oY;ar.useColors=iY;ar.storage=uY();ar.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ar.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function iY(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function nY(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Yf.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,s=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(s=r))}),t.splice(s,0,e)}ar.log=console.debug||console.log||(()=>{});function aY(t){try{t?ar.storage.setItem("debug",t):ar.storage.removeItem("debug")}catch{}}function oY(){let t;try{t=ar.storage.getItem("debug")}catch{}return!t&&typeof process!="undefined"&&"env"in process&&(t=process.env.DEBUG),t}function uY(){try{return localStorage}catch{}}Yf.exports=o0()(ar);var{formatters:lY}=Yf.exports;lY.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var YP=h((Jfe,KP)=>{"use strict";KP.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",s=e.indexOf(r+t),i=e.indexOf("--");return s!==-1&&(i===-1||s<i)}});var XP=h((Qfe,QP)=>{"use strict";var cY=require("os"),JP=require("tty"),kr=YP(),{env:gt}=process,yi;kr("no-color")||kr("no-colors")||kr("color=false")||kr("color=never")?yi=0:(kr("color")||kr("colors")||kr("color=true")||kr("color=always"))&&(yi=1);"FORCE_COLOR"in gt&&(gt.FORCE_COLOR==="true"?yi=1:gt.FORCE_COLOR==="false"?yi=0:yi=gt.FORCE_COLOR.length===0?1:Math.min(parseInt(gt.FORCE_COLOR,10),3));function u0(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function l0(t,e){if(yi===0)return 0;if(kr("color=16m")||kr("color=full")||kr("color=truecolor"))return 3;if(kr("color=256"))return 2;if(t&&!e&&yi===void 0)return 0;let r=yi||0;if(gt.TERM==="dumb")return r;if(process.platform==="win32"){let s=cY.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in gt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(s=>s in gt)||gt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in gt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(gt.TEAMCITY_VERSION)?1:0;if(gt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in gt){let s=parseInt((gt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(gt.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(gt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(gt.TERM)||"COLORTERM"in gt?1:r}function fY(t){let e=l0(t,t&&t.isTTY);return u0(e)}QP.exports={supportsColor:fY,stdout:u0(l0(!0,JP.isatty(1))),stderr:u0(l0(!0,JP.isatty(2)))}});var e$=h((xt,Qf)=>{var dY=require("tty"),Jf=require("util");xt.init=bY;xt.log=gY;xt.formatArgs=pY;xt.save=yY;xt.load=vY;xt.useColors=hY;xt.destroy=Jf.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");xt.colors=[6,2,3,4,5,1];try{let t=XP();t&&(t.stderr||t).level>=2&&(xt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}xt.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,n)=>n.toUpperCase()),s=process.env[e];return/^(yes|on|true|enabled)$/i.test(s)?s=!0:/^(no|off|false|disabled)$/i.test(s)?s=!1:s==="null"?s=null:s=Number(s),t[r]=s,t},{});function hY(){return"colors"in xt.inspectOpts?Boolean(xt.inspectOpts.colors):dY.isatty(process.stderr.fd)}function pY(t){let{namespace:e,useColors:r}=this;if(r){let s=this.color,i="[3"+(s<8?s:"8;5;"+s),n=` ${i};1m${e} [0m`;t[0]=n+t[0].split(`
|
|
89
|
+
deps: ${r}}`};var GW={keyword:"dependencies",type:"object",schemaType:"object",error:os.error,code(t){let[e,r]=VW(t);hR(t,e),pR(t,r)}};function VW({schema:t}){let e={},r={};for(let s in t){if(s==="__proto__")continue;let i=Array.isArray(t[s])?e:r;i[s]=t[s]}return[e,r]}function hR(t,e=t.schema){let{gen:r,data:s,it:i}=t;if(Object.keys(e).length===0)return;let n=r.let("missing");for(let a in e){let o=e[a];if(o.length===0)continue;let u=(0,Ju.propertyInData)(r,s,a,i.opts.ownProperties);t.setParams({property:a,depsCount:o.length,deps:o.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of o)(0,Ju.checkReportMissingProp)(t,l)}):(r.if((0,By._)`${u} && (${(0,Ju.checkMissingProp)(t,o,n)})`),(0,Ju.reportMissingProp)(t,n),r.else())}}os.validatePropertyDeps=hR;function pR(t,e=t.schema){let{gen:r,data:s,keyword:i,it:n}=t,a=r.name("valid");for(let o in e)(0,UW.alwaysValidSchema)(n,e[o])||(r.if((0,Ju.propertyInData)(r,s,o,n.opts.ownProperties),()=>{let u=t.subschema({keyword:i,schemaProp:o},a);t.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),t.ok(a))}os.validateSchemaDeps=pR;os.default=GW});var yR=h(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var gR=oe(),zW=we(),WW={message:"property name must be valid",params:({params:t})=>(0,gR._)`{propertyName: ${t.propertyName}}`},KW={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:WW,code(t){let{gen:e,schema:r,data:s,it:i}=t;if((0,zW.alwaysValidSchema)(i,r))return;let n=e.name("valid");e.forIn("key",s,a=>{t.setParams({propertyName:a}),t.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},n),e.if((0,gR.not)(n),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(n)}};Ly.default=KW});var Uy=h(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});var Mf=_r(),Ur=oe(),YW=Os(),Nf=we(),JW={message:"must NOT have additional properties",params:({params:t})=>(0,Ur._)`{additionalProperty: ${t.additionalProperty}}`},QW={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:JW,code(t){let{gen:e,schema:r,parentSchema:s,data:i,errsCount:n,it:a}=t;if(!n)throw new Error("ajv implementation error");let{allErrors:o,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Nf.alwaysValidSchema)(a,r))return;let l=(0,Mf.allSchemaProperties)(s.properties),c=(0,Mf.allSchemaProperties)(s.patternProperties);f(),t.ok((0,Ur._)`${n} === ${YW.default.errors}`);function f(){e.forIn("key",i,b=>{!l.length&&!c.length?m(b):e.if(d(b),()=>m(b))})}function d(b){let y;if(l.length>8){let w=(0,Nf.schemaRefOrVal)(a,s.properties,"properties");y=(0,Mf.isOwnProperty)(e,w,b)}else l.length?y=(0,Ur.or)(...l.map(w=>(0,Ur._)`${b} === ${w}`)):y=Ur.nil;return c.length&&(y=(0,Ur.or)(y,...c.map(w=>(0,Ur._)`${(0,Mf.usePattern)(t,w)}.test(${b})`))),(0,Ur.not)(y)}function p(b){e.code((0,Ur._)`delete ${i}[${b}]`)}function m(b){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){p(b);return}if(r===!1){t.setParams({additionalProperty:b}),t.error(),o||e.break();return}if(typeof r=="object"&&!(0,Nf.alwaysValidSchema)(a,r)){let y=e.name("valid");u.removeAdditional==="failing"?(g(b,y,!1),e.if((0,Ur.not)(y),()=>{t.reset(),p(b)})):(g(b,y),o||e.if((0,Ur.not)(y),()=>e.break()))}}function g(b,y,w){let k={keyword:"additionalProperties",dataProp:b,dataPropType:Nf.Type.Str};w===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(k,y)}}};Hy.default=QW});var _R=h(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});var XW=Nu(),vR=_r(),Gy=we(),bR=Uy(),ZW={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:s,data:i,it:n}=t;n.opts.removeAdditional==="all"&&s.additionalProperties===void 0&&bR.default.code(new XW.KeywordCxt(n,bR.default,"additionalProperties"));let a=(0,vR.allSchemaProperties)(r);for(let f of a)n.definedProperties.add(f);n.opts.unevaluated&&a.length&&n.props!==!0&&(n.props=Gy.mergeEvaluated.props(e,(0,Gy.toHash)(a),n.props));let o=a.filter(f=>!(0,Gy.alwaysValidSchema)(n,r[f]));if(o.length===0)return;let u=e.name("valid");for(let f of o)l(f)?c(f):(e.if((0,vR.propertyInData)(e,i,f,n.opts.ownProperties)),c(f),n.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(u);function l(f){return n.opts.useDefaults&&!n.compositeRule&&r[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};Vy.default=ZW});var DR=h(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});var wR=_r(),qf=oe(),ER=we(),kR=we(),eK={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:s,parentSchema:i,it:n}=t,{opts:a}=n,o=(0,wR.allSchemaProperties)(r),u=o.filter(g=>(0,ER.alwaysValidSchema)(n,r[g]));if(o.length===0||u.length===o.length&&(!n.opts.unevaluated||n.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,c=e.name("valid");n.props!==!0&&!(n.props instanceof qf.Name)&&(n.props=(0,kR.evaluatedPropsToName)(e,n.props));let{props:f}=n;d();function d(){for(let g of o)l&&p(g),n.allErrors?m(g):(e.var(c,!0),m(g),e.if(c))}function p(g){for(let b in l)new RegExp(g).test(b)&&(0,ER.checkStrictMode)(n,`property ${b} matches pattern ${g} (use allowMatchingProperties)`)}function m(g){e.forIn("key",s,b=>{e.if((0,qf._)`${(0,wR.usePattern)(t,g)}.test(${b})`,()=>{let y=u.includes(g);y||t.subschema({keyword:"patternProperties",schemaProp:g,dataProp:b,dataPropType:kR.Type.Str},c),n.opts.unevaluated&&f!==!0?e.assign((0,qf._)`${f}[${b}]`,!0):!y&&!n.allErrors&&e.if((0,qf.not)(c),()=>e.break())})})}}};zy.default=eK});var CR=h(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var tK=we(),rK={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:s}=t;if((0,tK.alwaysValidSchema)(s,r)){t.fail();return}let i=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};Wy.default=rK});var SR=h(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});var sK=_r(),iK={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:sK.validateUnion,error:{message:"must match a schema in anyOf"}};Ky.default=iK});var xR=h(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});var Bf=oe(),nK=we(),aK={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,Bf._)`{passingSchemas: ${t.passing}}`},oK={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:aK,code(t){let{gen:e,schema:r,parentSchema:s,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&s.discriminator)return;let n=r,a=e.let("valid",!1),o=e.let("passing",null),u=e.name("_valid");t.setParams({passing:o}),e.block(l),t.result(a,()=>t.reset(),()=>t.error(!0));function l(){n.forEach((c,f)=>{let d;(0,nK.alwaysValidSchema)(i,c)?e.var(u,!0):d=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&e.if((0,Bf._)`${u} && ${a}`).assign(a,!1).assign(o,(0,Bf._)`[${o}, ${f}]`).else(),e.if(u,()=>{e.assign(a,!0),e.assign(o,f),d&&t.mergeEvaluated(d,Bf.Name)})})}}};Yy.default=oK});var AR=h(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});var uK=we(),lK={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=e.name("valid");r.forEach((n,a)=>{if((0,uK.alwaysValidSchema)(s,n))return;let o=t.subschema({keyword:"allOf",schemaProp:a},i);t.ok(i),t.mergeEvaluated(o)})}};Jy.default=lK});var RR=h(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});var Lf=oe(),OR=we(),cK={message:({params:t})=>(0,Lf.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Lf._)`{failingKeyword: ${t.ifClause}}`},fK={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:cK,code(t){let{gen:e,parentSchema:r,it:s}=t;r.then===void 0&&r.else===void 0&&(0,OR.checkStrictMode)(s,'"if" without "then" and "else" is ignored');let i=TR(s,"then"),n=TR(s,"else");if(!i&&!n)return;let a=e.let("valid",!0),o=e.name("_valid");if(u(),t.reset(),i&&n){let c=e.let("ifClause");t.setParams({ifClause:c}),e.if(o,l("then",c),l("else",c))}else i?e.if(o,l("then")):e.if((0,Lf.not)(o),l("else"));t.pass(a,()=>t.error(!0));function u(){let c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(c)}function l(c,f){return()=>{let d=t.subschema({keyword:c},o);e.assign(a,o),t.mergeValidEvaluated(d,a),f?e.assign(f,(0,Lf._)`${c}`):t.setParams({ifClause:c})}}}};function TR(t,e){let r=t.schema[e];return r!==void 0&&!(0,OR.alwaysValidSchema)(t,r)}Qy.default=fK});var PR=h(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});var dK=we(),hK={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,dK.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};Xy.default=hK});var $R=h(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});var pK=jy(),mK=lR(),gK=Iy(),yK=fR(),vK=dR(),bK=mR(),_K=yR(),wK=Uy(),EK=_R(),kK=DR(),DK=CR(),CK=SR(),SK=xR(),xK=AR(),AK=RR(),OK=PR();function TK(t=!1){let e=[DK.default,CK.default,SK.default,xK.default,AK.default,OK.default,_K.default,wK.default,bK.default,EK.default,kK.default];return t?e.push(mK.default,yK.default):e.push(pK.default,gK.default),e.push(vK.default),e}Zy.default=TK});var FR=h(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});var Qe=oe(),RK={message:({schemaCode:t})=>(0,Qe.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Qe._)`{format: ${t}}`},PK={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:RK,code(t,e){let{gen:r,data:s,$data:i,schema:n,schemaCode:a,it:o}=t,{opts:u,errSchemaPath:l,schemaEnv:c,self:f}=o;if(!u.validateFormats)return;i?d():p();function d(){let m=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),g=r.const("fDef",(0,Qe._)`${m}[${a}]`),b=r.let("fType"),y=r.let("format");r.if((0,Qe._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(b,(0,Qe._)`${g}.type || "string"`).assign(y,(0,Qe._)`${g}.validate`),()=>r.assign(b,(0,Qe._)`"string"`).assign(y,g)),t.fail$data((0,Qe.or)(w(),k()));function w(){return u.strictSchema===!1?Qe.nil:(0,Qe._)`${a} && !${y}`}function k(){let O=c.$async?(0,Qe._)`(${g}.async ? await ${y}(${s}) : ${y}(${s}))`:(0,Qe._)`${y}(${s})`,P=(0,Qe._)`(typeof ${y} == "function" ? ${O} : ${y}.test(${s}))`;return(0,Qe._)`${y} && ${y} !== true && ${b} === ${e} && !${P}`}}function p(){let m=f.formats[n];if(!m){w();return}if(m===!0)return;let[g,b,y]=k(m);g===e&&t.pass(O());function w(){if(u.strictSchema===!1){f.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${n}" ignored in schema at path "${l}"`}}function k(P){let I=P instanceof RegExp?(0,Qe.regexpCode)(P):u.code.formats?(0,Qe._)`${u.code.formats}${(0,Qe.getProperty)(n)}`:void 0,z=r.scopeValue("formats",{key:n,ref:P,code:I});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,Qe._)`${z}.validate`]:["string",P,z]}function O(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!c.$async)throw new Error("async format in sync schema");return(0,Qe._)`await ${y}(${s})`}return typeof b=="function"?(0,Qe._)`${y}(${s})`:(0,Qe._)`${y}.test(${s})`}}}};e0.default=PK});var jR=h(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});var $K=FR(),FK=[$K.default];t0.default=FK});var IR=h(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.contentVocabulary=Na.metadataVocabulary=void 0;Na.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Na.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var NR=h(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});var jK=VT(),IK=nR(),MK=$R(),NK=jR(),MR=IR(),qK=[jK.default,IK.default,(0,MK.default)(),NK.default,MR.metadataVocabulary,MR.contentVocabulary];r0.default=qK});var qR=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.DiscrError=void 0;var BK;(function(t){t.Tag="tag",t.Mapping="mapping"})(BK=Qu.DiscrError||(Qu.DiscrError={}))});var BR=h(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});var qa=oe(),s0=qR(),LK={message:({params:{discrError:t,tagName:e}})=>t===s0.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,qa._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},HK={keyword:"discriminator",type:"object",schemaType:"object",error:LK,code(t){let{gen:e,data:r,schema:s,parentSchema:i,it:n}=t,{oneOf:a}=i;if(!n.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=s.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=e.let("valid",!1),l=e.const("tag",(0,qa._)`${r}${(0,qa.getProperty)(o)}`);e.if((0,qa._)`typeof ${l} == "string"`,()=>c(),()=>t.error(!1,{discrError:s0.DiscrError.Tag,tag:l,tagName:o})),t.ok(u);function c(){let p=d();e.if(!1);for(let m in p)e.elseIf((0,qa._)`${l} === ${m}`),e.assign(u,f(p[m]));e.else(),t.error(!1,{discrError:s0.DiscrError.Mapping,tag:l,tagName:o}),e.endIf()}function f(p){let m=e.name("valid"),g=t.subschema({keyword:"oneOf",schemaProp:p},m);return t.mergeEvaluated(g,qa.Name),m}function d(){var p;let m={},g=y(i),b=!0;for(let O=0;O<a.length;O++){let P=a[O],I=(p=P.properties)===null||p===void 0?void 0:p[o];if(typeof I!="object")throw new Error(`discriminator: oneOf schemas must have "properties/${o}"`);b=b&&(g||y(P)),w(I,O)}if(!b)throw new Error(`discriminator: "${o}" must be required`);return m;function y({required:O}){return Array.isArray(O)&&O.includes(o)}function w(O,P){if(O.const)k(O.const,P);else if(O.enum)for(let I of O.enum)k(I,P);else throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`)}function k(O,P){if(typeof O!="string"||O in m)throw new Error(`discriminator: "${o}" values must be unique strings`);m[O]=P}}}};i0.default=HK});var LR=h((bfe,UK)=>{UK.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var GR=h((at,UR)=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.CodeGen=at.Name=at.nil=at.stringify=at.str=at._=at.KeywordCxt=void 0;var GK=qT(),VK=NR(),zK=BR(),HR=LR(),WK=["/properties"],Hf="http://json-schema.org/draft-07/schema",n0=class extends GK.default{_addVocabularies(){super._addVocabularies(),VK.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(zK.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(HR,WK):HR;this.addMetaSchema(e,Hf,!1),this.refs["http://json-schema.org/schema"]=Hf}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Hf)?Hf:void 0)}};UR.exports=at=n0;Object.defineProperty(at,"__esModule",{value:!0});at.default=n0;var KK=Nu();Object.defineProperty(at,"KeywordCxt",{enumerable:!0,get:function(){return KK.KeywordCxt}});var Ba=oe();Object.defineProperty(at,"_",{enumerable:!0,get:function(){return Ba._}});Object.defineProperty(at,"str",{enumerable:!0,get:function(){return Ba.str}});Object.defineProperty(at,"stringify",{enumerable:!0,get:function(){return Ba.stringify}});Object.defineProperty(at,"nil",{enumerable:!0,get:function(){return Ba.nil}});Object.defineProperty(at,"Name",{enumerable:!0,get:function(){return Ba.Name}});Object.defineProperty(at,"CodeGen",{enumerable:!0,get:function(){return Ba.CodeGen}})});var zR=h((_fe,VR)=>{"use strict";VR.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"additionalProperties":n="must NOT have additional properties";break;case"anyOf":n='must match a schema in "anyOf"';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="must have propert",r==1?n+="y":n+="ies",n+=" "+i.params.deps+" when property "+i.params.property+" is present";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="must be equal to one of the allowed values";break;case"false schema":n="boolean schema is false";break;case"format":n='must match format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"maxItems":n="";var r=i.params.limit;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"maxLength":n="";var r=i.params.limit;n+="must NOT be longer than "+r+" character",r!=1&&(n+="s");break;case"maxProperties":n="";var r=i.params.limit;n+="must NOT have more than "+r+" propert",r==1?n+="y":n+="ies";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"minItems":n="";var r=i.params.limit;n+="must NOT have less than "+r+" item",r!=1&&(n+="s");break;case"minLength":n="";var r=i.params.limit;n+="must NOT be shorter than "+r+" character",r!=1&&(n+="s");break;case"minProperties":n="";var r=i.params.limit;n+="must NOT have less than "+r+" propert",r==1?n+="y":n+="ies";break;case"multipleOf":n="must be a multiple of "+i.params.multipleOf;break;case"not":n='must NOT be valid according to schema in "not"';break;case"oneOf":n='must match exactly one schema in "oneOf"';break;case"pattern":n='must match pattern "'+i.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="must have required property "+i.params.missingProperty;break;case"type":n="must be "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="must NOT have duplicate items (items ## "+i.params.j+" and "+i.params.i+" are identical)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}});var KR=h((wfe,WR)=>{"use strict";WR.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0643\u062B\u0631 \u0645\u0646 "+r+" \u0639\u0646\u0635\u0631";break;case"additionalProperties":n="\u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u062E\u0635\u0627\u0626\u0635 \u0625\u0636\u0627\u0641\u064A\u0629";break;case"anyOf":n='\u064A\u062C\u0628 \u0623\u0646 \u064A\u0648\u0627\u0641\u0642 \u0623\u062D\u062F \u0627\u0644\u0645\u062E\u0637\u0637\u0627\u062A \u0627\u0644\u0645\u0648\u062C\u0648\u062F\u0629 \u0641\u064A "anyOf"';break;case"const":n="\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u062B\u0627\u0628\u062A\u0627\u064B";break;case"contains":n="\u064A\u062C\u0628 \u0623\u0646 \u064A\u062D\u0648\u064A \u0639\u0646\u0635\u0631\u0627 \u0635\u062D\u064A\u062D";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+=" \u064A\u062C\u0628 \u0623\u0646 \u064A\u062D\u0648\u064A \u0627\u0644\u062E\u0635\u0627\u0626\u0635 "+i.params.deps+" \u0639\u0646\u062F\u0645\u0627 \u062A\u0643\u0648\u0646 \u0627\u0644\u062E\u0627\u0635\u064A\u0629 "+i.params.property+" \u0645\u0648\u062C\u0648\u062F\u0629";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='\u064A\u062C\u0628 \u0623\u0646 \u062A\u0645\u0631\u0631 \u0643\u0644\u0645\u0629 \u0627\u0644\u062A\u062D\u0642\u0642 \u0627\u0644\u0645\u0641\u062A\u0627\u062D\u064A\u0629 "'+i.keyword+'"'}break;case"enum":n="\u0642\u064A\u0645\u0629 \u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0645\u0633\u0627\u0648\u064A\u0629 \u0644\u0623\u062D\u062F \u0627\u0644\u0642\u064A\u0645 \u0627\u0644\u0645\u0639\u0631\u0641\u0629 \u0645\u0633\u0628\u0642\u0627\u064B";break;case"false schema":n="\u0627\u0644\u0645\u062E\u0637\u0637 \u0627\u0644\u0645\u0646\u0637\u0642\u064A \u063A\u064A\u0631 \u0635\u062D\u064A\u062D";break;case"format":n='\u064A\u062C\u0628 \u0623\u0646 \u064A\u0648\u0627\u0641\u0642 \u0627\u0644\u0635\u064A\u063A\u0629 "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 "+s;break;case"if":n='\u064A\u062C\u0628 \u0623\u0646 \u062A\u0648\u0627\u0641\u0642 \u0627\u0644\u0645\u062E\u0637\u0637 "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 "+s;break;case"maxItems":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0643\u062B\u0631 \u0645\u0646 "+r+" \u0639\u0646\u0635\u0631";break;case"maxLength":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0643\u062B\u0631 \u0645\u0646 "+r+" \u0645\u062D\u0631\u0641";break;case"maxProperties":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0643\u062B\u0631 \u0645\u0646 "+r+" \u062E\u0635\u0627\u0626\u0635";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 "+s;break;case"minItems":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0642\u0644 \u0645\u0646 "+r+" \u0639\u0646\u0635\u0631";break;case"minLength":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0642\u0644 \u0645\u0646 "+r+" \u0645\u062D\u0631\u0641";break;case"minProperties":n="";var r=i.params.limit;n+=" \u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0623\u0642\u0644 \u0645\u0646 "+r+" \u062E\u0635\u0627\u0626\u0635";break;case"multipleOf":n=" \u064A\u062C\u0628 \u0623\u0646 \u064A\u062D\u0648\u064A \u0623\u0643\u062B\u0631 \u0645\u0646 "+i.params.multipleOf;break;case"not":n='\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u063A\u064A\u0631 \u0635\u062D\u064A\u062D \u0648\u0641\u0642\u0627\u064B \u0644\u0644\u0645\u062E\u0637\u0637 "not"';break;case"oneOf":n='\u064A\u062C\u0628 \u0623\u0646 \u064A\u0648\u0627\u0641\u0642 \u0645\u062E\u0637\u0637 \u0648\u0627\u062D\u062F \u0641\u0642\u0637 \u0645\u0648\u062C\u0648\u062F \u0641\u064A "oneOf"';break;case"pattern":n='\u064A\u062C\u0628 \u0623\u0646 \u064A\u0648\u0627\u0641\u0642 \u0627\u0644\u0646\u0645\u0637 "'+i.params.pattern+'"';break;case"patternRequired":n='\u064A\u062C\u0628 \u0623\u0646 \u064A\u062D\u0648\u064A \u062E\u0627\u0635\u064A\u0629 \u062A\u0648\u0627\u0641\u0642 \u0627\u0644\u0646\u0645\u0637 "'+i.params.missingPattern+'"';break;case"propertyNames":n="\u0627\u0633\u0645 \u0627\u0644\u062E\u0627\u0635\u064A\u0629 \u063A\u064A\u0631 \u0635\u0627\u0644\u062D";break;case"required":n="\u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u0625\u0644\u0632\u0627\u0645\u064A";break;case"type":n="\u0642\u064A\u0645\u0629 \u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u063A\u064A\u0631 \u0635\u0627\u0644\u062D\u0629";break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="\u064A\u062C\u0628 \u0623\u0646 \u0644\u0627 \u064A\u062D\u0648\u064A \u0639\u0646\u0627\u0635\u0631 \u0645\u0643\u0631\u0631\u0629 (\u0627\u0644\u0639\u0646\u0635\u0631 ## "+i.params.j+" \u0648 "+i.params.i+" \u0645\u062A\u0637\u0627\u0628\u0642\u0629)";break;default:n='\u064A\u062C\u0628 \u0623\u0646 \u062A\u0645\u0631\u0631 \u0643\u0644\u0645\u0629 \u0627\u0644\u062A\u062D\u0642\u0642 \u0627\u0644\u0645\u0641\u062A\u0627\u062D\u064A\u0629 "'+i.keyword+'"'}i.message=n}}});var JR=h((Efe,YR)=>{"use strict";YR.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="no ha de tenir m\xE9s de "+r+" element",r!=1&&(n+="s");break;case"additionalProperties":n="no ha de tenir propietats addicionals";break;case"anyOf":n='ha de coincidir amb algun esquema definit a "anyOf"';break;case"const":n="ha de ser igual a la constant";break;case"contains":n="ha de contenir un \xEDtem v\xE0lid";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="ha de contenir la propietat",r!=1&&(n+="s"),n+=" "+i.params.deps+" quan la propietat "+i.params.property+" \xE9s present";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='ha de passar la validaci\xF3 de la clau "'+i.keyword+'"'}break;case"enum":n="ha de ser igual a un dels valors predefinits";break;case"false schema":n="l\u2019esquema \xE9s fals";break;case"format":n='ha de coincidir amb el format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="ha de ser "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="ha de ser "+s;break;case"if":n='ha de correspondre\u2019s amb l\u2019esquema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="ha de ser "+s;break;case"maxItems":n="";var r=i.params.limit;n+="no ha de tenir m\xE9s de "+r+" \xEDtem",r!=1&&(n+="s");break;case"maxLength":n="";var r=i.params.limit;n+="no pot contenir m\xE9s de "+r+" car\xE0cter",r!=1&&(n+="s");break;case"maxProperties":n="";var r=i.params.limit;n+="no pot contenir m\xE9s de "+r+" propietat",r!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="ha de ser "+s;break;case"minItems":n="";var r=i.params.limit;n+="no ha de tenir menys de "+r+" \xEDtem",r!=1&&(n+="s");break;case"minLength":n="";var r=i.params.limit;n+="no pot contenir menys de "+r+" car\xE0cter",r!=1&&(n+="s");break;case"minProperties":n="";var r=i.params.limit;n+="no pot contenir menys de "+r+" propietat",r!=1&&(n+="s");break;case"multipleOf":n="ha de ser m\xFAltiple de "+i.params.multipleOf;break;case"not":n='no ha de ser v\xE0lid d\u2019acord amb l\u2019esquema definit a "not"';break;case"oneOf":n='ha de coincidir nom\xE9s amb un esquema definit a "oneOf"';break;case"pattern":n='ha de coincidir amb el patr\xF3 "'+i.params.pattern+'"';break;case"patternRequired":n='la propietat ha de coincidir amb el patr\xF3 "'+i.params.missingPattern+'"';break;case"propertyNames":n="la propietat no \xE9s v\xE0lida";break;case"required":n="ha de tenir la propietat requerida "+i.params.missingProperty;break;case"type":n="ha de ser del tipus "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no ha de tenir \xEDtems duplicats (els \xEDtems ## "+i.params.j+" i "+i.params.i+" s\xF3n id\xE8ntics)";break;default:n='ha de passar la validaci\xF3 de la clau "'+i.keyword+'"'}i.message=n}}});var XR=h((kfe,QR)=>{"use strict";QR.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="nem\u016F\u017Ee m\xEDt v\xEDc, ne\u017E "+r+" prv",r>=2&&r<=4?n+="ky":r!=1?n+="ek":n+="k\u016F";break;case"additionalProperties":n="nem\u016F\u017Ee m\xEDt dal\u0161\xED polo\u017Eky";break;case"anyOf":n='mus\xED vyhov\u011Bt alespo\u0148 jednomu sch\xE9matu v "anyOf"';break;case"const":n="mus\xED b\xFDt roven konstant\u011B";break;case"contains":n="mus\xED obsahovat prvek odpov\xEDdaj\xEDc\xED sch\xE9matu";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="mus\xED m\xEDt polo\u017E",r>=2&&r<=4?n+="ky":r!=1?n+="ek":n+="ka",n+=": "+i.params.deps+", pokud obsahuje "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='mus\xED vyhov\u011Bt "'+i.keyword+'" validaci'}break;case"enum":n="mus\xED b\xFDt rovno jedn\xE9 hodnot\u011B z v\xFD\u010Dtu";break;case"false schema":n="sch\xE9ma je false";break;case"format":n='mus\xED b\xFDt ve form\xE1tu "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED b\xFDt "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED b\xFDt "+s;break;case"if":n='mus\xED vyhov\u011Bt "'+i.params.failingKeyword+'" sch\xE9matu';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED b\xFDt "+s;break;case"maxItems":n="";var r=i.params.limit;n+="nesm\xED obsahovat v\xEDc ne\u017E "+r+" prv",r>=2&&r<=4?n+="ky":r!=1?n+="ek":n+="k\u016F";break;case"maxLength":n="";var r=i.params.limit;n+="nesm\xED b\xFDt del\u0161\xED ne\u017E "+r+" zna",r>=2&&r<=4?n+="ky":r!=1?n+="k":n+="k\u016F";break;case"maxProperties":n="";var r=i.params.limit;n+="nesm\xED m\xEDt v\xEDc ne\u017E "+r+" polo\u017E",r>=2&&r<=4?n+="ky":r!=1?n+="ek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED b\xFDt "+s;break;case"minItems":n="";var r=i.params.limit;n+="nesm\xED obsahovat m\xE9n\u011B ne\u017E "+r+" prv",r>=2&&r<=4?n+="ky":r!=1?n+="ek":n+="k\u016F";break;case"minLength":n="";var r=i.params.limit;n+="nesm\xED b\xFDt krat\u0161\xED ne\u017E "+r+" zna",r>=2&&r<=4?n+="ky":r!=1?n+="k":n+="k\u016F";break;case"minProperties":n="";var r=i.params.limit;n+="nesm\xED m\xEDt m\xE9n\u011B ne\u017E "+r+" polo\u017E",r>=2&&r<=4?n+="ky":r!=1?n+="ek":n+="ka";break;case"multipleOf":n="mus\xED b\xFDt n\xE1sobkem "+i.params.multipleOf;break;case"not":n='nesm\xED vyhov\u011Bt sch\xE9matu v "not"';break;case"oneOf":n='mus\xED vyhov\u011Bt pr\xE1v\u011B jednomu sch\xE9matu v "oneOf"';break;case"pattern":n='mus\xED vyhov\u011Bt regul\xE1rn\xEDmu v\xFDrazu "'+i.params.pattern+'"';break;case"patternRequired":n='mus\xED obsahovat polo\u017Eku vyhovuj\xEDc\xED regul\xE1rn\xEDmu v\xFDrazu "'+i.params.missingPattern+'"';break;case"propertyNames":n="n\xE1zev polo\u017Eky nen\xED platn\xFD";break;case"required":n="mus\xED obsahovat po\u017Eadovanou polo\u017Eku "+i.params.missingProperty;break;case"type":n="mus\xED b\xFDt "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesm\xED obsahovat duplicitn\xED prvky (prvky ## "+i.params.j+" a "+i.params.i+" jsou identick\xE9)";break;default:n='mus\xED vyhov\u011Bt "'+i.keyword+'" validaci'}i.message=n}}});var eP=h((Dfe,ZR)=>{"use strict";ZR.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="darf nicht mehr als "+r+" Element",r!=1&&(n+="e"),n+=" enthalten";break;case"additionalProperties":n="darf keine zus\xE4tzlichen Attribute haben";break;case"anyOf":n='muss einem der Schemata in "anyOf" entsprechen';break;case"const":n="muss gleich der Konstanten sein";break;case"contains":n="muss ein valides Element enthalten";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="muss Attribut",r!=1&&(n+="e"),n+=" "+i.params.deps+" aufweisen, wenn Attribut "+i.params.property+" gesetzt ist";break;case"discriminator":switch(i.params.error){case"tag":n='der Tag "'+i.params.tag+'" muss eine Zeichenkette sein';break;case"mapping":n='der Wert vom Tag "'+i.params.tag+'" muss im oneOf enthalten sein';break;default:n='muss die Validierung "'+i.keyword+'" bestehen'}break;case"enum":n="muss einem der vorgegebenen Werte entsprechen";break;case"false schema":n="boolesches Schema ist falsch";break;case"format":n='muss diesem Format entsprechen: "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="muss "+s+" sein";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="muss "+s+" sein";break;case"if":n='muss dem Schema "'+i.params.failingKeyword+'" entsprechen';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="muss "+s+" sein";break;case"maxItems":n="";var r=i.params.limit;n+="darf nicht mehr als "+r+" Element",r!=1&&(n+="e"),n+=" haben";break;case"maxLength":n="";var r=i.params.limit;n+="darf nicht l\xE4nger als "+r+" Zeichen sein";break;case"maxProperties":n="";var r=i.params.limit;n+="darf nicht mehr als "+r+" Attribut",r!=1&&(n+="e"),n+=" haben";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="muss "+s+" sein";break;case"minItems":n="";var r=i.params.limit;n+="darf nicht weniger als "+r+" Element",r!=1&&(n+="e"),n+=" haben";break;case"minLength":n="";var r=i.params.limit;n+="darf nicht k\xFCrzer als "+r+" Zeichen sein";break;case"minProperties":n="";var r=i.params.limit;n+="darf nicht weniger als "+r+" Attribut",r!=1&&(n+="e"),n+=" haben";break;case"multipleOf":n="muss ein Vielfaches von "+i.params.multipleOf+" sein";break;case"not":n='muss dem in "not" angegebenen Schema widersprechen';break;case"oneOf":n='muss genau einem der Schemata in "oneOf" entsprechen';break;case"pattern":n='muss diesem Muster entsprechen: "'+i.params.pattern+'"';break;case"patternRequired":n='muss ein Attribut nach folgendem Muster haben "'+i.params.missingPattern+'"';break;case"propertyNames":n="Attributname ist ung\xFCltig";break;case"required":n="muss das erforderliche Attribut "+i.params.missingProperty+" enthalten";break;case"type":n="muss sein: "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="darf nicht mehr als "+r+" Element",r!=1&&(n+="e"),n+=" haben";break;case"unevaluatedProperties":n="darf keine unausgewerteten Attribute haben";break;case"uniqueItems":n="darf keine Duplikate enthalten (Elemente #"+i.params.j+" und #"+i.params.i+" sind gleich)";break;default:n='muss die Validierung "'+i.keyword+'" bestehen'}i.message=n}}});var rP=h((Cfe,tP)=>{"use strict";tP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="no debe tener m\xE1s de "+r+" elemento",r!=1&&(n+="s");break;case"additionalProperties":n="no debe tener propiedades adicionales";break;case"anyOf":n='debe coincidir con alg\xFAn esquema en "anyOf"';break;case"const":n="debe ser igual a la constante";break;case"contains":n="debe contener un elemento v\xE1lido";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="debe contener la",r!=1&&(n+="s"),n+=" propiedad",r!=1&&(n+="es"),n+=" "+i.params.deps+" cuando la propiedad "+i.params.property+" se encuentra presente";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='debe pasar la validaci\xF3n de palabra clave "'+i.keyword+'"'}break;case"enum":n="deber ser igual a uno de los valores predefinidos";break;case"false schema":n="el esquema \xE9s falso";break;case"format":n='debe coincidir con el formato "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="debe ser "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="debe ser "+s;break;case"if":n='debe corresponderse con el esquema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="debe ser "+s;break;case"maxItems":n="";var r=i.params.limit;n+="no debe contener m\xE1s de "+r+" elemento",r!=1&&(n+="s");break;case"maxLength":n="";var r=i.params.limit;n+="no debe contener m\xE1s de "+r+" caracter",r!=1&&(n+="es");break;case"maxProperties":n="";var r=i.params.limit;n+="no debe contener m\xE1s de "+r+" propiedad",r!=1&&(n+="es");break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="debe ser "+s;break;case"minItems":n="";var r=i.params.limit;n+="no debe contener menos de "+r+" elemento",r!=1&&(n+="s");break;case"minLength":n="";var r=i.params.limit;n+="no debe contener menos de "+r+" caracter",r!=1&&(n+="es");break;case"minProperties":n="";var r=i.params.limit;n+="no debe contener menos de "+r+" propiedad",r!=1&&(n+="es");break;case"multipleOf":n="debe ser m\xFAltiplo de "+i.params.multipleOf;break;case"not":n='no debe ser v\xE1lido seg\xFAn el esquema en "not"';break;case"oneOf":n='debe coincidir con un solo esquema en "oneOf"';break;case"pattern":n='debe coincidir con el patron "'+i.params.pattern+'"';break;case"patternRequired":n='la propiedad debe coincidir con el patr\xF3n "'+i.params.missingPattern+'"';break;case"propertyNames":n="la propiedad no \xE9s v\xE1lida";break;case"required":n="debe tener la propiedad requerida "+i.params.missingProperty;break;case"type":n="debe ser "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no debe contener elementos duplicados, (los elementos ## "+i.params.j+" y "+i.params.i+" son id\xE9nticos)";break;default:n='debe pasar la validaci\xF3n de palabra clave "'+i.keyword+'"'}i.message=n}}});var iP=h((Sfe,sP)=>{"use strict";sP.exports=function(e){if(!!(e&&e.length))for(let n of e){let a;switch(n.keyword){case"additionalItems":case"items":a="";var r=n.params.limit;a+="saa sis\xE4lt\xE4\xE4 enint\xE4\xE4n "+r,r==1?a+=":n elementin":a+=" elementti\xE4";break;case"additionalProperties":a="ei saa sis\xE4lt\xE4\xE4 ylim\xE4\xE4r\xE4isi\xE4 ominaisuuksia";break;case"anyOf":a='t\xE4ytyy vastata "anyOf" skeemaa';break;case"const":a="t\xE4ytyy olla yht\xE4 kuin vakio";break;case"contains":a="t\xE4ytyy sis\xE4lt\xE4\xE4 kelvollinen elementti";break;case"dependencies":case"dependentRequired":a="";var r=n.params.depsCount;a+="t\xE4ytyy sis\xE4lt\xE4\xE4 "+n.params.deps+" ominaisuu",r==1?a+="s":a+="det",a+=" kun "+n.params.property+"-ominaisuus on l\xE4sn\xE4";break;case"discriminator":switch(n.params.error){case"tag":a='tunniste "'+n.params.tag+'" t\xE4ytyy olla merkkijono';break;case"mapping":a='tunnisteen "'+n.params.tag+'" arvon muoto pit\xE4\xE4 olla oneOf';break;default:a='t\xE4ytyy l\xE4p\xE4ist\xE4 "'+n.keyword+'" avainsanatarkistus'}break;case"enum":a="t\xE4ytyy olla yht\xE4 kuin jokin sallituista arvoista";break;case"false schema":a="boolean skeema on v\xE4\xE4r\xE4";break;case"format":a='t\xE4ytyy vastata muotoa "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="t\xE4ytyy olla "+s;break;case"formatMinimum":case"formatExclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="t\xE4ytyy olla "+s;break;case"if":a='t\xE4ytyy vastata "'+n.params.failingKeyword+'" skeemaa';break;case"maximum":case"exclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="t\xE4ytyy olla "+s;break;case"maxItems":a="";var r=n.params.limit;a+="tulee sis\xE4lt\xE4\xE4 enint\xE4\xE4n "+r+" ",r==1?a+="elementti":a+="elementti\xE4";break;case"maxLength":a="";var r=n.params.limit;a+="ei saa olla pidempi kuin "+r+" merkki",r!=1&&(a+="\xE4");break;case"maxProperties":a="";var r=n.params.limit;a+="tulee sis\xE4lt\xE4\xE4 enint\xE4\xE4n "+r+" ",r==1?a+="ominaisuus":a+="ominaisuutta";break;case"minimum":case"exclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="t\xE4ytyy olla "+s;break;case"minItems":a="";var r=n.params.limit;a+="tulee sis\xE4lt\xE4\xE4 v\xE4hint\xE4\xE4n "+r+" ",r==1?a+="elementti":a+="elementti\xE4";break;case"minLength":a="";var r=n.params.limit;a+="ei saa olla lyhyempi kuin "+r+" merkki",r!=1&&(a+="\xE4");break;case"minProperties":a="";var r=n.params.limit;a+="tulee sis\xE4lt\xE4\xE4 v\xE4hint\xE4\xE4n "+r+" ",r==1?a+="ominaisuus":a+="ominaisuutta";break;case"multipleOf":a="t\xE4ytyy olla moninkertainen: "+n.params.multipleOf;break;case"not":a='ei saa olla hyv\xE4ksytty skeeman "not" mukaan';break;case"oneOf":a='t\xE4ytyy vastata t\xE4sm\xE4lleen yht\xE4 "oneOf" -kohdassa m\xE4\xE4ritelty\xE4 skeemaa';break;case"pattern":a='t\xE4ytyy vastata muotoa "'+n.params.pattern+'"';break;case"patternRequired":a='t\xE4ytyy sis\xE4lt\xE4\xE4 ominaisuus joka vastaa kaavaa "'+n.params.missingPattern+'"';break;case"propertyNames":a="ominaisuuden nimi on virheellinen";break;case"required":a="t\xE4ytyy sis\xE4lt\xE4\xE4 vaadittu ominaisuus "+n.params.missingProperty;break;case"type":a="";var i=n.params.type;a+="t\xE4ytyy olla ",i=="number"?a+="numero":i=="integer"?a+="kokonaisluku":i=="string"?a+="merkkijono":i=="boolean"?a+="boolean":a+=i;break;case"unevaluatedItems":a="";var r=n.params.len;a+="ei saa olla enemm\xE4n kuin "+r+" elementti",r!=1&&(a+="\xE4");break;case"unevaluatedProperties":a="ei saa sis\xE4lt\xE4\xE4 arvioimattomia ominaisuuksia";break;case"uniqueItems":a="ei saa sis\xE4lt\xE4\xE4 duplikaatteja (elementit ## "+n.params.j+" ja "+n.params.i+" ovat identtiset)";break;default:a='t\xE4ytyy l\xE4p\xE4ist\xE4 "'+n.keyword+'" avainsanatarkistus'}n.message=a}}});var aP=h((xfe,nP)=>{"use strict";nP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="ne doit pas contenir plus de "+r+" \xE9l\xE9m\xE9nt",r!=1&&(n+="s");break;case"additionalProperties":n="ne doit pas contenir de propri\xE9t\xE9s additionnelles";break;case"anyOf":n='doit correspondre \xE0 un sch\xE9ma de "anyOf"';break;case"const":n="doit \xEAtre \xE9gal \xE0 la constante";break;case"contains":n="doit contenir un \xE9l\xE9ment valide";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="doit avoir la propri\xE9t\xE9 "+i.params.deps+" quand la propri\xE9t\xE9 "+i.params.property+" est pr\xE9sente";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='doit \xEAtre valide selon le crit\xE8re "'+i.keyword+'"'}break;case"enum":n="doit \xEAtre \xE9gal \xE0 une des valeurs pr\xE9d\xE9finies";break;case"false schema":n='le schema est "false"';break;case"format":n='doit correspondre au format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="doit \xEAtre "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="doit \xEAtre "+s;break;case"if":n='doit correspondre au sch\xE9ma "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="doit \xEAtre "+s;break;case"maxItems":n="";var r=i.params.limit;n+="ne doit pas contenir plus de "+r+" \xE9l\xE9ment",r!=1&&(n+="s");break;case"maxLength":n="";var r=i.params.limit;n+="ne doit pas d\xE9passer "+r+" caract\xE8re",r!=1&&(n+="s");break;case"maxProperties":n="";var r=i.params.limit;n+="ne doit pas contenir plus de "+r+" propri\xE9t\xE9",r!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="doit \xEAtre "+s;break;case"minItems":n="";var r=i.params.limit;n+="ne doit pas contenir moins de "+r+" \xE9l\xE9ment",r!=1&&(n+="s");break;case"minLength":n="";var r=i.params.limit;n+="ne doit pas faire moins de "+r+" caract\xE8re",r!=1&&(n+="s");break;case"minProperties":n="";var r=i.params.limit;n+="ne doit pas contenir moins de "+r+" propri\xE9t\xE9",r!=1&&(n+="s");break;case"multipleOf":n="doit \xEAtre un multiple de "+i.params.multipleOf;break;case"not":n='est invalide selon le sch\xE9ma "not"';break;case"oneOf":n='doit correspondre \xE0 exactement un sch\xE9ma de "oneOf"';break;case"pattern":n='doit correspondre au format "'+i.params.pattern+'"';break;case"patternRequired":n='la propri\xE9t\xE9 doit correspondre au format "'+i.params.missingPattern+'"';break;case"propertyNames":n="le nom de propri\xE9t\xE9 est invalide";break;case"required":n="requiert la propri\xE9t\xE9 "+i.params.missingProperty;break;case"type":n="doit \xEAtre de type "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="ne doit pas contenir de doublons (les \xE9l\xE9ments ## "+i.params.j+" et "+i.params.i+" sont identiques)";break;default:n='doit \xEAtre valide selon le crit\xE8re "'+i.keyword+'"'}i.message=n}}});var uP=h((Afe,oP)=>{"use strict";oP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="nem lehet t\xF6bb, mint "+r+" eleme";break;case"additionalProperties":n="nem lehetnek tov\xE1bbi elemei";break;case"anyOf":n='meg kell feleljen legal\xE1bb egy "anyOf" alaknak';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="-nak kell legyen",r>1&&(n+="ek"),n+=" a k\xF6vetkez\u0151 tulajdons\xE1ga",r!=1&&(n+="i"),n+=": "+i.params.deps+", ha van "+i.params.property+" tulajdons\xE1ga";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="egyenl\u0151 kell legyen valamely el\u0151re meghat\xE1rozott \xE9rt\xE9kkel";break;case"false schema":n="boolean schema is false";break;case"format":n='meg kell feleljen a k\xF6vetkez\u0151 form\xE1tumnak: "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="kell legyen "+s;break;case"maxItems":n="";var r=i.params.limit;n+="nem lehet t\xF6bb, mint "+r+" eleme";break;case"maxLength":n="";var r=i.params.limit;n+="nem lehet hosszabb, mint "+r+" szimb\xF3lum";break;case"maxProperties":n="";var r=i.params.limit;n+="nem lehet t\xF6bb, mint "+r+" tulajdons\xE1ga";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="kell legyen "+s;break;case"minItems":n="";var r=i.params.limit;n+="nem lehet kevesebb, mint "+r+" eleme";break;case"minLength":n="";var r=i.params.limit;n+="nem lehet r\xF6videbb, mint "+r+" szimb\xF3lum";break;case"minProperties":n="";var r=i.params.limit;n+="nem lehet kevesebb, mint "+r+" tulajdons\xE1ga";break;case"multipleOf":n="a t\xF6bbsz\xF6r\xF6se kell legyen a k\xF6vetkez\u0151 sz\xE1mnak: "+i.params.multipleOf;break;case"not":n='nem lehet \xE9rv\xE9nyes a "not" alaknak megfelel\u0151en';break;case"oneOf":n='meg kell feleljen pontosan egy "oneOf" alaknak';break;case"pattern":n='meg kell feleljen a k\xF6vetkez\u0151 mint\xE1nak: "'+i.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="kell legyen "+i.params.missingProperty+" tulajdons\xE1ga";break;case"type":n=""+i.params.type+" kell legyen";break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nem lehetnek azonos elemei ("+i.params.j+" \xE9s "+i.params.i+" elemek azonosak)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}});var cP=h((Ofe,lP)=>{"use strict";lP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+=" tidak boleh memiliki lebih dari "+r+" item";break;case"additionalProperties":n="tidak boleh memiliki properti tambahan";break;case"anyOf":n='harus cocok dengan beberapa skema pada "anyOf"';break;case"const":n="harus sama dengan konstan";break;case"contains":n="harus berisi item yang valid";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+=" harus memiliki properti "+i.params.deps+" ketika properti "+i.params.property+" hadir";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='harus lulus validasi kata kunci "'+i.keyword+'"'}break;case"enum":n="harus sama dengan salah satu dari nilai yang telah ditentukan";break;case"false schema":n="skema boolean salah";break;case"format":n='harus cocok dengan format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="harus "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="harus "+s;break;case"if":n='harus cocok dengan skema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="harus "+s;break;case"maxItems":n="";var r=i.params.limit;n+=" tidak boleh memiliki lebih dari "+r+" item";break;case"maxLength":n="";var r=i.params.limit;n+=" tidak boleh lebih dari "+r+" karakter";break;case"maxProperties":n="";var r=i.params.limit;n+=" tidak boleh memiliki lebih dari "+r+" properti";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="harus "+s;break;case"minItems":n="";var r=i.params.limit;n+=" tidak boleh kurang dari "+r+" item";break;case"minLength":n="";var r=i.params.limit;n+=" tidak boleh lebih pendek dari "+r+" karakter";break;case"minProperties":n="";var r=i.params.limit;n+=" tidak boleh kurang dari "+r+" properti";break;case"multipleOf":n="harus merupakan kelipatan dari "+i.params.multipleOf;break;case"not":n='tidak boleh valid sesuai dengan skema pada "not"';break;case"oneOf":n='harus sama persis dengan satu skema pada "oneOf"';break;case"pattern":n='harus cocok dengan pola "'+i.params.pattern+'"';break;case"patternRequired":n='harus memiliki pola pencocokan properti "'+i.params.missingPattern+'"';break;case"propertyNames":n="nama properti tidak valid";break;case"required":n="harus memiliki properti "+i.params.missingProperty;break;case"type":n="harus berupa "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="tidak boleh memiliki item duplikat (item ## "+i.params.j+" dan "+i.params.i+" identik)";break;default:n='harus lulus validasi kata kunci "'+i.keyword+'"'}i.message=n}}});var dP=h((Tfe,fP)=>{"use strict";fP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="non dovrebbe avere pi\xF9 di "+r+" element",r==1?n+="o":n+="i";break;case"additionalProperties":n="non deve avere attributi aggiuntivi";break;case"anyOf":n='deve corrispondere ad uno degli schema in "anyOf"';break;case"const":n="deve essere uguale alla costante";break;case"contains":n="deve contentere un elemento valido";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="dovrebbe avere ",r==1?n+="l'":n+="gli ",n+="attribut",r==1?n+="o":n+="i",n+=" "+i.params.deps+" quando l'attributo "+i.params.property+" \xE8 presente";break;case"discriminator":switch(i.params.error){case"tag":n='il tag "'+i.params.tag+'" deve essere di tipo stringa';break;case"mapping":n='il valore del tag "'+i.params.tag+'" deve essere nei oneOf';break;default:n='deve essere valido secondo il criterio "'+i.keyword+'"'}break;case"enum":n="deve essere uguale ad uno dei valori consentiti";break;case"false schema":n="lo schema booleano \xE8 falso";break;case"format":n='deve corrispondere al formato "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="deve essere "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="deve essere "+s;break;case"if":n='deve corrispondere allo schema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="deve essere "+s;break;case"maxItems":n="";var r=i.params.limit;n+="non deve avere pi\xF9 di "+r+" element",r==1?n+="o":n+="i";break;case"maxLength":n="";var r=i.params.limit;n+="non deve essere pi\xF9 lungo di "+r+" caratter",r==1?n+="e":n+="i";break;case"maxProperties":n="";var r=i.params.limit;n+="non deve avere pi\xF9 di "+r+" attribut",r==1?n+="o":n+="i";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="deve essere "+s;break;case"minItems":n="";var r=i.params.limit;n+="non deve avere meno di "+r+" element",r==1?n+="o":n+="i";break;case"minLength":n="";var r=i.params.limit;n+="non deve essere meno lungo di "+r+" caratter",r==1?n+="e":n+="i";break;case"minProperties":n="";var r=i.params.limit;n+="non deve avere meno di "+r+" attribut",r==1?n+="o":n+="i";break;case"multipleOf":n="deve essere un multiplo di "+i.params.multipleOf;break;case"not":n='non deve essere valido in base allo schema di "non"';break;case"oneOf":n='deve corrispondere esattamente ad uno degli schema in "oneOf"';break;case"pattern":n='deve corrispondere al formato "'+i.params.pattern+'"';break;case"patternRequired":n='deve avere un attributo che corrisponda al formato "'+i.params.missingPattern+'"';break;case"propertyNames":n="il nome dell'attritbuto non \xE8 valido";break;case"required":n="deve avere l'attributo obbligatorio "+i.params.missingProperty;break;case"type":n="deve essere di tipo "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="non deve avere pi\xF9 di "+r+" elementi",r==1?n+="o":n+="i";break;case"unevaluatedProperties":n="non deve avere attributi non valutati";break;case"uniqueItems":n="non deve avere duplicati (gli elementi ## "+i.params.j+" e "+i.params.i+" sono uguali)";break;default:n='deve essere valido secondo il criterio "'+i.keyword+'"'}i.message=n}}});var pP=h((Rfe,hP)=>{"use strict";hP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="\u306F"+r+"\u4EE5\u4E0A\u3042\u3063\u3066\u306F\u3044\u3051\u306A\u3044";break;case"additionalProperties":n="\u8FFD\u52A0\u3057\u3066\u306F\u3044\u3051\u306A\u3044";break;case"anyOf":n='"anyOf"\u306E\u30B9\u30AD\u30FC\u30DE\u3068\u30DE\u30C3\u30C1\u3057\u306A\u304F\u3066\u306F\u3044\u3051\u306A\u3044';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n=""+i.params.property+"\u304C\u3042\u308B\u5834\u5408\u3001";var r=i.params.depsCount;n+="\u306F"+i.params.deps+"\u3092\u3064\u3051\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="\u4E8B\u524D\u306B\u5B9A\u7FA9\u3055\u308C\u305F\u5024\u306E\u3044\u305A\u308C\u304B\u306B\u7B49\u3057\u304F\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"false schema":n="boolean schema is false";break;case"format":n='"'+i.params.format+'"\u5F62\u5F0F\u306B\u63C3\u3048\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="must be "+s;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+=s+"\u3067\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"maxItems":n="";var r=i.params.limit;n+="\u306F"+r+"\u500B\u4EE5\u4E0A\u3067\u3042\u3063\u3066\u306F\u3044\u3051\u306A\u3044";break;case"maxLength":n="";var r=i.params.limit;n+="\u306F"+r+"\u6587\u5B57\u4EE5\u4E0A\u3067\u3042\u3063\u3066\u306F\u3044\u3051\u306A\u3044";break;case"maxProperties":n="";var r=i.params.limit;n+="\u306F"+r+"\u500B\u4EE5\u4E0A\u306E\u30D7\u30ED\u30D1\u30C6\u30A3\u3092\u6709\u3057\u3066\u306F\u3044\u3051\u306A\u3044";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+=s+"\u3067\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"minItems":n="";var r=i.params.limit;n+="\u306F"+r+"\u500B\u4EE5\u4E0B\u3067\u3042\u3063\u3066\u306F\u3044\u3051\u306A\u3044";break;case"minLength":n="";var r=i.params.limit;n+="\u306F"+r+"\u6587\u5B57\u4EE5\u4E0B\u3067\u3042\u3063\u3066\u306F\u3044\u3051\u306A\u3044";break;case"minProperties":n="";var r=i.params.limit;n+="\u306F"+r+"\u500B\u4EE5\u4E0B\u306E\u30D7\u30ED\u30D1\u30C6\u30A3\u3092\u6709\u3057\u3066\u306F\u3044\u3051\u306A\u3044";break;case"multipleOf":n=""+i.params.multipleOf+"\u306E\u500D\u6570\u3067\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"not":n='"not"\u306E\u30B9\u30AD\u30FC\u30DE\u306B\u5F93\u3063\u3066\u6709\u52B9\u3068\u3057\u3066\u306F\u3044\u3051\u306A\u3044';break;case"oneOf":n='"oneOf"\u306E\u30B9\u30AD\u30FC\u30DE\u3068\u5B8C\u5168\u306B\u4E00\u81F4\u3057\u306A\u304F\u3066\u306F\u3044\u3051\u306A\u3044';break;case"pattern":n='"'+i.params.pattern+'"\u306E\u30D1\u30BF\u30FC\u30F3\u3068\u4E00\u81F4\u3057\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="\u5FC5\u8981\u306A\u30D7\u30ED\u30D1\u30C6\u30A3"+i.params.missingProperty+"\u304C\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"type":n=""+i.params.type+"\u3067\u306A\u3051\u308C\u3070\u3044\u3051\u306A\u3044";break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="\u91CD\u8907\u3059\u308B\u30A2\u30A4\u30C6\u30E0\u304C\u3042\u3063\u3066\u306F\u3044\u3051\u306A\u3044\uFF08"+i.params.j+"\u3068"+i.params.i+"\u306F\u540C\u3058\u3067\u3042\u308B\uFF09";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}});var gP=h((Pfe,mP)=>{"use strict";mP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+=" \uD56D\uBAA9\uC740 \uC544\uC774\uD15C\uC744 "+r+"\uAC1C \uC774\uC0C1 \uAC00\uC9C8 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4";break;case"additionalProperties":n="\uCD94\uAC00\uC801\uC778 \uC18D\uC131\uC740 \uD5C8\uC6A9\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4";break;case"anyOf":n='"anyOf"\uC758 \uC2A4\uD0A4\uB9C8\uC640 \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4';break;case"const":n="\uC0C1\uC218\uC640 \uAC19\uC544\uC57C\uD569\uB2C8\uB2E4";break;case"contains":n="\uC62C\uBC14\uB978 \uC544\uC774\uD15C\uC744 \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+=i.params.property+"\uC18D\uC131\uC774 \uC788\uB294 \uACBD\uC6B0, "+i.params.deps+" \uC18D\uC131\uC774 \uC788\uC5B4\uC57C\uD569\uB2C8\uB2E4";break;case"discriminator":switch(i.params.error){case"tag":n='"'+i.params.tag+'"\uD0DC\uADF8\uB294 \uBC18\uB4DC\uC2DC \uBB38\uC790\uC5F4\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4';break;case"mapping":n='"'+i.params.tag+'"\uD0DC\uADF8\uC758 \uAC12\uC740 \uBC18\uB4DC\uC2DC oneOf\uC5D0 \uC788\uC5B4\uC57C \uD569\uB2C8\uB2E4';break;default:n='"'+i.keyword+'"\uD0A4\uC6CC\uB4DC \uAC80\uC0AC\uB97C \uD1B5\uACFC\uD574\uC57C \uD569\uB2C8\uB2E4'}break;case"enum":n="\uBBF8\uB9AC \uC815\uC758\uB41C \uAC12\uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"false schema":n="boolean \uC2A4\uD0A4\uB9C8\uB294 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4";break;case"format":n='"'+i.params.format+'" \uD3EC\uB9F7\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" "+s+" \uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" "+s+" \uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"if":n='"'+i.params.failingKeyword+'" \uC2A4\uD0A4\uB9C8\uC640 \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" "+s+" \uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"maxItems":n="";var r=i.params.limit;n+="\uC544\uC774\uD15C\uC774 \uCD5C\uB300 "+r+"\uAC1C\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"maxLength":n="";var r=i.params.limit;n+="\uCD5C\uB300 "+r+"\uAE00\uC790\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"maxProperties":n="";var r=i.params.limit;n+="\uC18D\uC131\uC740 \uCD5C\uB300 "+r+"\uAC1C \uC774\uB0B4\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+=" "+s+" \uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"minItems":n="";var r=i.params.limit;n+="\uC544\uC774\uD15C\uC774 \uCD5C\uC18C "+r+"\uAC1C\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"minLength":n="";var r=i.params.limit;n+="\uCD5C\uC18C "+r+"\uAE00\uC790\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"minProperties":n="";var r=i.params.limit;n+="\uC18D\uC131\uC740 \uCD5C\uC18C "+r+"\uAC1C \uC774\uC0C1\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"multipleOf":n=""+i.params.multipleOf+"\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"not":n='"not"\uC2A4\uD0A4\uB9C8\uC5D0 \uB530\uB77C \uC720\uD6A8\uD558\uC9C0 \uC54A\uC544\uC57C \uD569\uB2C8\uB2E4';break;case"oneOf":n='"oneOf" \uC2A4\uD0A4\uB9C8\uC911 \uD558\uB098\uC640 \uC815\uD655\uD558\uAC8C \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4';break;case"pattern":n='"'+i.params.pattern+'"\uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4';break;case"patternRequired":n='"'+i.params.missingPattern+'"\uD328\uD134\uACFC \uC77C\uCE58\uD558\uB294 \uC18D\uC131\uC744 \uAC00\uC838\uC57C \uD569\uB2C8\uB2E4';break;case"propertyNames":n="\uC18D\uC131\uBA85\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4";break;case"required":n=""+i.params.missingProperty+" \uC18D\uC131\uC740 \uD544\uC218\uC785\uB2C8\uB2E4";break;case"type":n=""+i.params.type+"\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4";break;case"unevaluatedItems":n="";var r=i.params.len;n+="\uD56D\uBAA9\uC774 "+r+"\uAC1C \uC544\uC774\uD15C\uC744 \uCD08\uACFC\uD558\uBA74 \uC548\uB429\uB2C8\uB2E4";break;case"unevaluatedProperties":n="\uD3C9\uAC00\uB418\uC9C0 \uC54A\uC740 \uC18D\uC131\uC774 \uC5C6\uC5B4\uC57C\uD569\uB2C8\uB2E4.";break;case"uniqueItems":n="\uC911\uBCF5 \uC544\uC774\uD15C\uC774 \uC5C6\uC5B4\uC57C \uD569\uB2C8\uB2E4 (\uC544\uC774\uD15C"+i.params.j+"\uACFC \uC544\uC774\uD15C"+i.params.i+"\uAC00 \uB3D9\uC77C\uD569\uB2C8\uB2E4)";break;default:n='"'+i.keyword+'"\uD0A4\uC6CC\uB4DC \uAC80\uC0AC\uB97C \uD1B5\uACFC\uD574\uC57C \uD569\uB2C8\uB2E4'}i.message=n}}});var vP=h(($fe,yP)=>{"use strict";yP.exports=function(e){if(!!(e&&e.length))for(let n of e){let a;switch(n.keyword){case"additionalItems":case"items":a="";var r=n.params.limit;a+="kan ikke ha mer enn "+r+" element",r!=1&&(a+="er");break;case"additionalProperties":a="kan ikke ha flere egenskaper";break;case"anyOf":a='m\xE5 samsvare med et schema i "anyOf"';break;case"const":a="m\xE5 v\xE6re lik konstanten";break;case"contains":a="m\xE5 inneholde et gyldig element";break;case"dependencies":case"dependentRequired":a="";var r=n.params.depsCount;a+="m\xE5 ha egenskapen",r!=1&&(a+="e"),a+=" "+n.params.deps+" n\xE5r egenskapen "+n.params.property+" er angitt";break;case"discriminator":switch(n.params.error){case"tag":a='tag "'+n.params.tag+'" must be string';break;case"mapping":a='value of tag "'+n.params.tag+'" must be in oneOf';break;default:a="m\xE5 samsvare med valideringen for "+n.keyword}break;case"enum":a="m\xE5 v\xE6re lik en av de forh\xE5ndsdefinerte verdiene";break;case"false schema":a="boolsk schema er usannt";break;case"format":a='m\xE5 stemme overens med formatet "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="m\xE5 v\xE6re "+s;break;case"formatMinimum":case"formatExclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="m\xE5 v\xE6re "+s;break;case"if":a='must match "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="m\xE5 v\xE6re "+s;break;case"maxItems":a="";var r=n.params.limit;a+="kan ikke ha fler enn "+r+" element",r!=1&&(a+="er");break;case"maxLength":a="";var r=n.params.limit;a+="kan ikke v\xE6re lengre enn "+r+" tegn";break;case"maxProperties":a="";var r=n.params.limit;a+="kan ikke ha mer enn "+r+" egenskap",r!=1&&(a+="er");break;case"minimum":case"exclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="m\xE5 v\xE6re "+s;break;case"minItems":a="";var r=n.params.limit;a+="kan ikke ha f\xE6rre enn "+r+" element",r!=1&&(a+="er");break;case"minLength":a="";var r=n.params.limit;a+="kan ikke v\xE6re kortere enn "+r+" tegn";break;case"minProperties":a="";var r=n.params.limit;a+="kan ikke ha mindre enn "+r+" egenskap",r!=1&&(a+="er");break;case"multipleOf":a="m\xE5 v\xE6re et multiplum av "+n.params.multipleOf;break;case"not":a='kan ikke samsvare med schema i "not"';break;case"oneOf":a='m\xE5 samsvare med n\xF8yaktig ett schema i "oneOf"';break;case"pattern":a='m\xE5 samsvare med m\xF8nsteret "'+n.params.pattern+'"';break;case"patternRequired":a='m\xE5 ha en egenskap som samsvarer med m\xF8nsteret "'+n.params.missingPattern;break;case"propertyNames":a="egenskapen med navnet '",n.params.propertyNameout+="' er ugyldig";break;case"required":a="m\xE5 ha den p\xE5krevde egenskapen "+n.params.missingProperty;break;case"type":a="";var i=n.params.type;a+="m\xE5 v\xE6re ",i=="number"?a+="et tall":i=="integer"?a+="et heltall":i=="string"?a+="en streng":i=="boolean"?a+="ja eller nei":a+=i;break;case"unevaluatedItems":a="";var r=n.params.len;a+="must NOT have more than "+r+" item",r!=1&&(a+="s");break;case"unevaluatedProperties":a="must NOT have unevaluated properties";break;case"uniqueItems":a="kan ikke ha duplikate elemeneter (elementene ## "+n.params.j+" og "+n.params.i+" er identiske)";break;default:a="m\xE5 samsvare med valideringen for "+n.keyword}n.message=a}}});var _P=h((Ffe,bP)=>{"use strict";bP.exports=function(e){if(!!(e&&e.length))for(let n of e){let a;switch(n.keyword){case"additionalItems":case"items":a="";var r=n.params.limit;a+="mag niet meer dan "+r+" item",r!=1&&(a+="s"),a+=" bevatten";break;case"additionalProperties":a="mag geen extra eigenschappen bevatten";break;case"anyOf":a='moet overeenkomen met een schema in "anyOf"';break;case"const":a="moet gelijk zijn aan constante";break;case"contains":a="moet een geldig item bevatten";break;case"dependencies":case"dependentRequired":a="";var r=n.params.depsCount;a+="moet de eigenschap",r!=1&&(a+="pen"),a+=" "+n.params.deps+" bevatten als "+n.params.property+" is gedefinieerd";break;case"discriminator":switch(n.params.error){case"tag":a='tag "'+n.params.tag+'" moet een tekenreeks zijn';break;case"mapping":a='de waarde van het veld "'+n.params.tag+'" moet voorkomen in de oneOf';break;default:a='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}break;case"enum":a="moet overeenkomen met \xE9\xE9n van de voorgedefinieerde waarden";break;case"false schema":a="boolean schema is fout";break;case"format":a='moet overeenkomen met het volgende formaat: "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="moet "+s+" zijn";break;case"formatMinimum":case"formatExclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="moet "+s+" zijn";break;case"if":a='moet overeenkomen met "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="moet "+s+" zijn";break;case"maxItems":a="";var r=n.params.limit;a+="mag niet meer dan "+r+" item",r!=1&&(a+="s"),a+=" bevatten";break;case"maxLength":a="";var r=n.params.limit;a+="mag niet langer dan "+r+" karakter",r!=1&&(a+="s"),a+=" zijn";break;case"maxProperties":a="";var r=n.params.limit;a+="mag niet meer dan "+r+" eigenschap",r!=1&&(a+="pen"),a+=" bevatten";break;case"minimum":case"exclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="moet "+s+" zijn";break;case"minItems":a="";var r=n.params.limit;a+="mag niet minder dan "+r+" item",r!=1&&(a+="s"),a+=" bevatten";break;case"minLength":a="";var r=n.params.limit;a+="mag niet korter dan "+r+" karakter",r!=1&&(a+="s"),a+=" zijn";break;case"minProperties":a="";var r=n.params.limit;a+="mag niet minder dan "+r+" eigenschap",r!=1&&(a+="pen"),a+=" bevatten";break;case"multipleOf":a="moet een veelvoud van "+n.params.multipleOf+" zijn";break;case"not":a='mag niet overeenkomen met een schema in "not"';break;case"oneOf":a='moet overeenkomen met \xE9\xE9n schema in "oneOf"';break;case"pattern":a='moet overeenkomen met het volgende patroon: "'+n.params.pattern+'"';break;case"patternRequired":a='moet een eigenschap bevatten die overeenkomt met het pattroon: "'+n.params.missingPattern+'"';break;case"propertyNames":a="eigenschapnaam is ongeldig";break;case"required":a="moet de eigenschap "+n.params.missingProperty+" bevatten";break;case"type":a="";var i=n.params.type;a+="moet een ",i=="number"?a+="nummer":i=="integer"?a+="geheel getal":i=="string"?a+="tekenreeks":i=="boolean"&&(a+="ja of nee waarde"),a+=" ("+i+") bevatten";break;case"unevaluatedItems":a="";var r=n.params.len;a+="mag niet meer dan "+r+" item",r!=1&&(a+="s"),a+=" bevatten";break;case"unevaluatedProperties":a="mag geen ongecontroleerde eigenschappen bevatten";break;case"uniqueItems":a="mag geen gedupliceerde items bevatten (items ## "+n.params.j+" en "+n.params.i+" zijn identiek)";break;default:a='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}n.message=a}}});var EP=h((jfe,wP)=>{"use strict";wP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="nie powinien mie\u0107 wi\u0119cej ni\u017C "+r+" element",r==1?n+="u":n+="\xF3w";break;case"additionalProperties":n="nie powinien zawiera\u0107 dodatkowych p\xF3l";break;case"anyOf":n='powinien pasowa\u0107 do wzoru z sekcji "anyOf"';break;case"const":n="powinien by\u0107 r\xF3wny sta\u0142ej";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="powinien zawiera\u0107 pol",r==1?n+="e":n+="a",n+=" "+i.params.deps+" kiedy pole "+i.params.property+" jest obecne";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='powinien przej\u015B\u0107 walidacj\u0119 "'+i.keyword+'"'}break;case"enum":n="powinien by\u0107 r\xF3wny jednej z predefiniowanych warto\u015Bci";break;case"false schema":n="boolean schema is false";break;case"format":n='powinien zgadza\u0107 si\u0119 z formatem "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="powinien by\u0107 "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="powinien by\u0107 "+s;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="powinien by\u0107 "+s;break;case"maxItems":n="";var r=i.params.limit;n+="nie powinien mie\u0107 wi\u0119cej ni\u017C "+r+" element",r==1?n+="u":n+="\xF3w";break;case"maxLength":n="";var r=i.params.limit;n+="nie powinien by\u0107 d\u0142u\u017Cszy ni\u017C "+r+" znak",r!=1&&(n+="\xF3w");break;case"maxProperties":n="";var r=i.params.limit;n+="nie powinien zawiera\u0107 wi\u0119cej ni\u017C "+r+" ",r==1?n+="pole":n+="p\xF3l";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="powinien by\u0107 "+s;break;case"minItems":n="";var r=i.params.limit;n+="nie powinien mie\u0107 mniej ni\u017C "+r+" element",r==1?n+="u":n+="\xF3w";break;case"minLength":n="";var r=i.params.limit;n+="nie powinien by\u0107 kr\xF3tszy ni\u017C "+r+" znak",r!=1&&(n+="\xF3w");break;case"minProperties":n="";var r=i.params.limit;n+="nie powinien zawiera\u0107 mniej ni\u017C "+r+" ",r==1?n+="pole":n+="p\xF3l";break;case"multipleOf":n="powinien by\u0107 wielokrotno\u015Bci\u0105 "+i.params.multipleOf;break;case"not":n='nie powinien pasowa\u0107 do wzoru z sekcji "not"';break;case"oneOf":n='powinien pasowa\u0107 do jednego wzoru z sekcji "oneOf"';break;case"pattern":n='powinien zgadza\u0107 si\u0119 ze wzorem "'+i.params.pattern+'"';break;case"patternRequired":n='powinien mie\u0107 pole pasuj\u0105ce do wzorca "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="powinien zawiera\u0107 wymagane pole "+i.params.missingProperty;break;case"type":n="powinien by\u0107 "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nie powinien zawiera\u0107 element\xF3w kt\xF3re si\u0119 powtarzaj\u0105 (elementy "+i.params.j+" i "+i.params.i+" s\u0105 identyczne)";break;default:n='powinien przej\u015B\u0107 walidacj\u0119 "'+i.keyword+'"'}i.message=n}}});var DP=h((Ife,kP)=>{"use strict";kP.exports=function(e){if(!!(e&&e.length))for(let n of e){let a;switch(n.keyword){case"additionalItems":case"items":a="n\xE3o s\xE3o permitidos itens adicionais (mais do que "+r+")";break;case"additionalProperties":a="n\xE3o s\xE3o permitidas propriedades adicionais";break;case"anyOf":a='os dados n\xE3o correspondem a nenhum schema de "anyOf"';break;case"const":a="deve ser igual \xE0 constante";break;case"contains":a="deve conter um item v\xE1lido";break;case"dependencies":case"dependentRequired":a="";var r=n.params.depsCount;a+=" deve ter propriedade",r!=1&&(a+="s"),a+=" "+n.params.deps+" quando a propriedade "+n.params.property+" estiver presente";break;case"discriminator":switch(n.params.error){case"tag":a='a tag "'+n.params.tag+'" deve ser uma string';break;case"mapping":a='o valor da tag "'+n.params.tag+'" deve estar no oneOf';break;default:a='deve passar a valida\xE7\xE3o da keyword "'+n.keyword+'"'}break;case"enum":a="deve ser igual a um dos valores permitidos";break;case"false schema":a='o schema booleano \xE9 "false"';break;case"format":a='deve corresponder ao formato "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="deve ser "+s;break;case"formatMinimum":case"formatExclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="deve ser "+s;break;case"if":a='deve corresponder ao schema "'+n.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":a="";var s=n.params.comparison+" "+n.params.limit;a+="deve ser "+s;break;case"maxItems":a="";var r=n.params.limit;a+="n\xE3o deve ter mais que "+r+" elemento",r!=1&&(a+="s");break;case"maxLength":a="";var r=n.params.limit;a+="n\xE3o deve ser maior que "+r+" caracter",r!=1&&(a+="es");break;case"maxProperties":a="";var r=n.params.limit;a+="n\xE3o deve ter mais que "+r+" propriedade",r!=1&&(a+="s");break;case"minimum":case"exclusiveMinimum":a="";var s=n.params.comparison+" "+n.params.limit;a+="deve ser "+s;break;case"minItems":a="";var r=n.params.limit;a+="n\xE3o deve ter menos que "+r+" elemento",r!=1&&(a+="s");break;case"minLength":a="";var r=n.params.limit;a+="n\xE3o deve ser mais curta que "+r+" caracter",r!=1&&(a+="es");break;case"minProperties":a="";var r=n.params.limit;a+="n\xE3o deve ter menos que "+r+" propriedade",r!=1&&(a+="s");break;case"multipleOf":a="deve ser m\xFAltiplo de "+n.params.multipleOf;break;case"not":a='n\xE3o deve ser valido segundo o schema em "not"';break;case"oneOf":a='deve corresponder exatamente com um schema em "oneOf"';break;case"pattern":a='deve corresponder ao padr\xE3o "'+n.params.pattern+'"';break;case"patternRequired":a='deve ter a propriedade correspondente ao padr\xE3o "'+n.params.missingPattern+'"';break;case"propertyNames":a="o nome da propriedade \xE9 inv\xE1lido";break;case"required":a="deve ter a propriedade obrigat\xF3ria "+n.params.missingProperty;break;case"type":a="";var i=n.params.type;a+="deve ser ",i=="number"?a+="um n\xFAmero":i=="integer"?a+="um n\xFAmero inteiro":i=="string"?a+="um texto":i=="boolean"?a+="um booleano":a+=i;break;case"unevaluatedItems":a="";var r=n.params.len;a+="n\xE3o pode possuir mais que "+r+" ",r==1?a+="item":a+="itens";break;case"unevaluatedProperties":a="n\xE3o pode possuir propridades n\xE3o avaliadas";break;case"uniqueItems":a="n\xE3o deve ter itens duplicados (os itens ## "+n.params.j+" e "+n.params.i+" s\xE3o id\xEAnticos)";break;default:a='deve passar a valida\xE7\xE3o da keyword "'+n.keyword+'"'}n.message=a}}});var SP=h((Mfe,CP)=>{"use strict";CP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u0431\u043E\u043B\u0435\u0435, \u0447\u0435\u043C "+r+" \u044D\u043B\u0435\u043C\u0435\u043D\u0442",r>=2&&r<=4?n+="\u0430":r!=1&&(n+="\u043E\u0432");break;case"additionalProperties":n="\u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u043F\u043E\u043B\u0435\u0439";break;case"anyOf":n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043E\u0434\u043D\u043E\u0439 \u0438\u0445 \u0441\u0445\u0435\u043C \u0432 "anyOf"';break;case"const":n="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0440\u0430\u0432\u043D\u043E \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u043C\u0443 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044E";break;case"contains":n="\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0435 \u0441\u0445\u0435\u043C\u0435";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043F\u043E\u043B",r==1?n+="\u0435":n+="\u044F",n+=" "+i.params.deps+", \u043A\u043E\u0433\u0434\u0430 \u043F\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043F\u043E\u043B\u0435 "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='\u043F\u043E\u043B\u0435 "'+i.params.tag+'" \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u043E\u0439';break;case"mapping":n='\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u044F "'+i.params.tag+'" \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0432 \u043E\u0434\u043D\u043E\u0439 \u0438\u0437 oneOf \u0441\u0445\u0435\u043C ';break;default:n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u0430\u0432\u0438\u043B\u0443 "'+i.keyword+'"'}break;case"enum":n="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0440\u0430\u0432\u043D\u043E \u043E\u0434\u043D\u043E\u043C\u0443 \u0438\u0437 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043D\u044B\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439";break;case"false schema":n="\u0441\u0445\u0435\u043C\u0430 \u0440\u0430\u0432\u043D\u0430 false";break;case"format":n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0444\u043E\u0440\u043C\u0430\u0442\u0443 "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C "+s;break;case"if":n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0441\u0445\u0435\u043Ce "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C "+s;break;case"maxItems":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u0431\u043E\u043B\u0435\u0435, \u0447\u0435\u043C "+r+" \u044D\u043B\u0435\u043C\u0435\u043D\u0442",r>=2&&r<=4?n+="\u0430":r!=1&&(n+="\u043E\u0432");break;case"maxLength":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u0434\u043B\u0438\u043D\u043D\u0435\u0435, \u0447\u0435\u043C "+r+" \u0441\u0438\u043C\u0432\u043E\u043B",r>=2&&r<=4?n+="\u0430":r!=1&&(n+="\u043E\u0432");break;case"maxProperties":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u0431\u043E\u043B\u0435\u0435, \u0447\u0435\u043C "+r+" \u043F\u043E\u043B",r==1?n+="\u0435":r>=2&&r<=4?n+="\u044F":n+="\u0435\u0439";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C "+s;break;case"minItems":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u043C\u0435\u043D\u0435\u0435, \u0447\u0435\u043C "+r+" \u044D\u043B\u0435\u043C\u0435\u043D\u0442",r>=2&&r<=4?n+="\u0430":r!=1&&(n+="\u043E\u0432");break;case"minLength":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u043A\u043E\u0440\u043E\u0447\u0435, \u0447\u0435\u043C "+r+" \u0441\u0438\u043C\u0432\u043E\u043B",r>=2&&r<=4?n+="\u0430":r!=1&&(n+="\u043E\u0432");break;case"minProperties":n="";var r=i.params.limit;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u043C\u0435\u043D\u0435\u0435, \u0447\u0435\u043C "+r+" \u043F\u043E\u043B",r==1?n+="\u0435":r>=2&&r<=4?n+="\u044F":n+="\u0435\u0439";break;case"multipleOf":n="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C "+i.params.multipleOf;break;case"not":n='\u0434\u043E\u043B\u0436\u043D\u043E \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0441\u0445\u0435\u043C\u0435 \u0432 "not"';break;case"oneOf":n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0432 \u0442\u043E\u0447\u043D\u043E\u0441\u0442\u0438 \u043E\u0434\u043D\u043E\u0439 \u0441\u0445\u0435\u043Ce \u0432 "oneOf"';break;case"pattern":n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u0443 "'+i.params.pattern+'"';break;case"patternRequired":n='\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043F\u043E\u043B\u0435, \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0435 \u043E\u0431\u0440\u0430\u0437\u0446\u0443 "'+i.params.missingPattern+'"';break;case"propertyNames":n="\u0438\u043C\u044F \u043F\u043E\u043B\u044F \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0445\u0435\u043C\u0435";break;case"required":n="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 "+i.params.missingProperty;break;case"type":n="\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="\u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u0431\u043E\u043B\u0435\u0435, \u0447\u0435\u043C "+r+" \u044D\u043B\u0435\u043C\u0435\u043D\u0442",r>=2&&r<=4?n+="\u0430":r!=1&&(n+="\u043E\u0432");break;case"unevaluatedProperties":n="\u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043D\u0435\u043F\u0440\u043E\u0432\u0435\u0440\u0435\u043D\u043D\u044B\u0445 \u043F\u043E\u043B\u0435\u0439";break;case"uniqueItems":n="\u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0438\u043C\u0435\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u044E\u0449\u0438\u0445\u0441\u044F \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 (\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B "+i.params.j+" \u0438 "+i.params.i+" \u0438\u0434\u0435\u043D\u0442\u0438\u0447\u043D\u044B)";break;default:n='\u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u0430\u0432\u0438\u043B\u0443 "'+i.keyword+'"'}i.message=n}}});var AP=h((Nfe,xP)=>{"use strict";xP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="nem\xF4\u017Ee obsahova\u0165 viac, ne\u017E "+r+" prv",r==1?n+="ok":n+="kov";break;case"additionalProperties":n="nem\xF4\u017Ee obsahova\u0165 \u010Fal\u0161ie polo\u017Eky";break;case"anyOf":n='mus\xED spl\u0148ova\u0165 aspo\u0148 jednu zo sch\xE9m v "anyOf"';break;case"const":n="mus\xED by\u0165 kon\u0161tanta";break;case"contains":n="mus\xED obsahova\u0165 prvok zodpovedaj\xFAci sch\xE9me";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+=" mus\xED obsahova\u0165 polo\u017E",r>=2&&r<=4?n+="ky":r!=1?n+="iek":n+="ka",n+=": "+i.params.deps+", ak obsahuje "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='mus\xED splni\u0165 "'+i.keyword+'" valid\xE1ciu'}break;case"enum":n="mus\xED by\u0165 jedna z definovan\xFDch hodn\xF4t";break;case"false schema":n="sch\xE9ma je false";break;case"format":n='mus\xED obsahova\u0165 form\xE1t "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED by\u0165 "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED by\u0165 "+s;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED by\u0165 "+s;break;case"maxItems":n="";var r=i.params.limit;n+="nesmie obsahova\u0165 viac ne\u017E "+r+" prv",r==1?n+="ok":n+="kov";break;case"maxLength":n="";var r=i.params.limit;n+="nesmie by\u0165 dlh\u0161\xED ne\u017E "+r+" znak",r!=1&&(n+="ov");break;case"maxProperties":n="";var r=i.params.limit;n+="nesmie obsahova\u0165 viac ne\u017E "+r+" polo\u017E",r>=2&&r<=4?n+="ky":r!=1?n+="iek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="mus\xED by\u0165 "+s;break;case"minItems":n="";var r=i.params.limit;n+="nesmie obsahova\u0165 menej ne\u017E "+r+" prv",r==1?n+="ok":n+="kov";break;case"minLength":n="";var r=i.params.limit;n+="nesmie by\u0165 krat\u0161\xED ne\u017E "+r+" znak",r!=1&&(n+="ov");break;case"minProperties":n="";var r=i.params.limit;n+="nesmie obsahova\u0165 menej ne\u017E "+r+" polo\u017E",r>=2&&r<=4?n+="ky":r!=1?n+="iek":n+="ka";break;case"multipleOf":n="mus\xED by\u0165 n\xE1sobkom "+i.params.multipleOf;break;case"not":n='nesmie spl\u0148ova\u0165 sch\xE9mu v "not"';break;case"oneOf":n='mus\xED spl\u0148ova\u0165 pr\xE1ve jednu sch\xE9mu v "oneOf"';break;case"pattern":n='mus\xED spl\u0148ova\u0165 regul\xE1rny v\xFDraz "'+i.params.pattern+'"';break;case"patternRequired":n='mus\xED obsahova\u0165 polo\u017Eku spl\u0148j\xFAcu regul\xE1rny v\xFDraz "'+i.params.missingPattern+'"';break;case"propertyNames":n="n\xE1zov polo\u017Eky nezodpoved\xE1 sch\xE9me";break;case"required":n="mus\xED obsahova\u0165 po\u017Eadovan\xFA polo\u017Eku "+i.params.missingProperty;break;case"type":n="mus\xED by\u0165 "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmie obsahova\u0165 duplicitn\xE9 prvky (prvky ## "+i.params.j+" a "+i.params.i+" s\xFA rovnak\xE9)";break;default:n='mus\xED splni\u0165 "'+i.keyword+'" valid\xE1ciu'}i.message=n}}});var TP=h((qfe,OP)=>{"use strict";OP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="borde ha fler \xE4n "+r+" sak",r!=1&&(n+="er");break;case"additionalProperties":n="borde inte ha fler egenskaper";break;case"anyOf":n='borde matcha n\xE5got schema i "anyOf"';break;case"const":n="b\xF6r vara en konstant";break;case"contains":n="b\xF6r inneh\xE5lla ett giltigt objekt";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="borde ha egenskap",r!=1&&(n+="er"),n+=" "+i.params.deps+" n\xE4r egenskap "+i.params.property+" finns tillg\xE4ngligt";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='b\xF6r passera "'+i.keyword+'" nyckelord validering'}break;case"enum":n="borde vara ekvivalent med en av dess f\xF6rdefinierade v\xE4rden";break;case"false schema":n="boolean schema \xE4r falskt";break;case"format":n='borde matcha formatet "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="b\xF6r vara "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="b\xF6r vara "+s;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="borde vara "+s;break;case"maxItems":n="";var r=i.params.limit;n+="borde inte ha fler \xE4n "+r+" sak",r!=1&&(n+="er");break;case"maxLength":n="";var r=i.params.limit;n+="borde inte vara l\xE4ngre \xE4n "+r+" tecken";break;case"maxProperties":n="";var r=i.params.limit;n+="borde inte ha fler \xE4n "+r+" egenskap",r!=1&&(n+="er");break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="borde vara "+s;break;case"minItems":n="";var r=i.params.limit;n+="borde inte ha f\xE4rre \xE4n "+r+" sak",r!=1&&(n+="er");break;case"minLength":n="";var r=i.params.limit;n+="borde inte vara kortare \xE4n "+r+" tecken";break;case"minProperties":n="";var r=i.params.limit;n+="borde inte ha f\xE4rre \xE4n "+r+" egenskap",r!=1&&(n+="er");break;case"multipleOf":n="borde vara en multipel av "+i.params.multipleOf;break;case"not":n='borde inte vara giltigt enligt schema i "not"';break;case"oneOf":n='borde matcha exakt ett schema i "oneOf"';break;case"pattern":n='borde matcha m\xF6nstret "'+i.params.pattern+'"';break;case"patternRequired":n='b\xF6r ha en egenskap som matchar m\xF6nstret "'+i.params.missingPattern+'"';break;case"propertyNames":n="egenskap med namnet \xE4r inte giltig";break;case"required":n="borde ha den n\xF6dv\xE4ndiga egenskapen "+i.params.missingProperty;break;case"type":n="borde vara "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="must NOT have more than "+r+" item",r!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="borde inte ha duplicerade saker (sakerna ## "+i.params.j+" och "+i.params.i+" \xE4r identiska)";break;default:n='b\xF6r passera "'+i.keyword+'" nyckelord validering'}i.message=n}}});var PP=h((Bfe,RP)=>{"use strict";RP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E2A\u0E21\u0E32\u0E0A\u0E34\u0E01\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 "+r+" \u0E15\u0E31\u0E27";break;case"additionalProperties":n="\u0E15\u0E49\u0E2D\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35 property \u0E2D\u0E37\u0E48\u0E19\u0E46 \u0E19\u0E2D\u0E01\u0E40\u0E2B\u0E19\u0E35\u0E2D\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";break;case"anyOf":n='\u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 schema \u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49\u0E43\u0E19 "anyOf"';break;case"const":n="\u0E15\u0E49\u0E2D\u0E07\u0E40\u0E17\u0E48\u0E32\u0E01\u0E31\u0E1A\u0E04\u0E48\u0E32\u0E04\u0E07\u0E17\u0E35\u0E48";break;case"contains":n="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E2A\u0E21\u0E32\u0E0A\u0E34\u0E01\u0E17\u0E35\u0E48\u0E1C\u0E48\u0E32\u0E19\u0E40\u0E07\u0E37\u0E48\u0E2D\u0E19\u0E44\u0E02\u0E2D\u0E22\u0E39\u0E48";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E21\u0E35 property "+i.params.property+" \u0E41\u0E25\u0E49\u0E27\u0E08\u0E30\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 property "+i.params.deps+" \u0E14\u0E49\u0E27\u0E22";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19 string';break;case"mapping":n='\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E04\u0E48\u0E32\u0E02\u0E2D\u0E07 tag "'+i.params.tag+'" \u0E43\u0E19 oneOf';break;default:n='\u0E15\u0E49\u0E2D\u0E07\u0E1C\u0E48\u0E32\u0E19\u0E04\u0E35\u0E22\u0E4C\u0E40\u0E27\u0E34\u0E23\u0E4C\u0E14 "'+i.keyword+'"'}break;case"enum":n="\u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19\u0E04\u0E48\u0E32\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";break;case"false schema":n="schema \u0E40\u0E1B\u0E47\u0E19 false";break;case"format":n='\u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07 "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07 "+s;break;case"if":n='\u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A schema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07 "+s;break;case"maxItems":n="";var r=i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E2A\u0E21\u0E32\u0E0A\u0E34\u0E01\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 "+r;break;case"maxLength":n="";var r=i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07\u0E22\u0E32\u0E27\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 "+r+" \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23";break;case"maxProperties":n="";var r=i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 property \u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 "+r+" \u0E15\u0E31\u0E27";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07 "+s;break;case"minItems":n="";var r=i.params.limit;n+="\u0E04\u0E27\u0E23\u0E21\u0E35\u0E2A\u0E21\u0E32\u0E0A\u0E34\u0E01\u0E44\u0E21\u0E48\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32 "+r;break;case"minLength":n="";var r=i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 "+r+" \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23";break;case"minProperties":n="";var r=i.params.limit;n+="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 property \u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 "+r+" \u0E15\u0E31\u0E27";break;case"multipleOf":n="\u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E40\u0E25\u0E02\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23 "+i.params.multipleOf+" \u0E25\u0E07\u0E15\u0E31\u0E27";break;case"not":n='\u0E15\u0E49\u0E2D\u0E07\u0E44\u0E21\u0E48\u0E1C\u0E48\u0E32\u0E19 schema \u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49\u0E43\u0E19 "not"';break;case"oneOf":n='\u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A schema \u0E15\u0E31\u0E27\u0E40\u0E14\u0E35\u0E22\u0E27\u0E43\u0E19 "oneOf" \u0E40\u0E17\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19';break;case"pattern":n='\u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E15\u0E32\u0E21 pattern "'+i.params.pattern+'"';break;case"patternRequired":n='\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 property \u0E17\u0E35\u0E48\u0E21\u0E35\u0E0A\u0E37\u0E48\u0E2D\u0E15\u0E23\u0E07\u0E15\u0E32\u0E21 pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="\u0E0A\u0E37\u0E48\u0E2D property \u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07";break;case"required":n="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 property "+i.params.missingProperty+" \u0E14\u0E49\u0E27\u0E22";break;case"type":n="\u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19 "+i.params.type;break;case"unevaluatedItems":n="";var r=i.params.len;n+="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 "+r+" \u0E15\u0E31\u0E27";break;case"unevaluatedProperties":n="\u0E15\u0E49\u0E2D\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35 property \u0E17\u0E35\u0E48\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E1C\u0E48\u0E32\u0E19\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E40\u0E07\u0E37\u0E48\u0E2D\u0E19\u0E44\u0E02\u0E43\u0E14\u0E46";break;case"uniqueItems":n="\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E2A\u0E21\u0E32\u0E0A\u0E34\u0E01\u0E44\u0E21\u0E48\u0E0B\u0E49\u0E33\u0E31\u0E01\u0E31\u0E19 (\u0E25\u0E33\u0E14\u0E31\u0E1A\u0E17\u0E35\u0E48 "+i.params.j+" \u0E01\u0E31\u0E1A "+i.params.i+" \u0E0B\u0E49\u0E33\u0E01\u0E31\u0E19)";break;default:n='\u0E15\u0E49\u0E2D\u0E07\u0E1C\u0E48\u0E32\u0E19\u0E04\u0E35\u0E22\u0E4C\u0E40\u0E27\u0E34\u0E23\u0E4C\u0E14 "'+i.keyword+'"'}i.message=n}}});var FP=h((Lfe,$P)=>{"use strict";$P.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="\u4E0D\u5141\u8BB8\u8D85\u8FC7"+r+"\u4E2A\u5143\u7D20";break;case"additionalProperties":n="\u4E0D\u5141\u8BB8\u6709\u989D\u5916\u7684\u5C5E\u6027";break;case"anyOf":n="\u6570\u636E\u5E94\u4E3A anyOf \u6240\u6307\u5B9A\u7684\u5176\u4E2D\u4E00\u4E2A";break;case"const":n="\u5E94\u5F53\u7B49\u4E8E\u5E38\u91CF";break;case"contains":n="\u5E94\u5F53\u5305\u542B\u4E00\u4E2A\u6709\u6548\u9879";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="\u5E94\u5F53\u62E5\u6709\u5C5E\u6027"+i.params.property+"\u7684\u4F9D\u8D56\u5C5E\u6027"+i.params.deps;break;case"discriminator":switch(i.params.error){case"tag":n='\u6807\u7B7E "'+i.params.tag+'" \u7684\u7C7B\u578B\u5FC5\u987B\u4E3A\u5B57\u7B26\u4E32';break;case"mapping":n='\u6807\u7B7E "'+i.params.tag+'" \u7684\u503C\u5FC5\u987B\u5728 oneOf \u4E4B\u4E2D';break;default:n='\u5E94\u5F53\u901A\u8FC7 "'+i.keyword+' \u5173\u952E\u8BCD\u6821\u9A8C"'}break;case"enum":n="\u5E94\u5F53\u662F\u9884\u8BBE\u5B9A\u7684\u679A\u4E3E\u503C\u4E4B\u4E00";break;case"false schema":n="\u5E03\u5C14\u6A21\u5F0F\u51FA\u9519";break;case"format":n='\u5E94\u5F53\u5339\u914D\u683C\u5F0F "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u5E94\u5F53\u662F "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u5E94\u5F53\u662F "+s;break;case"if":n='\u5E94\u5F53\u5339\u914D\u6A21\u5F0F "'+i.params.failingKeyword+'" ';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u5E94\u5F53\u4E3A "+s;break;case"maxItems":n="";var r=i.params.limit;n+="\u4E0D\u5E94\u591A\u4E8E "+r+" \u4E2A\u9879";break;case"maxLength":n="";var r=i.params.limit;n+="\u4E0D\u5E94\u591A\u4E8E "+r+" \u4E2A\u5B57\u7B26";break;case"maxProperties":n="";var r=i.params.limit;n+="\u4E0D\u5E94\u6709\u591A\u4E8E "+r+" \u4E2A\u5C5E\u6027";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u5E94\u5F53\u4E3A "+s;break;case"minItems":n="";var r=i.params.limit;n+="\u4E0D\u5E94\u5C11\u4E8E "+r+" \u4E2A\u9879";break;case"minLength":n="";var r=i.params.limit;n+="\u4E0D\u5E94\u5C11\u4E8E "+r+" \u4E2A\u5B57\u7B26";break;case"minProperties":n="";var r=i.params.limit;n+="\u4E0D\u5E94\u6709\u5C11\u4E8E "+r+" \u4E2A\u5C5E\u6027";break;case"multipleOf":n="\u5E94\u5F53\u662F "+i.params.multipleOf+" \u7684\u6574\u6570\u500D";break;case"not":n='\u4E0D\u5E94\u5F53\u5339\u914D "not" schema';break;case"oneOf":n='\u53EA\u80FD\u5339\u914D\u4E00\u4E2A "oneOf" \u4E2D\u7684 schema';break;case"pattern":n='\u5E94\u5F53\u5339\u914D\u6A21\u5F0F "'+i.params.pattern+'"';break;case"patternRequired":n="\u5E94\u5F53\u6709\u5C5E\u6027\u5339\u914D\u6A21\u5F0F "+i.params.missingPattern;break;case"propertyNames":n="\u5C5E\u6027\u540D \u65E0\u6548";break;case"required":n="\u5E94\u5F53\u6709\u5FC5\u9700\u5C5E\u6027 "+i.params.missingProperty;break;case"type":n="\u5E94\u5F53\u662F "+i.params.type+" \u7C7B\u578B";break;case"unevaluatedItems":n="";var r=i.params.len;n+=" \u4E0D\u5141\u8BB8\u6709\u8D85\u8FC7 "+r+" \u4E2A\u5143\u7D20";break;case"unevaluatedProperties":n="\u4E0D\u5141\u8BB8\u5B58\u5728\u672A\u6C42\u503C\u7684\u5C5E\u6027";break;case"uniqueItems":n="\u4E0D\u5E94\u5F53\u542B\u6709\u91CD\u590D\u9879 (\u7B2C "+i.params.j+" \u9879\u4E0E\u7B2C "+i.params.i+" \u9879\u662F\u91CD\u590D\u7684)";break;default:n='\u5E94\u5F53\u901A\u8FC7 "'+i.keyword+' \u5173\u952E\u8BCD\u6821\u9A8C"'}i.message=n}}});var IP=h((Hfe,jP)=>{"use strict";jP.exports=function(e){if(!!(e&&e.length))for(let i of e){let n;switch(i.keyword){case"additionalItems":case"items":n="";var r=i.params.limit;n+="\u4E0D\u53EF\u4EE5\u8D85\u904E"+r+"\u500B\u5143\u7D20";break;case"additionalProperties":n="\u4E0D\u53EF\u4EE5\u6709\u984D\u5916\u7684\u5C6C\u6027";break;case"anyOf":n="\u4E0D\u7B26\u5408 anyOf \u6307\u5B9A\u7684\u6A21\u5F0F";break;case"const":n="\u61C9\u8A72\u7B49\u65BC\u5E38\u6578";break;case"contains":n="\u61C9\u8A72\u5305\u542B\u4E00\u500B\u6709\u6548\u5143\u7D20";break;case"dependencies":case"dependentRequired":n="";var r=i.params.depsCount;n+="\u61C9\u8A72\u8981\u6709\u5C6C\u6027"+i.params.property+"\u7684\u4F9D\u8CF4\u5C6C\u6027"+i.params.deps;break;case"discriminator":switch(i.params.error){case"tag":n='\u6A19\u7C64 "'+i.params.tag+'" \u7684\u985E\u578B\u5FC5\u9808\u662F\u5B57\u4E32';break;case"mapping":n='\u6A19\u7C64 "'+i.params.tag+'" \u5FC5\u9808\u5728 oneOf \u5176\u4E2D\u4E4B\u4E00';break;default:n='\u61C9\u8A72\u901A\u904E "'+i.keyword+' \u95DC\u9375\u8A5E\u6AA2\u9A57"'}break;case"enum":n="\u61C9\u8A72\u8981\u5728\u9810\u8A2D\u7684\u503C\u4E4B\u4E2D";break;case"false schema":n="\u5E03\u6797\u6A21\u5F0F\u4E0D\u6B63\u78BA";break;case"format":n="\u61C9\u8A72\u8981\u7B26\u5408"+i.params.format+"\u683C\u5F0F";break;case"formatMaximum":case"formatExclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u61C9\u8A72\u662F "+s;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u61C9\u8A72\u662F "+s;break;case"if":n='\u61C9\u8A72\u7B26\u5408 "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u61C9\u8A72\u8981 "+s;break;case"maxItems":n="";var r=i.params.limit;n+="\u4E0D\u61C9\u8A72\u591A\u65BC "+r+" \u500B";break;case"maxLength":n="";var r=i.params.limit;n+="\u4E0D\u61C9\u8A72\u591A\u65BC "+r+" \u500B\u5B57\u5143";break;case"maxProperties":n="";var r=i.params.limit;n+="\u4E0D\u61C9\u8A72\u591A\u65BC "+r+" \u500B\u5C6C\u6027";break;case"minimum":case"exclusiveMinimum":n="";var s=i.params.comparison+" "+i.params.limit;n+="\u61C9\u8A72\u8981 "+s;break;case"minItems":n="";var r=i.params.limit;n+="\u4E0D\u61C9\u8A72\u5C11\u65BC "+r+" \u500B";break;case"minLength":n="";var r=i.params.limit;n+="\u4E0D\u61C9\u8A72\u5C11\u65BC "+r+" \u500B\u5B57\u5143";break;case"minProperties":n="";var r=i.params.limit;n+="\u4E0D\u61C9\u8A72\u5C11\u65BC "+r+" \u500B\u5C6C\u6027";break;case"multipleOf":n="\u61C9\u8A72\u662F "+i.params.multipleOf+" \u7684\u6574\u6578\u500D";break;case"not":n='\u4E0D\u61C9\u8A72\u7B26\u5408 "not" schema';break;case"oneOf":n='\u53EA\u80FD\u7B26\u5408\u4E00\u500B "oneOf" \u4E2D\u7684 schema';break;case"pattern":n='\u61C9\u8A72\u7B26\u5408\u6A21\u5F0F "'+i.params.pattern+'"';break;case"patternRequired":n="\u61C9\u8A72\u6709\u5C6C\u6027\u5C0D\u61C9\u6A21\u5F0F "+i.params.missingPattern;break;case"propertyNames":n="\u5C5E\u6027\u540D \u7121\u6548";break;case"required":n="\u61C9\u8A72\u6709\u5FC5\u9808\u5C6C\u6027 "+i.params.missingProperty;break;case"type":n="\u61C9\u8A72\u662F "+i.params.type+" \u985E\u578B";break;case"unevaluatedItems":n="";var r=i.params.len;n+=" \u7684\u5143\u7D20\u4E0D\u53EF\u4EE5\u8D85\u904E "+r+" \u500B";break;case"unevaluatedProperties":n="\u4E0D\u61C9\u8A72\u6709\u672A\u9A57\u8B49\u7684\u5C6C\u6027";break;case"uniqueItems":n="\u4E0D\u61C9\u8A72\u6709\u91CD\u8907\u9805\u76EE (\u7B2C "+i.params.j+" \u9805\u548C\u7B2C "+i.params.i+" \u9805\u662F\u91CD\u8907\u7684)";break;default:n='\u61C9\u8A72\u901A\u904E "'+i.keyword+' \u95DC\u9375\u8A5E\u6AA2\u9A57"'}i.message=n}}});var NP=h((Ufe,MP)=>{"use strict";MP.exports={en:zR(),ar:KR(),ca:JR(),cs:XR(),de:eP(),es:rP(),fi:iP(),fr:aP(),hu:uP(),id:cP(),it:dP(),ja:pP(),ko:gP(),nb:vP(),nl:_P(),pl:EP(),"pt-BR":DP(),ru:SP(),sk:AP(),sv:TP(),th:PP(),zh:FP(),"zh-TW":IP()}});var Rs=h(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.GitError=void 0;var qP=class extends Error{constructor(e,r){super(r);this.task=e,Object.setPrototypeOf(this,new.target.prototype)}};Uf.GitError=qP});var La=h(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.GitResponseError=void 0;var YK=Rs(),BP=class extends YK.GitError{constructor(e,r){super(void 0,r||String(e));this.git=e}};Gf.GitResponseError=BP});var HP=h(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.GitConstructError=void 0;var JK=Rs(),LP=class extends JK.GitError{constructor(e,r){super(void 0,r);this.config=e}};Vf.GitConstructError=LP});var a0=h(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.GitPluginError=void 0;var QK=Rs(),UP=class extends QK.GitError{constructor(e,r,s){super(e,s);this.task=e,this.plugin=r,Object.setPrototypeOf(this,new.target.prototype)}};zf.GitPluginError=UP});var o0=h(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.TaskConfigurationError=void 0;var XK=Rs(),GP=class extends XK.GitError{constructor(e){super(void 0,e)}};Wf.TaskConfigurationError=GP});var zP=h((Yfe,VP)=>{var Ha=1e3,Ua=Ha*60,Ga=Ua*60,yn=Ga*24,ZK=yn*7,eY=yn*365.25;VP.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return tY(t);if(r==="number"&&isFinite(t))return e.long?sY(t):rY(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function tY(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!!e){var r=parseFloat(e[1]),s=(e[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return r*eY;case"weeks":case"week":case"w":return r*ZK;case"days":case"day":case"d":return r*yn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ga;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ua;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ha;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function rY(t){var e=Math.abs(t);return e>=yn?Math.round(t/yn)+"d":e>=Ga?Math.round(t/Ga)+"h":e>=Ua?Math.round(t/Ua)+"m":e>=Ha?Math.round(t/Ha)+"s":t+"ms"}function sY(t){var e=Math.abs(t);return e>=yn?Kf(t,e,yn,"day"):e>=Ga?Kf(t,e,Ga,"hour"):e>=Ua?Kf(t,e,Ua,"minute"):e>=Ha?Kf(t,e,Ha,"second"):t+" ms"}function Kf(t,e,r,s){var i=e>=r*1.5;return Math.round(t/r)+" "+s+(i?"s":"")}});var u0=h((Jfe,WP)=>{function iY(t){r.debug=r,r.default=r,r.coerce=u,r.disable=n,r.enable=i,r.enabled=a,r.humanize=zP(),r.destroy=l,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let f=0;for(let d=0;d<c.length;d++)f=(f<<5)-f+c.charCodeAt(d),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=e;function r(c){let f,d=null,p,m;function g(...b){if(!g.enabled)return;let y=g,w=Number(new Date),k=w-(f||w);y.diff=k,y.prev=f,y.curr=w,f=w,b[0]=r.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let O=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(I,z)=>{if(I==="%%")return"%";O++;let T=r.formatters[z];if(typeof T=="function"){let $=b[O];I=T.call(y,$),b.splice(O,1),O--}return I}),r.formatArgs.call(y,b),(y.log||r.log).apply(y,b)}return g.namespace=c,g.useColors=r.useColors(),g.color=r.selectColor(c),g.extend=s,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(c)),m),set:b=>{d=b}}),typeof r.init=="function"&&r.init(g),g}function s(c,f){let d=r(this.namespace+(typeof f=="undefined"?":":f)+c);return d.log=this.log,d}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f,d=(typeof c=="string"?c:"").split(/[\s,]+/),p=d.length;for(f=0;f<p;f++)!d[f]||(c=d[f].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.substr(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function n(){let c=[...r.names.map(o),...r.skips.map(o).map(f=>"-"+f)].join(",");return r.enable(""),c}function a(c){if(c[c.length-1]==="*")return!0;let f,d;for(f=0,d=r.skips.length;f<d;f++)if(r.skips[f].test(c))return!1;for(f=0,d=r.names.length;f<d;f++)if(r.names[f].test(c))return!0;return!1}function o(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}WP.exports=iY});var KP=h((ar,Yf)=>{ar.formatArgs=aY;ar.save=oY;ar.load=uY;ar.useColors=nY;ar.storage=lY();ar.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ar.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function nY(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function aY(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Yf.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,s=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(s=r))}),t.splice(s,0,e)}ar.log=console.debug||console.log||(()=>{});function oY(t){try{t?ar.storage.setItem("debug",t):ar.storage.removeItem("debug")}catch{}}function uY(){let t;try{t=ar.storage.getItem("debug")}catch{}return!t&&typeof process!="undefined"&&"env"in process&&(t=process.env.DEBUG),t}function lY(){try{return localStorage}catch{}}Yf.exports=u0()(ar);var{formatters:cY}=Yf.exports;cY.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var JP=h((Qfe,YP)=>{"use strict";YP.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",s=e.indexOf(r+t),i=e.indexOf("--");return s!==-1&&(i===-1||s<i)}});var ZP=h((Xfe,XP)=>{"use strict";var fY=require("os"),QP=require("tty"),kr=JP(),{env:gt}=process,yi;kr("no-color")||kr("no-colors")||kr("color=false")||kr("color=never")?yi=0:(kr("color")||kr("colors")||kr("color=true")||kr("color=always"))&&(yi=1);"FORCE_COLOR"in gt&&(gt.FORCE_COLOR==="true"?yi=1:gt.FORCE_COLOR==="false"?yi=0:yi=gt.FORCE_COLOR.length===0?1:Math.min(parseInt(gt.FORCE_COLOR,10),3));function l0(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function c0(t,e){if(yi===0)return 0;if(kr("color=16m")||kr("color=full")||kr("color=truecolor"))return 3;if(kr("color=256"))return 2;if(t&&!e&&yi===void 0)return 0;let r=yi||0;if(gt.TERM==="dumb")return r;if(process.platform==="win32"){let s=fY.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in gt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(s=>s in gt)||gt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in gt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(gt.TEAMCITY_VERSION)?1:0;if(gt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in gt){let s=parseInt((gt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(gt.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(gt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(gt.TERM)||"COLORTERM"in gt?1:r}function dY(t){let e=c0(t,t&&t.isTTY);return l0(e)}XP.exports={supportsColor:dY,stdout:l0(c0(!0,QP.isatty(1))),stderr:l0(c0(!0,QP.isatty(2)))}});var t$=h((xt,Qf)=>{var hY=require("tty"),Jf=require("util");xt.init=_Y;xt.log=yY;xt.formatArgs=mY;xt.save=vY;xt.load=bY;xt.useColors=pY;xt.destroy=Jf.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");xt.colors=[6,2,3,4,5,1];try{let t=ZP();t&&(t.stderr||t).level>=2&&(xt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}xt.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,n)=>n.toUpperCase()),s=process.env[e];return/^(yes|on|true|enabled)$/i.test(s)?s=!0:/^(no|off|false|disabled)$/i.test(s)?s=!1:s==="null"?s=null:s=Number(s),t[r]=s,t},{});function pY(){return"colors"in xt.inspectOpts?Boolean(xt.inspectOpts.colors):hY.isatty(process.stderr.fd)}function mY(t){let{namespace:e,useColors:r}=this;if(r){let s=this.color,i="[3"+(s<8?s:"8;5;"+s),n=` ${i};1m${e} [0m`;t[0]=n+t[0].split(`
|
|
90
90
|
`).join(`
|
|
91
|
-
`+n),t.push(i+"m+"+Qf.exports.humanize(this.diff)+"[0m")}else t[0]=
|
|
92
|
-
`)}function
|
|
93
|
-
`).map(e=>e.trim()).join(" ")};
|
|
94
|
-
`){return t.split(r).reduce((s,i)=>{let n=e?i.trim():i;return n&&s.push(n),s},[])}J.toLinesWithContent=n$;function PY(t,e){return n$(t,!0).map(r=>e(r))}J.forEachLineWithContent=PY;function $Y(t){return s$.exists(t,s$.FOLDER)}J.folderExists=$Y;function FY(t,e){return Array.isArray(t)?t.includes(e)||t.push(e):t.add(e),e}J.append=FY;function jY(t,e){return Array.isArray(t)&&!t.includes(e)&&t.push(e),t}J.including=jY;function IY(t,e){if(Array.isArray(t)){let r=t.indexOf(e);r>=0&&t.splice(r,1)}else t.delete(e);return e}J.remove=IY;J.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function a$(t){return Array.isArray(t)?t:[t]}J.asArray=a$;function MY(t){return a$(t).map(String)}J.asStringArray=MY;function NY(t,e=0){if(t==null)return e;let r=parseInt(t,10);return isNaN(r)?e:r}J.asNumber=NY;function qY(t,e){let r=[];for(let s=0,i=t.length;s<i;s++)r.push(e,t[s]);return r}J.prefixedArray=qY;function BY(t){return(Array.isArray(t)?Buffer.concat(t):t).toString("utf-8")}J.bufferToString=BY;function LY(t,e){return Object.assign({},...e.map(r=>r in t?{[r]:t[r]}:{}))}J.pick=LY;function HY(t=0){return new Promise(e=>setTimeout(e,t))}J.delay=HY});var d0=h(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.filterHasLength=ze.filterFunction=ze.filterPlainObject=ze.filterStringOrStringArray=ze.filterStringArray=ze.filterString=ze.filterPrimitives=ze.filterArray=ze.filterType=void 0;var UY=Xu();function GY(t,e,r){return e(t)?t:arguments.length>2?r:void 0}ze.filterType=GY;var VY=t=>Array.isArray(t);ze.filterArray=VY;function zY(t,e){return/number|string|boolean/.test(typeof t)&&(!e||!e.includes(typeof t))}ze.filterPrimitives=zY;var WY=t=>typeof t=="string";ze.filterString=WY;var KY=t=>Array.isArray(t)&&t.every(ze.filterString);ze.filterStringArray=KY;var YY=t=>ze.filterString(t)||Array.isArray(t)&&t.every(ze.filterString);ze.filterStringOrStringArray=YY;function JY(t){return!!t&&UY.objectToString(t)==="[object Object]"}ze.filterPlainObject=JY;function QY(t){return typeof t=="function"}ze.filterFunction=QY;var XY=t=>t==null||"number|boolean|function".includes(typeof t)?!1:Array.isArray(t)||typeof t=="string"||typeof t.length=="number";ze.filterHasLength=XY});var o$=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.ExitCodes=void 0;var ZY;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.ERROR=1]="ERROR",t[t.UNCLEAN=128]="UNCLEAN"})(ZY=Zu.ExitCodes||(Zu.ExitCodes={}))});var u$=h(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.GitOutputStreams=void 0;var Zf=class{constructor(e,r){this.stdOut=e,this.stdErr=r}asStrings(){return new Zf(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}};ed.GitOutputStreams=Zf});var c$=h(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.RemoteLineParser=za.LineParser=void 0;var h0=class{constructor(e,r){this.matches=[],this.parse=(s,i)=>(this.resetMatches(),this._regExp.every((n,a)=>this.addMatch(n,a,s(a)))?this.useMatches(i,this.prepareMatches())!==!1:!1),this._regExp=Array.isArray(e)?e:[e],r&&(this.useMatches=r)}useMatches(e,r){throw new Error("LineParser:useMatches not implemented")}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,r,s){let i=s&&e.exec(s);return i&&this.pushMatch(r,i),!!i}pushMatch(e,r){this.matches.push(...r.slice(1))}};za.LineParser=h0;var l$=class extends h0{addMatch(e,r,s){return/^remote:\s/.test(String(s))&&super.addMatch(e,r,s)}pushMatch(e,r){(e>0||r.length>1)&&super.pushMatch(e,r)}};za.RemoteLineParser=l$});var f$=h(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.createInstanceConfig=void 0;var eJ={binary:"git",maxConcurrentProcesses:5,config:[]};function tJ(...t){let e=process.cwd(),r=Object.assign(Object.assign({baseDir:e},eJ),...t.filter(s=>typeof s=="object"&&s));return r.baseDir=r.baseDir||e,r}td.createInstanceConfig=tJ});var p$=h(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.trailingFunctionArgument=us.trailingOptionsArgument=us.getTrailingOptions=us.appendTaskOptions=void 0;var vn=d0(),bn=Xu();function d$(t,e=[]){return vn.filterPlainObject(t)?Object.keys(t).reduce((r,s)=>{let i=t[s];return vn.filterPrimitives(i,["boolean"])?r.push(s+"="+i):r.push(s),r},e):e}us.appendTaskOptions=d$;function rJ(t,e=0,r=!1){let s=[];for(let i=0,n=e<0?t.length:e;i<n;i++)"string|number".includes(typeof t[i])&&s.push(String(t[i]));return d$(h$(t),s),r||s.push(...sJ(t)),s}us.getTrailingOptions=rJ;function sJ(t){let e=typeof bn.last(t)=="function";return vn.filterType(bn.last(t,e?1:0),vn.filterArray,[])}function h$(t){let e=vn.filterFunction(bn.last(t));return vn.filterType(bn.last(t,e?1:0),vn.filterPlainObject)}us.trailingOptionsArgument=h$;function iJ(t,e=!0){let r=bn.asFunction(bn.last(t));return e||bn.isUserFunction(r)?r:void 0}us.trailingFunctionArgument=iJ});var m$=h(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.parseStringResponse=Wa.callTaskParser=void 0;var nJ=Xu();function aJ(t,e){return t(e.stdOut,e.stdErr)}Wa.callTaskParser=aJ;function oJ(t,e,...r){return r.forEach(s=>{for(let i=nJ.toLinesWithContent(s),n=0,a=i.length;n<a;n++){let o=(u=0)=>{if(!(n+u>=a))return i[n+u]};e.some(({parse:u})=>u(o,t))}}),t}Wa.parseStringResponse=oJ});var oe=h(Xt=>{"use strict";var uJ=Xt&&Xt.__createBinding||(Object.create?function(t,e,r,s){s===void 0&&(s=r),Object.defineProperty(t,s,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]}),vi=Xt&&Xt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&uJ(e,t,r)};Object.defineProperty(Xt,"__esModule",{value:!0});vi(d0(),Xt);vi(o$(),Xt);vi(u$(),Xt);vi(c$(),Xt);vi(f$(),Xt);vi(p$(),Xt);vi(m$(),Xt);vi(Xu(),Xt)});var g0=h(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.checkIsBareRepoTask=Gr.checkIsRepoRootTask=Gr.checkIsRepoTask=Gr.CheckRepoActions=void 0;var lJ=oe(),p0;(function(t){t.BARE="bare",t.IN_TREE="tree",t.IS_REPO_ROOT="root"})(p0=Gr.CheckRepoActions||(Gr.CheckRepoActions={}));var m0=({exitCode:t},e,r,s)=>{if(t===lJ.ExitCodes.UNCLEAN&&fJ(e))return r(Buffer.from("false"));s(e)},g$=t=>t.trim()==="true";function cJ(t){switch(t){case p0.BARE:return v$();case p0.IS_REPO_ROOT:return y$()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:m0,parser:g$}}Gr.checkIsRepoTask=cJ;function y$(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:m0,parser(e){return/^\.(git)?$/.test(e.trim())}}}Gr.checkIsRepoRootTask=y$;function v$(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:m0,parser:g$}}Gr.checkIsBareRepoTask=v$;function fJ(t){return/(Not a git repository|Kein Git-Repository)/i.test(String(t))}});var b$=h(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.cleanSummaryParser=Ka.CleanResponse=void 0;var dJ=oe(),y0=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}};Ka.CleanResponse=y0;var hJ=/^[a-z]+\s*/i,pJ=/^[a-z]+\s+[a-z]+\s*/i,mJ=/\/$/;function gJ(t,e){let r=new y0(t),s=t?pJ:hJ;return dJ.toLinesWithContent(e).forEach(i=>{let n=i.replace(s,"");r.paths.push(n),(mJ.test(n)?r.folders:r.files).push(n)}),r}Ka.cleanSummaryParser=gJ});var Ft=h(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.isEmptyTask=yt.isBufferTask=yt.straightThroughBufferTask=yt.straightThroughStringTask=yt.configurationErrorTask=yt.adhocExecTask=yt.EMPTY_COMMANDS=void 0;var yJ=a0();yt.EMPTY_COMMANDS=[];function vJ(t){return{commands:yt.EMPTY_COMMANDS,format:"empty",parser:t}}yt.adhocExecTask=vJ;function bJ(t){return{commands:yt.EMPTY_COMMANDS,format:"empty",parser(){throw typeof t=="string"?new yJ.TaskConfigurationError(t):t}}}yt.configurationErrorTask=bJ;function _J(t,e=!1){return{commands:t,format:"utf-8",parser(r){return e?String(r).trim():r}}}yt.straightThroughStringTask=_J;function wJ(t){return{commands:t,format:"buffer",parser(e){return e}}}yt.straightThroughBufferTask=wJ;function EJ(t){return t.format==="buffer"}yt.isBufferTask=EJ;function kJ(t){return t.format==="empty"||!t.commands.length}yt.isEmptyTask=kJ});var b0=h(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.isCleanOptionsArray=rt.cleanTask=rt.cleanWithOptionsTask=rt.CleanOptions=rt.CONFIG_ERROR_UNKNOWN_OPTION=rt.CONFIG_ERROR_MODE_REQUIRED=rt.CONFIG_ERROR_INTERACTIVE_MODE=void 0;var DJ=b$(),CJ=oe(),v0=Ft();rt.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";rt.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';rt.CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ";var el;(function(t){t.DRY_RUN="n",t.FORCE="f",t.IGNORED_INCLUDED="x",t.IGNORED_ONLY="X",t.EXCLUDING="e",t.QUIET="q",t.RECURSIVE="d"})(el=rt.CleanOptions||(rt.CleanOptions={}));var _$=new Set(["i",...CJ.asStringArray(Object.values(el))]);function SJ(t,e){let{cleanMode:r,options:s,valid:i}=AJ(t);return r?i.options?(s.push(...e),s.some(RJ)?v0.configurationErrorTask(rt.CONFIG_ERROR_INTERACTIVE_MODE):w$(r,s)):v0.configurationErrorTask(rt.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(t)):v0.configurationErrorTask(rt.CONFIG_ERROR_MODE_REQUIRED)}rt.cleanWithOptionsTask=SJ;function w$(t,e){return{commands:["clean",`-${t}`,...e],format:"utf-8",parser(s){return DJ.cleanSummaryParser(t===el.DRY_RUN,s)}}}rt.cleanTask=w$;function xJ(t){return Array.isArray(t)&&t.every(e=>_$.has(e))}rt.isCleanOptionsArray=xJ;function AJ(t){let e,r=[],s={cleanMode:!1,options:!0};return t.replace(/[^a-z]i/g,"").split("").forEach(i=>{OJ(i)?(e=i,s.cleanMode=!0):s.options=s.options&&TJ(r[r.length]=`-${i}`)}),{cleanMode:e,options:r,valid:s}}function OJ(t){return t===el.FORCE||t===el.DRY_RUN}function TJ(t){return/^-[a-z]$/i.test(t)&&_$.has(t.charAt(1))}function RJ(t){return/^-[^\-]/.test(t)?t.indexOf("i")>0:t==="--interactive"}});var D$=h(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.configGetParser=bi.configListParser=bi.ConfigList=void 0;var E$=oe(),_0=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||(this._all=this.files.reduce((e,r)=>Object.assign(e,this.values[r]),{})),this._all}addFile(e){if(!(e in this.values)){let r=E$.last(this.files);this.values[e]=r?Object.create(this.values[r]):{},this.files.push(e)}return this.values[e]}addValue(e,r,s){let i=this.addFile(e);i.hasOwnProperty(r)?Array.isArray(i[r])?i[r].push(s):i[r]=[i[r],s]:i[r]=s,this._all=void 0}};bi.ConfigList=_0;function PJ(t){let e=new _0;for(let r of k$(t))e.addValue(r.file,String(r.key),r.value);return e}bi.configListParser=PJ;function $J(t,e){let r=null,s=[],i=new Map;for(let n of k$(t,e))n.key===e&&(s.push(r=n.value),i.has(n.file)||i.set(n.file,[]),i.get(n.file).push(r));return{key:e,paths:Array.from(i.keys()),scopes:i,value:r,values:s}}bi.configGetParser=$J;function FJ(t){return t.replace(/^(file):/,"")}function*k$(t,e=null){let r=t.split("\0");for(let s=0,i=r.length-1;s<i;){let n=FJ(r[s++]),a=r[s++],o=e;if(a.includes(`
|
|
95
|
-
`)){let u=
|
|
96
|
-
`);o=u[0],a=u[1]}yield{file:n,key:o,value:a}}}});var D0=h(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.GitConfigScope=void 0;var C$=D$(),w0=oe(),E0;(function(t){t.system="system",t.global="global",t.local="local",t.worktree="worktree"})(E0=Ya.GitConfigScope||(Ya.GitConfigScope={}));function k0(t,e){return typeof t=="string"&&E0.hasOwnProperty(t)?t:e}function jJ(t,e,r,s){let i=["config",`--${s}`];return r&&i.push("--add"),i.push(t,e),{commands:i,format:"utf-8",parser(n){return n}}}function IJ(t,e){let r=["config","--null","--show-origin","--get-all",t];return e&&r.splice(1,0,`--${e}`),{commands:r,format:"utf-8",parser(s){return C$.configGetParser(s,t)}}}function MJ(t){let e=["config","--list","--show-origin","--null"];return t&&e.push(`--${t}`),{commands:e,format:"utf-8",parser(r){return C$.configListParser(r)}}}function NJ(){return{addConfig(t,e,...r){return this._runTask(jJ(t,e,r[0]===!0,k0(r[1],E0.local)),w0.trailingFunctionArgument(arguments))},getConfig(t,e){return this._runTask(IJ(t,k0(e,void 0)),w0.trailingFunctionArgument(arguments))},listConfig(...t){return this._runTask(MJ(k0(t[0],void 0)),w0.trailingFunctionArgument(arguments))}}}Ya.default=NJ});var C0=h(tl=>{"use strict";var S$;Object.defineProperty(tl,"__esModule",{value:!0});tl.grepQueryBuilder=void 0;var _n=oe(),qJ=Ft(),BJ=["-h"],rd=Symbol("grepQuery"),x$=class{constructor(){this[S$]=[]}*[(S$=rd,Symbol.iterator)](){for(let e of this[rd])yield e}and(...e){return e.length&&this[rd].push("--and","(",..._n.prefixedArray(e,"-e"),")"),this}param(...e){return this[rd].push(..._n.prefixedArray(e,"-e")),this}};function A$(...t){return new x$().param(...t)}tl.grepQueryBuilder=A$;function LJ(t){let e=new Set,r={};return _n.forEachLineWithContent(t,s=>{let[i,n,a]=s.split(_n.NULL);e.add(i),(r[i]=r[i]||[]).push({line:_n.asNumber(n),path:i,preview:a})}),{paths:e,results:r}}function HJ(){return{grep(t){let e=_n.trailingFunctionArgument(arguments),r=_n.getTrailingOptions(arguments);for(let i of BJ)if(r.includes(i))return this._runTask(qJ.configurationErrorTask(`git.grep: use of "${i}" is not supported.`),e);typeof t=="string"&&(t=A$().param(t));let s=["grep","--null","-n","--full-name",...r,...t];return this._runTask({commands:s,format:"utf-8",parser(i){return LJ(i)}},e)}}}tl.default=HJ});var x0=h(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.getResetMode=Ps.resetTask=Ps.ResetMode=void 0;var UJ=Ft(),S0;(function(t){t.MIXED="mixed",t.SOFT="soft",t.HARD="hard",t.MERGE="merge",t.KEEP="keep"})(S0=Ps.ResetMode||(Ps.ResetMode={}));var GJ=Array.from(Object.values(S0));function VJ(t,e){let r=["reset"];return O$(t)&&r.push(`--${t}`),r.push(...e),UJ.straightThroughStringTask(r)}Ps.resetTask=VJ;function zJ(t){if(O$(t))return t;switch(typeof t){case"string":case"undefined":return S0.SOFT}}Ps.getResetMode=zJ;function O$(t){return GJ.includes(t)}});var T$=h(A0=>{"use strict";Object.defineProperty(A0,"__esModule",{value:!0});var WJ=LP(),KJ=Rs(),YJ=n0(),JJ=La(),QJ=a0(),XJ=g0(),ZJ=b0(),eQ=D0(),tQ=C0(),rQ=x0(),sQ={CheckRepoActions:XJ.CheckRepoActions,CleanOptions:ZJ.CleanOptions,GitConfigScope:eQ.GitConfigScope,GitConstructError:WJ.GitConstructError,GitError:KJ.GitError,GitPluginError:YJ.GitPluginError,GitResponseError:JJ.GitResponseError,ResetMode:rQ.ResetMode,TaskConfigurationError:QJ.TaskConfigurationError,grepQueryBuilder:tQ.grepQueryBuilder};A0.default=sQ});var R$=h(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.commandConfigPrefixingPlugin=void 0;var iQ=oe();function nQ(t){let e=iQ.prefixedArray(t,"-c");return{type:"spawn.args",action(r){return[...e,...r]}}}sd.commandConfigPrefixingPlugin=nQ});var T0=h(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.createDeferred=wn.deferred=void 0;function O0(){let t,e,r="pending";return{promise:new Promise((i,n)=>{t=i,e=n}),done(i){r==="pending"&&(r="resolved",t(i))},fail(i){r==="pending"&&(r="rejected",e(i))},get fulfilled(){return r!=="pending"},get status(){return r}}}wn.deferred=O0;wn.createDeferred=O0;wn.default=O0});var F$=h(Ja=>{"use strict";var aQ=Ja&&Ja.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function o(c){try{l(s.next(c))}catch(f){a(f)}}function u(c){try{l(s.throw(c))}catch(f){a(f)}}function l(c){c.done?n(c.value):i(c.value).then(o,u)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(Ja,"__esModule",{value:!0});Ja.completionDetectionPlugin=void 0;var rl=T0(),P$=oe(),$$=rl.default().promise;function oQ({onClose:t=!0,onExit:e=50}={}){function r(){let i=-1,n={close:rl.default(),closeTimeout:rl.default(),exit:rl.default(),exitTimeout:rl.default()},a=Promise.race([t===!1?$$:n.closeTimeout.promise,e===!1?$$:n.exitTimeout.promise]);return s(t,n.close,n.closeTimeout),s(e,n.exit,n.exitTimeout),{close(o){i=o,n.close.done()},exit(o){i=o,n.exit.done()},get exitCode(){return i},result:a}}function s(i,n,a){i!==!1&&(i===!0?n.promise:n.promise.then(()=>P$.delay(i))).then(a.done)}return{type:"spawn.after",action(i,{spawned:n,close:a}){var o,u;return aQ(this,void 0,void 0,function*(){let l=r(),c=!0,f=()=>void(c=!1);(o=n.stdout)===null||o===void 0||o.on("data",f),(u=n.stderr)===null||u===void 0||u.on("data",f),n.on("error",f),n.on("close",d=>l.close(d)),n.on("exit",d=>l.exit(d));try{yield l.result,c&&(yield P$.delay(50)),a(l.exitCode)}catch(d){a(l.exitCode,d)}})}}}Ja.completionDetectionPlugin=oQ});var j$=h(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.errorDetectionPlugin=Qa.errorDetectionHandler=void 0;var uQ=Rs();function lQ(t){return!!(t.exitCode&&t.stdErr.length)}function cQ(t){return Buffer.concat([...t.stdOut,...t.stdErr])}function fQ(t=!1,e=lQ,r=cQ){return(s,i)=>!t&&s||!e(i)?s:r(i)}Qa.errorDetectionHandler=fQ;function dQ(t){return{type:"task.error",action(e,r){let s=t(e.error,{stdErr:r.stdErr,stdOut:r.stdOut,exitCode:r.exitCode});return Buffer.isBuffer(s)?{error:new uQ.GitError(void 0,s.toString("utf-8"))}:{error:s}}}}Qa.errorDetectionPlugin=dQ});var N$=h(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.PluginStore=void 0;var I$=oe(),M$=class{constructor(){this.plugins=new Set}add(e){let r=[];return I$.asArray(e).forEach(s=>s&&this.plugins.add(I$.append(r,s))),()=>{r.forEach(s=>this.plugins.delete(s))}}exec(e,r,s){let i=r,n=Object.freeze(Object.create(s));for(let a of this.plugins)a.type===e&&(i=a.action(i,n));return i}};id.PluginStore=M$});var q$=h(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.progressMonitorPlugin=void 0;var nd=oe();function hQ(t){let e="--progress",r=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action(n,a){return r.includes(a.method)?nd.including(n,e):n}},{type:"spawn.after",action(n,a){var o;!a.commands.includes(e)||(o=a.spawned.stderr)===null||o===void 0||o.on("data",u=>{let l=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(u.toString("utf8"));!l||t({method:a.method,stage:pQ(l[1]),progress:nd.asNumber(l[2]),processed:nd.asNumber(l[3]),total:nd.asNumber(l[4])})})}}]}ad.progressMonitorPlugin=hQ;function pQ(t){return String(t.toLowerCase().split(" ",1))||"unknown"}});var L$=h(B$=>{"use strict";Object.defineProperty(B$,"__esModule",{value:!0})});var H$=h(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.spawnOptionsPlugin=void 0;var mQ=oe();function gQ(t){let e=mQ.pick(t,["uid","gid"]);return{type:"spawn.options",action(r){return Object.assign(Object.assign({},e),r)}}}od.spawnOptionsPlugin=gQ});var U$=h(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.timeoutPlugin=void 0;var yQ=n0();function vQ({block:t}){if(t>0)return{type:"spawn.after",action(e,r){var s,i;let n;function a(){n&&clearTimeout(n),n=setTimeout(u,t)}function o(){var l,c;(l=r.spawned.stdout)===null||l===void 0||l.off("data",a),(c=r.spawned.stderr)===null||c===void 0||c.off("data",a),r.spawned.off("exit",o),r.spawned.off("close",o)}function u(){o(),r.kill(new yQ.GitPluginError(void 0,"timeout","block timeout reached"))}(s=r.spawned.stdout)===null||s===void 0||s.on("data",a),(i=r.spawned.stderr)===null||i===void 0||i.on("data",a),r.spawned.on("exit",o),r.spawned.on("close",o),a()}}}ud.timeoutPlugin=vQ});var G$=h(Zt=>{"use strict";var bQ=Zt&&Zt.__createBinding||(Object.create?function(t,e,r,s){s===void 0&&(s=r),Object.defineProperty(t,s,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]}),_i=Zt&&Zt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&bQ(e,t,r)};Object.defineProperty(Zt,"__esModule",{value:!0});_i(R$(),Zt);_i(F$(),Zt);_i(j$(),Zt);_i(N$(),Zt);_i(q$(),Zt);_i(L$(),Zt);_i(H$(),Zt);_i(U$(),Zt)});var fd=h(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.GitLogger=Xa.createLogger=void 0;var ld=f0(),wi=oe();ld.default.formatters.L=t=>String(wi.filterHasLength(t)?t.length:"-");ld.default.formatters.B=t=>Buffer.isBuffer(t)?t.toString("utf8"):wi.objectToString(t);function V$(){return ld.default("simple-git")}function cd(t,e,r){return!e||!String(e).replace(/\s*/,"")?r?(s,...i)=>{t(s,...i),r(s,...i)}:t:(s,...i)=>{t(`%s ${s}`,e,...i),r&&r(s,...i)}}function _Q(t,e,{namespace:r}){if(typeof t=="string")return t;let s=e&&e.namespace||"";return s.startsWith(r)?s.substr(r.length+1):s||r}function z$(t,e,r,s=V$()){let i=t&&`[${t}]`||"",n=[],a=typeof e=="string"?s.extend(e):e,o=_Q(wi.filterType(e,wi.filterString),a,s);return l(r);function u(c,f){return wi.append(n,z$(t,o.replace(/^[^:]+/,c),f,s))}function l(c){let f=c&&`[${c}]`||"",d=a&&cd(a,f)||wi.NOOP,m=cd(s,`${i} ${f}`,d);return Object.assign(a?d:m,{label:t,sibling:u,info:m,step:l})}}Xa.createLogger=z$;var W$=class{constructor(e=V$()){this._out=e,this.error=cd(e,"[ERROR]"),this.warn=cd(e,"[WARN]")}silent(e=!1){if(e!==this._out.enabled)return;let{namespace:r}=this._out,s=(process.env.DEBUG||"").split(",").filter(a=>!!a),i=s.includes(r),n=s.includes(`-${r}`);e?i?wi.remove(s,r):s.push(`-${r}`):n?wi.remove(s,`-${r}`):s.push(r),ld.default.enable(s.join(","))}};Xa.GitLogger=W$});var K$=h(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.TasksPendingQueue=void 0;var wQ=Rs(),EQ=fd(),Za=class{constructor(e="GitExecutor"){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){let r=Za.getName(e.commands[0]),s=EQ.createLogger(this.logLabel,r);return{task:e,logger:s,name:r}}push(e){let r=this.createProgress(e);return r.logger("Adding task to the queue, commands = %o",e.commands),this._queue.set(e,r),r}fatal(e){for(let[r,{logger:s}]of Array.from(this._queue.entries()))r===e.task?(s.info("Failed %o",e),s("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted")):s.info("A fatal exception occurred in a previous task, the queue has been purged: %o",e.message),this.complete(r);if(this._queue.size!==0)throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){let r=this.withProgress(e);if(!r)throw new wQ.GitError(void 0,"TasksPendingQueue: attempt called for an unknown task");return r.logger("Starting task"),r}static getName(e="empty"){return`task:${e}:${++Za.counter}`}};dd.TasksPendingQueue=Za;Za.counter=0});var Z$=h(to=>{"use strict";var hd=to&&to.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function o(c){try{l(s.next(c))}catch(f){a(f)}}function u(c){try{l(s.throw(c))}catch(f){a(f)}}function l(c){c.done?n(c.value):i(c.value).then(o,u)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(to,"__esModule",{value:!0});to.GitExecutorChain=void 0;var kQ=require("child_process"),Y$=Rs(),J$=Ft(),eo=oe(),DQ=K$(),Q$=class{constructor(e,r,s){this._executor=e,this._scheduler=r,this._plugins=s,this._chain=Promise.resolve(),this._queue=new DQ.TasksPendingQueue}get binary(){return this._executor.binary}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then(()=>this.attemptTask(e))}attemptTask(e){return hd(this,void 0,void 0,function*(){let r=yield this._scheduler.next(),s=()=>this._queue.complete(e);try{let{logger:i}=this._queue.attempt(e);return yield J$.isEmptyTask(e)?this.attemptEmptyTask(e,i):this.attemptRemoteTask(e,i)}catch(i){throw this.onFatalException(e,i)}finally{s(),r()}})}onFatalException(e,r){let s=r instanceof Y$.GitError?Object.assign(r,{task:e}):new Y$.GitError(e,r&&String(r));return this._chain=Promise.resolve(),this._queue.fatal(s),s}attemptRemoteTask(e,r){return hd(this,void 0,void 0,function*(){let s=this._plugins.exec("spawn.args",[...e.commands],pd(e,e.commands)),i=yield this.gitResponse(e,this.binary,s,this.outputHandler,r.step("SPAWN")),n=yield this.handleTaskData(e,s,i,r.step("HANDLE"));return r("passing response to task's parser as a %s",e.format),J$.isBufferTask(e)?eo.callTaskParser(e.parser,n):eo.callTaskParser(e.parser,n.asStrings())})}attemptEmptyTask(e,r){return hd(this,void 0,void 0,function*(){return r("empty task bypassing child process to call to task's parser"),e.parser(this)})}handleTaskData(e,r,s,i){let{exitCode:n,rejection:a,stdOut:o,stdErr:u}=s;return new Promise((l,c)=>{i("Preparing to handle process response exitCode=%d stdOut=",n);let{error:f}=this._plugins.exec("task.error",{error:a},Object.assign(Object.assign({},pd(e,r)),s));if(f&&e.onError)return i.info("exitCode=%s handling with custom error handler"),e.onError(s,f,d=>{i.info("custom error handler treated as success"),i("custom error returned a %s",eo.objectToString(d)),l(new eo.GitOutputStreams(Array.isArray(d)?Buffer.concat(d):d,Buffer.concat(u)))},c);if(f)return i.info("handling as error: exitCode=%s stdErr=%s rejection=%o",n,u.length,a),c(f);i.info("retrieving task output complete"),l(new eo.GitOutputStreams(Buffer.concat(o),Buffer.concat(u)))})}gitResponse(e,r,s,i,n){return hd(this,void 0,void 0,function*(){let a=n.sibling("output"),o=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},pd(e,e.commands));return new Promise(u=>{let l=[],c=[],f;n.info("%s %o",r,s),n("%O",o);let d=kQ.spawn(r,s,o);d.stdout.on("data",X$(l,"stdOut",n,a.step("stdOut"))),d.stderr.on("data",X$(c,"stdErr",n,a.step("stdErr"))),d.on("error",CQ(c,n)),i&&(n("Passing child process stdOut/stdErr to custom outputHandler"),i(r,d.stdout,d.stderr,[...s])),this._plugins.exec("spawn.after",void 0,Object.assign(Object.assign({},pd(e,s)),{spawned:d,close(m,p){u({stdOut:l,stdErr:c,exitCode:m,rejection:f||p})},kill(m){d.killed||(f=m,d.kill("SIGINT"))}}))})})}};to.GitExecutorChain=Q$;function pd(t,e){return{method:eo.first(t.commands)||"",commands:e}}function CQ(t,e){return r=>{e("[ERROR] child process exception %o",r),t.push(Buffer.from(String(r.stack),"ascii"))}}function X$(t,e,r,s){return i=>{r("%s received %L bytes",e,i),s("%B",i),t.push(i)}}});var rF=h(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.GitExecutor=void 0;var eF=Z$(),tF=class{constructor(e="git",r,s,i){this.binary=e,this.cwd=r,this._scheduler=s,this._plugins=i,this._chain=new eF.GitExecutorChain(this,this._scheduler,this._plugins)}chain(){return new eF.GitExecutorChain(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}};md.GitExecutor=tF});var iF=h(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.taskCallback=void 0;var SQ=La(),sF=oe();function xQ(t,e,r=sF.NOOP){let s=n=>{r(null,n)},i=n=>{(n==null?void 0:n.task)===t&&r(n instanceof SQ.GitResponseError?AQ(n):n,void 0)};e.then(s,i)}gd.taskCallback=xQ;function AQ(t){let e=s=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${s} should be GitResponseError.git.${s}, this will no longer be available in version 3`),e=sF.NOOP};return Object.create(t,Object.getOwnPropertyNames(t.git).reduce(r,{}));function r(s,i){return i in t||(s[i]={enumerable:!1,configurable:!1,get(){return e(i),t.git[i]}}),s}}});var nF=h(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.changeWorkingDirectoryTask=void 0;var OQ=oe(),TQ=Ft();function RQ(t,e){return TQ.adhocExecTask(r=>{if(!OQ.folderExists(t))throw new Error(`Git.cwd: cannot change to non-directory "${t}"`);return(e||r).cwd=t})}yd.changeWorkingDirectoryTask=RQ});var aF=h(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.hashObjectTask=void 0;var PQ=Ft();function $Q(t,e){let r=["hash-object",t];return e&&r.push("-w"),PQ.straightThroughStringTask(r,!0)}vd.hashObjectTask=$Q});var oF=h(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.parseInit=ro.InitSummary=void 0;var sl=class{constructor(e,r,s,i){this.bare=e,this.path=r,this.existing=s,this.gitDir=i}};ro.InitSummary=sl;var FQ=/^Init.+ repository in (.+)$/,jQ=/^Rein.+ in (.+)$/;function IQ(t,e,r){let s=String(r).trim(),i;if(i=FQ.exec(s))return new sl(t,e,!1,i[1]);if(i=jQ.exec(s))return new sl(t,e,!0,i[1]);let n="",a=s.split(" ");for(;a.length;)if(a.shift()==="in"){n=a.join(" ");break}return new sl(t,e,/^re/i.test(s),n)}ro.parseInit=IQ});var lF=h(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.initTask=void 0;var MQ=oF(),uF="--bare";function NQ(t){return t.includes(uF)}function qQ(t=!1,e,r){let s=["init",...r];return t&&!NQ(s)&&s.splice(1,0,uF),{commands:s,format:"utf-8",parser(i){return MQ.parseInit(s.includes("--bare"),e,i)}}}bd.initTask=qQ});var fF=h(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.DiffSummary=void 0;var cF=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}};_d.DiffSummary=cF});var R0=h(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.parseDiffResult=void 0;var BQ=fF();function LQ(t){let e=t.trim().split(`
|
|
97
|
-
`),r=new BQ.DiffSummary;HQ(r,e.pop());for(let s=0,i=e.length;s<i;s++){let n=e[s];GQ(n,r)||VQ(n,r)}return r}wd.parseDiffResult=LQ;function HQ(t,e){(e||"").trim().split(", ").forEach(function(r){let s=/(\d+)\s([a-z]+)/.exec(r);!s||UQ(t,s[2],parseInt(s[1],10))})}function UQ(t,e,r){let s=/([a-z]+?)s?\b/.exec(e);!s||!dF[s[1]]||dF[s[1]](t,r)}var dF={file(t,e){t.changed=e},deletion(t,e){t.deletions=e},insertion(t,e){t.insertions=e}};function GQ(t,{files:e}){let r=t.trim().match(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/);if(r){var s=(r[3]||"").trim();return e.push({file:r[1].trim(),changes:parseInt(r[2],10),insertions:s.replace(/-/g,"").length,deletions:s.replace(/\+/g,"").length,binary:!1}),!0}return!1}function VQ(t,{files:e}){let r=t.match(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)$/);return r?(e.push({file:r[1].trim(),before:+r[2],after:+r[3],binary:!0}),!0):!1}});var P0=h(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.createListLogSummaryParser=ur.SPLITTER=ur.COMMIT_BOUNDARY=ur.START_BOUNDARY=void 0;var zQ=oe(),WQ=R0();ur.START_BOUNDARY="\xF2\xF2\xF2\xF2\xF2\xF2 ";ur.COMMIT_BOUNDARY=" \xF2\xF2";ur.SPLITTER=" \xF2 ";var KQ=["hash","date","message","refs","author_name","author_email"];function YQ(t,e){return e.reduce((r,s,i)=>(r[s]=t[i]||"",r),Object.create({diff:null}))}function JQ(t=ur.SPLITTER,e=KQ){return function(r){let s=zQ.toLinesWithContent(r,!0,ur.START_BOUNDARY).map(function(i){let n=i.trim().split(ur.COMMIT_BOUNDARY),a=YQ(n[0].trim().split(t),e);return n.length>1&&!!n[1].trim()&&(a.diff=WQ.parseDiffResult(n[1])),a});return{all:s,latest:s.length&&s[0]||null,total:s.length}}}ur.createListLogSummaryParser=JQ});var F0=h(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.logTask=kn.parseLogOptions=void 0;var Ed=P0(),En=oe(),QQ=Ft(),$0;(function(t){t[t["--pretty"]=0]="--pretty",t[t["max-count"]=1]="max-count",t[t.maxCount=2]="maxCount",t[t.n=3]="n",t[t.file=4]="file",t[t.format=5]="format",t[t.from=6]="from",t[t.to=7]="to",t[t.splitter=8]="splitter",t[t.symmetric=9]="symmetric",t[t.mailMap=10]="mailMap",t[t.multiLine=11]="multiLine",t[t.strictDate=12]="strictDate"})($0||($0={}));function XQ(t,e){let r=[],s=[];return Object.keys(t).forEach(i=>{r.push(i),s.push(String(t[i]))}),[r,s.join(e)]}function ZQ(t){let e=Object.assign({},t);return Object.keys(t).forEach(r=>{r in $0&&delete e[r]}),e}function hF(t={},e=[]){let r=t.splitter||Ed.SPLITTER,s=t.format||{hash:"%H",date:t.strictDate===!1?"%ai":"%aI",message:"%s",refs:"%D",body:t.multiLine?"%B":"%b",author_name:t.mailMap!==!1?"%aN":"%an",author_email:t.mailMap!==!1?"%aE":"%ae"},[i,n]=XQ(s,r),a=[],o=[`--pretty=format:${Ed.START_BOUNDARY}${n}${Ed.COMMIT_BOUNDARY}`,...e],u=t.n||t["max-count"]||t.maxCount;if(u&&o.push(`--max-count=${u}`),t.from&&t.to){let l=t.symmetric!==!1?"...":"..";a.push(`${t.from}${l}${t.to}`)}return t.file&&a.push("--follow",t.file),En.appendTaskOptions(ZQ(t),o),{fields:i,splitter:r,commands:[...o,...a]}}kn.parseLogOptions=hF;function pF(t,e,r){return{commands:["log",...r],format:"utf-8",parser:Ed.createListLogSummaryParser(t,e)}}kn.logTask=pF;function eX(){return{log(...r){let s=En.trailingFunctionArgument(arguments),i=e(...r)||t(hF(En.trailingOptionsArgument(arguments),En.filterType(arguments[0],En.filterArray)));return this._runTask(i,s)}};function t(r){return pF(r.splitter,r.fields,r.commands)}function e(r,s){return En.filterString(r)&&En.filterString(s)&&QQ.configurationErrorTask("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}}kn.default=eX});var yF=h(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.MergeSummaryDetail=so.MergeSummaryConflict=void 0;var mF=class{constructor(e,r=null,s){this.reason=e,this.file=r,this.meta=s}toString(){return`${this.file}:${this.reason}`}};so.MergeSummaryConflict=mF;var gF=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(", ")}`:"OK"}};so.MergeSummaryDetail=gF});var bF=h(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.PullSummary=void 0;var vF=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}};kd.PullSummary=vF});var wF=h(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.remoteMessagesObjectParsers=void 0;var Ei=oe();function j0(t){return t.objects=t.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function _F(t){let e=/^\s*(\d+)/.exec(t),r=/delta (\d+)/i.exec(t);return{count:Ei.asNumber(e&&e[1]||"0"),delta:Ei.asNumber(r&&r[1]||"0")}}Dd.remoteMessagesObjectParsers=[new Ei.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(t,[e,r])=>{let s=e.toLowerCase(),i=j0(t.remoteMessages);Object.assign(i,{[s]:Ei.asNumber(r)})}),new Ei.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(t,[e,r])=>{let s=e.toLowerCase(),i=j0(t.remoteMessages);Object.assign(i,{[s]:Ei.asNumber(r)})}),new Ei.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(t,[e,r,s])=>{let i=j0(t.remoteMessages);i.total=_F(e),i.reused=_F(r),i.packReused=Ei.asNumber(s)})]});var M0=h(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.RemoteMessageSummary=io.parseRemoteMessages=void 0;var il=oe(),tX=wF(),rX=[new il.RemoteLineParser(/^remote:\s*(.+)$/,(t,[e])=>(t.remoteMessages.all.push(e.trim()),!1)),...tX.remoteMessagesObjectParsers,new il.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(t,[e])=>{t.remoteMessages.pullRequestUrl=e}),new il.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(t,[e,r,s])=>{t.remoteMessages.vulnerabilities={count:il.asNumber(e),summary:r,url:s}})];function sX(t,e){return il.parseStringResponse({remoteMessages:new I0},rX,e)}io.parseRemoteMessages=sX;var I0=class{constructor(){this.all=[]}};io.RemoteMessageSummary=I0});var N0=h(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.parsePullResult=Dn.parsePullDetail=void 0;var EF=bF(),no=oe(),iX=M0(),nX=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,aX=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,oX=/^(create|delete) mode \d+ (.+)/,uX=[new no.LineParser(nX,(t,[e,r,s])=>{t.files.push(e),r&&(t.insertions[e]=r.length),s&&(t.deletions[e]=s.length)}),new no.LineParser(aX,(t,[e,,r,,s])=>r!==void 0||s!==void 0?(t.summary.changes=+e||0,t.summary.insertions=+r||0,t.summary.deletions=+s||0,!0):!1),new no.LineParser(oX,(t,[e,r])=>{no.append(t.files,r),no.append(e==="create"?t.created:t.deleted,r)})],lX=(t,e)=>no.parseStringResponse(new EF.PullSummary,uX,t,e);Dn.parsePullDetail=lX;var cX=(t,e)=>Object.assign(new EF.PullSummary,Dn.parsePullDetail(t,e),iX.parseRemoteMessages(t,e));Dn.parsePullResult=cX});var kF=h(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.parseMergeDetail=Cn.parseMergeResult=void 0;var Cd=yF(),ao=oe(),fX=N0(),dX=[new ao.LineParser(/^Auto-merging\s+(.+)$/,(t,[e])=>{t.merges.push(e)}),new ao.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(t,[e,r])=>{t.conflicts.push(new Cd.MergeSummaryConflict(e,r))}),new ao.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(t,[e,r,s])=>{t.conflicts.push(new Cd.MergeSummaryConflict(e,r,{deleteRef:s}))}),new ao.LineParser(/^CONFLICT\s+\((.+)\):/,(t,[e])=>{t.conflicts.push(new Cd.MergeSummaryConflict(e,null))}),new ao.LineParser(/^Automatic merge failed;\s+(.+)$/,(t,[e])=>{t.result=e})],hX=(t,e)=>Object.assign(Cn.parseMergeDetail(t,e),fX.parsePullResult(t,e));Cn.parseMergeResult=hX;var pX=t=>ao.parseStringResponse(new Cd.MergeSummaryDetail,dX,t);Cn.parseMergeDetail=pX});var DF=h(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.mergeTask=void 0;var mX=La(),gX=kF(),yX=Ft();function vX(t){return t.length?{commands:["merge",...t],format:"utf-8",parser(e,r){let s=gX.parseMergeResult(e,r);if(s.failed)throw new mX.GitResponseError(s);return s}}:yX.configurationErrorTask("Git.merge requires at least one option")}Sd.mergeTask=vX});var CF=h(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.parsePushDetail=Sn.parsePushResult=void 0;var oo=oe(),bX=M0();function _X(t,e,r){let s=r.includes("deleted"),i=r.includes("tag")||/^refs\/tags/.test(t),n=!r.includes("new");return{deleted:s,tag:i,branch:!i,new:!n,alreadyUpdated:n,local:t,remote:e}}var wX=[new oo.LineParser(/^Pushing to (.+)$/,(t,[e])=>{t.repo=e}),new oo.LineParser(/^updating local tracking ref '(.+)'/,(t,[e])=>{t.ref=Object.assign(Object.assign({},t.ref||{}),{local:e})}),new oo.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,(t,[e,r,s])=>{t.pushed.push(_X(e,r,s))}),new oo.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(t,[e,r,s])=>{t.branch=Object.assign(Object.assign({},t.branch||{}),{local:e,remote:r,remoteName:s})}),new oo.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(t,[e,r,s,i])=>{t.update={head:{local:e,remote:r},hash:{from:s,to:i}}})],EX=(t,e)=>{let r=Sn.parsePushDetail(t,e),s=bX.parseRemoteMessages(t,e);return Object.assign(Object.assign({},r),s)};Sn.parsePushResult=EX;var kX=(t,e)=>oo.parseStringResponse({pushed:[]},wX,t,e);Sn.parsePushDetail=kX});var q0=h(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.pushTask=uo.pushTagsTask=void 0;var DX=CF(),xd=oe();function CX(t={},e){return xd.append(e,"--tags"),SF(t,e)}uo.pushTagsTask=CX;function SF(t={},e){let r=["push",...e];return t.branch&&r.splice(1,0,t.branch),t.remote&&r.splice(1,0,t.remote),xd.remove(r,"-v"),xd.append(r,"--verbose"),xd.append(r,"--porcelain"),{commands:r,format:"utf-8",parser:DX.parsePushResult}}uo.pushTask=SF});var AF=h(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.FileStatusSummary=xn.fromPathRegex=void 0;xn.fromPathRegex=/^(.+) -> (.+)$/;var xF=class{constructor(e,r,s){if(this.path=e,this.index=r,this.working_dir=s,r+s==="R"){let i=xn.fromPathRegex.exec(e)||[null,e,e];this.from=i[1]||"",this.path=i[2]||""}}};xn.FileStatusSummary=xF});var TF=h(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.parseStatusSummary=lo.StatusSummary=void 0;var ot=oe(),SX=AF(),B0=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null}isClean(){return!this.files.length}};lo.StatusSummary=B0;var he;(function(t){t.ADDED="A",t.DELETED="D",t.MODIFIED="M",t.RENAMED="R",t.COPIED="C",t.UNMERGED="U",t.UNTRACKED="?",t.IGNORED="!",t.NONE=" "})(he||(he={}));function OF(t){let e=/^(.+) -> (.+)$/.exec(t);return e?{from:String(e[1]),to:String(e[2])}:{from:t,to:t}}function Dr(t,e,r){return[`${t}${e}`,r]}function L0(t,...e){return e.map(r=>Dr(t,r,(s,i)=>ot.append(s.conflicted,i)))}var xX=new Map([Dr(he.NONE,he.ADDED,(t,e)=>ot.append(t.created,e)),Dr(he.NONE,he.DELETED,(t,e)=>ot.append(t.deleted,e)),Dr(he.NONE,he.MODIFIED,(t,e)=>ot.append(t.modified,e)),Dr(he.ADDED,he.NONE,(t,e)=>ot.append(t.created,e)&&ot.append(t.staged,e)),Dr(he.ADDED,he.MODIFIED,(t,e)=>ot.append(t.created,e)&&ot.append(t.staged,e)&&ot.append(t.modified,e)),Dr(he.DELETED,he.NONE,(t,e)=>ot.append(t.deleted,e)&&ot.append(t.staged,e)),Dr(he.MODIFIED,he.NONE,(t,e)=>ot.append(t.modified,e)&&ot.append(t.staged,e)),Dr(he.MODIFIED,he.MODIFIED,(t,e)=>ot.append(t.modified,e)&&ot.append(t.staged,e)),Dr(he.RENAMED,he.NONE,(t,e)=>{ot.append(t.renamed,OF(e))}),Dr(he.RENAMED,he.MODIFIED,(t,e)=>{let r=OF(e);ot.append(t.renamed,r),ot.append(t.modified,r.to)}),Dr(he.UNTRACKED,he.UNTRACKED,(t,e)=>ot.append(t.not_added,e)),...L0(he.ADDED,he.ADDED,he.UNMERGED),...L0(he.DELETED,he.DELETED,he.UNMERGED),...L0(he.UNMERGED,he.ADDED,he.DELETED,he.UNMERGED),["##",(t,e)=>{let r=/ahead (\d+)/,s=/behind (\d+)/,i=/^(.+?(?=(?:\.{3}|\s|$)))/,n=/\.{3}(\S*)/,a=/\son\s([\S]+)$/,o;o=r.exec(e),t.ahead=o&&+o[1]||0,o=s.exec(e),t.behind=o&&+o[1]||0,o=i.exec(e),t.current=o&&o[1],o=n.exec(e),t.tracking=o&&o[1],o=a.exec(e),t.current=o&&o[1]||t.current}]]),AX=function(t){let e=t.trim().split(`
|
|
98
|
-
`),r=new B0;for(let s=0,i=e.length;s<i;s++)OX(r,e[s]);return r};lo.parseStatusSummary=AX;function OX(t,e){let r=e.trim();switch(" "){case r.charAt(2):return s(r.charAt(0),r.charAt(1),r.substr(3));case r.charAt(1):return s(he.NONE,r.charAt(0),r.substr(2));default:return}function s(i,n,a){let o=`${i}${n}`,u=xX.get(o);u&&u(t,a),o!=="##"&&t.files.push(new SX.FileStatusSummary(a,i,n))}}});var RF=h(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.statusTask=void 0;var TX=TF();function RX(t){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...t],parser(e){return TX.parseStatusSummary(e)}}}Ad.statusTask=RX});var FF=h(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.SimpleGitApi=void 0;var PX=iF(),PF=nF(),$X=D0(),FX=C0(),jX=aF(),IX=lF(),MX=F0(),$F=DF(),NX=q0(),qX=RF(),Od=Ft(),Ke=oe(),H0=class{constructor(e){this._executor=e}_runTask(e,r){let s=this._executor.chain(),i=s.push(e);return r&&PX.taskCallback(e,i,r),Object.create(this,{then:{value:i.then.bind(i)},catch:{value:i.catch.bind(i)},_executor:{value:s}})}add(e){return this._runTask(Od.straightThroughStringTask(["add",...Ke.asArray(e)]),Ke.trailingFunctionArgument(arguments))}cwd(e){let r=Ke.trailingFunctionArgument(arguments);return typeof e=="string"?this._runTask(PF.changeWorkingDirectoryTask(e,this._executor),r):typeof(e==null?void 0:e.path)=="string"?this._runTask(PF.changeWorkingDirectoryTask(e.path,e.root&&this._executor||void 0),r):this._runTask(Od.configurationErrorTask("Git.cwd: workingDirectory must be supplied as a string"),r)}hashObject(e,r){return this._runTask(jX.hashObjectTask(e,r===!0),Ke.trailingFunctionArgument(arguments))}init(e){return this._runTask(IX.initTask(e===!0,this._executor.cwd,Ke.getTrailingOptions(arguments)),Ke.trailingFunctionArgument(arguments))}merge(){return this._runTask($F.mergeTask(Ke.getTrailingOptions(arguments)),Ke.trailingFunctionArgument(arguments))}mergeFromTo(e,r){return Ke.filterString(e)&&Ke.filterString(r)?this._runTask($F.mergeTask([e,r,...Ke.getTrailingOptions(arguments)]),Ke.trailingFunctionArgument(arguments,!1)):this._runTask(Od.configurationErrorTask("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"))}outputHandler(e){return this._executor.outputHandler=e,this}push(){let e=NX.pushTask({remote:Ke.filterType(arguments[0],Ke.filterString),branch:Ke.filterType(arguments[1],Ke.filterString)},Ke.getTrailingOptions(arguments));return this._runTask(e,Ke.trailingFunctionArgument(arguments))}stash(){return this._runTask(Od.straightThroughStringTask(["stash",...Ke.getTrailingOptions(arguments)]),Ke.trailingFunctionArgument(arguments))}status(){return this._runTask(qX.statusTask(Ke.getTrailingOptions(arguments)),Ke.trailingFunctionArgument(arguments))}};Td.SimpleGitApi=H0;Object.assign(H0.prototype,$X.default(),FX.default(),MX.default())});var IF=h(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.Scheduler=void 0;var U0=oe(),BX=T0(),LX=fd(),HX=(()=>{let t=0;return()=>{t++;let{promise:e,done:r}=BX.createDeferred();return{promise:e,done:r,id:t}}})(),jF=class{constructor(e=2){this.concurrency=e,this.logger=LX.createLogger("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){this.logger("Schedule attempt ignored, pending=%s running=%s concurrency=%s",this.pending.length,this.running.length,this.concurrency);return}let e=U0.append(this.running,this.pending.shift());this.logger("Attempting id=%s",e.id),e.done(()=>{this.logger("Completing id=",e.id),U0.remove(this.running,e),this.schedule()})}next(){let{promise:e,id:r}=U0.append(this.pending,HX());return this.logger("Scheduling id=%s",r),this.schedule(),e}};Rd.Scheduler=jF});var MF=h(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.applyPatchTask=void 0;var UX=Ft();function GX(t,e){return UX.straightThroughStringTask(["apply",...e,...t])}Pd.applyPatchTask=GX});var qF=h(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.isSingleBranchDeleteFailure=ls.branchDeletionFailure=ls.branchDeletionSuccess=ls.BranchDeletionBatch=void 0;var NF=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}};ls.BranchDeletionBatch=NF;function VX(t,e){return{branch:t,hash:e,success:!0}}ls.branchDeletionSuccess=VX;function zX(t){return{branch:t,hash:null,success:!1}}ls.branchDeletionFailure=zX;function WX(t){return t.success}ls.isSingleBranchDeleteFailure=WX});var LF=h(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.hasBranchDeletionError=co.parseBranchDeletions=void 0;var G0=qF(),$d=oe(),KX=/(\S+)\s+\(\S+\s([^)]+)\)/,BF=/^error[^']+'([^']+)'/m,YX=[new $d.LineParser(KX,(t,[e,r])=>{let s=G0.branchDeletionSuccess(e,r);t.all.push(s),t.branches[e]=s}),new $d.LineParser(BF,(t,[e])=>{let r=G0.branchDeletionFailure(e);t.errors.push(r),t.all.push(r),t.branches[e]=r})],JX=(t,e)=>$d.parseStringResponse(new G0.BranchDeletionBatch,YX,t,e);co.parseBranchDeletions=JX;function QX(t,e){return e===$d.ExitCodes.ERROR&&BF.test(t)}co.hasBranchDeletionError=QX});var UF=h(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.BranchSummaryResult=void 0;var HF=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(e,r,s,i,n){e&&(this.detached=r,this.current=s),this.all.push(s),this.branches[s]={current:e,name:s,commit:i,label:n}}};Fd.BranchSummaryResult=HF});var GF=h(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.parseBranchSummary=void 0;var XX=UF(),V0=oe(),ZX=[new V0.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(t,[e,r,s,i])=>{t.push(!!e,!0,r,s,i)}),new V0.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/s,(t,[e,r,s,i])=>{t.push(!!e,!1,r,s,i)})];function eZ(t){return V0.parseStringResponse(new XX.BranchSummaryResult,ZX,t)}jd.parseBranchSummary=eZ});var KF=h(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.deleteBranchTask=Cr.deleteBranchesTask=Cr.branchLocalTask=Cr.branchTask=Cr.containsDeleteBranchCommand=void 0;var tZ=La(),nl=LF(),VF=GF(),zF=oe();function WF(t){let e=["-d","-D","--delete"];return t.some(r=>e.includes(r))}Cr.containsDeleteBranchCommand=WF;function rZ(t){let e=WF(t),r=["branch",...t];return r.length===1&&r.push("-a"),r.includes("-v")||r.splice(1,0,"-v"),{format:"utf-8",commands:r,parser(s,i){return e?nl.parseBranchDeletions(s,i).all[0]:VF.parseBranchSummary(s)}}}Cr.branchTask=rZ;function sZ(){let t=VF.parseBranchSummary;return{format:"utf-8",commands:["branch","-v"],parser:t}}Cr.branchLocalTask=sZ;function iZ(t,e=!1){return{format:"utf-8",commands:["branch","-v",e?"-D":"-d",...t],parser(r,s){return nl.parseBranchDeletions(r,s)},onError({exitCode:r,stdOut:s},i,n,a){if(!nl.hasBranchDeletionError(String(i),r))return a(i);n(s)}}}Cr.deleteBranchesTask=iZ;function nZ(t,e=!1){let r={format:"utf-8",commands:["branch","-v",e?"-D":"-d",t],parser(s,i){return nl.parseBranchDeletions(s,i).branches[t]},onError({exitCode:s,stdErr:i,stdOut:n},a,o,u){if(!nl.hasBranchDeletionError(String(a),s))return u(a);throw new tZ.GitResponseError(r.parser(zF.bufferToString(n),zF.bufferToString(i)),String(a))}};return r}Cr.deleteBranchTask=nZ});var YF=h(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.parseCheckIgnore=void 0;var aZ=t=>t.split(/\n/g).map(e=>e.trim()).filter(e=>!!e);Id.parseCheckIgnore=aZ});var JF=h(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.checkIgnoreTask=void 0;var oZ=YF();function uZ(t){return{commands:["check-ignore",...t],format:"utf-8",parser:oZ.parseCheckIgnore}}Md.checkIgnoreTask=uZ});var XF=h(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.cloneMirrorTask=fo.cloneTask=void 0;var lZ=Ft(),cZ=oe();function QF(t,e,r){let s=["clone",...r];return typeof t=="string"&&s.push(t),typeof e=="string"&&s.push(e),lZ.straightThroughStringTask(s)}fo.cloneTask=QF;function fZ(t,e,r){return cZ.append(r,"--mirror"),QF(t,e,r)}fo.cloneMirrorTask=fZ});var ZF=h(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.parseCommitResult=void 0;var al=oe(),dZ=[new al.LineParser(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(t,[e,r,s])=>{t.branch=e,t.commit=s,t.root=!!r}),new al.LineParser(/\s*Author:\s(.+)/i,(t,[e])=>{let r=e.split("<"),s=r.pop();!s||!s.includes("@")||(t.author={email:s.substr(0,s.length-1),name:r.join("<").trim()})}),new al.LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(t,[e,r,s])=>{t.summary.changes=parseInt(e,10)||0,t.summary.insertions=parseInt(r,10)||0,t.summary.deletions=parseInt(s,10)||0}),new al.LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(t,[e,r,s])=>{t.summary.changes=parseInt(e,10)||0;let i=parseInt(r,10)||0;s==="-"?t.summary.deletions=i:s==="+"&&(t.summary.insertions=i)})];function hZ(t){let e={author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}};return al.parseStringResponse(e,dZ,t)}Nd.parseCommitResult=hZ});var ej=h(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.commitTask=void 0;var pZ=ZF();function mZ(t,e,r){let s=["commit"];return t.forEach(i=>s.push("-m",i)),s.push(...e,...r),{commands:s,format:"utf-8",parser:pZ.parseCommitResult}}qd.commitTask=mZ});var tj=h(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.diffSummaryTask=void 0;var gZ=R0();function yZ(t){return{commands:["diff","--stat=4096",...t],format:"utf-8",parser(e){return gZ.parseDiffResult(e)}}}Bd.diffSummaryTask=yZ});var rj=h(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.parseFetchResult=void 0;var Ld=oe(),vZ=[new Ld.LineParser(/From (.+)$/,(t,[e])=>{t.remote=e}),new Ld.LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(t,[e,r])=>{t.branches.push({name:e,tracking:r})}),new Ld.LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(t,[e,r])=>{t.tags.push({name:e,tracking:r})})];function bZ(t,e){let r={raw:t,remote:null,branches:[],tags:[]};return Ld.parseStringResponse(r,vZ,t,e)}Hd.parseFetchResult=bZ});var sj=h(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.fetchTask=void 0;var _Z=rj();function wZ(t,e,r){let s=["fetch",...r];return t&&e&&s.push(t,e),{commands:s,format:"utf-8",parser:_Z.parseFetchResult}}Ud.fetchTask=wZ});var nj=h(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.parseMoveResult=void 0;var ij=oe(),EZ=[new ij.LineParser(/^Renaming (.+) to (.+)$/,(t,[e,r])=>{t.moves.push({from:e,to:r})})];function kZ(t){return ij.parseStringResponse({moves:[]},EZ,t)}Gd.parseMoveResult=kZ});var aj=h(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.moveTask=void 0;var DZ=nj(),CZ=oe();function SZ(t,e){return{commands:["mv","-v",...CZ.asArray(t),e],format:"utf-8",parser:DZ.parseMoveResult}}Vd.moveTask=SZ});var oj=h(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.pullTask=void 0;var xZ=N0();function AZ(t,e,r){let s=["pull",...r];return t&&e&&s.splice(1,0,t,e),{commands:s,format:"utf-8",parser(i,n){return xZ.parsePullResult(i,n)}}}zd.pullTask=AZ});var lj=h(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.parseGetRemotesVerbose=ho.parseGetRemotes=void 0;var OZ=oe();function TZ(t){let e={};return uj(t,([r])=>e[r]={name:r}),Object.values(e)}ho.parseGetRemotes=TZ;function RZ(t){let e={};return uj(t,([r,s,i])=>{e.hasOwnProperty(r)||(e[r]={name:r,refs:{fetch:"",push:""}}),i&&s&&(e[r].refs[i.replace(/[^a-z]/g,"")]=s)}),Object.values(e)}ho.parseGetRemotesVerbose=RZ;function uj(t,e){OZ.forEachLineWithContent(t,r=>e(r.split(/\s+/)))}});var fj=h(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.removeRemoteTask=Sr.remoteTask=Sr.listRemotesTask=Sr.getRemotesTask=Sr.addRemoteTask=void 0;var cj=lj(),Wd=Ft();function PZ(t,e,r=[]){return Wd.straightThroughStringTask(["remote","add",...r,t,e])}Sr.addRemoteTask=PZ;function $Z(t){let e=["remote"];return t&&e.push("-v"),{commands:e,format:"utf-8",parser:t?cj.parseGetRemotesVerbose:cj.parseGetRemotes}}Sr.getRemotesTask=$Z;function FZ(t=[]){let e=[...t];return e[0]!=="ls-remote"&&e.unshift("ls-remote"),Wd.straightThroughStringTask(e)}Sr.listRemotesTask=FZ;function jZ(t=[]){let e=[...t];return e[0]!=="remote"&&e.unshift("remote"),Wd.straightThroughStringTask(e)}Sr.remoteTask=jZ;function IZ(t){return Wd.straightThroughStringTask(["remote","remove",t])}Sr.removeRemoteTask=IZ});var dj=h(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.stashListTask=void 0;var MZ=P0(),NZ=F0();function qZ(t={},e){let r=NZ.parseLogOptions(t),s=MZ.createListLogSummaryParser(r.splitter,r.fields);return{commands:["stash","list",...r.commands,...e],format:"utf-8",parser:s}}Kd.stashListTask=qZ});var hj=h(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.updateSubModuleTask=cs.subModuleTask=cs.initSubModuleTask=cs.addSubModuleTask=void 0;var BZ=Ft();function LZ(t,e){return Yd(["add",t,e])}cs.addSubModuleTask=LZ;function HZ(t){return Yd(["init",...t])}cs.initSubModuleTask=HZ;function Yd(t){let e=[...t];return e[0]!=="submodule"&&e.unshift("submodule"),BZ.straightThroughStringTask(e)}cs.subModuleTask=Yd;function UZ(t){return Yd(["update",...t])}cs.updateSubModuleTask=UZ});var mj=h(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.parseTagList=po.TagList=void 0;var z0=class{constructor(e,r){this.all=e,this.latest=r}};po.TagList=z0;var GZ=function(t,e=!1){let r=t.split(`
|
|
99
|
-
`).map(zZ).filter(Boolean);e||r.sort(function(i,n){let a=i.split("."),o=n.split(".");if(a.length===1||o.length===1)return VZ(Jd(a[0]),Jd(o[0]));for(let u=0,l=Math.max(a.length,o.length);u<l;u++){let c=pj(Jd(a[u]),Jd(o[u]));if(c)return c}return 0});let s=e?r[0]:[...r].reverse().find(i=>i.indexOf(".")>=0);return new z0(r,s)};po.parseTagList=GZ;function VZ(t,e){let r=isNaN(t),s=isNaN(e);return r!==s?r?1:-1:r?pj(t,e):0}function pj(t,e){return t===e?0:t>e?1:-1}function zZ(t){return t.trim()}function Jd(t){return typeof t=="string"&&parseInt(t.replace(/^\D+/g,""),10)||0}});var gj=h(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.addAnnotatedTagTask=ki.addTagTask=ki.tagListTask=void 0;var WZ=mj();function KZ(t=[]){let e=t.some(r=>/^--sort=/.test(r));return{format:"utf-8",commands:["tag","-l",...t],parser(r){return WZ.parseTagList(r,e)}}}ki.tagListTask=KZ;function YZ(t){return{format:"utf-8",commands:["tag",t],parser(){return{name:t}}}}ki.addTagTask=YZ;function JZ(t,e){return{format:"utf-8",commands:["tag","-a","-m",e,t],parser(){return{name:t}}}}ki.addAnnotatedTagTask=JZ});var _j=h((Che,bj)=>{var{GitExecutor:QZ}=rF(),{SimpleGitApi:XZ}=FF(),{Scheduler:ZZ}=IF(),{GitLogger:eee}=fd(),{configurationErrorTask:mo}=Ft(),{asArray:go,filterArray:yj,filterPrimitives:tee,filterString:Di,filterStringOrStringArray:Qd,filterType:Vr,getTrailingOptions:Ne,trailingFunctionArgument:Q,trailingOptionsArgument:ree}=oe(),{applyPatchTask:see}=MF(),{branchTask:iee,branchLocalTask:nee,deleteBranchesTask:aee,deleteBranchTask:oee}=KF(),{checkIgnoreTask:uee}=JF(),{checkIsRepoTask:lee}=g0(),{cloneTask:cee,cloneMirrorTask:fee}=XF(),{cleanWithOptionsTask:dee,isCleanOptionsArray:hee}=b0(),{commitTask:pee}=ej(),{diffSummaryTask:mee}=tj(),{fetchTask:gee}=sj(),{moveTask:yee}=aj(),{pullTask:vee}=oj(),{pushTagsTask:bee}=q0(),{addRemoteTask:_ee,getRemotesTask:wee,listRemotesTask:Eee,remoteTask:kee,removeRemoteTask:Dee}=fj(),{getResetMode:Cee,resetTask:See}=x0(),{stashListTask:xee}=dj(),{addSubModuleTask:Aee,initSubModuleTask:Oee,subModuleTask:Tee,updateSubModuleTask:Ree}=hj(),{addAnnotatedTagTask:Pee,addTagTask:$ee,tagListTask:Fee}=gj(),{straightThroughBufferTask:jee,straightThroughStringTask:xr}=Ft();function G(t,e){this._executor=new QZ(t.binary,t.baseDir,new ZZ(t.maxConcurrentProcesses),e),this._logger=new eee}(G.prototype=Object.create(XZ.prototype)).constructor=G;G.prototype._logger=null;G.prototype.customBinary=function(t){return this._executor.binary=t,this};G.prototype.env=function(t,e){return arguments.length===1&&typeof t=="object"?this._executor.env=t:(this._executor.env=this._executor.env||{})[t]=e,this};G.prototype.stashList=function(t){return this._runTask(xee(ree(arguments)||{},yj(t)&&t||[]),Q(arguments))};function vj(t,e,r,s){return typeof r!="string"?mo(`git.${t}() requires a string 'repoPath'`):e(r,Vr(s,Di),Ne(arguments))}G.prototype.clone=function(){return this._runTask(vj("clone",cee,...arguments),Q(arguments))};G.prototype.mirror=function(){return this._runTask(vj("mirror",fee,...arguments),Q(arguments))};G.prototype.mv=function(t,e){return this._runTask(yee(t,e),Q(arguments))};G.prototype.checkoutLatestTag=function(t){var e=this;return this.pull(function(){e.tags(function(r,s){e.checkout(s.latest,t)})})};G.prototype.commit=function(t,e,r,s){let i=Q(arguments),n=[];return Qd(t)?n.push(...go(t)):console.warn("simple-git deprecation notice: git.commit: requires the commit message to be supplied as a string/string[], this will be an error in version 3"),this._runTask(pee(n,go(Vr(e,Qd,[])),[...Vr(r,yj,[]),...Ne(arguments,0,!0)]),i)};G.prototype.pull=function(t,e,r,s){return this._runTask(vee(Vr(t,Di),Vr(e,Di),Ne(arguments)),Q(arguments))};G.prototype.fetch=function(t,e){return this._runTask(gee(Vr(t,Di),Vr(e,Di),Ne(arguments)),Q(arguments))};G.prototype.silent=function(t){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this._logger.silent(!!t),this};G.prototype.tags=function(t,e){return this._runTask(Fee(Ne(arguments)),Q(arguments))};G.prototype.rebase=function(){return this._runTask(xr(["rebase",...Ne(arguments)]),Q(arguments))};G.prototype.reset=function(t){return this._runTask(See(Cee(t),Ne(arguments)),Q(arguments))};G.prototype.revert=function(t){let e=Q(arguments);return typeof t!="string"?this._runTask(mo("Commit must be a string"),e):this._runTask(xr(["revert",...Ne(arguments,0,!0),t]),e)};G.prototype.addTag=function(t){let e=typeof t=="string"?$ee(t):mo("Git.addTag requires a tag name");return this._runTask(e,Q(arguments))};G.prototype.addAnnotatedTag=function(t,e){return this._runTask(Pee(t,e),Q(arguments))};G.prototype.checkout=function(){let t=["checkout",...Ne(arguments,!0)];return this._runTask(xr(t),Q(arguments))};G.prototype.checkoutBranch=function(t,e,r){return this.checkout(["-b",t,e],Q(arguments))};G.prototype.checkoutLocalBranch=function(t,e){return this.checkout(["-b",t],Q(arguments))};G.prototype.deleteLocalBranch=function(t,e,r){return this._runTask(oee(t,typeof e=="boolean"?e:!1),Q(arguments))};G.prototype.deleteLocalBranches=function(t,e,r){return this._runTask(aee(t,typeof e=="boolean"?e:!1),Q(arguments))};G.prototype.branch=function(t,e){return this._runTask(iee(Ne(arguments)),Q(arguments))};G.prototype.branchLocal=function(t){return this._runTask(nee(),Q(arguments))};G.prototype.raw=function(t){let e=!Array.isArray(t),r=[].slice.call(e?arguments:t,0);for(let i=0;i<r.length&&e;i++)if(!tee(r[i])){r.splice(i,r.length-i);break}r.push(...Ne(arguments,0,!0));var s=Q(arguments);return r.length?this._runTask(xr(r),s):this._runTask(mo("Raw: must supply one or more command to execute"),s)};G.prototype.submoduleAdd=function(t,e,r){return this._runTask(Aee(t,e),Q(arguments))};G.prototype.submoduleUpdate=function(t,e){return this._runTask(Ree(Ne(arguments,!0)),Q(arguments))};G.prototype.submoduleInit=function(t,e){return this._runTask(Oee(Ne(arguments,!0)),Q(arguments))};G.prototype.subModule=function(t,e){return this._runTask(Tee(Ne(arguments)),Q(arguments))};G.prototype.listRemote=function(){return this._runTask(Eee(Ne(arguments)),Q(arguments))};G.prototype.addRemote=function(t,e,r){return this._runTask(_ee(t,e,Ne(arguments)),Q(arguments))};G.prototype.removeRemote=function(t,e){return this._runTask(Dee(t),Q(arguments))};G.prototype.getRemotes=function(t,e){return this._runTask(wee(t===!0),Q(arguments))};G.prototype.remote=function(t,e){return this._runTask(kee(Ne(arguments)),Q(arguments))};G.prototype.tag=function(t,e){let r=Ne(arguments);return r[0]!=="tag"&&r.unshift("tag"),this._runTask(xr(r),Q(arguments))};G.prototype.updateServerInfo=function(t){return this._runTask(xr(["update-server-info"]),Q(arguments))};G.prototype.pushTags=function(t,e){let r=bee({remote:Vr(t,Di)},Ne(arguments));return this._runTask(r,Q(arguments))};G.prototype.rm=function(t){return this._runTask(xr(["rm","-f",...go(t)]),Q(arguments))};G.prototype.rmKeepLocal=function(t){return this._runTask(xr(["rm","--cached",...go(t)]),Q(arguments))};G.prototype.catFile=function(t,e){return this._catFile("utf-8",arguments)};G.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)};G.prototype._catFile=function(t,e){var r=Q(e),s=["cat-file"],i=e[0];if(typeof i=="string")return this._runTask(mo("Git.catFile: options must be supplied as an array of strings"),r);Array.isArray(i)&&s.push.apply(s,i);let n=t==="buffer"?jee(s):xr(s);return this._runTask(n,r)};G.prototype.diff=function(t,e){let r=["diff",...Ne(arguments)];return typeof t=="string"&&(r.splice(1,0,t),this._logger.warn("Git#diff: supplying options as a single string is now deprecated, switch to an array of strings")),this._runTask(xr(r),Q(arguments))};G.prototype.diffSummary=function(){return this._runTask(mee(Ne(arguments,1)),Q(arguments))};G.prototype.applyPatch=function(t){let e=Qd(t)?see(go(t),Ne([].slice.call(arguments,1))):mo("git.applyPatch requires one or more string patches as the first argument");return this._runTask(e,Q(arguments))};G.prototype.revparse=function(){let t=["rev-parse",...Ne(arguments,!0)];return this._runTask(xr(t,!0),Q(arguments))};G.prototype.show=function(t,e){return this._runTask(xr(["show",...Ne(arguments,1)]),Q(arguments))};G.prototype.clean=function(t,e,r){let s=hee(t),i=s&&t.join("")||Vr(t,Di)||"",n=Ne([].slice.call(arguments,s?1:0));return this._runTask(dee(i,n),Q(arguments))};G.prototype.exec=function(t){let e={commands:[],format:"utf-8",parser(){typeof t=="function"&&t()}};return this._runTask(e)};G.prototype.clearQueue=function(){return this};G.prototype.checkIgnore=function(t,e){return this._runTask(uee(go(Vr(t,Qd,[]))),Q(arguments))};G.prototype.checkIsRepo=function(t,e){return this._runTask(lee(Vr(t,Di)),Q(arguments))};bj.exports=G});var W0=h(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.gitInstanceFactory=Ci.gitExportFactory=Ci.esModuleFactory=void 0;var wj=T$(),$s=G$(),Ej=oe(),Iee=_j();function Mee(t){return Object.defineProperties(t,{__esModule:{value:!0},default:{value:t}})}Ci.esModuleFactory=Mee;function Nee(t,e){return Object.assign(function(...r){return t.apply(null,r)},wj.default,e||{})}Ci.gitExportFactory=Nee;function qee(t,e){let r=new $s.PluginStore,s=Ej.createInstanceConfig(t&&(typeof t=="string"?{baseDir:t}:t)||{},e);if(!Ej.folderExists(s.baseDir))throw new wj.default.GitConstructError(s,"Cannot use simple-git on a directory that does not exist");return Array.isArray(s.config)&&r.add($s.commandConfigPrefixingPlugin(s.config)),r.add($s.completionDetectionPlugin(s.completion)),s.progress&&r.add($s.progressMonitorPlugin(s.progress)),s.timeout&&r.add($s.timeoutPlugin(s.timeout)),s.spawnOptions&&r.add($s.spawnOptionsPlugin(s.spawnOptions)),r.add($s.errorDetectionPlugin($s.errorDetectionHandler(!0))),s.errors&&r.add($s.errorDetectionPlugin(s.errors)),new Iee(s,r)}Ci.gitInstanceFactory=qee});var Dj=h(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.gitP=void 0;var Bee=La(),Lee=W0(),Hee=["customBinary","env","outputHandler","silent"],kj=["add","addAnnotatedTag","addConfig","addRemote","addTag","applyPatch","binaryCatFile","branch","branchLocal","catFile","checkIgnore","checkIsRepo","checkout","checkoutBranch","checkoutLatestTag","checkoutLocalBranch","clean","clone","commit","cwd","deleteLocalBranch","deleteLocalBranches","diff","diffSummary","exec","fetch","getRemotes","init","listConfig","listRemote","log","merge","mergeFromTo","mirror","mv","pull","push","pushTags","raw","rebase","remote","removeRemote","reset","revert","revparse","rm","rmKeepLocal","show","stash","stashList","status","subModule","submoduleAdd","submoduleInit","submoduleUpdate","tag","tags","updateServerInfo"];function Uee(...t){let e,r=Promise.resolve();try{e=Lee.gitInstanceFactory(...t)}catch(u){r=Promise.reject(u)}function s(){return n}function i(){return r}let n=[...Hee,...kj].reduce((u,l)=>{let c=kj.includes(l),f=c?a(l,e):o(l,e,u);return Object.defineProperty(u,l,{enumerable:!1,configurable:!1,value:e?f:c?i:s}),u},{});return n;function a(u,l){return function(...c){if(typeof c[c.length]=="function")throw new TypeError("Promise interface requires that handlers are not supplied inline, trailing function not allowed in call to "+u);return r.then(function(){return new Promise(function(f,d){let m=(p,g)=>{if(p)return d(Gee(p));f(g)};c.push(m),l[u].apply(l,c)})})}}function o(u,l,c){return(...f)=>(l[u](...f),c)}}Xd.gitP=Uee;function Gee(t){return t instanceof Error?t:typeof t=="string"?new Error(t):new Bee.GitResponseError(t)}});var Sj=h((Ahe,Cj)=>{var{gitP:Vee}=Dj(),{esModuleFactory:zee,gitInstanceFactory:Wee,gitExportFactory:Kee}=W0();Cj.exports=zee(Kee(Wee,{gitP:Vee}))});var Bj=ue(qn());var aa=ue(qn());var _m=ue(require("esbuild")),ws=ue(Bs()),qt=ue(require("path")),L1=ue(require("ts-morph")),H1=ue(Dw());var WN=ue(Bs());function Cw(){return{name:"native-node-modules",setup(t){t.onResolve({filter:/\.node$/,namespace:"file"},r=>({path:require.resolve(r.path,{paths:[r.resolveDir]}),namespace:"node-file"})),t.onLoad({filter:/.*/,namespace:"node-file"},r=>({contents:`
|
|
91
|
+
`+n),t.push(i+"m+"+Qf.exports.humanize(this.diff)+"[0m")}else t[0]=gY()+e+" "+t[0]}function gY(){return xt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function yY(...t){return process.stderr.write(Jf.format(...t)+`
|
|
92
|
+
`)}function vY(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function bY(){return process.env.DEBUG}function _Y(t){t.inspectOpts={};let e=Object.keys(xt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=xt.inspectOpts[e[r]]}Qf.exports=u0()(xt);var{formatters:e$}=Qf.exports;e$.o=function(t){return this.inspectOpts.colors=this.useColors,Jf.inspect(t,this.inspectOpts).split(`
|
|
93
|
+
`).map(e=>e.trim()).join(" ")};e$.O=function(t){return this.inspectOpts.colors=this.useColors,Jf.inspect(t,this.inspectOpts)}});var d0=h((Zfe,f0)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?f0.exports=KP():f0.exports=t$()});var r$=h(or=>{"use strict";var wY=or&&or.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(or,"__esModule",{value:!0});var EY=require("fs"),kY=wY(d0()),Va=kY.default("@kwsites/file-exists");function DY(t,e,r){Va("checking %s",t);try{let s=EY.statSync(t);return s.isFile()&&e?(Va("[OK] path represents a file"),!0):s.isDirectory()&&r?(Va("[OK] path represents a directory"),!0):(Va("[FAIL] path represents something other than a file or directory"),!1)}catch(s){if(s.code==="ENOENT")return Va("[FAIL] path is not accessible: %o",s),!1;throw Va("[FATAL] %o",s),s}}function CY(t,e=or.READABLE){return DY(t,(e&or.FILE)>0,(e&or.FOLDER)>0)}or.exists=CY;or.FILE=1;or.FOLDER=2;or.READABLE=or.FILE+or.FOLDER});var s$=h(Xf=>{"use strict";function SY(t){for(var e in t)Xf.hasOwnProperty(e)||(Xf[e]=t[e])}Object.defineProperty(Xf,"__esModule",{value:!0});SY(r$())});var Xu=h(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.delay=J.pick=J.bufferToString=J.prefixedArray=J.asNumber=J.asStringArray=J.asArray=J.objectToString=J.remove=J.including=J.append=J.folderExists=J.forEachLineWithContent=J.toLinesWithContent=J.last=J.first=J.splitOn=J.isUserFunction=J.asFunction=J.NOOP=J.NULL=void 0;var i$=s$();J.NULL="\0";var xY=()=>{};J.NOOP=xY;function AY(t){return typeof t=="function"?t:J.NOOP}J.asFunction=AY;function OY(t){return typeof t=="function"&&t!==J.NOOP}J.isUserFunction=OY;function TY(t,e){let r=t.indexOf(e);return r<=0?[t,""]:[t.substr(0,r),t.substr(r+1)]}J.splitOn=TY;function RY(t,e=0){return n$(t)&&t.length>e?t[e]:void 0}J.first=RY;function PY(t,e=0){if(n$(t)&&t.length>e)return t[t.length-1-e]}J.last=PY;function n$(t){return!!(t&&typeof t.length=="number")}function a$(t,e=!0,r=`
|
|
94
|
+
`){return t.split(r).reduce((s,i)=>{let n=e?i.trim():i;return n&&s.push(n),s},[])}J.toLinesWithContent=a$;function $Y(t,e){return a$(t,!0).map(r=>e(r))}J.forEachLineWithContent=$Y;function FY(t){return i$.exists(t,i$.FOLDER)}J.folderExists=FY;function jY(t,e){return Array.isArray(t)?t.includes(e)||t.push(e):t.add(e),e}J.append=jY;function IY(t,e){return Array.isArray(t)&&!t.includes(e)&&t.push(e),t}J.including=IY;function MY(t,e){if(Array.isArray(t)){let r=t.indexOf(e);r>=0&&t.splice(r,1)}else t.delete(e);return e}J.remove=MY;J.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function o$(t){return Array.isArray(t)?t:[t]}J.asArray=o$;function NY(t){return o$(t).map(String)}J.asStringArray=NY;function qY(t,e=0){if(t==null)return e;let r=parseInt(t,10);return isNaN(r)?e:r}J.asNumber=qY;function BY(t,e){let r=[];for(let s=0,i=t.length;s<i;s++)r.push(e,t[s]);return r}J.prefixedArray=BY;function LY(t){return(Array.isArray(t)?Buffer.concat(t):t).toString("utf-8")}J.bufferToString=LY;function HY(t,e){return Object.assign({},...e.map(r=>r in t?{[r]:t[r]}:{}))}J.pick=HY;function UY(t=0){return new Promise(e=>setTimeout(e,t))}J.delay=UY});var h0=h(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.filterHasLength=ze.filterFunction=ze.filterPlainObject=ze.filterStringOrStringArray=ze.filterStringArray=ze.filterString=ze.filterPrimitives=ze.filterArray=ze.filterType=void 0;var GY=Xu();function VY(t,e,r){return e(t)?t:arguments.length>2?r:void 0}ze.filterType=VY;var zY=t=>Array.isArray(t);ze.filterArray=zY;function WY(t,e){return/number|string|boolean/.test(typeof t)&&(!e||!e.includes(typeof t))}ze.filterPrimitives=WY;var KY=t=>typeof t=="string";ze.filterString=KY;var YY=t=>Array.isArray(t)&&t.every(ze.filterString);ze.filterStringArray=YY;var JY=t=>ze.filterString(t)||Array.isArray(t)&&t.every(ze.filterString);ze.filterStringOrStringArray=JY;function QY(t){return!!t&&GY.objectToString(t)==="[object Object]"}ze.filterPlainObject=QY;function XY(t){return typeof t=="function"}ze.filterFunction=XY;var ZY=t=>t==null||"number|boolean|function".includes(typeof t)?!1:Array.isArray(t)||typeof t=="string"||typeof t.length=="number";ze.filterHasLength=ZY});var u$=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.ExitCodes=void 0;var eJ;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.ERROR=1]="ERROR",t[t.UNCLEAN=128]="UNCLEAN"})(eJ=Zu.ExitCodes||(Zu.ExitCodes={}))});var l$=h(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.GitOutputStreams=void 0;var Zf=class{constructor(e,r){this.stdOut=e,this.stdErr=r}asStrings(){return new Zf(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}};ed.GitOutputStreams=Zf});var f$=h(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.RemoteLineParser=za.LineParser=void 0;var p0=class{constructor(e,r){this.matches=[],this.parse=(s,i)=>(this.resetMatches(),this._regExp.every((n,a)=>this.addMatch(n,a,s(a)))?this.useMatches(i,this.prepareMatches())!==!1:!1),this._regExp=Array.isArray(e)?e:[e],r&&(this.useMatches=r)}useMatches(e,r){throw new Error("LineParser:useMatches not implemented")}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,r,s){let i=s&&e.exec(s);return i&&this.pushMatch(r,i),!!i}pushMatch(e,r){this.matches.push(...r.slice(1))}};za.LineParser=p0;var c$=class extends p0{addMatch(e,r,s){return/^remote:\s/.test(String(s))&&super.addMatch(e,r,s)}pushMatch(e,r){(e>0||r.length>1)&&super.pushMatch(e,r)}};za.RemoteLineParser=c$});var d$=h(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.createInstanceConfig=void 0;var tJ={binary:"git",maxConcurrentProcesses:5,config:[]};function rJ(...t){let e=process.cwd(),r=Object.assign(Object.assign({baseDir:e},tJ),...t.filter(s=>typeof s=="object"&&s));return r.baseDir=r.baseDir||e,r}td.createInstanceConfig=rJ});var m$=h(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.trailingFunctionArgument=us.trailingOptionsArgument=us.getTrailingOptions=us.appendTaskOptions=void 0;var vn=h0(),bn=Xu();function h$(t,e=[]){return vn.filterPlainObject(t)?Object.keys(t).reduce((r,s)=>{let i=t[s];return vn.filterPrimitives(i,["boolean"])?r.push(s+"="+i):r.push(s),r},e):e}us.appendTaskOptions=h$;function sJ(t,e=0,r=!1){let s=[];for(let i=0,n=e<0?t.length:e;i<n;i++)"string|number".includes(typeof t[i])&&s.push(String(t[i]));return h$(p$(t),s),r||s.push(...iJ(t)),s}us.getTrailingOptions=sJ;function iJ(t){let e=typeof bn.last(t)=="function";return vn.filterType(bn.last(t,e?1:0),vn.filterArray,[])}function p$(t){let e=vn.filterFunction(bn.last(t));return vn.filterType(bn.last(t,e?1:0),vn.filterPlainObject)}us.trailingOptionsArgument=p$;function nJ(t,e=!0){let r=bn.asFunction(bn.last(t));return e||bn.isUserFunction(r)?r:void 0}us.trailingFunctionArgument=nJ});var g$=h(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.parseStringResponse=Wa.callTaskParser=void 0;var aJ=Xu();function oJ(t,e){return t(e.stdOut,e.stdErr)}Wa.callTaskParser=oJ;function uJ(t,e,...r){return r.forEach(s=>{for(let i=aJ.toLinesWithContent(s),n=0,a=i.length;n<a;n++){let o=(u=0)=>{if(!(n+u>=a))return i[n+u]};e.some(({parse:u})=>u(o,t))}}),t}Wa.parseStringResponse=uJ});var ue=h(Xt=>{"use strict";var lJ=Xt&&Xt.__createBinding||(Object.create?function(t,e,r,s){s===void 0&&(s=r),Object.defineProperty(t,s,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]}),vi=Xt&&Xt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&lJ(e,t,r)};Object.defineProperty(Xt,"__esModule",{value:!0});vi(h0(),Xt);vi(u$(),Xt);vi(l$(),Xt);vi(f$(),Xt);vi(d$(),Xt);vi(m$(),Xt);vi(g$(),Xt);vi(Xu(),Xt)});var y0=h(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.checkIsBareRepoTask=Gr.checkIsRepoRootTask=Gr.checkIsRepoTask=Gr.CheckRepoActions=void 0;var cJ=ue(),m0;(function(t){t.BARE="bare",t.IN_TREE="tree",t.IS_REPO_ROOT="root"})(m0=Gr.CheckRepoActions||(Gr.CheckRepoActions={}));var g0=({exitCode:t},e,r,s)=>{if(t===cJ.ExitCodes.UNCLEAN&&dJ(e))return r(Buffer.from("false"));s(e)},y$=t=>t.trim()==="true";function fJ(t){switch(t){case m0.BARE:return b$();case m0.IS_REPO_ROOT:return v$()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:g0,parser:y$}}Gr.checkIsRepoTask=fJ;function v$(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:g0,parser(e){return/^\.(git)?$/.test(e.trim())}}}Gr.checkIsRepoRootTask=v$;function b$(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:g0,parser:y$}}Gr.checkIsBareRepoTask=b$;function dJ(t){return/(Not a git repository|Kein Git-Repository)/i.test(String(t))}});var _$=h(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.cleanSummaryParser=Ka.CleanResponse=void 0;var hJ=ue(),v0=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}};Ka.CleanResponse=v0;var pJ=/^[a-z]+\s*/i,mJ=/^[a-z]+\s+[a-z]+\s*/i,gJ=/\/$/;function yJ(t,e){let r=new v0(t),s=t?mJ:pJ;return hJ.toLinesWithContent(e).forEach(i=>{let n=i.replace(s,"");r.paths.push(n),(gJ.test(n)?r.folders:r.files).push(n)}),r}Ka.cleanSummaryParser=yJ});var Ft=h(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.isEmptyTask=yt.isBufferTask=yt.straightThroughBufferTask=yt.straightThroughStringTask=yt.configurationErrorTask=yt.adhocExecTask=yt.EMPTY_COMMANDS=void 0;var vJ=o0();yt.EMPTY_COMMANDS=[];function bJ(t){return{commands:yt.EMPTY_COMMANDS,format:"empty",parser:t}}yt.adhocExecTask=bJ;function _J(t){return{commands:yt.EMPTY_COMMANDS,format:"empty",parser(){throw typeof t=="string"?new vJ.TaskConfigurationError(t):t}}}yt.configurationErrorTask=_J;function wJ(t,e=!1){return{commands:t,format:"utf-8",parser(r){return e?String(r).trim():r}}}yt.straightThroughStringTask=wJ;function EJ(t){return{commands:t,format:"buffer",parser(e){return e}}}yt.straightThroughBufferTask=EJ;function kJ(t){return t.format==="buffer"}yt.isBufferTask=kJ;function DJ(t){return t.format==="empty"||!t.commands.length}yt.isEmptyTask=DJ});var _0=h(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.isCleanOptionsArray=rt.cleanTask=rt.cleanWithOptionsTask=rt.CleanOptions=rt.CONFIG_ERROR_UNKNOWN_OPTION=rt.CONFIG_ERROR_MODE_REQUIRED=rt.CONFIG_ERROR_INTERACTIVE_MODE=void 0;var CJ=_$(),SJ=ue(),b0=Ft();rt.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";rt.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';rt.CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ";var el;(function(t){t.DRY_RUN="n",t.FORCE="f",t.IGNORED_INCLUDED="x",t.IGNORED_ONLY="X",t.EXCLUDING="e",t.QUIET="q",t.RECURSIVE="d"})(el=rt.CleanOptions||(rt.CleanOptions={}));var w$=new Set(["i",...SJ.asStringArray(Object.values(el))]);function xJ(t,e){let{cleanMode:r,options:s,valid:i}=OJ(t);return r?i.options?(s.push(...e),s.some(PJ)?b0.configurationErrorTask(rt.CONFIG_ERROR_INTERACTIVE_MODE):E$(r,s)):b0.configurationErrorTask(rt.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(t)):b0.configurationErrorTask(rt.CONFIG_ERROR_MODE_REQUIRED)}rt.cleanWithOptionsTask=xJ;function E$(t,e){return{commands:["clean",`-${t}`,...e],format:"utf-8",parser(s){return CJ.cleanSummaryParser(t===el.DRY_RUN,s)}}}rt.cleanTask=E$;function AJ(t){return Array.isArray(t)&&t.every(e=>w$.has(e))}rt.isCleanOptionsArray=AJ;function OJ(t){let e,r=[],s={cleanMode:!1,options:!0};return t.replace(/[^a-z]i/g,"").split("").forEach(i=>{TJ(i)?(e=i,s.cleanMode=!0):s.options=s.options&&RJ(r[r.length]=`-${i}`)}),{cleanMode:e,options:r,valid:s}}function TJ(t){return t===el.FORCE||t===el.DRY_RUN}function RJ(t){return/^-[a-z]$/i.test(t)&&w$.has(t.charAt(1))}function PJ(t){return/^-[^\-]/.test(t)?t.indexOf("i")>0:t==="--interactive"}});var C$=h(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.configGetParser=bi.configListParser=bi.ConfigList=void 0;var k$=ue(),w0=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||(this._all=this.files.reduce((e,r)=>Object.assign(e,this.values[r]),{})),this._all}addFile(e){if(!(e in this.values)){let r=k$.last(this.files);this.values[e]=r?Object.create(this.values[r]):{},this.files.push(e)}return this.values[e]}addValue(e,r,s){let i=this.addFile(e);i.hasOwnProperty(r)?Array.isArray(i[r])?i[r].push(s):i[r]=[i[r],s]:i[r]=s,this._all=void 0}};bi.ConfigList=w0;function $J(t){let e=new w0;for(let r of D$(t))e.addValue(r.file,String(r.key),r.value);return e}bi.configListParser=$J;function FJ(t,e){let r=null,s=[],i=new Map;for(let n of D$(t,e))n.key===e&&(s.push(r=n.value),i.has(n.file)||i.set(n.file,[]),i.get(n.file).push(r));return{key:e,paths:Array.from(i.keys()),scopes:i,value:r,values:s}}bi.configGetParser=FJ;function jJ(t){return t.replace(/^(file):/,"")}function*D$(t,e=null){let r=t.split("\0");for(let s=0,i=r.length-1;s<i;){let n=jJ(r[s++]),a=r[s++],o=e;if(a.includes(`
|
|
95
|
+
`)){let u=k$.splitOn(a,`
|
|
96
|
+
`);o=u[0],a=u[1]}yield{file:n,key:o,value:a}}}});var C0=h(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.GitConfigScope=void 0;var S$=C$(),E0=ue(),k0;(function(t){t.system="system",t.global="global",t.local="local",t.worktree="worktree"})(k0=Ya.GitConfigScope||(Ya.GitConfigScope={}));function D0(t,e){return typeof t=="string"&&k0.hasOwnProperty(t)?t:e}function IJ(t,e,r,s){let i=["config",`--${s}`];return r&&i.push("--add"),i.push(t,e),{commands:i,format:"utf-8",parser(n){return n}}}function MJ(t,e){let r=["config","--null","--show-origin","--get-all",t];return e&&r.splice(1,0,`--${e}`),{commands:r,format:"utf-8",parser(s){return S$.configGetParser(s,t)}}}function NJ(t){let e=["config","--list","--show-origin","--null"];return t&&e.push(`--${t}`),{commands:e,format:"utf-8",parser(r){return S$.configListParser(r)}}}function qJ(){return{addConfig(t,e,...r){return this._runTask(IJ(t,e,r[0]===!0,D0(r[1],k0.local)),E0.trailingFunctionArgument(arguments))},getConfig(t,e){return this._runTask(MJ(t,D0(e,void 0)),E0.trailingFunctionArgument(arguments))},listConfig(...t){return this._runTask(NJ(D0(t[0],void 0)),E0.trailingFunctionArgument(arguments))}}}Ya.default=qJ});var S0=h(tl=>{"use strict";var x$;Object.defineProperty(tl,"__esModule",{value:!0});tl.grepQueryBuilder=void 0;var _n=ue(),BJ=Ft(),LJ=["-h"],rd=Symbol("grepQuery"),A$=class{constructor(){this[x$]=[]}*[(x$=rd,Symbol.iterator)](){for(let e of this[rd])yield e}and(...e){return e.length&&this[rd].push("--and","(",..._n.prefixedArray(e,"-e"),")"),this}param(...e){return this[rd].push(..._n.prefixedArray(e,"-e")),this}};function O$(...t){return new A$().param(...t)}tl.grepQueryBuilder=O$;function HJ(t){let e=new Set,r={};return _n.forEachLineWithContent(t,s=>{let[i,n,a]=s.split(_n.NULL);e.add(i),(r[i]=r[i]||[]).push({line:_n.asNumber(n),path:i,preview:a})}),{paths:e,results:r}}function UJ(){return{grep(t){let e=_n.trailingFunctionArgument(arguments),r=_n.getTrailingOptions(arguments);for(let i of LJ)if(r.includes(i))return this._runTask(BJ.configurationErrorTask(`git.grep: use of "${i}" is not supported.`),e);typeof t=="string"&&(t=O$().param(t));let s=["grep","--null","-n","--full-name",...r,...t];return this._runTask({commands:s,format:"utf-8",parser(i){return HJ(i)}},e)}}}tl.default=UJ});var A0=h(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.getResetMode=Ps.resetTask=Ps.ResetMode=void 0;var GJ=Ft(),x0;(function(t){t.MIXED="mixed",t.SOFT="soft",t.HARD="hard",t.MERGE="merge",t.KEEP="keep"})(x0=Ps.ResetMode||(Ps.ResetMode={}));var VJ=Array.from(Object.values(x0));function zJ(t,e){let r=["reset"];return T$(t)&&r.push(`--${t}`),r.push(...e),GJ.straightThroughStringTask(r)}Ps.resetTask=zJ;function WJ(t){if(T$(t))return t;switch(typeof t){case"string":case"undefined":return x0.SOFT}}Ps.getResetMode=WJ;function T$(t){return VJ.includes(t)}});var R$=h(O0=>{"use strict";Object.defineProperty(O0,"__esModule",{value:!0});var KJ=HP(),YJ=Rs(),JJ=a0(),QJ=La(),XJ=o0(),ZJ=y0(),eQ=_0(),tQ=C0(),rQ=S0(),sQ=A0(),iQ={CheckRepoActions:ZJ.CheckRepoActions,CleanOptions:eQ.CleanOptions,GitConfigScope:tQ.GitConfigScope,GitConstructError:KJ.GitConstructError,GitError:YJ.GitError,GitPluginError:JJ.GitPluginError,GitResponseError:QJ.GitResponseError,ResetMode:sQ.ResetMode,TaskConfigurationError:XJ.TaskConfigurationError,grepQueryBuilder:rQ.grepQueryBuilder};O0.default=iQ});var P$=h(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.commandConfigPrefixingPlugin=void 0;var nQ=ue();function aQ(t){let e=nQ.prefixedArray(t,"-c");return{type:"spawn.args",action(r){return[...e,...r]}}}sd.commandConfigPrefixingPlugin=aQ});var R0=h(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.createDeferred=wn.deferred=void 0;function T0(){let t,e,r="pending";return{promise:new Promise((i,n)=>{t=i,e=n}),done(i){r==="pending"&&(r="resolved",t(i))},fail(i){r==="pending"&&(r="rejected",e(i))},get fulfilled(){return r!=="pending"},get status(){return r}}}wn.deferred=T0;wn.createDeferred=T0;wn.default=T0});var j$=h(Ja=>{"use strict";var oQ=Ja&&Ja.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function o(c){try{l(s.next(c))}catch(f){a(f)}}function u(c){try{l(s.throw(c))}catch(f){a(f)}}function l(c){c.done?n(c.value):i(c.value).then(o,u)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(Ja,"__esModule",{value:!0});Ja.completionDetectionPlugin=void 0;var rl=R0(),$$=ue(),F$=rl.default().promise;function uQ({onClose:t=!0,onExit:e=50}={}){function r(){let i=-1,n={close:rl.default(),closeTimeout:rl.default(),exit:rl.default(),exitTimeout:rl.default()},a=Promise.race([t===!1?F$:n.closeTimeout.promise,e===!1?F$:n.exitTimeout.promise]);return s(t,n.close,n.closeTimeout),s(e,n.exit,n.exitTimeout),{close(o){i=o,n.close.done()},exit(o){i=o,n.exit.done()},get exitCode(){return i},result:a}}function s(i,n,a){i!==!1&&(i===!0?n.promise:n.promise.then(()=>$$.delay(i))).then(a.done)}return{type:"spawn.after",action(i,{spawned:n,close:a}){var o,u;return oQ(this,void 0,void 0,function*(){let l=r(),c=!0,f=()=>void(c=!1);(o=n.stdout)===null||o===void 0||o.on("data",f),(u=n.stderr)===null||u===void 0||u.on("data",f),n.on("error",f),n.on("close",d=>l.close(d)),n.on("exit",d=>l.exit(d));try{yield l.result,c&&(yield $$.delay(50)),a(l.exitCode)}catch(d){a(l.exitCode,d)}})}}}Ja.completionDetectionPlugin=uQ});var I$=h(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.errorDetectionPlugin=Qa.errorDetectionHandler=void 0;var lQ=Rs();function cQ(t){return!!(t.exitCode&&t.stdErr.length)}function fQ(t){return Buffer.concat([...t.stdOut,...t.stdErr])}function dQ(t=!1,e=cQ,r=fQ){return(s,i)=>!t&&s||!e(i)?s:r(i)}Qa.errorDetectionHandler=dQ;function hQ(t){return{type:"task.error",action(e,r){let s=t(e.error,{stdErr:r.stdErr,stdOut:r.stdOut,exitCode:r.exitCode});return Buffer.isBuffer(s)?{error:new lQ.GitError(void 0,s.toString("utf-8"))}:{error:s}}}}Qa.errorDetectionPlugin=hQ});var q$=h(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.PluginStore=void 0;var M$=ue(),N$=class{constructor(){this.plugins=new Set}add(e){let r=[];return M$.asArray(e).forEach(s=>s&&this.plugins.add(M$.append(r,s))),()=>{r.forEach(s=>this.plugins.delete(s))}}exec(e,r,s){let i=r,n=Object.freeze(Object.create(s));for(let a of this.plugins)a.type===e&&(i=a.action(i,n));return i}};id.PluginStore=N$});var B$=h(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.progressMonitorPlugin=void 0;var nd=ue();function pQ(t){let e="--progress",r=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action(n,a){return r.includes(a.method)?nd.including(n,e):n}},{type:"spawn.after",action(n,a){var o;!a.commands.includes(e)||(o=a.spawned.stderr)===null||o===void 0||o.on("data",u=>{let l=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(u.toString("utf8"));!l||t({method:a.method,stage:mQ(l[1]),progress:nd.asNumber(l[2]),processed:nd.asNumber(l[3]),total:nd.asNumber(l[4])})})}}]}ad.progressMonitorPlugin=pQ;function mQ(t){return String(t.toLowerCase().split(" ",1))||"unknown"}});var H$=h(L$=>{"use strict";Object.defineProperty(L$,"__esModule",{value:!0})});var U$=h(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.spawnOptionsPlugin=void 0;var gQ=ue();function yQ(t){let e=gQ.pick(t,["uid","gid"]);return{type:"spawn.options",action(r){return Object.assign(Object.assign({},e),r)}}}od.spawnOptionsPlugin=yQ});var G$=h(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.timeoutPlugin=void 0;var vQ=a0();function bQ({block:t}){if(t>0)return{type:"spawn.after",action(e,r){var s,i;let n;function a(){n&&clearTimeout(n),n=setTimeout(u,t)}function o(){var l,c;(l=r.spawned.stdout)===null||l===void 0||l.off("data",a),(c=r.spawned.stderr)===null||c===void 0||c.off("data",a),r.spawned.off("exit",o),r.spawned.off("close",o)}function u(){o(),r.kill(new vQ.GitPluginError(void 0,"timeout","block timeout reached"))}(s=r.spawned.stdout)===null||s===void 0||s.on("data",a),(i=r.spawned.stderr)===null||i===void 0||i.on("data",a),r.spawned.on("exit",o),r.spawned.on("close",o),a()}}}ud.timeoutPlugin=bQ});var V$=h(Zt=>{"use strict";var _Q=Zt&&Zt.__createBinding||(Object.create?function(t,e,r,s){s===void 0&&(s=r),Object.defineProperty(t,s,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]}),_i=Zt&&Zt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&_Q(e,t,r)};Object.defineProperty(Zt,"__esModule",{value:!0});_i(P$(),Zt);_i(j$(),Zt);_i(I$(),Zt);_i(q$(),Zt);_i(B$(),Zt);_i(H$(),Zt);_i(U$(),Zt);_i(G$(),Zt)});var fd=h(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.GitLogger=Xa.createLogger=void 0;var ld=d0(),wi=ue();ld.default.formatters.L=t=>String(wi.filterHasLength(t)?t.length:"-");ld.default.formatters.B=t=>Buffer.isBuffer(t)?t.toString("utf8"):wi.objectToString(t);function z$(){return ld.default("simple-git")}function cd(t,e,r){return!e||!String(e).replace(/\s*/,"")?r?(s,...i)=>{t(s,...i),r(s,...i)}:t:(s,...i)=>{t(`%s ${s}`,e,...i),r&&r(s,...i)}}function wQ(t,e,{namespace:r}){if(typeof t=="string")return t;let s=e&&e.namespace||"";return s.startsWith(r)?s.substr(r.length+1):s||r}function W$(t,e,r,s=z$()){let i=t&&`[${t}]`||"",n=[],a=typeof e=="string"?s.extend(e):e,o=wQ(wi.filterType(e,wi.filterString),a,s);return l(r);function u(c,f){return wi.append(n,W$(t,o.replace(/^[^:]+/,c),f,s))}function l(c){let f=c&&`[${c}]`||"",d=a&&cd(a,f)||wi.NOOP,p=cd(s,`${i} ${f}`,d);return Object.assign(a?d:p,{label:t,sibling:u,info:p,step:l})}}Xa.createLogger=W$;var K$=class{constructor(e=z$()){this._out=e,this.error=cd(e,"[ERROR]"),this.warn=cd(e,"[WARN]")}silent(e=!1){if(e!==this._out.enabled)return;let{namespace:r}=this._out,s=(process.env.DEBUG||"").split(",").filter(a=>!!a),i=s.includes(r),n=s.includes(`-${r}`);e?i?wi.remove(s,r):s.push(`-${r}`):n?wi.remove(s,`-${r}`):s.push(r),ld.default.enable(s.join(","))}};Xa.GitLogger=K$});var Y$=h(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.TasksPendingQueue=void 0;var EQ=Rs(),kQ=fd(),Za=class{constructor(e="GitExecutor"){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){let r=Za.getName(e.commands[0]),s=kQ.createLogger(this.logLabel,r);return{task:e,logger:s,name:r}}push(e){let r=this.createProgress(e);return r.logger("Adding task to the queue, commands = %o",e.commands),this._queue.set(e,r),r}fatal(e){for(let[r,{logger:s}]of Array.from(this._queue.entries()))r===e.task?(s.info("Failed %o",e),s("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted")):s.info("A fatal exception occurred in a previous task, the queue has been purged: %o",e.message),this.complete(r);if(this._queue.size!==0)throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){let r=this.withProgress(e);if(!r)throw new EQ.GitError(void 0,"TasksPendingQueue: attempt called for an unknown task");return r.logger("Starting task"),r}static getName(e="empty"){return`task:${e}:${++Za.counter}`}};dd.TasksPendingQueue=Za;Za.counter=0});var eF=h(to=>{"use strict";var hd=to&&to.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function o(c){try{l(s.next(c))}catch(f){a(f)}}function u(c){try{l(s.throw(c))}catch(f){a(f)}}function l(c){c.done?n(c.value):i(c.value).then(o,u)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(to,"__esModule",{value:!0});to.GitExecutorChain=void 0;var DQ=require("child_process"),J$=Rs(),Q$=Ft(),eo=ue(),CQ=Y$(),X$=class{constructor(e,r,s){this._executor=e,this._scheduler=r,this._plugins=s,this._chain=Promise.resolve(),this._queue=new CQ.TasksPendingQueue}get binary(){return this._executor.binary}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then(()=>this.attemptTask(e))}attemptTask(e){return hd(this,void 0,void 0,function*(){let r=yield this._scheduler.next(),s=()=>this._queue.complete(e);try{let{logger:i}=this._queue.attempt(e);return yield Q$.isEmptyTask(e)?this.attemptEmptyTask(e,i):this.attemptRemoteTask(e,i)}catch(i){throw this.onFatalException(e,i)}finally{s(),r()}})}onFatalException(e,r){let s=r instanceof J$.GitError?Object.assign(r,{task:e}):new J$.GitError(e,r&&String(r));return this._chain=Promise.resolve(),this._queue.fatal(s),s}attemptRemoteTask(e,r){return hd(this,void 0,void 0,function*(){let s=this._plugins.exec("spawn.args",[...e.commands],pd(e,e.commands)),i=yield this.gitResponse(e,this.binary,s,this.outputHandler,r.step("SPAWN")),n=yield this.handleTaskData(e,s,i,r.step("HANDLE"));return r("passing response to task's parser as a %s",e.format),Q$.isBufferTask(e)?eo.callTaskParser(e.parser,n):eo.callTaskParser(e.parser,n.asStrings())})}attemptEmptyTask(e,r){return hd(this,void 0,void 0,function*(){return r("empty task bypassing child process to call to task's parser"),e.parser(this)})}handleTaskData(e,r,s,i){let{exitCode:n,rejection:a,stdOut:o,stdErr:u}=s;return new Promise((l,c)=>{i("Preparing to handle process response exitCode=%d stdOut=",n);let{error:f}=this._plugins.exec("task.error",{error:a},Object.assign(Object.assign({},pd(e,r)),s));if(f&&e.onError)return i.info("exitCode=%s handling with custom error handler"),e.onError(s,f,d=>{i.info("custom error handler treated as success"),i("custom error returned a %s",eo.objectToString(d)),l(new eo.GitOutputStreams(Array.isArray(d)?Buffer.concat(d):d,Buffer.concat(u)))},c);if(f)return i.info("handling as error: exitCode=%s stdErr=%s rejection=%o",n,u.length,a),c(f);i.info("retrieving task output complete"),l(new eo.GitOutputStreams(Buffer.concat(o),Buffer.concat(u)))})}gitResponse(e,r,s,i,n){return hd(this,void 0,void 0,function*(){let a=n.sibling("output"),o=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},pd(e,e.commands));return new Promise(u=>{let l=[],c=[],f;n.info("%s %o",r,s),n("%O",o);let d=DQ.spawn(r,s,o);d.stdout.on("data",Z$(l,"stdOut",n,a.step("stdOut"))),d.stderr.on("data",Z$(c,"stdErr",n,a.step("stdErr"))),d.on("error",SQ(c,n)),i&&(n("Passing child process stdOut/stdErr to custom outputHandler"),i(r,d.stdout,d.stderr,[...s])),this._plugins.exec("spawn.after",void 0,Object.assign(Object.assign({},pd(e,s)),{spawned:d,close(p,m){u({stdOut:l,stdErr:c,exitCode:p,rejection:f||m})},kill(p){d.killed||(f=p,d.kill("SIGINT"))}}))})})}};to.GitExecutorChain=X$;function pd(t,e){return{method:eo.first(t.commands)||"",commands:e}}function SQ(t,e){return r=>{e("[ERROR] child process exception %o",r),t.push(Buffer.from(String(r.stack),"ascii"))}}function Z$(t,e,r,s){return i=>{r("%s received %L bytes",e,i),s("%B",i),t.push(i)}}});var sF=h(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.GitExecutor=void 0;var tF=eF(),rF=class{constructor(e="git",r,s,i){this.binary=e,this.cwd=r,this._scheduler=s,this._plugins=i,this._chain=new tF.GitExecutorChain(this,this._scheduler,this._plugins)}chain(){return new tF.GitExecutorChain(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}};md.GitExecutor=rF});var nF=h(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.taskCallback=void 0;var xQ=La(),iF=ue();function AQ(t,e,r=iF.NOOP){let s=n=>{r(null,n)},i=n=>{(n==null?void 0:n.task)===t&&r(n instanceof xQ.GitResponseError?OQ(n):n,void 0)};e.then(s,i)}gd.taskCallback=AQ;function OQ(t){let e=s=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${s} should be GitResponseError.git.${s}, this will no longer be available in version 3`),e=iF.NOOP};return Object.create(t,Object.getOwnPropertyNames(t.git).reduce(r,{}));function r(s,i){return i in t||(s[i]={enumerable:!1,configurable:!1,get(){return e(i),t.git[i]}}),s}}});var aF=h(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.changeWorkingDirectoryTask=void 0;var TQ=ue(),RQ=Ft();function PQ(t,e){return RQ.adhocExecTask(r=>{if(!TQ.folderExists(t))throw new Error(`Git.cwd: cannot change to non-directory "${t}"`);return(e||r).cwd=t})}yd.changeWorkingDirectoryTask=PQ});var oF=h(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.hashObjectTask=void 0;var $Q=Ft();function FQ(t,e){let r=["hash-object",t];return e&&r.push("-w"),$Q.straightThroughStringTask(r,!0)}vd.hashObjectTask=FQ});var uF=h(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.parseInit=ro.InitSummary=void 0;var sl=class{constructor(e,r,s,i){this.bare=e,this.path=r,this.existing=s,this.gitDir=i}};ro.InitSummary=sl;var jQ=/^Init.+ repository in (.+)$/,IQ=/^Rein.+ in (.+)$/;function MQ(t,e,r){let s=String(r).trim(),i;if(i=jQ.exec(s))return new sl(t,e,!1,i[1]);if(i=IQ.exec(s))return new sl(t,e,!0,i[1]);let n="",a=s.split(" ");for(;a.length;)if(a.shift()==="in"){n=a.join(" ");break}return new sl(t,e,/^re/i.test(s),n)}ro.parseInit=MQ});var cF=h(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.initTask=void 0;var NQ=uF(),lF="--bare";function qQ(t){return t.includes(lF)}function BQ(t=!1,e,r){let s=["init",...r];return t&&!qQ(s)&&s.splice(1,0,lF),{commands:s,format:"utf-8",parser(i){return NQ.parseInit(s.includes("--bare"),e,i)}}}bd.initTask=BQ});var dF=h(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.DiffSummary=void 0;var fF=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}};_d.DiffSummary=fF});var P0=h(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.parseDiffResult=void 0;var LQ=dF();function HQ(t){let e=t.trim().split(`
|
|
97
|
+
`),r=new LQ.DiffSummary;UQ(r,e.pop());for(let s=0,i=e.length;s<i;s++){let n=e[s];VQ(n,r)||zQ(n,r)}return r}wd.parseDiffResult=HQ;function UQ(t,e){(e||"").trim().split(", ").forEach(function(r){let s=/(\d+)\s([a-z]+)/.exec(r);!s||GQ(t,s[2],parseInt(s[1],10))})}function GQ(t,e,r){let s=/([a-z]+?)s?\b/.exec(e);!s||!hF[s[1]]||hF[s[1]](t,r)}var hF={file(t,e){t.changed=e},deletion(t,e){t.deletions=e},insertion(t,e){t.insertions=e}};function VQ(t,{files:e}){let r=t.trim().match(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/);if(r){var s=(r[3]||"").trim();return e.push({file:r[1].trim(),changes:parseInt(r[2],10),insertions:s.replace(/-/g,"").length,deletions:s.replace(/\+/g,"").length,binary:!1}),!0}return!1}function zQ(t,{files:e}){let r=t.match(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)$/);return r?(e.push({file:r[1].trim(),before:+r[2],after:+r[3],binary:!0}),!0):!1}});var $0=h(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.createListLogSummaryParser=ur.SPLITTER=ur.COMMIT_BOUNDARY=ur.START_BOUNDARY=void 0;var WQ=ue(),KQ=P0();ur.START_BOUNDARY="\xF2\xF2\xF2\xF2\xF2\xF2 ";ur.COMMIT_BOUNDARY=" \xF2\xF2";ur.SPLITTER=" \xF2 ";var YQ=["hash","date","message","refs","author_name","author_email"];function JQ(t,e){return e.reduce((r,s,i)=>(r[s]=t[i]||"",r),Object.create({diff:null}))}function QQ(t=ur.SPLITTER,e=YQ){return function(r){let s=WQ.toLinesWithContent(r,!0,ur.START_BOUNDARY).map(function(i){let n=i.trim().split(ur.COMMIT_BOUNDARY),a=JQ(n[0].trim().split(t),e);return n.length>1&&!!n[1].trim()&&(a.diff=KQ.parseDiffResult(n[1])),a});return{all:s,latest:s.length&&s[0]||null,total:s.length}}}ur.createListLogSummaryParser=QQ});var j0=h(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.logTask=kn.parseLogOptions=void 0;var Ed=$0(),En=ue(),XQ=Ft(),F0;(function(t){t[t["--pretty"]=0]="--pretty",t[t["max-count"]=1]="max-count",t[t.maxCount=2]="maxCount",t[t.n=3]="n",t[t.file=4]="file",t[t.format=5]="format",t[t.from=6]="from",t[t.to=7]="to",t[t.splitter=8]="splitter",t[t.symmetric=9]="symmetric",t[t.mailMap=10]="mailMap",t[t.multiLine=11]="multiLine",t[t.strictDate=12]="strictDate"})(F0||(F0={}));function ZQ(t,e){let r=[],s=[];return Object.keys(t).forEach(i=>{r.push(i),s.push(String(t[i]))}),[r,s.join(e)]}function eX(t){let e=Object.assign({},t);return Object.keys(t).forEach(r=>{r in F0&&delete e[r]}),e}function pF(t={},e=[]){let r=t.splitter||Ed.SPLITTER,s=t.format||{hash:"%H",date:t.strictDate===!1?"%ai":"%aI",message:"%s",refs:"%D",body:t.multiLine?"%B":"%b",author_name:t.mailMap!==!1?"%aN":"%an",author_email:t.mailMap!==!1?"%aE":"%ae"},[i,n]=ZQ(s,r),a=[],o=[`--pretty=format:${Ed.START_BOUNDARY}${n}${Ed.COMMIT_BOUNDARY}`,...e],u=t.n||t["max-count"]||t.maxCount;if(u&&o.push(`--max-count=${u}`),t.from&&t.to){let l=t.symmetric!==!1?"...":"..";a.push(`${t.from}${l}${t.to}`)}return t.file&&a.push("--follow",t.file),En.appendTaskOptions(eX(t),o),{fields:i,splitter:r,commands:[...o,...a]}}kn.parseLogOptions=pF;function mF(t,e,r){return{commands:["log",...r],format:"utf-8",parser:Ed.createListLogSummaryParser(t,e)}}kn.logTask=mF;function tX(){return{log(...r){let s=En.trailingFunctionArgument(arguments),i=e(...r)||t(pF(En.trailingOptionsArgument(arguments),En.filterType(arguments[0],En.filterArray)));return this._runTask(i,s)}};function t(r){return mF(r.splitter,r.fields,r.commands)}function e(r,s){return En.filterString(r)&&En.filterString(s)&&XQ.configurationErrorTask("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}}kn.default=tX});var vF=h(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.MergeSummaryDetail=so.MergeSummaryConflict=void 0;var gF=class{constructor(e,r=null,s){this.reason=e,this.file=r,this.meta=s}toString(){return`${this.file}:${this.reason}`}};so.MergeSummaryConflict=gF;var yF=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(", ")}`:"OK"}};so.MergeSummaryDetail=yF});var _F=h(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.PullSummary=void 0;var bF=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}};kd.PullSummary=bF});var EF=h(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.remoteMessagesObjectParsers=void 0;var Ei=ue();function I0(t){return t.objects=t.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function wF(t){let e=/^\s*(\d+)/.exec(t),r=/delta (\d+)/i.exec(t);return{count:Ei.asNumber(e&&e[1]||"0"),delta:Ei.asNumber(r&&r[1]||"0")}}Dd.remoteMessagesObjectParsers=[new Ei.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(t,[e,r])=>{let s=e.toLowerCase(),i=I0(t.remoteMessages);Object.assign(i,{[s]:Ei.asNumber(r)})}),new Ei.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(t,[e,r])=>{let s=e.toLowerCase(),i=I0(t.remoteMessages);Object.assign(i,{[s]:Ei.asNumber(r)})}),new Ei.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(t,[e,r,s])=>{let i=I0(t.remoteMessages);i.total=wF(e),i.reused=wF(r),i.packReused=Ei.asNumber(s)})]});var N0=h(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.RemoteMessageSummary=io.parseRemoteMessages=void 0;var il=ue(),rX=EF(),sX=[new il.RemoteLineParser(/^remote:\s*(.+)$/,(t,[e])=>(t.remoteMessages.all.push(e.trim()),!1)),...rX.remoteMessagesObjectParsers,new il.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(t,[e])=>{t.remoteMessages.pullRequestUrl=e}),new il.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(t,[e,r,s])=>{t.remoteMessages.vulnerabilities={count:il.asNumber(e),summary:r,url:s}})];function iX(t,e){return il.parseStringResponse({remoteMessages:new M0},sX,e)}io.parseRemoteMessages=iX;var M0=class{constructor(){this.all=[]}};io.RemoteMessageSummary=M0});var q0=h(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.parsePullResult=Dn.parsePullDetail=void 0;var kF=_F(),no=ue(),nX=N0(),aX=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,oX=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,uX=/^(create|delete) mode \d+ (.+)/,lX=[new no.LineParser(aX,(t,[e,r,s])=>{t.files.push(e),r&&(t.insertions[e]=r.length),s&&(t.deletions[e]=s.length)}),new no.LineParser(oX,(t,[e,,r,,s])=>r!==void 0||s!==void 0?(t.summary.changes=+e||0,t.summary.insertions=+r||0,t.summary.deletions=+s||0,!0):!1),new no.LineParser(uX,(t,[e,r])=>{no.append(t.files,r),no.append(e==="create"?t.created:t.deleted,r)})],cX=(t,e)=>no.parseStringResponse(new kF.PullSummary,lX,t,e);Dn.parsePullDetail=cX;var fX=(t,e)=>Object.assign(new kF.PullSummary,Dn.parsePullDetail(t,e),nX.parseRemoteMessages(t,e));Dn.parsePullResult=fX});var DF=h(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.parseMergeDetail=Cn.parseMergeResult=void 0;var Cd=vF(),ao=ue(),dX=q0(),hX=[new ao.LineParser(/^Auto-merging\s+(.+)$/,(t,[e])=>{t.merges.push(e)}),new ao.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(t,[e,r])=>{t.conflicts.push(new Cd.MergeSummaryConflict(e,r))}),new ao.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(t,[e,r,s])=>{t.conflicts.push(new Cd.MergeSummaryConflict(e,r,{deleteRef:s}))}),new ao.LineParser(/^CONFLICT\s+\((.+)\):/,(t,[e])=>{t.conflicts.push(new Cd.MergeSummaryConflict(e,null))}),new ao.LineParser(/^Automatic merge failed;\s+(.+)$/,(t,[e])=>{t.result=e})],pX=(t,e)=>Object.assign(Cn.parseMergeDetail(t,e),dX.parsePullResult(t,e));Cn.parseMergeResult=pX;var mX=t=>ao.parseStringResponse(new Cd.MergeSummaryDetail,hX,t);Cn.parseMergeDetail=mX});var CF=h(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.mergeTask=void 0;var gX=La(),yX=DF(),vX=Ft();function bX(t){return t.length?{commands:["merge",...t],format:"utf-8",parser(e,r){let s=yX.parseMergeResult(e,r);if(s.failed)throw new gX.GitResponseError(s);return s}}:vX.configurationErrorTask("Git.merge requires at least one option")}Sd.mergeTask=bX});var SF=h(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.parsePushDetail=Sn.parsePushResult=void 0;var oo=ue(),_X=N0();function wX(t,e,r){let s=r.includes("deleted"),i=r.includes("tag")||/^refs\/tags/.test(t),n=!r.includes("new");return{deleted:s,tag:i,branch:!i,new:!n,alreadyUpdated:n,local:t,remote:e}}var EX=[new oo.LineParser(/^Pushing to (.+)$/,(t,[e])=>{t.repo=e}),new oo.LineParser(/^updating local tracking ref '(.+)'/,(t,[e])=>{t.ref=Object.assign(Object.assign({},t.ref||{}),{local:e})}),new oo.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,(t,[e,r,s])=>{t.pushed.push(wX(e,r,s))}),new oo.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(t,[e,r,s])=>{t.branch=Object.assign(Object.assign({},t.branch||{}),{local:e,remote:r,remoteName:s})}),new oo.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(t,[e,r,s,i])=>{t.update={head:{local:e,remote:r},hash:{from:s,to:i}}})],kX=(t,e)=>{let r=Sn.parsePushDetail(t,e),s=_X.parseRemoteMessages(t,e);return Object.assign(Object.assign({},r),s)};Sn.parsePushResult=kX;var DX=(t,e)=>oo.parseStringResponse({pushed:[]},EX,t,e);Sn.parsePushDetail=DX});var B0=h(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.pushTask=uo.pushTagsTask=void 0;var CX=SF(),xd=ue();function SX(t={},e){return xd.append(e,"--tags"),xF(t,e)}uo.pushTagsTask=SX;function xF(t={},e){let r=["push",...e];return t.branch&&r.splice(1,0,t.branch),t.remote&&r.splice(1,0,t.remote),xd.remove(r,"-v"),xd.append(r,"--verbose"),xd.append(r,"--porcelain"),{commands:r,format:"utf-8",parser:CX.parsePushResult}}uo.pushTask=xF});var OF=h(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.FileStatusSummary=xn.fromPathRegex=void 0;xn.fromPathRegex=/^(.+) -> (.+)$/;var AF=class{constructor(e,r,s){if(this.path=e,this.index=r,this.working_dir=s,r+s==="R"){let i=xn.fromPathRegex.exec(e)||[null,e,e];this.from=i[1]||"",this.path=i[2]||""}}};xn.FileStatusSummary=AF});var RF=h(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.parseStatusSummary=lo.StatusSummary=void 0;var ot=ue(),xX=OF(),L0=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null}isClean(){return!this.files.length}};lo.StatusSummary=L0;var he;(function(t){t.ADDED="A",t.DELETED="D",t.MODIFIED="M",t.RENAMED="R",t.COPIED="C",t.UNMERGED="U",t.UNTRACKED="?",t.IGNORED="!",t.NONE=" "})(he||(he={}));function TF(t){let e=/^(.+) -> (.+)$/.exec(t);return e?{from:String(e[1]),to:String(e[2])}:{from:t,to:t}}function Dr(t,e,r){return[`${t}${e}`,r]}function H0(t,...e){return e.map(r=>Dr(t,r,(s,i)=>ot.append(s.conflicted,i)))}var AX=new Map([Dr(he.NONE,he.ADDED,(t,e)=>ot.append(t.created,e)),Dr(he.NONE,he.DELETED,(t,e)=>ot.append(t.deleted,e)),Dr(he.NONE,he.MODIFIED,(t,e)=>ot.append(t.modified,e)),Dr(he.ADDED,he.NONE,(t,e)=>ot.append(t.created,e)&&ot.append(t.staged,e)),Dr(he.ADDED,he.MODIFIED,(t,e)=>ot.append(t.created,e)&&ot.append(t.staged,e)&&ot.append(t.modified,e)),Dr(he.DELETED,he.NONE,(t,e)=>ot.append(t.deleted,e)&&ot.append(t.staged,e)),Dr(he.MODIFIED,he.NONE,(t,e)=>ot.append(t.modified,e)&&ot.append(t.staged,e)),Dr(he.MODIFIED,he.MODIFIED,(t,e)=>ot.append(t.modified,e)&&ot.append(t.staged,e)),Dr(he.RENAMED,he.NONE,(t,e)=>{ot.append(t.renamed,TF(e))}),Dr(he.RENAMED,he.MODIFIED,(t,e)=>{let r=TF(e);ot.append(t.renamed,r),ot.append(t.modified,r.to)}),Dr(he.UNTRACKED,he.UNTRACKED,(t,e)=>ot.append(t.not_added,e)),...H0(he.ADDED,he.ADDED,he.UNMERGED),...H0(he.DELETED,he.DELETED,he.UNMERGED),...H0(he.UNMERGED,he.ADDED,he.DELETED,he.UNMERGED),["##",(t,e)=>{let r=/ahead (\d+)/,s=/behind (\d+)/,i=/^(.+?(?=(?:\.{3}|\s|$)))/,n=/\.{3}(\S*)/,a=/\son\s([\S]+)$/,o;o=r.exec(e),t.ahead=o&&+o[1]||0,o=s.exec(e),t.behind=o&&+o[1]||0,o=i.exec(e),t.current=o&&o[1],o=n.exec(e),t.tracking=o&&o[1],o=a.exec(e),t.current=o&&o[1]||t.current}]]),OX=function(t){let e=t.trim().split(`
|
|
98
|
+
`),r=new L0;for(let s=0,i=e.length;s<i;s++)TX(r,e[s]);return r};lo.parseStatusSummary=OX;function TX(t,e){let r=e.trim();switch(" "){case r.charAt(2):return s(r.charAt(0),r.charAt(1),r.substr(3));case r.charAt(1):return s(he.NONE,r.charAt(0),r.substr(2));default:return}function s(i,n,a){let o=`${i}${n}`,u=AX.get(o);u&&u(t,a),o!=="##"&&t.files.push(new xX.FileStatusSummary(a,i,n))}}});var PF=h(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.statusTask=void 0;var RX=RF();function PX(t){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...t],parser(e){return RX.parseStatusSummary(e)}}}Ad.statusTask=PX});var jF=h(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.SimpleGitApi=void 0;var $X=nF(),$F=aF(),FX=C0(),jX=S0(),IX=oF(),MX=cF(),NX=j0(),FF=CF(),qX=B0(),BX=PF(),Od=Ft(),Ke=ue(),U0=class{constructor(e){this._executor=e}_runTask(e,r){let s=this._executor.chain(),i=s.push(e);return r&&$X.taskCallback(e,i,r),Object.create(this,{then:{value:i.then.bind(i)},catch:{value:i.catch.bind(i)},_executor:{value:s}})}add(e){return this._runTask(Od.straightThroughStringTask(["add",...Ke.asArray(e)]),Ke.trailingFunctionArgument(arguments))}cwd(e){let r=Ke.trailingFunctionArgument(arguments);return typeof e=="string"?this._runTask($F.changeWorkingDirectoryTask(e,this._executor),r):typeof(e==null?void 0:e.path)=="string"?this._runTask($F.changeWorkingDirectoryTask(e.path,e.root&&this._executor||void 0),r):this._runTask(Od.configurationErrorTask("Git.cwd: workingDirectory must be supplied as a string"),r)}hashObject(e,r){return this._runTask(IX.hashObjectTask(e,r===!0),Ke.trailingFunctionArgument(arguments))}init(e){return this._runTask(MX.initTask(e===!0,this._executor.cwd,Ke.getTrailingOptions(arguments)),Ke.trailingFunctionArgument(arguments))}merge(){return this._runTask(FF.mergeTask(Ke.getTrailingOptions(arguments)),Ke.trailingFunctionArgument(arguments))}mergeFromTo(e,r){return Ke.filterString(e)&&Ke.filterString(r)?this._runTask(FF.mergeTask([e,r,...Ke.getTrailingOptions(arguments)]),Ke.trailingFunctionArgument(arguments,!1)):this._runTask(Od.configurationErrorTask("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"))}outputHandler(e){return this._executor.outputHandler=e,this}push(){let e=qX.pushTask({remote:Ke.filterType(arguments[0],Ke.filterString),branch:Ke.filterType(arguments[1],Ke.filterString)},Ke.getTrailingOptions(arguments));return this._runTask(e,Ke.trailingFunctionArgument(arguments))}stash(){return this._runTask(Od.straightThroughStringTask(["stash",...Ke.getTrailingOptions(arguments)]),Ke.trailingFunctionArgument(arguments))}status(){return this._runTask(BX.statusTask(Ke.getTrailingOptions(arguments)),Ke.trailingFunctionArgument(arguments))}};Td.SimpleGitApi=U0;Object.assign(U0.prototype,FX.default(),jX.default(),NX.default())});var MF=h(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.Scheduler=void 0;var G0=ue(),LX=R0(),HX=fd(),UX=(()=>{let t=0;return()=>{t++;let{promise:e,done:r}=LX.createDeferred();return{promise:e,done:r,id:t}}})(),IF=class{constructor(e=2){this.concurrency=e,this.logger=HX.createLogger("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){this.logger("Schedule attempt ignored, pending=%s running=%s concurrency=%s",this.pending.length,this.running.length,this.concurrency);return}let e=G0.append(this.running,this.pending.shift());this.logger("Attempting id=%s",e.id),e.done(()=>{this.logger("Completing id=",e.id),G0.remove(this.running,e),this.schedule()})}next(){let{promise:e,id:r}=G0.append(this.pending,UX());return this.logger("Scheduling id=%s",r),this.schedule(),e}};Rd.Scheduler=IF});var NF=h(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.applyPatchTask=void 0;var GX=Ft();function VX(t,e){return GX.straightThroughStringTask(["apply",...e,...t])}Pd.applyPatchTask=VX});var BF=h(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.isSingleBranchDeleteFailure=ls.branchDeletionFailure=ls.branchDeletionSuccess=ls.BranchDeletionBatch=void 0;var qF=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}};ls.BranchDeletionBatch=qF;function zX(t,e){return{branch:t,hash:e,success:!0}}ls.branchDeletionSuccess=zX;function WX(t){return{branch:t,hash:null,success:!1}}ls.branchDeletionFailure=WX;function KX(t){return t.success}ls.isSingleBranchDeleteFailure=KX});var HF=h(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.hasBranchDeletionError=co.parseBranchDeletions=void 0;var V0=BF(),$d=ue(),YX=/(\S+)\s+\(\S+\s([^)]+)\)/,LF=/^error[^']+'([^']+)'/m,JX=[new $d.LineParser(YX,(t,[e,r])=>{let s=V0.branchDeletionSuccess(e,r);t.all.push(s),t.branches[e]=s}),new $d.LineParser(LF,(t,[e])=>{let r=V0.branchDeletionFailure(e);t.errors.push(r),t.all.push(r),t.branches[e]=r})],QX=(t,e)=>$d.parseStringResponse(new V0.BranchDeletionBatch,JX,t,e);co.parseBranchDeletions=QX;function XX(t,e){return e===$d.ExitCodes.ERROR&&LF.test(t)}co.hasBranchDeletionError=XX});var GF=h(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.BranchSummaryResult=void 0;var UF=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(e,r,s,i,n){e&&(this.detached=r,this.current=s),this.all.push(s),this.branches[s]={current:e,name:s,commit:i,label:n}}};Fd.BranchSummaryResult=UF});var VF=h(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.parseBranchSummary=void 0;var ZX=GF(),z0=ue(),eZ=[new z0.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(t,[e,r,s,i])=>{t.push(!!e,!0,r,s,i)}),new z0.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/s,(t,[e,r,s,i])=>{t.push(!!e,!1,r,s,i)})];function tZ(t){return z0.parseStringResponse(new ZX.BranchSummaryResult,eZ,t)}jd.parseBranchSummary=tZ});var YF=h(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.deleteBranchTask=Cr.deleteBranchesTask=Cr.branchLocalTask=Cr.branchTask=Cr.containsDeleteBranchCommand=void 0;var rZ=La(),nl=HF(),zF=VF(),WF=ue();function KF(t){let e=["-d","-D","--delete"];return t.some(r=>e.includes(r))}Cr.containsDeleteBranchCommand=KF;function sZ(t){let e=KF(t),r=["branch",...t];return r.length===1&&r.push("-a"),r.includes("-v")||r.splice(1,0,"-v"),{format:"utf-8",commands:r,parser(s,i){return e?nl.parseBranchDeletions(s,i).all[0]:zF.parseBranchSummary(s)}}}Cr.branchTask=sZ;function iZ(){let t=zF.parseBranchSummary;return{format:"utf-8",commands:["branch","-v"],parser:t}}Cr.branchLocalTask=iZ;function nZ(t,e=!1){return{format:"utf-8",commands:["branch","-v",e?"-D":"-d",...t],parser(r,s){return nl.parseBranchDeletions(r,s)},onError({exitCode:r,stdOut:s},i,n,a){if(!nl.hasBranchDeletionError(String(i),r))return a(i);n(s)}}}Cr.deleteBranchesTask=nZ;function aZ(t,e=!1){let r={format:"utf-8",commands:["branch","-v",e?"-D":"-d",t],parser(s,i){return nl.parseBranchDeletions(s,i).branches[t]},onError({exitCode:s,stdErr:i,stdOut:n},a,o,u){if(!nl.hasBranchDeletionError(String(a),s))return u(a);throw new rZ.GitResponseError(r.parser(WF.bufferToString(n),WF.bufferToString(i)),String(a))}};return r}Cr.deleteBranchTask=aZ});var JF=h(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.parseCheckIgnore=void 0;var oZ=t=>t.split(/\n/g).map(e=>e.trim()).filter(e=>!!e);Id.parseCheckIgnore=oZ});var QF=h(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.checkIgnoreTask=void 0;var uZ=JF();function lZ(t){return{commands:["check-ignore",...t],format:"utf-8",parser:uZ.parseCheckIgnore}}Md.checkIgnoreTask=lZ});var ZF=h(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.cloneMirrorTask=fo.cloneTask=void 0;var cZ=Ft(),fZ=ue();function XF(t,e,r){let s=["clone",...r];return typeof t=="string"&&s.push(t),typeof e=="string"&&s.push(e),cZ.straightThroughStringTask(s)}fo.cloneTask=XF;function dZ(t,e,r){return fZ.append(r,"--mirror"),XF(t,e,r)}fo.cloneMirrorTask=dZ});var ej=h(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.parseCommitResult=void 0;var al=ue(),hZ=[new al.LineParser(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(t,[e,r,s])=>{t.branch=e,t.commit=s,t.root=!!r}),new al.LineParser(/\s*Author:\s(.+)/i,(t,[e])=>{let r=e.split("<"),s=r.pop();!s||!s.includes("@")||(t.author={email:s.substr(0,s.length-1),name:r.join("<").trim()})}),new al.LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(t,[e,r,s])=>{t.summary.changes=parseInt(e,10)||0,t.summary.insertions=parseInt(r,10)||0,t.summary.deletions=parseInt(s,10)||0}),new al.LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(t,[e,r,s])=>{t.summary.changes=parseInt(e,10)||0;let i=parseInt(r,10)||0;s==="-"?t.summary.deletions=i:s==="+"&&(t.summary.insertions=i)})];function pZ(t){let e={author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}};return al.parseStringResponse(e,hZ,t)}Nd.parseCommitResult=pZ});var tj=h(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.commitTask=void 0;var mZ=ej();function gZ(t,e,r){let s=["commit"];return t.forEach(i=>s.push("-m",i)),s.push(...e,...r),{commands:s,format:"utf-8",parser:mZ.parseCommitResult}}qd.commitTask=gZ});var rj=h(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.diffSummaryTask=void 0;var yZ=P0();function vZ(t){return{commands:["diff","--stat=4096",...t],format:"utf-8",parser(e){return yZ.parseDiffResult(e)}}}Bd.diffSummaryTask=vZ});var sj=h(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.parseFetchResult=void 0;var Ld=ue(),bZ=[new Ld.LineParser(/From (.+)$/,(t,[e])=>{t.remote=e}),new Ld.LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(t,[e,r])=>{t.branches.push({name:e,tracking:r})}),new Ld.LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(t,[e,r])=>{t.tags.push({name:e,tracking:r})})];function _Z(t,e){let r={raw:t,remote:null,branches:[],tags:[]};return Ld.parseStringResponse(r,bZ,t,e)}Hd.parseFetchResult=_Z});var ij=h(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.fetchTask=void 0;var wZ=sj();function EZ(t,e,r){let s=["fetch",...r];return t&&e&&s.push(t,e),{commands:s,format:"utf-8",parser:wZ.parseFetchResult}}Ud.fetchTask=EZ});var aj=h(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.parseMoveResult=void 0;var nj=ue(),kZ=[new nj.LineParser(/^Renaming (.+) to (.+)$/,(t,[e,r])=>{t.moves.push({from:e,to:r})})];function DZ(t){return nj.parseStringResponse({moves:[]},kZ,t)}Gd.parseMoveResult=DZ});var oj=h(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.moveTask=void 0;var CZ=aj(),SZ=ue();function xZ(t,e){return{commands:["mv","-v",...SZ.asArray(t),e],format:"utf-8",parser:CZ.parseMoveResult}}Vd.moveTask=xZ});var uj=h(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.pullTask=void 0;var AZ=q0();function OZ(t,e,r){let s=["pull",...r];return t&&e&&s.splice(1,0,t,e),{commands:s,format:"utf-8",parser(i,n){return AZ.parsePullResult(i,n)}}}zd.pullTask=OZ});var cj=h(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.parseGetRemotesVerbose=ho.parseGetRemotes=void 0;var TZ=ue();function RZ(t){let e={};return lj(t,([r])=>e[r]={name:r}),Object.values(e)}ho.parseGetRemotes=RZ;function PZ(t){let e={};return lj(t,([r,s,i])=>{e.hasOwnProperty(r)||(e[r]={name:r,refs:{fetch:"",push:""}}),i&&s&&(e[r].refs[i.replace(/[^a-z]/g,"")]=s)}),Object.values(e)}ho.parseGetRemotesVerbose=PZ;function lj(t,e){TZ.forEachLineWithContent(t,r=>e(r.split(/\s+/)))}});var dj=h(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.removeRemoteTask=Sr.remoteTask=Sr.listRemotesTask=Sr.getRemotesTask=Sr.addRemoteTask=void 0;var fj=cj(),Wd=Ft();function $Z(t,e,r=[]){return Wd.straightThroughStringTask(["remote","add",...r,t,e])}Sr.addRemoteTask=$Z;function FZ(t){let e=["remote"];return t&&e.push("-v"),{commands:e,format:"utf-8",parser:t?fj.parseGetRemotesVerbose:fj.parseGetRemotes}}Sr.getRemotesTask=FZ;function jZ(t=[]){let e=[...t];return e[0]!=="ls-remote"&&e.unshift("ls-remote"),Wd.straightThroughStringTask(e)}Sr.listRemotesTask=jZ;function IZ(t=[]){let e=[...t];return e[0]!=="remote"&&e.unshift("remote"),Wd.straightThroughStringTask(e)}Sr.remoteTask=IZ;function MZ(t){return Wd.straightThroughStringTask(["remote","remove",t])}Sr.removeRemoteTask=MZ});var hj=h(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.stashListTask=void 0;var NZ=$0(),qZ=j0();function BZ(t={},e){let r=qZ.parseLogOptions(t),s=NZ.createListLogSummaryParser(r.splitter,r.fields);return{commands:["stash","list",...r.commands,...e],format:"utf-8",parser:s}}Kd.stashListTask=BZ});var pj=h(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.updateSubModuleTask=cs.subModuleTask=cs.initSubModuleTask=cs.addSubModuleTask=void 0;var LZ=Ft();function HZ(t,e){return Yd(["add",t,e])}cs.addSubModuleTask=HZ;function UZ(t){return Yd(["init",...t])}cs.initSubModuleTask=UZ;function Yd(t){let e=[...t];return e[0]!=="submodule"&&e.unshift("submodule"),LZ.straightThroughStringTask(e)}cs.subModuleTask=Yd;function GZ(t){return Yd(["update",...t])}cs.updateSubModuleTask=GZ});var gj=h(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.parseTagList=po.TagList=void 0;var W0=class{constructor(e,r){this.all=e,this.latest=r}};po.TagList=W0;var VZ=function(t,e=!1){let r=t.split(`
|
|
99
|
+
`).map(WZ).filter(Boolean);e||r.sort(function(i,n){let a=i.split("."),o=n.split(".");if(a.length===1||o.length===1)return zZ(Jd(a[0]),Jd(o[0]));for(let u=0,l=Math.max(a.length,o.length);u<l;u++){let c=mj(Jd(a[u]),Jd(o[u]));if(c)return c}return 0});let s=e?r[0]:[...r].reverse().find(i=>i.indexOf(".")>=0);return new W0(r,s)};po.parseTagList=VZ;function zZ(t,e){let r=isNaN(t),s=isNaN(e);return r!==s?r?1:-1:r?mj(t,e):0}function mj(t,e){return t===e?0:t>e?1:-1}function WZ(t){return t.trim()}function Jd(t){return typeof t=="string"&&parseInt(t.replace(/^\D+/g,""),10)||0}});var yj=h(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.addAnnotatedTagTask=ki.addTagTask=ki.tagListTask=void 0;var KZ=gj();function YZ(t=[]){let e=t.some(r=>/^--sort=/.test(r));return{format:"utf-8",commands:["tag","-l",...t],parser(r){return KZ.parseTagList(r,e)}}}ki.tagListTask=YZ;function JZ(t){return{format:"utf-8",commands:["tag",t],parser(){return{name:t}}}}ki.addTagTask=JZ;function QZ(t,e){return{format:"utf-8",commands:["tag","-a","-m",e,t],parser(){return{name:t}}}}ki.addAnnotatedTagTask=QZ});var wj=h((She,_j)=>{var{GitExecutor:XZ}=sF(),{SimpleGitApi:ZZ}=jF(),{Scheduler:eee}=MF(),{GitLogger:tee}=fd(),{configurationErrorTask:mo}=Ft(),{asArray:go,filterArray:vj,filterPrimitives:ree,filterString:Di,filterStringOrStringArray:Qd,filterType:Vr,getTrailingOptions:Ne,trailingFunctionArgument:Q,trailingOptionsArgument:see}=ue(),{applyPatchTask:iee}=NF(),{branchTask:nee,branchLocalTask:aee,deleteBranchesTask:oee,deleteBranchTask:uee}=YF(),{checkIgnoreTask:lee}=QF(),{checkIsRepoTask:cee}=y0(),{cloneTask:fee,cloneMirrorTask:dee}=ZF(),{cleanWithOptionsTask:hee,isCleanOptionsArray:pee}=_0(),{commitTask:mee}=tj(),{diffSummaryTask:gee}=rj(),{fetchTask:yee}=ij(),{moveTask:vee}=oj(),{pullTask:bee}=uj(),{pushTagsTask:_ee}=B0(),{addRemoteTask:wee,getRemotesTask:Eee,listRemotesTask:kee,remoteTask:Dee,removeRemoteTask:Cee}=dj(),{getResetMode:See,resetTask:xee}=A0(),{stashListTask:Aee}=hj(),{addSubModuleTask:Oee,initSubModuleTask:Tee,subModuleTask:Ree,updateSubModuleTask:Pee}=pj(),{addAnnotatedTagTask:$ee,addTagTask:Fee,tagListTask:jee}=yj(),{straightThroughBufferTask:Iee,straightThroughStringTask:xr}=Ft();function G(t,e){this._executor=new XZ(t.binary,t.baseDir,new eee(t.maxConcurrentProcesses),e),this._logger=new tee}(G.prototype=Object.create(ZZ.prototype)).constructor=G;G.prototype._logger=null;G.prototype.customBinary=function(t){return this._executor.binary=t,this};G.prototype.env=function(t,e){return arguments.length===1&&typeof t=="object"?this._executor.env=t:(this._executor.env=this._executor.env||{})[t]=e,this};G.prototype.stashList=function(t){return this._runTask(Aee(see(arguments)||{},vj(t)&&t||[]),Q(arguments))};function bj(t,e,r,s){return typeof r!="string"?mo(`git.${t}() requires a string 'repoPath'`):e(r,Vr(s,Di),Ne(arguments))}G.prototype.clone=function(){return this._runTask(bj("clone",fee,...arguments),Q(arguments))};G.prototype.mirror=function(){return this._runTask(bj("mirror",dee,...arguments),Q(arguments))};G.prototype.mv=function(t,e){return this._runTask(vee(t,e),Q(arguments))};G.prototype.checkoutLatestTag=function(t){var e=this;return this.pull(function(){e.tags(function(r,s){e.checkout(s.latest,t)})})};G.prototype.commit=function(t,e,r,s){let i=Q(arguments),n=[];return Qd(t)?n.push(...go(t)):console.warn("simple-git deprecation notice: git.commit: requires the commit message to be supplied as a string/string[], this will be an error in version 3"),this._runTask(mee(n,go(Vr(e,Qd,[])),[...Vr(r,vj,[]),...Ne(arguments,0,!0)]),i)};G.prototype.pull=function(t,e,r,s){return this._runTask(bee(Vr(t,Di),Vr(e,Di),Ne(arguments)),Q(arguments))};G.prototype.fetch=function(t,e){return this._runTask(yee(Vr(t,Di),Vr(e,Di),Ne(arguments)),Q(arguments))};G.prototype.silent=function(t){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this._logger.silent(!!t),this};G.prototype.tags=function(t,e){return this._runTask(jee(Ne(arguments)),Q(arguments))};G.prototype.rebase=function(){return this._runTask(xr(["rebase",...Ne(arguments)]),Q(arguments))};G.prototype.reset=function(t){return this._runTask(xee(See(t),Ne(arguments)),Q(arguments))};G.prototype.revert=function(t){let e=Q(arguments);return typeof t!="string"?this._runTask(mo("Commit must be a string"),e):this._runTask(xr(["revert",...Ne(arguments,0,!0),t]),e)};G.prototype.addTag=function(t){let e=typeof t=="string"?Fee(t):mo("Git.addTag requires a tag name");return this._runTask(e,Q(arguments))};G.prototype.addAnnotatedTag=function(t,e){return this._runTask($ee(t,e),Q(arguments))};G.prototype.checkout=function(){let t=["checkout",...Ne(arguments,!0)];return this._runTask(xr(t),Q(arguments))};G.prototype.checkoutBranch=function(t,e,r){return this.checkout(["-b",t,e],Q(arguments))};G.prototype.checkoutLocalBranch=function(t,e){return this.checkout(["-b",t],Q(arguments))};G.prototype.deleteLocalBranch=function(t,e,r){return this._runTask(uee(t,typeof e=="boolean"?e:!1),Q(arguments))};G.prototype.deleteLocalBranches=function(t,e,r){return this._runTask(oee(t,typeof e=="boolean"?e:!1),Q(arguments))};G.prototype.branch=function(t,e){return this._runTask(nee(Ne(arguments)),Q(arguments))};G.prototype.branchLocal=function(t){return this._runTask(aee(),Q(arguments))};G.prototype.raw=function(t){let e=!Array.isArray(t),r=[].slice.call(e?arguments:t,0);for(let i=0;i<r.length&&e;i++)if(!ree(r[i])){r.splice(i,r.length-i);break}r.push(...Ne(arguments,0,!0));var s=Q(arguments);return r.length?this._runTask(xr(r),s):this._runTask(mo("Raw: must supply one or more command to execute"),s)};G.prototype.submoduleAdd=function(t,e,r){return this._runTask(Oee(t,e),Q(arguments))};G.prototype.submoduleUpdate=function(t,e){return this._runTask(Pee(Ne(arguments,!0)),Q(arguments))};G.prototype.submoduleInit=function(t,e){return this._runTask(Tee(Ne(arguments,!0)),Q(arguments))};G.prototype.subModule=function(t,e){return this._runTask(Ree(Ne(arguments)),Q(arguments))};G.prototype.listRemote=function(){return this._runTask(kee(Ne(arguments)),Q(arguments))};G.prototype.addRemote=function(t,e,r){return this._runTask(wee(t,e,Ne(arguments)),Q(arguments))};G.prototype.removeRemote=function(t,e){return this._runTask(Cee(t),Q(arguments))};G.prototype.getRemotes=function(t,e){return this._runTask(Eee(t===!0),Q(arguments))};G.prototype.remote=function(t,e){return this._runTask(Dee(Ne(arguments)),Q(arguments))};G.prototype.tag=function(t,e){let r=Ne(arguments);return r[0]!=="tag"&&r.unshift("tag"),this._runTask(xr(r),Q(arguments))};G.prototype.updateServerInfo=function(t){return this._runTask(xr(["update-server-info"]),Q(arguments))};G.prototype.pushTags=function(t,e){let r=_ee({remote:Vr(t,Di)},Ne(arguments));return this._runTask(r,Q(arguments))};G.prototype.rm=function(t){return this._runTask(xr(["rm","-f",...go(t)]),Q(arguments))};G.prototype.rmKeepLocal=function(t){return this._runTask(xr(["rm","--cached",...go(t)]),Q(arguments))};G.prototype.catFile=function(t,e){return this._catFile("utf-8",arguments)};G.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)};G.prototype._catFile=function(t,e){var r=Q(e),s=["cat-file"],i=e[0];if(typeof i=="string")return this._runTask(mo("Git.catFile: options must be supplied as an array of strings"),r);Array.isArray(i)&&s.push.apply(s,i);let n=t==="buffer"?Iee(s):xr(s);return this._runTask(n,r)};G.prototype.diff=function(t,e){let r=["diff",...Ne(arguments)];return typeof t=="string"&&(r.splice(1,0,t),this._logger.warn("Git#diff: supplying options as a single string is now deprecated, switch to an array of strings")),this._runTask(xr(r),Q(arguments))};G.prototype.diffSummary=function(){return this._runTask(gee(Ne(arguments,1)),Q(arguments))};G.prototype.applyPatch=function(t){let e=Qd(t)?iee(go(t),Ne([].slice.call(arguments,1))):mo("git.applyPatch requires one or more string patches as the first argument");return this._runTask(e,Q(arguments))};G.prototype.revparse=function(){let t=["rev-parse",...Ne(arguments,!0)];return this._runTask(xr(t,!0),Q(arguments))};G.prototype.show=function(t,e){return this._runTask(xr(["show",...Ne(arguments,1)]),Q(arguments))};G.prototype.clean=function(t,e,r){let s=pee(t),i=s&&t.join("")||Vr(t,Di)||"",n=Ne([].slice.call(arguments,s?1:0));return this._runTask(hee(i,n),Q(arguments))};G.prototype.exec=function(t){let e={commands:[],format:"utf-8",parser(){typeof t=="function"&&t()}};return this._runTask(e)};G.prototype.clearQueue=function(){return this};G.prototype.checkIgnore=function(t,e){return this._runTask(lee(go(Vr(t,Qd,[]))),Q(arguments))};G.prototype.checkIsRepo=function(t,e){return this._runTask(cee(Vr(t,Di)),Q(arguments))};_j.exports=G});var K0=h(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.gitInstanceFactory=Ci.gitExportFactory=Ci.esModuleFactory=void 0;var Ej=R$(),$s=V$(),kj=ue(),Mee=wj();function Nee(t){return Object.defineProperties(t,{__esModule:{value:!0},default:{value:t}})}Ci.esModuleFactory=Nee;function qee(t,e){return Object.assign(function(...r){return t.apply(null,r)},Ej.default,e||{})}Ci.gitExportFactory=qee;function Bee(t,e){let r=new $s.PluginStore,s=kj.createInstanceConfig(t&&(typeof t=="string"?{baseDir:t}:t)||{},e);if(!kj.folderExists(s.baseDir))throw new Ej.default.GitConstructError(s,"Cannot use simple-git on a directory that does not exist");return Array.isArray(s.config)&&r.add($s.commandConfigPrefixingPlugin(s.config)),r.add($s.completionDetectionPlugin(s.completion)),s.progress&&r.add($s.progressMonitorPlugin(s.progress)),s.timeout&&r.add($s.timeoutPlugin(s.timeout)),s.spawnOptions&&r.add($s.spawnOptionsPlugin(s.spawnOptions)),r.add($s.errorDetectionPlugin($s.errorDetectionHandler(!0))),s.errors&&r.add($s.errorDetectionPlugin(s.errors)),new Mee(s,r)}Ci.gitInstanceFactory=Bee});var Cj=h(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.gitP=void 0;var Lee=La(),Hee=K0(),Uee=["customBinary","env","outputHandler","silent"],Dj=["add","addAnnotatedTag","addConfig","addRemote","addTag","applyPatch","binaryCatFile","branch","branchLocal","catFile","checkIgnore","checkIsRepo","checkout","checkoutBranch","checkoutLatestTag","checkoutLocalBranch","clean","clone","commit","cwd","deleteLocalBranch","deleteLocalBranches","diff","diffSummary","exec","fetch","getRemotes","init","listConfig","listRemote","log","merge","mergeFromTo","mirror","mv","pull","push","pushTags","raw","rebase","remote","removeRemote","reset","revert","revparse","rm","rmKeepLocal","show","stash","stashList","status","subModule","submoduleAdd","submoduleInit","submoduleUpdate","tag","tags","updateServerInfo"];function Gee(...t){let e,r=Promise.resolve();try{e=Hee.gitInstanceFactory(...t)}catch(u){r=Promise.reject(u)}function s(){return n}function i(){return r}let n=[...Uee,...Dj].reduce((u,l)=>{let c=Dj.includes(l),f=c?a(l,e):o(l,e,u);return Object.defineProperty(u,l,{enumerable:!1,configurable:!1,value:e?f:c?i:s}),u},{});return n;function a(u,l){return function(...c){if(typeof c[c.length]=="function")throw new TypeError("Promise interface requires that handlers are not supplied inline, trailing function not allowed in call to "+u);return r.then(function(){return new Promise(function(f,d){let p=(m,g)=>{if(m)return d(Vee(m));f(g)};c.push(p),l[u].apply(l,c)})})}}function o(u,l,c){return(...f)=>(l[u](...f),c)}}Xd.gitP=Gee;function Vee(t){return t instanceof Error?t:typeof t=="string"?new Error(t):new Lee.GitResponseError(t)}});var xj=h((Ohe,Sj)=>{var{gitP:zee}=Cj(),{esModuleFactory:Wee,gitInstanceFactory:Kee,gitExportFactory:Yee}=K0();Sj.exports=Wee(Yee(Kee,{gitP:zee}))});var Lj=ne(qn());var aa=ne(qn());var wm=ne(require("esbuild")),ws=ne(Bs()),qt=ne(require("path")),H1=ne(require("ts-morph")),U1=ne(Cw());var KN=ne(Bs());function Sw(){return{name:"native-node-modules",setup(t){t.onResolve({filter:/\.node$/,namespace:"file"},r=>({path:require.resolve(r.path,{paths:[r.resolveDir]}),namespace:"node-file"})),t.onLoad({filter:/.*/,namespace:"node-file"},r=>({contents:`
|
|
100
100
|
import path from ${JSON.stringify(r.path)}
|
|
101
101
|
try { module.exports = require(path) }
|
|
102
102
|
catch {}
|
|
103
|
-
`})),t.onResolve({filter:/\.node$/,namespace:"node-file"},r=>({path:r.path,namespace:"file"}));let e=t.initialOptions;e.loader=e.loader||{},e.loader[".node"]="file"}}}function Sw(){return{name:"esbuild-plugin-node-externals",setup(t){t.onResolve({filter:/(^node:)/},e=>({path:e.path.slice(5),external:!0}))}}}var U1=ue(Ok()),G1=ue(S1());function x1(t,e,r=null){let s,i=r;return async function(...n){return new Promise(a=>{s&&clearTimeout(s),s=setTimeout(()=>a(i=t(...n)),e),setTimeout(()=>a(i),e)})}}var V1=ue(q1());function B1(t){return(t.startsWith("@")?t.slice(t.indexOf("/")+1):t).split("-").map(r=>r.slice(0,1).toUpperCase()+r.slice(1).toLowerCase()).join("")}var hr=class{constructor(e){this.options=e}set isWatch(e){this.options.isWatch=e}static async getDeps(e){let r=await(0,ws.readJson)(qt.resolve(e,"package.json"));return Object.keys({...r.dependencies,...r.devDependencies,...r.peerDependencies})}static async getPlatform(e){let r=qt.resolve(e,"tsconfig.json");if(await(0,ws.pathExists)(r)&&(0,V1.parse)(await(0,ws.readFile)(r,"utf-8")).compilerOptions.lib.some(n=>n.toLowerCase()==="dom"))return"browser";let s=qt.resolve(e,"package.json");if(await(0,ws.pathExists)(s)){let i=await(0,ws.readJson)(s);if(Object.keys(i.devDependencies??{}).includes("@types/node"))return"node"}return"neutral"}static getWatchOptions(e){return{pattern:"src/**/*.ts",options:{cwd:e,ignore:"**/__tests__/**/*"}}}async genDTS(){let e=this.options.base,{pattern:r,options:s}=hr.getWatchOptions(this.options.base),i=new L1.Project({tsConfigFilePath:qt.resolve(e,"tsconfig.json"),skipAddingFilesFromTsConfig:!0,compilerOptions:{emitDeclarationOnly:!0,noEmit:!1,incremental:this.options.isWatch}}),n=(await(0,H1.promise)(r,s)).map(a=>qt.resolve(e,a));i.addSourceFilesAtPaths(n),await i.emit({emitOnlyDtsFiles:!0})}getBuildCjsOption({deps:e,platform:r}){return{entryPoints:[qt.resolve(this.options.base,"./src/index.ts")],outfile:qt.resolve(this.options.base,"./dist/index.js"),format:"cjs",sourcemap:!0,bundle:!0,external:[...hr.globalExternal,...e],platform:r,minify:!this.options.isWatch,incremental:this.options.isWatch,metafile:this.options.isWatch}}getBuildESMOption({deps:e,platform:r}){return{entryPoints:[qt.resolve(this.options.base,"./src/index.ts")],outfile:qt.resolve(this.options.base,"./dist/index.esm.js"),format:"esm",sourcemap:!0,bundle:!0,external:[...hr.globalExternal,...e],platform:r,minify:!this.options.isWatch,incremental:this.options.isWatch,metafile:this.options.isWatch}}getBuildIifeOption({platform:e,globalName:r}){return{entryPoints:[qt.resolve(this.options.base,"./src/index.ts")],outfile:qt.resolve(this.options.base,"./dist/index.iife.js"),format:"iife",sourcemap:!0,bundle:!0,external:[...hr.globalExternal],platform:e,minify:!this.options.isWatch,incremental:this.options.isWatch,metafile:this.options.isWatch,globalName:r}}getBuildCliOption({platform:e}){let r=hr.getPlugins(e);return{entryPoints:[qt.resolve(this.options.base,"./src/bin.ts")],outfile:qt.resolve(this.options.base,"./dist/bin.js"),format:"cjs",sourcemap:!0,platform:e,bundle:!0,banner:{js:"#!/usr/bin/env node"},external:[...hr.globalExternal],plugins:r,minify:!this.options.isWatch,incremental:this.options.isWatch,metafile:this.options.isWatch}}static getPlugins(e){let r=[];return e==="node"&&r.push(Sw(),Cw()),r}async build(e){await(0,_m.build)(e)}async getTasks(){let e=await hr.getDeps(this.options.base),r=await hr.getPlatform(this.options.base);return{esm:{title:"\u6784\u5EFA esm",task:()=>this.build(this.getBuildESMOption({deps:e,platform:r}))},cjs:{title:"\u6784\u5EFA cjs",task:()=>this.build(this.getBuildCjsOption({deps:e,platform:r}))},iife:{title:"\u6784\u5EFA iife",task:async()=>await this.build(this.getBuildIifeOption({platform:r,globalName:B1((await(0,ws.readJson)(qt.resolve(this.options.base,"./package.json"))).name)}))},cli:{title:"\u6784\u5EFA cli",task:()=>(0,_m.build)(this.getBuildCliOption({deps:e,platform:r}))},dts:{title:"\u751F\u6210\u7C7B\u578B\u5B9A\u4E49",task:()=>this.genDTS()}}}static async execTask(e,r){let s=Date.now();e.add(r.title,{text:r.title});try{await r.task(),e.succeed(r.title,{text:`${r.title}: ${Date.now()-s}ms`})}catch{e.fail(r.title,{text:r.title})}}async execTasks(e){let r=async()=>{let n=Date.now(),a=new G1.default;await Promise.all(e.map(async o=>hr.execTask(a,o))),console.log(`\u6784\u5EFA\u5B8C\u6210: ${Date.now()-n}ms`)};if(!this.options.isWatch){await r();return}let{pattern:s,options:i}=hr.getWatchOptions(this.options.base);await new Promise((n,a)=>{(0,U1.watch)(s,i).on("error",a).on("all",x1(r,10))})}},bc=hr;Nn(bc,"globalExternal",["esbuild","pnpapi","ts-morph","ssh2"]);var z1=ue(require("path")),Es=new bc({base:z1.default.resolve(),isWatch:!1}),W1=new aa.Command("build").addCommand(new aa.Command("lib").description("\u4F7F\u7528 esbulid \u5C06 ts lib \u6253\u5305\u5230 dist \u76EE\u5F55\uFF0C\u683C\u5F0F\u4E3A esm/cjs").option("-w --watch","\u76D1\u89C6\u6A21\u5F0F").action(async t=>{Es.isWatch=!!t.watch;let e=await Es.getTasks();await Es.execTasks([e.esm,e.cjs,e.dts])}).alias("pkg")).addCommand(new aa.Command("cli").description("\u4F7F\u7528 esbulid \u5C06 ts cli \u6253\u5305\u5230 dist \u76EE\u5F55\uFF0C\u683C\u5F0F\u4E3A cjs\uFF0C\u5E76\u4E14\u6346\u7ED1\u4F9D\u8D56").option("-w, --watch","\u76D1\u89C6\u6A21\u5F0F").action(async t=>{Es.isWatch=!!t.watch;let e=await Es.getTasks();await Es.execTasks([e.cli,e.esm,e.cjs,e.dts])})).addCommand(["iife","cli","esm","cjs","dts"].reduce((t,e)=>(t.addCommand(new aa.Command(e).description(`\u5355\u72EC\u6784\u5EFA ${e}`).option("-w --watch","\u76D1\u89C6\u6A21\u5F0F").action(async r=>{Es.isWatch=!!r.watch;let s=await Es.getTasks();await Es.execTasks([s[e]])})),t),new aa.Command("single").description("\u5355\u72EC\u6784\u5EFA\u67D0\u79CD\u7C7B\u578B\u7684 bundle")));var Hc=ue(qn());var Zr=ue(require("path")),_t=ue(Bs()),Lc=ue(Um());var nr=ue(Bs()),ri=ue(require("path"));var E8=typeof global=="object"&&global&&global.Object===Object&&global,xc=E8;var k8=typeof self=="object"&&self&&self.Object===Object&&self,D8=xc||k8||Function("return this")(),mr=D8;var C8=mr.Symbol,ca=C8;var QC=Object.prototype,S8=QC.hasOwnProperty,x8=QC.toString,uu=ca?ca.toStringTag:void 0;function A8(t){var e=S8.call(t,uu),r=t[uu];try{t[uu]=void 0;var s=!0}catch{}var i=x8.call(t);return s&&(e?t[uu]=r:delete t[uu]),i}var XC=A8;var O8=Object.prototype,T8=O8.toString;function R8(t){return T8.call(t)}var ZC=R8;var P8="[object Null]",$8="[object Undefined]",eS=ca?ca.toStringTag:void 0;function F8(t){return t==null?t===void 0?$8:P8:eS&&eS in Object(t)?XC(t):ZC(t)}var Js=F8;function j8(t){return t!=null&&typeof t=="object"}var Xr=j8;var I8=Array.isArray,lu=I8;function M8(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Wt=M8;function N8(t){return t}var Ac=N8;var q8="[object AsyncFunction]",B8="[object Function]",L8="[object GeneratorFunction]",H8="[object Proxy]";function U8(t){if(!Wt(t))return!1;var e=Js(t);return e==B8||e==L8||e==q8||e==H8}var fa=U8;var G8=mr["__core-js_shared__"],Oc=G8;var tS=function(){var t=/[^.]+$/.exec(Oc&&Oc.keys&&Oc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function V8(t){return!!tS&&tS in t}var rS=V8;var z8=Function.prototype,W8=z8.toString;function K8(t){if(t!=null){try{return W8.call(t)}catch{}try{return t+""}catch{}}return""}var sS=K8;var Y8=/[\\^$.*+?()[\]{}|]/g,J8=/^\[object .+?Constructor\]$/,Q8=Function.prototype,X8=Object.prototype,Z8=Q8.toString,e6=X8.hasOwnProperty,t6=RegExp("^"+Z8.call(e6).replace(Y8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function r6(t){if(!Wt(t)||rS(t))return!1;var e=fa(t)?t6:J8;return e.test(sS(t))}var iS=r6;function s6(t,e){return t==null?void 0:t[e]}var nS=s6;function i6(t,e){var r=nS(t,e);return iS(r)?r:void 0}var da=i6;var aS=Object.create,n6=function(){function t(){}return function(e){if(!Wt(e))return{};if(aS)return aS(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),oS=n6;function a6(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var uS=a6;function o6(t,e){var r=-1,s=t.length;for(e||(e=Array(s));++r<s;)e[r]=t[r];return e}var lS=o6;var u6=800,l6=16,c6=Date.now;function f6(t){var e=0,r=0;return function(){var s=c6(),i=l6-(s-r);if(r=s,i>0){if(++e>=u6)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var cS=f6;function d6(t){return function(){return t}}var fS=d6;var h6=function(){try{var t=da(Object,"defineProperty");return t({},"",{}),t}catch{}}(),ha=h6;var p6=ha?function(t,e){return ha(t,"toString",{configurable:!0,enumerable:!1,value:fS(e),writable:!0})}:Ac,dS=p6;var m6=cS(dS),hS=m6;var g6=9007199254740991,y6=/^(?:0|[1-9]\d*)$/;function v6(t,e){var r=typeof t;return e=e??g6,!!e&&(r=="number"||r!="symbol"&&y6.test(t))&&t>-1&&t%1==0&&t<e}var Tc=v6;function b6(t,e,r){e=="__proto__"&&ha?ha(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var pa=b6;function _6(t,e){return t===e||t!==t&&e!==e}var Qs=_6;var w6=Object.prototype,E6=w6.hasOwnProperty;function k6(t,e,r){var s=t[e];(!(E6.call(t,e)&&Qs(s,r))||r===void 0&&!(e in t))&&pa(t,e,r)}var pS=k6;function D6(t,e,r,s){var i=!r;r||(r={});for(var n=-1,a=e.length;++n<a;){var o=e[n],u=s?s(r[o],t[o],o,r,t):void 0;u===void 0&&(u=t[o]),i?pa(r,o,u):pS(r,o,u)}return r}var mS=D6;var gS=Math.max;function C6(t,e,r){return e=gS(e===void 0?t.length-1:e,0),function(){for(var s=arguments,i=-1,n=gS(s.length-e,0),a=Array(n);++i<n;)a[i]=s[e+i];i=-1;for(var o=Array(e+1);++i<e;)o[i]=s[i];return o[e]=r(a),uS(t,this,o)}}var yS=C6;function S6(t,e){return hS(yS(t,e,Ac),t+"")}var vS=S6;var x6=9007199254740991;function A6(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=x6}var Rc=A6;function O6(t){return t!=null&&Rc(t.length)&&!fa(t)}var ma=O6;function T6(t,e,r){if(!Wt(r))return!1;var s=typeof e;return(s=="number"?ma(r)&&Tc(e,r.length):s=="string"&&e in r)?Qs(r[e],t):!1}var bS=T6;function R6(t){return vS(function(e,r){var s=-1,i=r.length,n=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(n=t.length>3&&typeof n=="function"?(i--,n):void 0,a&&bS(r[0],r[1],a)&&(n=i<3?void 0:n,i=1),e=Object(e);++s<i;){var o=r[s];o&&t(e,o,s,n)}return e})}var _S=R6;var P6=Object.prototype;function $6(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||P6;return t===r}var Pc=$6;function F6(t,e){for(var r=-1,s=Array(t);++r<t;)s[r]=e(r);return s}var wS=F6;var j6="[object Arguments]";function I6(t){return Xr(t)&&Js(t)==j6}var Gm=I6;var ES=Object.prototype,M6=ES.hasOwnProperty,N6=ES.propertyIsEnumerable,q6=Gm(function(){return arguments}())?Gm:function(t){return Xr(t)&&M6.call(t,"callee")&&!N6.call(t,"callee")},cu=q6;function B6(){return!1}var kS=B6;var DS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,CS=DS&&typeof module=="object"&&module&&!module.nodeType&&module,L6=CS&&CS.exports===DS,SS=L6?mr.Buffer:void 0,H6=SS?SS.isBuffer:void 0,U6=H6||kS,$c=U6;var G6="[object Arguments]",V6="[object Array]",z6="[object Boolean]",W6="[object Date]",K6="[object Error]",Y6="[object Function]",J6="[object Map]",Q6="[object Number]",X6="[object Object]",Z6="[object RegExp]",e9="[object Set]",t9="[object String]",r9="[object WeakMap]",s9="[object ArrayBuffer]",i9="[object DataView]",n9="[object Float32Array]",a9="[object Float64Array]",o9="[object Int8Array]",u9="[object Int16Array]",l9="[object Int32Array]",c9="[object Uint8Array]",f9="[object Uint8ClampedArray]",d9="[object Uint16Array]",h9="[object Uint32Array]",Ie={};Ie[n9]=Ie[a9]=Ie[o9]=Ie[u9]=Ie[l9]=Ie[c9]=Ie[f9]=Ie[d9]=Ie[h9]=!0;Ie[G6]=Ie[V6]=Ie[s9]=Ie[z6]=Ie[i9]=Ie[W6]=Ie[K6]=Ie[Y6]=Ie[J6]=Ie[Q6]=Ie[X6]=Ie[Z6]=Ie[e9]=Ie[t9]=Ie[r9]=!1;function p9(t){return Xr(t)&&Rc(t.length)&&!!Ie[Js(t)]}var xS=p9;function m9(t){return function(e){return t(e)}}var AS=m9;var OS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fu=OS&&typeof module=="object"&&module&&!module.nodeType&&module,g9=fu&&fu.exports===OS,Vm=g9&&xc.process,y9=function(){try{var t=fu&&fu.require&&fu.require("util").types;return t||Vm&&Vm.binding&&Vm.binding("util")}catch{}}(),zm=y9;var TS=zm&&zm.isTypedArray,v9=TS?AS(TS):xS,Fc=v9;var b9=Object.prototype,_9=b9.hasOwnProperty;function w9(t,e){var r=lu(t),s=!r&&cu(t),i=!r&&!s&&$c(t),n=!r&&!s&&!i&&Fc(t),a=r||s||i||n,o=a?wS(t.length,String):[],u=o.length;for(var l in t)(e||_9.call(t,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||n&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Tc(l,u)))&&o.push(l);return o}var RS=w9;function E9(t,e){return function(r){return t(e(r))}}var PS=E9;function k9(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var $S=k9;var D9=Object.prototype,C9=D9.hasOwnProperty;function S9(t){if(!Wt(t))return $S(t);var e=Pc(t),r=[];for(var s in t)s=="constructor"&&(e||!C9.call(t,s))||r.push(s);return r}var FS=S9;function x9(t){return ma(t)?RS(t,!0):FS(t)}var jc=x9;var A9=da(Object,"create"),Ds=A9;function O9(){this.__data__=Ds?Ds(null):{},this.size=0}var jS=O9;function T9(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var IS=T9;var R9="__lodash_hash_undefined__",P9=Object.prototype,$9=P9.hasOwnProperty;function F9(t){var e=this.__data__;if(Ds){var r=e[t];return r===R9?void 0:r}return $9.call(e,t)?e[t]:void 0}var MS=F9;var j9=Object.prototype,I9=j9.hasOwnProperty;function M9(t){var e=this.__data__;return Ds?e[t]!==void 0:I9.call(e,t)}var NS=M9;var N9="__lodash_hash_undefined__";function q9(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ds&&e===void 0?N9:e,this}var qS=q9;function ga(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}ga.prototype.clear=jS;ga.prototype.delete=IS;ga.prototype.get=MS;ga.prototype.has=NS;ga.prototype.set=qS;var Wm=ga;function B9(){this.__data__=[],this.size=0}var BS=B9;function L9(t,e){for(var r=t.length;r--;)if(Qs(t[r][0],e))return r;return-1}var Xs=L9;var H9=Array.prototype,U9=H9.splice;function G9(t){var e=this.__data__,r=Xs(e,t);if(r<0)return!1;var s=e.length-1;return r==s?e.pop():U9.call(e,r,1),--this.size,!0}var LS=G9;function V9(t){var e=this.__data__,r=Xs(e,t);return r<0?void 0:e[r][1]}var HS=V9;function z9(t){return Xs(this.__data__,t)>-1}var US=z9;function W9(t,e){var r=this.__data__,s=Xs(r,t);return s<0?(++this.size,r.push([t,e])):r[s][1]=e,this}var GS=W9;function ya(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}ya.prototype.clear=BS;ya.prototype.delete=LS;ya.prototype.get=HS;ya.prototype.has=US;ya.prototype.set=GS;var Zs=ya;var K9=da(mr,"Map"),Ic=K9;function Y9(){this.size=0,this.__data__={hash:new Wm,map:new(Ic||Zs),string:new Wm}}var VS=Y9;function J9(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var zS=J9;function Q9(t,e){var r=t.__data__;return zS(e)?r[typeof e=="string"?"string":"hash"]:r.map}var ei=Q9;function X9(t){var e=ei(this,t).delete(t);return this.size-=e?1:0,e}var WS=X9;function Z9(t){return ei(this,t).get(t)}var KS=Z9;function e4(t){return ei(this,t).has(t)}var YS=e4;function t4(t,e){var r=ei(this,t),s=r.size;return r.set(t,e),this.size+=r.size==s?0:1,this}var JS=t4;function va(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}va.prototype.clear=VS;va.prototype.delete=WS;va.prototype.get=KS;va.prototype.has=YS;va.prototype.set=JS;var QS=va;var r4=PS(Object.getPrototypeOf,Object),Mc=r4;var s4="[object Object]",i4=Function.prototype,n4=Object.prototype,XS=i4.toString,a4=n4.hasOwnProperty,o4=XS.call(Object);function u4(t){if(!Xr(t)||Js(t)!=s4)return!1;var e=Mc(t);if(e===null)return!0;var r=a4.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&XS.call(r)==o4}var ZS=u4;function l4(){this.__data__=new Zs,this.size=0}var ex=l4;function c4(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var tx=c4;function f4(t){return this.__data__.get(t)}var rx=f4;function d4(t){return this.__data__.has(t)}var sx=d4;var h4=200;function p4(t,e){var r=this.__data__;if(r instanceof Zs){var s=r.__data__;if(!Ic||s.length<h4-1)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new QS(s)}return r.set(t,e),this.size=r.size,this}var ix=p4;function ba(t){var e=this.__data__=new Zs(t);this.size=e.size}ba.prototype.clear=ex;ba.prototype.delete=tx;ba.prototype.get=rx;ba.prototype.has=sx;ba.prototype.set=ix;var nx=ba;var ax=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ox=ax&&typeof module=="object"&&module&&!module.nodeType&&module,m4=ox&&ox.exports===ax,ux=m4?mr.Buffer:void 0,lx=ux?ux.allocUnsafe:void 0;function g4(t,e){if(e)return t.slice();var r=t.length,s=lx?lx(r):new t.constructor(r);return t.copy(s),s}var cx=g4;var y4=mr.Uint8Array,Km=y4;function v4(t){var e=new t.constructor(t.byteLength);return new Km(e).set(new Km(t)),e}var fx=v4;function b4(t,e){var r=e?fx(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var dx=b4;function _4(t){return typeof t.constructor=="function"&&!Pc(t)?oS(Mc(t)):{}}var hx=_4;function w4(t){return function(e,r,s){for(var i=-1,n=Object(e),a=s(e),o=a.length;o--;){var u=a[t?o:++i];if(r(n[u],u,n)===!1)break}return e}}var px=w4;var E4=px(),mx=E4;function k4(t,e,r){(r!==void 0&&!Qs(t[e],r)||r===void 0&&!(e in t))&&pa(t,e,r)}var du=k4;function D4(t){return Xr(t)&&ma(t)}var gx=D4;function C4(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var hu=C4;function S4(t){return mS(t,jc(t))}var yx=S4;function x4(t,e,r,s,i,n,a){var o=hu(t,r),u=hu(e,r),l=a.get(u);if(l){du(t,r,l);return}var c=n?n(o,u,r+"",t,e,a):void 0,f=c===void 0;if(f){var d=lu(u),m=!d&&$c(u),p=!d&&!m&&Fc(u);c=u,d||m||p?lu(o)?c=o:gx(o)?c=lS(o):m?(f=!1,c=cx(u,!0)):p?(f=!1,c=dx(u,!0)):c=[]:ZS(u)||cu(u)?(c=o,cu(o)?c=yx(o):(!Wt(o)||fa(o))&&(c=hx(u))):f=!1}f&&(a.set(u,c),i(c,u,s,n,a),a.delete(u)),du(t,r,c)}var vx=x4;function bx(t,e,r,s,i){t!==e&&mx(e,function(n,a){if(i||(i=new nx),Wt(n))vx(t,e,a,r,bx,s,i);else{var o=s?s(hu(t,a),n,a+"",t,e,i):void 0;o===void 0&&(o=n),du(t,a,o)}},jc)}var _x=bx;var A4=_S(function(t,e,r){_x(t,e,r)}),Nc=A4;var O4="@liuli-util/prettier-standard-config",T4="0.1.0",R4=".prettierrc.json",P4="MIT",$4={access:"public",registry:"https://registry.npmjs.org/"},wx={name:O4,version:T4,main:R4,license:P4,publishConfig:$4};var F4="@liuli-util/eslint-config-ts",j4="0.2.0",I4=".eslintrc.json",M4="MIT",N4={access:"public",registry:"https://registry.npmjs.org/"},q4={type:"git",url:"https://github.com/rxliuli/liuli-tools",directory:"libs/eslint-config-ts"},B4={"@types/eslint":"^7","@typescript-eslint/eslint-plugin":"^4.29.1","@typescript-eslint/parser":"^4.29.1",eslint:"^7.32.0","eslint-config-prettier":"^8.3.0"},L4={typescript:">=4"},Ex={name:F4,version:j4,main:I4,license:M4,publishConfig:N4,repository:q4,dependencies:B4,peerDependencies:L4};var H4="@liuli-util/eslint-config-react-ts",U4="0.1.0",G4=".eslintrc.json",V4="MIT",z4={access:"public",registry:"https://registry.npmjs.org/"},W4={type:"git",url:"https://github.com/rxliuli/liuli-tools",directory:"libs/eslint-config-react-ts"},K4={"@liuli-util/eslint-config-ts":"^0.2.0","@types/eslint":"^7.28.0","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2",eslint:"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-react-hooks":"^4.2.0"},Y4={typescript:">=4"},kx={name:H4,version:U4,main:G4,license:V4,publishConfig:z4,repository:W4,dependencies:K4,peerDependencies:Y4};var J4="@liuli-util/commitlint-standard-config",Q4="0.1.6",X4=".commitlintrc.json",Z4="MIT",eH={access:"public",registry:"https://registry.npmjs.org/"},tH={"@commitlint/config-conventional":"^13.1.0"},rH={"@commitlint/cli":"^12.1.4"},Dx={name:J4,version:Q4,main:X4,license:Z4,publishConfig:eH,dependencies:tH,peerDependencies:rH};var Ox=ue(Um());var pu=ue(Bs()),mu=ue(require("path"));function Cx(t,e,r=s=>s){return t.reduce((s,i,n,a)=>s.set(e(i,n,a),r(i,n,a)),new Map)}function Sx(t,e){return t?t.includes(e)?t:t+" && "+e:e}var xx=ue(require("path"));function Ym(t,e){let r=e(t);function s(i){if(i)return t;let n=xx.default.dirname(t);return n===t?null:Ym(n,e)}return r instanceof Promise?r.then(s):s(r)}var gr;(function(n){n.Filter="filter",n.Map="map",n.ForEach="forEach",n.Reduce="reduce",n.FlatMap="flatMap"})(gr||(gr={}));var wa=class{constructor(e,r){this.type=e;this.args=r;this.type=e,this.args=r}};Nn(wa,"Type",gr);var Nr=class{constructor(e){this.arr=e}static reduce(e,r,s){return e.reduce((i,n,a)=>i.then(o=>r(o,n,a)),Promise.resolve(s))}static map(e,r){return Promise.all(e.map((s,i)=>r(s,i)))}static async filter(e,r){let s=[];return await Nr.map(e,async(i,n)=>{await r(i,n)&&s.push(i)}),s}static async flatMap(e,r){return(await Promise.all(e.map((s,i)=>r(s,i)))).flatMap(s=>s)}static async forEach(e,r){await Nr.map(e,r)}tasks=[];map(e){return this.tasks.push(new wa(gr.Map,[e])),this}flatMap(e){return this.tasks.push(new wa(gr.FlatMap,[e])),this}filter(e){return this.tasks.push(new wa(gr.Filter,[e])),this}async forEach(e){this.tasks.push(new wa(gr.Map,[e])),await this}then(e,r){let s=this.value();return s.then(i=>(e&&e(s),i)).catch(i=>{throw r&&r(i),i}),s}async value(){let e=this.arr;for(let r of this.tasks)switch(r.type){case gr.Filter:e=await Nr.filter(e,r.args[0]);break;case gr.Map:e=await Nr.map(e,r.args[0]);break;case gr.FlatMap:e=await Nr.flatMap(e,r.args[0]);break;case gr.ForEach:await Nr.forEach(e,r.args[0]);return;case gr.Reduce:return await Nr.reduce(e,r.args[0],r.args[1])}return e}};async function xs(t=process.cwd()){return await(0,pu.pathExists)(mu.default.resolve(t,"./package.json"))}async function Zi(t=process.cwd()){return await xs(t)?!!(await(0,pu.readJson)(mu.default.resolve(t,"./package.json"))).workspaces:!1}async function qc(t=process.cwd()){return!await xs(t)||await Zi(t)?!1:await Ym(mu.default.dirname(t),Zi)!==null}async function Bc(t,e=process.cwd()){if(!await xs(e))return!1;let r=await(0,pu.readJson)(mu.default.resolve(e,"./package.json")),s=new Set(Object.keys({...r.dependencies,...r.devDependencies}));return t.every(i=>s.has(i))}var Ax=ue(require("path")),Ea=class{};Nn(Ea,"RootPath",Ax.default.resolve(__dirname,".."));async function en(t,e){let r=ri.default.resolve(t,"./package.json");await(0,nr.writeJson)(r,Nc(await(0,nr.readJson)(r),e),{spaces:2})}var gu=class{constructor(e){this.base=e}syncConfigs=[{type:"workspaces",handler:async()=>{let e=ri.default.resolve(this.base,"./package.json"),r=ri.default.resolve(this.base,"lerna.json"),s=await(0,nr.readJson)(e),i=await(0,nr.readJson)(r);i.packages=s.workspaces,await(0,nr.writeJson)(r,i,{spaces:2})},when:Zi},{type:"prettier",handler:async()=>{await en(this.base,{prettier:"@liuli-util/prettier-standard-config",devDependencies:{prettier:"^2.3.2","@liuli-util/prettier-standard-config":`^${wx.version}`}})},async when(){return await xs()&&(await Zi()||!await qc())}},{type:"commitlint",handler:async()=>{await en(this.base,{"simple-git-hooks":{"commit-msg":"yarn commitlint --edit $1"},commitlint:{extends:["@liuli-util/commitlint-standard-config"]},devDependencies:{"@commitlint/cli":"^12.1.4","@liuli-util/commitlint-standard-config":`^${Dx.version}`}})},async when(){return await xs()&&(await Zi()||!await qc())}},{type:"gitignore",handler:async()=>{let e=ri.default.resolve(this.base,".gitignore");await(0,nr.writeFile)(e,await(0,nr.readFile)(ri.default.resolve(Ea.RootPath,"_gitignore"),"utf-8"))}},{type:"eslint-ts",handler:async()=>{await en(this.base,{eslintConfig:{extends:["@liuli-util/eslint-config-ts"]},devDependencies:{"@liuli-util/eslint-config-ts":`^${Ex.version}`}})},async when(){return await xs()&&!await Bc(["vue"])&&!await Bc(["react"])}},{type:"eslint-react-ts",handler:async()=>{await en(this.base,{eslintConfig:{extends:["@liuli-util/eslint-config-react-ts"]},devDependencies:{"@liuli-util/eslint-config-react-ts":`^${kx.version}`}})},async when(){return await xs()&&await Bc(["react"])}},{type:"jest",handler:async()=>{await en(this.base,{jest:{preset:"ts-jest",testMatch:["<rootDir>/src/**/__tests__/*.test.ts"]},devDependencies:{jest:"^27.4.3","ts-jest":"^27.0.7"}})}},{type:"simplehooks",handler:async()=>{let e=await(0,nr.readJson)(ri.default.resolve(this.base,"./package.json")),r=[];e.prettier&&r.push("prettier --write"),e.eslintConfig&&r.push("eslint --fix");let s={scripts:{postinstall:Sx(e?.scripts?.postinstall,"npx simple-git-hooks")},"simple-git-hooks":{"pre-commit":"yarn lint-staged"},"lint-staged":{"*.{ts,tsx,js,jsx,css,vue}":[...r,"git add"]},devDependencies:{"simple-git-hooks":"^2.5.1","lint-staged":"^11.1.1"}};e.commitlint&&(s=Nc(s,{"simple-git-hooks":{"commit-msg":"yarn commitlint --edit $1"}})),await en(this.base,s)},async when(){return await xs()&&(await Zi()||!await qc())}}];async sync(){let{sync:e}=await(0,nr.readJson)(ri.default.resolve(this.base,"package.json"));if(!e)return;let r=this.syncConfigs.filter(s=>e.includes(s.type));for(let s of r)await s.handler()}async init(){let e=Cx(await Nr.filter(this.syncConfigs,async s=>s.when?await s.when():!0),s=>s.type),r=await(0,Ox.prompt)({type:"multiselect",message:"\u8BF7\u9009\u62E9\u9700\u8981\u540C\u6B65\u7684\u914D\u7F6E\u9879",name:"sync",choices:[...e.keys()]});await en(this.base,{sync:r.sync})}};var tn;(function(r){r.Cli="cli",r.Lib="lib"})(tn||(tn={}));var ka=class{async generate(e){if(!e.dest){let{dest:i}=await(0,Lc.prompt)({name:"dest",type:"input",message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D",validate(n){return n.trim()!==""}});e.dest=Zr.default.resolve(i)}if(!e.template){let{template:i}=await(0,Lc.prompt)({name:"template",type:"select",message:"\u8BF7\u9009\u62E9\u6A21\u677F",choices:[tn.Lib,tn.Cli]});e.template=i}let r=Zr.default.resolve(Ea.RootPath,`templates/${e.template}`),s=Zr.default.resolve(e.dest);if(await(0,_t.pathExists)(s)&&(await(0,_t.readdir)(s)).some(i=>(0,_t.pathExists)(i))){let{override:i}=await(0,Lc.prompt)({name:"override",type:"confirm",initial:!0,message:"\u76EE\u6807\u4F4D\u7F6E\u4E0D\u662F\u4E00\u4E2A\u7A7A\u76EE\u5F55\uFF0C\u786E\u8BA4\u8981\u8986\u76D6\u4E48\uFF1F"});if(!i)return}if(await(0,_t.remove)(s),await(0,_t.copy)(r,s,{filter:i=>Zr.default.basename(i)!=="node_modules"}),await ka.updatePackageJSON(s),await ka.updateReadme(s),e.initSync){let i=new gu(Zr.default.resolve(e.dest));await i.init(),await i.sync()}}static async updatePackageJSON(e){let r=Zr.default.resolve(e,"package.json");await(0,_t.writeJSON)(r,{...await(0,_t.readJSON)(r),name:Zr.default.basename(e)},{spaces:2})}static async updateReadme(e){let r=Zr.default.resolve(e,"README.md"),s=await(0,_t.readFile)(r,"utf-8");s=s.replace("template",Zr.default.basename(e)),await(0,_t.writeFile)(r,s)}};var sH=new ka,Tx=new Hc.Option("--template [template]","\u6A21\u677F\u7C7B\u578B").choices([tn.Lib,tn.Cli]);Tx.required=!0;var Rx=new Hc.Command().command("generate [dest]").description("\u751F\u6210\u4E00\u4E9B\u521D\u59CB\u9879\u76EE").addOption(Tx).action(async(t,e)=>{await sH.generate({...e,dest:t,initSync:!0})});var Jm=ue(qn());var Qm=new gu(process.cwd()),Px=new Jm.Command("sync").description("\u540C\u6B65\u914D\u7F6E").action(async()=>{await Qm.sync()}).addCommand(new Jm.Command("init").description("\u521D\u59CB\u5316\u540C\u6B65\u914D\u7F6E").action(async()=>{await Qm.init(),await Qm.sync()}));var Mj=ue(qn());var Uc=class{static wrapOnEvent(e){let r={},s=new Promise(async(i,n)=>{await new Promise(a=>setTimeout(a,0));try{i(await e(r))}catch(a){n(a)}});return Reflect.set(s,"on",(i,n)=>(r[i]=n,s)),s}};var Oj=ue(pO()),Si=ue(require("path")),Tj=ue(require("os")),xi=ue(Bs()),Rj=ue(UR()),Pj=ue(MP()),$j=ue(Sj());var An=ue(require("os")),yo=ue(require("path"));function xj(t){let e=process.env.XDG_CACHE_HOME||yo.join(An.homedir(),".cache");return yo.join(e,t)}function Yee(t){return yo.join(An.homedir(),"Library","Caches",t)}function Jee(t){let e=process.env.LOCALAPPDATA||yo.join(An.homedir(),"AppData","Local");return yo.join(e,t,"Cache")}var Qee=function(){switch(An.platform()){case"darwin":return Yee;case"win32":return Jee;case"aix":case"android":case"freebsd":case"linux":case"netbsd":case"openbsd":case"sunos":return xj;default:return console.error(`(node:${process.pid}) [cachedir] Warning: the platform "${An.platform()}" is not currently supported by node-cachedir, falling back to "posix". Please file an issue with your platform here: https://github.com/LinusU/node-cachedir/issues/new`),xj}}();function Aj(t){if(t.length===0)throw new Error("id cannot be empty");if(/[^0-9a-zA-Z-]/.test(t))throw new Error("id cannot contain special characters");return Qee(t)}function Fj(t,e){let r=new Rj.default({allErrors:!0,messages:!1}),s=r.validate(t,e);return s||Pj.default.zh(r.errors),[s,r.errorsText()]}var ol;(function(r){r.GhPages="gh-pages",r.Sftp="sftp"})(ol||(ol={}));var K0=class{constructor(e){this.options=e}deploy(){return Uc.wrapOnEvent(async()=>{let e=new Oj.default,r=await(0,xi.readFile)(Si.resolve(Tj.userInfo().homedir,".ssh/id_rsa"),"utf-8");await e.connect({...this.options.sshConfig,privateKey:r}),await e.mkdir(this.options.remote,!0),await e.uploadDir(Si.resolve(this.options.cwd,this.options.dest),this.options.remote),await e.end()})}validate(){return Fj({type:"object",properties:{cwd:{type:"string"},dest:{type:"string"},remote:{type:"string"},sshConfig:{type:"object",properties:{host:{type:"string"},username:{type:"string"}}}},required:["cwd","dest","remote","sshConfig"]},this.options)}},Y0=class{constructor(e){this.options=e}deploy(){let e="origin",r="gh-pages";return Uc.wrapOnEvent(async s=>{s.process("\u5F00\u59CB\u63A8\u9001");let i=(0,$j.default)(this.options.cwd);s.process("\u83B7\u53D6\u5F53\u524D\u9879\u76EE\u7684\u8FDC\u7AEF\u914D\u7F6E");let n=(await i.getRemotes(!0)).find(c=>c.name===e);if(!n)throw new Error("\u5F53\u524D\u76EE\u5F55\u4E0D\u662F\u4E00\u4E2A git \u9879\u76EE\u6216\u6CA1\u6709\u914D\u7F6E git remote");let a=Si.resolve(Aj("liuli-cli"),"gh-pages"),o=n.refs.fetch.replace(new RegExp("[/:]","g"),"_"),u=Si.resolve(a,o);await(0,xi.pathExists)(u)?await i.pull():(s.process("\u514B\u9686\u9879\u76EE"),await i.clone(n.refs.fetch,u,{"--branch":r})),s.process("\u590D\u5236\u6587\u4EF6");let l=Si.join(u,this.options.remote);await(0,xi.mkdirp)(l),await(0,xi.copy)(Si.resolve(this.options.cwd,this.options.dest),l),s.process("\u63A8\u9001\u5230\u8FDC\u7AEF"),await i.cwd(u),await i.add("-A"),await i.commit("Updates gh-pages by liuli-cli"),await i.push(e,r),s.process("\u5B8C\u6210\u63A8\u9001")})}validate(){return Fj({type:"object",properties:{cwd:{type:"string"},dest:{type:"string"},remote:{type:"string"}},required:["cwd","dest","remote"]},this.options)}};var jj=ue(require("path")),Zd=ue(Bs());async function Xee(t){let e=jj.resolve(t,"package.json");if(await(0,Zd.pathExists)(e)){let r=(await(0,Zd.readJson)(e)).deploy;if(!r)throw new Error("\u627E\u4E0D\u5230\u914D\u7F6E");return r}throw new Error("\u627E\u4E0D\u5230\u914D\u7F6E")}async function Ij(t){let e=await Xee(t.cwd),r,s={...t,...e};switch(e.type){case ol.Sftp:r=new K0(s);break;case ol.GhPages:r=new Y0(s);break;default:throw new Error("\u672A\u77E5\u7684\u90E8\u7F72\u9884\u8BBE\u7C7B\u578B "+e.type)}let[i,n]=r.validate();if(!i)throw new Error(n);await r.deploy().on("process",a=>{console.info(a)})}var Nj=ue(require("path")),qj=new Mj.Command("deploy").description("\u90E8\u7F72\u9879\u76EE\u5230\u8FDC\u7AEF").action(()=>Ij({cwd:Nj.resolve()}));new Bj.Command().addCommand(W1).addCommand(Rx).addCommand(Px).addCommand(qj).parse();
|
|
103
|
+
`})),t.onResolve({filter:/\.node$/,namespace:"node-file"},r=>({path:r.path,namespace:"file"}));let e=t.initialOptions;e.loader=e.loader||{},e.loader[".node"]="file"}}}function xw(){return{name:"esbuild-plugin-node-externals",setup(t){t.onResolve({filter:/(^node:)/},e=>({path:e.path.slice(5),external:!0}))}}}var G1=ne(Tk()),V1=ne(x1());function A1(t,e,r=null){let s,i=r;return async function(...n){return new Promise(a=>{s&&clearTimeout(s),s=setTimeout(()=>a(i=t(...n)),e),setTimeout(()=>a(i),e)})}}var z1=ne(B1());function L1(t){return(t.startsWith("@")?t.slice(t.indexOf("/")+1):t).split("-").map(r=>r.slice(0,1).toUpperCase()+r.slice(1).toLowerCase()).join("")}var hr=class{constructor(e){this.options=e}set isWatch(e){this.options.isWatch=e}static async getDeps(e){let r=await(0,ws.readJson)(qt.resolve(e,"package.json"));return Object.keys({...r.dependencies,...r.devDependencies,...r.peerDependencies})}static async getPlatform(e){let r=qt.resolve(e,"tsconfig.json");if(await(0,ws.pathExists)(r)&&(0,z1.parse)(await(0,ws.readFile)(r,"utf-8")).compilerOptions.lib.some(n=>n.toLowerCase()==="dom"))return"browser";let s=qt.resolve(e,"package.json");if(await(0,ws.pathExists)(s)){let i=await(0,ws.readJson)(s);if(Object.keys(i.devDependencies??{}).includes("@types/node"))return"node"}return"neutral"}static getWatchOptions(e){return{pattern:"src/**/*.ts",options:{cwd:e,ignore:"**/__tests__/**/*"}}}async genDTS(){let e=this.options.base,{pattern:r,options:s}=hr.getWatchOptions(this.options.base),i=new H1.Project({tsConfigFilePath:qt.resolve(e,"tsconfig.json"),skipAddingFilesFromTsConfig:!0,compilerOptions:{emitDeclarationOnly:!0,noEmit:!1,incremental:this.options.isWatch}}),n=(await(0,U1.promise)(r,s)).map(a=>qt.resolve(e,a));i.addSourceFilesAtPaths(n),await i.emit({emitOnlyDtsFiles:!0})}getBuildCjsOption({deps:e,platform:r}){return{entryPoints:[qt.resolve(this.options.base,"./src/index.ts")],outfile:qt.resolve(this.options.base,"./dist/index.js"),format:"cjs",sourcemap:!0,bundle:!0,external:[...hr.globalExternal,...e],platform:r,minify:!this.options.isWatch,incremental:this.options.isWatch,metafile:this.options.isWatch}}getBuildESMOption({deps:e,platform:r}){return{entryPoints:[qt.resolve(this.options.base,"./src/index.ts")],outfile:qt.resolve(this.options.base,"./dist/index.esm.js"),format:"esm",sourcemap:!0,bundle:!0,external:[...hr.globalExternal,...e],platform:r,minify:!this.options.isWatch,incremental:this.options.isWatch,metafile:this.options.isWatch}}getBuildIifeOption({platform:e,globalName:r}){return{entryPoints:[qt.resolve(this.options.base,"./src/index.ts")],outfile:qt.resolve(this.options.base,"./dist/index.iife.js"),format:"iife",sourcemap:!0,bundle:!0,external:[...hr.globalExternal],platform:e,minify:!this.options.isWatch,incremental:this.options.isWatch,metafile:this.options.isWatch,globalName:r}}getBuildCliOption({platform:e}){let r=hr.getPlugins(e);return{entryPoints:[qt.resolve(this.options.base,"./src/bin.ts")],outfile:qt.resolve(this.options.base,"./dist/bin.js"),format:"cjs",sourcemap:!0,platform:e,bundle:!0,banner:{js:"#!/usr/bin/env node"},external:[...hr.globalExternal],plugins:r,minify:!this.options.isWatch,incremental:this.options.isWatch,metafile:this.options.isWatch}}static getPlugins(e){let r=[];return e==="node"&&r.push(xw(),Sw()),r}async build(e){await(0,wm.build)(e)}async getTasks(){let e=await hr.getDeps(this.options.base),r=await hr.getPlatform(this.options.base);return{esm:{title:"\u6784\u5EFA esm",task:()=>this.build(this.getBuildESMOption({deps:e,platform:r}))},cjs:{title:"\u6784\u5EFA cjs",task:()=>this.build(this.getBuildCjsOption({deps:e,platform:r}))},iife:{title:"\u6784\u5EFA iife",task:async()=>await this.build(this.getBuildIifeOption({platform:r,globalName:L1((await(0,ws.readJson)(qt.resolve(this.options.base,"./package.json"))).name)}))},cli:{title:"\u6784\u5EFA cli",task:()=>(0,wm.build)(this.getBuildCliOption({deps:e,platform:r}))},dts:{title:"\u751F\u6210\u7C7B\u578B\u5B9A\u4E49",task:()=>this.genDTS()}}}static async execTask(e,r){let s=Date.now();e.add(r.title,{text:r.title});try{await r.task(),e.succeed(r.title,{text:`${r.title}: ${Date.now()-s}ms`})}catch{e.fail(r.title,{text:r.title})}}async execTasks(e){let r=async()=>{let n=Date.now(),a=new V1.default;await Promise.all(e.map(async o=>hr.execTask(a,o))),console.log(`\u6784\u5EFA\u5B8C\u6210: ${Date.now()-n}ms`)};if(!this.options.isWatch){await r();return}let{pattern:s,options:i}=hr.getWatchOptions(this.options.base);await new Promise((n,a)=>{(0,G1.watch)(s,i).on("error",a).on("all",A1(r,10))})}},bc=hr;Nn(bc,"globalExternal",["esbuild","pnpapi","ts-morph","ssh2"]);var W1=ne(require("path")),Es=new bc({base:W1.default.resolve(),isWatch:!1}),K1=new aa.Command("build").addCommand(new aa.Command("lib").description("\u4F7F\u7528 esbulid \u5C06 ts lib \u6253\u5305\u5230 dist \u76EE\u5F55\uFF0C\u683C\u5F0F\u4E3A esm/cjs").option("-w --watch","\u76D1\u89C6\u6A21\u5F0F").action(async t=>{Es.isWatch=!!t.watch;let e=await Es.getTasks();await Es.execTasks([e.esm,e.cjs,e.dts])}).alias("pkg")).addCommand(new aa.Command("cli").description("\u4F7F\u7528 esbulid \u5C06 ts cli \u6253\u5305\u5230 dist \u76EE\u5F55\uFF0C\u683C\u5F0F\u4E3A cjs\uFF0C\u5E76\u4E14\u6346\u7ED1\u4F9D\u8D56").option("-w, --watch","\u76D1\u89C6\u6A21\u5F0F").action(async t=>{Es.isWatch=!!t.watch;let e=await Es.getTasks();await Es.execTasks([e.cli,e.esm,e.cjs,e.dts])})).addCommand(["iife","cli","esm","cjs","dts"].reduce((t,e)=>(t.addCommand(new aa.Command(e).description(`\u5355\u72EC\u6784\u5EFA ${e}`).option("-w --watch","\u76D1\u89C6\u6A21\u5F0F").action(async r=>{Es.isWatch=!!r.watch;let s=await Es.getTasks();await Es.execTasks([s[e]])})),t),new aa.Command("single").description("\u5355\u72EC\u6784\u5EFA\u67D0\u79CD\u7C7B\u578B\u7684 bundle")));var Hc=ne(qn());var Zr=ne(require("path")),_t=ne(Bs()),Lc=ne(Gm());var nr=ne(Bs()),ri=ne(require("path"));var k8=typeof global=="object"&&global&&global.Object===Object&&global,xc=k8;var D8=typeof self=="object"&&self&&self.Object===Object&&self,C8=xc||D8||Function("return this")(),mr=C8;var S8=mr.Symbol,ca=S8;var XC=Object.prototype,x8=XC.hasOwnProperty,A8=XC.toString,uu=ca?ca.toStringTag:void 0;function O8(t){var e=x8.call(t,uu),r=t[uu];try{t[uu]=void 0;var s=!0}catch{}var i=A8.call(t);return s&&(e?t[uu]=r:delete t[uu]),i}var ZC=O8;var T8=Object.prototype,R8=T8.toString;function P8(t){return R8.call(t)}var eS=P8;var $8="[object Null]",F8="[object Undefined]",tS=ca?ca.toStringTag:void 0;function j8(t){return t==null?t===void 0?F8:$8:tS&&tS in Object(t)?ZC(t):eS(t)}var Js=j8;function I8(t){return t!=null&&typeof t=="object"}var Xr=I8;var M8=Array.isArray,lu=M8;function N8(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Wt=N8;function q8(t){return t}var Ac=q8;var B8="[object AsyncFunction]",L8="[object Function]",H8="[object GeneratorFunction]",U8="[object Proxy]";function G8(t){if(!Wt(t))return!1;var e=Js(t);return e==L8||e==H8||e==B8||e==U8}var fa=G8;var V8=mr["__core-js_shared__"],Oc=V8;var rS=function(){var t=/[^.]+$/.exec(Oc&&Oc.keys&&Oc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function z8(t){return!!rS&&rS in t}var sS=z8;var W8=Function.prototype,K8=W8.toString;function Y8(t){if(t!=null){try{return K8.call(t)}catch{}try{return t+""}catch{}}return""}var iS=Y8;var J8=/[\\^$.*+?()[\]{}|]/g,Q8=/^\[object .+?Constructor\]$/,X8=Function.prototype,Z8=Object.prototype,e6=X8.toString,t6=Z8.hasOwnProperty,r6=RegExp("^"+e6.call(t6).replace(J8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function s6(t){if(!Wt(t)||sS(t))return!1;var e=fa(t)?r6:Q8;return e.test(iS(t))}var nS=s6;function i6(t,e){return t==null?void 0:t[e]}var aS=i6;function n6(t,e){var r=aS(t,e);return nS(r)?r:void 0}var da=n6;var oS=Object.create,a6=function(){function t(){}return function(e){if(!Wt(e))return{};if(oS)return oS(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),uS=a6;function o6(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var lS=o6;function u6(t,e){var r=-1,s=t.length;for(e||(e=Array(s));++r<s;)e[r]=t[r];return e}var cS=u6;var l6=800,c6=16,f6=Date.now;function d6(t){var e=0,r=0;return function(){var s=f6(),i=c6-(s-r);if(r=s,i>0){if(++e>=l6)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var fS=d6;function h6(t){return function(){return t}}var dS=h6;var p6=function(){try{var t=da(Object,"defineProperty");return t({},"",{}),t}catch{}}(),ha=p6;var m6=ha?function(t,e){return ha(t,"toString",{configurable:!0,enumerable:!1,value:dS(e),writable:!0})}:Ac,hS=m6;var g6=fS(hS),pS=g6;var y6=9007199254740991,v6=/^(?:0|[1-9]\d*)$/;function b6(t,e){var r=typeof t;return e=e??y6,!!e&&(r=="number"||r!="symbol"&&v6.test(t))&&t>-1&&t%1==0&&t<e}var Tc=b6;function _6(t,e,r){e=="__proto__"&&ha?ha(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var pa=_6;function w6(t,e){return t===e||t!==t&&e!==e}var Qs=w6;var E6=Object.prototype,k6=E6.hasOwnProperty;function D6(t,e,r){var s=t[e];(!(k6.call(t,e)&&Qs(s,r))||r===void 0&&!(e in t))&&pa(t,e,r)}var mS=D6;function C6(t,e,r,s){var i=!r;r||(r={});for(var n=-1,a=e.length;++n<a;){var o=e[n],u=s?s(r[o],t[o],o,r,t):void 0;u===void 0&&(u=t[o]),i?pa(r,o,u):mS(r,o,u)}return r}var gS=C6;var yS=Math.max;function S6(t,e,r){return e=yS(e===void 0?t.length-1:e,0),function(){for(var s=arguments,i=-1,n=yS(s.length-e,0),a=Array(n);++i<n;)a[i]=s[e+i];i=-1;for(var o=Array(e+1);++i<e;)o[i]=s[i];return o[e]=r(a),lS(t,this,o)}}var vS=S6;function x6(t,e){return pS(vS(t,e,Ac),t+"")}var bS=x6;var A6=9007199254740991;function O6(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=A6}var Rc=O6;function T6(t){return t!=null&&Rc(t.length)&&!fa(t)}var ma=T6;function R6(t,e,r){if(!Wt(r))return!1;var s=typeof e;return(s=="number"?ma(r)&&Tc(e,r.length):s=="string"&&e in r)?Qs(r[e],t):!1}var _S=R6;function P6(t){return bS(function(e,r){var s=-1,i=r.length,n=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(n=t.length>3&&typeof n=="function"?(i--,n):void 0,a&&_S(r[0],r[1],a)&&(n=i<3?void 0:n,i=1),e=Object(e);++s<i;){var o=r[s];o&&t(e,o,s,n)}return e})}var wS=P6;var $6=Object.prototype;function F6(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||$6;return t===r}var Pc=F6;function j6(t,e){for(var r=-1,s=Array(t);++r<t;)s[r]=e(r);return s}var ES=j6;var I6="[object Arguments]";function M6(t){return Xr(t)&&Js(t)==I6}var Vm=M6;var kS=Object.prototype,N6=kS.hasOwnProperty,q6=kS.propertyIsEnumerable,B6=Vm(function(){return arguments}())?Vm:function(t){return Xr(t)&&N6.call(t,"callee")&&!q6.call(t,"callee")},cu=B6;function L6(){return!1}var DS=L6;var CS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,SS=CS&&typeof module=="object"&&module&&!module.nodeType&&module,H6=SS&&SS.exports===CS,xS=H6?mr.Buffer:void 0,U6=xS?xS.isBuffer:void 0,G6=U6||DS,$c=G6;var V6="[object Arguments]",z6="[object Array]",W6="[object Boolean]",K6="[object Date]",Y6="[object Error]",J6="[object Function]",Q6="[object Map]",X6="[object Number]",Z6="[object Object]",e9="[object RegExp]",t9="[object Set]",r9="[object String]",s9="[object WeakMap]",i9="[object ArrayBuffer]",n9="[object DataView]",a9="[object Float32Array]",o9="[object Float64Array]",u9="[object Int8Array]",l9="[object Int16Array]",c9="[object Int32Array]",f9="[object Uint8Array]",d9="[object Uint8ClampedArray]",h9="[object Uint16Array]",p9="[object Uint32Array]",Ie={};Ie[a9]=Ie[o9]=Ie[u9]=Ie[l9]=Ie[c9]=Ie[f9]=Ie[d9]=Ie[h9]=Ie[p9]=!0;Ie[V6]=Ie[z6]=Ie[i9]=Ie[W6]=Ie[n9]=Ie[K6]=Ie[Y6]=Ie[J6]=Ie[Q6]=Ie[X6]=Ie[Z6]=Ie[e9]=Ie[t9]=Ie[r9]=Ie[s9]=!1;function m9(t){return Xr(t)&&Rc(t.length)&&!!Ie[Js(t)]}var AS=m9;function g9(t){return function(e){return t(e)}}var OS=g9;var TS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fu=TS&&typeof module=="object"&&module&&!module.nodeType&&module,y9=fu&&fu.exports===TS,zm=y9&&xc.process,v9=function(){try{var t=fu&&fu.require&&fu.require("util").types;return t||zm&&zm.binding&&zm.binding("util")}catch{}}(),Wm=v9;var RS=Wm&&Wm.isTypedArray,b9=RS?OS(RS):AS,Fc=b9;var _9=Object.prototype,w9=_9.hasOwnProperty;function E9(t,e){var r=lu(t),s=!r&&cu(t),i=!r&&!s&&$c(t),n=!r&&!s&&!i&&Fc(t),a=r||s||i||n,o=a?ES(t.length,String):[],u=o.length;for(var l in t)(e||w9.call(t,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||n&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Tc(l,u)))&&o.push(l);return o}var PS=E9;function k9(t,e){return function(r){return t(e(r))}}var $S=k9;function D9(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var FS=D9;var C9=Object.prototype,S9=C9.hasOwnProperty;function x9(t){if(!Wt(t))return FS(t);var e=Pc(t),r=[];for(var s in t)s=="constructor"&&(e||!S9.call(t,s))||r.push(s);return r}var jS=x9;function A9(t){return ma(t)?PS(t,!0):jS(t)}var jc=A9;var O9=da(Object,"create"),Ds=O9;function T9(){this.__data__=Ds?Ds(null):{},this.size=0}var IS=T9;function R9(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var MS=R9;var P9="__lodash_hash_undefined__",$9=Object.prototype,F9=$9.hasOwnProperty;function j9(t){var e=this.__data__;if(Ds){var r=e[t];return r===P9?void 0:r}return F9.call(e,t)?e[t]:void 0}var NS=j9;var I9=Object.prototype,M9=I9.hasOwnProperty;function N9(t){var e=this.__data__;return Ds?e[t]!==void 0:M9.call(e,t)}var qS=N9;var q9="__lodash_hash_undefined__";function B9(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ds&&e===void 0?q9:e,this}var BS=B9;function ga(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}ga.prototype.clear=IS;ga.prototype.delete=MS;ga.prototype.get=NS;ga.prototype.has=qS;ga.prototype.set=BS;var Km=ga;function L9(){this.__data__=[],this.size=0}var LS=L9;function H9(t,e){for(var r=t.length;r--;)if(Qs(t[r][0],e))return r;return-1}var Xs=H9;var U9=Array.prototype,G9=U9.splice;function V9(t){var e=this.__data__,r=Xs(e,t);if(r<0)return!1;var s=e.length-1;return r==s?e.pop():G9.call(e,r,1),--this.size,!0}var HS=V9;function z9(t){var e=this.__data__,r=Xs(e,t);return r<0?void 0:e[r][1]}var US=z9;function W9(t){return Xs(this.__data__,t)>-1}var GS=W9;function K9(t,e){var r=this.__data__,s=Xs(r,t);return s<0?(++this.size,r.push([t,e])):r[s][1]=e,this}var VS=K9;function ya(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}ya.prototype.clear=LS;ya.prototype.delete=HS;ya.prototype.get=US;ya.prototype.has=GS;ya.prototype.set=VS;var Zs=ya;var Y9=da(mr,"Map"),Ic=Y9;function J9(){this.size=0,this.__data__={hash:new Km,map:new(Ic||Zs),string:new Km}}var zS=J9;function Q9(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var WS=Q9;function X9(t,e){var r=t.__data__;return WS(e)?r[typeof e=="string"?"string":"hash"]:r.map}var ei=X9;function Z9(t){var e=ei(this,t).delete(t);return this.size-=e?1:0,e}var KS=Z9;function e4(t){return ei(this,t).get(t)}var YS=e4;function t4(t){return ei(this,t).has(t)}var JS=t4;function r4(t,e){var r=ei(this,t),s=r.size;return r.set(t,e),this.size+=r.size==s?0:1,this}var QS=r4;function va(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}va.prototype.clear=zS;va.prototype.delete=KS;va.prototype.get=YS;va.prototype.has=JS;va.prototype.set=QS;var XS=va;var s4=$S(Object.getPrototypeOf,Object),Mc=s4;var i4="[object Object]",n4=Function.prototype,a4=Object.prototype,ZS=n4.toString,o4=a4.hasOwnProperty,u4=ZS.call(Object);function l4(t){if(!Xr(t)||Js(t)!=i4)return!1;var e=Mc(t);if(e===null)return!0;var r=o4.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&ZS.call(r)==u4}var ex=l4;function c4(){this.__data__=new Zs,this.size=0}var tx=c4;function f4(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var rx=f4;function d4(t){return this.__data__.get(t)}var sx=d4;function h4(t){return this.__data__.has(t)}var ix=h4;var p4=200;function m4(t,e){var r=this.__data__;if(r instanceof Zs){var s=r.__data__;if(!Ic||s.length<p4-1)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new XS(s)}return r.set(t,e),this.size=r.size,this}var nx=m4;function ba(t){var e=this.__data__=new Zs(t);this.size=e.size}ba.prototype.clear=tx;ba.prototype.delete=rx;ba.prototype.get=sx;ba.prototype.has=ix;ba.prototype.set=nx;var ax=ba;var ox=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ux=ox&&typeof module=="object"&&module&&!module.nodeType&&module,g4=ux&&ux.exports===ox,lx=g4?mr.Buffer:void 0,cx=lx?lx.allocUnsafe:void 0;function y4(t,e){if(e)return t.slice();var r=t.length,s=cx?cx(r):new t.constructor(r);return t.copy(s),s}var fx=y4;var v4=mr.Uint8Array,Ym=v4;function b4(t){var e=new t.constructor(t.byteLength);return new Ym(e).set(new Ym(t)),e}var dx=b4;function _4(t,e){var r=e?dx(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var hx=_4;function w4(t){return typeof t.constructor=="function"&&!Pc(t)?uS(Mc(t)):{}}var px=w4;function E4(t){return function(e,r,s){for(var i=-1,n=Object(e),a=s(e),o=a.length;o--;){var u=a[t?o:++i];if(r(n[u],u,n)===!1)break}return e}}var mx=E4;var k4=mx(),gx=k4;function D4(t,e,r){(r!==void 0&&!Qs(t[e],r)||r===void 0&&!(e in t))&&pa(t,e,r)}var du=D4;function C4(t){return Xr(t)&&ma(t)}var yx=C4;function S4(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var hu=S4;function x4(t){return gS(t,jc(t))}var vx=x4;function A4(t,e,r,s,i,n,a){var o=hu(t,r),u=hu(e,r),l=a.get(u);if(l){du(t,r,l);return}var c=n?n(o,u,r+"",t,e,a):void 0,f=c===void 0;if(f){var d=lu(u),p=!d&&$c(u),m=!d&&!p&&Fc(u);c=u,d||p||m?lu(o)?c=o:yx(o)?c=cS(o):p?(f=!1,c=fx(u,!0)):m?(f=!1,c=hx(u,!0)):c=[]:ex(u)||cu(u)?(c=o,cu(o)?c=vx(o):(!Wt(o)||fa(o))&&(c=px(u))):f=!1}f&&(a.set(u,c),i(c,u,s,n,a),a.delete(u)),du(t,r,c)}var bx=A4;function _x(t,e,r,s,i){t!==e&&gx(e,function(n,a){if(i||(i=new ax),Wt(n))bx(t,e,a,r,_x,s,i);else{var o=s?s(hu(t,a),n,a+"",t,e,i):void 0;o===void 0&&(o=n),du(t,a,o)}},jc)}var wx=_x;var O4=wS(function(t,e,r){wx(t,e,r)}),Nc=O4;var T4="@liuli-util/prettier-standard-config",R4="0.1.0",P4=".prettierrc.json",$4="MIT",F4={access:"public",registry:"https://registry.npmjs.org/"},Ex={name:T4,version:R4,main:P4,license:$4,publishConfig:F4};var j4="@liuli-util/eslint-config-ts",I4="0.2.0",M4=".eslintrc.json",N4="MIT",q4={access:"public",registry:"https://registry.npmjs.org/"},B4={type:"git",url:"https://github.com/rxliuli/liuli-tools",directory:"libs/eslint-config-ts"},L4={"@types/eslint":"^7","@typescript-eslint/eslint-plugin":"^4.29.1","@typescript-eslint/parser":"^4.29.1",eslint:"^7.32.0","eslint-config-prettier":"^8.3.0"},H4={typescript:">=4"},kx={name:j4,version:I4,main:M4,license:N4,publishConfig:q4,repository:B4,dependencies:L4,peerDependencies:H4};var U4="@liuli-util/eslint-config-react-ts",G4="0.1.0",V4=".eslintrc.json",z4="MIT",W4={access:"public",registry:"https://registry.npmjs.org/"},K4={type:"git",url:"https://github.com/rxliuli/liuli-tools",directory:"libs/eslint-config-react-ts"},Y4={"@liuli-util/eslint-config-ts":"^0.2.0","@types/eslint":"^7.28.0","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2",eslint:"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-react-hooks":"^4.2.0"},J4={typescript:">=4"},Dx={name:U4,version:G4,main:V4,license:z4,publishConfig:W4,repository:K4,dependencies:Y4,peerDependencies:J4};var Q4="@liuli-util/commitlint-standard-config",X4="0.1.6",Z4=".commitlintrc.json",eH="MIT",tH={access:"public",registry:"https://registry.npmjs.org/"},rH={"@commitlint/config-conventional":"^13.1.0"},sH={"@commitlint/cli":"^12.1.4"},Cx={name:Q4,version:X4,main:Z4,license:eH,publishConfig:tH,dependencies:rH,peerDependencies:sH};var Tx=ne(Gm());var pu=ne(Bs()),mu=ne(require("path"));function Sx(t,e,r=s=>s){return t.reduce((s,i,n,a)=>s.set(e(i,n,a),r(i,n,a)),new Map)}function xx(t,e){return t?t.includes(e)?t:t+" && "+e:e}var Ax=ne(require("path"));function Jm(t,e){let r=e(t);function s(i){if(i)return t;let n=Ax.default.dirname(t);return n===t?null:Jm(n,e)}return r instanceof Promise?r.then(s):s(r)}var gr;(function(n){n.Filter="filter",n.Map="map",n.ForEach="forEach",n.Reduce="reduce",n.FlatMap="flatMap"})(gr||(gr={}));var wa=class{constructor(e,r){this.type=e;this.args=r;this.type=e,this.args=r}};Nn(wa,"Type",gr);var Nr=class{constructor(e){this.arr=e}static reduce(e,r,s){return e.reduce((i,n,a)=>i.then(o=>r(o,n,a)),Promise.resolve(s))}static map(e,r){return Promise.all(e.map((s,i)=>r(s,i)))}static async filter(e,r){let s=[];return await Nr.map(e,async(i,n)=>{await r(i,n)&&s.push(i)}),s}static async flatMap(e,r){return(await Promise.all(e.map((s,i)=>r(s,i)))).flatMap(s=>s)}static async forEach(e,r){await Nr.map(e,r)}tasks=[];map(e){return this.tasks.push(new wa(gr.Map,[e])),this}flatMap(e){return this.tasks.push(new wa(gr.FlatMap,[e])),this}filter(e){return this.tasks.push(new wa(gr.Filter,[e])),this}async forEach(e){this.tasks.push(new wa(gr.Map,[e])),await this}then(e,r){let s=this.value();return s.then(i=>(e&&e(s),i)).catch(i=>{throw r&&r(i),i}),s}async value(){let e=this.arr;for(let r of this.tasks)switch(r.type){case gr.Filter:e=await Nr.filter(e,r.args[0]);break;case gr.Map:e=await Nr.map(e,r.args[0]);break;case gr.FlatMap:e=await Nr.flatMap(e,r.args[0]);break;case gr.ForEach:await Nr.forEach(e,r.args[0]);return;case gr.Reduce:return await Nr.reduce(e,r.args[0],r.args[1])}return e}};async function xs(t=process.cwd()){return await(0,pu.pathExists)(mu.default.resolve(t,"./package.json"))}async function Zi(t=process.cwd()){return await xs(t)?!!(await(0,pu.readJson)(mu.default.resolve(t,"./package.json"))).workspaces:!1}async function qc(t=process.cwd()){return!await xs(t)||await Zi(t)?!1:await Jm(mu.default.dirname(t),Zi)!==null}async function Bc(t,e=process.cwd()){if(!await xs(e))return!1;let r=await(0,pu.readJson)(mu.default.resolve(e,"./package.json")),s=new Set(Object.keys({...r.dependencies,...r.devDependencies}));return t.every(i=>s.has(i))}var Ox=ne(require("path")),Ea=class{};Nn(Ea,"RootPath",Ox.default.resolve(__dirname,".."));async function en(t,e){let r=ri.default.resolve(t,"./package.json");await(0,nr.writeJson)(r,Nc(await(0,nr.readJson)(r),e),{spaces:2})}var gu=class{constructor(e){this.base=e}syncConfigs=[{type:"workspaces",handler:async()=>{let e=ri.default.resolve(this.base,"./package.json"),r=ri.default.resolve(this.base,"lerna.json"),s=await(0,nr.readJson)(e),i=await(0,nr.readJson)(r);i.packages=s.workspaces,await(0,nr.writeJson)(r,i,{spaces:2})},when:Zi},{type:"prettier",handler:async()=>{await en(this.base,{prettier:"@liuli-util/prettier-standard-config",devDependencies:{prettier:"^2.3.2","@liuli-util/prettier-standard-config":`^${Ex.version}`}})},async when(){return await xs()&&(await Zi()||!await qc())}},{type:"commitlint",handler:async()=>{await en(this.base,{"simple-git-hooks":{"commit-msg":"yarn commitlint --edit $1"},commitlint:{extends:["@liuli-util/commitlint-standard-config"]},devDependencies:{"@commitlint/cli":"^12.1.4","@liuli-util/commitlint-standard-config":`^${Cx.version}`}})},async when(){return await xs()&&(await Zi()||!await qc())}},{type:"gitignore",handler:async()=>{let e=ri.default.resolve(this.base,".gitignore");await(0,nr.writeFile)(e,await(0,nr.readFile)(ri.default.resolve(Ea.RootPath,"_gitignore"),"utf-8"))}},{type:"eslint-ts",handler:async()=>{await en(this.base,{eslintConfig:{extends:["@liuli-util/eslint-config-ts"]},devDependencies:{"@liuli-util/eslint-config-ts":`^${kx.version}`}})},async when(){return await xs()&&!await Bc(["vue"])&&!await Bc(["react"])}},{type:"eslint-react-ts",handler:async()=>{await en(this.base,{eslintConfig:{extends:["@liuli-util/eslint-config-react-ts"]},devDependencies:{"@liuli-util/eslint-config-react-ts":`^${Dx.version}`}})},async when(){return await xs()&&await Bc(["react"])}},{type:"jest",handler:async()=>{await en(this.base,{jest:{preset:"ts-jest",testMatch:["<rootDir>/src/**/__tests__/*.test.ts"]},devDependencies:{jest:"^27.4.3","ts-jest":"^27.0.7"}})}},{type:"simplehooks",handler:async()=>{let e=await(0,nr.readJson)(ri.default.resolve(this.base,"./package.json")),r=[];e.prettier&&r.push("prettier --write"),e.eslintConfig&&r.push("eslint --fix");let s={scripts:{postinstall:xx(e?.scripts?.postinstall,"npx simple-git-hooks")},"simple-git-hooks":{"pre-commit":"yarn lint-staged"},"lint-staged":{"*.{ts,tsx,js,jsx,css,vue}":[...r,"git add"]},devDependencies:{"simple-git-hooks":"^2.5.1","lint-staged":"^11.1.1"}};e.commitlint&&(s=Nc(s,{"simple-git-hooks":{"commit-msg":"yarn commitlint --edit $1"}})),await en(this.base,s)},async when(){return await xs()&&(await Zi()||!await qc())}}];async sync(){let{sync:e}=await(0,nr.readJson)(ri.default.resolve(this.base,"package.json"));if(!e)return;let r=this.syncConfigs.filter(s=>e.includes(s.type));for(let s of r)await s.handler()}async init(){let e=Sx(await Nr.filter(this.syncConfigs,async s=>s.when?await s.when():!0),s=>s.type),r=await(0,Tx.prompt)({type:"multiselect",message:"\u8BF7\u9009\u62E9\u9700\u8981\u540C\u6B65\u7684\u914D\u7F6E\u9879",name:"sync",choices:[...e.keys()]});await en(this.base,{sync:r.sync})}};var tn;(function(r){r.Cli="cli",r.Lib="lib"})(tn||(tn={}));var ka=class{async generate(e){if(!e.dest){let{dest:i}=await(0,Lc.prompt)({name:"dest",type:"input",message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D",validate(n){return n.trim()!==""}});e.dest=Zr.default.resolve(i)}if(!e.template){let{template:i}=await(0,Lc.prompt)({name:"template",type:"select",message:"\u8BF7\u9009\u62E9\u6A21\u677F",choices:[tn.Lib,tn.Cli]});e.template=i}let r=Zr.default.resolve(Ea.RootPath,`templates/${e.template}`),s=Zr.default.resolve(e.dest);if(await(0,_t.pathExists)(s)&&(await(0,_t.readdir)(s)).some(i=>(0,_t.pathExists)(i))){let{override:i}=await(0,Lc.prompt)({name:"override",type:"confirm",initial:!0,message:"\u76EE\u6807\u4F4D\u7F6E\u4E0D\u662F\u4E00\u4E2A\u7A7A\u76EE\u5F55\uFF0C\u786E\u8BA4\u8981\u8986\u76D6\u4E48\uFF1F"});if(!i)return}if(await(0,_t.remove)(s),await(0,_t.copy)(r,s,{filter:i=>Zr.default.basename(i)!=="node_modules"}),await ka.updatePackageJSON(s),await ka.updateReadme(s),e.initSync){let i=new gu(Zr.default.resolve(e.dest));await i.init(),await i.sync()}}static async updatePackageJSON(e){let r=Zr.default.resolve(e,"package.json");await(0,_t.writeJSON)(r,{...await(0,_t.readJSON)(r),name:Zr.default.basename(e)},{spaces:2})}static async updateReadme(e){let r=Zr.default.resolve(e,"README.md"),s=await(0,_t.readFile)(r,"utf-8");s=s.replace("template",Zr.default.basename(e)),await(0,_t.writeFile)(r,s)}};var iH=new ka,Rx=new Hc.Option("--template [template]","\u6A21\u677F\u7C7B\u578B").choices([tn.Lib,tn.Cli]);Rx.required=!0;var Px=new Hc.Command().command("generate [dest]").description("\u751F\u6210\u4E00\u4E9B\u521D\u59CB\u9879\u76EE").addOption(Rx).action(async(t,e)=>{await iH.generate({...e,dest:t,initSync:!0})});var Qm=ne(qn());var Xm=new gu(process.cwd()),$x=new Qm.Command("sync").description("\u540C\u6B65\u914D\u7F6E").action(async()=>{await Xm.sync()}).addCommand(new Qm.Command("init").description("\u521D\u59CB\u5316\u540C\u6B65\u914D\u7F6E").action(async()=>{await Xm.init(),await Xm.sync()}));var Nj=ne(qn());var Uc=class{static wrapOnEvent(e){let r={},s=new Promise(async(i,n)=>{await new Promise(a=>setTimeout(a,0));try{i(await e(r))}catch(a){n(a)}});return Reflect.set(s,"on",(i,n)=>(r[i]=n,s)),s}};var Tj=ne(mO()),Si=ne(require("path")),Rj=ne(require("os")),xi=ne(Bs()),Pj=ne(GR()),$j=ne(NP()),Fj=ne(xj());var An=ne(require("os")),yo=ne(require("path"));function Aj(t){let e=process.env.XDG_CACHE_HOME||yo.join(An.homedir(),".cache");return yo.join(e,t)}function Jee(t){return yo.join(An.homedir(),"Library","Caches",t)}function Qee(t){let e=process.env.LOCALAPPDATA||yo.join(An.homedir(),"AppData","Local");return yo.join(e,t,"Cache")}var Xee=function(){switch(An.platform()){case"darwin":return Jee;case"win32":return Qee;case"aix":case"android":case"freebsd":case"linux":case"netbsd":case"openbsd":case"sunos":return Aj;default:return console.error(`(node:${process.pid}) [cachedir] Warning: the platform "${An.platform()}" is not currently supported by node-cachedir, falling back to "posix". Please file an issue with your platform here: https://github.com/LinusU/node-cachedir/issues/new`),Aj}}();function Oj(t){if(t.length===0)throw new Error("id cannot be empty");if(/[^0-9a-zA-Z-]/.test(t))throw new Error("id cannot contain special characters");return Xee(t)}var Zd=ne(require("perf_hooks"));function jj(t,e){let r=new Pj.default({allErrors:!0,messages:!1}),s=r.validate(t,e);return s||$j.default.zh(r.errors),[s,r.errorsText()]}var ol;(function(r){r.GhPages="gh-pages",r.Sftp="sftp"})(ol||(ol={}));var Y0=class{constructor(e){this.options=e}deploy(){return Uc.wrapOnEvent(async()=>{let e=new Tj.default,r=await(0,xi.readFile)(Si.resolve(Rj.userInfo().homedir,".ssh/id_rsa"),"utf-8");await e.connect({...this.options.sshConfig,privateKey:r}),await e.mkdir(this.options.remote,!0),await e.uploadDir(Si.resolve(this.options.cwd,this.options.dest),this.options.remote),await e.end()})}validate(){return jj({type:"object",properties:{cwd:{type:"string"},dest:{type:"string"},remote:{type:"string"},sshConfig:{type:"object",properties:{host:{type:"string"},username:{type:"string"}}}},required:["cwd","dest","remote","sshConfig"]},this.options)}},J0=class{constructor(e){this.options=e}deploy(){let e="origin",r="gh-pages";return Uc.wrapOnEvent(async s=>{let i=new Zd.PerformanceObserver((d,p)=>{this.options.debug&&console.log(d.getEntries())});i.observe({type:"mark"});function n(d){Zd.performance.mark(d),s.process(d)}n("\u5F00\u59CB\u63A8\u9001");let a=(0,Fj.default)(this.options.cwd);n("\u83B7\u53D6\u5F53\u524D\u9879\u76EE\u7684\u8FDC\u7AEF\u914D\u7F6E");let o=(await a.getRemotes(!0)).find(d=>d.name===e);if(!o)throw new Error("\u5F53\u524D\u76EE\u5F55\u4E0D\u662F\u4E00\u4E2A git \u9879\u76EE\u6216\u6CA1\u6709\u914D\u7F6E git remote");let u=Si.resolve(Oj("liuli-cli"),"gh-pages"),l=o.refs.fetch.replace(new RegExp("[/:]","g"),"_"),c=Si.resolve(u,l);await(0,xi.pathExists)(c)?(n("\u66F4\u65B0\u9879\u76EE"),await a.pull()):(n("\u514B\u9686\u9879\u76EE"),await a.clone(o.refs.fetch,c,{"--branch":r})),n("\u590D\u5236\u6587\u4EF6");let f=Si.join(c,this.options.remote);await(0,xi.mkdirp)(f),await(0,xi.copy)(Si.resolve(this.options.cwd,this.options.dest),f),n("\u63A8\u9001\u5230\u8FDC\u7AEF"),await a.cwd(c),await a.add("-A"),(await a.status()).files.length!==0&&(await a.commit("Updates gh-pages by liuli-cli"),await a.push(e,r)),n("\u5B8C\u6210\u63A8\u9001"),i.disconnect()})}validate(){return jj({type:"object",properties:{cwd:{type:"string"},dest:{type:"string"},remote:{type:"string"}},required:["cwd","dest","remote"]},this.options)}};var Ij=ne(require("path")),eh=ne(Bs());async function Zee(t){let e=Ij.resolve(t,"package.json");if(await(0,eh.pathExists)(e)){let r=(await(0,eh.readJson)(e)).deploy;if(!r)throw new Error("\u627E\u4E0D\u5230\u914D\u7F6E");return r}throw new Error("\u627E\u4E0D\u5230\u914D\u7F6E")}async function Mj(t){let e=await Zee(t.cwd),r,s={...t,...e};switch(e.type){case ol.Sftp:r=new Y0(s);break;case ol.GhPages:r=new J0(s);break;default:throw new Error("\u672A\u77E5\u7684\u90E8\u7F72\u9884\u8BBE\u7C7B\u578B "+e.type)}let[i,n]=r.validate();if(!i)throw new Error(n);await r.deploy().on("process",a=>{console.info(a)})}var qj=ne(require("path")),Bj=new Nj.Command("deploy").description("\u90E8\u7F72\u9879\u76EE\u5230\u8FDC\u7AEF").option("--debug","\u662F\u5426\u5F00\u542F\u8C03\u8BD5\u6A21\u5F0F").action(t=>Mj({cwd:qj.resolve(),debug:!!t.debug}));new Lj.Command().addCommand(K1).addCommand(Px).addCommand($x).addCommand(Bj).parse();
|
|
104
104
|
/*!
|
|
105
105
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
106
106
|
*
|