apiyaml
Version:
23 lines • 313 kB
JavaScript
#!/usr/bin/env node
"use strict";var nC=Object.create;var la=Object.defineProperty;var rC=Object.getOwnPropertyDescriptor;var iC=Object.getOwnPropertyNames;var sC=Object.getPrototypeOf,aC=Object.prototype.hasOwnProperty;var C=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),oC=(t,e)=>{for(var n in e)la(t,n,{get:e[n],enumerable:!0})},Zd=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of iC(e))!aC.call(t,a)&&a!==n&&la(t,a,{get:()=>e[a],enumerable:!(i=rC(e,a))||i.enumerable});return t};var Ne=(t,e,n)=>(n=t!=null?nC(sC(t)):{},Zd(e||!t||!t.__esModule?la(n,"default",{value:t,enumerable:!0}):n,t)),uC=t=>Zd(la({},"__esModule",{value:!0}),t);var wi=C(nl=>{var ca=class extends Error{constructor(e,n,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=n,this.exitCode=e,this.nestedError=void 0}},tl=class extends ca{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};nl.CommanderError=ca;nl.InvalidArgumentError=tl});var fa=C(il=>{var{InvalidArgumentError:lC}=wi(),rl=class{constructor(e,n){switch(this.description=n||"",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,n){return n===this.defaultValue||!Array.isArray(n)?[e]:n.concat(e)}default(e,n){return this.defaultValue=e,this.defaultValueDescription=n,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(n,i)=>{if(!this.argChoices.includes(n))throw new lC(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,i):n},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function cC(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}il.Argument=rl;il.humanReadableArgName=cC});var al=C(Yd=>{var{humanReadableArgName:fC}=fa(),sl=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let n=e.commands.filter(a=>!a._hidden),i=e._getHelpCommand();return i&&!i._hidden&&n.push(i),this.sortSubcommands&&n.sort((a,o)=>a.name().localeCompare(o.name())),n}compareOptions(e,n){let i=a=>a.short?a.short.replace(/^-/,""):a.long.replace(/^--/,"");return i(e).localeCompare(i(n))}visibleOptions(e){let n=e.options.filter(a=>!a.hidden),i=e._getHelpOption();if(i&&!i.hidden){let a=i.short&&e._findOption(i.short),o=i.long&&e._findOption(i.long);!a&&!o?n.push(i):i.long&&!o?n.push(e.createOption(i.long,i.description)):i.short&&!a&&n.push(e.createOption(i.short,i.description))}return this.sortOptions&&n.sort(this.compareOptions),n}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let n=[];for(let i=e.parent;i;i=i.parent){let a=i.options.filter(o=>!o.hidden);n.push(...a)}return this.sortOptions&&n.sort(this.compareOptions),n}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(n=>{n.description=n.description||e._argsDescription[n.name()]||""}),e.registeredArguments.find(n=>n.description)?e.registeredArguments:[]}subcommandTerm(e){let n=e.registeredArguments.map(i=>fC(i)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(n?" "+n:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,n){return n.visibleCommands(e).reduce((i,a)=>Math.max(i,n.subcommandTerm(a).length),0)}longestOptionTermLength(e,n){return n.visibleOptions(e).reduce((i,a)=>Math.max(i,n.optionTerm(a).length),0)}longestGlobalOptionTermLength(e,n){return n.visibleGlobalOptions(e).reduce((i,a)=>Math.max(i,n.optionTerm(a).length),0)}longestArgumentTermLength(e,n){return n.visibleArguments(e).reduce((i,a)=>Math.max(i,n.argumentTerm(a).length),0)}commandUsage(e){let n=e._name;e._aliases[0]&&(n=n+"|"+e._aliases[0]);let i="";for(let a=e.parent;a;a=a.parent)i=a.name()+" "+i;return i+n+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let n=[];return e.argChoices&&n.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&n.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&n.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&n.push(`env: ${e.envVar}`),n.length>0?`${e.description} (${n.join(", ")})`:e.description}argumentDescription(e){let n=[];if(e.argChoices&&n.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&n.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),n.length>0){let i=`(${n.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}formatHelp(e,n){let i=n.padWidth(e,n),a=n.helpWidth||80,o=2,l=2;function f(I,x){if(x){let $=`${I.padEnd(i+l)}${x}`;return n.wrap($,a-o,i+l)}return I}function d(I){return I.join(`
`).replace(/^/gm," ".repeat(o))}let m=[`Usage: ${n.commandUsage(e)}`,""],_=n.commandDescription(e);_.length>0&&(m=m.concat([n.wrap(_,a,0),""]));let b=n.visibleArguments(e).map(I=>f(n.argumentTerm(I),n.argumentDescription(I)));b.length>0&&(m=m.concat(["Arguments:",d(b),""]));let O=n.visibleOptions(e).map(I=>f(n.optionTerm(I),n.optionDescription(I)));if(O.length>0&&(m=m.concat(["Options:",d(O),""])),this.showGlobalOptions){let I=n.visibleGlobalOptions(e).map(x=>f(n.optionTerm(x),n.optionDescription(x)));I.length>0&&(m=m.concat(["Global Options:",d(I),""]))}let k=n.visibleCommands(e).map(I=>f(n.subcommandTerm(I),n.subcommandDescription(I)));return k.length>0&&(m=m.concat(["Commands:",d(k),""])),m.join(`
`)}padWidth(e,n){return Math.max(n.longestOptionTermLength(e,n),n.longestGlobalOptionTermLength(e,n),n.longestSubcommandTermLength(e,n),n.longestArgumentTermLength(e,n))}wrap(e,n,i,a=40){let o=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",l=new RegExp(`[\\n][${o}]+`);if(e.match(l))return e;let f=n-i;if(f<a)return e;let d=e.slice(0,i),m=e.slice(i).replace(`\r
`,`
`),_=" ".repeat(i),O="\\s\u200B",k=new RegExp(`
|.{1,${f-1}}([${O}]|$)|[^${O}]+?([${O}]|$)`,"g"),I=m.match(k)||[];return d+I.map((x,$)=>x===`
`?"":($>0?_:"")+x.trimEnd()).join(`
`)}};Yd.Help=sl});var cl=C(ll=>{var{InvalidArgumentError:hC}=wi(),ol=class{constructor(e,n){this.flags=e,this.description=n||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let i=pC(e);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,n){return this.defaultValue=e,this.defaultValueDescription=n,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let n=e;return typeof e=="string"&&(n={[e]:!0}),this.implied=Object.assign(this.implied||{},n),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,n){return n===this.defaultValue||!Array.isArray(n)?[e]:n.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(n,i)=>{if(!this.argChoices.includes(n))throw new hC(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,i):n},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return dC(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},ul=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(n=>{n.negate?this.negativeOptions.set(n.attributeName(),n):this.positiveOptions.set(n.attributeName(),n)}),this.negativeOptions.forEach((n,i)=>{this.positiveOptions.has(i)&&this.dualOptions.add(i)})}valueFromOption(e,n){let i=n.attributeName();if(!this.dualOptions.has(i))return!0;let a=this.negativeOptions.get(i).presetArg,o=a!==void 0?a:!1;return n.negate===(o===e)}};function dC(t){return t.split("-").reduce((e,n)=>e+n[0].toUpperCase()+n.slice(1))}function pC(t){let e,n,i=t.split(/[ |,]+/);return i.length>1&&!/^[[<]/.test(i[1])&&(e=i.shift()),n=i.shift(),!e&&/^-[^-]$/.test(n)&&(e=n,n=void 0),{shortFlag:e,longFlag:n}}ll.Option=ol;ll.DualOptions=ul});var Jd=C(Gd=>{function mC(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let n=[];for(let i=0;i<=t.length;i++)n[i]=[i];for(let i=0;i<=e.length;i++)n[0][i]=i;for(let i=1;i<=e.length;i++)for(let a=1;a<=t.length;a++){let o=1;t[a-1]===e[i-1]?o=0:o=1,n[a][i]=Math.min(n[a-1][i]+1,n[a][i-1]+1,n[a-1][i-1]+o),a>1&&i>1&&t[a-1]===e[i-2]&&t[a-2]===e[i-1]&&(n[a][i]=Math.min(n[a][i],n[a-2][i-2]+1))}return n[t.length][e.length]}function gC(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let n=t.startsWith("--");n&&(t=t.slice(2),e=e.map(l=>l.slice(2)));let i=[],a=3,o=.4;return e.forEach(l=>{if(l.length<=1)return;let f=mC(t,l),d=Math.max(t.length,l.length);(d-f)/d>o&&(f<a?(a=f,i=[l]):f===a&&i.push(l))}),i.sort((l,f)=>l.localeCompare(f)),n&&(i=i.map(l=>`--${l}`)),i.length>1?`
(Did you mean one of ${i.join(", ")}?)`:i.length===1?`
(Did you mean ${i[0]}?)`:""}Gd.suggestSimilar=gC});var np=C(tp=>{var yC=require("node:events").EventEmitter,fl=require("node:child_process"),Qt=require("node:path"),hl=require("node:fs"),Ce=require("node:process"),{Argument:_C,humanReadableArgName:vC}=fa(),{CommanderError:dl}=wi(),{Help:bC}=al(),{Option:Qd,DualOptions:wC}=cl(),{suggestSimilar:Xd}=Jd(),pl=class t extends yC{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:n=>Ce.stdout.write(n),writeErr:n=>Ce.stderr.write(n),getOutHelpWidth:()=>Ce.stdout.isTTY?Ce.stdout.columns:void 0,getErrHelpWidth:()=>Ce.stderr.isTTY?Ce.stderr.columns:void 0,outputError:(n,i)=>i(n)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,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}_getCommandAndAncestors(){let e=[];for(let n=this;n;n=n.parent)e.push(n);return e}command(e,n,i){let a=n,o=i;typeof a=="object"&&a!==null&&(o=a,a=null),o=o||{};let[,l,f]=e.match(/([^ ]+) *(.*)/),d=this.createCommand(l);return a&&(d.description(a),d._executableHandler=!0),o.isDefault&&(this._defaultCommandName=d._name),d._hidden=!!(o.noHelp||o.hidden),d._executableFile=o.executableFile||null,f&&d.arguments(f),this._registerCommand(d),d.parent=this,d.copyInheritedSettings(this),a?this:d}createCommand(e){return new t(e)}createHelp(){return Object.assign(new bC,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,n){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
- specify the name in Command constructor or using .name()`);return n=n||{},n.isDefault&&(this._defaultCommandName=e._name),(n.noHelp||n.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,n){return new _C(e,n)}argument(e,n,i,a){let o=this.createArgument(e,n);return typeof i=="function"?o.default(a).argParser(i):o.default(i),this.addArgument(o),this}arguments(e){return e.trim().split(/ +/).forEach(n=>{this.argument(n)}),this}addArgument(e){let n=this.registeredArguments.slice(-1)[0];if(n&&n.variadic)throw new Error(`only the last argument can be variadic '${n.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.registeredArguments.push(e),this}helpCommand(e,n){if(typeof e=="boolean")return this._addImplicitHelpCommand=e,this;e=e??"help [command]";let[,i,a]=e.match(/([^ ]+) *(.*)/),o=n??"display help for command",l=this.createCommand(i);return l.helpOption(!1),a&&l.arguments(a),o&&l.description(o),this._addImplicitHelpCommand=!0,this._helpCommand=l,this}addHelpCommand(e,n){return typeof e!="object"?(this.helpCommand(e,n),this):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,n){let i=["preSubcommand","preAction","postAction"];if(!i.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(n):this._lifeCycleHooks[e]=[n],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=n=>{if(n.code!=="commander.executeSubCommandAsync")throw n},this}_exit(e,n,i){this._exitCallback&&this._exitCallback(new dl(e,n,i)),Ce.exit(e)}action(e){let n=i=>{let a=this.registeredArguments.length,o=i.slice(0,a);return this._storeOptionsAsProperties?o[a]=this:o[a]=this.opts(),o.push(this),e.apply(this,o)};return this._actionHandler=n,this}createOption(e,n){return new Qd(e,n)}_callParseArg(e,n,i,a){try{return e.parseArg(n,i)}catch(o){if(o.code==="commander.invalidArgument"){let l=`${a} ${o.message}`;this.error(l,{exitCode:o.exitCode,code:o.code})}throw o}}_registerOption(e){let n=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(n){let i=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'
- already used by option '${n.flags}'`)}this.options.push(e)}_registerCommand(e){let n=a=>[a.name()].concat(a.aliases()),i=n(e).find(a=>this._findCommand(a));if(i){let a=n(this._findCommand(i)).join("|"),o=n(e).join("|");throw new Error(`cannot add command '${o}' as already have command '${a}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);let n=e.name(),i=e.attributeName();if(e.negate){let o=e.long.replace(/^--no-/,"--");this._findOption(o)||this.setOptionValueWithSource(i,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(i,e.defaultValue,"default");let a=(o,l,f)=>{o==null&&e.presetArg!==void 0&&(o=e.presetArg);let d=this.getOptionValue(i);o!==null&&e.parseArg?o=this._callParseArg(e,o,d,l):o!==null&&e.variadic&&(o=e._concatValue(o,d)),o==null&&(e.negate?o=!1:e.isBoolean()||e.optional?o=!0:o=""),this.setOptionValueWithSource(i,o,f)};return this.on("option:"+n,o=>{let l=`error: option '${e.flags}' argument '${o}' is invalid.`;a(o,l,"cli")}),e.envVar&&this.on("optionEnv:"+n,o=>{let l=`error: option '${e.flags}' value '${o}' from env '${e.envVar}' is invalid.`;a(o,l,"env")}),this}_optionEx(e,n,i,a,o){if(typeof n=="object"&&n instanceof Qd)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let l=this.createOption(n,i);if(l.makeOptionMandatory(!!e.mandatory),typeof a=="function")l.default(o).argParser(a);else if(a instanceof RegExp){let f=a;a=(d,m)=>{let _=f.exec(d);return _?_[0]:m},l.default(o).argParser(a)}else l.default(a);return this.addOption(l)}option(e,n,i,a){return this._optionEx({},e,n,i,a)}requiredOption(e,n,i,a){return this._optionEx({mandatory:!0},e,n,i,a)}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){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,n){return this.setOptionValueWithSource(e,n,void 0)}setOptionValueWithSource(e,n,i){return this._storeOptionsAsProperties?this[e]=n:this._optionValues[e]=n,this._optionValueSources[e]=i,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let n;return this._getCommandAndAncestors().forEach(i=>{i.getOptionValueSource(e)!==void 0&&(n=i.getOptionValueSource(e))}),n}_prepareUserArgs(e,n){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");if(n=n||{},e===void 0&&n.from===void 0){Ce.versions?.electron&&(n.from="electron");let a=Ce.execArgv??[];(a.includes("-e")||a.includes("--eval")||a.includes("-p")||a.includes("--print"))&&(n.from="eval")}e===void 0&&(e=Ce.argv),this.rawArgs=e.slice();let i;switch(n.from){case void 0:case"node":this._scriptPath=e[1],i=e.slice(2);break;case"electron":Ce.defaultApp?(this._scriptPath=e[1],i=e.slice(2)):i=e.slice(1);break;case"user":i=e.slice(0);break;case"eval":i=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${n.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}parse(e,n){let i=this._prepareUserArgs(e,n);return this._parseCommand([],i),this}async parseAsync(e,n){let i=this._prepareUserArgs(e,n);return await this._parseCommand([],i),this}_executeSubCommand(e,n){n=n.slice();let i=!1,a=[".js",".ts",".tsx",".mjs",".cjs"];function o(_,b){let O=Qt.resolve(_,b);if(hl.existsSync(O))return O;if(a.includes(Qt.extname(b)))return;let k=a.find(I=>hl.existsSync(`${O}${I}`));if(k)return`${O}${k}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let l=e._executableFile||`${this._name}-${e._name}`,f=this._executableDir||"";if(this._scriptPath){let _;try{_=hl.realpathSync(this._scriptPath)}catch{_=this._scriptPath}f=Qt.resolve(Qt.dirname(_),f)}if(f){let _=o(f,l);if(!_&&!e._executableFile&&this._scriptPath){let b=Qt.basename(this._scriptPath,Qt.extname(this._scriptPath));b!==this._name&&(_=o(f,`${b}-${e._name}`))}l=_||l}i=a.includes(Qt.extname(l));let d;Ce.platform!=="win32"?i?(n.unshift(l),n=ep(Ce.execArgv).concat(n),d=fl.spawn(Ce.argv[0],n,{stdio:"inherit"})):d=fl.spawn(l,n,{stdio:"inherit"}):(n.unshift(l),n=ep(Ce.execArgv).concat(n),d=fl.spawn(Ce.execPath,n,{stdio:"inherit"})),d.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(b=>{Ce.on(b,()=>{d.killed===!1&&d.exitCode===null&&d.kill(b)})});let m=this._exitCallback;d.on("close",_=>{_=_??1,m?m(new dl(_,"commander.executeSubCommandAsync","(close)")):Ce.exit(_)}),d.on("error",_=>{if(_.code==="ENOENT"){let b=f?`searched for local subcommand relative to directory '${f}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",O=`'${l}' does not exist
- if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
- ${b}`;throw new Error(O)}else if(_.code==="EACCES")throw new Error(`'${l}' not executable`);if(!m)Ce.exit(1);else{let b=new dl(1,"commander.executeSubCommandAsync","(error)");b.nestedError=_,m(b)}}),this.runningCommand=d}_dispatchSubcommand(e,n,i){let a=this._findCommand(e);a||this.help({error:!0});let o;return o=this._chainOrCallSubCommandHook(o,a,"preSubcommand"),o=this._chainOrCall(o,()=>{if(a._executableHandler)this._executeSubCommand(a,n.concat(i));else return a._parseCommand(n,i)}),o}_dispatchHelpCommand(e){e||this.help();let n=this._findCommand(e);return n&&!n._executableHandler&&n.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,n)=>{e.required&&this.args[n]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(i,a,o)=>{let l=a;if(a!==null&&i.parseArg){let f=`error: command-argument value '${a}' is invalid for argument '${i.name()}'.`;l=this._callParseArg(i,a,o,f)}return l};this._checkNumberOfArguments();let n=[];this.registeredArguments.forEach((i,a)=>{let o=i.defaultValue;i.variadic?a<this.args.length?(o=this.args.slice(a),i.parseArg&&(o=o.reduce((l,f)=>e(i,f,l),i.defaultValue))):o===void 0&&(o=[]):a<this.args.length&&(o=this.args[a],i.parseArg&&(o=e(i,o,i.defaultValue))),n[a]=o}),this.processedArgs=n}_chainOrCall(e,n){return e&&e.then&&typeof e.then=="function"?e.then(()=>n()):n()}_chainOrCallHooks(e,n){let i=e,a=[];return this._getCommandAndAncestors().reverse().filter(o=>o._lifeCycleHooks[n]!==void 0).forEach(o=>{o._lifeCycleHooks[n].forEach(l=>{a.push({hookedCommand:o,callback:l})})}),n==="postAction"&&a.reverse(),a.forEach(o=>{i=this._chainOrCall(i,()=>o.callback(o.hookedCommand,this))}),i}_chainOrCallSubCommandHook(e,n,i){let a=e;return this._lifeCycleHooks[i]!==void 0&&this._lifeCycleHooks[i].forEach(o=>{a=this._chainOrCall(a,()=>o(this,n))}),a}_parseCommand(e,n){let i=this.parseOptions(n);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(i.operands),n=i.unknown,this.args=e.concat(n),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),n);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(n),this._dispatchSubcommand(this._defaultCommandName,e,n);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},o=`command:${this.name()}`;if(this._actionHandler){a(),this._processArguments();let l;return l=this._chainOrCallHooks(l,"preAction"),l=this._chainOrCall(l,()=>this._actionHandler(this.processedArgs)),this.parent&&(l=this._chainOrCall(l,()=>{this.parent.emit(o,e,n)})),l=this._chainOrCallHooks(l,"postAction"),l}if(this.parent&&this.parent.listenerCount(o))a(),this._processArguments(),this.parent.emit(o,e,n);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,n);this.listenerCount("command:*")?this.emit("command:*",e,n):this.commands.length?this.unknownCommand():(a(),this._processArguments())}else this.commands.length?(a(),this.help({error:!0})):(a(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(n=>n._name===e||n._aliases.includes(e))}_findOption(e){return this.options.find(n=>n.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(n=>{n.mandatory&&e.getOptionValue(n.attributeName())===void 0&&e.missingMandatoryOptionValue(n)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(i=>{let a=i.attributeName();return this.getOptionValue(a)===void 0?!1:this.getOptionValueSource(a)!=="default"});e.filter(i=>i.conflictsWith.length>0).forEach(i=>{let a=e.find(o=>i.conflictsWith.includes(o.attributeName()));a&&this._conflictingOption(i,a)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let n=[],i=[],a=n,o=e.slice();function l(d){return d.length>1&&d[0]==="-"}let f=null;for(;o.length;){let d=o.shift();if(d==="--"){a===i&&a.push(d),a.push(...o);break}if(f&&!l(d)){this.emit(`option:${f.name()}`,d);continue}if(f=null,l(d)){let m=this._findOption(d);if(m){if(m.required){let _=o.shift();_===void 0&&this.optionMissingArgument(m),this.emit(`option:${m.name()}`,_)}else if(m.optional){let _=null;o.length>0&&!l(o[0])&&(_=o.shift()),this.emit(`option:${m.name()}`,_)}else this.emit(`option:${m.name()}`);f=m.variadic?m:null;continue}}if(d.length>2&&d[0]==="-"&&d[1]!=="-"){let m=this._findOption(`-${d[1]}`);if(m){m.required||m.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${m.name()}`,d.slice(2)):(this.emit(`option:${m.name()}`),o.unshift(`-${d.slice(2)}`));continue}}if(/^--[^=]+=/.test(d)){let m=d.indexOf("="),_=this._findOption(d.slice(0,m));if(_&&(_.required||_.optional)){this.emit(`option:${_.name()}`,d.slice(m+1));continue}}if(l(d)&&(a=i),(this._enablePositionalOptions||this._passThroughOptions)&&n.length===0&&i.length===0){if(this._findCommand(d)){n.push(d),o.length>0&&i.push(...o);break}else if(this._getHelpCommand()&&d===this._getHelpCommand().name()){n.push(d),o.length>0&&n.push(...o);break}else if(this._defaultCommandName){i.push(d),o.length>0&&i.push(...o);break}}if(this._passThroughOptions){a.push(d),o.length>0&&a.push(...o);break}a.push(d)}return{operands:n,unknown:i}}opts(){if(this._storeOptionsAsProperties){let e={},n=this.options.length;for(let i=0;i<n;i++){let a=this.options[i].attributeName();e[a]=a===this._versionOptionName?this._version:this[a]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,n)=>Object.assign(e,n.opts()),{})}error(e,n){this._outputConfiguration.outputError(`${e}
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
`),this.outputHelp({error:!0}));let i=n||{},a=i.exitCode||1,o=i.code||"commander.error";this._exit(a,o,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in Ce.env){let n=e.attributeName();(this.getOptionValue(n)===void 0||["default","config","env"].includes(this.getOptionValueSource(n)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,Ce.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new wC(this.options),n=i=>this.getOptionValue(i)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(i));this.options.filter(i=>i.implied!==void 0&&n(i.attributeName())&&e.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach(i=>{Object.keys(i.implied).filter(a=>!n(a)).forEach(a=>{this.setOptionValueWithSource(a,i.implied[a],"implied")})})}missingArgument(e){let n=`error: missing required argument '${e}'`;this.error(n,{code:"commander.missingArgument"})}optionMissingArgument(e){let n=`error: option '${e.flags}' argument missing`;this.error(n,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let n=`error: required option '${e.flags}' not specified`;this.error(n,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,n){let i=l=>{let f=l.attributeName(),d=this.getOptionValue(f),m=this.options.find(b=>b.negate&&f===b.attributeName()),_=this.options.find(b=>!b.negate&&f===b.attributeName());return m&&(m.presetArg===void 0&&d===!1||m.presetArg!==void 0&&d===m.presetArg)?m:_||l},a=l=>{let f=i(l),d=f.attributeName();return this.getOptionValueSource(d)==="env"?`environment variable '${f.envVar}'`:`option '${f.flags}'`},o=`error: ${a(e)} cannot be used with ${a(n)}`;this.error(o,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let n="";if(e.startsWith("--")&&this._showSuggestionAfterError){let a=[],o=this;do{let l=o.createHelp().visibleOptions(o).filter(f=>f.long).map(f=>f.long);a=a.concat(l),o=o.parent}while(o&&!o._enablePositionalOptions);n=Xd(e,a)}let i=`error: unknown option '${e}'${n}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let n=this.registeredArguments.length,i=n===1?"":"s",o=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${n} argument${i} but got ${e.length}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],n="";if(this._showSuggestionAfterError){let a=[];this.createHelp().visibleCommands(this).forEach(o=>{a.push(o.name()),o.alias()&&a.push(o.alias())}),n=Xd(e,a)}let i=`error: unknown command '${e}'${n}`;this.error(i,{code:"commander.unknownCommand"})}version(e,n,i){if(e===void 0)return this._version;this._version=e,n=n||"-V, --version",i=i||"output the version number";let a=this.createOption(n,i);return this._versionOptionName=a.attributeName(),this._registerOption(a),this.on("option:"+a.name(),()=>{this._outputConfiguration.writeOut(`${e}
`),this._exit(0,"commander.version",e)}),this}description(e,n){return e===void 0&&n===void 0?this._description:(this._description=e,n&&(this._argsDescription=n),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let n=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(n=this.commands[this.commands.length-1]),e===n._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(e);if(i){let a=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${a}'`)}return n._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(n=>this.alias(n)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let n=this.registeredArguments.map(i=>vC(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?n:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=Qt.basename(e,Qt.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let n=this.createHelp();return n.helpWidth===void 0&&(n.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),n.formatHelp(this,n)}_getHelpContext(e){e=e||{};let n={error:!!e.error},i;return n.error?i=a=>this._outputConfiguration.writeErr(a):i=a=>this._outputConfiguration.writeOut(a),n.write=e.write||i,n.command=this,n}outputHelp(e){let n;typeof e=="function"&&(n=e,e=void 0);let i=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(o=>o.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let a=this.helpInformation(i);if(n&&(a=n(a),typeof a!="string"&&!Buffer.isBuffer(a)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(a),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",i),this._getCommandAndAncestors().forEach(o=>o.emit("afterAllHelp",i))}helpOption(e,n){return typeof e=="boolean"?(e?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(e=e??"-h, --help",n=n??"display help for command",this._helpOption=this.createOption(e,n),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this}help(e){this.outputHelp(e);let n=Ce.exitCode||0;n===0&&e&&typeof e!="function"&&e.error&&(n=1),this._exit(n,"commander.help","(outputHelp)")}addHelpText(e,n){let i=["beforeAll","before","after","afterAll"];if(!i.includes(e))throw new Error(`Unexpected value for position to addHelpText.
Expecting one of '${i.join("', '")}'`);let a=`${e}Help`;return this.on(a,o=>{let l;typeof n=="function"?l=n({error:o.error,command:o.command}):l=n,l&&o.write(`${l}
`)}),this}_outputHelpIfRequested(e){let n=this._getHelpOption();n&&e.find(a=>n.is(a))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function ep(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let n,i="127.0.0.1",a="9229",o;return(o=e.match(/^(--inspect(-brk)?)$/))!==null?n=o[1]:(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(n=o[1],/^\d+$/.test(o[3])?a=o[3]:i=o[3]):(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(n=o[1],i=o[3],a=o[4]),n&&a!=="0"?`${n}=${i}:${parseInt(a)+1}`:e})}tp.Command=pl});var ap=C(wt=>{var{Argument:rp}=fa(),{Command:ml}=np(),{CommanderError:SC,InvalidArgumentError:ip}=wi(),{Help:OC}=al(),{Option:sp}=cl();wt.program=new ml;wt.createCommand=t=>new ml(t);wt.createOption=(t,e)=>new sp(t,e);wt.createArgument=(t,e)=>new rp(t,e);wt.Command=ml;wt.Option=sp;wt.Argument=rp;wt.Help=OC;wt.CommanderError=SC;wt.InvalidArgumentError=ip;wt.InvalidOptionArgumentError=ip});var ba=C((Rr,ki)=>{(function(){var t,e="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",m=1,_=2,b=4,O=1,k=2,I=1,x=2,$=4,B=8,F=16,K=32,z=64,j=128,J=256,de=512,U=30,Ee="...",qt=800,an=16,xe=1,ms=2,hb=3,$n=1/0,on=9007199254740991,db=17976931348623157e292,gs=NaN,Lt=4294967295,pb=Lt-1,mb=Lt>>>1,gb=[["ary",j],["bind",I],["bindKey",x],["curry",B],["curryRight",F],["flip",de],["partial",K],["partialRight",z],["rearg",J]],hr="[object Arguments]",ys="[object Array]",yb="[object AsyncFunction]",Xr="[object Boolean]",ei="[object Date]",_b="[object DOMException]",_s="[object Error]",vs="[object Function]",yf="[object GeneratorFunction]",At="[object Map]",ti="[object Number]",vb="[object Null]",Vt="[object Object]",_f="[object Promise]",bb="[object Proxy]",ni="[object RegExp]",Ct="[object Set]",ri="[object String]",bs="[object Symbol]",wb="[object Undefined]",ii="[object WeakMap]",Sb="[object WeakSet]",si="[object ArrayBuffer]",dr="[object DataView]",Lo="[object Float32Array]",Po="[object Float64Array]",Mo="[object Int8Array]",Ro="[object Int16Array]",Do="[object Int32Array]",Bo="[object Uint8Array]",Fo="[object Uint8ClampedArray]",Uo="[object Uint16Array]",Vo="[object Uint32Array]",Ob=/\b__p \+= '';/g,xb=/\b(__p \+=) '' \+/g,Ab=/(__e\(.*?\)|\b__t\)) \+\n'';/g,vf=/&(?:amp|lt|gt|quot|#39);/g,bf=/[&<>"']/g,Cb=RegExp(vf.source),Eb=RegExp(bf.source),kb=/<%-([\s\S]+?)%>/g,Tb=/<%([\s\S]+?)%>/g,wf=/<%=([\s\S]+?)%>/g,Nb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ib=/^\w*$/,$b=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wo=/[\\^$.*+?()[\]{}|]/g,qb=RegExp(Wo.source),Ko=/^\s+/,Lb=/\s/,Pb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Mb=/\{\n\/\* \[wrapped with (.+)\] \*/,Rb=/,? & /,Db=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bb=/[()=,{}\[\]\/\s]/,Fb=/\\(\\)?/g,Ub=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Sf=/\w*$/,Vb=/^[-+]0x[0-9a-f]+$/i,Wb=/^0b[01]+$/i,Kb=/^\[object .+?Constructor\]$/,jb=/^0o[0-7]+$/i,Hb=/^(?:0|[1-9]\d*)$/,zb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ws=/($^)/,Zb=/['\n\r\u2028\u2029\\]/g,Ss="\\ud800-\\udfff",Yb="\\u0300-\\u036f",Gb="\\ufe20-\\ufe2f",Jb="\\u20d0-\\u20ff",Of=Yb+Gb+Jb,xf="\\u2700-\\u27bf",Af="a-z\\xdf-\\xf6\\xf8-\\xff",Qb="\\xac\\xb1\\xd7\\xf7",Xb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",e0="\\u2000-\\u206f",t0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cf="A-Z\\xc0-\\xd6\\xd8-\\xde",Ef="\\ufe0e\\ufe0f",kf=Qb+Xb+e0+t0,jo="['\u2019]",n0="["+Ss+"]",Tf="["+kf+"]",Os="["+Of+"]",Nf="\\d+",r0="["+xf+"]",If="["+Af+"]",$f="[^"+Ss+kf+Nf+xf+Af+Cf+"]",Ho="\\ud83c[\\udffb-\\udfff]",i0="(?:"+Os+"|"+Ho+")",qf="[^"+Ss+"]",zo="(?:\\ud83c[\\udde6-\\uddff]){2}",Zo="[\\ud800-\\udbff][\\udc00-\\udfff]",pr="["+Cf+"]",Lf="\\u200d",Pf="(?:"+If+"|"+$f+")",s0="(?:"+pr+"|"+$f+")",Mf="(?:"+jo+"(?:d|ll|m|re|s|t|ve))?",Rf="(?:"+jo+"(?:D|LL|M|RE|S|T|VE))?",Df=i0+"?",Bf="["+Ef+"]?",a0="(?:"+Lf+"(?:"+[qf,zo,Zo].join("|")+")"+Bf+Df+")*",o0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",u0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ff=Bf+Df+a0,l0="(?:"+[r0,zo,Zo].join("|")+")"+Ff,c0="(?:"+[qf+Os+"?",Os,zo,Zo,n0].join("|")+")",f0=RegExp(jo,"g"),h0=RegExp(Os,"g"),Yo=RegExp(Ho+"(?="+Ho+")|"+c0+Ff,"g"),d0=RegExp([pr+"?"+If+"+"+Mf+"(?="+[Tf,pr,"$"].join("|")+")",s0+"+"+Rf+"(?="+[Tf,pr+Pf,"$"].join("|")+")",pr+"?"+Pf+"+"+Mf,pr+"+"+Rf,u0,o0,Nf,l0].join("|"),"g"),p0=RegExp("["+Lf+Ss+Of+Ef+"]"),m0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,g0=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],y0=-1,we={};we[Lo]=we[Po]=we[Mo]=we[Ro]=we[Do]=we[Bo]=we[Fo]=we[Uo]=we[Vo]=!0,we[hr]=we[ys]=we[si]=we[Xr]=we[dr]=we[ei]=we[_s]=we[vs]=we[At]=we[ti]=we[Vt]=we[ni]=we[Ct]=we[ri]=we[ii]=!1;var be={};be[hr]=be[ys]=be[si]=be[dr]=be[Xr]=be[ei]=be[Lo]=be[Po]=be[Mo]=be[Ro]=be[Do]=be[At]=be[ti]=be[Vt]=be[ni]=be[Ct]=be[ri]=be[bs]=be[Bo]=be[Fo]=be[Uo]=be[Vo]=!0,be[_s]=be[vs]=be[ii]=!1;var _0={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},v0={"&":"&","<":"<",">":">",'"':""","'":"'"},b0={"&":"&","<":"<",">":">",""":'"',"'":"'"},w0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},S0=parseFloat,O0=parseInt,Uf=typeof global=="object"&&global&&global.Object===Object&&global,x0=typeof self=="object"&&self&&self.Object===Object&&self,Be=Uf||x0||Function("return this")(),Go=typeof Rr=="object"&&Rr&&!Rr.nodeType&&Rr,qn=Go&&typeof ki=="object"&&ki&&!ki.nodeType&&ki,Vf=qn&&qn.exports===Go,Jo=Vf&&Uf.process,dt=function(){try{var w=qn&&qn.require&&qn.require("util").types;return w||Jo&&Jo.binding&&Jo.binding("util")}catch{}}(),Wf=dt&&dt.isArrayBuffer,Kf=dt&&dt.isDate,jf=dt&&dt.isMap,Hf=dt&&dt.isRegExp,zf=dt&&dt.isSet,Zf=dt&&dt.isTypedArray;function rt(w,E,A){switch(A.length){case 0:return w.call(E);case 1:return w.call(E,A[0]);case 2:return w.call(E,A[0],A[1]);case 3:return w.call(E,A[0],A[1],A[2])}return w.apply(E,A)}function A0(w,E,A,D){for(var ee=-1,he=w==null?0:w.length;++ee<he;){var Pe=w[ee];E(D,Pe,A(Pe),w)}return D}function pt(w,E){for(var A=-1,D=w==null?0:w.length;++A<D&&E(w[A],A,w)!==!1;);return w}function C0(w,E){for(var A=w==null?0:w.length;A--&&E(w[A],A,w)!==!1;);return w}function Yf(w,E){for(var A=-1,D=w==null?0:w.length;++A<D;)if(!E(w[A],A,w))return!1;return!0}function un(w,E){for(var A=-1,D=w==null?0:w.length,ee=0,he=[];++A<D;){var Pe=w[A];E(Pe,A,w)&&(he[ee++]=Pe)}return he}function xs(w,E){var A=w==null?0:w.length;return!!A&&mr(w,E,0)>-1}function Qo(w,E,A){for(var D=-1,ee=w==null?0:w.length;++D<ee;)if(A(E,w[D]))return!0;return!1}function Se(w,E){for(var A=-1,D=w==null?0:w.length,ee=Array(D);++A<D;)ee[A]=E(w[A],A,w);return ee}function ln(w,E){for(var A=-1,D=E.length,ee=w.length;++A<D;)w[ee+A]=E[A];return w}function Xo(w,E,A,D){var ee=-1,he=w==null?0:w.length;for(D&&he&&(A=w[++ee]);++ee<he;)A=E(A,w[ee],ee,w);return A}function E0(w,E,A,D){var ee=w==null?0:w.length;for(D&&ee&&(A=w[--ee]);ee--;)A=E(A,w[ee],ee,w);return A}function eu(w,E){for(var A=-1,D=w==null?0:w.length;++A<D;)if(E(w[A],A,w))return!0;return!1}var k0=tu("length");function T0(w){return w.split("")}function N0(w){return w.match(Db)||[]}function Gf(w,E,A){var D;return A(w,function(ee,he,Pe){if(E(ee,he,Pe))return D=he,!1}),D}function As(w,E,A,D){for(var ee=w.length,he=A+(D?1:-1);D?he--:++he<ee;)if(E(w[he],he,w))return he;return-1}function mr(w,E,A){return E===E?V0(w,E,A):As(w,Jf,A)}function I0(w,E,A,D){for(var ee=A-1,he=w.length;++ee<he;)if(D(w[ee],E))return ee;return-1}function Jf(w){return w!==w}function Qf(w,E){var A=w==null?0:w.length;return A?ru(w,E)/A:gs}function tu(w){return function(E){return E==null?t:E[w]}}function nu(w){return function(E){return w==null?t:w[E]}}function Xf(w,E,A,D,ee){return ee(w,function(he,Pe,_e){A=D?(D=!1,he):E(A,he,Pe,_e)}),A}function $0(w,E){var A=w.length;for(w.sort(E);A--;)w[A]=w[A].value;return w}function ru(w,E){for(var A,D=-1,ee=w.length;++D<ee;){var he=E(w[D]);he!==t&&(A=A===t?he:A+he)}return A}function iu(w,E){for(var A=-1,D=Array(w);++A<w;)D[A]=E(A);return D}function q0(w,E){return Se(E,function(A){return[A,w[A]]})}function eh(w){return w&&w.slice(0,ih(w)+1).replace(Ko,"")}function it(w){return function(E){return w(E)}}function su(w,E){return Se(E,function(A){return w[A]})}function ai(w,E){return w.has(E)}function th(w,E){for(var A=-1,D=w.length;++A<D&&mr(E,w[A],0)>-1;);return A}function nh(w,E){for(var A=w.length;A--&&mr(E,w[A],0)>-1;);return A}function L0(w,E){for(var A=w.length,D=0;A--;)w[A]===E&&++D;return D}var P0=nu(_0),M0=nu(v0);function R0(w){return"\\"+w0[w]}function D0(w,E){return w==null?t:w[E]}function gr(w){return p0.test(w)}function B0(w){return m0.test(w)}function F0(w){for(var E,A=[];!(E=w.next()).done;)A.push(E.value);return A}function au(w){var E=-1,A=Array(w.size);return w.forEach(function(D,ee){A[++E]=[ee,D]}),A}function rh(w,E){return function(A){return w(E(A))}}function cn(w,E){for(var A=-1,D=w.length,ee=0,he=[];++A<D;){var Pe=w[A];(Pe===E||Pe===d)&&(w[A]=d,he[ee++]=A)}return he}function Cs(w){var E=-1,A=Array(w.size);return w.forEach(function(D){A[++E]=D}),A}function U0(w){var E=-1,A=Array(w.size);return w.forEach(function(D){A[++E]=[D,D]}),A}function V0(w,E,A){for(var D=A-1,ee=w.length;++D<ee;)if(w[D]===E)return D;return-1}function W0(w,E,A){for(var D=A+1;D--;)if(w[D]===E)return D;return D}function yr(w){return gr(w)?j0(w):k0(w)}function Et(w){return gr(w)?H0(w):T0(w)}function ih(w){for(var E=w.length;E--&&Lb.test(w.charAt(E)););return E}var K0=nu(b0);function j0(w){for(var E=Yo.lastIndex=0;Yo.test(w);)++E;return E}function H0(w){return w.match(Yo)||[]}function z0(w){return w.match(d0)||[]}var Z0=function w(E){E=E==null?Be:fn.defaults(Be.Object(),E,fn.pick(Be,g0));var A=E.Array,D=E.Date,ee=E.Error,he=E.Function,Pe=E.Math,_e=E.Object,ou=E.RegExp,Y0=E.String,mt=E.TypeError,Es=A.prototype,G0=he.prototype,_r=_e.prototype,ks=E["__core-js_shared__"],Ts=G0.toString,ge=_r.hasOwnProperty,J0=0,sh=function(){var r=/[^.]+$/.exec(ks&&ks.keys&&ks.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Ns=_r.toString,Q0=Ts.call(_e),X0=Be._,ew=ou("^"+Ts.call(ge).replace(Wo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Is=Vf?E.Buffer:t,hn=E.Symbol,$s=E.Uint8Array,ah=Is?Is.allocUnsafe:t,qs=rh(_e.getPrototypeOf,_e),oh=_e.create,uh=_r.propertyIsEnumerable,Ls=Es.splice,lh=hn?hn.isConcatSpreadable:t,oi=hn?hn.iterator:t,Ln=hn?hn.toStringTag:t,Ps=function(){try{var r=Bn(_e,"defineProperty");return r({},"",{}),r}catch{}}(),tw=E.clearTimeout!==Be.clearTimeout&&E.clearTimeout,nw=D&&D.now!==Be.Date.now&&D.now,rw=E.setTimeout!==Be.setTimeout&&E.setTimeout,Ms=Pe.ceil,Rs=Pe.floor,uu=_e.getOwnPropertySymbols,iw=Is?Is.isBuffer:t,ch=E.isFinite,sw=Es.join,aw=rh(_e.keys,_e),Me=Pe.max,Ke=Pe.min,ow=D.now,uw=E.parseInt,fh=Pe.random,lw=Es.reverse,lu=Bn(E,"DataView"),ui=Bn(E,"Map"),cu=Bn(E,"Promise"),vr=Bn(E,"Set"),li=Bn(E,"WeakMap"),ci=Bn(_e,"create"),Ds=li&&new li,br={},cw=Fn(lu),fw=Fn(ui),hw=Fn(cu),dw=Fn(vr),pw=Fn(li),Bs=hn?hn.prototype:t,fi=Bs?Bs.valueOf:t,hh=Bs?Bs.toString:t;function p(r){if(Ae(r)&&!ne(r)&&!(r instanceof ue)){if(r instanceof gt)return r;if(ge.call(r,"__wrapped__"))return dd(r)}return new gt(r)}var wr=function(){function r(){}return function(s){if(!Oe(s))return{};if(oh)return oh(s);r.prototype=s;var u=new r;return r.prototype=t,u}}();function Fs(){}function gt(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=t}p.templateSettings={escape:kb,evaluate:Tb,interpolate:wf,variable:"",imports:{_:p}},p.prototype=Fs.prototype,p.prototype.constructor=p,gt.prototype=wr(Fs.prototype),gt.prototype.constructor=gt;function ue(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Lt,this.__views__=[]}function mw(){var r=new ue(this.__wrapped__);return r.__actions__=Je(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=Je(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=Je(this.__views__),r}function gw(){if(this.__filtered__){var r=new ue(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function yw(){var r=this.__wrapped__.value(),s=this.__dir__,u=ne(r),c=s<0,h=u?r.length:0,g=TS(0,h,this.__views__),y=g.start,v=g.end,S=v-y,T=c?v:y-1,N=this.__iteratees__,q=N.length,P=0,V=Ke(S,this.__takeCount__);if(!u||!c&&h==S&&V==S)return Mh(r,this.__actions__);var Z=[];e:for(;S--&&P<V;){T+=s;for(var se=-1,Y=r[T];++se<q;){var oe=N[se],le=oe.iteratee,ot=oe.type,Ye=le(Y);if(ot==ms)Y=Ye;else if(!Ye){if(ot==xe)continue e;break e}}Z[P++]=Y}return Z}ue.prototype=wr(Fs.prototype),ue.prototype.constructor=ue;function Pn(r){var s=-1,u=r==null?0:r.length;for(this.clear();++s<u;){var c=r[s];this.set(c[0],c[1])}}function _w(){this.__data__=ci?ci(null):{},this.size=0}function vw(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function bw(r){var s=this.__data__;if(ci){var u=s[r];return u===l?t:u}return ge.call(s,r)?s[r]:t}function ww(r){var s=this.__data__;return ci?s[r]!==t:ge.call(s,r)}function Sw(r,s){var u=this.__data__;return this.size+=this.has(r)?0:1,u[r]=ci&&s===t?l:s,this}Pn.prototype.clear=_w,Pn.prototype.delete=vw,Pn.prototype.get=bw,Pn.prototype.has=ww,Pn.prototype.set=Sw;function Wt(r){var s=-1,u=r==null?0:r.length;for(this.clear();++s<u;){var c=r[s];this.set(c[0],c[1])}}function Ow(){this.__data__=[],this.size=0}function xw(r){var s=this.__data__,u=Us(s,r);if(