engagelab-email-cli 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +227 -119
- package/dist/index.cjs +53 -40
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,53 +1,66 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var
|
|
3
|
-
`).replace(/^/gm," ".repeat(
|
|
4
|
-
`)}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,i,
|
|
2
|
+
var el=Object.create;var Kt=Object.defineProperty;var tl=Object.getOwnPropertyDescriptor;var rl=Object.getOwnPropertyNames;var il=Object.getPrototypeOf,sl=Object.prototype.hasOwnProperty;var F=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(i){throw t=[i],i}};var m=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},Bi=(r,e)=>{for(var t in e)Kt(r,t,{get:e[t],enumerable:!0})},nl=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of rl(e))!sl.call(r,s)&&s!==t&&Kt(r,s,{get:()=>e[s],enumerable:!(i=tl(e,s))||i.enumerable});return r};var v=(r,e,t)=>(t=r!=null?el(il(r)):{},nl(e||!r||!r.__esModule?Kt(t,"default",{value:r,enumerable:!0}):t,r));var Le=m(Qt=>{var at=class extends Error{constructor(e,t,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},Zt=class extends at{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Qt.CommanderError=at;Qt.InvalidArgumentError=Zt});var lt=m(tr=>{var{InvalidArgumentError:ol}=Le(),er=class{constructor(e,t){switch(this.description=t||"",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,t){return t===this.defaultValue||!Array.isArray(t)?[e]:t.concat(e)}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(t,i)=>{if(!this.argChoices.includes(t))throw new ol(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(t,i):t},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function ul(r){let e=r.name()+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}tr.Argument=er;tr.humanReadableArgName=ul});var ir=m(Li=>{var{humanReadableArgName:al}=lt(),rr=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let t=e.commands.filter(s=>!s._hidden),i=e._getHelpCommand();return i&&!i._hidden&&t.push(i),this.sortSubcommands&&t.sort((s,n)=>s.name().localeCompare(n.name())),t}compareOptions(e,t){let i=s=>s.short?s.short.replace(/^-/,""):s.long.replace(/^--/,"");return i(e).localeCompare(i(t))}visibleOptions(e){let t=e.options.filter(s=>!s.hidden),i=e._getHelpOption();if(i&&!i.hidden){let s=i.short&&e._findOption(i.short),n=i.long&&e._findOption(i.long);!s&&!n?t.push(i):i.long&&!n?t.push(e.createOption(i.long,i.description)):i.short&&!s&&t.push(e.createOption(i.short,i.description))}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let i=e.parent;i;i=i.parent){let s=i.options.filter(n=>!n.hidden);t.push(...s)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||""}),e.registeredArguments.find(t=>t.description)?e.registeredArguments:[]}subcommandTerm(e){let t=e.registeredArguments.map(i=>al(i)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((i,s)=>Math.max(i,t.subcommandTerm(s).length),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((i,s)=>Math.max(i,t.optionTerm(s).length),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((i,s)=>Math.max(i,t.optionTerm(s).length),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((i,s)=>Math.max(i,t.argumentTerm(s).length),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+"|"+e._aliases[0]);let i="";for(let s=e.parent;s;s=s.parent)i=s.name()+" "+i;return i+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];return e.argChoices&&t.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&t.push(`env: ${e.envVar}`),t.length>0?`${e.description} (${t.join(", ")})`:e.description}argumentDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){let i=`(${t.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}formatHelp(e,t){let i=t.padWidth(e,t),s=t.helpWidth||80,n=2,o=2;function a(d,E){if(E){let C=`${d.padEnd(i+o)}${E}`;return t.wrap(C,s-n,i+o)}return d}function u(d){return d.join(`
|
|
3
|
+
`).replace(/^/gm," ".repeat(n))}let l=[`Usage: ${t.commandUsage(e)}`,""],c=t.commandDescription(e);c.length>0&&(l=l.concat([t.wrap(c,s,0),""]));let h=t.visibleArguments(e).map(d=>a(t.argumentTerm(d),t.argumentDescription(d)));h.length>0&&(l=l.concat(["Arguments:",u(h),""]));let p=t.visibleOptions(e).map(d=>a(t.optionTerm(d),t.optionDescription(d)));if(p.length>0&&(l=l.concat(["Options:",u(p),""])),this.showGlobalOptions){let d=t.visibleGlobalOptions(e).map(E=>a(t.optionTerm(E),t.optionDescription(E)));d.length>0&&(l=l.concat(["Global Options:",u(d),""]))}let f=t.visibleCommands(e).map(d=>a(t.subcommandTerm(d),t.subcommandDescription(d)));return f.length>0&&(l=l.concat(["Commands:",u(f),""])),l.join(`
|
|
4
|
+
`)}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,i,s=40){let n=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",o=new RegExp(`[\\n][${n}]+`);if(e.match(o))return e;let a=t-i;if(a<s)return e;let u=e.slice(0,i),l=e.slice(i).replace(`\r
|
|
5
5
|
`,`
|
|
6
|
-
`),
|
|
7
|
-
|.{1,${a-1}}([${
|
|
8
|
-
`?"":(
|
|
9
|
-
`)}};
|
|
6
|
+
`),c=" ".repeat(i),p="\\s\u200B",f=new RegExp(`
|
|
7
|
+
|.{1,${a-1}}([${p}]|$)|[^${p}]+?([${p}]|$)`,"g"),d=l.match(f)||[];return u+d.map((E,C)=>E===`
|
|
8
|
+
`?"":(C>0?c:"")+E.trimEnd()).join(`
|
|
9
|
+
`)}};Li.Help=rr});var ur=m(or=>{var{InvalidArgumentError:ll}=Le(),sr=class{constructor(e,t){this.flags=e,this.description=t||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let i=hl(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,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return typeof e=="string"&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),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,t){return t===this.defaultValue||!Array.isArray(t)?[e]:t.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(t,i)=>{if(!this.argChoices.includes(t))throw new ll(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(t,i):t},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return cl(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},nr=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(t=>{t.negate?this.negativeOptions.set(t.attributeName(),t):this.positiveOptions.set(t.attributeName(),t)}),this.negativeOptions.forEach((t,i)=>{this.positiveOptions.has(i)&&this.dualOptions.add(i)})}valueFromOption(e,t){let i=t.attributeName();if(!this.dualOptions.has(i))return!0;let s=this.negativeOptions.get(i).presetArg,n=s!==void 0?s:!1;return t.negate===(n===e)}};function cl(r){return r.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function hl(r){let e,t,i=r.split(/[ |,]+/);return i.length>1&&!/^[[<]/.test(i[1])&&(e=i.shift()),t=i.shift(),!e&&/^-[^-]$/.test(t)&&(e=t,t=void 0),{shortFlag:e,longFlag:t}}or.Option=sr;or.DualOptions=nr});var Pi=m(Ni=>{function fl(r,e){if(Math.abs(r.length-e.length)>3)return Math.max(r.length,e.length);let t=[];for(let i=0;i<=r.length;i++)t[i]=[i];for(let i=0;i<=e.length;i++)t[0][i]=i;for(let i=1;i<=e.length;i++)for(let s=1;s<=r.length;s++){let n=1;r[s-1]===e[i-1]?n=0:n=1,t[s][i]=Math.min(t[s-1][i]+1,t[s][i-1]+1,t[s-1][i-1]+n),s>1&&i>1&&r[s-1]===e[i-2]&&r[s-2]===e[i-1]&&(t[s][i]=Math.min(t[s][i],t[s-2][i-2]+1))}return t[r.length][e.length]}function dl(r,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let t=r.startsWith("--");t&&(r=r.slice(2),e=e.map(o=>o.slice(2)));let i=[],s=3,n=.4;return e.forEach(o=>{if(o.length<=1)return;let a=fl(r,o),u=Math.max(r.length,o.length);(u-a)/u>n&&(a<s?(s=a,i=[o]):a===s&&i.push(o))}),i.sort((o,a)=>o.localeCompare(a)),t&&(i=i.map(o=>`--${o}`)),i.length>1?`
|
|
10
10
|
(Did you mean one of ${i.join(", ")}?)`:i.length===1?`
|
|
11
|
-
(Did you mean ${i[0]}?)`:""}
|
|
12
|
-
- specify the name in Command constructor or using .name()`);return t=t||{},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new
|
|
13
|
-
Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=t=>{if(t.code!=="commander.executeSubCommandAsync")throw t},this}_exit(e,t,i){this._exitCallback&&this._exitCallback(new
|
|
14
|
-
- already used by option '${t.flags}'`)}this.options.push(e)}_registerCommand(e){let t=
|
|
11
|
+
(Did you mean ${i[0]}?)`:""}Ni.suggestSimilar=dl});var Hi=m(Mi=>{var pl=require("node:events").EventEmitter,ar=require("node:child_process"),se=require("node:path"),lr=require("node:fs"),T=require("node:process"),{Argument:ml,humanReadableArgName:Dl}=lt(),{CommanderError:cr}=Le(),{Help:gl}=ir(),{Option:qi,DualOptions:El}=ur(),{suggestSimilar:ji}=Pi(),hr=class r extends pl{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:t=>T.stdout.write(t),writeErr:t=>T.stderr.write(t),getOutHelpWidth:()=>T.stdout.isTTY?T.stdout.columns:void 0,getErrHelpWidth:()=>T.stderr.isTTY?T.stderr.columns:void 0,outputError:(t,i)=>i(t)},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 t=this;t;t=t.parent)e.push(t);return e}command(e,t,i){let s=t,n=i;typeof s=="object"&&s!==null&&(n=s,s=null),n=n||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),u=this.createCommand(o);return s&&(u.description(s),u._executableHandler=!0),n.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(n.noHelp||n.hidden),u._executableFile=n.executableFile||null,a&&u.arguments(a),this._registerCommand(u),u.parent=this,u.copyInheritedSettings(this),s?this:u}createCommand(e){return new r(e)}createHelp(){return Object.assign(new gl,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,t){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
12
|
+
- specify the name in Command constructor or using .name()`);return t=t||{},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new ml(e,t)}argument(e,t,i,s){let n=this.createArgument(e,t);return typeof i=="function"?n.default(s).argParser(i):n.default(i),this.addArgument(n),this}arguments(e){return e.trim().split(/ +/).forEach(t=>{this.argument(t)}),this}addArgument(e){let t=this.registeredArguments.slice(-1)[0];if(t&&t.variadic)throw new Error(`only the last argument can be variadic '${t.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,t){if(typeof e=="boolean")return this._addImplicitHelpCommand=e,this;e=e??"help [command]";let[,i,s]=e.match(/([^ ]+) *(.*)/),n=t??"display help for command",o=this.createCommand(i);return o.helpOption(!1),s&&o.arguments(s),n&&o.description(n),this._addImplicitHelpCommand=!0,this._helpCommand=o,this}addHelpCommand(e,t){return typeof e!="object"?(this.helpCommand(e,t),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,t){let i=["preSubcommand","preAction","postAction"];if(!i.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
|
|
13
|
+
Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=t=>{if(t.code!=="commander.executeSubCommandAsync")throw t},this}_exit(e,t,i){this._exitCallback&&this._exitCallback(new cr(e,t,i)),T.exit(e)}action(e){let t=i=>{let s=this.registeredArguments.length,n=i.slice(0,s);return this._storeOptionsAsProperties?n[s]=this:n[s]=this.opts(),n.push(this),e.apply(this,n)};return this._actionHandler=t,this}createOption(e,t){return new qi(e,t)}_callParseArg(e,t,i,s){try{return e.parseArg(t,i)}catch(n){if(n.code==="commander.invalidArgument"){let o=`${s} ${n.message}`;this.error(o,{exitCode:n.exitCode,code:n.code})}throw n}}_registerOption(e){let t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){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}'
|
|
14
|
+
- already used by option '${t.flags}'`)}this.options.push(e)}_registerCommand(e){let t=s=>[s.name()].concat(s.aliases()),i=t(e).find(s=>this._findCommand(s));if(i){let s=t(this._findCommand(i)).join("|"),n=t(e).join("|");throw new Error(`cannot add command '${n}' as already have command '${s}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);let t=e.name(),i=e.attributeName();if(e.negate){let n=e.long.replace(/^--no-/,"--");this._findOption(n)||this.setOptionValueWithSource(i,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(i,e.defaultValue,"default");let s=(n,o,a)=>{n==null&&e.presetArg!==void 0&&(n=e.presetArg);let u=this.getOptionValue(i);n!==null&&e.parseArg?n=this._callParseArg(e,n,u,o):n!==null&&e.variadic&&(n=e._concatValue(n,u)),n==null&&(e.negate?n=!1:e.isBoolean()||e.optional?n=!0:n=""),this.setOptionValueWithSource(i,n,a)};return this.on("option:"+t,n=>{let o=`error: option '${e.flags}' argument '${n}' is invalid.`;s(n,o,"cli")}),e.envVar&&this.on("optionEnv:"+t,n=>{let o=`error: option '${e.flags}' value '${n}' from env '${e.envVar}' is invalid.`;s(n,o,"env")}),this}_optionEx(e,t,i,s,n){if(typeof t=="object"&&t instanceof qi)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(t,i);if(o.makeOptionMandatory(!!e.mandatory),typeof s=="function")o.default(n).argParser(s);else if(s instanceof RegExp){let a=s;s=(u,l)=>{let c=a.exec(u);return c?c[0]:l},o.default(n).argParser(s)}else o.default(s);return this.addOption(o)}option(e,t,i,s){return this._optionEx({},e,t,i,s)}requiredOption(e,t,i,s){return this._optionEx({mandatory:!0},e,t,i,s)}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,t){return this.setOptionValueWithSource(e,t,void 0)}setOptionValueWithSource(e,t,i){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this._optionValueSources[e]=i,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;return this._getCommandAndAncestors().forEach(i=>{i.getOptionValueSource(e)!==void 0&&(t=i.getOptionValueSource(e))}),t}_prepareUserArgs(e,t){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");if(t=t||{},e===void 0&&t.from===void 0){T.versions?.electron&&(t.from="electron");let s=T.execArgv??[];(s.includes("-e")||s.includes("--eval")||s.includes("-p")||s.includes("--print"))&&(t.from="eval")}e===void 0&&(e=T.argv),this.rawArgs=e.slice();let i;switch(t.from){case void 0:case"node":this._scriptPath=e[1],i=e.slice(2);break;case"electron":T.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: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}parse(e,t){let i=this._prepareUserArgs(e,t);return this._parseCommand([],i),this}async parseAsync(e,t){let i=this._prepareUserArgs(e,t);return await this._parseCommand([],i),this}_executeSubCommand(e,t){t=t.slice();let i=!1,s=[".js",".ts",".tsx",".mjs",".cjs"];function n(c,h){let p=se.resolve(c,h);if(lr.existsSync(p))return p;if(s.includes(se.extname(h)))return;let f=s.find(d=>lr.existsSync(`${p}${d}`));if(f)return`${p}${f}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let c;try{c=lr.realpathSync(this._scriptPath)}catch{c=this._scriptPath}a=se.resolve(se.dirname(c),a)}if(a){let c=n(a,o);if(!c&&!e._executableFile&&this._scriptPath){let h=se.basename(this._scriptPath,se.extname(this._scriptPath));h!==this._name&&(c=n(a,`${h}-${e._name}`))}o=c||o}i=s.includes(se.extname(o));let u;T.platform!=="win32"?i?(t.unshift(o),t=ki(T.execArgv).concat(t),u=ar.spawn(T.argv[0],t,{stdio:"inherit"})):u=ar.spawn(o,t,{stdio:"inherit"}):(t.unshift(o),t=ki(T.execArgv).concat(t),u=ar.spawn(T.execPath,t,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(h=>{T.on(h,()=>{u.killed===!1&&u.exitCode===null&&u.kill(h)})});let l=this._exitCallback;u.on("close",c=>{c=c??1,l?l(new cr(c,"commander.executeSubCommandAsync","(close)")):T.exit(c)}),u.on("error",c=>{if(c.code==="ENOENT"){let h=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",p=`'${o}' does not exist
|
|
15
15
|
- if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
16
16
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
17
|
-
- ${
|
|
17
|
+
- ${h}`;throw new Error(p)}else if(c.code==="EACCES")throw new Error(`'${o}' not executable`);if(!l)T.exit(1);else{let h=new cr(1,"commander.executeSubCommandAsync","(error)");h.nestedError=c,l(h)}}),this.runningCommand=u}_dispatchSubcommand(e,t,i){let s=this._findCommand(e);s||this.help({error:!0});let n;return n=this._chainOrCallSubCommandHook(n,s,"preSubcommand"),n=this._chainOrCall(n,()=>{if(s._executableHandler)this._executeSubCommand(s,t.concat(i));else return s._parseCommand(t,i)}),n}_dispatchHelpCommand(e){e||this.help();let t=this._findCommand(e);return t&&!t._executableHandler&&t.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,t)=>{e.required&&this.args[t]==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,s,n)=>{let o=s;if(s!==null&&i.parseArg){let a=`error: command-argument value '${s}' is invalid for argument '${i.name()}'.`;o=this._callParseArg(i,s,n,a)}return o};this._checkNumberOfArguments();let t=[];this.registeredArguments.forEach((i,s)=>{let n=i.defaultValue;i.variadic?s<this.args.length?(n=this.args.slice(s),i.parseArg&&(n=n.reduce((o,a)=>e(i,a,o),i.defaultValue))):n===void 0&&(n=[]):s<this.args.length&&(n=this.args[s],i.parseArg&&(n=e(i,n,i.defaultValue))),t[s]=n}),this.processedArgs=t}_chainOrCall(e,t){return e&&e.then&&typeof e.then=="function"?e.then(()=>t()):t()}_chainOrCallHooks(e,t){let i=e,s=[];return this._getCommandAndAncestors().reverse().filter(n=>n._lifeCycleHooks[t]!==void 0).forEach(n=>{n._lifeCycleHooks[t].forEach(o=>{s.push({hookedCommand:n,callback:o})})}),t==="postAction"&&s.reverse(),s.forEach(n=>{i=this._chainOrCall(i,()=>n.callback(n.hookedCommand,this))}),i}_chainOrCallSubCommandHook(e,t,i){let s=e;return this._lifeCycleHooks[i]!==void 0&&this._lifeCycleHooks[i].forEach(n=>{s=this._chainOrCall(s,()=>n(this,t))}),s}_parseCommand(e,t){let i=this.parseOptions(t);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(i.operands),t=i.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),t);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(t),this._dispatchSubcommand(this._defaultCommandName,e,t);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let s=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},n=`command:${this.name()}`;if(this._actionHandler){s(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(n,e,t)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(n))s(),this._processArguments(),this.parent.emit(n,e,t);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,t);this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length?this.unknownCommand():(s(),this._processArguments())}else this.commands.length?(s(),this.help({error:!0})):(s(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(t=>{t.mandatory&&e.getOptionValue(t.attributeName())===void 0&&e.missingMandatoryOptionValue(t)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(i=>{let s=i.attributeName();return this.getOptionValue(s)===void 0?!1:this.getOptionValueSource(s)!=="default"});e.filter(i=>i.conflictsWith.length>0).forEach(i=>{let s=e.find(n=>i.conflictsWith.includes(n.attributeName()));s&&this._conflictingOption(i,s)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let t=[],i=[],s=t,n=e.slice();function o(u){return u.length>1&&u[0]==="-"}let a=null;for(;n.length;){let u=n.shift();if(u==="--"){s===i&&s.push(u),s.push(...n);break}if(a&&!o(u)){this.emit(`option:${a.name()}`,u);continue}if(a=null,o(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&&!o(n[0])&&(c=n.shift()),this.emit(`option:${l.name()}`,c)}else this.emit(`option:${l.name()}`);a=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(o(u)&&(s=i),(this._enablePositionalOptions||this._passThroughOptions)&&t.length===0&&i.length===0){if(this._findCommand(u)){t.push(u),n.length>0&&i.push(...n);break}else if(this._getHelpCommand()&&u===this._getHelpCommand().name()){t.push(u),n.length>0&&t.push(...n);break}else if(this._defaultCommandName){i.push(u),n.length>0&&i.push(...n);break}}if(this._passThroughOptions){s.push(u),n.length>0&&s.push(...n);break}s.push(u)}return{operands:t,unknown:i}}opts(){if(this._storeOptionsAsProperties){let e={},t=this.options.length;for(let i=0;i<t;i++){let s=this.options[i].attributeName();e[s]=s===this._versionOptionName?this._version:this[s]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,t)=>Object.assign(e,t.opts()),{})}error(e,t){this._outputConfiguration.outputError(`${e}
|
|
18
18
|
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
19
19
|
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
20
|
-
`),this.outputHelp({error:!0}));let i=t||{},
|
|
21
|
-
`),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(e);if(i){let
|
|
22
|
-
Expecting one of '${i.join("', '")}'`);let
|
|
23
|
-
`)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(n=>t.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function $t(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,i="127.0.0.1",n="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?t=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=s[1],/^\d+$/.test(s[3])?n=s[3]:i=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=s[1],i=s[3],n=s[4]),t&&n!=="0"?`${t}=${i}:${parseInt(n)+1}`:e})}jt.Command=Qe});var Nt=b(S=>{var{Argument:Mt}=Fe(),{Command:et}=qt(),{CommanderError:hn,InvalidArgumentError:It}=se(),{Help:Dn}=Ue(),{Option:Lt}=Ke();S.program=new et;S.createCommand=r=>new et(r);S.createOption=(r,e)=>new Lt(r,e);S.createArgument=(r,e)=>new Mt(r,e);S.Command=et;S.Option=Lt;S.Argument=Mt;S.Help=Dn;S.CommanderError=hn;S.InvalidArgumentError=It;S.InvalidOptionArgumentError=It});var Ae=b((Do,nt)=>{var xe=process||{},Qt=xe.argv||[],we=xe.env||{},mn=!(we.NO_COLOR||Qt.includes("--no-color"))&&(!!we.FORCE_COLOR||Qt.includes("--color")||xe.platform==="win32"||(xe.stdout||{}).isTTY&&we.TERM!=="dumb"||!!we.CI),pn=(r,e,t=r)=>i=>{let n=""+i,s=n.indexOf(e,r.length);return~s?r+gn(n,e,t,s)+e:r+n+e},gn=(r,e,t,i)=>{let n="",s=0;do n+=r.substring(s,i)+t,s=i+e.length,i=r.indexOf(e,s);while(~i);return n+r.substring(s)},er=(r=mn)=>{let e=r?pn:()=>String;return{isColorSupported:r,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};nt.exports=er();nt.exports.createColors=er});var _e=b((po,ir)=>{var st=[],rr=0,w=(r,e)=>{rr>=e&&st.push(r)};w.WARN=1;w.INFO=2;w.DEBUG=3;w.reset=()=>{st=[]};w.setDebugLevel=r=>{rr=r};w.warn=r=>w(r,w.WARN);w.info=r=>w(r,w.INFO);w.debug=r=>w(r,w.DEBUG);w.debugMessages=()=>st;ir.exports=w});var sr=b((go,nr)=>{"use strict";nr.exports=({onlyFirst:r=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,r?void 0:"g")}});var ur=b((Co,or)=>{"use strict";var Cn=sr();or.exports=r=>typeof r=="string"?r.replace(Cn(),""):r});var lr=b((bo,ot)=>{"use strict";var ar=r=>Number.isNaN(r)?!1:r>=4352&&(r<=4447||r===9001||r===9002||11904<=r&&r<=12871&&r!==12351||12880<=r&&r<=19903||19968<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65131||65281<=r&&r<=65376||65504<=r&&r<=65510||110592<=r&&r<=110593||127488<=r&&r<=127569||131072<=r&&r<=262141);ot.exports=ar;ot.exports.default=ar});var hr=b((Eo,cr)=>{"use strict";cr.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var fr=b((Fo,ut)=>{"use strict";var bn=ur(),En=lr(),Fn=hr(),Dr=r=>{if(typeof r!="string"||r.length===0||(r=bn(r),r.length===0))return 0;r=r.replace(Fn()," ");let e=0;for(let t=0;t<r.length;t++){let i=r.codePointAt(t);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&t++,e+=En(i)?2:1)}return e};ut.exports=Dr;ut.exports.default=Dr});var at=b((yo,gr)=>{var dr=fr();function Oe(r){return r?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function $(r){let e=Oe();return(""+r).replace(e,"").split(`
|
|
24
|
-
`).reduce(function(n
|
|
25
|
-
`);let
|
|
26
|
-
`)!=-1,i=this._styles,
|
|
27
|
-
`))}wrapLines(e){let t=
|
|
20
|
+
`),this.outputHelp({error:!0}));let i=t||{},s=i.exitCode||1,n=i.code||"commander.error";this._exit(s,n,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in T.env){let t=e.attributeName();(this.getOptionValue(t)===void 0||["default","config","env"].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,T.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new El(this.options),t=i=>this.getOptionValue(i)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(i));this.options.filter(i=>i.implied!==void 0&&t(i.attributeName())&&e.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach(i=>{Object.keys(i.implied).filter(s=>!t(s)).forEach(s=>{this.setOptionValueWithSource(s,i.implied[s],"implied")})})}missingArgument(e){let t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){let t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){let i=o=>{let a=o.attributeName(),u=this.getOptionValue(a),l=this.options.find(h=>h.negate&&a===h.attributeName()),c=this.options.find(h=>!h.negate&&a===h.attributeName());return l&&(l.presetArg===void 0&&u===!1||l.presetArg!==void 0&&u===l.presetArg)?l:c||o},s=o=>{let a=i(o),u=a.attributeName();return this.getOptionValueSource(u)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},n=`error: ${s(e)} cannot be used with ${s(t)}`;this.error(n,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let s=[],n=this;do{let o=n.createHelp().visibleOptions(n).filter(a=>a.long).map(a=>a.long);s=s.concat(o),n=n.parent}while(n&&!n._enablePositionalOptions);t=ji(e,s)}let i=`error: unknown option '${e}'${t}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let t=this.registeredArguments.length,i=t===1?"":"s",n=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${t} argument${i} but got ${e.length}.`;this.error(n,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],t="";if(this._showSuggestionAfterError){let s=[];this.createHelp().visibleCommands(this).forEach(n=>{s.push(n.name()),n.alias()&&s.push(n.alias())}),t=ji(e,s)}let i=`error: unknown command '${e}'${t}`;this.error(i,{code:"commander.unknownCommand"})}version(e,t,i){if(e===void 0)return this._version;this._version=e,t=t||"-V, --version",i=i||"output the version number";let s=this.createOption(t,i);return this._versionOptionName=s.attributeName(),this._registerOption(s),this.on("option:"+s.name(),()=>{this._outputConfiguration.writeOut(`${e}
|
|
21
|
+
`),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(e);if(i){let s=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${s}'`)}return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(t=>this.alias(t)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this.registeredArguments.map(i=>Dl(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=se.basename(e,se.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let t=this.createHelp();return t.helpWidth===void 0&&(t.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),t.formatHelp(this,t)}_getHelpContext(e){e=e||{};let t={error:!!e.error},i;return t.error?i=s=>this._outputConfiguration.writeErr(s):i=s=>this._outputConfiguration.writeOut(s),t.write=e.write||i,t.command=this,t}outputHelp(e){let t;typeof e=="function"&&(t=e,e=void 0);let i=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(n=>n.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let s=this.helpInformation(i);if(t&&(s=t(s),typeof s!="string"&&!Buffer.isBuffer(s)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(s),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",i),this._getCommandAndAncestors().forEach(n=>n.emit("afterAllHelp",i))}helpOption(e,t){return typeof e=="boolean"?(e?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(e=e??"-h, --help",t=t??"display help for command",this._helpOption=this.createOption(e,t),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 t=T.exitCode||0;t===0&&e&&typeof e!="function"&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){let i=["beforeAll","before","after","afterAll"];if(!i.includes(e))throw new Error(`Unexpected value for position to addHelpText.
|
|
22
|
+
Expecting one of '${i.join("', '")}'`);let s=`${e}Help`;return this.on(s,n=>{let o;typeof t=="function"?o=t({error:n.error,command:n.command}):o=t,o&&n.write(`${o}
|
|
23
|
+
`)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(s=>t.is(s))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function ki(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,i="127.0.0.1",s="9229",n;return(n=e.match(/^(--inspect(-brk)?)$/))!==null?t=n[1]:(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=n[1],/^\d+$/.test(n[3])?s=n[3]:i=n[3]):(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=n[1],i=n[3],s=n[4]),t&&s!=="0"?`${t}=${i}:${parseInt(s)+1}`:e})}Mi.Command=hr});var Ui=m(H=>{var{Argument:Vi}=lt(),{Command:fr}=Hi(),{CommanderError:Cl,InvalidArgumentError:Gi}=Le(),{Help:bl}=ir(),{Option:Wi}=ur();H.program=new fr;H.createCommand=r=>new fr(r);H.createOption=(r,e)=>new Wi(r,e);H.createArgument=(r,e)=>new Vi(r,e);H.Command=fr;H.Option=Wi;H.Argument=Vi;H.Help=bl;H.CommanderError=Cl;H.InvalidArgumentError=Gi;H.InvalidOptionArgumentError=Gi});var qe=m((qm,Dr)=>{var dt=process||{},is=dt.argv||[],ft=dt.env||{},Fl=!(ft.NO_COLOR||is.includes("--no-color"))&&(!!ft.FORCE_COLOR||is.includes("--color")||dt.platform==="win32"||(dt.stdout||{}).isTTY&&ft.TERM!=="dumb"||!!ft.CI),Al=(r,e,t=r)=>i=>{let s=""+i,n=s.indexOf(e,r.length);return~n?r+Ol(s,e,t,n)+e:r+s+e},Ol=(r,e,t,i)=>{let s="",n=0;do s+=r.substring(n,i)+t,n=i+e.length,i=r.indexOf(e,n);while(~i);return s+r.substring(n)},ss=(r=Fl)=>{let e=r?Al:()=>String;return{isColorSupported:r,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};Dr.exports=ss();Dr.exports.createColors=ss});var pt=m((Mm,us)=>{var gr=[],os=0,L=(r,e)=>{os>=e&&gr.push(r)};L.WARN=1;L.INFO=2;L.DEBUG=3;L.reset=()=>{gr=[]};L.setDebugLevel=r=>{os=r};L.warn=r=>L(r,L.WARN);L.info=r=>L(r,L.INFO);L.debug=r=>L(r,L.DEBUG);L.debugMessages=()=>gr;us.exports=L});var ls=m((Hm,as)=>{"use strict";as.exports=({onlyFirst:r=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,r?void 0:"g")}});var hs=m((Vm,cs)=>{"use strict";var Rl=ls();cs.exports=r=>typeof r=="string"?r.replace(Rl(),""):r});var ds=m((Gm,Er)=>{"use strict";var fs=r=>Number.isNaN(r)?!1:r>=4352&&(r<=4447||r===9001||r===9002||11904<=r&&r<=12871&&r!==12351||12880<=r&&r<=19903||19968<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65131||65281<=r&&r<=65376||65504<=r&&r<=65510||110592<=r&&r<=110593||127488<=r&&r<=127569||131072<=r&&r<=262141);Er.exports=fs;Er.exports.default=fs});var ms=m((Wm,ps)=>{"use strict";ps.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var gs=m((Um,Cr)=>{"use strict";var Tl=hs(),Sl=ds(),vl=ms(),Ds=r=>{if(typeof r!="string"||r.length===0||(r=Tl(r),r.length===0))return 0;r=r.replace(vl()," ");let e=0;for(let t=0;t<r.length;t++){let i=r.codePointAt(t);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&t++,e+=Sl(i)?2:1)}return e};Cr.exports=Ds;Cr.exports.default=Ds});var br=m((zm,xs)=>{var Es=gs();function mt(r){return r?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function Q(r){let e=mt();return(""+r).replace(e,"").split(`
|
|
24
|
+
`).reduce(function(s,n){return Es(n)>s?Es(n):s},0)}function ke(r,e){return Array(e+1).join(r)}function Il(r,e,t,i){let s=Q(r);if(e+1>=s){let n=e-s;switch(i){case"right":{r=ke(t,n)+r;break}case"center":{let o=Math.ceil(n/2),a=n-o;r=ke(t,a)+r+ke(t,o);break}default:{r=r+ke(t,n);break}}}return r}var be={};function Me(r,e,t){e="\x1B["+e+"m",t="\x1B["+t+"m",be[e]={set:r,to:!0},be[t]={set:r,to:!1},be[r]={on:e,off:t}}Me("bold",1,22);Me("italics",3,23);Me("underline",4,24);Me("inverse",7,27);Me("strikethrough",9,29);function Cs(r,e){let t=e[1]?parseInt(e[1].split(";")[0]):0;if(t>=30&&t<=39||t>=90&&t<=97){r.lastForegroundAdded=e[0];return}if(t>=40&&t<=49||t>=100&&t<=107){r.lastBackgroundAdded=e[0];return}if(t===0){for(let s in r)Object.prototype.hasOwnProperty.call(r,s)&&delete r[s];return}let i=be[e[0]];i&&(r[i.set]=i.to)}function $l(r){let e=mt(!0),t=e.exec(r),i={};for(;t!==null;)Cs(i,t),t=e.exec(r);return i}function bs(r,e){let t=r.lastBackgroundAdded,i=r.lastForegroundAdded;return delete r.lastBackgroundAdded,delete r.lastForegroundAdded,Object.keys(r).forEach(function(s){r[s]&&(e+=be[s].off)}),t&&t!="\x1B[49m"&&(e+="\x1B[49m"),i&&i!="\x1B[39m"&&(e+="\x1B[39m"),e}function Bl(r,e){let t=r.lastBackgroundAdded,i=r.lastForegroundAdded;return delete r.lastBackgroundAdded,delete r.lastForegroundAdded,Object.keys(r).forEach(function(s){r[s]&&(e=be[s].on+e)}),t&&t!="\x1B[49m"&&(e=t+e),i&&i!="\x1B[39m"&&(e=i+e),e}function Ll(r,e){if(r.length===Q(r))return r.substr(0,e);for(;Q(r)>e;)r=r.slice(0,-1);return r}function Nl(r,e){let t=mt(!0),i=r.split(mt()),s=0,n=0,o="",a,u={};for(;n<e;){a=t.exec(r);let l=i[s];if(s++,n+Q(l)>e&&(l=Ll(l,e-n)),o+=l,n+=Q(l),n<e){if(!a)break;o+=a[0],Cs(u,a)}}return bs(u,o)}function Pl(r,e,t){if(t=t||"\u2026",Q(r)<=e)return r;e-=Q(t);let s=Nl(r,e);s+=t;let n="\x1B]8;;\x07";return r.includes(n)&&!s.includes(n)&&(s+=n),s}function ql(){return{chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]}}function jl(r,e){r=r||{},e=e||ql();let t=Object.assign({},e,r);return t.chars=Object.assign({},e.chars,r.chars),t.style=Object.assign({},e.style,r.style),t}function kl(r,e){let t=[],i=e.split(/(\s+)/g),s=[],n=0,o;for(let a=0;a<i.length;a+=2){let u=i[a],l=n+Q(u);n>0&&o&&(l+=o.length),l>r?(n!==0&&t.push(s.join("")),s=[u],n=Q(u)):(s.push(o||"",u),n=l),o=i[a+1]}return n&&t.push(s.join("")),t}function Ml(r,e){let t=[],i="";function s(o,a){for(i.length&&a&&(i+=a),i+=o;i.length>r;)t.push(i.slice(0,r)),i=i.slice(r)}let n=e.split(/(\s+)/g);for(let o=0;o<n.length;o+=2)s(n[o],o&&n[o-1]);return i.length&&t.push(i),t}function Hl(r,e,t=!0){let i=[];e=e.split(`
|
|
25
|
+
`);let s=t?kl:Ml;for(let n=0;n<e.length;n++)i.push.apply(i,s(r,e[n]));return i}function Vl(r){let e={},t=[];for(let i=0;i<r.length;i++){let s=Bl(e,r[i]);e=$l(s);let n=Object.assign({},e);t.push(bs(n,s))}return t}function Gl(r,e){return["\x1B]","8",";",";",r||e,"\x07",e,"\x1B]","8",";",";","\x07"].join("")}xs.exports={strlen:Q,repeat:ke,pad:Il,truncate:Pl,mergeOptions:jl,wordWrap:Hl,colorizeLines:Vl,hyperlink:Gl}});var Fs=m((Ym,_s)=>{var ws={};_s.exports=ws;var ys={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],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],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(ys).forEach(function(r){var e=ys[r],t=ws[r]=[];t.open="\x1B["+e[0]+"m",t.close="\x1B["+e[1]+"m"})});var Os=m((Xm,As)=>{"use strict";As.exports=function(r,e){e=e||process.argv;var t=e.indexOf("--"),i=/^-{1,2}/.test(r)?"":"--",s=e.indexOf(i+r);return s!==-1&&(t===-1?!0:s<t)}});var Ts=m((Jm,Rs)=>{"use strict";var Wl=require("os"),Y=Os(),P=process.env,xe=void 0;Y("no-color")||Y("no-colors")||Y("color=false")?xe=!1:(Y("color")||Y("colors")||Y("color=true")||Y("color=always"))&&(xe=!0);"FORCE_COLOR"in P&&(xe=P.FORCE_COLOR.length===0||parseInt(P.FORCE_COLOR,10)!==0);function Ul(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function zl(r){if(xe===!1)return 0;if(Y("color=16m")||Y("color=full")||Y("color=truecolor"))return 3;if(Y("color=256"))return 2;if(r&&!r.isTTY&&xe!==!0)return 0;var e=xe?1:0;if(process.platform==="win32"){var t=Wl.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in P)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(s){return s in P})||P.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in P)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(P.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in P){var i=parseInt((P.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(P.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(P.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(P.TERM)||"COLORTERM"in P?1:(P.TERM==="dumb",e)}function xr(r){var e=zl(r);return Ul(e)}Rs.exports={supportsColor:xr,stdout:xr(process.stdout),stderr:xr(process.stderr)}});var vs=m((Km,Ss)=>{Ss.exports=function(e,t){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var s={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(n){n=n.toLowerCase();var o=s[n]||[" "],a=Math.floor(Math.random()*o.length);typeof s[n]<"u"?i+=s[n][a]:i+=n}),i}});var $s=m((Zm,Is)=>{Is.exports=function(e,t){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},s=[].concat(i.up,i.down,i.mid);function n(u){var l=Math.floor(Math.random()*u);return l}function o(u){var l=!1;return s.filter(function(c){l=c===u}),l}function a(u,l){var c="",h,p;l=l||{},l.up=typeof l.up<"u"?l.up:!0,l.mid=typeof l.mid<"u"?l.mid:!0,l.down=typeof l.down<"u"?l.down:!0,l.size=typeof l.size<"u"?l.size:"maxi",u=u.split("");for(p in u)if(!o(p)){switch(c=c+u[p],h={up:0,down:0,mid:0},l.size){case"mini":h.up=n(8),h.mid=n(2),h.down=n(8);break;case"maxi":h.up=n(16)+3,h.mid=n(4)+1,h.down=n(64)+3;break;default:h.up=n(8)+1,h.mid=n(6)/2,h.down=n(8)+1;break}var f=["up","mid","down"];for(var d in f)for(var E=f[d],C=0;C<=h[E];C++)l[E]&&(c=c+i[E][n(i[E].length)])}return c}return a(e,t)}});var Ls=m((Qm,Bs)=>{Bs.exports=function(r){return function(e,t,i){if(e===" ")return e;switch(t%3){case 0:return r.red(e);case 1:return r.white(e);case 2:return r.blue(e)}}}});var Ps=m((eD,Ns)=>{Ns.exports=function(r){return function(e,t,i){return t%2===0?e:r.inverse(e)}}});var js=m((tD,qs)=>{qs.exports=function(r){var e=["red","yellow","green","blue","magenta"];return function(t,i,s){return t===" "?t:r[e[i++%e.length]](t)}}});var Ms=m((rD,ks)=>{ks.exports=function(r){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(t,i,s){return t===" "?t:r[e[Math.round(Math.random()*(e.length-2))]](t)}}});var zs=m((sD,Us)=>{var y={};Us.exports=y;y.themes={};var Yl=require("util"),he=y.styles=Fs(),Vs=Object.defineProperties,Xl=new RegExp(/[\r\n]+/g);y.supportsColor=Ts().supportsColor;typeof y.enabled>"u"&&(y.enabled=y.supportsColor()!==!1);y.enable=function(){y.enabled=!0};y.disable=function(){y.enabled=!1};y.stripColors=y.strip=function(r){return(""+r).replace(/\x1B\[\d+m/g,"")};var iD=y.stylize=function(e,t){if(!y.enabled)return e+"";var i=he[t];return!i&&t in y?y[t](e):i.open+e+i.close},Jl=/[|\\{}()[\]^$+*?.]/g,Kl=function(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(Jl,"\\$&")};function Gs(r){var e=function t(){return Ql.apply(t,arguments)};return e._styles=r,e.__proto__=Zl,e}var Ws=(function(){var r={};return he.grey=he.gray,Object.keys(he).forEach(function(e){he[e].closeRe=new RegExp(Kl(he[e].close),"g"),r[e]={get:function(){return Gs(this._styles.concat(e))}}}),r})(),Zl=Vs(function(){},Ws);function Ql(){var r=Array.prototype.slice.call(arguments),e=r.map(function(o){return o!=null&&o.constructor===String?o:Yl.inspect(o)}).join(" ");if(!y.enabled||!e)return e;for(var t=e.indexOf(`
|
|
26
|
+
`)!=-1,i=this._styles,s=i.length;s--;){var n=he[i[s]];e=n.open+e.replace(n.closeRe,n.open)+n.close,t&&(e=e.replace(Xl,function(o){return n.close+o+n.open}))}return e}y.setTheme=function(r){if(typeof r=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in r)(function(t){y[t]=function(i){if(typeof r[t]=="object"){var s=i;for(var n in r[t])s=y[r[t][n]](s);return s}return y[r[t]](i)}})(e)};function ec(){var r={};return Object.keys(Ws).forEach(function(e){r[e]={get:function(){return Gs([e])}}}),r}var tc=function(e,t){var i=t.split("");return i=i.map(e),i.join("")};y.trap=vs();y.zalgo=$s();y.maps={};y.maps.america=Ls()(y);y.maps.zebra=Ps()(y);y.maps.rainbow=js()(y);y.maps.random=Ms()(y);for(Hs in y.maps)(function(r){y[r]=function(e){return tc(y.maps[r],e)}})(Hs);var Hs;Vs(y,ec())});var Xs=m((nD,Ys)=>{var rc=zs();Ys.exports=rc});var Qs=m((oD,Dt)=>{var{info:ic,debug:Zs}=pt(),M=br(),wr=class r{constructor(e){this.setOptions(e),this.x=null,this.y=null}setOptions(e){["boolean","number","bigint","string"].indexOf(typeof e)!==-1&&(e={content:""+e}),e=e||{},this.options=e;let t=e.content;if(["boolean","number","bigint","string"].indexOf(typeof t)!==-1)this.content=String(t);else if(!t)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof t);this.colSpan=e.colSpan||1,this.rowSpan=e.rowSpan||1,this.options.href&&Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(e,t){this.cells=t;let i=this.options.chars||{},s=e.chars,n=this.chars={};nc.forEach(function(u){yr(i,s,u,n)}),this.truncate=this.options.truncate||e.truncate;let o=this.options.style=this.options.style||{},a=e.style;yr(o,a,"padding-left",this),yr(o,a,"padding-right",this),this.head=o.head||a.head,this.border=o.border||a.border,this.fixedWidth=e.colWidths[this.x],this.lines=this.computeLines(e),this.desiredWidth=M.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(e){let t=e.wordWrap||e.textWrap,{wordWrap:i=t}=this.options;if(this.fixedWidth&&i){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let o=1;for(;o<this.colSpan;)this.fixedWidth+=e.colWidths[this.x+o],o++}let{wrapOnWordBoundary:s=!0}=e,{wrapOnWordBoundary:n=s}=this.options;return this.wrapLines(M.wordWrap(this.fixedWidth,this.content,n))}return this.wrapLines(this.content.split(`
|
|
27
|
+
`))}wrapLines(e){let t=M.colorizeLines(e);return this.href?t.map(i=>M.hyperlink(this.href,i)):t}init(e){let t=this.x,i=this.y;this.widths=e.colWidths.slice(t,t+this.colSpan),this.heights=e.rowHeights.slice(i,i+this.rowSpan),this.width=this.widths.reduce(Ks,-1),this.height=this.heights.reduce(Ks,-1),this.hAlign=this.options.hAlign||e.colAligns[t],this.vAlign=this.options.vAlign||e.rowAligns[i],this.drawRight=t+this.colSpan==e.colWidths.length}draw(e,t){if(e=="top")return this.drawTop(this.drawRight);if(e=="bottom")return this.drawBottom(this.drawRight);let i=M.truncate(this.content,10,this.truncate);e||ic(`${this.y}-${this.x}: ${this.rowSpan-e}x${this.colSpan} Cell ${i}`);let s=Math.max(this.height-this.lines.length,0),n;switch(this.vAlign){case"center":n=Math.ceil(s/2);break;case"bottom":n=s;break;default:n=0}if(e<n||e>=n+this.lines.length)return this.drawEmpty(this.drawRight,t);let o=this.lines.length>this.height&&e+1>=this.height;return this.drawLine(e-n,this.drawRight,o,t)}drawTop(e){let t=[];return this.cells?this.widths.forEach(function(i,s){t.push(this._topLeftChar(s)),t.push(M.repeat(this.chars[this.y==0?"top":"mid"],i))},this):(t.push(this._topLeftChar(0)),t.push(M.repeat(this.chars[this.y==0?"top":"mid"],this.width))),e&&t.push(this.chars[this.y==0?"topRight":"rightMid"]),this.wrapWithStyleColors("border",t.join(""))}_topLeftChar(e){let t=this.x+e,i;if(this.y==0)i=t==0?"topLeft":e==0?"topMid":"top";else if(t==0)i="leftMid";else if(i=e==0?"midMid":"bottomMid",this.cells&&(this.cells[this.y-1][t]instanceof r.ColSpanCell&&(i=e==0?"topMid":"mid"),e==0)){let n=1;for(;this.cells[this.y][t-n]instanceof r.ColSpanCell;)n++;this.cells[this.y][t-n]instanceof r.RowSpanCell&&(i="leftMid")}return this.chars[i]}wrapWithStyleColors(e,t){if(this[e]&&this[e].length)try{let i=Xs();for(let s=this[e].length-1;s>=0;s--)i=i[this[e][s]];return i(t)}catch{return t}else return t}drawLine(e,t,i,s){let n=this.chars[this.x==0?"left":"middle"];if(this.x&&s&&this.cells){let p=this.cells[this.y+s][this.x-1];for(;p instanceof He;)p=this.cells[p.y][p.x-1];p instanceof Ve||(n=this.chars.rightMid)}let o=M.repeat(" ",this.paddingLeft),a=t?this.chars.right:"",u=M.repeat(" ",this.paddingRight),l=this.lines[e],c=this.width-(this.paddingLeft+this.paddingRight);i&&(l+=this.truncate||"\u2026");let h=M.truncate(l,c,this.truncate);return h=M.pad(h,c," ",this.hAlign),h=o+h+u,this.stylizeLine(n,h,a)}stylizeLine(e,t,i){return e=this.wrapWithStyleColors("border",e),i=this.wrapWithStyleColors("border",i),this.y===0&&(t=this.wrapWithStyleColors("head",t)),e+t+i}drawBottom(e){let t=this.chars[this.x==0?"bottomLeft":"bottomMid"],i=M.repeat(this.chars.bottom,this.width),s=e?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",t+i+s)}drawEmpty(e,t){let i=this.chars[this.x==0?"left":"middle"];if(this.x&&t&&this.cells){let o=this.cells[this.y+t][this.x-1];for(;o instanceof He;)o=this.cells[o.y][o.x-1];o instanceof Ve||(i=this.chars.rightMid)}let s=e?this.chars.right:"",n=M.repeat(" ",this.width);return this.stylizeLine(i,n,s)}},He=class{constructor(){}draw(e){return typeof e=="number"&&Zs(`${this.y}-${this.x}: 1x1 ColSpanCell`),""}init(){}mergeTableOptions(){}},Ve=class{constructor(e){this.originalCell=e}init(e){let t=this.y,i=this.originalCell.y;this.cellOffset=t-i,this.offset=sc(e.rowHeights,i,this.cellOffset)}draw(e){return e=="top"?this.originalCell.draw(this.offset,this.cellOffset):e=="bottom"?this.originalCell.draw("bottom"):(Zs(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+e))}mergeTableOptions(){}};function Js(...r){return r.filter(e=>e!=null).shift()}function yr(r,e,t,i){let s=t.split("-");s.length>1?(s[1]=s[1].charAt(0).toUpperCase()+s[1].substr(1),s=s.join(""),i[s]=Js(r[s],r[t],e[s],e[t])):i[t]=Js(r[t],e[t])}function sc(r,e,t){let i=r[e];for(let s=1;s<t;s++)i+=1+r[e+s];return i}function Ks(r,e){return r+e+1}var nc=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];Dt.exports=wr;Dt.exports.ColSpanCell=He;Dt.exports.RowSpanCell=Ve});var rn=m((uD,tn)=>{var{warn:oc,debug:uc}=pt(),_r=Qs(),{ColSpanCell:ac,RowSpanCell:lc}=_r;(function(){function r(f,d){return f[d]>0?r(f,d+1):d}function e(f){let d={};f.forEach(function(E,C){let _=0;E.forEach(function(w){w.y=C,w.x=C?r(d,_):_;let N=w.rowSpan||1,j=w.colSpan||1;if(N>1)for(let Be=0;Be<j;Be++)d[w.x+Be]=N;_=w.x+j}),Object.keys(d).forEach(w=>{d[w]--,d[w]<1&&delete d[w]})})}function t(f){let d=0;return f.forEach(function(E){E.forEach(function(C){d=Math.max(d,C.x+(C.colSpan||1))})}),d}function i(f){return f.length}function s(f,d){let E=f.y,C=f.y-1+(f.rowSpan||1),_=d.y,w=d.y-1+(d.rowSpan||1),N=!(E>w||_>C),j=f.x,Be=f.x-1+(f.colSpan||1),Ka=d.x,Za=d.x-1+(d.colSpan||1),Qa=!(j>Za||Ka>Be);return N&&Qa}function n(f,d,E){let C=Math.min(f.length-1,E),_={x:d,y:E};for(let w=0;w<=C;w++){let N=f[w];for(let j=0;j<N.length;j++)if(s(_,N[j]))return!0}return!1}function o(f,d,E,C){for(let _=E;_<C;_++)if(n(f,_,d))return!1;return!0}function a(f){f.forEach(function(d,E){d.forEach(function(C){for(let _=1;_<C.rowSpan;_++){let w=new lc(C);w.x=C.x,w.y=C.y+_,w.colSpan=C.colSpan,l(w,f[E+_])}})})}function u(f){for(let d=f.length-1;d>=0;d--){let E=f[d];for(let C=0;C<E.length;C++){let _=E[C];for(let w=1;w<_.colSpan;w++){let N=new ac;N.x=_.x+w,N.y=_.y,E.splice(C+1,0,N)}}}}function l(f,d){let E=0;for(;E<d.length&&d[E].x<f.x;)E++;d.splice(E,0,f)}function c(f){let d=i(f),E=t(f);uc(`Max rows: ${d}; Max cols: ${E}`);for(let C=0;C<d;C++)for(let _=0;_<E;_++)if(!n(f,_,C)){let w={x:_,y:C,colSpan:1,rowSpan:1};for(_++;_<E&&!n(f,_,C);)w.colSpan++,_++;let N=C+1;for(;N<d&&o(f,N,w.x,w.x+w.colSpan);)w.rowSpan++,N++;let j=new _r(w);j.x=w.x,j.y=w.y,oc(`Missing cell at ${j.y}-${j.x}.`),l(j,f[C])}}function h(f){return f.map(function(d){if(!Array.isArray(d)){let E=Object.keys(d)[0];d=d[E],Array.isArray(d)?(d=d.slice(),d.unshift(E)):d=[E,d]}return d.map(function(E){return new _r(E)})})}function p(f){let d=h(f);return e(d),c(d),a(d),u(d),d}tn.exports={makeTableLayout:p,layoutTable:e,addRowSpanCells:a,maxWidth:t,fillInTable:c,computeWidths:en("colSpan","desiredWidth","x",1),computeHeights:en("rowSpan","desiredHeight","y",1)}})();function en(r,e,t,i){return function(s,n){let o=[],a=[],u={};n.forEach(function(l){l.forEach(function(c){(c[r]||1)>1?a.push(c):o[c[t]]=Math.max(o[c[t]]||0,c[e]||0,i)})}),s.forEach(function(l,c){typeof l=="number"&&(o[c]=l)});for(let l=a.length-1;l>=0;l--){let c=a[l],h=c[r],p=c[t],f=o[p],d=typeof s[p]=="number"?0:1;if(typeof f=="number")for(let E=1;E<h;E++)f+=1+o[p+E],typeof s[p+E]!="number"&&d++;else f=e==="desiredWidth"?c.desiredWidth-1:1,(!u[p]||u[p]<f)&&(u[p]=f);if(c[e]>f){let E=0;for(;d>0&&c[e]>f;){if(typeof s[p+E]!="number"){let C=Math.round((c[e]-f)/d);f+=C,o[p+E]+=C,d--}E++}}}Object.assign(s,o,u);for(let l=0;l<s.length;l++)s[l]=Math.max(i,s[l]||0)}}});var nn=m((aD,sn)=>{var ne=pt(),cc=br(),Fr=rn(),gt=class extends Array{constructor(e){super();let t=cc.mergeOptions(e);if(Object.defineProperty(this,"options",{value:t,enumerable:t.debug}),t.debug){switch(typeof t.debug){case"boolean":ne.setDebugLevel(ne.WARN);break;case"number":ne.setDebugLevel(t.debug);break;case"string":ne.setDebugLevel(parseInt(t.debug,10));break;default:ne.setDebugLevel(ne.WARN),ne.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof t.debug}`)}Object.defineProperty(this,"messages",{get(){return ne.debugMessages()}})}}toString(){let e=this,t=this.options.head&&this.options.head.length;t?(e=[this.options.head],this.length&&e.push.apply(e,this)):this.options.style.head=[];let i=Fr.makeTableLayout(e);i.forEach(function(n){n.forEach(function(o){o.mergeTableOptions(this.options,i)},this)},this),Fr.computeWidths(this.options.colWidths,i),Fr.computeHeights(this.options.rowHeights,i),i.forEach(function(n){n.forEach(function(o){o.init(this.options)},this)},this);let s=[];for(let n=0;n<i.length;n++){let o=i[n],a=this.options.rowHeights[n];(n===0||!this.options.style.compact||n==1&&t)&&Ar(o,"top",s);for(let u=0;u<a;u++)Ar(o,u,s);n+1==i.length&&Ar(o,"bottom",s)}return s.join(`
|
|
28
28
|
`)}get width(){return this.toString().split(`
|
|
29
|
-
`)[0].length}};Be.reset=()=>L.reset();function dt(r,e,t){let i=[];r.forEach(function(s){i.push(s.draw(e))});let n=i.join("");n.length&&t.push(n)}Qr.exports=Be});var ri=b((Io,ti)=>{ti.exports=ei()});var Ht=V(Nt(),1),{program:zs,createCommand:Ks,createArgument:Ys,createOption:Xs,CommanderError:Zs,InvalidArgumentError:Qs,InvalidOptionArgumentError:eo,Command:Pt,Argument:to,Option:ro,Help:io}=Ht.default;var J=require("node:fs/promises"),oe=V(require("node:path"),1),tt=V(require("node:os"),1);async function ue({configPath:r=Wt()}={}){try{return JSON.parse(await(0,J.readFile)(r,"utf8"))}catch(e){if(e.code==="ENOENT")return{};throw e}}async function Vt(r,{configPath:e=Wt()}={}){await(0,J.mkdir)(oe.default.dirname(e),{recursive:!0}),await(0,J.writeFile)(e,`${JSON.stringify(r,null,2)}
|
|
30
|
-
|
|
31
|
-
`)
|
|
32
|
-
|
|
33
|
-
`)
|
|
34
|
-
`)}function rs(r,{httpStatus:e}={}){if(!r||typeof r!="object"||typeof r.code!="number")throw new T("Invalid server response format",{code:"invalid_response",exitCode:5,status:e,data:r});if(r.code!==200)throw new T(r.message||"Request failed",{code:ai(r.code),exitCode:rt(r.code),status:r.code,data:r});return r}async function k(r){let e;try{e=await r.json()}catch(t){throw new T("Invalid server response format",{code:"invalid_response",exitCode:5,status:r.status,cause:t})}if(r.status<200||r.status>=300)throw new T(e?.message||`Request failed with status code ${r.status}`,{code:ai(r.status),exitCode:rt(r.status),status:r.status,data:e});return rs(e,{httpStatus:r.status})}function ai(r){return r===401||r===403?"auth_error":r===404?"not_found":r===409?"state_conflict":r===400?"validation_error":"server_error"}var U=class{constructor(e){this.client=e}listMessages(e={}){return this.client.get("/v1/message/list",{searchParams:e}).then(k)}getMessage(e){return this.client.get("/v1/message/get",{searchParams:{messageUid:e}}).then(k)}listenMessages(e={}){return this.client.get("/v1/message/listen",{searchParams:e}).then(k)}replyMessage(e,t){return this.client.post("/v1/message/reply",{searchParams:{messageUid:e},json:t}).then(k)}};var ve=class{constructor(e){this.client=e}sendEmail(e){return this.client.post("/v1/mail/send",{json:e}).then(k)}};var j=class extends Error{name="KyError";get isKyError(){return!0}};var Z=class extends j{name="HTTPError";response;request;options;data;constructor(e,t,i){let n=e.status||e.status===0?e.status:"",s=e.statusText??"",o=`${n} ${s}`.trim(),a=o?`status code ${o}`:"an unknown error";super(`Request failed with ${a}: ${t.method} ${t.url}`),this.response=e,this.request=t,this.options=i}};var Q=class extends j{name="NetworkError";request;constructor(e,t){super(`Request failed due to a network error: ${e.method} ${e.url}`,t),this.request=e}};var ee=class extends Error{name="NonError";value;constructor(e){let t="Non-error value was thrown";try{typeof e=="string"?t=e:e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"&&(t=e.message)}catch{}super(t),this.value=e}};var G=class extends j{name="ForceRetryError";customDelay;code;customRequest;constructor(e){let t=e?.cause?e.cause instanceof Error?e.cause:new ee(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:"Forced retry",t?{cause:t}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}};var ke=class extends Error{name="SchemaValidationError";issues;constructor(e){super("Response schema validation failed"),this.issues=e}};var R=class extends j{name="TimeoutError";request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.request=e}};var Ct=(()=>{let r=!1,e=!1,t=typeof globalThis.ReadableStream=="function",i=typeof globalThis.Request=="function";if(t&&i)try{e=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type")}catch(n){if(n instanceof Error&&n.message==="unsupported BodyInit type")return!1;throw n}return r&&!e})(),li=typeof globalThis.AbortController=="function",$e=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",ci=typeof globalThis.ReadableStream=="function",hi=typeof globalThis.FormData=="function",je=["get","post","put","patch","head","delete"],is=()=>{};is();var Di={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},te=2147483647,fi=40,qe=Symbol("stop"),fe=class{options;constructor(e){this.options=e}},di=r=>new fe(r),mi={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},pi={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0};var Me=new TextEncoder,ns=r=>{if(!r)return 0;if(r instanceof FormData){let e=0;for(let[t,i]of r)e+=fi,e+=Me.encode(`Content-Disposition: form-data; name="${t}"`).byteLength,e+=typeof i=="string"?Me.encode(i).byteLength:i.size;return e}return r instanceof Blob?r.size:r instanceof ArrayBuffer||ArrayBuffer.isView(r)?r.byteLength:typeof r=="string"?Me.encode(r).byteLength:r instanceof URLSearchParams?Me.encode(r.toString()).byteLength:0},gi=(r,e,t)=>{let i,n=0;return r.pipeThrough(new TransformStream({transform(s,o){if(o.enqueue(s),i){n+=i.byteLength;let a=e===0?0:n/e;a>=1&&(a=1-Number.EPSILON),t?.({percent:a,totalBytes:Math.max(e,n),transferredBytes:n},i)}i=s},flush(){i&&(n+=i.byteLength,t?.({percent:1,totalBytes:Math.max(e,n),transferredBytes:n},i))}}))},Ci=(r,e)=>{if(!r.body)return r;let t={status:r.status,statusText:r.statusText,headers:r.headers};if(r.status===204)return new Response(null,t);let i=Math.max(0,Number(r.headers.get("content-length"))||0);return new Response(gi(r.body,i,e),t)},bi=(r,e,t)=>{if(!r.body)return r;let i=ns(t??r.body);return new Request(r,{duplex:"half",body:gi(r.body,i,e)})};var q=r=>r!==null&&typeof r=="object";var ss=Symbol("replaceOption"),bt=r=>q(r)&&r[ss]===!0?{isReplace:!0,value:r.value}:{isReplace:!1,value:r};var me=(...r)=>{for(let e of r)if((!q(e)||Array.isArray(e))&&e!==void 0)throw new TypeError("The `options` argument must be an object");return yt({},...r)},Ft=(r={},e={})=>{let t=new globalThis.Headers(r),i=e instanceof globalThis.Headers,n=new globalThis.Headers(e);for(let[s,o]of n.entries())i&&o==="undefined"||o===void 0?t.delete(s):t.set(s,o);return t},Et=r=>{if(!q(r)||Array.isArray(r))return!1;let e=Object.getPrototypeOf(r);return e===Object.prototype||e===null},re=r=>{if(r instanceof URLSearchParams){let e=new URLSearchParams(r),t=r[P];return t&&(e[P]=new Set(t)),e}return r instanceof globalThis.Headers?new globalThis.Headers(r):Array.isArray(r)?[...r]:Et(r)?{...r}:r},os=r=>Object.fromEntries(Object.entries(r).filter(e=>e[1]!==void 0)),us=(r,e)=>Et(r)&&Et(e)?os({...r,...e}):Ft(r,e);function de(r,e,t){return Object.hasOwn(e,t)&&e[t]===void 0?[]:yt(r[t]??[],e[t]??[])}var Ie=(r={},e={})=>({init:de(r,e,"init"),beforeRequest:de(r,e,"beforeRequest"),beforeRetry:de(r,e,"beforeRetry"),beforeError:de(r,e,"beforeError"),afterResponse:de(r,e,"afterResponse")}),P=Symbol("deletedParameters"),as=(r,e)=>{let t=new URLSearchParams,i=new Set;for(let n of[r,e])if(n!==void 0)if(n instanceof URLSearchParams){for(let[o,a]of n.entries())t.append(o,a),i.delete(o);let s=n[P];if(s)for(let o of s)t.delete(o),i.add(o)}else if(Array.isArray(n))for(let s of n){if(!Array.isArray(s)||s.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");t.append(String(s[0]),String(s[1])),i.delete(String(s[0]))}else if(q(n))for(let[s,o]of Object.entries(n))o===void 0?(t.delete(s),i.add(s)):(t.append(s,String(o)),i.delete(s));else{let s=new URLSearchParams(n);for(let[o,a]of s.entries())t.append(o,a),i.delete(o)}return i.size>0&&(t[P]=i),t},yt=(...r)=>{let e={},t={},i={},n,s=[];for(let o of r)if(Array.isArray(o))Array.isArray(e)||(e=[]),e=[...e,...o];else if(q(o)){for(let[a,u]of Object.entries(o)){if(a==="signal"&&u instanceof globalThis.AbortSignal){s.push(u);continue}let l=bt(u),{isReplace:h}=l;if(u=l.value,a==="context"){if(u!=null&&(!q(u)||Array.isArray(u)))throw new TypeError("The `context` option must be an object");e={...e,context:u==null?{}:h?{...u}:{...e.context,...u}};continue}if(a==="searchParams"){u==null?n=void 0:h?n=u:n=n===void 0?u:as(n,u);continue}q(u)&&!h&&a in e&&(u=yt(e[a],u)),e={...e,[a]:u}}if(q(o.hooks)){let{value:a,isReplace:u}=bt(o.hooks);i=Ie(u?{}:i,a),e.hooks=i}if(q(o.headers)){let{value:a,isReplace:u}=bt(o.headers);t=u?re(a):us(t,a),e.headers=t}}return n!==void 0&&(e.searchParams=n),s.length>0&&(s.length===1?e.signal=s[0]:$e?e.signal=AbortSignal.any(s):e.signal=s.at(-1)),e};var Fi=r=>je.includes(r)?r.toUpperCase():r,ls=["get","put","head","delete","options","trace"],cs=[408,413,429,500,502,503,504],hs=[413,429,503],Ei={limit:2,methods:ls,statusCodes:cs,afterStatusCodes:hs,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:r=>.3*2**(r-1)*1e3,jitter:void 0,retryOnTimeout:!1},yi=(r={})=>{if(typeof r=="number")return{...Ei,limit:r};if(r.methods&&!Array.isArray(r.methods))throw new Error("retry.methods must be an array");if(r.statusCodes&&!Array.isArray(r.statusCodes))throw new Error("retry.statusCodes must be an array");let e=Object.fromEntries(Object.entries({...r,methods:r.methods?.map(t=>t.toLowerCase())}).filter(([,t])=>t!==void 0));return{...Ei,...e}};async function wt(r,e,t,i){return new Promise((n,s)=>{let o=setTimeout(()=>{t&&t.abort(),s(new R(r))},i.timeout);i.fetch(r,e).then(n).catch(s).then(()=>{clearTimeout(o)})})}async function Le(r,{signal:e}){return new Promise((t,i)=>{e&&(e.throwIfAborted(),e.addEventListener("abort",n,{once:!0}));function n(){clearTimeout(s),i(e.reason)}let s=setTimeout(()=>{e?.removeEventListener("abort",n),t()},r)})}var wi=r=>{let e={};for(let t in r)Object.hasOwn(r,t)&&!(t in pi)&&!(t in mi)&&(e[t]=r[t]);return e},xi=r=>r===void 0?!1:Array.isArray(r)?r.length>0:r instanceof URLSearchParams?r.size>0||!!r[P]?.size:typeof r=="object"?Object.keys(r).length>0:typeof r=="string"?r.trim().length>0:!!r;var Ds=Object.prototype.toString,fs=r=>Ds.call(r)==="[object Error]",ds=new Set(["network error","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function xt(r){if(!(r&&fs(r)&&r.name==="TypeError"&&typeof r.message=="string"))return!1;let{message:t,stack:i}=r;return t==="Load failed"?i===void 0||"__sentry_captured__"in r:t.startsWith("error sending request for url")||t==="Failed to fetch"||t.startsWith("Failed to fetch (")&&t.endsWith(")")?!0:ds.has(t)}var At=(r,e)=>r instanceof e||r?.name===e.name;function Ai(r){return At(r,Z)}function _i(r){return At(r,Q)}function Oi(r){return At(r,R)}var ms=10*1024*1024,ps="The `prefixUrl` option has been renamed `prefix` in v2 and enhanced to allow slashes in input. See also the new `baseUrl` option for improved flexibility with standard URL resolution: https://github.com/sindresorhus/ky#baseurl",pe=Symbol("timedOutResponseData"),gs=r=>{let e=/;\s*charset\s*=\s*(?:"([^"]+)"|([^;,\s]+))/i.exec(r),t=e?.[1]??e?.[2];if(t)try{return new TextDecoder(t)}catch{}return new TextDecoder},Si="The `schema` argument must follow the Standard Schema specification",Cs=r=>typeof r!="object"?r:{...r,...r.methods&&{methods:[...r.methods]},...r.statusCodes&&{statusCodes:[...r.statusCodes]},...r.afterStatusCodes&&{afterStatusCodes:[...r.afterStatusCodes]}},Ti=Object.prototype.toString,Bi=r=>r instanceof globalThis.Request||Ti.call(r)==="[object Request]",ge=r=>r instanceof globalThis.Response||Ti.call(r)==="[object Response]",bs=r=>Array.isArray(r)?r.map(e=>[...e]):re(r);function Es(r){let e={...r,json:re(r.json),context:re(r.context),headers:re(r.headers),searchParams:bs(r.searchParams)};return r.retry!==void 0&&(e.retry=Cs(r.retry)),e}var Ri=async(r,e)=>{if(typeof e!="object"&&typeof e!="function"||e===null)throw new TypeError(Si);let t=e["~standard"];if(typeof t!="object"||t===null||typeof t.validate!="function")throw new TypeError(Si);let i=await t.validate(r);if(i.issues)throw new ke(i.issues);return i.value},Ce=class r{static create(e,t){let i=t.hooks?.init??[],n=i.length>0?Es(t):t;for(let u of i)u(n);let s=new r(e,n),o=async()=>{if(typeof s.#e.timeout=="number"&&s.#e.timeout>te)throw new RangeError(`The \`timeout\` option cannot be greater than ${te}`);if(typeof s.#e.totalTimeout=="number"&&s.#e.totalTimeout>te)throw new RangeError(`The \`totalTimeout\` option cannot be greater than ${te}`);await Promise.resolve();let u=await s.#$(),l=u??await s.#_(async()=>s.#g()),h=u!==void 0||s.#p();for(;;){if(l===void 0)return l;if(ge(l))try{l=await s.#j(l)}catch(m){if(!(m instanceof G))throw m;let D=await s.#m(m,async()=>s.#g());if(D===void 0)return D;l=D,h=s.#p();continue}let f=l;if(!f.ok&&f.type!=="opaque"&&(typeof s.#e.throwHttpErrors=="function"?s.#e.throwHttpErrors(f.status):s.#e.throwHttpErrors)){let m=new Z(f,s.#u(f),s.#o()),D=m;if(m.data=await s.#R(f),h)throw D;let c=await s.#m(m,async()=>s.#g());if(c===void 0)return c;l=c,h=s.#p();continue}break}if(!ge(l))return l;if(s.#w(l),s.#e.onDownloadProgress){if(typeof s.#e.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!ci)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");let f=l.clone();return s.#i(l),Ci(f,s.#e.onDownloadProgress)}return l},a=(async()=>{try{return await o()}catch(u){if(!(u instanceof Error)||s.#F.has(u))throw u;let l=u;for(let h of s.#e.hooks.beforeError){let f=await h({request:s.request,options:s.#o(),error:l,retryCount:s.#r});f instanceof Error&&(l=f)}throw l}finally{let u=s.#E;s.#d(u?.body??void 0),s.request!==u&&s.#d(s.request.body??void 0)}})();for(let[u,l]of Object.entries(Di))u==="bytes"&&typeof globalThis.Response?.prototype?.bytes!="function"||(a[u]=async h=>{s.request.headers.set("accept",s.request.headers.get("accept")||l);let f=await a;if(u!=="json")return f[u]();let m=await f.text();if(m==="")return h!==void 0?Ri(void 0,h):JSON.parse(m);let D=n.parseJson?await n.parseJson(m,{request:s.#u(f),response:f}):JSON.parse(m);return h===void 0?D:Ri(D,h)});return a}static#S(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof URLSearchParams)?Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)):e}request;#n;#r=0;#t;#e;#E;#a;#F=new WeakSet;#l;#f;#c=!1;#y=new WeakMap;constructor(e,t={}){if(this.#t=e,Object.hasOwn(t,"prefixUrl"))throw new Error(ps);if(this.#e={...t,headers:Ft(this.#t.headers,t.headers),hooks:Ie({},t.hooks),method:Fi(t.method??this.#t.method??"GET"),prefix:String(t.prefix||""),retry:yi(t.retry),throwHttpErrors:t.throwHttpErrors??!0,timeout:t.timeout??1e4,totalTimeout:t.totalTimeout??!1,fetch:t.fetch??globalThis.fetch.bind(globalThis),context:t.context??{}},typeof this.#t!="string"&&!(this.#t instanceof URL||this.#t instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(typeof this.#t=="string"){if(this.#e.prefix){let n=this.#e.prefix.replace(/\/+$/,""),s=this.#t.replace(/^\/+/,"");this.#t=`${n}/${s}`}if(this.#e.baseUrl){let n;try{n=new URL(this.#t)}catch{}n||(this.#t=new URL(this.#t,new Request(this.#e.baseUrl).url))}}li&&$e&&(this.#a=this.#e.signal??this.#t.signal,this.#n=new globalThis.AbortController,this.#e.signal=this.#A()),Ct&&(this.#e.duplex="half"),this.#e.json!==void 0&&(this.#e.body=this.#e.stringifyJson?.(this.#e.json)??JSON.stringify(this.#e.json),this.#e.headers.set("content-type",this.#e.headers.get("content-type")??"application/json"));let i=t.headers&&new globalThis.Headers(t.headers).has("content-type");if(this.#t instanceof globalThis.Request&&(hi&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!i&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#t,this.#e),xi(this.#e.searchParams)){let n=new URL(this.request.url),s=this.#e.searchParams?.[P];if(s)for(let o of s)n.searchParams.delete(o);if(typeof this.#e.searchParams=="string"){let o=this.#e.searchParams.replace(/^\?/,"");o!==""&&(n.search=n.search?`${n.search}&${o}`:`?${o}`)}else{let o=new URLSearchParams(r.#S(this.#e.searchParams));for(let[a,u]of o.entries())n.searchParams.append(a,u)}if(this.#e.searchParams&&typeof this.#e.searchParams=="object"&&!Array.isArray(this.#e.searchParams)&&!(this.#e.searchParams instanceof URLSearchParams))for(let[o,a]of Object.entries(this.#e.searchParams))a===void 0&&n.searchParams.delete(o);this.request=new globalThis.Request(n,this.#e)}if(this.#e.onUploadProgress&&typeof this.#e.onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");this.#f=typeof this.#e.totalTimeout=="number"?this.#O():void 0}#s(){let e=this.#e.retry.delay(this.#r+1),t=e;return this.#e.retry.jitter===!0?t=Math.random()*e:typeof this.#e.retry.jitter=="function"&&(t=this.#e.retry.jitter(e),(!Number.isFinite(t)||t<0)&&(t=e)),Math.min(this.#e.retry.backoffLimit,t)}async#B(e){if(this.#r>=this.#e.retry.limit)throw e;let t=e instanceof Error?e:new ee(e);if(t instanceof G)return t.customDelay??this.#s();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(this.#e.retry.shouldRetry!==void 0){let i=await this.#e.retry.shouldRetry({error:t,retryCount:this.#r+1});if(i===!1)throw e;if(i===!0)return this.#s()}if(Oi(e)){if(!this.#e.retry.retryOnTimeout)throw e;return this.#s()}if(Ai(e)){if(!this.#e.retry.statusCodes.includes(e.response.status))throw e;let i=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Retry-After")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(i&&this.#e.retry.afterStatusCodes.includes(e.response.status)){let n=Number(i)*1e3;return Number.isNaN(n)?n=Date.parse(i)-Date.now():n>=Date.parse("2024-01-01")&&(n-=Date.now()),Number.isFinite(n)?(n=Math.max(0,n),Math.min(this.#e.retry.maxRetryAfter,n)):Math.min(this.#e.retry.maxRetryAfter,this.#s())}if(e.response.status===413)throw e;return this.#s()}if(!_i(e))throw e;return this.#s()}#w(e){let t=this.#u(e);return this.#e.parseJson&&(e.json=async()=>{let i=await e.text();return i===""?JSON.parse(i):this.#e.parseJson(i,{request:t,response:e})}),e}async#R(e){let t=await this.#v(e,this.#x());if(t===pe){this.#h();return}if(!t)return;if(!this.#T(e.headers.get("content-type")??""))return t;let i=await this.#k(t,e,this.#x(),this.#u(e));if(i===pe){this.#h();return}return i}#x(){let e=this.#e.timeout===!1?1e4:this.#e.timeout,t=this.#D();if(t===void 0)return e;if(t<=0)throw new R(this.request);return Math.min(e,t)}#T(e){let t=(e.split(";",1)[0]??"").trim().toLowerCase();return/\/(?:.*[.+-])?json$/.test(t)}async#v(e,t){let{body:i}=e;if(!i)try{return await e.text()}catch{return}let n;try{n=i.getReader()}catch{return}let s=gs(e.headers.get("content-type")??""),o=[],a=0,u=(async()=>{try{for(;;){let{done:f,value:m}=await n.read();if(f)break;if(a+=m.byteLength,a>ms){n.cancel().catch(()=>{});return}o.push(s.decode(m,{stream:!0}))}}catch{return}return o.push(s.decode()),o.join("")})(),l=new Promise(f=>{let m=setTimeout(()=>{f(pe)},t);u.finally(()=>{clearTimeout(m)})}),h=await Promise.race([u,l]);return h===pe&&n.cancel().catch(()=>{}),h}async#k(e,t,i,n){let s;try{return await Promise.race([Promise.resolve().then(()=>this.#e.parseJson?this.#e.parseJson(e,{request:n,response:t}):JSON.parse(e)),new Promise(o=>{s=setTimeout(()=>{o(pe)},i)})])}catch{return}finally{clearTimeout(s)}}#d(e){e&&e.cancel().catch(()=>{})}#i(e){this.#d(e.body??void 0)}#A(){return this.#a?AbortSignal.any([this.#a,this.#n.signal]):this.#n.signal}#h(){let e=this.#D();if(e!==void 0&&e<=0)throw new R(this.request)}async#$(){for(let e of this.#e.hooks.beforeRequest){let t=await e({request:this.request,options:this.#o(),retryCount:0});if(Bi(t))this.#C(t);else if(ge(t))return t}}async#j(e){let t=this.#u(e);for(let i of this.#e.hooks.afterResponse){let n=this.#b(e.clone(),t);this.#w(n);let s;try{s=await i({request:this.request,options:this.#o(),response:n,retryCount:this.#r})}catch(a){throw n!==e&&this.#i(n),this.#i(e),a}if(s instanceof fe)throw n!==e&&this.#i(n),this.#i(e),new G(s.options);let o=ge(s)?this.#b(s,t):e;n!==e&&n!==o&&n.body!==o.body&&this.#i(n),e!==o&&e.body!==o.body&&this.#i(e),e=o}return e}async#_(e){try{return await e()}catch(t){return this.#m(t,e)}}async#m(e,t){this.#c=!1;let i=Math.min(await this.#B(e),te),n={signal:this.#a},s=this.#D();if(s!==void 0){if(s<=0)throw new R(this.request);if(i>=s)throw await Le(s,n),new R(this.request)}if(await Le(i,n),this.#h(),e instanceof G&&e.customRequest){let o=new globalThis.Request(e.customRequest,this.#e.signal?{signal:this.#e.signal}:void 0);this.#C(o)}for(let o of this.#e.hooks.beforeRetry){let a;try{a=await o({request:this.request,options:this.#o(),error:e,retryCount:this.#r+1})}catch(u){throw u instanceof Error&&u!==e&&this.#F.add(u),u}if(Bi(a)){this.#C(a);break}if(ge(a))return this.#c=!0,this.#r++,a;if(a===qe)return}return this.#h(),this.#r++,this.#_(t)}#p(){let e=this.#c;return this.#c=!1,e}async#g(){this.#n?.signal.aborted&&(this.#n=new globalThis.AbortController,this.#e.signal=this.#A(),this.request=new globalThis.Request(this.request,{signal:this.#e.signal}));let e=wi(this.#e),t=this.#e.retry.limit>0?this.request.clone():void 0,i=this.#q(this.request,this.#e.body??void 0);this.#E=i,t&&(this.request=t);try{let n=this.#D();if(n!==void 0&&n<=0)throw new R(this.request);let s=this.#e.timeout===!1?n:n===void 0?this.#e.timeout:Math.min(this.#e.timeout,n),o=s===void 0?await this.#e.fetch(i,e):await wt(i,e,this.#n,{timeout:s,fetch:this.#e.fetch});return this.#b(o,i)}catch(n){throw xt(n)?new Q(this.request,{cause:n}):n}}#D(){if(this.#f===void 0)return;let e=this.#O()-this.#f;return Math.max(0,this.#e.totalTimeout-e)}#O(){return globalThis.performance?.now()??Date.now()}#o(){if(!this.#l){let{hooks:e,json:t,parseJson:i,stringifyJson:n,searchParams:s,timeout:o,totalTimeout:a,throwHttpErrors:u,fetch:l,...h}=this.#e;this.#l=Object.freeze(h)}return this.#l}#C(e){this.#l=void 0,this.request=e}#u(e){return this.#y.get(e)??this.request}#b(e,t){return this.#y.set(e,t),e}#q(e,t){return!this.#e.onUploadProgress||!e.body||!Ct?e:bi(e,this.#e.onUploadProgress,t??this.#e.body??void 0)}};var _t=r=>{let e=(t,i)=>Ce.create(t,me(r,i));for(let t of je)e[t]=(i,n)=>Ce.create(i,me(r,n,{method:t}));return e.create=t=>_t(me(t)),e.extend=t=>(typeof t=="function"&&(t=t(r??{})),_t(me(r,t))),e.stop=qe,e.retry=di,e},Fs=_t(),vi=Fs;async function ki({cliOptions:r={},env:e=process.env,readConfig:t=ue,requireSecretKey:i=!0}={}){let n=await t(),s=r.baseUrl||e.ENGAGELAB_EMAIL_BASE_URL||n.baseUrl,o=r.secretKey||e.ENGAGELAB_EMAIL_SECRET_KEY||n.secretKey;if(!s)throw ye("Missing base URL. Set --base-url, ENGAGELAB_EMAIL_BASE_URL, or config set.");if(i&&!o)throw ye("Missing Secret Key. Set --secret-key, ENGAGELAB_EMAIL_SECRET_KEY, or config set.");if(i&&!o.startsWith("sk_"))throw ye("Secret Key must start with sk_");return{baseUrl:s,secretKey:o}}async function M(r){let e=await ki({cliOptions:r.optsWithGlobals()});return vi.extend({prefix:ys(e.baseUrl),headers:{Authorization:`Bearer ${e.secretKey}`},timeout:3e4,throwHttpErrors:!1})}function N(r,e,t){r.opts().json&&r.parent?.parent?.stdout?.write?.("");let i=r.programOutput?.stdout||process.stdout;if(r.opts().json){i.write(`${JSON.stringify(e,null,2)}
|
|
29
|
+
`)[0].length}};gt.reset=()=>ne.reset();function Ar(r,e,t){let i=[];r.forEach(function(n){i.push(n.draw(e))});let s=i.join("");s.length&&t.push(s)}sn.exports=gt});var un=m((lD,on)=>{on.exports=nn()});var Oe=m((m0,qn)=>{"use strict";var Ic="2.0.0",$c=Number.MAX_SAFE_INTEGER||9007199254740991,Bc=16,Lc=250,Nc=["major","premajor","minor","preminor","patch","prepatch","prerelease"];qn.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Bc,MAX_SAFE_BUILD_LENGTH:Lc,MAX_SAFE_INTEGER:$c,RELEASE_TYPES:Nc,SEMVER_SPEC_VERSION:Ic,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Je=m((D0,jn)=>{"use strict";var Pc=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};jn.exports=Pc});var Re=m((re,kn)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:jr,MAX_SAFE_BUILD_LENGTH:qc,MAX_LENGTH:jc}=Oe(),kc=Je();re=kn.exports={};var Mc=re.re=[],Hc=re.safeRe=[],D=re.src=[],Vc=re.safeSrc=[],g=re.t={},Gc=0,kr="[a-zA-Z0-9-]",Wc=[["\\s",1],["\\d",jc],[kr,qc]],Uc=r=>{for(let[e,t]of Wc)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},b=(r,e,t)=>{let i=Uc(e),s=Gc++;kc(r,s,e),g[r]=s,D[s]=e,Vc[s]=i,Mc[s]=new RegExp(e,t?"g":void 0),Hc[s]=new RegExp(i,t?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*");b("NUMERICIDENTIFIERLOOSE","\\d+");b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${kr}*`);b("MAINVERSION",`(${D[g.NUMERICIDENTIFIER]})\\.(${D[g.NUMERICIDENTIFIER]})\\.(${D[g.NUMERICIDENTIFIER]})`);b("MAINVERSIONLOOSE",`(${D[g.NUMERICIDENTIFIERLOOSE]})\\.(${D[g.NUMERICIDENTIFIERLOOSE]})\\.(${D[g.NUMERICIDENTIFIERLOOSE]})`);b("PRERELEASEIDENTIFIER",`(?:${D[g.NONNUMERICIDENTIFIER]}|${D[g.NUMERICIDENTIFIER]})`);b("PRERELEASEIDENTIFIERLOOSE",`(?:${D[g.NONNUMERICIDENTIFIER]}|${D[g.NUMERICIDENTIFIERLOOSE]})`);b("PRERELEASE",`(?:-(${D[g.PRERELEASEIDENTIFIER]}(?:\\.${D[g.PRERELEASEIDENTIFIER]})*))`);b("PRERELEASELOOSE",`(?:-?(${D[g.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${D[g.PRERELEASEIDENTIFIERLOOSE]})*))`);b("BUILDIDENTIFIER",`${kr}+`);b("BUILD",`(?:\\+(${D[g.BUILDIDENTIFIER]}(?:\\.${D[g.BUILDIDENTIFIER]})*))`);b("FULLPLAIN",`v?${D[g.MAINVERSION]}${D[g.PRERELEASE]}?${D[g.BUILD]}?`);b("FULL",`^${D[g.FULLPLAIN]}$`);b("LOOSEPLAIN",`[v=\\s]*${D[g.MAINVERSIONLOOSE]}${D[g.PRERELEASELOOSE]}?${D[g.BUILD]}?`);b("LOOSE",`^${D[g.LOOSEPLAIN]}$`);b("GTLT","((?:<|>)?=?)");b("XRANGEIDENTIFIERLOOSE",`${D[g.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);b("XRANGEIDENTIFIER",`${D[g.NUMERICIDENTIFIER]}|x|X|\\*`);b("XRANGEPLAIN",`[v=\\s]*(${D[g.XRANGEIDENTIFIER]})(?:\\.(${D[g.XRANGEIDENTIFIER]})(?:\\.(${D[g.XRANGEIDENTIFIER]})(?:${D[g.PRERELEASE]})?${D[g.BUILD]}?)?)?`);b("XRANGEPLAINLOOSE",`[v=\\s]*(${D[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${D[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${D[g.XRANGEIDENTIFIERLOOSE]})(?:${D[g.PRERELEASELOOSE]})?${D[g.BUILD]}?)?)?`);b("XRANGE",`^${D[g.GTLT]}\\s*${D[g.XRANGEPLAIN]}$`);b("XRANGELOOSE",`^${D[g.GTLT]}\\s*${D[g.XRANGEPLAINLOOSE]}$`);b("COERCEPLAIN",`(^|[^\\d])(\\d{1,${jr}})(?:\\.(\\d{1,${jr}}))?(?:\\.(\\d{1,${jr}}))?`);b("COERCE",`${D[g.COERCEPLAIN]}(?:$|[^\\d])`);b("COERCEFULL",D[g.COERCEPLAIN]+`(?:${D[g.PRERELEASE]})?(?:${D[g.BUILD]})?(?:$|[^\\d])`);b("COERCERTL",D[g.COERCE],!0);b("COERCERTLFULL",D[g.COERCEFULL],!0);b("LONETILDE","(?:~>?)");b("TILDETRIM",`(\\s*)${D[g.LONETILDE]}\\s+`,!0);re.tildeTrimReplace="$1~";b("TILDE",`^${D[g.LONETILDE]}${D[g.XRANGEPLAIN]}$`);b("TILDELOOSE",`^${D[g.LONETILDE]}${D[g.XRANGEPLAINLOOSE]}$`);b("LONECARET","(?:\\^)");b("CARETTRIM",`(\\s*)${D[g.LONECARET]}\\s+`,!0);re.caretTrimReplace="$1^";b("CARET",`^${D[g.LONECARET]}${D[g.XRANGEPLAIN]}$`);b("CARETLOOSE",`^${D[g.LONECARET]}${D[g.XRANGEPLAINLOOSE]}$`);b("COMPARATORLOOSE",`^${D[g.GTLT]}\\s*(${D[g.LOOSEPLAIN]})$|^$`);b("COMPARATOR",`^${D[g.GTLT]}\\s*(${D[g.FULLPLAIN]})$|^$`);b("COMPARATORTRIM",`(\\s*)${D[g.GTLT]}\\s*(${D[g.LOOSEPLAIN]}|${D[g.XRANGEPLAIN]})`,!0);re.comparatorTrimReplace="$1$2$3";b("HYPHENRANGE",`^\\s*(${D[g.XRANGEPLAIN]})\\s+-\\s+(${D[g.XRANGEPLAIN]})\\s*$`);b("HYPHENRANGELOOSE",`^\\s*(${D[g.XRANGEPLAINLOOSE]})\\s+-\\s+(${D[g.XRANGEPLAINLOOSE]})\\s*$`);b("STAR","(<|>)?=?\\s*\\*");b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Ot=m((g0,Mn)=>{"use strict";var zc=Object.freeze({loose:!0}),Yc=Object.freeze({}),Xc=r=>r?typeof r!="object"?zc:r:Yc;Mn.exports=Xc});var Mr=m((E0,Gn)=>{"use strict";var Hn=/^[0-9]+$/,Vn=(r,e)=>{if(typeof r=="number"&&typeof e=="number")return r===e?0:r<e?-1:1;let t=Hn.test(r),i=Hn.test(e);return t&&i&&(r=+r,e=+e),r===e?0:t&&!i?-1:i&&!t?1:r<e?-1:1},Jc=(r,e)=>Vn(e,r);Gn.exports={compareIdentifiers:Vn,rcompareIdentifiers:Jc}});var I=m((C0,Un)=>{"use strict";var Rt=Je(),{MAX_LENGTH:Wn,MAX_SAFE_INTEGER:Tt}=Oe(),{safeRe:St,t:vt}=Re(),Kc=Ot(),{compareIdentifiers:Hr}=Mr(),Zc=(r,e)=>{let t=e.split(".");if(t.length>r.length)return!1;for(let i=0;i<t.length;i++)if(Hr(r[i],t[i])!==0)return!1;return!0},Vr=class r{constructor(e,t){if(t=Kc(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Wn)throw new TypeError(`version is longer than ${Wn} characters`);Rt("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let i=e.trim().match(t.loose?St[vt.LOOSE]:St[vt.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Tt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Tt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Tt||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let n=+s;if(n>=0&&n<Tt)return n}return s}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Rt("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let i=this.prerelease[t],s=e.prerelease[t];if(Rt("prerelease compare",t,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return Hr(i,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let i=this.build[t],s=e.build[t];if(Rt("build compare",t,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return Hr(i,s)}while(++t)}inc(e,t,i){if(e.startsWith("pre")){if(!t&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let s=`-${t}`.match(this.options.loose?St[vt.PRERELEASELOOSE]:St[vt.PRERELEASE]);if(!s||s[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,i),this.inc("pre",t,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,i),this.inc("pre",t,i);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);if(n===-1){if(t===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let n=[t,s];if(i===!1&&(n=[t]),Zc(this.prerelease,t)){let o=this.prerelease[t.split(".").length];isNaN(o)&&(this.prerelease=n)}else this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Un.exports=Vr});var ce=m((b0,Yn)=>{"use strict";var zn=I(),Qc=(r,e,t=!1)=>{if(r instanceof zn)return r;try{return new zn(r,e)}catch(i){if(!t)return null;throw i}};Yn.exports=Qc});var Jn=m((x0,Xn)=>{"use strict";var eh=ce(),th=(r,e)=>{let t=eh(r,e);return t?t.version:null};Xn.exports=th});var Zn=m((y0,Kn)=>{"use strict";var rh=ce(),ih=(r,e)=>{let t=rh(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};Kn.exports=ih});var to=m((w0,eo)=>{"use strict";var Qn=I(),sh=(r,e,t,i,s)=>{typeof t=="string"&&(s=i,i=t,t=void 0);try{return new Qn(r instanceof Qn?r.version:r,t).inc(e,i,s).version}catch{return null}};eo.exports=sh});var so=m((_0,io)=>{"use strict";var ro=ce(),nh=(r,e)=>{let t=ro(r,null,!0),i=ro(e,null,!0),s=t.compare(i);if(s===0)return null;let n=s>0,o=n?t:i,a=n?i:t,u=!!o.prerelease.length;if(!!a.prerelease.length&&!u){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let c=u?"pre":"";return t.major!==i.major?c+"major":t.minor!==i.minor?c+"minor":t.patch!==i.patch?c+"patch":"prerelease"};io.exports=nh});var oo=m((F0,no)=>{"use strict";var oh=I(),uh=(r,e)=>new oh(r,e).major;no.exports=uh});var ao=m((A0,uo)=>{"use strict";var ah=I(),lh=(r,e)=>new ah(r,e).minor;uo.exports=lh});var co=m((O0,lo)=>{"use strict";var ch=I(),hh=(r,e)=>new ch(r,e).patch;lo.exports=hh});var fo=m((R0,ho)=>{"use strict";var fh=ce(),dh=(r,e)=>{let t=fh(r,e);return t&&t.prerelease.length?t.prerelease:null};ho.exports=dh});var W=m((T0,mo)=>{"use strict";var po=I(),ph=(r,e,t)=>new po(r,t).compare(new po(e,t));mo.exports=ph});var go=m((S0,Do)=>{"use strict";var mh=W(),Dh=(r,e,t)=>mh(e,r,t);Do.exports=Dh});var Co=m((v0,Eo)=>{"use strict";var gh=W(),Eh=(r,e)=>gh(r,e,!0);Eo.exports=Eh});var It=m((I0,xo)=>{"use strict";var bo=I(),Ch=(r,e,t)=>{let i=new bo(r,t),s=new bo(e,t);return i.compare(s)||i.compareBuild(s)};xo.exports=Ch});var wo=m(($0,yo)=>{"use strict";var bh=It(),xh=(r,e)=>r.sort((t,i)=>bh(t,i,e));yo.exports=xh});var Fo=m((B0,_o)=>{"use strict";var yh=It(),wh=(r,e)=>r.sort((t,i)=>yh(i,t,e));_o.exports=wh});var Ke=m((L0,Ao)=>{"use strict";var _h=W(),Fh=(r,e,t)=>_h(r,e,t)>0;Ao.exports=Fh});var $t=m((N0,Oo)=>{"use strict";var Ah=W(),Oh=(r,e,t)=>Ah(r,e,t)<0;Oo.exports=Oh});var Gr=m((P0,Ro)=>{"use strict";var Rh=W(),Th=(r,e,t)=>Rh(r,e,t)===0;Ro.exports=Th});var Wr=m((q0,To)=>{"use strict";var Sh=W(),vh=(r,e,t)=>Sh(r,e,t)!==0;To.exports=vh});var Bt=m((j0,So)=>{"use strict";var Ih=W(),$h=(r,e,t)=>Ih(r,e,t)>=0;So.exports=$h});var Lt=m((k0,vo)=>{"use strict";var Bh=W(),Lh=(r,e,t)=>Bh(r,e,t)<=0;vo.exports=Lh});var Ur=m((M0,Io)=>{"use strict";var Nh=Gr(),Ph=Wr(),qh=Ke(),jh=Bt(),kh=$t(),Mh=Lt(),Hh=(r,e,t,i)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Nh(r,t,i);case"!=":return Ph(r,t,i);case">":return qh(r,t,i);case">=":return jh(r,t,i);case"<":return kh(r,t,i);case"<=":return Mh(r,t,i);default:throw new TypeError(`Invalid operator: ${e}`)}};Io.exports=Hh});var Bo=m((H0,$o)=>{"use strict";var Vh=I(),Gh=ce(),{safeRe:Nt,t:Pt}=Re(),Wh=(r,e)=>{if(r instanceof Vh)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?Nt[Pt.COERCEFULL]:Nt[Pt.COERCE]);else{let u=e.includePrerelease?Nt[Pt.COERCERTLFULL]:Nt[Pt.COERCERTL],l;for(;(l=u.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||l.index+l[0].length!==t.index+t[0].length)&&(t=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(t===null)return null;let i=t[2],s=t[3]||"0",n=t[4]||"0",o=e.includePrerelease&&t[5]?`-${t[5]}`:"",a=e.includePrerelease&&t[6]?`+${t[6]}`:"";return Gh(`${i}.${s}.${n}${o}${a}`,e)};$o.exports=Wh});var No=m((V0,Lo)=>{"use strict";var Uh=ce(),zh=Oe(),Yh=I(),Xh=(r,e,t)=>{if(!zh.RELEASE_TYPES.includes(e))return null;let i=Jh(r,t);return i&&Kh(i,e)},Jh=(r,e)=>{let t=r instanceof Yh?r.version:r;return Uh(t,e)},Kh=(r,e)=>{if(Zh(e))return r.version;switch(r.prerelease=[],e){case"major":r.minor=0,r.patch=0;break;case"minor":r.patch=0;break}return r.format()},Zh=r=>r.startsWith("pre");Lo.exports=Xh});var qo=m((G0,Po)=>{"use strict";var zr=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};Po.exports=zr});var U=m((W0,Ho)=>{"use strict";var Qh=/\s+/g,Yr=class r{constructor(e,t){if(t=tf(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Xr)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(Qh," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(s=>!ko(s[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&hf(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let i=0;i<t.length;i++)i>0&&(this.formatted+=" "),this.formatted+=t[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(cf,"");let i=((this.options.includePrerelease&&af)|(this.options.loose&&lf))+":"+e,s=jo.get(i);if(s)return s;let n=this.options.loose,o=n?q[$.HYPHENRANGELOOSE]:q[$.HYPHENRANGE];e=e.replace(o,yf(this.options.includePrerelease)),A("hyphen replace",e),e=e.replace(q[$.COMPARATORTRIM],nf),A("comparator trim",e),e=e.replace(q[$.TILDETRIM],of),A("tilde trim",e),e=e.replace(q[$.CARETTRIM],uf),A("caret trim",e);let a=e.split(" ").map(h=>ff(h,this.options)).join(" ").split(/\s+/).map(h=>xf(h,this.options));n&&(a=a.filter(h=>(A("loose invalid filter",h,this.options),!!h.match(q[$.COMPARATORLOOSE])))),A("range list",a);let u=new Map,l=a.map(h=>new Xr(h,this.options));for(let h of l){if(ko(h))return[h];u.set(h.value,h)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return jo.set(i,c),c}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(i=>Mo(i,t)&&e.set.some(s=>Mo(s,t)&&i.every(n=>s.every(o=>n.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new rf(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(wf(this.set[t],e,this.options))return!0;return!1}};Ho.exports=Yr;var ef=qo(),jo=new ef,tf=Ot(),Xr=Ze(),A=Je(),rf=I(),{safeRe:q,src:sf,t:$,comparatorTrimReplace:nf,tildeTrimReplace:of,caretTrimReplace:uf}=Re(),{FLAG_INCLUDE_PRERELEASE:af,FLAG_LOOSE:lf}=Oe(),cf=new RegExp(sf[$.BUILD],"g"),ko=r=>r.value==="<0.0.0-0",hf=r=>r.value==="",Mo=(r,e)=>{let t=!0,i=r.slice(),s=i.pop();for(;t&&i.length;)t=i.every(n=>s.intersects(n,e)),s=i.pop();return t},ff=(r,e)=>(r=r.replace(q[$.BUILD],""),A("comp",r,e),r=Df(r,e),A("caret",r),r=pf(r,e),A("tildes",r),r=Ef(r,e),A("xrange",r),r=bf(r,e),A("stars",r),r),S=r=>!r||r.toLowerCase()==="x"||r==="*",df=(r,e,t)=>S(r)&&!S(e)||S(e)&&t&&!S(t),pf=(r,e)=>r.trim().split(/\s+/).map(t=>mf(t,e)).join(" "),mf=(r,e)=>{let t=e.loose?q[$.TILDELOOSE]:q[$.TILDE],i=e.includePrerelease?"-0":"";return r.replace(t,(s,n,o,a,u)=>{A("tilde",r,s,n,o,a,u);let l;return S(n)?l="":S(o)?l=`>=${n}.0.0${i} <${+n+1}.0.0-0`:S(a)?l=`>=${n}.${o}.0${i} <${n}.${+o+1}.0-0`:u?(A("replaceTilde pr",u),l=`>=${n}.${o}.${a}-${u} <${n}.${+o+1}.0-0`):l=`>=${n}.${o}.${a} <${n}.${+o+1}.0-0`,A("tilde return",l),l})},Df=(r,e)=>r.trim().split(/\s+/).map(t=>gf(t,e)).join(" "),gf=(r,e)=>{A("caret",r,e);let t=e.loose?q[$.CARETLOOSE]:q[$.CARET],i=e.includePrerelease?"-0":"";return r.replace(t,(s,n,o,a,u)=>{A("caret",r,s,n,o,a,u);let l;return S(n)?l="":S(o)?l=`>=${n}.0.0${i} <${+n+1}.0.0-0`:S(a)?n==="0"?l=`>=${n}.${o}.0${i} <${n}.${+o+1}.0-0`:l=`>=${n}.${o}.0${i} <${+n+1}.0.0-0`:u?(A("replaceCaret pr",u),n==="0"?o==="0"?l=`>=${n}.${o}.${a}-${u} <${n}.${o}.${+a+1}-0`:l=`>=${n}.${o}.${a}-${u} <${n}.${+o+1}.0-0`:l=`>=${n}.${o}.${a}-${u} <${+n+1}.0.0-0`):(A("no pr"),n==="0"?o==="0"?l=`>=${n}.${o}.${a} <${n}.${o}.${+a+1}-0`:l=`>=${n}.${o}.${a} <${n}.${+o+1}.0-0`:l=`>=${n}.${o}.${a} <${+n+1}.0.0-0`),A("caret return",l),l})},Ef=(r,e)=>(A("replaceXRanges",r,e),r.split(/\s+/).map(t=>Cf(t,e)).join(" ")),Cf=(r,e)=>{r=r.trim();let t=e.loose?q[$.XRANGELOOSE]:q[$.XRANGE];return r.replace(t,(i,s,n,o,a,u)=>{if(A("xRange",r,i,s,n,o,a,u),df(n,o,a))return r;let l=S(n),c=l||S(o),h=c||S(a),p=h;return s==="="&&p&&(s=""),u=e.includePrerelease?"-0":"",l?s===">"||s==="<"?i="<0.0.0-0":i="*":s&&p?(c&&(o=0),a=0,s===">"?(s=">=",c?(n=+n+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",c?n=+n+1:o=+o+1),s==="<"&&(u="-0"),i=`${s+n}.${o}.${a}${u}`):c?i=`>=${n}.0.0${u} <${+n+1}.0.0-0`:h&&(i=`>=${n}.${o}.0${u} <${n}.${+o+1}.0-0`),A("xRange return",i),i})},bf=(r,e)=>(A("replaceStars",r,e),r.trim().replace(q[$.STAR],"")),xf=(r,e)=>(A("replaceGTE0",r,e),r.trim().replace(q[e.includePrerelease?$.GTE0PRE:$.GTE0],"")),yf=r=>(e,t,i,s,n,o,a,u,l,c,h,p)=>(S(i)?t="":S(s)?t=`>=${i}.0.0${r?"-0":""}`:S(n)?t=`>=${i}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,S(l)?u="":S(c)?u=`<${+l+1}.0.0-0`:S(h)?u=`<${l}.${+c+1}.0-0`:p?u=`<=${l}.${c}.${h}-${p}`:r?u=`<${l}.${c}.${+h+1}-0`:u=`<=${u}`,`${t} ${u}`.trim()),wf=(r,e,t)=>{for(let i=0;i<r.length;i++)if(!r[i].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let i=0;i<r.length;i++)if(A(r[i].semver),r[i].semver!==Xr.ANY&&r[i].semver.prerelease.length>0){let s=r[i].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Ze=m((U0,Yo)=>{"use strict";var Qe=Symbol("SemVer ANY"),Zr=class r{static get ANY(){return Qe}constructor(e,t){if(t=Vo(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Kr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Qe?this.value="":this.value=this.operator+this.semver.version,Kr("comp",this)}parse(e){let t=this.options.loose?Go[Wo.COMPARATORLOOSE]:Go[Wo.COMPARATOR],i=e.match(t);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Uo(i[2],this.options.loose):this.semver=Qe}toString(){return this.value}test(e){if(Kr("Comparator.test",e,this.options.loose),this.semver===Qe||e===Qe)return!0;if(typeof e=="string")try{e=new Uo(e,this.options)}catch{return!1}return Jr(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new zo(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new zo(this.value,t).test(e.semver):(t=Vo(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Jr(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Jr(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Yo.exports=Zr;var Vo=Ot(),{safeRe:Go,t:Wo}=Re(),Jr=Ur(),Kr=Je(),Uo=I(),zo=U()});var et=m((z0,Xo)=>{"use strict";var _f=U(),Ff=(r,e,t)=>{try{e=new _f(e,t)}catch{return!1}return e.test(r)};Xo.exports=Ff});var Ko=m((Y0,Jo)=>{"use strict";var Af=U(),Of=(r,e)=>new Af(r,e).set.map(t=>t.map(i=>i.value).join(" ").trim().split(" "));Jo.exports=Of});var Qo=m((X0,Zo)=>{"use strict";var Rf=I(),Tf=U(),Sf=(r,e,t)=>{let i=null,s=null,n=null;try{n=new Tf(e,t)}catch{return null}return r.forEach(o=>{n.test(o)&&(!i||s.compare(o)===-1)&&(i=o,s=new Rf(i,t))}),i};Zo.exports=Sf});var tu=m((J0,eu)=>{"use strict";var vf=I(),If=U(),$f=(r,e,t)=>{let i=null,s=null,n=null;try{n=new If(e,t)}catch{return null}return r.forEach(o=>{n.test(o)&&(!i||s.compare(o)===1)&&(i=o,s=new vf(i,t))}),i};eu.exports=$f});var su=m((K0,iu)=>{"use strict";var Qr=I(),Bf=U(),ru=Ke(),Lf=(r,e)=>{r=new Bf(r,e);let t=new Qr("0.0.0");if(r.test(t)||(t=new Qr("0.0.0-0"),r.test(t)))return t;t=null;for(let i=0;i<r.set.length;++i){let s=r.set[i],n=null;s.forEach(o=>{let a=new Qr(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!n||ru(a,n))&&(n=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),n&&(!t||ru(t,n))&&(t=n)}return t&&r.test(t)?t:null};iu.exports=Lf});var ou=m((Z0,nu)=>{"use strict";var Nf=U(),Pf=(r,e)=>{try{return new Nf(r,e).range||"*"}catch{return null}};nu.exports=Pf});var qt=m((Q0,cu)=>{"use strict";var qf=I(),lu=Ze(),{ANY:jf}=lu,kf=U(),Mf=et(),uu=Ke(),au=$t(),Hf=Lt(),Vf=Bt(),Gf=(r,e,t,i)=>{r=new qf(r,i),e=new kf(e,i);let s,n,o,a,u;switch(t){case">":s=uu,n=Hf,o=au,a=">",u=">=";break;case"<":s=au,n=Vf,o=uu,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Mf(r,e,i))return!1;for(let l=0;l<e.set.length;++l){let c=e.set[l],h=null,p=null;if(c.forEach(f=>{f.semver===jf&&(f=new lu(">=0.0.0")),h=h||f,p=p||f,s(f.semver,h.semver,i)?h=f:o(f.semver,p.semver,i)&&(p=f)}),h.operator===a||h.operator===u||(!p.operator||p.operator===a)&&n(r,p.semver))return!1;if(p.operator===u&&o(r,p.semver))return!1}return!0};cu.exports=Gf});var fu=m((eg,hu)=>{"use strict";var Wf=qt(),Uf=(r,e,t)=>Wf(r,e,">",t);hu.exports=Uf});var pu=m((tg,du)=>{"use strict";var zf=qt(),Yf=(r,e,t)=>zf(r,e,"<",t);du.exports=Yf});var gu=m((rg,Du)=>{"use strict";var mu=U(),Xf=(r,e,t)=>(r=new mu(r,t),e=new mu(e,t),r.intersects(e,t));Du.exports=Xf});var Cu=m((ig,Eu)=>{"use strict";var Jf=et(),Kf=W();Eu.exports=(r,e,t)=>{let i=[],s=null,n=null,o=r.sort((c,h)=>Kf(c,h,t));for(let c of o)Jf(c,e,t)?(n=c,s||(s=c)):(n&&i.push([s,n]),n=null,s=null);s&&i.push([s,null]);let a=[];for(let[c,h]of i)c===h?a.push(c):!h&&c===o[0]?a.push("*"):h?c===o[0]?a.push(`<=${h}`):a.push(`${c} - ${h}`):a.push(`>=${c}`);let u=a.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return u.length<l.length?u:e}});var Fu=m((sg,_u)=>{"use strict";var bu=U(),ri=Ze(),{ANY:ei}=ri,ti=et(),ii=W(),Zf=(r,e,t={})=>{if(r===e)return!0;r=new bu(r,t),e=new bu(e,t);let i=!1;e:for(let s of r.set){for(let n of e.set){let o=ed(s,n,t);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},Qf=[new ri(">=0.0.0-0")],xu=[new ri(">=0.0.0")],ed=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===ei){if(e.length===1&&e[0].semver===ei)return!0;t.includePrerelease?r=Qf:r=xu}if(e.length===1&&e[0].semver===ei){if(t.includePrerelease)return!0;e=xu}let i=new Set,s,n;for(let f of r)f.operator===">"||f.operator===">="?s=yu(s,f,t):f.operator==="<"||f.operator==="<="?n=wu(n,f,t):i.add(f.semver);if(i.size>1)return null;let o;if(s&&n){if(o=ii(s.semver,n.semver,t),o>0)return null;if(o===0&&(s.operator!==">="||n.operator!=="<="))return null}for(let f of i){if(s&&!ti(f,String(s),t)||n&&!ti(f,String(n),t))return null;for(let d of e)if(!ti(f,String(d),t))return!1;return!0}let a,u,l,c,h=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1,p=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;h&&h.prerelease.length===1&&n.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let f of e){if(c=c||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",s){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator===">"||f.operator===">="){if(a=yu(s,f,t),a===f&&a!==s)return!1}else if(s.operator===">="&&!f.test(s.semver))return!1}if(n){if(h&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===h.major&&f.semver.minor===h.minor&&f.semver.patch===h.patch&&(h=!1),f.operator==="<"||f.operator==="<="){if(u=wu(n,f,t),u===f&&u!==n)return!1}else if(n.operator==="<="&&!f.test(n.semver))return!1}if(!f.operator&&(n||s)&&o!==0)return!1}return!(s&&l&&!n&&o!==0||n&&c&&!s&&o!==0||p||h)},yu=(r,e,t)=>{if(!r)return e;let i=ii(r.semver,e.semver,t);return i>0?r:i<0||e.operator===">"&&r.operator===">="?e:r},wu=(r,e,t)=>{if(!r)return e;let i=ii(r.semver,e.semver,t);return i<0?r:i>0||e.operator==="<"&&r.operator==="<="?e:r};_u.exports=Zf});var Tu=m((ng,Ru)=>{"use strict";var si=Re(),Au=Oe(),td=I(),Ou=Mr(),rd=ce(),id=Jn(),sd=Zn(),nd=to(),od=so(),ud=oo(),ad=ao(),ld=co(),cd=fo(),hd=W(),fd=go(),dd=Co(),pd=It(),md=wo(),Dd=Fo(),gd=Ke(),Ed=$t(),Cd=Gr(),bd=Wr(),xd=Bt(),yd=Lt(),wd=Ur(),_d=Bo(),Fd=No(),Ad=Ze(),Od=U(),Rd=et(),Td=Ko(),Sd=Qo(),vd=tu(),Id=su(),$d=ou(),Bd=qt(),Ld=fu(),Nd=pu(),Pd=gu(),qd=Cu(),jd=Fu();Ru.exports={parse:rd,valid:id,clean:sd,inc:nd,diff:od,major:ud,minor:ad,patch:ld,prerelease:cd,compare:hd,rcompare:fd,compareLoose:dd,compareBuild:pd,sort:md,rsort:Dd,gt:gd,lt:Ed,eq:Cd,neq:bd,gte:xd,lte:yd,cmp:wd,coerce:_d,truncate:Fd,Comparator:Ad,Range:Od,satisfies:Rd,toComparators:Td,maxSatisfying:Sd,minSatisfying:vd,minVersion:Id,validRange:$d,outside:Bd,gtr:Ld,ltr:Nd,intersects:Pd,simplifyRange:qd,subset:jd,SemVer:td,re:si.re,src:si.src,tokens:si.t,SEMVER_SPEC_VERSION:Au.SEMVER_SPEC_VERSION,RELEASE_TYPES:Au.RELEASE_TYPES,compareIdentifiers:Ou.compareIdentifiers,rcompareIdentifiers:Ou.rcompareIdentifiers}});function Gd(){let r=new Map;for(let[e,t]of Object.entries(O)){for(let[i,s]of Object.entries(t))O[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},t[i]=O[i],r.set(s[0],s[1]);Object.defineProperty(O,e,{value:t,enumerable:!1})}return Object.defineProperty(O,"codes",{value:r,enumerable:!1}),O.color.close="\x1B[39m",O.bgColor.close="\x1B[49m",O.color.ansi=$u(),O.color.ansi256=Bu(),O.color.ansi16m=Lu(),O.bgColor.ansi=$u(10),O.bgColor.ansi256=Bu(10),O.bgColor.ansi16m=Lu(10),Object.defineProperties(O,{rgbToAnsi256:{value(e,t,i){return e===t&&t===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(i/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[i]=t;i.length===3&&(i=[...i].map(n=>n+n).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>O.rgbToAnsi256(...O.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,i,s;if(e>=232)t=((e-232)*10+8)/255,i=t,s=t;else{e-=16;let a=e%36;t=Math.floor(e/36)/5,i=Math.floor(a/6)/5,s=a%6/5}let n=Math.max(t,i,s)*2;if(n===0)return 30;let o=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(t));return n===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,i)=>O.ansi256ToAnsi(O.rgbToAnsi256(e,t,i)),enumerable:!1},hexToAnsi:{value:e=>O.ansi256ToAnsi(O.hexToAnsi256(e)),enumerable:!1}}),O}var $u,Bu,Lu,O,cg,Hd,Vd,hg,Wd,J,Nu=F(()=>{$u=(r=0)=>e=>`\x1B[${e+r}m`,Bu=(r=0)=>e=>`\x1B[${38+r};5;${e}m`,Lu=(r=0)=>(e,t,i)=>`\x1B[${38+r};2;${e};${t};${i}m`,O={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},cg=Object.keys(O.modifier),Hd=Object.keys(O.color),Vd=Object.keys(O.bgColor),hg=[...Hd,...Vd];Wd=Gd(),J=Wd});function z(r,e=globalThis.Deno?globalThis.Deno.args:kt.default.argv){let t=r.startsWith("-")?"":r.length===1?"-":"--",i=e.indexOf(t+r),s=e.indexOf("--");return i!==-1&&(s===-1||i<s)}function Ud(){if("FORCE_COLOR"in R)return R.FORCE_COLOR==="true"?1:R.FORCE_COLOR==="false"?0:R.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(R.FORCE_COLOR,10),3)}function zd(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function Yd(r,{streamIsTTY:e,sniffFlags:t=!0}={}){let i=Ud();i!==void 0&&(jt=i);let s=t?jt:i;if(s===0)return 0;if(t){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in R&&"AGENT_NAME"in R)return 1;if(r&&!e&&s===void 0)return 0;let n=s||0;if(R.TERM==="dumb")return n;if(kt.default.platform==="win32"){let o=qu.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in R)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in R)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in R)||R.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in R)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(R.TEAMCITY_VERSION)?1:0;if(R.COLORTERM==="truecolor"||R.TERM==="xterm-kitty"||R.TERM==="xterm-ghostty"||R.TERM==="wezterm")return 3;if("TERM_PROGRAM"in R){let o=Number.parseInt((R.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(R.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(R.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(R.TERM)||"COLORTERM"in R?1:n}function Pu(r,e={}){let t=Yd(r,{streamIsTTY:r&&r.isTTY,...e});return zd(t)}var kt,qu,ni,R,jt,Xd,ju,ku=F(()=>{kt=v(require("node:process"),1),qu=v(require("node:os"),1),ni=v(require("node:tty"),1);({env:R}=kt.default);z("no-color")||z("no-colors")||z("color=false")||z("color=never")?jt=0:(z("color")||z("colors")||z("color=true")||z("color=always"))&&(jt=1);Xd={stdout:Pu({isTTY:ni.default.isatty(1)}),stderr:Pu({isTTY:ni.default.isatty(2)})},ju=Xd});function Mu(r,e,t){let i=r.indexOf(e);if(i===-1)return r;let s=e.length,n=0,o="";do o+=r.slice(n,i)+e+t,n=i+s,i=r.indexOf(e,n);while(i!==-1);return o+=r.slice(n),o}function Hu(r,e,t,i){let s=0,n="";do{let o=r[i-1]==="\r";n+=r.slice(s,o?i-1:i)+e+(o?`\r
|
|
30
|
+
`:`
|
|
31
|
+
`)+t,s=i+1,i=r.indexOf(`
|
|
32
|
+
`,s)}while(i!==-1);return n+=r.slice(s),n}var Vu=F(()=>{});function rt(r){return Kd(r)}var Gu,Wu,oi,Te,tt,Uu,Se,Jd,Kd,ui,Zd,Qd,ai,Mt,ep,tp,Eg,zu,Yu=F(()=>{Nu();ku();Vu();({stdout:Gu,stderr:Wu}=ju),oi=Symbol("GENERATOR"),Te=Symbol("STYLER"),tt=Symbol("IS_EMPTY"),Uu=["ansi","ansi","ansi256","ansi16m"],Se=Object.create(null),Jd=(r,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let t=Gu?Gu.level:0;r.level=e.level===void 0?t:e.level},Kd=r=>{let e=(...t)=>t.join(" ");return Jd(e,r),Object.setPrototypeOf(e,rt.prototype),e};Object.setPrototypeOf(rt.prototype,Function.prototype);for(let[r,e]of Object.entries(J))Se[r]={get(){let t=Mt(this,ai(e.open,e.close,this[Te]),this[tt]);return Object.defineProperty(this,r,{value:t}),t}};Se.visible={get(){let r=Mt(this,this[Te],!0);return Object.defineProperty(this,"visible",{value:r}),r}};ui=(r,e,t,...i)=>r==="rgb"?e==="ansi16m"?J[t].ansi16m(...i):e==="ansi256"?J[t].ansi256(J.rgbToAnsi256(...i)):J[t].ansi(J.rgbToAnsi(...i)):r==="hex"?ui("rgb",e,t,...J.hexToRgb(...i)):J[t][r](...i),Zd=["rgb","hex","ansi256"];for(let r of Zd){Se[r]={get(){let{level:t}=this;return function(...i){let s=ai(ui(r,Uu[t],"color",...i),J.color.close,this[Te]);return Mt(this,s,this[tt])}}};let e="bg"+r[0].toUpperCase()+r.slice(1);Se[e]={get(){let{level:t}=this;return function(...i){let s=ai(ui(r,Uu[t],"bgColor",...i),J.bgColor.close,this[Te]);return Mt(this,s,this[tt])}}}}Qd=Object.defineProperties(()=>{},{...Se,level:{enumerable:!0,get(){return this[oi].level},set(r){this[oi].level=r}}}),ai=(r,e,t)=>{let i,s;return t===void 0?(i=r,s=e):(i=t.openAll+r,s=e+t.closeAll),{open:r,close:e,openAll:i,closeAll:s,parent:t}},Mt=(r,e,t)=>{let i=(...s)=>ep(i,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(i,Qd),i[oi]=r,i[Te]=e,i[tt]=t,i},ep=(r,e)=>{if(r.level<=0||!e)return r[tt]?"":e;let t=r[Te];if(t===void 0)return e;let{openAll:i,closeAll:s}=t;if(e.includes("\x1B"))for(;t!==void 0;)e=Mu(e,t.close,t.open),t=t.parent;let n=e.indexOf(`
|
|
33
|
+
`);return n!==-1&&(e=Hu(e,s,i,n)),i+e+s};Object.defineProperties(rt.prototype,Se);tp=rt(),Eg=rt({level:Wu?Wu.level:0}),zu=tp});function li(r,e,{ignoreNonConfigurable:t=!1}={}){let{name:i}=r;for(let s of Reflect.ownKeys(e))rp(r,e,s,t);return sp(r,e),ap(r,e,i),r}var rp,ip,sp,np,op,up,ap,Xu=F(()=>{rp=(r,e,t,i)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;let s=Object.getOwnPropertyDescriptor(r,t),n=Object.getOwnPropertyDescriptor(e,t);!ip(s,n)&&i||Object.defineProperty(r,t,n)},ip=function(r,e){return r===void 0||r.configurable||r.writable===e.writable&&r.enumerable===e.enumerable&&r.configurable===e.configurable&&(r.writable||r.value===e.value)},sp=(r,e)=>{let t=Object.getPrototypeOf(e);t!==Object.getPrototypeOf(r)&&Object.setPrototypeOf(r,t)},np=(r,e)=>`/* Wrapped ${r}*/
|
|
34
|
+
${e}`,op=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),up=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),ap=(r,e,t)=>{let i=t===""?"":`with ${t.trim()}() `,s=np.bind(null,i,e.toString());Object.defineProperty(s,"name",up);let{writable:n,enumerable:o,configurable:a}=op;Object.defineProperty(r,"toString",{value:s,writable:n,enumerable:o,configurable:a})}});var Ht,Ju,Ku,Zu=F(()=>{Xu();Ht=new WeakMap,Ju=(r,e={})=>{if(typeof r!="function")throw new TypeError("Expected a function");let t,i=0,s=r.displayName||r.name||"<anonymous>",n=function(...o){if(Ht.set(n,++i),i===1)t=r.apply(this,o),r=void 0;else if(e.throw===!0)throw new Error(`Function \`${s}\` can only be called once`);return t};return li(n,r),Ht.set(n,i),n};Ju.callCount=r=>{if(!Ht.has(r))throw new Error(`The given function \`${r.name}\` is not wrapped by the \`onetime\` package`);return Ht.get(r)};Ku=Ju});var pe,Qu=F(()=>{pe=[];pe.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&pe.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&pe.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var Vt,ci,hi,lp,fi,Gt,cp,di,pi,mi,ea,Fg,Ag,ta=F(()=>{Qu();Vt=r=>!!r&&typeof r=="object"&&typeof r.removeListener=="function"&&typeof r.emit=="function"&&typeof r.reallyExit=="function"&&typeof r.listeners=="function"&&typeof r.kill=="function"&&typeof r.pid=="number"&&typeof r.on=="function",ci=Symbol.for("signal-exit emitter"),hi=globalThis,lp=Object.defineProperty.bind(Object),fi=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(hi[ci])return hi[ci];lp(hi,ci,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let i=this.listeners[e],s=i.indexOf(t);s!==-1&&(s===0&&i.length===1?i.length=0:i.splice(s,1))}emit(e,t,i){if(this.emitted[e])return!1;this.emitted[e]=!0;let s=!1;for(let n of this.listeners[e])s=n(t,i)===!0||s;return e==="exit"&&(s=this.emit("afterExit",t,i)||s),s}},Gt=class{},cp=r=>({onExit(e,t){return r.onExit(e,t)},load(){return r.load()},unload(){return r.unload()}}),di=class extends Gt{onExit(){return()=>{}}load(){}unload(){}},pi=class extends Gt{#u=mi.platform==="win32"?"SIGINT":"SIGHUP";#s=new fi;#r;#t;#e;#i={};#n=!1;constructor(e){super(),this.#r=e,this.#i={};for(let t of pe)this.#i[t]=()=>{let i=this.#r.listeners(t),{count:s}=this.#s,n=e;if(typeof n.__signal_exit_emitter__=="object"&&typeof n.__signal_exit_emitter__.count=="number"&&(s+=n.__signal_exit_emitter__.count),i.length===s){this.unload();let o=this.#s.emit("exit",null,t),a=t==="SIGHUP"?this.#u:t;o||e.kill(e.pid,a)}};this.#e=e.reallyExit,this.#t=e.emit}onExit(e,t){if(!Vt(this.#r))return()=>{};this.#n===!1&&this.load();let i=t?.alwaysLast?"afterExit":"exit";return this.#s.on(i,e),()=>{this.#s.removeListener(i,e),this.#s.listeners.exit.length===0&&this.#s.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#n){this.#n=!0,this.#s.count+=1;for(let e of pe)try{let t=this.#i[e];t&&this.#r.on(e,t)}catch{}this.#r.emit=(e,...t)=>this.#h(e,...t),this.#r.reallyExit=e=>this.#c(e)}}unload(){this.#n&&(this.#n=!1,pe.forEach(e=>{let t=this.#i[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#r.removeListener(e,t)}catch{}}),this.#r.emit=this.#t,this.#r.reallyExit=this.#e,this.#s.count-=1)}#c(e){return Vt(this.#r)?(this.#r.exitCode=e||0,this.#s.emit("exit",this.#r.exitCode,null),this.#e.call(this.#r,this.#r.exitCode)):0}#h(e,...t){let i=this.#t;if(e==="exit"&&Vt(this.#r)){typeof t[0]=="number"&&(this.#r.exitCode=t[0]);let s=i.call(this.#r,e,...t);return this.#s.emit("exit",this.#r.exitCode,null),s}else return i.call(this.#r,e,...t)}},mi=globalThis.process,{onExit:ea,load:Fg,unload:Ag}=cp(Vt(mi)?new pi(mi):new di)});var it,ra,hp,ia,sa=F(()=>{it=v(require("node:process"),1);Zu();ta();ra=it.default.stderr.isTTY?it.default.stderr:it.default.stdout.isTTY?it.default.stdout:void 0,hp=ra?Ku(()=>{ea(()=>{ra.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},ia=hp});var Di,Wt,ve,gi,na=F(()=>{Di=v(require("node:process"),1);sa();Wt=!1,ve={};ve.show=(r=Di.default.stderr)=>{r.isTTY&&(Wt=!1,r.write("\x1B[?25h"))};ve.hide=(r=Di.default.stderr)=>{r.isTTY&&(ia(),Wt=!0,r.write("\x1B[?25l"))};ve.toggle=(r,e)=>{r!==void 0&&(Wt=r),Wt?ve.show(e):ve.hide(e)};gi=ve});var Ei,oa=F(()=>{Ei={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots14:{interval:80,frames:["\u2809\u2809","\u2808\u2819","\u2800\u2839","\u2800\u28B8","\u2800\u28F0","\u2880\u28E0","\u28C0\u28C0","\u28C4\u2840","\u28C6\u2800","\u2847\u2800","\u280F\u2800","\u280B\u2801"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},dotsCircle:{interval:80,frames:["\u288E ","\u280E\u2801","\u280A\u2811","\u2808\u2831"," \u2871","\u2880\u2870","\u2884\u2860","\u2886\u2840"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},rollingLine:{interval:80,frames:["/ "," - "," \\ "," |"," |"," \\ "," - ","/ "]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u{1F497} "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]},fish:{interval:80,frames:["~~~~~~~~~~~~~~~~~~~~","> ~~~~~~~~~~~~~~~~~~","\xBA> ~~~~~~~~~~~~~~~~~","(\xBA> ~~~~~~~~~~~~~~~~","((\xBA> ~~~~~~~~~~~~~~~","<((\xBA> ~~~~~~~~~~~~~~","><((\xBA> ~~~~~~~~~~~~~"," ><((\xBA> ~~~~~~~~~~~~","~ ><((\xBA> ~~~~~~~~~~~","~~ <>((\xBA> ~~~~~~~~~~","~~~ ><((\xBA> ~~~~~~~~~","~~~~ <>((\xBA> ~~~~~~~~","~~~~~ ><((\xBA> ~~~~~~~","~~~~~~ <>((\xBA> ~~~~~~","~~~~~~~ ><((\xBA> ~~~~~","~~~~~~~~ <>((\xBA> ~~~~","~~~~~~~~~ ><((\xBA> ~~~","~~~~~~~~~~ <>((\xBA> ~~","~~~~~~~~~~~ ><((\xBA> ~","~~~~~~~~~~~~ <>((\xBA> ","~~~~~~~~~~~~~ ><((\xBA>","~~~~~~~~~~~~~~ <>((\xBA","~~~~~~~~~~~~~~~ ><((","~~~~~~~~~~~~~~~~ <>(","~~~~~~~~~~~~~~~~~ ><","~~~~~~~~~~~~~~~~~~ <","~~~~~~~~~~~~~~~~~~~~"]}}});var me,Lg,Ci=F(()=>{oa();me=Ei,Lg=Object.keys(Ei)});var ua,dp,x,Pg,qg,jg,kg,Mg,Hg,Vg,Gg,Wg,Ug,aa,la,ca,ha,zg,Yg,Xg,Jg,Kg,Zg,Qg,eE,tE,rE,iE,sE,nE,oE,uE,aE,lE,cE,hE,fE,dE,pE,mE,DE,gE,EE,CE,bi=F(()=>{ua=v(require("node:tty"),1),dp=ua.default?.WriteStream?.prototype?.hasColors?.()??!1,x=(r,e)=>{if(!dp)return s=>s;let t=`\x1B[${r}m`,i=`\x1B[${e}m`;return s=>{let n=s+"",o=n.indexOf(i);if(o===-1)return t+n+i;let a=t,u=0,c=(e===22?i:"")+t;for(;o!==-1;)a+=n.slice(u,o)+c,u=o+i.length,o=n.indexOf(i,u);return a+=n.slice(u)+i,a}},Pg=x(0,0),qg=x(1,22),jg=x(2,22),kg=x(3,23),Mg=x(4,24),Hg=x(53,55),Vg=x(7,27),Gg=x(8,28),Wg=x(9,29),Ug=x(30,39),aa=x(31,39),la=x(32,39),ca=x(33,39),ha=x(34,39),zg=x(35,39),Yg=x(36,39),Xg=x(37,39),Jg=x(90,39),Kg=x(40,49),Zg=x(41,49),Qg=x(42,49),eE=x(43,49),tE=x(44,49),rE=x(45,49),iE=x(46,49),sE=x(47,49),nE=x(100,49),oE=x(91,39),uE=x(92,39),aE=x(93,39),lE=x(94,39),cE=x(95,39),hE=x(96,39),fE=x(97,39),dE=x(101,49),pE=x(102,49),mE=x(103,49),DE=x(104,49),gE=x(105,49),EE=x(106,49),CE=x(107,49)});var fa=F(()=>{bi();bi()});function st(){let{env:r}=xi.default,{TERM:e,TERM_PROGRAM:t}=r;return xi.default.platform!=="win32"?e!=="linux":!!r.WT_SESSION||!!r.TERMINUS_SUBLIME||r.ConEmuTask==="{cmd::Cmder}"||t==="Terminus-Sublime"||t==="vscode"||e==="xterm-256color"||e==="alacritty"||e==="rxvt-unicode"||e==="rxvt-unicode-256color"||r.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var xi,yi=F(()=>{xi=v(require("node:process"),1)});var De={};Bi(De,{error:()=>Ep,info:()=>mp,success:()=>Dp,warning:()=>gp});var Ut,mp,Dp,gp,Ep,da=F(()=>{fa();yi();Ut=st(),mp=ha(Ut?"\u2139":"i"),Dp=la(Ut?"\u2714":"\u221A"),gp=ca(Ut?"\u26A0":"\u203C"),Ep=aa(Ut?"\u2716":"\xD7")});var pa=F(()=>{da()});function wi({onlyFirst:r=!1}={}){let s="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(s,r?void 0:"g")}var ma=F(()=>{});function _i(r){if(typeof r!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof r}\``);return!r.includes("\x1B")&&!r.includes("\x9B")?r:r.replace(Cp,"")}var Cp,Da=F(()=>{ma();Cp=wi()});var ga,Ea,Ca,ba,xa,ya,Fi,wa=F(()=>{ga=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Ea=12288,Ca=65510,ba=[12288,12288,65281,65376,65504,65510],xa=4352,ya=262141,Fi=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141]});var zt,_a=F(()=>{zt=(r,e)=>{let t=0,i=Math.floor(r.length/2)-1;for(;t<=i;){let s=Math.floor((t+i)/2),n=s*2;if(e<r[n])i=s-1;else if(e>r[n+1])t=s+1;else return!0}return!1}});function _p(r){let e=r[0],t=r[1];for(let i=0;i<r.length;i+=2){let s=r[i],n=r[i+1];if(Fa>=s&&Fa<=n)return[s,n];n-s>t-e&&(e=s,t=n)}return[e,t]}var Fa,yp,wp,Aa,Oa,Ra,Ta=F(()=>{wa();_a();Fa=19968,[yp,wp]=_p(Fi);Aa=r=>r<161||r>1114109?!1:zt(ga,r),Oa=r=>r<Ea||r>Ca?!1:zt(ba,r),Ra=r=>r>=yp&&r<=wp?!0:r<xa||r>ya?!1:zt(Fi,r)});function Fp(r){if(!Number.isSafeInteger(r))throw new TypeError(`Expected a code point, got \`${typeof r}\`.`)}function nt(r,{ambiguousAsWide:e=!1}={}){return Fp(r),Oa(r)||Ra(r)||e&&Aa(r)?2:1}var Sa=F(()=>{Ta()});function vp(r){if(r.length>50)return!1;if(Tp.test(r))return!0;if(r.includes("\u200D")){let e=r.match(Sp);return e!==null&&e.length>=2}return!1}function Ip(r){return r.replace(Op,"")}function $p(r){return va.test(r)}function Ia(r){return r>=4352&&r<=4447||r>=43360&&r<=43388}function $a(r){return r>=4448&&r<=4519||r>=55216&&r<=55238}function Ba(r){return r>=4520&&r<=4607||r>=55243&&r<=55291}function Bp(r){return Ia(r)||$a(r)||Ba(r)}function Lp(r,e){let t=[];for(let s of r)va.test(s)||t.push(s.codePointAt(0));if(t.length===0)return;let i=0;for(let s=0;s<t.length;s++){let n=t[s];if(!Bp(n)){if(i===0)return;for(let o=s;o<t.length;o++)i+=nt(t[o],e);return i}if(Ia(n)&&$a(t[s+1])){i+=2,s+=Ba(t[s+2])?2:1;continue}i+=nt(n,e)}return i}function Np(r,e){let t=0,i=!0;for(let s of r){if(i){i=!1;continue}s>="\uFF00"&&s<="\uFFEF"&&(t+=nt(s.codePointAt(0),e))}return t}function Ai(r,e={}){if(typeof r!="string"||r.length===0)return 0;let{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:i=!1}=e,s=r;if(!i&&(s.includes("\x1B")||s.includes("\x9B"))&&(s=_i(s)),s.length===0)return 0;if(/^[\u0020-\u007E]*$/.test(s))return s.length;let n=0,o={ambiguousAsWide:!t};for(let{segment:a}of Ap.segment(s)){if($p(a))continue;if(Rp.test(a)||vp(a)){n+=2;continue}let u=Ip(a),l=Lp(u,o);if(l!==void 0){n+=l;continue}let c=u.codePointAt(0);n+=nt(c,o),n+=Np(u,o)}return n}var Ap,va,Op,Rp,Tp,Sp,La=F(()=>{Da();Sa();Ap=new Intl.Segmenter,va=new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Format}|\\p{Mark}|\\p{Surrogate})+$","v"),Op=new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+","v"),Rp=new RegExp("^\\p{RGI_Emoji}$","v"),Tp=/^[\d#*]\u20E3$/,Sp=new RegExp("\\p{Extended_Pictographic}","gu")});function Oi({stream:r=process.stdout}={}){return!!(r&&r.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var Na=F(()=>{});var ot,Pp,Ri,qp,Ti,Pa=F(()=>{ot=v(require("node:process"),1),Pp=3,Ri=class{#u=0;#s;#r=!1;#t=!1;#e=e=>{if(!e?.length)return;(typeof e=="string"?e.codePointAt(0):e[0])===Pp&&ot.default.kill(ot.default.pid,"SIGINT")};start(){this.#u++,this.#u===1&&this.#i()}stop(){this.#u!==0&&--this.#u===0&&this.#n()}#i(){let{stdin:e}=ot.default;if(ot.default.platform==="win32"||!e?.isTTY||typeof e.setRawMode!="function"){this.#s=void 0;return}this.#s=e,this.#r=e.isPaused(),this.#t=!!e.isRaw,e.setRawMode(!0),e.prependListener("data",this.#e),this.#r&&e.resume()}#n(){if(!this.#s)return;let e=this.#s;e.off("data",this.#e),e.isTTY&&e.setRawMode?.(this.#t),this.#r&&e.pause(),this.#s=void 0,this.#r=!1,this.#t=!1}},qp=new Ri,Ti=Object.freeze(qp)});var ja={};Bi(ja,{default:()=>vi,oraPromise:()=>Vp,spinners:()=>me});function vi(r){return new Si(r)}async function Vp(r,e){let t=typeof r=="function",i=typeof r?.then=="function";if(!t&&!i)throw new TypeError("Parameter `action` must be a Function or a Promise");let{successText:s,failText:n,successSymbol:o,failSymbol:a}=typeof e=="object"&&e!==null?e:{},u=vi(e).start();try{let c=await(t?r(u):r),h=s===void 0?void 0:typeof s=="string"?s:s(c);return o===void 0?u.succeed(h):u.stopAndPersist({symbol:o,text:h}),c}catch(l){let c=n===void 0?void 0:typeof n=="string"?n:n(l);throw a===void 0?u.fail(c):u.stopAndPersist({symbol:a,text:c}),l}}var Ie,qa,jp,kp,Mp,Yt,Hp,Si,ka=F(()=>{Ie=v(require("node:process"),1),qa=require("node:util");Yu();na();Ci();pa();La();Na();yi();Pa();Ci();jp=200,kp="\x1B[?2026h",Mp="\x1B[?2026l",Yt=new Map,Hp=new Set(["black","red","green","yellow","blue","magenta","cyan","white","gray"]),Si=class{#u=0;#s=-1;#r=0;#t;#e;#i;#n;#c=new Map;#h=!1;#a;#o;#m=!1;#l;#d(e){this.#h=!0;try{return e()}finally{this.#h=!1}}#g(){this.isSpinning&&this.render()}#O(e,t){if(e==null)return"";if(typeof e=="string")return e;if(Buffer.isBuffer(e)||ArrayBuffer.isView(e)){let i=typeof t=="string"&&t&&t!=="buffer"?t:"utf8";return Buffer.from(e).toString(i)}return String(e)}#y(e){if(!e)return!1;let t=e.at(-1);return t===`
|
|
35
|
+
`||t==="\r"}#R(){this.#o||(this.#o=setTimeout(()=>{this.#o=void 0,this.isSpinning&&this.#g()},jp),typeof this.#o?.unref=="function"&&this.#o.unref())}#w(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}#_(e,t,i,s){let n=this.#f(i," "),a=typeof t=="string"?(e?" ":"")+t:"",u=this.#E(s," ");return n+e+a+u}constructor(e){if(typeof e=="string"&&(e={text:e}),this.#t={color:"cyan",stream:Ie.default.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#t.color,this.#i=this.#t.stream,typeof this.#t.isEnabled!="boolean"&&(this.#t.isEnabled=Oi({stream:this.#i})),typeof this.#t.isSilent!="boolean"&&(this.#t.isSilent=!1),this.#t.interval!==void 0&&!(Number.isInteger(this.#t.interval)&&this.#t.interval>0))throw new Error("The `interval` option must be a positive integer");let t=this.#t.interval;this.spinner=this.#t.spinner,this.#t.interval=t,this.text=this.#t.text,this.prefixText=this.#t.prefixText,this.suffixText=this.#t.suffixText,this.indent=this.#t.indent,Ie.default.env.NODE_ENV==="test"&&(this._stream=this.#i,this._isEnabled=this.#t.isEnabled,Object.defineProperty(this,"_linesToClear",{get(){return this.#u},set(i){this.#u=i}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#s}}),Object.defineProperty(this,"_lineCount",{get(){let i=this.#i.columns??80,s=typeof this.#t.prefixText=="function"?"":this.#t.prefixText,n=typeof this.#t.suffixText=="function"?"":this.#t.suffixText,o=typeof s=="string"&&s!==""?s+" ":"",a=typeof n=="string"&&n!==""?" "+n:"",l=" ".repeat(this.#t.indent)+o+"-"+(typeof this.#t.text=="string"?" "+this.#t.text:"")+a;return this.#p(l,i)}}))}get indent(){return this.#t.indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#t.indent=e}get interval(){return this.#t.interval??this.#e.interval??100}get spinner(){return this.#e}set spinner(e){if(this.#s=-1,this.#t.interval=void 0,typeof e=="object"){if(!Array.isArray(e.frames)||e.frames.length===0||e.frames.some(t=>typeof t!="string"))throw new Error("The given spinner must have a non-empty `frames` array of strings");if(e.interval!==void 0&&!(Number.isInteger(e.interval)&&e.interval>0))throw new Error("`spinner.interval` must be a positive integer if provided");this.#e=e}else if(!st())this.#e=me.line;else if(e===void 0)this.#e=me.dots;else if(e!=="default"&&me[e])this.#e=me[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#t.text}set text(e=""){this.#t.text=e}get prefixText(){return this.#t.prefixText}set prefixText(e=""){this.#t.prefixText=e}get suffixText(){return this.#t.suffixText}set suffixText(e=""){this.#t.suffixText=e}get isSpinning(){return this.#n!==void 0}#D(e,t,i=!1){let s=typeof e=="function"?e():e;return typeof s=="string"&&s!==""?i?t+s:s+t:""}#f(e=this.#t.prefixText,t=" "){return this.#D(e,t,!1)}#E(e=this.#t.suffixText,t=" "){return this.#D(e,t,!0)}#p(e,t){let i=0;for(let s of(0,qa.stripVTControlCharacters)(e).split(`
|
|
36
|
+
`))i+=Math.max(1,Math.ceil(Ai(s)/t));return i}get color(){return this.#l}set color(e){if(e!==void 0&&e!==!1&&!Hp.has(e))throw new Error("The `color` option must be a valid color or `false` to disable");this.#l=e}get isEnabled(){return this.#t.isEnabled&&!this.#t.isSilent}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#t.isEnabled=e}get isSilent(){return this.#t.isSilent}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#t.isSilent=e}frame(){let e=Date.now();(this.#s===-1||e-this.#r>=this.interval)&&(this.#s=(this.#s+1)%this.#e.frames.length,this.#r=e);let{frames:t}=this.#e,i=t[this.#s];this.#l&&(i=zu[this.#l](i));let s=this.#f(this.#t.prefixText," "),n=typeof this.text=="string"?" "+this.text:"",o=this.#E(this.#t.suffixText," ");return s+i+n+o}clear(){return!this.isEnabled||!this.#i.isTTY?this:(this.#d(()=>{this.#i.cursorTo(0);for(let e=0;e<this.#u;e++)e>0&&this.#i.moveCursor(0,-1),this.#i.clearLine(1);this.#t.indent&&this.#i.cursorTo(this.#t.indent)}),this.#u=0,this)}#T(e){if(!e||this.#c.has(e)||!e.isTTY||typeof e.write!="function")return;Yt.has(e)&&console.warn("[ora] Multiple concurrent spinners detected. This may cause visual corruption. Use one spinner at a time.");let t=e.write;this.#c.set(e,t),Yt.set(e,this),e.write=(i,s,n)=>this.#C(e,t,i,s,n)}#S(){if(!this.isEnabled||this.#c.size>0)return;let e=new Set([this.#i,Ie.default.stdout,Ie.default.stderr]);for(let t of e)this.#T(t)}#F(){for(let[e,t]of this.#c)e.write=t,Yt.get(e)===this&&Yt.delete(e);this.#c.clear()}#C(e,t,i,s,n){if(typeof s=="function"&&(n=s,s=void 0),this.#h)return t.call(e,i,s,n);this.clear();let o=this.#O(i,s),a=this.#y(o),u=t.call(e,i,s,n);return a?this.#w():o.length>0&&this.#R(),this.isSpinning&&!this.#o&&this.render(),u}render(){if(!this.isEnabled||this.#a||this.#o)return this;let e=this.#i.isTTY,t=!1;try{e&&(this.#d(()=>this.#i.write(kp)),t=!0),this.clear();let i=this.frame(),s=this.#i.columns??80,n=this.#p(i,s),o=this.#i.rows;if(o&&o>1&&n>o){let u=i.split(`
|
|
37
|
+
`),l=o-1;i=[...u.slice(0,l),"... (content truncated to fit terminal)"].join(`
|
|
38
|
+
`)}this.#d(()=>this.#i.write(i))===!1&&this.#i.isTTY&&(this.#a=()=>{this.#a=void 0,this.#g()},this.#i.once("drain",this.#a)),this.#u=this.#p(i,s)}finally{t&&this.#d(()=>this.#i.write(Mp))}return this}start(e){if(e!==void 0&&(this.text=e),this.isSilent)return this;if(!this.isEnabled){let t=this.text?"-":"",i=" ".repeat(this.#t.indent)+this.#_(t,this.text,this.#t.prefixText,this.#t.suffixText);return i.trim()!==""&&this.#d(()=>this.#i.write(i+`
|
|
39
|
+
`)),this}return this.isSpinning?this:(this.#t.hideCursor&&gi.hide(this.#i),this.#t.discardStdin&&Ie.default.stdin.isTTY&&(Ti.start(),this.#m=!0),this.#S(),this.render(),this.#n=setInterval(this.render.bind(this),this.interval),this)}stop(){return clearInterval(this.#n),this.#n=void 0,this.#s=-1,this.#r=0,this.#w(),this.#F(),this.#a&&(this.#i.removeListener("drain",this.#a),this.#a=void 0),this.isEnabled&&(this.clear(),this.#t.hideCursor&&gi.show(this.#i)),this.#m&&(this.#m=!1,Ti.stop()),this}succeed(e){return this.stopAndPersist({symbol:De.success,text:e})}fail(e){return this.stopAndPersist({symbol:De.error,text:e})}warn(e){return this.stopAndPersist({symbol:De.warning,text:e})}info(e){return this.stopAndPersist({symbol:De.info,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;let t=e.symbol??" ",i=e.text??this.text,s=e.prefixText??this.#t.prefixText,n=e.suffixText??this.#t.suffixText,o=this.#_(t,i,s,n)+`
|
|
40
|
+
`;return this.stop(),this.#d(()=>this.#i.write(o)),this}}});var zi=v(Ui(),1),{program:bm,createCommand:xm,createArgument:ym,createOption:wm,CommanderError:_m,InvalidArgumentError:Fm,InvalidOptionArgumentError:Am,Command:Yi,Argument:Om,Option:Rm,Help:Tm}=zi.default;var Ee=require("node:fs/promises"),Ne=v(require("node:path"),1),dr=v(require("node:os"),1);async function Pe({configPath:r=Ji()}={}){try{return JSON.parse(await(0,Ee.readFile)(r,"utf8"))}catch(e){if(e.code==="ENOENT")return{};throw e}}async function Xi(r,{configPath:e=Ji()}={}){await(0,Ee.mkdir)(Ne.default.dirname(e),{recursive:!0}),await(0,Ee.writeFile)(e,`${JSON.stringify(r,null,2)}
|
|
41
|
+
`,{encoding:"utf8",mode:384})}function Ji(r=process.env,e=process.platform){if(r.ENGAGELAB_EMAIL_CONFIG)return r.ENGAGELAB_EMAIL_CONFIG;let t=r.XDG_CONFIG_HOME||(e==="win32"?r.APPDATA||Ne.default.join(dr.default.homedir(),"AppData","Roaming"):Ne.default.join(dr.default.homedir(),".config"));return Ne.default.join(t,"engagelab-email-cli","config.json")}function Ki(r){return r?`${r.slice(0,7)}****`:""}var k=class extends Error{constructor(e,{code:t="cli_error",exitCode:i=1,status:s,data:n,cause:o}={}){super(e,{cause:o}),this.name="CliError",this.code=t,this.exitCode=i,this.status=s,this.data=n}};function pr(r){return r===401||r===403?2:r===404?3:r===409?4:5}function Zi(r){return r instanceof k?r:new k(r?.message||"Command failed",{code:"unknown_error",exitCode:5,cause:r})}function B(r){return new k(r,{code:"validation_error",exitCode:1})}function ct(r){return new k(r,{code:"config_error",exitCode:1})}function Qi(r){let e=r.command("config").description("Manage local EngageLab Email CLI config");e.command("set").description("Save local CLI configuration").option("--base-url <url>","EngageLab Email API base URL").option("--secret-key <key>","EngageLab Email Secret Key").action(async(t,i)=>{if(t={...i.optsWithGlobals(),...t},!t.baseUrl&&!t.secretKey)throw B("Provide at least one of --base-url or --secret-key");if(t.secretKey&&!t.secretKey.startsWith("sk_"))throw B("Secret Key must start with sk_");let s=await Pe();await Xi({...s,...xl(t)}),process.stdout.write(`Config saved
|
|
42
|
+
`)}),e.command("list").description("Show local CLI configuration").action(async()=>{let t=await Pe();process.stdout.write(`baseUrl: ${t.baseUrl||""}
|
|
43
|
+
`),process.stdout.write(`secretKey: ${Ki(t.secretKey)}
|
|
44
|
+
`)})}function xl(r){return Object.fromEntries(Object.entries(r).filter(([,e])=>e!==void 0))}var ts=require("node:fs/promises"),ht=require("node:path");var rs=[["text","textFile"],["html","htmlFile"]];async function mr(r={},{readFile:e=ts.readFile}={}){yl(r);let t={};for(let[i,s]of Object.entries(r))i.endsWith("File")||i==="attachment"||s===void 0||(t[i]=s);for(let[i,s]of rs)r[s]&&(t[i]=await e(r[s],"utf8"));return r.attachment&&(t.attachments=await wl(r.attachment,{readFile:e})),t}function yl(r){for(let[e,t]of rs)if(r[e]&&r[t])throw B(`--${es(e)} and --${es(t)} are mutually exclusive`)}async function wl(r,{readFile:e}){let t=Array.isArray(r)?r:[r];return Promise.all(t.map(async i=>{let s=await e(i),n=(0,ht.basename)(i),o=_l(n);return{filename:n,contentType:o,type:o,content:Buffer.from(s).toString("base64")}}))}function _l(r){switch((0,ht.extname)(r).toLowerCase()){case".txt":return"text/plain";case".html":case".htm":return"text/html";case".json":return"application/json";case".pdf":return"application/pdf";case".csv":return"text/csv";case".png":return"image/png";case".jpg":case".jpeg":return"image/jpeg";case".gif":return"image/gif";case".svg":return"image/svg+xml";case".zip":return"application/zip";default:return"application/octet-stream"}}function es(r){return r.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var ae=v(qe(),1);function V(r){let e=Number.parseInt(r,10);if(!Number.isInteger(e)||e<=0)throw B("Expected a positive integer");return e}function je(r){let e=Number.parseInt(r,10);if(!Number.isInteger(e)||e<0)throw B("Expected a non-negative integer");return e}function Z(r,e=[]){return[...e,r]}function ns(r){return Object.fromEntries(Object.entries(r).filter(([,e])=>e!=null&&e!==""))}function Ce(r,e){if(r==null||r==="")throw B(e);return r}var hn=v(qe(),1);var an=v(un(),1),Or=v(qe(),1);function Rr(r,e){if(!r||r.length===0)return Or.default.dim("No results");let t=new an.default({head:e.map(i=>Or.default.bold(i.header)),style:{border:[],head:[]},chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"}});return t.push(...r.map(i=>e.map(s=>hc(s.value(i))))),t.toString()}function hc(r){return Array.isArray(r)?r.join(", "):r==null?"":String(r)}function ln(r){return{0:"received",1:"parsing",2:"parsed",3:"parse_failed",4:"replied"}[r]??r}function cn(r){return{0:"pending",1:"processing",2:"done",3:"failed"}[r]??r}function fn(r){return Rr(r.data?.list||[],[{header:"Thread ID",value:e=>e.threadId},{header:"Subject",value:e=>e.subject},{header:"Participants",value:e=>e.participants},{header:"Last Message",value:e=>e.lastMessageAt},{header:"Count",value:e=>e.messageCount},{header:"Status",value:e=>e.status}])}function Et(r){return Rr(r.data?.list||r.data||[],[{header:"Message UID",value:e=>e.messageUid},{header:"Thread ID",value:e=>e.threadId},{header:"From",value:e=>e.fromEmail||e.envelopeFrom},{header:"Subject",value:e=>e.subject},{header:"Status",value:e=>ln(e.status)},{header:"Agent",value:e=>cn(e.agentConsumeStatus)},{header:"Received",value:e=>e.receivedAt}])}function Ct(r){return JSON.stringify(r.data??r,null,2)}function Tr(r){let e=r.data||{};return[`${hn.default.green("\u2713")} Sent`,e.messageUid?`messageUid: ${e.messageUid}`:null,e.requestId?`requestId: ${e.requestId}`:null,e.emailIds?`emailIds: ${e.emailIds.join(", ")}`:null].filter(Boolean).join(`
|
|
45
|
+
`)}function fc(r,{httpStatus:e}={}){if(!r||typeof r!="object"||typeof r.code!="number")throw new k("Invalid server response format",{code:"invalid_response",exitCode:5,status:e,data:r});if(r.code!==200)throw new k(r.message||"Request failed",{code:dn(r.code),exitCode:pr(r.code),status:r.code,data:r});return r}async function X(r){let e;try{e=await r.json()}catch(t){throw new k("Invalid server response format",{code:"invalid_response",exitCode:5,status:r.status,cause:t})}if(r.status<200||r.status>=300)throw new k(e?.message||`Request failed with status code ${r.status}`,{code:dn(r.status),exitCode:pr(r.status),status:r.status,data:e});return fc(e,{httpStatus:r.status})}function dn(r){return r===401||r===403?"auth_error":r===404?"not_found":r===409?"state_conflict":r===400?"validation_error":"server_error"}var ee=class extends Error{name="KyError";get isKyError(){return!0}};var ye=class extends ee{name="HTTPError";response;request;options;data;constructor(e,t,i){let s=e.status||e.status===0?e.status:"",n=e.statusText??"",o=`${s} ${n}`.trim(),a=o?`status code ${o}`:"an unknown error";super(`Request failed with ${a}: ${t.method} ${t.url}`),this.response=e,this.request=t,this.options=i}};var we=class extends ee{name="NetworkError";request;constructor(e,t){super(`Request failed due to a network error: ${e.method} ${e.url}`,t),this.request=e}};var _e=class extends Error{name="NonError";value;constructor(e){let t="Non-error value was thrown";try{typeof e=="string"?t=e:e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"&&(t=e.message)}catch{}super(t),this.value=e}};var fe=class extends ee{name="ForceRetryError";customDelay;code;customRequest;constructor(e){let t=e?.cause?e.cause instanceof Error?e.cause:new _e(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:"Forced retry",t?{cause:t}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}};var bt=class extends Error{name="SchemaValidationError";issues;constructor(e){super("Response schema validation failed"),this.issues=e}};var G=class extends ee{name="TimeoutError";request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.request=e}};var Sr=(()=>{let r=!1,e=!1,t=typeof globalThis.ReadableStream=="function",i=typeof globalThis.Request=="function";if(t&&i)try{e=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type")}catch(s){if(s instanceof Error&&s.message==="unsupported BodyInit type")return!1;throw s}return r&&!e})(),pn=typeof globalThis.AbortController=="function",xt=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",mn=typeof globalThis.ReadableStream=="function",Dn=typeof globalThis.FormData=="function",yt=["get","post","put","patch","head","delete"],dc=()=>{};dc();var gn={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Fe=2147483647,En=40,wt=Symbol("stop"),Ge=class{options;constructor(e){this.options=e}},Cn=r=>new Ge(r),bn={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},xn={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0};var _t=new TextEncoder,pc=r=>{if(!r)return 0;if(r instanceof FormData){let e=0;for(let[t,i]of r)e+=En,e+=_t.encode(`Content-Disposition: form-data; name="${t}"`).byteLength,e+=typeof i=="string"?_t.encode(i).byteLength:i.size;return e}return r instanceof Blob?r.size:r instanceof ArrayBuffer||ArrayBuffer.isView(r)?r.byteLength:typeof r=="string"?_t.encode(r).byteLength:r instanceof URLSearchParams?_t.encode(r.toString()).byteLength:0},yn=(r,e,t)=>{let i,s=0;return r.pipeThrough(new TransformStream({transform(n,o){if(o.enqueue(n),i){s+=i.byteLength;let a=e===0?0:s/e;a>=1&&(a=1-Number.EPSILON),t?.({percent:a,totalBytes:Math.max(e,s),transferredBytes:s},i)}i=n},flush(){i&&(s+=i.byteLength,t?.({percent:1,totalBytes:Math.max(e,s),transferredBytes:s},i))}}))},wn=(r,e)=>{if(!r.body)return r;let t={status:r.status,statusText:r.statusText,headers:r.headers};if(r.status===204)return new Response(null,t);let i=Math.max(0,Number(r.headers.get("content-length"))||0);return new Response(yn(r.body,i,e),t)},_n=(r,e,t)=>{if(!r.body)return r;let i=pc(t??r.body);return new Request(r,{duplex:"half",body:yn(r.body,i,e)})};var te=r=>r!==null&&typeof r=="object";var mc=Symbol("replaceOption"),vr=r=>te(r)&&r[mc]===!0?{isReplace:!0,value:r.value}:{isReplace:!1,value:r};var Ue=(...r)=>{for(let e of r)if((!te(e)||Array.isArray(e))&&e!==void 0)throw new TypeError("The `options` argument must be an object");return Br({},...r)},$r=(r={},e={})=>{let t=new globalThis.Headers(r),i=e instanceof globalThis.Headers,s=new globalThis.Headers(e);for(let[n,o]of s.entries())i&&o==="undefined"||o===void 0?t.delete(n):t.set(n,o);return t},Ir=r=>{if(!te(r)||Array.isArray(r))return!1;let e=Object.getPrototypeOf(r);return e===Object.prototype||e===null},Ae=r=>{if(r instanceof URLSearchParams){let e=new URLSearchParams(r),t=r[le];return t&&(e[le]=new Set(t)),e}return r instanceof globalThis.Headers?new globalThis.Headers(r):Array.isArray(r)?[...r]:Ir(r)?{...r}:r},Dc=r=>Object.fromEntries(Object.entries(r).filter(e=>e[1]!==void 0)),gc=(r,e)=>Ir(r)&&Ir(e)?Dc({...r,...e}):$r(r,e);function We(r,e,t){return Object.hasOwn(e,t)&&e[t]===void 0?[]:Br(r[t]??[],e[t]??[])}var Ft=(r={},e={})=>({init:We(r,e,"init"),beforeRequest:We(r,e,"beforeRequest"),beforeRetry:We(r,e,"beforeRetry"),beforeError:We(r,e,"beforeError"),afterResponse:We(r,e,"afterResponse")}),le=Symbol("deletedParameters"),Ec=(r,e)=>{let t=new URLSearchParams,i=new Set;for(let s of[r,e])if(s!==void 0)if(s instanceof URLSearchParams){for(let[o,a]of s.entries())t.append(o,a),i.delete(o);let n=s[le];if(n)for(let o of n)t.delete(o),i.add(o)}else if(Array.isArray(s))for(let n of s){if(!Array.isArray(n)||n.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");t.append(String(n[0]),String(n[1])),i.delete(String(n[0]))}else if(te(s))for(let[n,o]of Object.entries(s))o===void 0?(t.delete(n),i.add(n)):(t.append(n,String(o)),i.delete(n));else{let n=new URLSearchParams(s);for(let[o,a]of n.entries())t.append(o,a),i.delete(o)}return i.size>0&&(t[le]=i),t},Br=(...r)=>{let e={},t={},i={},s,n=[];for(let o of r)if(Array.isArray(o))Array.isArray(e)||(e=[]),e=[...e,...o];else if(te(o)){for(let[a,u]of Object.entries(o)){if(a==="signal"&&u instanceof globalThis.AbortSignal){n.push(u);continue}let l=vr(u),{isReplace:c}=l;if(u=l.value,a==="context"){if(u!=null&&(!te(u)||Array.isArray(u)))throw new TypeError("The `context` option must be an object");e={...e,context:u==null?{}:c?{...u}:{...e.context,...u}};continue}if(a==="searchParams"){u==null?s=void 0:c?s=u:s=s===void 0?u:Ec(s,u);continue}te(u)&&!c&&a in e&&(u=Br(e[a],u)),e={...e,[a]:u}}if(te(o.hooks)){let{value:a,isReplace:u}=vr(o.hooks);i=Ft(u?{}:i,a),e.hooks=i}if(te(o.headers)){let{value:a,isReplace:u}=vr(o.headers);t=u?Ae(a):gc(t,a),e.headers=t}}return s!==void 0&&(e.searchParams=s),n.length>0&&(n.length===1?e.signal=n[0]:xt?e.signal=AbortSignal.any(n):e.signal=n.at(-1)),e};var An=r=>yt.includes(r)?r.toUpperCase():r,Cc=["get","put","head","delete","options","trace"],bc=[408,413,429,500,502,503,504],xc=[413,429,503],Fn={limit:2,methods:Cc,statusCodes:bc,afterStatusCodes:xc,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:r=>.3*2**(r-1)*1e3,jitter:void 0,retryOnTimeout:!1},On=(r={})=>{if(typeof r=="number")return{...Fn,limit:r};if(r.methods&&!Array.isArray(r.methods))throw new Error("retry.methods must be an array");if(r.statusCodes&&!Array.isArray(r.statusCodes))throw new Error("retry.statusCodes must be an array");let e=Object.fromEntries(Object.entries({...r,methods:r.methods?.map(t=>t.toLowerCase())}).filter(([,t])=>t!==void 0));return{...Fn,...e}};async function Lr(r,e,t,i){return new Promise((s,n)=>{let o=setTimeout(()=>{t&&t.abort(),n(new G(r))},i.timeout);i.fetch(r,e).then(s).catch(n).then(()=>{clearTimeout(o)})})}async function At(r,{signal:e}){return new Promise((t,i)=>{e&&(e.throwIfAborted(),e.addEventListener("abort",s,{once:!0}));function s(){clearTimeout(n),i(e.reason)}let n=setTimeout(()=>{e?.removeEventListener("abort",s),t()},r)})}var Rn=r=>{let e={};for(let t in r)Object.hasOwn(r,t)&&!(t in xn)&&!(t in bn)&&(e[t]=r[t]);return e},Tn=r=>r===void 0?!1:Array.isArray(r)?r.length>0:r instanceof URLSearchParams?r.size>0||!!r[le]?.size:typeof r=="object"?Object.keys(r).length>0:typeof r=="string"?r.trim().length>0:!!r;var yc=Object.prototype.toString,wc=r=>yc.call(r)==="[object Error]",_c=new Set(["network error","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function Nr(r){if(!(r&&wc(r)&&r.name==="TypeError"&&typeof r.message=="string"))return!1;let{message:t,stack:i}=r;return t==="Load failed"?i===void 0||"__sentry_captured__"in r:t.startsWith("error sending request for url")||t==="Failed to fetch"||t.startsWith("Failed to fetch (")&&t.endsWith(")")?!0:_c.has(t)}var Pr=(r,e)=>r instanceof e||r?.name===e.name;function Sn(r){return Pr(r,ye)}function vn(r){return Pr(r,we)}function In(r){return Pr(r,G)}var Fc=10*1024*1024,Ac="The `prefixUrl` option has been renamed `prefix` in v2 and enhanced to allow slashes in input. See also the new `baseUrl` option for improved flexibility with standard URL resolution: https://github.com/sindresorhus/ky#baseurl",ze=Symbol("timedOutResponseData"),Oc=r=>{let e=/;\s*charset\s*=\s*(?:"([^"]+)"|([^;,\s]+))/i.exec(r),t=e?.[1]??e?.[2];if(t)try{return new TextDecoder(t)}catch{}return new TextDecoder},$n="The `schema` argument must follow the Standard Schema specification",Rc=r=>typeof r!="object"?r:{...r,...r.methods&&{methods:[...r.methods]},...r.statusCodes&&{statusCodes:[...r.statusCodes]},...r.afterStatusCodes&&{afterStatusCodes:[...r.afterStatusCodes]}},Nn=Object.prototype.toString,Bn=r=>r instanceof globalThis.Request||Nn.call(r)==="[object Request]",Ye=r=>r instanceof globalThis.Response||Nn.call(r)==="[object Response]",Tc=r=>Array.isArray(r)?r.map(e=>[...e]):Ae(r);function Sc(r){let e={...r,json:Ae(r.json),context:Ae(r.context),headers:Ae(r.headers),searchParams:Tc(r.searchParams)};return r.retry!==void 0&&(e.retry=Rc(r.retry)),e}var Ln=async(r,e)=>{if(typeof e!="object"&&typeof e!="function"||e===null)throw new TypeError($n);let t=e["~standard"];if(typeof t!="object"||t===null||typeof t.validate!="function")throw new TypeError($n);let i=await t.validate(r);if(i.issues)throw new bt(i.issues);return i.value},Xe=class r{static create(e,t){let i=t.hooks?.init??[],s=i.length>0?Sc(t):t;for(let u of i)u(s);let n=new r(e,s),o=async()=>{if(typeof n.#e.timeout=="number"&&n.#e.timeout>Fe)throw new RangeError(`The \`timeout\` option cannot be greater than ${Fe}`);if(typeof n.#e.totalTimeout=="number"&&n.#e.totalTimeout>Fe)throw new RangeError(`The \`totalTimeout\` option cannot be greater than ${Fe}`);await Promise.resolve();let u=await n.#T(),l=u??await n.#F(async()=>n.#I()),c=u!==void 0||n.#v();for(;;){if(l===void 0)return l;if(Ye(l))try{l=await n.#S(l)}catch(p){if(!(p instanceof fe))throw p;let f=await n.#C(p,async()=>n.#I());if(f===void 0)return f;l=f,c=n.#v();continue}let h=l;if(!h.ok&&h.type!=="opaque"&&(typeof n.#e.throwHttpErrors=="function"?n.#e.throwHttpErrors(h.status):n.#e.throwHttpErrors)){let p=new ye(h,n.#x(h),n.#b()),f=p;if(p.data=await n.#O(h),c)throw f;let d=await n.#C(p,async()=>n.#I());if(d===void 0)return d;l=d,c=n.#v();continue}break}if(!Ye(l))return l;if(n.#g(l),n.#e.onDownloadProgress){if(typeof n.#e.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!mn)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");let h=l.clone();return n.#f(l),wn(h,n.#e.onDownloadProgress)}return l},a=(async()=>{try{return await o()}catch(u){if(!(u instanceof Error)||n.#c.has(u))throw u;let l=u;for(let c of n.#e.hooks.beforeError){let h=await c({request:n.request,options:n.#b(),error:l,retryCount:n.#r});h instanceof Error&&(l=h)}throw l}finally{let u=n.#i;n.#D(u?.body??void 0),n.request!==u&&n.#D(n.request.body??void 0)}})();for(let[u,l]of Object.entries(gn))u==="bytes"&&typeof globalThis.Response?.prototype?.bytes!="function"||(a[u]=async c=>{n.request.headers.set("accept",n.request.headers.get("accept")||l);let h=await a;if(u!=="json")return h[u]();let p=await h.text();if(p==="")return c!==void 0?Ln(void 0,c):JSON.parse(p);let f=s.parseJson?await s.parseJson(p,{request:n.#x(h),response:h}):JSON.parse(p);return c===void 0?f:Ln(f,c)});return a}static#u(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof URLSearchParams)?Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)):e}request;#s;#r=0;#t;#e;#i;#n;#c=new WeakSet;#h;#a;#o=!1;#m=new WeakMap;constructor(e,t={}){if(this.#t=e,Object.hasOwn(t,"prefixUrl"))throw new Error(Ac);if(this.#e={...t,headers:$r(this.#t.headers,t.headers),hooks:Ft({},t.hooks),method:An(t.method??this.#t.method??"GET"),prefix:String(t.prefix||""),retry:On(t.retry),throwHttpErrors:t.throwHttpErrors??!0,timeout:t.timeout??1e4,totalTimeout:t.totalTimeout??!1,fetch:t.fetch??globalThis.fetch.bind(globalThis),context:t.context??{}},typeof this.#t!="string"&&!(this.#t instanceof URL||this.#t instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(typeof this.#t=="string"){if(this.#e.prefix){let s=this.#e.prefix.replace(/\/+$/,""),n=this.#t.replace(/^\/+/,"");this.#t=`${s}/${n}`}if(this.#e.baseUrl){let s;try{s=new URL(this.#t)}catch{}s||(this.#t=new URL(this.#t,new Request(this.#e.baseUrl).url))}}pn&&xt&&(this.#n=this.#e.signal??this.#t.signal,this.#s=new globalThis.AbortController,this.#e.signal=this.#E()),Sr&&(this.#e.duplex="half"),this.#e.json!==void 0&&(this.#e.body=this.#e.stringifyJson?.(this.#e.json)??JSON.stringify(this.#e.json),this.#e.headers.set("content-type",this.#e.headers.get("content-type")??"application/json"));let i=t.headers&&new globalThis.Headers(t.headers).has("content-type");if(this.#t instanceof globalThis.Request&&(Dn&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!i&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#t,this.#e),Tn(this.#e.searchParams)){let s=new URL(this.request.url),n=this.#e.searchParams?.[le];if(n)for(let o of n)s.searchParams.delete(o);if(typeof this.#e.searchParams=="string"){let o=this.#e.searchParams.replace(/^\?/,"");o!==""&&(s.search=s.search?`${s.search}&${o}`:`?${o}`)}else{let o=new URLSearchParams(r.#u(this.#e.searchParams));for(let[a,u]of o.entries())s.searchParams.append(a,u)}if(this.#e.searchParams&&typeof this.#e.searchParams=="object"&&!Array.isArray(this.#e.searchParams)&&!(this.#e.searchParams instanceof URLSearchParams))for(let[o,a]of Object.entries(this.#e.searchParams))a===void 0&&s.searchParams.delete(o);this.request=new globalThis.Request(s,this.#e)}if(this.#e.onUploadProgress&&typeof this.#e.onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");this.#a=typeof this.#e.totalTimeout=="number"?this.#L():void 0}#l(){let e=this.#e.retry.delay(this.#r+1),t=e;return this.#e.retry.jitter===!0?t=Math.random()*e:typeof this.#e.retry.jitter=="function"&&(t=this.#e.retry.jitter(e),(!Number.isFinite(t)||t<0)&&(t=e)),Math.min(this.#e.retry.backoffLimit,t)}async#d(e){if(this.#r>=this.#e.retry.limit)throw e;let t=e instanceof Error?e:new _e(e);if(t instanceof fe)return t.customDelay??this.#l();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(this.#e.retry.shouldRetry!==void 0){let i=await this.#e.retry.shouldRetry({error:t,retryCount:this.#r+1});if(i===!1)throw e;if(i===!0)return this.#l()}if(In(e)){if(!this.#e.retry.retryOnTimeout)throw e;return this.#l()}if(Sn(e)){if(!this.#e.retry.statusCodes.includes(e.response.status))throw e;let i=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Retry-After")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(i&&this.#e.retry.afterStatusCodes.includes(e.response.status)){let s=Number(i)*1e3;return Number.isNaN(s)?s=Date.parse(i)-Date.now():s>=Date.parse("2024-01-01")&&(s-=Date.now()),Number.isFinite(s)?(s=Math.max(0,s),Math.min(this.#e.retry.maxRetryAfter,s)):Math.min(this.#e.retry.maxRetryAfter,this.#l())}if(e.response.status===413)throw e;return this.#l()}if(!vn(e))throw e;return this.#l()}#g(e){let t=this.#x(e);return this.#e.parseJson&&(e.json=async()=>{let i=await e.text();return i===""?JSON.parse(i):this.#e.parseJson(i,{request:t,response:e})}),e}async#O(e){let t=await this.#w(e,this.#y());if(t===ze){this.#p();return}if(!t)return;if(!this.#R(e.headers.get("content-type")??""))return t;let i=await this.#_(t,e,this.#y(),this.#x(e));if(i===ze){this.#p();return}return i}#y(){let e=this.#e.timeout===!1?1e4:this.#e.timeout,t=this.#A();if(t===void 0)return e;if(t<=0)throw new G(this.request);return Math.min(e,t)}#R(e){let t=(e.split(";",1)[0]??"").trim().toLowerCase();return/\/(?:.*[.+-])?json$/.test(t)}async#w(e,t){let{body:i}=e;if(!i)try{return await e.text()}catch{return}let s;try{s=i.getReader()}catch{return}let n=Oc(e.headers.get("content-type")??""),o=[],a=0,u=(async()=>{try{for(;;){let{done:h,value:p}=await s.read();if(h)break;if(a+=p.byteLength,a>Fc){s.cancel().catch(()=>{});return}o.push(n.decode(p,{stream:!0}))}}catch{return}return o.push(n.decode()),o.join("")})(),l=new Promise(h=>{let p=setTimeout(()=>{h(ze)},t);u.finally(()=>{clearTimeout(p)})}),c=await Promise.race([u,l]);return c===ze&&s.cancel().catch(()=>{}),c}async#_(e,t,i,s){let n;try{return await Promise.race([Promise.resolve().then(()=>this.#e.parseJson?this.#e.parseJson(e,{request:s,response:t}):JSON.parse(e)),new Promise(o=>{n=setTimeout(()=>{o(ze)},i)})])}catch{return}finally{clearTimeout(n)}}#D(e){e&&e.cancel().catch(()=>{})}#f(e){this.#D(e.body??void 0)}#E(){return this.#n?AbortSignal.any([this.#n,this.#s.signal]):this.#s.signal}#p(){let e=this.#A();if(e!==void 0&&e<=0)throw new G(this.request)}async#T(){for(let e of this.#e.hooks.beforeRequest){let t=await e({request:this.request,options:this.#b(),retryCount:0});if(Bn(t))this.#$(t);else if(Ye(t))return t}}async#S(e){let t=this.#x(e);for(let i of this.#e.hooks.afterResponse){let s=this.#B(e.clone(),t);this.#g(s);let n;try{n=await i({request:this.request,options:this.#b(),response:s,retryCount:this.#r})}catch(a){throw s!==e&&this.#f(s),this.#f(e),a}if(n instanceof Ge)throw s!==e&&this.#f(s),this.#f(e),new fe(n.options);let o=Ye(n)?this.#B(n,t):e;s!==e&&s!==o&&s.body!==o.body&&this.#f(s),e!==o&&e.body!==o.body&&this.#f(e),e=o}return e}async#F(e){try{return await e()}catch(t){return this.#C(t,e)}}async#C(e,t){this.#o=!1;let i=Math.min(await this.#d(e),Fe),s={signal:this.#n},n=this.#A();if(n!==void 0){if(n<=0)throw new G(this.request);if(i>=n)throw await At(n,s),new G(this.request)}if(await At(i,s),this.#p(),e instanceof fe&&e.customRequest){let o=new globalThis.Request(e.customRequest,this.#e.signal?{signal:this.#e.signal}:void 0);this.#$(o)}for(let o of this.#e.hooks.beforeRetry){let a;try{a=await o({request:this.request,options:this.#b(),error:e,retryCount:this.#r+1})}catch(u){throw u instanceof Error&&u!==e&&this.#c.add(u),u}if(Bn(a)){this.#$(a);break}if(Ye(a))return this.#o=!0,this.#r++,a;if(a===wt)return}return this.#p(),this.#r++,this.#F(t)}#v(){let e=this.#o;return this.#o=!1,e}async#I(){this.#s?.signal.aborted&&(this.#s=new globalThis.AbortController,this.#e.signal=this.#E(),this.request=new globalThis.Request(this.request,{signal:this.#e.signal}));let e=Rn(this.#e),t=this.#e.retry.limit>0?this.request.clone():void 0,i=this.#N(this.request,this.#e.body??void 0);this.#i=i,t&&(this.request=t);try{let s=this.#A();if(s!==void 0&&s<=0)throw new G(this.request);let n=this.#e.timeout===!1?s:s===void 0?this.#e.timeout:Math.min(this.#e.timeout,s),o=n===void 0?await this.#e.fetch(i,e):await Lr(i,e,this.#s,{timeout:n,fetch:this.#e.fetch});return this.#B(o,i)}catch(s){throw Nr(s)?new we(this.request,{cause:s}):s}}#A(){if(this.#a===void 0)return;let e=this.#L()-this.#a;return Math.max(0,this.#e.totalTimeout-e)}#L(){return globalThis.performance?.now()??Date.now()}#b(){if(!this.#h){let{hooks:e,json:t,parseJson:i,stringifyJson:s,searchParams:n,timeout:o,totalTimeout:a,throwHttpErrors:u,fetch:l,...c}=this.#e;this.#h=Object.freeze(c)}return this.#h}#$(e){this.#h=void 0,this.request=e}#x(e){return this.#m.get(e)??this.request}#B(e,t){return this.#m.set(e,t),e}#N(e,t){return!this.#e.onUploadProgress||!e.body||!Sr?e:_n(e,this.#e.onUploadProgress,t??this.#e.body??void 0)}};var qr=r=>{let e=(t,i)=>Xe.create(t,Ue(r,i));for(let t of yt)e[t]=(i,s)=>Xe.create(i,Ue(r,s,{method:t}));return e.create=t=>qr(Ue(t)),e.extend=t=>(typeof t=="function"&&(t=t(r??{})),qr(Ue(r,t))),e.stop=wt,e.retry=Cn,e},vc=qr(),Pn=vc;var Xt=v(Tu(),1),Ma=v(qe(),1);async function Su({cliOptions:r={},env:e=process.env,readConfig:t=Pe,requireSecretKey:i=!0}={}){let s=await t(),n=r.baseUrl||e.ENGAGELAB_EMAIL_BASE_URL||s.baseUrl,o=r.secretKey||e.ENGAGELAB_EMAIL_SECRET_KEY||s.secretKey;if(!n)throw ct("Missing base URL. Set --base-url, ENGAGELAB_EMAIL_BASE_URL, or config set.");if(i&&!o)throw ct("Missing Secret Key. Set --secret-key, ENGAGELAB_EMAIL_SECRET_KEY, or config set.");if(i&&!o.startsWith("sk_"))throw ct("Secret Key must start with sk_");return{baseUrl:n,secretKey:o}}var vu=require("node:fs"),Iu=require("node:path"),kd="1.2.0",de=kd??Md();function Md(){try{return JSON.parse((0,vu.readFileSync)((0,Iu.join)(process.cwd(),"package.json"),"utf8")).version||"0.0.0"}catch{return"0.0.0"}}var Gp="/api/email/agent/v1",Ii="engagelab-email-cli",Wp="https://registry.npmjs.org",Up=1500;async function ie(r){await zp(r.opts().json);let e=await Su({cliOptions:r.optsWithGlobals()});return Pn.extend({prefix:Ha(e.baseUrl),headers:{Authorization:`Bearer ${e.secretKey}`},timeout:3e4,throwHttpErrors:!1})}function K(r){return`${Gp}${r}`}async function oe(r,e,t){if(r.opts().json)return t();if(!process.stderr.isTTY)return process.stderr.write(`${e}...
|
|
46
|
+
`),t();let{default:i}=await Promise.resolve().then(()=>(ka(),ja)),s=i({text:e,stream:process.stderr}).start();try{let n=await t();return s.succeed(e),n}catch(n){throw s.fail(e),n}}function ue(r,e,t){r.opts().json&&r.parent?.parent?.stdout?.write?.("");let i=r.programOutput?.stdout||process.stdout;if(r.opts().json){i.write(`${JSON.stringify(e,null,2)}
|
|
35
47
|
`);return}i.write(`${t(e)}
|
|
36
|
-
`)}function
|
|
48
|
+
`)}function ut(r,e){let t={};for(let[i,s=i]of Object.entries(e))t[s]=r[i];return ns(t)}function $i(r,e){let t={};for(let i of e)r[i]!==void 0&&(t[i]=r[i]);return t}async function zp(r){if(process.env.ENGAGELAB_EMAIL_CLI_DISABLE_UPDATE_CHECK)return;let e;try{let i=Ha(process.env.ENGAGELAB_EMAIL_CLI_UPDATE_REGISTRY_URL||Wp),s=await fetch(`${i}/${Ii}/latest`,{signal:AbortSignal.timeout(Up),headers:{accept:"application/json"}});if(!s.ok)return;e=(await s.json()).version}catch{return}if(!e||!Xt.default.valid(e)||!Xt.default.valid(de)||!Xt.default.gt(e,de))return;let t=[`A newer version of ${Ii} is required: ${de} -> ${e}`,`Please run: ${Ma.default.bold(`npm install -g ${Ii}@latest`)}`].join(`
|
|
49
|
+
`);throw new k(t,{code:"update_required",exitCode:1,data:{currentVersion:de,latestVersion:e}})}function Ha(r){return r.endsWith("/")?r.slice(0,-1):r}var ge=class{constructor(e){this.client=e}listMessages(e={}){return this.client.get(K("/message/list"),{searchParams:e}).then(X)}getMessage(e){return this.client.get(K("/message/get"),{searchParams:{messageUid:e}}).then(X)}listenMessages(e={}){return this.client.get(K("/message/listen"),{searchParams:e}).then(X)}replyMessage(e,t){return this.client.post(K("/message/reply"),{searchParams:{messageUid:e},json:t}).then(X)}};var Jt=class{constructor(e){this.client=e}sendEmail(e){return this.client.post(K("/mail/send"),{json:e}).then(X)}};var Yp=["mailboxId","from","to","cc","bcc","replyTo","subject","text","html","textFile","htmlFile","previewText","attachment","sandbox"],Xp=["subject","text","html","textFile","htmlFile","cc","bcc","replyTo","previewText","attachment","sandbox"],Jp=10,Kp=5,Zp=2,Qp=5;function Wa(r){let e=r.command("emails").description("Work with email messages");em(e),tm(e)}function em(r){r.command("send").description("Send a new email").option("--mailbox-id <id>","Mailbox ID",V).option("--from <email>","Sender email address").option("--to <email>","Recipient email address",Z).option("--subject <text>","Email subject").option("--text <text>","Plain text body").option("--html <html>","HTML body").option("--text-file <path>","Read plain text body from file").option("--html-file <path>","Read HTML body from file").option("--cc <email>","CC address",Z).option("--bcc <email>","BCC address",Z).option("--reply-to <email>","Reply-To address",Z).option("--preview-text <text>","Email preview text").option("--attachment <path>","Attach local file",Z).option("--sandbox","Send in sandbox mode").option("--json","Output raw JSON").action(async(e,t)=>{let i=await mr($i(e,Yp));rm(i);let s=new Jt(await ie(t)),n=await oe(t,"Sending email",()=>s.sendEmail(i));ue(t,n,Tr)})}function tm(r){let e=r.command("receiving").description("Work with inbound email");e.command("list").description("List inbound messages").option("--mailbox-id <id>","Filter by mailbox ID",V).option("--keyword <text>","Search keyword").option("--page-no <number>","Page number",V).option("--page-size <number>","Page size",V).option("--json","Output raw JSON").action(async(t,i)=>{let s=new ge(await ie(i)),n=ut(t,{mailboxId:"mailboxId",keyword:"keyword",pageNo:"pageNo",pageSize:"pageSize"}),o=await oe(i,"Fetching inbound messages",()=>s.listMessages(n));ue(i,o,Et)}),e.command("get").description("Get inbound message details").argument("<message-uid>","Message UID").option("--json","Output raw JSON").action(async(t,i,s)=>{Ce(t,"Message UID is required");let n=new ge(await ie(s)),o=await oe(s,"Fetching inbound message",()=>n.getMessage(t));ue(s,o,Ct)}),e.command("listen").description("Poll new inbound messages for Agent processing").option("--after <id>","Cursor ID from the previous result",je).option("--limit <number>","Message limit",V).option("--interval <seconds>","Polling interval in seconds (minimum 2)",V).option("--json","Output raw JSON").action(async(t,i)=>{let s=new ge(await ie(i));await sm(s,t,i)}),e.command("reply").description("Reply to an inbound message").argument("<message-uid>","Message UID").option("--subject <text>","Reply subject").option("--text <text>","Plain text body").option("--html <html>","HTML body").option("--text-file <path>","Read plain text body from file").option("--html-file <path>","Read HTML body from file").option("--cc <email>","CC address",Z).option("--bcc <email>","BCC address",Z).option("--reply-to <email>","Reply-To address",Z).option("--preview-text <text>","Email preview text").option("--attachment <path>","Attach local file",Z).option("--sandbox","Send in sandbox mode").option("--json","Output raw JSON").action(async(t,i,s)=>{Ce(t,"Message UID is required");let n=await mr($i(i,Xp));im(n);let o=new ge(await ie(s)),a=await oe(s,"Sending reply",()=>o.replyMessage(t,n));ue(s,a,Tr)})}function rm(r){if(!r.mailboxId)throw B("mailboxId is required");if(!Array.isArray(r.to)||r.to.length===0)throw B("At least one recipient is required");if(!r.subject)throw B("subject is required");Ua(r)}function im(r){Ua(r)}function Ua(r){if(!r.text&&!r.html)throw B("At least one of text or html is required")}async function sm(r,e,t){let i=process.stdout,s=process.stderr,n=!!e.json,o=e.limit??Jp,a=e.interval??Kp;nm(a);let u=e.after,l=0,c,h=!1,p=()=>{h=!0,c&&clearTimeout(c),n||s.write(`
|
|
37
50
|
Stopped listening.
|
|
38
|
-
`),process.exit(130)};if(process.once("SIGINT",
|
|
39
|
-
`),u===void 0){let
|
|
51
|
+
`),process.exit(130)};if(process.once("SIGINT",p),process.once("SIGTERM",p),n||s.write(`${ae.default.dim("Connecting...")}
|
|
52
|
+
`),u===void 0){let d=await r.listenMessages({limit:1});u=Ga(Va(d))}n||(s.write(`${ae.default.green("\u2713")} Ready
|
|
40
53
|
|
|
41
|
-
`),
|
|
42
|
-
`),
|
|
54
|
+
`),s.write(`${ae.default.bold("Polling:")} every ${a}s
|
|
55
|
+
`),s.write(`Listening for new inbound emails. Press Ctrl+C to stop.
|
|
43
56
|
|
|
44
|
-
`));let
|
|
45
|
-
`):
|
|
46
|
-
`),l>=
|
|
47
|
-
`),process.exit(5)})},a*1e3))}};
|
|
48
|
-
`),process.exit(5)})},a*1e3),await new Promise(()=>{})}function
|
|
49
|
-
`);return}for(let i of e)r.write(`${
|
|
50
|
-
`)}function
|
|
51
|
-
`)}function
|
|
52
|
-
`),process.exitCode=i.exitCode}}
|
|
57
|
+
`));let f=async()=>{if(!h)try{let d=u===void 0?{limit:o}:{after:u,limit:o},E=await r.listenMessages(d),C=Va(E);C.length>0&&(u=Ga(C)??u,um(i,C,n)),l=0}catch(d){l+=1;let E=d instanceof Error?d.message:String(d);if(n?s.write(`${JSON.stringify({error:{code:"poll_error",message:E}})}
|
|
58
|
+
`):s.write(`${ae.default.dim(`[${za()}]`)} ${ae.default.yellow("Warning:")} ${E}
|
|
59
|
+
`),l>=Qp)throw B("Exiting after 5 consecutive API failures.")}finally{h||(c=setTimeout(()=>{f().catch(d=>{let E=d instanceof Error?d.message:String(d);s.write(`${E}
|
|
60
|
+
`),process.exit(5)})},a*1e3))}};c=setTimeout(()=>{f().catch(d=>{let E=d instanceof Error?d.message:String(d);s.write(`${E}
|
|
61
|
+
`),process.exit(5)})},a*1e3),await new Promise(()=>{})}function nm(r){if(!Number.isInteger(r)||r<Zp)throw B("Polling interval must be at least 2 seconds.")}function Va(r){return Array.isArray(r.data)?r.data:Array.isArray(r.data?.list)?r.data.list:[]}function Ga(r){let e=r.map(om).filter(i=>i!==void 0);if(e.length===0)return;let t=e.map(Number).filter(Number.isFinite);return t.length===e.length?Math.max(...t):e.at(-1)}function om(r){return r.id??r.messageId??r.messageUid}function um(r,e,t){if(t){for(let i of e)r.write(`${JSON.stringify(i)}
|
|
62
|
+
`);return}for(let i of e)r.write(`${am(i)}
|
|
63
|
+
`)}function za(){return new Date().toLocaleTimeString("en-GB",{hour12:!1})}function am(r){let e=r.fromEmail||r.envelopeFrom||"(unknown sender)",t=lm(r.to||r.toEmail||r.recipients),i=cm(r.subject||"(no subject)",60),s=r.messageUid||r.id||"",n=t?`${e} -> ${t}`:e;return[ae.default.dim(`[${za()}]`),n,ae.default.bold(`"${i}"`),s?ae.default.dim(String(s)):null].filter(Boolean).join(" ")}function lm(r){return Array.isArray(r)?r.join(", "):r||""}function cm(r,e){let t=String(r);return t.length<=e?t:`${t.slice(0,e-3)}...`}var $e=class{constructor(e){this.client=e}listThreads(e={}){return this.client.get(K("/thread/list"),{searchParams:e}).then(X)}getThread(e){return this.client.get(K("/thread/get"),{searchParams:{threadId:e}}).then(X)}listThreadMessages(e,t={}){return this.client.get(K("/thread/messages"),{searchParams:{threadId:e,...t}}).then(X)}};function Ya(r){let e=r.command("threads").description("Work with email threads");e.command("list").description("List threads").option("--mailbox-id <id>","Filter by mailbox ID",V).option("--subject <text>","Search normalized subject").option("--participant <email>","Search participant").option("--start-time <timestamp>","Latest message start timestamp in milliseconds",je).option("--end-time <timestamp>","Latest message end timestamp in milliseconds",je).option("--page-no <number>","Page number",V).option("--page-size <number>","Page size",V).option("--json","Output raw JSON").action(async(t,i)=>{let s=new $e(await ie(i)),n=ut(t,{mailboxId:"mailboxId",subject:"subject",participant:"participant",startTime:"startTime",endTime:"endTime",pageNo:"pageNo",pageSize:"pageSize"}),o=await oe(i,"Fetching threads",()=>s.listThreads(n));ue(i,o,fn)}),e.command("get").description("Get thread details").argument("<thread-id>","Thread ID").option("--json","Output raw JSON").action(async(t,i,s)=>{Ce(t,"Thread ID is required");let n=new $e(await ie(s)),o=await oe(s,"Fetching thread",()=>n.getThread(t));ue(s,o,Ct)}),e.command("messages").description("List messages in a thread").argument("<thread-id>","Thread ID").option("--limit <number>","Message limit",V).option("--include-content","Include text/html/headers/attachments").option("--json","Output raw JSON").action(async(t,i,s)=>{Ce(t,"Thread ID is required");let n=new $e(await ie(s)),o=ut(i,{limit:"limit",includeContent:"includeContent"}),a=await oe(s,"Fetching thread messages",()=>n.listThreadMessages(t,o));ue(s,a,Et)})}function Xa(r,e){r.write(`${JSON.stringify({error:{code:e.code||"unknown_error",message:e.message||"Command failed"}},null,2)}
|
|
64
|
+
`)}function hm(r=new Yi){return r.name("engagelab-email-cli").description("CLI for EngageLab Email Agent workflows").version(de).option("-u, --base-url <url>","EngageLab Email API base URL",process.env.ENGAGELAB_EMAIL_BASE_URL).option("--secret-key <key>","EngageLab Email Secret Key",process.env.ENGAGELAB_EMAIL_SECRET_KEY),Qi(r),Ya(r),Wa(r),r}async function Ja(r=process.argv){let e=hm();try{await e.parseAsync(r)}catch(t){let i=Zi(t);r.includes("--json")?Xa(process.stderr,i):process.stderr.write(`${i.message}
|
|
65
|
+
`),process.exitCode=i.exitCode}}Ja().catch(r=>{process.stderr.write(`${r instanceof Error?r.message:String(r)}
|
|
53
66
|
`),process.exitCode=1});
|