@vee-stack/delta-cli 2.0.9 → 2.0.11

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.
Files changed (98) hide show
  1. package/dist/adapters/analysis.adapter.d.ts +29 -0
  2. package/dist/analyzer/commands/analyze.d.ts +14 -0
  3. package/dist/analyzer/commands/config.d.ts +12 -0
  4. package/dist/analyzer/commands/report.d.ts +11 -0
  5. package/dist/analyzer/generators/report.generator.d.ts +43 -0
  6. package/dist/analyzer/index.d.ts +8 -0
  7. package/dist/analyzer/scanners/project.scanner.d.ts +29 -0
  8. package/dist/analyzer/validators/contracts.validator.d.ts +27 -0
  9. package/dist/analyzer/validators/maintainability.validator.d.ts +27 -0
  10. package/dist/analyzer/validators/observability.validator.d.ts +27 -0
  11. package/dist/analyzer/validators/performance.validator.d.ts +27 -0
  12. package/dist/analyzer/validators/security.validator.d.ts +27 -0
  13. package/dist/analyzer/validators/soc.validator.d.ts +27 -0
  14. package/dist/auth/device-auth.d.ts +18 -0
  15. package/dist/auth/secure-auth.d.ts +35 -0
  16. package/dist/bundle.mjs +422 -0
  17. package/dist/commands/analyze.d.ts +12 -0
  18. package/dist/commands/auth-new.d.ts +6 -0
  19. package/dist/commands/auth.d.ts +17 -0
  20. package/dist/commands/config.d.ts +8 -0
  21. package/dist/commands/deploy.d.ts +5 -0
  22. package/dist/commands/init.d.ts +7 -0
  23. package/dist/commands/logout.d.ts +2 -0
  24. package/dist/commands/plugins.d.ts +7 -0
  25. package/dist/commands/status.d.ts +5 -0
  26. package/dist/commands/sync.d.ts +5 -0
  27. package/dist/commands/whoami.d.ts +4 -0
  28. package/dist/components/Dashboard.d.ts +8 -0
  29. package/dist/components/DeltaApp.d.ts +13 -0
  30. package/dist/components/UnifiedManager.d.ts +10 -0
  31. package/dist/core/audit.d.ts +60 -0
  32. package/dist/core/completion.d.ts +79 -0
  33. package/dist/core/contracts.d.ts +127 -0
  34. package/dist/core/engine.d.ts +26 -0
  35. package/dist/core/exit-codes.d.ts +19 -0
  36. package/dist/core/hooks.d.ts +50 -0
  37. package/dist/core/{index.js → index.d.ts} +1 -1
  38. package/dist/core/policy.d.ts +24 -0
  39. package/dist/core/profiles.d.ts +45 -0
  40. package/dist/core/wizard.d.ts +28 -0
  41. package/dist/interactive/index.d.ts +5 -0
  42. package/dist/plugins/GitStatusPlugin.d.ts +25 -0
  43. package/dist/providers/ai-provider.d.ts +21 -0
  44. package/dist/providers/local-provider.d.ts +21 -0
  45. package/dist/providers/remote-provider.d.ts +15 -0
  46. package/dist/telemetry/wrapper.d.ts +18 -0
  47. package/dist/types/api.d.ts +46 -0
  48. package/dist/ui.d.ts +52 -0
  49. package/dist/welcome.d.ts +8 -0
  50. package/package.json +8 -10
  51. package/dist/adapters/analysis.adapter.js +0 -42
  52. package/dist/analyzer/commands/analyze.js +0 -220
  53. package/dist/analyzer/commands/config.js +0 -83
  54. package/dist/analyzer/commands/report.js +0 -38
  55. package/dist/analyzer/generators/report.generator.js +0 -123
  56. package/dist/analyzer/index.js +0 -44
  57. package/dist/analyzer/scanners/project.scanner.js +0 -92
  58. package/dist/analyzer/validators/contracts.validator.js +0 -42
  59. package/dist/analyzer/validators/maintainability.validator.js +0 -40
  60. package/dist/analyzer/validators/observability.validator.js +0 -39
  61. package/dist/analyzer/validators/performance.validator.js +0 -42
  62. package/dist/analyzer/validators/security.validator.js +0 -66
  63. package/dist/analyzer/validators/soc.validator.js +0 -75
  64. package/dist/auth/device-auth.js +0 -261
  65. package/dist/auth/secure-auth.js +0 -401
  66. package/dist/commands/analyze.js +0 -393
  67. package/dist/commands/auth-new.js +0 -37
  68. package/dist/commands/auth.js +0 -131
  69. package/dist/commands/config.js +0 -51
  70. package/dist/commands/deploy.js +0 -6
  71. package/dist/commands/init.js +0 -47
  72. package/dist/commands/logout.js +0 -31
  73. package/dist/commands/plugins.js +0 -21
  74. package/dist/commands/status.js +0 -82
  75. package/dist/commands/sync.js +0 -6
  76. package/dist/commands/whoami.js +0 -72
  77. package/dist/components/Dashboard.js +0 -167
  78. package/dist/components/DeltaApp.js +0 -57
  79. package/dist/components/UnifiedManager.js +0 -372
  80. package/dist/core/audit.js +0 -184
  81. package/dist/core/completion.js +0 -305
  82. package/dist/core/contracts.js +0 -6
  83. package/dist/core/engine.js +0 -130
  84. package/dist/core/exit-codes.js +0 -79
  85. package/dist/core/hooks.js +0 -181
  86. package/dist/core/policy.js +0 -115
  87. package/dist/core/profiles.js +0 -161
  88. package/dist/core/wizard.js +0 -203
  89. package/dist/index.js +0 -403
  90. package/dist/interactive/index.js +0 -11
  91. package/dist/plugins/GitStatusPlugin.js +0 -93
  92. package/dist/providers/ai-provider.js +0 -74
  93. package/dist/providers/local-provider.js +0 -304
  94. package/dist/providers/remote-provider.js +0 -100
  95. package/dist/telemetry/wrapper.js +0 -114
  96. package/dist/types/api.js +0 -3
  97. package/dist/ui.js +0 -226
  98. package/dist/welcome.js +0 -91
@@ -0,0 +1,422 @@
1
+ #!/usr/bin/env node
2
+ var h2=Object.create;var oo=Object.defineProperty;var f2=Object.getOwnPropertyDescriptor;var d2=Object.getOwnPropertyNames;var p2=Object.getPrototypeOf,D2=Object.prototype.hasOwnProperty;var X=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var oe=(t,e)=>()=>(t&&(e=t(t=0)),e);var F=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ei=(t,e)=>{for(var r in e)oo(t,r,{get:e[r],enumerable:!0})},m2=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of d2(e))!D2.call(t,n)&&n!==r&&oo(t,n,{get:()=>e[n],enumerable:!(i=f2(e,n))||i.enumerable});return t};var Se=(t,e,r)=>(r=t!=null?h2(p2(t)):{},m2(e||!t||!t.__esModule?oo(r,"default",{value:t,enumerable:!0}):r,t));var bi=F(ao=>{var bn=class extends Error{constructor(e,r,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},uo=class extends bn{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};ao.CommanderError=bn;ao.InvalidArgumentError=uo});var Cn=F(co=>{var{InvalidArgumentError:g2}=bi(),lo=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new g2(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,i):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function y2(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}co.Argument=lo;co.humanReadableArgName=y2});var fo=F(hc=>{var{humanReadableArgName:F2}=Cn(),ho=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden),i=e._getHelpCommand();return i&&!i._hidden&&r.push(i),this.sortSubcommands&&r.sort((n,s)=>n.name().localeCompare(s.name())),r}compareOptions(e,r){let i=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return i(e).localeCompare(i(r))}visibleOptions(e){let r=e.options.filter(n=>!n.hidden),i=e._getHelpOption();if(i&&!i.hidden){let n=i.short&&e._findOption(i.short),s=i.long&&e._findOption(i.long);!n&&!s?r.push(i):i.long&&!s?r.push(e.createOption(i.long,i.description)):i.short&&!n&&r.push(e.createOption(i.short,i.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let i=e.parent;i;i=i.parent){let n=i.options.filter(s=>!s.hidden);r.push(...n)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e.registeredArguments.find(r=>r.description)?e.registeredArguments:[]}subcommandTerm(e){let r=e.registeredArguments.map(i=>F2(i)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((i,n)=>Math.max(i,r.subcommandTerm(n).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((i,n)=>Math.max(i,r.optionTerm(n).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((i,n)=>Math.max(i,r.optionTerm(n).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((i,n)=>Math.max(i,r.argumentTerm(n).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let i="";for(let n=e.parent;n;n=n.parent)i=n.name()+" "+i;return i+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let i=`(${r.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}formatHelp(e,r){let i=r.padWidth(e,r),n=r.helpWidth||80,s=2,o=2;function u(g,C){if(C){let S=`${g.padEnd(i+o)}${C}`;return r.wrap(S,n-s,i+o)}return g}function a(g){return g.join(`
3
+ `).replace(/^/gm," ".repeat(s))}let l=[`Usage: ${r.commandUsage(e)}`,""],c=r.commandDescription(e);c.length>0&&(l=l.concat([r.wrap(c,n,0),""]));let f=r.visibleArguments(e).map(g=>u(r.argumentTerm(g),r.argumentDescription(g)));f.length>0&&(l=l.concat(["Arguments:",a(f),""]));let m=r.visibleOptions(e).map(g=>u(r.optionTerm(g),r.optionDescription(g)));if(m.length>0&&(l=l.concat(["Options:",a(m),""])),this.showGlobalOptions){let g=r.visibleGlobalOptions(e).map(C=>u(r.optionTerm(C),r.optionDescription(C)));g.length>0&&(l=l.concat(["Global Options:",a(g),""]))}let d=r.visibleCommands(e).map(g=>u(r.subcommandTerm(g),r.subcommandDescription(g)));return d.length>0&&(l=l.concat(["Commands:",a(d),""])),l.join(`
4
+ `)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,i,n=40){let s=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",o=new RegExp(`[\\n][${s}]+`);if(e.match(o))return e;let u=r-i;if(u<n)return e;let a=e.slice(0,i),l=e.slice(i).replace(`\r
5
+ `,`
6
+ `),c=" ".repeat(i),m="\\s\u200B",d=new RegExp(`
7
+ |.{1,${u-1}}([${m}]|$)|[^${m}]+?([${m}]|$)`,"g"),g=l.match(d)||[];return a+g.map((C,S)=>C===`
8
+ `?"":(S>0?c:"")+C.trimEnd()).join(`
9
+ `)}};hc.Help=ho});var go=F(mo=>{var{InvalidArgumentError:E2}=bi(),po=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let i=C2(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,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new E2(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,i):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return b2(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Do=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,i)=>{this.positiveOptions.has(i)&&this.dualOptions.add(i)})}valueFromOption(e,r){let i=r.attributeName();if(!this.dualOptions.has(i))return!0;let n=this.negativeOptions.get(i).presetArg,s=n!==void 0?n:!1;return r.negate===(s===e)}};function b2(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function C2(t){let e,r,i=t.split(/[ |,]+/);return i.length>1&&!/^[[<]/.test(i[1])&&(e=i.shift()),r=i.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}mo.Option=po;mo.DualOptions=Do});var dc=F(fc=>{function w2(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let i=0;i<=t.length;i++)r[i]=[i];for(let i=0;i<=e.length;i++)r[0][i]=i;for(let i=1;i<=e.length;i++)for(let n=1;n<=t.length;n++){let s=1;t[n-1]===e[i-1]?s=0:s=1,r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+s),n>1&&i>1&&t[n-1]===e[i-2]&&t[n-2]===e[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+1))}return r[t.length][e.length]}function v2(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let i=[],n=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let u=w2(t,o),a=Math.max(t.length,o.length);(a-u)/a>s&&(u<n?(n=u,i=[o]):u===n&&i.push(o))}),i.sort((o,u)=>o.localeCompare(u)),r&&(i=i.map(o=>`--${o}`)),i.length>1?`
10
+ (Did you mean one of ${i.join(", ")}?)`:i.length===1?`
11
+ (Did you mean ${i[0]}?)`:""}fc.suggestSimilar=v2});var yc=F(gc=>{var x2=X("node:events").EventEmitter,yo=X("node:child_process"),$t=X("node:path"),Fo=X("node:fs"),be=X("node:process"),{Argument:_2,humanReadableArgName:S2}=Cn(),{CommanderError:Eo}=bi(),{Help:A2}=fo(),{Option:pc,DualOptions:O2}=go(),{suggestSimilar:Dc}=dc(),bo=class t extends x2{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:r=>be.stdout.write(r),writeErr:r=>be.stderr.write(r),getOutHelpWidth:()=>be.stdout.isTTY?be.stdout.columns:void 0,getErrHelpWidth:()=>be.stderr.isTTY?be.stderr.columns:void 0,outputError:(r,i)=>i(r)},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 r=this;r;r=r.parent)e.push(r);return e}command(e,r,i){let n=r,s=i;typeof n=="object"&&n!==null&&(s=n,n=null),s=s||{};let[,o,u]=e.match(/([^ ]+) *(.*)/),a=this.createCommand(o);return n&&(a.description(n),a._executableHandler=!0),s.isDefault&&(this._defaultCommandName=a._name),a._hidden=!!(s.noHelp||s.hidden),a._executableFile=s.executableFile||null,u&&a.arguments(u),this._registerCommand(a),a.parent=this,a.copyInheritedSettings(this),n?this:a}createCommand(e){return new t(e)}createHelp(){return Object.assign(new A2,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
12
+ - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,r){return new _2(e,r)}argument(e,r,i,n){let s=this.createArgument(e,r);return typeof i=="function"?s.default(n).argParser(i):s.default(i),this.addArgument(s),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,r){if(typeof e=="boolean")return this._addImplicitHelpCommand=e,this;e=e??"help [command]";let[,i,n]=e.match(/([^ ]+) *(.*)/),s=r??"display help for command",o=this.createCommand(i);return o.helpOption(!1),n&&o.arguments(n),s&&o.description(s),this._addImplicitHelpCommand=!0,this._helpCommand=o,this}addHelpCommand(e,r){return typeof e!="object"?(this.helpCommand(e,r),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,r){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(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,i){this._exitCallback&&this._exitCallback(new Eo(e,r,i)),be.exit(e)}action(e){let r=i=>{let n=this.registeredArguments.length,s=i.slice(0,n);return this._storeOptionsAsProperties?s[n]=this:s[n]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new pc(e,r)}_callParseArg(e,r,i,n){try{return e.parseArg(r,i)}catch(s){if(s.code==="commander.invalidArgument"){let o=`${n} ${s.message}`;this.error(o,{exitCode:s.exitCode,code:s.code})}throw s}}_registerOption(e){let r=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(r){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 '${r.flags}'`)}this.options.push(e)}_registerCommand(e){let r=n=>[n.name()].concat(n.aliases()),i=r(e).find(n=>this._findCommand(n));if(i){let n=r(this._findCommand(i)).join("|"),s=r(e).join("|");throw new Error(`cannot add command '${s}' as already have command '${n}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);let r=e.name(),i=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(i,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(i,e.defaultValue,"default");let n=(s,o,u)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let a=this.getOptionValue(i);s!==null&&e.parseArg?s=this._callParseArg(e,s,a,o):s!==null&&e.variadic&&(s=e._concatValue(s,a)),s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(i,s,u)};return this.on("option:"+r,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;n(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;n(s,o,"env")}),this}_optionEx(e,r,i,n,s){if(typeof r=="object"&&r instanceof pc)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,i);if(o.makeOptionMandatory(!!e.mandatory),typeof n=="function")o.default(s).argParser(n);else if(n instanceof RegExp){let u=n;n=(a,l)=>{let c=u.exec(a);return c?c[0]:l},o.default(s).argParser(n)}else o.default(n);return this.addOption(o)}option(e,r,i,n){return this._optionEx({},e,r,i,n)}requiredOption(e,r,i,n){return this._optionEx({mandatory:!0},e,r,i,n)}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,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,i){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=i,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return this._getCommandAndAncestors().forEach(i=>{i.getOptionValueSource(e)!==void 0&&(r=i.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");if(r=r||{},e===void 0&&r.from===void 0){be.versions?.electron&&(r.from="electron");let n=be.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}e===void 0&&(e=be.argv),this.rawArgs=e.slice();let i;switch(r.from){case void 0:case"node":this._scriptPath=e[1],i=e.slice(2);break;case"electron":be.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: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}parse(e,r){let i=this._prepareUserArgs(e,r);return this._parseCommand([],i),this}async parseAsync(e,r){let i=this._prepareUserArgs(e,r);return await this._parseCommand([],i),this}_executeSubCommand(e,r){r=r.slice();let i=!1,n=[".js",".ts",".tsx",".mjs",".cjs"];function s(c,f){let m=$t.resolve(c,f);if(Fo.existsSync(m))return m;if(n.includes($t.extname(f)))return;let d=n.find(g=>Fo.existsSync(`${m}${g}`));if(d)return`${m}${d}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,u=this._executableDir||"";if(this._scriptPath){let c;try{c=Fo.realpathSync(this._scriptPath)}catch{c=this._scriptPath}u=$t.resolve($t.dirname(c),u)}if(u){let c=s(u,o);if(!c&&!e._executableFile&&this._scriptPath){let f=$t.basename(this._scriptPath,$t.extname(this._scriptPath));f!==this._name&&(c=s(u,`${f}-${e._name}`))}o=c||o}i=n.includes($t.extname(o));let a;be.platform!=="win32"?i?(r.unshift(o),r=mc(be.execArgv).concat(r),a=yo.spawn(be.argv[0],r,{stdio:"inherit"})):a=yo.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=mc(be.execArgv).concat(r),a=yo.spawn(be.execPath,r,{stdio:"inherit"})),a.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{be.on(f,()=>{a.killed===!1&&a.exitCode===null&&a.kill(f)})});let l=this._exitCallback;a.on("close",c=>{c=c??1,l?l(new Eo(c,"commander.executeSubCommandAsync","(close)")):be.exit(c)}),a.on("error",c=>{if(c.code==="ENOENT"){let f=u?`searched for local subcommand relative to directory '${u}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",m=`'${o}' does not exist
15
+ - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
16
+ - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
17
+ - ${f}`;throw new Error(m)}else if(c.code==="EACCES")throw new Error(`'${o}' not executable`);if(!l)be.exit(1);else{let f=new Eo(1,"commander.executeSubCommandAsync","(error)");f.nestedError=c,l(f)}}),this.runningCommand=a}_dispatchSubcommand(e,r,i){let n=this._findCommand(e);n||this.help({error:!0});let s;return s=this._chainOrCallSubCommandHook(s,n,"preSubcommand"),s=this._chainOrCall(s,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(i));else return n._parseCommand(r,i)}),s}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,r)=>{e.required&&this.args[r]==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,n,s)=>{let o=n;if(n!==null&&i.parseArg){let u=`error: command-argument value '${n}' is invalid for argument '${i.name()}'.`;o=this._callParseArg(i,n,s,u)}return o};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((i,n)=>{let s=i.defaultValue;i.variadic?n<this.args.length?(s=this.args.slice(n),i.parseArg&&(s=s.reduce((o,u)=>e(i,u,o),i.defaultValue))):s===void 0&&(s=[]):n<this.args.length&&(s=this.args[n],i.parseArg&&(s=e(i,s,i.defaultValue))),r[n]=s}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let i=e,n=[];return this._getCommandAndAncestors().reverse().filter(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(o=>{n.push({hookedCommand:s,callback:o})})}),r==="postAction"&&n.reverse(),n.forEach(s=>{i=this._chainOrCall(i,()=>s.callback(s.hookedCommand,this))}),i}_chainOrCallSubCommandHook(e,r,i){let n=e;return this._lifeCycleHooks[i]!==void 0&&this._lifeCycleHooks[i].forEach(s=>{n=this._chainOrCall(n,()=>s(this,r))}),n}_parseCommand(e,r){let i=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(i.operands),r=i.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){n(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(s,e,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(s))n(),this._processArguments(),this.parent.emit(s,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(i=>{let n=i.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});e.filter(i=>i.conflictsWith.length>0).forEach(i=>{let n=e.find(s=>i.conflictsWith.includes(s.attributeName()));n&&this._conflictingOption(i,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let r=[],i=[],n=r,s=e.slice();function o(a){return a.length>1&&a[0]==="-"}let u=null;for(;s.length;){let a=s.shift();if(a==="--"){n===i&&n.push(a),n.push(...s);break}if(u&&!o(a)){this.emit(`option:${u.name()}`,a);continue}if(u=null,o(a)){let l=this._findOption(a);if(l){if(l.required){let c=s.shift();c===void 0&&this.optionMissingArgument(l),this.emit(`option:${l.name()}`,c)}else if(l.optional){let c=null;s.length>0&&!o(s[0])&&(c=s.shift()),this.emit(`option:${l.name()}`,c)}else this.emit(`option:${l.name()}`);u=l.variadic?l:null;continue}}if(a.length>2&&a[0]==="-"&&a[1]!=="-"){let l=this._findOption(`-${a[1]}`);if(l){l.required||l.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${l.name()}`,a.slice(2)):(this.emit(`option:${l.name()}`),s.unshift(`-${a.slice(2)}`));continue}}if(/^--[^=]+=/.test(a)){let l=a.indexOf("="),c=this._findOption(a.slice(0,l));if(c&&(c.required||c.optional)){this.emit(`option:${c.name()}`,a.slice(l+1));continue}}if(o(a)&&(n=i),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&i.length===0){if(this._findCommand(a)){r.push(a),s.length>0&&i.push(...s);break}else if(this._getHelpCommand()&&a===this._getHelpCommand().name()){r.push(a),s.length>0&&r.push(...s);break}else if(this._defaultCommandName){i.push(a),s.length>0&&i.push(...s);break}}if(this._passThroughOptions){n.push(a),s.length>0&&n.push(...s);break}n.push(a)}return{operands:r,unknown:i}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let i=0;i<r;i++){let n=this.options[i].attributeName();e[n]=n===this._versionOptionName?this._version:this[n]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
18
+ `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
19
+ `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
20
+ `),this.outputHelp({error:!0}));let i=r||{},n=i.exitCode||1,s=i.code||"commander.error";this._exit(n,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in be.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,be.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new O2(this.options),r=i=>this.getOptionValue(i)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(i));this.options.filter(i=>i.implied!==void 0&&r(i.attributeName())&&e.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach(i=>{Object.keys(i.implied).filter(n=>!r(n)).forEach(n=>{this.setOptionValueWithSource(n,i.implied[n],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let i=o=>{let u=o.attributeName(),a=this.getOptionValue(u),l=this.options.find(f=>f.negate&&u===f.attributeName()),c=this.options.find(f=>!f.negate&&u===f.attributeName());return l&&(l.presetArg===void 0&&a===!1||l.presetArg!==void 0&&a===l.presetArg)?l:c||o},n=o=>{let u=i(o),a=u.attributeName();return this.getOptionValueSource(a)==="env"?`environment variable '${u.envVar}'`:`option '${u.flags}'`},s=`error: ${n(e)} cannot be used with ${n(r)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(u=>u.long).map(u=>u.long);n=n.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);r=Dc(e,n)}let i=`error: unknown option '${e}'${r}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,i=r===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${i} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(s=>{n.push(s.name()),s.alias()&&n.push(s.alias())}),r=Dc(e,n)}let i=`error: unknown command '${e}'${r}`;this.error(i,{code:"commander.unknownCommand"})}version(e,r,i){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",i=i||"output the version number";let n=this.createOption(r,i);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${e}
21
+ `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(e);if(i){let n=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(i=>S2(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=$t.basename(e,$t.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},i;return r.error?i=n=>this._outputConfiguration.writeErr(n):i=n=>this._outputConfiguration.writeOut(n),r.write=e.write||i,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let i=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let n=this.helpInformation(i);if(r&&(n=r(n),typeof n!="string"&&!Buffer.isBuffer(n)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(n),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",i),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",i))}helpOption(e,r){return typeof e=="boolean"?(e?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(e=e??"-h, --help",r=r??"display help for command",this._helpOption=this.createOption(e,r),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 r=be.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){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 n=`${e}Help`;return this.on(n,s=>{let o;typeof r=="function"?o=r({error:s.error,command:s.command}):o=r,o&&s.write(`${o}
23
+ `)}),this}_outputHelpIfRequested(e){let r=this._getHelpOption();r&&e.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function mc(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,i="127.0.0.1",n="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?n=s[3]:i=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],i=s[3],n=s[4]),r&&n!=="0"?`${r}=${i}:${parseInt(n)+1}`:e})}gc.Command=bo});var Cc=F(it=>{var{Argument:Fc}=Cn(),{Command:Co}=yc(),{CommanderError:R2,InvalidArgumentError:Ec}=bi(),{Help:T2}=fo(),{Option:bc}=go();it.program=new Co;it.createCommand=t=>new Co(t);it.createOption=(t,e)=>new bc(t,e);it.createArgument=(t,e)=>new Fc(t,e);it.Command=Co;it.Option=bc;it.Argument=Fc;it.Help=T2;it.CommanderError=R2;it.InvalidArgumentError=Ec;it.InvalidOptionArgumentError=Ec});var _c=F((ZO,xc)=>{"use strict";xc.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var wo=F((QO,Ac)=>{var Ci=_c(),Sc={};for(let t of Object.keys(Ci))Sc[Ci[t]]=t;var H={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Ac.exports=H;for(let t of Object.keys(H)){if(!("channels"in H[t]))throw new Error("missing channels property: "+t);if(!("labels"in H[t]))throw new Error("missing channel labels property: "+t);if(H[t].labels.length!==H[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=H[t];delete H[t].channels,delete H[t].labels,Object.defineProperty(H[t],"channels",{value:e}),Object.defineProperty(H[t],"labels",{value:r})}H.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(e,r,i),s=Math.max(e,r,i),o=s-n,u,a;s===n?u=0:e===s?u=(r-i)/o:r===s?u=2+(i-e)/o:i===s&&(u=4+(e-r)/o),u=Math.min(u*60,360),u<0&&(u+=360);let l=(n+s)/2;return s===n?a=0:l<=.5?a=o/(s+n):a=o/(2-s-n),[u,a*100,l*100]};H.rgb.hsv=function(t){let e,r,i,n,s,o=t[0]/255,u=t[1]/255,a=t[2]/255,l=Math.max(o,u,a),c=l-Math.min(o,u,a),f=function(m){return(l-m)/6/c+1/2};return c===0?(n=0,s=0):(s=c/l,e=f(o),r=f(u),i=f(a),o===l?n=i-r:u===l?n=1/3+e-i:a===l&&(n=2/3+r-e),n<0?n+=1:n>1&&(n-=1)),[n*360,s*100,l*100]};H.rgb.hwb=function(t){let e=t[0],r=t[1],i=t[2],n=H.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,i));return i=1-1/255*Math.max(e,Math.max(r,i)),[n,s*100,i*100]};H.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(1-e,1-r,1-i),s=(1-e-n)/(1-n)||0,o=(1-r-n)/(1-n)||0,u=(1-i-n)/(1-n)||0;return[s*100,o*100,u*100,n*100]};function I2(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}H.rgb.keyword=function(t){let e=Sc[t];if(e)return e;let r=1/0,i;for(let n of Object.keys(Ci)){let s=Ci[n],o=I2(t,s);o<r&&(r=o,i=n)}return i};H.keyword.rgb=function(t){return Ci[t]};H.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,i=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let n=e*.4124+r*.3576+i*.1805,s=e*.2126+r*.7152+i*.0722,o=e*.0193+r*.1192+i*.9505;return[n*100,s*100,o*100]};H.rgb.lab=function(t){let e=H.rgb.xyz(t),r=e[0],i=e[1],n=e[2];r/=95.047,i/=100,n/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let s=116*i-16,o=500*(r-i),u=200*(i-n);return[s,o,u]};H.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,i=t[2]/100,n,s,o;if(r===0)return o=i*255,[o,o,o];i<.5?n=i*(1+r):n=i+r-i*r;let u=2*i-n,a=[0,0,0];for(let l=0;l<3;l++)s=e+1/3*-(l-1),s<0&&s++,s>1&&s--,6*s<1?o=u+(n-u)*6*s:2*s<1?o=n:3*s<2?o=u+(n-u)*(2/3-s)*6:o=u,a[l]=o*255;return a};H.hsl.hsv=function(t){let e=t[0],r=t[1]/100,i=t[2]/100,n=r,s=Math.max(i,.01);i*=2,r*=i<=1?i:2-i,n*=s<=1?s:2-s;let o=(i+r)/2,u=i===0?2*n/(s+n):2*r/(i+r);return[e,u*100,o*100]};H.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,i=t[2]/100,n=Math.floor(e)%6,s=e-Math.floor(e),o=255*i*(1-r),u=255*i*(1-r*s),a=255*i*(1-r*(1-s));switch(i*=255,n){case 0:return[i,a,o];case 1:return[u,i,o];case 2:return[o,i,a];case 3:return[o,u,i];case 4:return[a,o,i];case 5:return[i,o,u]}};H.hsv.hsl=function(t){let e=t[0],r=t[1]/100,i=t[2]/100,n=Math.max(i,.01),s,o;o=(2-r)*i;let u=(2-r)*n;return s=r*n,s/=u<=1?u:2-u,s=s||0,o/=2,[e,s*100,o*100]};H.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,i=t[2]/100,n=r+i,s;n>1&&(r/=n,i/=n);let o=Math.floor(6*e),u=1-i;s=6*e-o,(o&1)!==0&&(s=1-s);let a=r+s*(u-r),l,c,f;switch(o){default:case 6:case 0:l=u,c=a,f=r;break;case 1:l=a,c=u,f=r;break;case 2:l=r,c=u,f=a;break;case 3:l=r,c=a,f=u;break;case 4:l=a,c=r,f=u;break;case 5:l=u,c=r,f=a;break}return[l*255,c*255,f*255]};H.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,i=t[2]/100,n=t[3]/100,s=1-Math.min(1,e*(1-n)+n),o=1-Math.min(1,r*(1-n)+n),u=1-Math.min(1,i*(1-n)+n);return[s*255,o*255,u*255]};H.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,i=t[2]/100,n,s,o;return n=e*3.2406+r*-1.5372+i*-.4986,s=e*-.9689+r*1.8758+i*.0415,o=e*.0557+r*-.204+i*1.057,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,n=Math.min(Math.max(0,n),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[n*255,s*255,o*255]};H.xyz.lab=function(t){let e=t[0],r=t[1],i=t[2];e/=95.047,r/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let n=116*r-16,s=500*(e-r),o=200*(r-i);return[n,s,o]};H.lab.xyz=function(t){let e=t[0],r=t[1],i=t[2],n,s,o;s=(e+16)/116,n=r/500+s,o=s-i/200;let u=s**3,a=n**3,l=o**3;return s=u>.008856?u:(s-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,n*=95.047,s*=100,o*=108.883,[n,s,o]};H.lab.lch=function(t){let e=t[0],r=t[1],i=t[2],n;n=Math.atan2(i,r)*360/2/Math.PI,n<0&&(n+=360);let o=Math.sqrt(r*r+i*i);return[e,o,n]};H.lch.lab=function(t){let e=t[0],r=t[1],n=t[2]/360*2*Math.PI,s=r*Math.cos(n),o=r*Math.sin(n);return[e,s,o]};H.rgb.ansi16=function(t,e=null){let[r,i,n]=t,s=e===null?H.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};H.hsv.ansi16=function(t){return H.rgb.ansi16(H.hsv.rgb(t),t[2])};H.rgb.ansi256=function(t){let e=t[0],r=t[1],i=t[2];return e===r&&r===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)};H.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,i=(e&1)*r*255,n=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[i,n,s]};H.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,i=Math.floor((e=t%36)/6)/5*255,n=e%6/5*255;return[r,i,n]};H.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};H.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(u=>u+u).join(""));let i=parseInt(r,16),n=i>>16&255,s=i>>8&255,o=i&255;return[n,s,o]};H.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.max(Math.max(e,r),i),s=Math.min(Math.min(e,r),i),o=n-s,u,a;return o<1?u=s/(1-o):u=0,o<=0?a=0:n===e?a=(r-i)/o%6:n===r?a=2+(i-e)/o:a=4+(e-r)/o,a/=6,a%=1,[a*360,o*100,u*100]};H.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,i=r<.5?2*e*r:2*e*(1-r),n=0;return i<1&&(n=(r-.5*i)/(1-i)),[t[0],i*100,n*100]};H.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,i=e*r,n=0;return i<1&&(n=(r-i)/(1-i)),[t[0],i*100,n*100]};H.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,i=t[2]/100;if(r===0)return[i*255,i*255,i*255];let n=[0,0,0],s=e%1*6,o=s%1,u=1-o,a=0;switch(Math.floor(s)){case 0:n[0]=1,n[1]=o,n[2]=0;break;case 1:n[0]=u,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=o;break;case 3:n[0]=0,n[1]=u,n[2]=1;break;case 4:n[0]=o,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=u}return a=(1-r)*i,[(r*n[0]+a)*255,(r*n[1]+a)*255,(r*n[2]+a)*255]};H.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,i=e+r*(1-e),n=0;return i>0&&(n=e/i),[t[0],n*100,i*100]};H.hcg.hsl=function(t){let e=t[1]/100,i=t[2]/100*(1-e)+.5*e,n=0;return i>0&&i<.5?n=e/(2*i):i>=.5&&i<1&&(n=e/(2*(1-i))),[t[0],n*100,i*100]};H.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,i=e+r*(1-e);return[t[0],(i-e)*100,(1-i)*100]};H.hwb.hcg=function(t){let e=t[1]/100,i=1-t[2]/100,n=i-e,s=0;return n<1&&(s=(i-n)/(1-n)),[t[0],n*100,s*100]};H.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};H.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};H.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};H.gray.hsl=function(t){return[0,0,t[0]]};H.gray.hsv=H.gray.hsl;H.gray.hwb=function(t){return[0,100,t[0]]};H.gray.cmyk=function(t){return[0,0,0,t[0]]};H.gray.lab=function(t){return[t[0],0,0]};H.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i};H.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var Rc=F((eR,Oc)=>{var wn=wo();function B2(){let t={},e=Object.keys(wn);for(let r=e.length,i=0;i<r;i++)t[e[i]]={distance:-1,parent:null};return t}function $2(t){let e=B2(),r=[t];for(e[t].distance=0;r.length;){let i=r.pop(),n=Object.keys(wn[i]);for(let s=n.length,o=0;o<s;o++){let u=n[o],a=e[u];a.distance===-1&&(a.distance=e[i].distance+1,a.parent=i,r.unshift(u))}}return e}function P2(t,e){return function(r){return e(t(r))}}function k2(t,e){let r=[e[t].parent,t],i=wn[e[t].parent][t],n=e[t].parent;for(;e[n].parent;)r.unshift(e[n].parent),i=P2(wn[e[n].parent][n],i),n=e[n].parent;return i.conversion=r,i}Oc.exports=function(t){let e=$2(t),r={},i=Object.keys(e);for(let n=i.length,s=0;s<n;s++){let o=i[s];e[o].parent!==null&&(r[o]=k2(o,e))}return r}});var Ic=F((tR,Tc)=>{var vo=wo(),L2=Rc(),Mr={},N2=Object.keys(vo);function M2(t){let e=function(...r){let i=r[0];return i==null?i:(i.length>1&&(r=i),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function j2(t){let e=function(...r){let i=r[0];if(i==null)return i;i.length>1&&(r=i);let n=t(r);if(typeof n=="object")for(let s=n.length,o=0;o<s;o++)n[o]=Math.round(n[o]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}N2.forEach(t=>{Mr[t]={},Object.defineProperty(Mr[t],"channels",{value:vo[t].channels}),Object.defineProperty(Mr[t],"labels",{value:vo[t].labels});let e=L2(t);Object.keys(e).forEach(i=>{let n=e[i];Mr[t][i]=j2(n),Mr[t][i].raw=M2(n)})});Tc.exports=Mr});var Nc=F((rR,Lc)=>{"use strict";var Bc=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,$c=(t,e)=>(...r)=>{let i=t(...r);return`\x1B[${38+e};5;${i}m`},Pc=(t,e)=>(...r)=>{let i=t(...r);return`\x1B[${38+e};2;${i[0]};${i[1]};${i[2]}m`},vn=t=>t,kc=(t,e,r)=>[t,e,r],jr=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let i=r();return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})},xo,qr=(t,e,r,i)=>{xo===void 0&&(xo=Ic());let n=i?10:0,s={};for(let[o,u]of Object.entries(xo)){let a=o==="ansi16"?"ansi":o;o===e?s[a]=t(r,n):typeof u=="object"&&(s[a]=t(u[e],n))}return s};function q2(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,i]of Object.entries(e)){for(let[n,s]of Object.entries(i))e[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},i[n]=e[n],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:i,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",jr(e.color,"ansi",()=>qr(Bc,"ansi16",vn,!1)),jr(e.color,"ansi256",()=>qr($c,"ansi256",vn,!1)),jr(e.color,"ansi16m",()=>qr(Pc,"rgb",kc,!1)),jr(e.bgColor,"ansi",()=>qr(Bc,"ansi16",vn,!0)),jr(e.bgColor,"ansi256",()=>qr($c,"ansi256",vn,!0)),jr(e.bgColor,"ansi16m",()=>qr(Pc,"rgb",kc,!0)),e}Object.defineProperty(Lc,"exports",{enumerable:!0,get:q2})});var jc=F((iR,Mc)=>{"use strict";Mc.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),n=e.indexOf("--");return i!==-1&&(n===-1||i<n)}});var Hc=F((nR,Uc)=>{"use strict";var U2=X("os"),qc=X("tty"),nt=jc(),{env:Ae}=process,Kt;nt("no-color")||nt("no-colors")||nt("color=false")||nt("color=never")?Kt=0:(nt("color")||nt("colors")||nt("color=true")||nt("color=always"))&&(Kt=1);"FORCE_COLOR"in Ae&&(Ae.FORCE_COLOR==="true"?Kt=1:Ae.FORCE_COLOR==="false"?Kt=0:Kt=Ae.FORCE_COLOR.length===0?1:Math.min(parseInt(Ae.FORCE_COLOR,10),3));function _o(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function So(t,e){if(Kt===0)return 0;if(nt("color=16m")||nt("color=full")||nt("color=truecolor"))return 3;if(nt("color=256"))return 2;if(t&&!e&&Kt===void 0)return 0;let r=Kt||0;if(Ae.TERM==="dumb")return r;if(process.platform==="win32"){let i=U2.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Ae)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in Ae)||Ae.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ae)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ae.TEAMCITY_VERSION)?1:0;if(Ae.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ae){let i=parseInt((Ae.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ae.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ae.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ae.TERM)||"COLORTERM"in Ae?1:r}function H2(t){let e=So(t,t&&t.isTTY);return _o(e)}Uc.exports={supportsColor:H2,stdout:_o(So(!0,qc.isatty(1))),stderr:_o(So(!0,qc.isatty(2)))}});var Wc=F((sR,Gc)=>{"use strict";var G2=(t,e,r)=>{let i=t.indexOf(e);if(i===-1)return t;let n=e.length,s=0,o="";do o+=t.substr(s,i-s)+e+r,s=i+n,i=t.indexOf(e,s);while(i!==-1);return o+=t.substr(s),o},W2=(t,e,r,i)=>{let n=0,s="";do{let o=t[i-1]==="\r";s+=t.substr(n,(o?i-1:i)-n)+e+(o?`\r
24
+ `:`
25
+ `)+r,n=i+1,i=t.indexOf(`
26
+ `,n)}while(i!==-1);return s+=t.substr(n),s};Gc.exports={stringReplaceAll:G2,stringEncaseCRLFWithFirstIndex:W2}});var Jc=F((oR,Kc)=>{"use strict";var V2=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Vc=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,z2=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Y2=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,K2=new Map([["n",`
27
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Yc(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):K2.get(t)||t}function J2(t,e){let r=[],i=e.trim().split(/\s*,\s*/g),n;for(let s of i){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(n=s.match(z2))r.push(n[2].replace(Y2,(u,a,l)=>a?Yc(a):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function X2(t){Vc.lastIndex=0;let e=[],r;for(;(r=Vc.exec(t))!==null;){let i=r[1];if(r[2]){let n=J2(i,r[2]);e.push([i].concat(n))}else e.push([i])}return e}function zc(t,e){let r={};for(let n of e)for(let s of n.styles)r[s[0]]=n.inverse?null:s.slice(1);let i=t;for(let[n,s]of Object.entries(r))if(Array.isArray(s)){if(!(n in i))throw new Error(`Unknown Chalk style: ${n}`);i=s.length>0?i[n](...s):i[n]}return i}Kc.exports=(t,e)=>{let r=[],i=[],n=[];if(e.replace(V2,(s,o,u,a,l,c)=>{if(o)n.push(Yc(o));else if(a){let f=n.join("");n=[],i.push(r.length===0?f:zc(t,r)(f)),r.push({inverse:u,styles:X2(a)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(zc(t,r)(n.join(""))),n=[],r.pop()}else n.push(c)}),i.push(n.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return i.join("")}});var ih=F((uR,rh)=>{"use strict";var wi=Nc(),{stdout:Oo,stderr:Ro}=Hc(),{stringReplaceAll:Z2,stringEncaseCRLFWithFirstIndex:Q2}=Wc(),{isArray:xn}=Array,Zc=["ansi","ansi","ansi256","ansi16m"],Ur=Object.create(null),e1=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Oo?Oo.level:0;t.level=e.level===void 0?r:e.level},To=class{constructor(e){return Qc(e)}},Qc=t=>{let e={};return e1(e,t),e.template=(...r)=>th(e.template,...r),Object.setPrototypeOf(e,_n.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=To,e.template};function _n(t){return Qc(t)}for(let[t,e]of Object.entries(wi))Ur[t]={get(){let r=Sn(this,Io(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Ur.visible={get(){let t=Sn(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var eh=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of eh)Ur[t]={get(){let{level:e}=this;return function(...r){let i=Io(wi.color[Zc[e]][t](...r),wi.color.close,this._styler);return Sn(this,i,this._isEmpty)}}};for(let t of eh){let e="bg"+t[0].toUpperCase()+t.slice(1);Ur[e]={get(){let{level:r}=this;return function(...i){let n=Io(wi.bgColor[Zc[r]][t](...i),wi.bgColor.close,this._styler);return Sn(this,n,this._isEmpty)}}}}var t1=Object.defineProperties(()=>{},{...Ur,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Io=(t,e,r)=>{let i,n;return r===void 0?(i=t,n=e):(i=r.openAll+t,n=e+r.closeAll),{open:t,close:e,openAll:i,closeAll:n,parent:r}},Sn=(t,e,r)=>{let i=(...n)=>xn(n[0])&&xn(n[0].raw)?Xc(i,th(i,...n)):Xc(i,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(i,t1),i._generator=t,i._styler=e,i._isEmpty=r,i},Xc=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:i,closeAll:n}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=Z2(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
28
+ `);return s!==-1&&(e=Q2(e,n,i,s)),i+e+n},Ao,th=(t,...e)=>{let[r]=e;if(!xn(r)||!xn(r.raw))return e.join(" ");let i=e.slice(1),n=[r.raw[0]];for(let s=1;s<r.length;s++)n.push(String(i[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Ao===void 0&&(Ao=Jc()),Ao(t,n.join(""))};Object.defineProperties(_n.prototype,Ur);var An=_n();An.supportsColor=Oo;An.stderr=_n({level:Ro?Ro.level:0});An.stderr.supportsColor=Ro;rh.exports=An});var nh=F((Bo,$o)=>{(function(t,e){typeof Bo=="object"&&typeof $o<"u"?$o.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.tinycolor=e())})(Bo,(function(){"use strict";function t(h){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},t(h)}var e=/^\s+/,r=/\s+$/;function i(h,D){if(h=h||"",D=D||{},h instanceof i)return h;if(!(this instanceof i))return new i(h,D);var p=n(h);this._originalInput=h,this._r=p.r,this._g=p.g,this._b=p.b,this._a=p.a,this._roundA=Math.round(100*this._a)/100,this._format=D.format||p.format,this._gradientType=D.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=p.ok}i.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var D=this.toRgb();return(D.r*299+D.g*587+D.b*114)/1e3},getLuminance:function(){var D=this.toRgb(),p,E,v,A,$,k;return p=D.r/255,E=D.g/255,v=D.b/255,p<=.03928?A=p/12.92:A=Math.pow((p+.055)/1.055,2.4),E<=.03928?$=E/12.92:$=Math.pow((E+.055)/1.055,2.4),v<=.03928?k=v/12.92:k=Math.pow((v+.055)/1.055,2.4),.2126*A+.7152*$+.0722*k},setAlpha:function(D){return this._a=J(D),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var D=a(this._r,this._g,this._b);return{h:D.h*360,s:D.s,v:D.v,a:this._a}},toHsvString:function(){var D=a(this._r,this._g,this._b),p=Math.round(D.h*360),E=Math.round(D.s*100),v=Math.round(D.v*100);return this._a==1?"hsv("+p+", "+E+"%, "+v+"%)":"hsva("+p+", "+E+"%, "+v+"%, "+this._roundA+")"},toHsl:function(){var D=o(this._r,this._g,this._b);return{h:D.h*360,s:D.s,l:D.l,a:this._a}},toHslString:function(){var D=o(this._r,this._g,this._b),p=Math.round(D.h*360),E=Math.round(D.s*100),v=Math.round(D.l*100);return this._a==1?"hsl("+p+", "+E+"%, "+v+"%)":"hsla("+p+", "+E+"%, "+v+"%, "+this._roundA+")"},toHex:function(D){return c(this._r,this._g,this._b,D)},toHexString:function(D){return"#"+this.toHex(D)},toHex8:function(D){return f(this._r,this._g,this._b,this._a,D)},toHex8String:function(D){return"#"+this.toHex8(D)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(j(this._r,255)*100)+"%",g:Math.round(j(this._g,255)*100)+"%",b:Math.round(j(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(j(this._r,255)*100)+"%, "+Math.round(j(this._g,255)*100)+"%, "+Math.round(j(this._b,255)*100)+"%)":"rgba("+Math.round(j(this._r,255)*100)+"%, "+Math.round(j(this._g,255)*100)+"%, "+Math.round(j(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[c(this._r,this._g,this._b,!0)]||!1},toFilter:function(D){var p="#"+m(this._r,this._g,this._b,this._a),E=p,v=this._gradientType?"GradientType = 1, ":"";if(D){var A=i(D);E="#"+m(A._r,A._g,A._b,A._a)}return"progid:DXImageTransform.Microsoft.gradient("+v+"startColorstr="+p+",endColorstr="+E+")"},toString:function(D){var p=!!D;D=D||this._format;var E=!1,v=this._a<1&&this._a>=0,A=!p&&v&&(D==="hex"||D==="hex6"||D==="hex3"||D==="hex4"||D==="hex8"||D==="name");return A?D==="name"&&this._a===0?this.toName():this.toRgbString():(D==="rgb"&&(E=this.toRgbString()),D==="prgb"&&(E=this.toPercentageRgbString()),(D==="hex"||D==="hex6")&&(E=this.toHexString()),D==="hex3"&&(E=this.toHexString(!0)),D==="hex4"&&(E=this.toHex8String(!0)),D==="hex8"&&(E=this.toHex8String()),D==="name"&&(E=this.toName()),D==="hsl"&&(E=this.toHslString()),D==="hsv"&&(E=this.toHsvString()),E||this.toHexString())},clone:function(){return i(this.toString())},_applyModification:function(D,p){var E=D.apply(null,[this].concat([].slice.call(p)));return this._r=E._r,this._g=E._g,this._b=E._b,this.setAlpha(E._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(O,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(C,arguments)},spin:function(){return this._applyModification(I,arguments)},_applyCombination:function(D,p){return D.apply(null,[this].concat([].slice.call(p)))},analogous:function(){return this._applyCombination(Q,arguments)},complement:function(){return this._applyCombination(B,arguments)},monochromatic:function(){return this._applyCombination(Ce,arguments)},splitcomplement:function(){return this._applyCombination(ae,arguments)},triad:function(){return this._applyCombination(te,[3])},tetrad:function(){return this._applyCombination(te,[4])}},i.fromRatio=function(h,D){if(t(h)=="object"){var p={};for(var E in h)h.hasOwnProperty(E)&&(E==="a"?p[E]=h[E]:p[E]=G(h[E]));h=p}return i(h,D)};function n(h){var D={r:0,g:0,b:0},p=1,E=null,v=null,A=null,$=!1,k=!1;return typeof h=="string"&&(h=y(h)),t(h)=="object"&&(_(h.r)&&_(h.g)&&_(h.b)?(D=s(h.r,h.g,h.b),$=!0,k=String(h.r).substr(-1)==="%"?"prgb":"rgb"):_(h.h)&&_(h.s)&&_(h.v)?(E=G(h.s),v=G(h.v),D=l(h.h,E,v),$=!0,k="hsv"):_(h.h)&&_(h.s)&&_(h.l)&&(E=G(h.s),A=G(h.l),D=u(h.h,E,A),$=!0,k="hsl"),h.hasOwnProperty("a")&&(p=h.a)),p=J(p),{ok:$,format:h.format||k,r:Math.min(255,Math.max(D.r,0)),g:Math.min(255,Math.max(D.g,0)),b:Math.min(255,Math.max(D.b,0)),a:p}}function s(h,D,p){return{r:j(h,255)*255,g:j(D,255)*255,b:j(p,255)*255}}function o(h,D,p){h=j(h,255),D=j(D,255),p=j(p,255);var E=Math.max(h,D,p),v=Math.min(h,D,p),A,$,k=(E+v)/2;if(E==v)A=$=0;else{var U=E-v;switch($=k>.5?U/(2-E-v):U/(E+v),E){case h:A=(D-p)/U+(D<p?6:0);break;case D:A=(p-h)/U+2;break;case p:A=(h-D)/U+4;break}A/=6}return{h:A,s:$,l:k}}function u(h,D,p){var E,v,A;h=j(h,360),D=j(D,100),p=j(p,100);function $(K,Re,le){return le<0&&(le+=1),le>1&&(le-=1),le<1/6?K+(Re-K)*6*le:le<1/2?Re:le<2/3?K+(Re-K)*(2/3-le)*6:K}if(D===0)E=v=A=p;else{var k=p<.5?p*(1+D):p+D-p*D,U=2*p-k;E=$(U,k,h+1/3),v=$(U,k,h),A=$(U,k,h-1/3)}return{r:E*255,g:v*255,b:A*255}}function a(h,D,p){h=j(h,255),D=j(D,255),p=j(p,255);var E=Math.max(h,D,p),v=Math.min(h,D,p),A,$,k=E,U=E-v;if($=E===0?0:U/E,E==v)A=0;else{switch(E){case h:A=(D-p)/U+(D<p?6:0);break;case D:A=(p-h)/U+2;break;case p:A=(h-D)/U+4;break}A/=6}return{h:A,s:$,v:k}}function l(h,D,p){h=j(h,360)*6,D=j(D,100),p=j(p,100);var E=Math.floor(h),v=h-E,A=p*(1-D),$=p*(1-v*D),k=p*(1-(1-v)*D),U=E%6,K=[p,$,A,A,k,p][U],Re=[k,p,p,$,A,A][U],le=[A,A,k,p,p,$][U];return{r:K*255,g:Re*255,b:le*255}}function c(h,D,p,E){var v=[Y(Math.round(h).toString(16)),Y(Math.round(D).toString(16)),Y(Math.round(p).toString(16))];return E&&v[0].charAt(0)==v[0].charAt(1)&&v[1].charAt(0)==v[1].charAt(1)&&v[2].charAt(0)==v[2].charAt(1)?v[0].charAt(0)+v[1].charAt(0)+v[2].charAt(0):v.join("")}function f(h,D,p,E,v){var A=[Y(Math.round(h).toString(16)),Y(Math.round(D).toString(16)),Y(Math.round(p).toString(16)),Y(cr(E))];return v&&A[0].charAt(0)==A[0].charAt(1)&&A[1].charAt(0)==A[1].charAt(1)&&A[2].charAt(0)==A[2].charAt(1)&&A[3].charAt(0)==A[3].charAt(1)?A[0].charAt(0)+A[1].charAt(0)+A[2].charAt(0)+A[3].charAt(0):A.join("")}function m(h,D,p,E){var v=[Y(cr(E)),Y(Math.round(h).toString(16)),Y(Math.round(D).toString(16)),Y(Math.round(p).toString(16))];return v.join("")}i.equals=function(h,D){return!h||!D?!1:i(h).toRgbString()==i(D).toRgbString()},i.random=function(){return i.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function d(h,D){D=D===0?0:D||10;var p=i(h).toHsl();return p.s-=D/100,p.s=V(p.s),i(p)}function g(h,D){D=D===0?0:D||10;var p=i(h).toHsl();return p.s+=D/100,p.s=V(p.s),i(p)}function C(h){return i(h).desaturate(100)}function S(h,D){D=D===0?0:D||10;var p=i(h).toHsl();return p.l+=D/100,p.l=V(p.l),i(p)}function O(h,D){D=D===0?0:D||10;var p=i(h).toRgb();return p.r=Math.max(0,Math.min(255,p.r-Math.round(255*-(D/100)))),p.g=Math.max(0,Math.min(255,p.g-Math.round(255*-(D/100)))),p.b=Math.max(0,Math.min(255,p.b-Math.round(255*-(D/100)))),i(p)}function T(h,D){D=D===0?0:D||10;var p=i(h).toHsl();return p.l-=D/100,p.l=V(p.l),i(p)}function I(h,D){var p=i(h).toHsl(),E=(p.h+D)%360;return p.h=E<0?360+E:E,i(p)}function B(h){var D=i(h).toHsl();return D.h=(D.h+180)%360,i(D)}function te(h,D){if(isNaN(D)||D<=0)throw new Error("Argument to polyad must be a positive number");for(var p=i(h).toHsl(),E=[i(h)],v=360/D,A=1;A<D;A++)E.push(i({h:(p.h+A*v)%360,s:p.s,l:p.l}));return E}function ae(h){var D=i(h).toHsl(),p=D.h;return[i(h),i({h:(p+72)%360,s:D.s,l:D.l}),i({h:(p+216)%360,s:D.s,l:D.l})]}function Q(h,D,p){D=D||6,p=p||30;var E=i(h).toHsl(),v=360/p,A=[i(h)];for(E.h=(E.h-(v*D>>1)+720)%360;--D;)E.h=(E.h+v)%360,A.push(i(E));return A}function Ce(h,D){D=D||6;for(var p=i(h).toHsv(),E=p.h,v=p.s,A=p.v,$=[],k=1/D;D--;)$.push(i({h:E,s:v,v:A})),A=(A+k)%1;return $}i.mix=function(h,D,p){p=p===0?0:p||50;var E=i(h).toRgb(),v=i(D).toRgb(),A=p/100,$={r:(v.r-E.r)*A+E.r,g:(v.g-E.g)*A+E.g,b:(v.b-E.b)*A+E.b,a:(v.a-E.a)*A+E.a};return i($)},i.readability=function(h,D){var p=i(h),E=i(D);return(Math.max(p.getLuminance(),E.getLuminance())+.05)/(Math.min(p.getLuminance(),E.getLuminance())+.05)},i.isReadable=function(h,D,p){var E=i.readability(h,D),v,A;switch(A=!1,v=b(p),v.level+v.size){case"AAsmall":case"AAAlarge":A=E>=4.5;break;case"AAlarge":A=E>=3;break;case"AAAsmall":A=E>=7;break}return A},i.mostReadable=function(h,D,p){var E=null,v=0,A,$,k,U;p=p||{},$=p.includeFallbackColors,k=p.level,U=p.size;for(var K=0;K<D.length;K++)A=i.readability(h,D[K]),A>v&&(v=A,E=i(D[K]));return i.isReadable(h,E,{level:k,size:U})||!$?E:(p.includeFallbackColors=!1,i.mostReadable(h,["#fff","#000"],p))};var R=i.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=i.hexNames=L(R);function L(h){var D={};for(var p in h)h.hasOwnProperty(p)&&(D[h[p]]=p);return D}function J(h){return h=parseFloat(h),(isNaN(h)||h<0||h>1)&&(h=1),h}function j(h,D){z(h)&&(h="100%");var p=W(h);return h=Math.min(D,Math.max(0,parseFloat(h))),p&&(h=parseInt(h*D,10)/100),Math.abs(h-D)<1e-6?1:h%D/parseFloat(D)}function V(h){return Math.min(1,Math.max(0,h))}function q(h){return parseInt(h,16)}function z(h){return typeof h=="string"&&h.indexOf(".")!=-1&&parseFloat(h)===1}function W(h){return typeof h=="string"&&h.indexOf("%")!=-1}function Y(h){return h.length==1?"0"+h:""+h}function G(h){return h<=1&&(h=h*100+"%"),h}function cr(h){return Math.round(parseFloat(h)*255).toString(16)}function me(h){return q(h)/255}var w=(function(){var h="[-\\+]?\\d+%?",D="[-\\+]?\\d*\\.\\d+%?",p="(?:"+D+")|(?:"+h+")",E="[\\s|\\(]+("+p+")[,|\\s]+("+p+")[,|\\s]+("+p+")\\s*\\)?",v="[\\s|\\(]+("+p+")[,|\\s]+("+p+")[,|\\s]+("+p+")[,|\\s]+("+p+")\\s*\\)?";return{CSS_UNIT:new RegExp(p),rgb:new RegExp("rgb"+E),rgba:new RegExp("rgba"+v),hsl:new RegExp("hsl"+E),hsla:new RegExp("hsla"+v),hsv:new RegExp("hsv"+E),hsva:new RegExp("hsva"+v),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function _(h){return!!w.CSS_UNIT.exec(h)}function y(h){h=h.replace(e,"").replace(r,"").toLowerCase();var D=!1;if(R[h])h=R[h],D=!0;else if(h=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var p;return(p=w.rgb.exec(h))?{r:p[1],g:p[2],b:p[3]}:(p=w.rgba.exec(h))?{r:p[1],g:p[2],b:p[3],a:p[4]}:(p=w.hsl.exec(h))?{h:p[1],s:p[2],l:p[3]}:(p=w.hsla.exec(h))?{h:p[1],s:p[2],l:p[3],a:p[4]}:(p=w.hsv.exec(h))?{h:p[1],s:p[2],v:p[3]}:(p=w.hsva.exec(h))?{h:p[1],s:p[2],v:p[3],a:p[4]}:(p=w.hex8.exec(h))?{r:q(p[1]),g:q(p[2]),b:q(p[3]),a:me(p[4]),format:D?"name":"hex8"}:(p=w.hex6.exec(h))?{r:q(p[1]),g:q(p[2]),b:q(p[3]),format:D?"name":"hex"}:(p=w.hex4.exec(h))?{r:q(p[1]+""+p[1]),g:q(p[2]+""+p[2]),b:q(p[3]+""+p[3]),a:me(p[4]+""+p[4]),format:D?"name":"hex8"}:(p=w.hex3.exec(h))?{r:q(p[1]+""+p[1]),g:q(p[2]+""+p[2]),b:q(p[3]+""+p[3]),format:D?"name":"hex"}:!1}function b(h){var D,p;return h=h||{level:"AA",size:"small"},D=(h.level||"AA").toUpperCase(),p=(h.size||"small").toLowerCase(),D!=="AA"&&D!=="AAA"&&(D="AA"),p!=="small"&&p!=="large"&&(p="small"),{level:D,size:p}}return i}))});var hh=F((aR,ch)=>{var vi=nh(),ah={r:256,g:256,b:256,a:1},lh={h:360,s:1,v:1,a:1};function Lo(t,e,r){let i={};for(let n in t)t.hasOwnProperty(n)&&(i[n]=r===0?0:(e[n]-t[n])/r);return i}function No(t,e,r,i){let n={};for(let s in e)e.hasOwnProperty(s)&&(n[s]=t[s]*r+e[s],n[s]=n[s]<0?n[s]+i[s]:i[s]!==1?n[s]%i[s]:n[s]);return n}function Po(t,e,r){let i=t.color.toRgb(),n=e.color.toRgb(),s=Lo(i,n,r),o=[t.color];for(let u=1;u<r;u++){let a=No(s,i,u,ah);o.push(vi(a))}return o}function sh(t,e,r,i){let n=t.color.toHsv(),s=e.color.toHsv();if(n.s===0||s.s===0)return Po(t,e,r);let o;if(typeof i=="boolean")o=i;else{let c=n.h<s.h&&s.h-n.h<180||n.h>s.h&&n.h-s.h>180;o=i==="long"&&c||i==="short"&&!c}let u=Lo(n,s,r),a=[t.color],l;n.h<=s.h&&!o||n.h>=s.h&&o?l=s.h-n.h:o?l=360-s.h+n.h:l=360-n.h+s.h,u.h=Math.pow(-1,o?1:0)*Math.abs(l)/r;for(let c=1;c<r;c++){let f=No(u,n,c,lh);a.push(vi(f))}return a}function oh(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let i=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);i.push(Math.max(1,Math.round(o)))}let n=1;for(let s=r-1;s--;)n+=i[s];for(;n!==e;)if(n<e){let s=Math.min.apply(null,i);i[i.indexOf(s)]++,n++}else{let s=Math.max.apply(null,i);i[i.indexOf(s)]--,n--}return i}function uh(t,e,r,i){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let n,s;for(let a=0,l=t.length;a<l-1;a++)if(e>=t[a].pos&&e<t[a+1].pos){n=t[a],s=t[a+1];break}n||(n=s=t[t.length-1]);let o=Lo(n.color[r](),s.color[r](),(s.pos-n.pos)*100),u=No(o,n.color[r](),(e-n.pos)*100,i);return vi(u)}var ko=class t{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,i=e.length,n=-1,s=!1;this.stops=e.map((o,u)=>{let a=o.pos!==void 0;if(r^a)throw new Error("Cannot mix positionned and not posionned color stops");if(a){let l=o.color!==void 0;if(!l&&(s||u===0||u===i-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!l,o={color:l?vi(o.color):null,colorLess:!l,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<n)throw new Error("Color stops positions are not ordered");n=o.pos}else o={color:vi(o.color!==void 0?o.color:o),pos:u/(i-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),i++),this.stops[i-1].pos!==1&&this.stops.push({color:this.stops[i-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new t(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(i=>{e.push({color:i.color,pos:i.pos/2})}),this.stops.slice(0,-1).forEach(i=>{r.push({color:i.color,pos:1-i.pos/2})}),new t(e.concat(r.reverse()))}rgb(e){let r=oh(this.stops,e),i=[];this.stops.forEach((n,s)=>{n.colorLess&&(n.color=Po(this.stops[s-1],this.stops[s+1],2)[1])});for(let n=0,s=this.stops.length;n<s-1;n++){let o=Po(this.stops[n],this.stops[n+1],r[n]);i.splice(i.length,0,...o)}return i.push(this.stops[this.stops.length-1].color),i}hsv(e,r){let i=oh(this.stops,e),n=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=sh(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let u=sh(this.stops[s],this.stops[s+1],i[s],r);n.splice(n.length,0,...u)}return n.push(this.stops[this.stops.length-1].color),n}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let i=e+"-gradient("+r;return this.stops.forEach(function(n){i+=", "+(n.colorLess?"":n.color.toRgbString()+" ")+n.pos*100+"%"}),i+=")",i}rgbAt(e){return uh(this.stops,e,"toRgb",ah)}hsvAt(e){return uh(this.stops,e,"toHsv",lh)}};ch.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new ko(t)}});var mh=F((lR,On)=>{"use strict";var dh=ih(),r1=hh(),fh=/\s/g;function Mo(...t){let e=r1.apply(this,t),r=(i,n)=>i1(i?i.toString():"",e,n);return r.multiline=(i,n)=>n1(i?i.toString():"",e,n),r}var ph=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function i1(t,e,r){let i=Dh(r),n=Math.max(t.replace(fh,"").length,e.stops.length),s=ph(e,i,n),o="";for(let u of t)o+=u.match(fh)?u:dh.hex(s.shift().toHex())(u);return o}function n1(t,e,r){let i=Dh(r),n=t.split(`
29
+ `),s=Math.max.apply(null,n.map(a=>a.length).concat([e.stops.length])),o=ph(e,i,s),u=[];for(let a of n){let l=o.slice(0),c="";for(let f of a)c+=dh.hex(l.shift().toHex())(f);u.push(c)}return u.join(`
30
+ `)}function Dh(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var xi={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};On.exports=Mo;for(let t in xi)On.exports[t]=e=>new Mo(xi[t].colors)(e,xi[t].options),On.exports[t].multiline=e=>new Mo(xi[t].colors).multiline(e,xi[t].options)});var Eh=F((pR,Fh)=>{var Zt=X("constants"),h1=process.cwd,Rn=null,f1=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Rn||(Rn=h1.call(process)),Rn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Uo=process.chdir,process.chdir=function(t){Rn=null,Uo.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Uo));var Uo;Fh.exports=d1;function d1(t){Zt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=u(t.stat),t.fstat=u(t.fstat),t.lstat=u(t.lstat),t.statSync=a(t.statSync),t.fstatSync=a(t.fstatSync),t.lstatSync=a(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,f,m){m&&process.nextTick(m)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,f,m,d){d&&process.nextTick(d)},t.lchownSync=function(){}),f1==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(c){function f(m,d,g){var C=Date.now(),S=0;c(m,d,function O(T){if(T&&(T.code==="EACCES"||T.code==="EPERM"||T.code==="EBUSY")&&Date.now()-C<6e4){setTimeout(function(){t.stat(d,function(I,B){I&&I.code==="ENOENT"?c(m,d,O):g(T)})},S),S<100&&(S+=10);return}g&&g(T)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(c){function f(m,d,g,C,S,O){var T;if(O&&typeof O=="function"){var I=0;T=function(B,te,ae){if(B&&B.code==="EAGAIN"&&I<10)return I++,c.call(t,m,d,g,C,S,T);O.apply(this,arguments)}}return c.call(t,m,d,g,C,S,T)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(c){return function(f,m,d,g,C){for(var S=0;;)try{return c.call(t,f,m,d,g,C)}catch(O){if(O.code==="EAGAIN"&&S<10){S++;continue}throw O}}})(t.readSync);function e(c){c.lchmod=function(f,m,d){c.open(f,Zt.O_WRONLY|Zt.O_SYMLINK,m,function(g,C){if(g){d&&d(g);return}c.fchmod(C,m,function(S){c.close(C,function(O){d&&d(S||O)})})})},c.lchmodSync=function(f,m){var d=c.openSync(f,Zt.O_WRONLY|Zt.O_SYMLINK,m),g=!0,C;try{C=c.fchmodSync(d,m),g=!1}finally{if(g)try{c.closeSync(d)}catch{}else c.closeSync(d)}return C}}function r(c){Zt.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,m,d,g){c.open(f,Zt.O_SYMLINK,function(C,S){if(C){g&&g(C);return}c.futimes(S,m,d,function(O){c.close(S,function(T){g&&g(O||T)})})})},c.lutimesSync=function(f,m,d){var g=c.openSync(f,Zt.O_SYMLINK),C,S=!0;try{C=c.futimesSync(g,m,d),S=!1}finally{if(S)try{c.closeSync(g)}catch{}else c.closeSync(g)}return C}):c.futimes&&(c.lutimes=function(f,m,d,g){g&&process.nextTick(g)},c.lutimesSync=function(){})}function i(c){return c&&function(f,m,d){return c.call(t,f,m,function(g){l(g)&&(g=null),d&&d.apply(this,arguments)})}}function n(c){return c&&function(f,m){try{return c.call(t,f,m)}catch(d){if(!l(d))throw d}}}function s(c){return c&&function(f,m,d,g){return c.call(t,f,m,d,function(C){l(C)&&(C=null),g&&g.apply(this,arguments)})}}function o(c){return c&&function(f,m,d){try{return c.call(t,f,m,d)}catch(g){if(!l(g))throw g}}}function u(c){return c&&function(f,m,d){typeof m=="function"&&(d=m,m=null);function g(C,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),d&&d.apply(this,arguments)}return m?c.call(t,f,m,g):c.call(t,f,g)}}function a(c){return c&&function(f,m){var d=m?c.call(t,f,m):c.call(t,f);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var wh=F((DR,Ch)=>{var bh=X("stream").Stream;Ch.exports=p1;function p1(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);bh.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var o=Object.keys(n),u=0,a=o.length;u<a;u++){var l=o[u];this[l]=n[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(c,f){if(c){s.emit("error",c),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);bh.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var s=Object.keys(n),o=0,u=s.length;o<u;o++){var a=s[o];this[a]=n[a]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var xh=F((mR,vh)=>{"use strict";vh.exports=m1;var D1=Object.getPrototypeOf||function(t){return t.__proto__};function m1(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:D1(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var Oh=F((gR,Wo)=>{var ge=X("fs"),g1=Eh(),y1=wh(),F1=xh(),Tn=X("util"),Te,Bn;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Te=Symbol.for("graceful-fs.queue"),Bn=Symbol.for("graceful-fs.previous")):(Te="___graceful-fs.queue",Bn="___graceful-fs.previous");function E1(){}function Ah(t,e){Object.defineProperty(t,Te,{get:function(){return e}})}var fr=E1;Tn.debuglog?fr=Tn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(fr=function(){var t=Tn.format.apply(Tn,arguments);t="GFS4: "+t.split(/\n/).join(`
31
+ GFS4: `),console.error(t)});ge[Te]||(_h=global[Te]||[],Ah(ge,_h),ge.close=(function(t){function e(r,i){return t.call(ge,r,function(n){n||Sh(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Bn,{value:t}),e})(ge.close),ge.closeSync=(function(t){function e(r){t.apply(ge,arguments),Sh()}return Object.defineProperty(e,Bn,{value:t}),e})(ge.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){fr(ge[Te]),X("assert").equal(ge[Te].length,0)}));var _h;global[Te]||Ah(global,ge[Te]);Wo.exports=Ho(F1(ge));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ge.__patched&&(Wo.exports=Ho(ge),ge.__patched=!0);function Ho(t){g1(t),t.gracefulify=Ho,t.createReadStream=te,t.createWriteStream=ae;var e=t.readFile;t.readFile=r;function r(R,P,L){return typeof P=="function"&&(L=P,P=null),J(R,P,L);function J(j,V,q,z){return e(j,V,function(W){W&&(W.code==="EMFILE"||W.code==="ENFILE")?Gr([J,[j,V,q],W,z||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(R,P,L,J){return typeof L=="function"&&(J=L,L=null),j(R,P,L,J);function j(V,q,z,W,Y){return i(V,q,z,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?Gr([j,[V,q,z,W],G,Y||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(R,P,L,J){return typeof L=="function"&&(J=L,L=null),j(R,P,L,J);function j(V,q,z,W,Y){return s(V,q,z,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?Gr([j,[V,q,z,W],G,Y||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var u=t.copyFile;u&&(t.copyFile=a);function a(R,P,L,J){return typeof L=="function"&&(J=L,L=0),j(R,P,L,J);function j(V,q,z,W,Y){return u(V,q,z,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?Gr([j,[V,q,z,W],G,Y||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var l=t.readdir;t.readdir=f;var c=/^v[0-5]\./;function f(R,P,L){typeof P=="function"&&(L=P,P=null);var J=c.test(process.version)?function(q,z,W,Y){return l(q,j(q,z,W,Y))}:function(q,z,W,Y){return l(q,z,j(q,z,W,Y))};return J(R,P,L);function j(V,q,z,W){return function(Y,G){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?Gr([J,[V,q,z],Y,W||Date.now(),Date.now()]):(G&&G.sort&&G.sort(),typeof z=="function"&&z.call(this,Y,G))}}}if(process.version.substr(0,4)==="v0.8"){var m=y1(t);O=m.ReadStream,I=m.WriteStream}var d=t.ReadStream;d&&(O.prototype=Object.create(d.prototype),O.prototype.open=T);var g=t.WriteStream;g&&(I.prototype=Object.create(g.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return O},set:function(R){O=R},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return I},set:function(R){I=R},enumerable:!0,configurable:!0});var C=O;Object.defineProperty(t,"FileReadStream",{get:function(){return C},set:function(R){C=R},enumerable:!0,configurable:!0});var S=I;Object.defineProperty(t,"FileWriteStream",{get:function(){return S},set:function(R){S=R},enumerable:!0,configurable:!0});function O(R,P){return this instanceof O?(d.apply(this,arguments),this):O.apply(Object.create(O.prototype),arguments)}function T(){var R=this;Ce(R.path,R.flags,R.mode,function(P,L){P?(R.autoClose&&R.destroy(),R.emit("error",P)):(R.fd=L,R.emit("open",L),R.read())})}function I(R,P){return this instanceof I?(g.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function B(){var R=this;Ce(R.path,R.flags,R.mode,function(P,L){P?(R.destroy(),R.emit("error",P)):(R.fd=L,R.emit("open",L))})}function te(R,P){return new t.ReadStream(R,P)}function ae(R,P){return new t.WriteStream(R,P)}var Q=t.open;t.open=Ce;function Ce(R,P,L,J){return typeof L=="function"&&(J=L,L=null),j(R,P,L,J);function j(V,q,z,W,Y){return Q(V,q,z,function(G,cr){G&&(G.code==="EMFILE"||G.code==="ENFILE")?Gr([j,[V,q,z,W],G,Y||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}return t}function Gr(t){fr("ENQUEUE",t[0].name,t[1]),ge[Te].push(t),Go()}var In;function Sh(){for(var t=Date.now(),e=0;e<ge[Te].length;++e)ge[Te][e].length>2&&(ge[Te][e][3]=t,ge[Te][e][4]=t);Go()}function Go(){if(clearTimeout(In),In=void 0,ge[Te].length!==0){var t=ge[Te].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)fr("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){fr("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var u=Date.now()-s,a=Math.max(s-n,1),l=Math.min(a*1.2,100);u>=l?(fr("RETRY",e.name,r),e.apply(null,r.concat([n]))):ge[Te].push(t)}In===void 0&&(In=setTimeout(Go,0))}}});function j1(){let t=new Map;for(let[e,r]of Object.entries(fe)){for(let[i,n]of Object.entries(r))fe[i]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},r[i]=fe[i],t.set(n[0],n[1]);Object.defineProperty(fe,e,{value:r,enumerable:!1})}return Object.defineProperty(fe,"codes",{value:t,enumerable:!1}),fe.color.close="\x1B[39m",fe.bgColor.close="\x1B[49m",fe.color.ansi=Zh(),fe.color.ansi256=Qh(),fe.color.ansi16m=ef(),fe.bgColor.ansi=Zh(10),fe.bgColor.ansi256=Qh(10),fe.bgColor.ansi16m=ef(10),Object.defineProperties(fe,{rgbToAnsi256:{value(e,r,i){return e===r&&r===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[i]=r;i.length===3&&(i=[...i].map(s=>s+s).join(""));let n=Number.parseInt(i,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:e=>fe.rgbToAnsi256(...fe.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,i,n;if(e>=232)r=((e-232)*10+8)/255,i=r,n=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,i=Math.floor(u/6)/5,n=u%6/5}let s=Math.max(r,i,n)*2;if(s===0)return 30;let o=30+(Math.round(n)<<2|Math.round(i)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,i)=>fe.ansi256ToAnsi(fe.rgbToAnsi256(e,r,i)),enumerable:!1},hexToAnsi:{value:e=>fe.ansi256ToAnsi(fe.hexToAnsi256(e)),enumerable:!1}}),fe}var Zh,Qh,ef,fe,L8,N1,M1,N8,q1,ft,tf=oe(()=>{Zh=(t=0)=>e=>`\x1B[${e+t}m`,Qh=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,ef=(t=0)=>(e,r,i)=>`\x1B[${38+t};2;${e};${r};${i}m`,fe={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]}},L8=Object.keys(fe.modifier),N1=Object.keys(fe.color),M1=Object.keys(fe.bgColor),N8=[...N1,...M1];q1=j1(),ft=q1});import tu from"node:process";import U1 from"node:os";import rf from"node:tty";function st(t,e=globalThis.Deno?globalThis.Deno.args:tu.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),n=e.indexOf("--");return i!==-1&&(n===-1||i<n)}function H1(){if("FORCE_COLOR"in de)return de.FORCE_COLOR==="true"?1:de.FORCE_COLOR==="false"?0:de.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(de.FORCE_COLOR,10),3)}function G1(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function W1(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let i=H1();i!==void 0&&(Mn=i);let n=r?Mn:i;if(n===0)return 0;if(r){if(st("color=16m")||st("color=full")||st("color=truecolor"))return 3;if(st("color=256"))return 2}if("TF_BUILD"in de&&"AGENT_NAME"in de)return 1;if(t&&!e&&n===void 0)return 0;let s=n||0;if(de.TERM==="dumb")return s;if(tu.platform==="win32"){let o=U1.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in de)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in de)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in de)||de.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in de)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(de.TEAMCITY_VERSION)?1:0;if(de.COLORTERM==="truecolor"||de.TERM==="xterm-kitty"||de.TERM==="xterm-ghostty"||de.TERM==="wezterm")return 3;if("TERM_PROGRAM"in de){let o=Number.parseInt((de.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(de.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(de.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(de.TERM)||"COLORTERM"in de?1:s}function nf(t,e={}){let r=W1(t,{streamIsTTY:t&&t.isTTY,...e});return G1(r)}var de,Mn,V1,sf,of=oe(()=>{({env:de}=tu);st("no-color")||st("no-colors")||st("color=false")||st("color=never")?Mn=0:(st("color")||st("colors")||st("color=true")||st("color=always"))&&(Mn=1);V1={stdout:nf({isTTY:rf.isatty(1)}),stderr:nf({isTTY:rf.isatty(2)})},sf=V1});function uf(t,e,r){let i=t.indexOf(e);if(i===-1)return t;let n=e.length,s=0,o="";do o+=t.slice(s,i)+e+r,s=i+n,i=t.indexOf(e,s);while(i!==-1);return o+=t.slice(s),o}function af(t,e,r,i){let n=0,s="";do{let o=t[i-1]==="\r";s+=t.slice(n,o?i-1:i)+e+(o?`\r
32
+ `:`
33
+ `)+r,n=i+1,i=t.indexOf(`
34
+ `,n)}while(i!==-1);return s+=t.slice(n),s}var lf=oe(()=>{});function Bi(t){return Y1(t)}var cf,hf,ru,zr,Ii,ff,Yr,z1,Y1,iu,K1,J1,nu,jn,X1,Z1,Y8,x,Pt=oe(()=>{tf();of();lf();({stdout:cf,stderr:hf}=sf),ru=Symbol("GENERATOR"),zr=Symbol("STYLER"),Ii=Symbol("IS_EMPTY"),ff=["ansi","ansi","ansi256","ansi16m"],Yr=Object.create(null),z1=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=cf?cf.level:0;t.level=e.level===void 0?r:e.level},Y1=t=>{let e=(...r)=>r.join(" ");return z1(e,t),Object.setPrototypeOf(e,Bi.prototype),e};Object.setPrototypeOf(Bi.prototype,Function.prototype);for(let[t,e]of Object.entries(ft))Yr[t]={get(){let r=jn(this,nu(e.open,e.close,this[zr]),this[Ii]);return Object.defineProperty(this,t,{value:r}),r}};Yr.visible={get(){let t=jn(this,this[zr],!0);return Object.defineProperty(this,"visible",{value:t}),t}};iu=(t,e,r,...i)=>t==="rgb"?e==="ansi16m"?ft[r].ansi16m(...i):e==="ansi256"?ft[r].ansi256(ft.rgbToAnsi256(...i)):ft[r].ansi(ft.rgbToAnsi(...i)):t==="hex"?iu("rgb",e,r,...ft.hexToRgb(...i)):ft[r][t](...i),K1=["rgb","hex","ansi256"];for(let t of K1){Yr[t]={get(){let{level:r}=this;return function(...i){let n=nu(iu(t,ff[r],"color",...i),ft.color.close,this[zr]);return jn(this,n,this[Ii])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Yr[e]={get(){let{level:r}=this;return function(...i){let n=nu(iu(t,ff[r],"bgColor",...i),ft.bgColor.close,this[zr]);return jn(this,n,this[Ii])}}}}J1=Object.defineProperties(()=>{},{...Yr,level:{enumerable:!0,get(){return this[ru].level},set(t){this[ru].level=t}}}),nu=(t,e,r)=>{let i,n;return r===void 0?(i=t,n=e):(i=r.openAll+t,n=e+r.closeAll),{open:t,close:e,openAll:i,closeAll:n,parent:r}},jn=(t,e,r)=>{let i=(...n)=>X1(i,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(i,J1),i[ru]=t,i[zr]=e,i[Ii]=r,i},X1=(t,e)=>{if(t.level<=0||!e)return t[Ii]?"":e;let r=t[zr];if(r===void 0)return e;let{openAll:i,closeAll:n}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=uf(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
35
+ `);return s!==-1&&(e=af(e,n,i,s)),i+e+n};Object.defineProperties(Bi.prototype,Yr);Z1=Bi(),Y8=Bi({level:hf?hf.level:0}),x=Z1});var $i=F((J8,df)=>{"use strict";var Q1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};df.exports=Q1});var Pi=F((X8,pf)=>{"use strict";var eb="2.0.0",tb=Number.MAX_SAFE_INTEGER||9007199254740991,rb=16,ib=250,nb=["major","premajor","minor","preminor","patch","prepatch","prerelease"];pf.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:rb,MAX_SAFE_BUILD_LENGTH:ib,MAX_SAFE_INTEGER:tb,RELEASE_TYPES:nb,SEMVER_SPEC_VERSION:eb,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Kr=F((bt,Df)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:su,MAX_SAFE_BUILD_LENGTH:sb,MAX_LENGTH:ob}=Pi(),ub=$i();bt=Df.exports={};var ab=bt.re=[],lb=bt.safeRe=[],N=bt.src=[],cb=bt.safeSrc=[],M=bt.t={},hb=0,ou="[a-zA-Z0-9-]",fb=[["\\s",1],["\\d",ob],[ou,sb]],db=t=>{for(let[e,r]of fb)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},Z=(t,e,r)=>{let i=db(e),n=hb++;ub(t,n,e),M[t]=n,N[n]=e,cb[n]=i,ab[n]=new RegExp(e,r?"g":void 0),lb[n]=new RegExp(i,r?"g":void 0)};Z("NUMERICIDENTIFIER","0|[1-9]\\d*");Z("NUMERICIDENTIFIERLOOSE","\\d+");Z("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${ou}*`);Z("MAINVERSION",`(${N[M.NUMERICIDENTIFIER]})\\.(${N[M.NUMERICIDENTIFIER]})\\.(${N[M.NUMERICIDENTIFIER]})`);Z("MAINVERSIONLOOSE",`(${N[M.NUMERICIDENTIFIERLOOSE]})\\.(${N[M.NUMERICIDENTIFIERLOOSE]})\\.(${N[M.NUMERICIDENTIFIERLOOSE]})`);Z("PRERELEASEIDENTIFIER",`(?:${N[M.NONNUMERICIDENTIFIER]}|${N[M.NUMERICIDENTIFIER]})`);Z("PRERELEASEIDENTIFIERLOOSE",`(?:${N[M.NONNUMERICIDENTIFIER]}|${N[M.NUMERICIDENTIFIERLOOSE]})`);Z("PRERELEASE",`(?:-(${N[M.PRERELEASEIDENTIFIER]}(?:\\.${N[M.PRERELEASEIDENTIFIER]})*))`);Z("PRERELEASELOOSE",`(?:-?(${N[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${N[M.PRERELEASEIDENTIFIERLOOSE]})*))`);Z("BUILDIDENTIFIER",`${ou}+`);Z("BUILD",`(?:\\+(${N[M.BUILDIDENTIFIER]}(?:\\.${N[M.BUILDIDENTIFIER]})*))`);Z("FULLPLAIN",`v?${N[M.MAINVERSION]}${N[M.PRERELEASE]}?${N[M.BUILD]}?`);Z("FULL",`^${N[M.FULLPLAIN]}$`);Z("LOOSEPLAIN",`[v=\\s]*${N[M.MAINVERSIONLOOSE]}${N[M.PRERELEASELOOSE]}?${N[M.BUILD]}?`);Z("LOOSE",`^${N[M.LOOSEPLAIN]}$`);Z("GTLT","((?:<|>)?=?)");Z("XRANGEIDENTIFIERLOOSE",`${N[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Z("XRANGEIDENTIFIER",`${N[M.NUMERICIDENTIFIER]}|x|X|\\*`);Z("XRANGEPLAIN",`[v=\\s]*(${N[M.XRANGEIDENTIFIER]})(?:\\.(${N[M.XRANGEIDENTIFIER]})(?:\\.(${N[M.XRANGEIDENTIFIER]})(?:${N[M.PRERELEASE]})?${N[M.BUILD]}?)?)?`);Z("XRANGEPLAINLOOSE",`[v=\\s]*(${N[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[M.XRANGEIDENTIFIERLOOSE]})(?:${N[M.PRERELEASELOOSE]})?${N[M.BUILD]}?)?)?`);Z("XRANGE",`^${N[M.GTLT]}\\s*${N[M.XRANGEPLAIN]}$`);Z("XRANGELOOSE",`^${N[M.GTLT]}\\s*${N[M.XRANGEPLAINLOOSE]}$`);Z("COERCEPLAIN",`(^|[^\\d])(\\d{1,${su}})(?:\\.(\\d{1,${su}}))?(?:\\.(\\d{1,${su}}))?`);Z("COERCE",`${N[M.COERCEPLAIN]}(?:$|[^\\d])`);Z("COERCEFULL",N[M.COERCEPLAIN]+`(?:${N[M.PRERELEASE]})?(?:${N[M.BUILD]})?(?:$|[^\\d])`);Z("COERCERTL",N[M.COERCE],!0);Z("COERCERTLFULL",N[M.COERCEFULL],!0);Z("LONETILDE","(?:~>?)");Z("TILDETRIM",`(\\s*)${N[M.LONETILDE]}\\s+`,!0);bt.tildeTrimReplace="$1~";Z("TILDE",`^${N[M.LONETILDE]}${N[M.XRANGEPLAIN]}$`);Z("TILDELOOSE",`^${N[M.LONETILDE]}${N[M.XRANGEPLAINLOOSE]}$`);Z("LONECARET","(?:\\^)");Z("CARETTRIM",`(\\s*)${N[M.LONECARET]}\\s+`,!0);bt.caretTrimReplace="$1^";Z("CARET",`^${N[M.LONECARET]}${N[M.XRANGEPLAIN]}$`);Z("CARETLOOSE",`^${N[M.LONECARET]}${N[M.XRANGEPLAINLOOSE]}$`);Z("COMPARATORLOOSE",`^${N[M.GTLT]}\\s*(${N[M.LOOSEPLAIN]})$|^$`);Z("COMPARATOR",`^${N[M.GTLT]}\\s*(${N[M.FULLPLAIN]})$|^$`);Z("COMPARATORTRIM",`(\\s*)${N[M.GTLT]}\\s*(${N[M.LOOSEPLAIN]}|${N[M.XRANGEPLAIN]})`,!0);bt.comparatorTrimReplace="$1$2$3";Z("HYPHENRANGE",`^\\s*(${N[M.XRANGEPLAIN]})\\s+-\\s+(${N[M.XRANGEPLAIN]})\\s*$`);Z("HYPHENRANGELOOSE",`^\\s*(${N[M.XRANGEPLAINLOOSE]})\\s+-\\s+(${N[M.XRANGEPLAINLOOSE]})\\s*$`);Z("STAR","(<|>)?=?\\s*\\*");Z("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Z("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var qn=F((Z8,mf)=>{"use strict";var pb=Object.freeze({loose:!0}),Db=Object.freeze({}),mb=t=>t?typeof t!="object"?pb:t:Db;mf.exports=mb});var uu=F((Q8,Ff)=>{"use strict";var gf=/^[0-9]+$/,yf=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=gf.test(t),i=gf.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},gb=(t,e)=>yf(e,t);Ff.exports={compareIdentifiers:yf,rcompareIdentifiers:gb}});var Le=F((e6,bf)=>{"use strict";var Un=$i(),{MAX_LENGTH:Ef,MAX_SAFE_INTEGER:Hn}=Pi(),{safeRe:Gn,t:Wn}=Kr(),yb=qn(),{compareIdentifiers:au}=uu(),lu=class t{constructor(e,r){if(r=yb(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.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>Ef)throw new TypeError(`version is longer than ${Ef} characters`);Un("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let i=e.trim().match(r.loose?Gn[Wn.LOOSE]:Gn[Wn.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>Hn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Hn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Hn||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let s=+n;if(s>=0&&s<Hn)return s}return n}):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(Un("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(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 t||(e=new t(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 r=0;do{let i=this.prerelease[r],n=e.prerelease[r];if(Un("prerelease compare",r,i,n),i===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(i===void 0)return-1;if(i===n)continue;return au(i,n)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let i=this.build[r],n=e.build[r];if(Un("build compare",r,i,n),i===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(i===void 0)return-1;if(i===n)continue;return au(i,n)}while(++r)}inc(e,r,i){if(e.startsWith("pre")){if(!r&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let n=`-${r}`.match(this.options.loose?Gn[Wn.PRERELEASELOOSE]:Gn[Wn.PRERELEASE]);if(!n||n[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,i),this.inc("pre",r,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,i),this.inc("pre",r,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 n=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let s=[r,n];i===!1&&(s=[r]),au(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};bf.exports=lu});var mr=F((t6,wf)=>{"use strict";var Cf=Le(),Fb=(t,e,r=!1)=>{if(t instanceof Cf)return t;try{return new Cf(t,e)}catch(i){if(!r)return null;throw i}};wf.exports=Fb});var cu=F((r6,xf)=>{"use strict";var vf=mr(),Eb=(t,e)=>{let r=vf(t,null,!0),i=vf(e,null,!0),n=r.compare(i);if(n===0)return null;let s=n>0,o=s?r:i,u=s?i:r,a=!!o.prerelease.length;if(!!u.prerelease.length&&!a){if(!u.patch&&!u.minor)return"major";if(u.compareMain(o)===0)return u.minor&&!u.patch?"minor":"patch"}let c=a?"pre":"";return r.major!==i.major?c+"major":r.minor!==i.minor?c+"minor":r.patch!==i.patch?c+"patch":"prerelease"};xf.exports=Eb});var ot=F((i6,Sf)=>{"use strict";var _f=Le(),bb=(t,e,r)=>new _f(t,r).compare(new _f(e,r));Sf.exports=bb});var Jr=F((n6,Af)=>{"use strict";var Cb=ot(),wb=(t,e,r)=>Cb(t,e,r)>0;Af.exports=wb});var Fu=F(Fr=>{Fr.parse=Fr.decode=Tb;Fr.stringify=Fr.encode=Kf;Fr.safe=Qr;Fr.unsafe=Xn;var yu=typeof process<"u"&&process.platform==="win32"?`\r
36
+ `:`
37
+ `;function Kf(t,e){var r=[],i="";typeof e=="string"?e={section:e,whitespace:!1}:(e=e||{},e.whitespace=e.whitespace===!0);var n=e.whitespace?" = ":"=";return Object.keys(t).forEach(function(s,o,u){var a=t[s];a&&Array.isArray(a)?a.forEach(function(l){i+=Qr(s+"[]")+n+Qr(l)+`
38
+ `}):a&&typeof a=="object"?r.push(s):i+=Qr(s)+n+Qr(a)+yu}),e.section&&i.length&&(i="["+Qr(e.section)+"]"+yu+i),r.forEach(function(s,o,u){var a=Jf(s).join("\\."),l=(e.section?e.section+".":"")+a,c=Kf(t[s],{section:l,whitespace:e.whitespace});i.length&&c.length&&(i+=yu),i+=c}),i}function Jf(t){return t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function Tb(t){var e={},r=e,i=null,n=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=t.split(/[\r\n]+/g);return s.forEach(function(o,u,a){if(!(!o||o.match(/^\s*[;#]/))){var l=o.match(n);if(l){if(l[1]!==void 0){if(i=Xn(l[1]),i==="__proto__"){r={};return}r=e[i]=e[i]||{};return}var c=Xn(l[2]);if(c!=="__proto__"){var f=l[3]?Xn(l[4]):!0;switch(f){case"true":case"false":case"null":f=JSON.parse(f)}if(c.length>2&&c.slice(-2)==="[]"){if(c=c.substring(0,c.length-2),c==="__proto__")return;r[c]?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]}Array.isArray(r[c])?r[c].push(f):r[c]=f}}}}),Object.keys(e).filter(function(o,u,a){if(!e[o]||typeof e[o]!="object"||Array.isArray(e[o]))return!1;var l=Jf(o),c=e,f=l.pop(),m=f.replace(/\\\./g,".");return l.forEach(function(d,g,C){d!=="__proto__"&&((!c[d]||typeof c[d]!="object")&&(c[d]={}),c=c[d])}),c===e&&m===f?!1:(c[m]=e[o],!0)}).forEach(function(o,u,a){delete e[o]}),e}function Xf(t){return t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'"}function Qr(t){return typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&Xf(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#")}function Xn(t,e){if(t=(t||"").trim(),Xf(t)){t.charAt(0)==="'"&&(t=t.substr(1,t.length-2));try{t=JSON.parse(t)}catch{}}else{for(var r=!1,i="",n=0,s=t.length;n<s;n++){var o=t.charAt(n);if(r)"\\;#".indexOf(o)!==-1?i+=o:i+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:i+=o}}return r&&(i+="\\"),i.trim()}return t}});var ed=F((G6,Qf)=>{"use strict";var Eu=1,Zf=2;function Ib(){return""}function Bb(t,e,r){return t.slice(e,r).replace(/\S/g," ")}Qf.exports=function(t,e){e=e||{};for(var r,i,n=!1,s=!1,o=0,u="",a=e.whitespace===!1?Ib:Bb,l=0;l<t.length;l++){if(r=t[l],i=t[l+1],!s&&r==='"'){var c=t[l-1]==="\\"&&t[l-2]!=="\\";c||(n=!n)}if(!n){if(!s&&r+i==="//")u+=t.slice(o,l),o=l,s=Eu,l++;else if(s===Eu&&r+i===`\r
39
+ `){l++,s=!1,u+=a(t,o,l),o=l;continue}else if(s===Eu&&r===`
40
+ `)s=!1,u+=a(t,o,l),o=l;else if(!s&&r+i==="/*"){u+=t.slice(o,l),o=l,s=Zf,l++;continue}else if(s===Zf&&r+i==="*/"){l++,s=!1,u+=a(t,o,l+1),o=l+1;continue}}}return u+(s?a(t.substr(o)):t.substr(o))}});var rd=F(ei=>{"use strict";var td=X("fs"),$b=Fu(),Mi=X("path"),Pb=ed(),kb=ei.parse=function(t){return/^\s*{/.test(t)?JSON.parse(Pb(t)):$b.parse(t)},Lb=ei.file=function(){var t=[].slice.call(arguments).filter(function(n){return n!=null});for(var e in t)if(typeof t[e]!="string")return;var r=Mi.join.apply(null,t),i;try{return td.readFileSync(r,"utf-8")}catch{return}},W6=ei.json=function(){var t=Lb.apply(null,arguments);return t?kb(t):null},V6=ei.env=function(t,e){e=e||process.env;var r={},i=t.length;for(var n in e)if(n.toLowerCase().indexOf(t.toLowerCase())===0){for(var s=n.substring(i).split("__"),o;(o=s.indexOf(""))>-1;)s.splice(o,1);var u=r;s.forEach(function(l,c){!l||typeof u!="object"||(c===s.length-1&&(u[l]=e[n]),u[l]===void 0&&(u[l]={}),u=u[l])})}return r},z6=ei.find=function(){var t=Mi.join.apply(null,[].slice.call(arguments));function e(r,i){var n=Mi.join(r,i);try{return td.statSync(n),n}catch{if(Mi.dirname(r)!==r)return e(Mi.dirname(r),i)}}return e(process.cwd(),t)}});var ad=F((K6,ud)=>{"use strict";function nd(t){return t instanceof Buffer||t instanceof Date||t instanceof RegExp}function sd(t){if(t instanceof Buffer){var e=Buffer.alloc?Buffer.alloc(t.length):new Buffer(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function od(t){var e=[];return t.forEach(function(r,i){typeof r=="object"&&r!==null?Array.isArray(r)?e[i]=od(r):nd(r)?e[i]=sd(r):e[i]=bu({},r):e[i]=r}),e}function id(t,e){return e==="__proto__"?void 0:t[e]}var bu=ud.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var t=arguments[0],e=Array.prototype.slice.call(arguments,1),r,i,n;return e.forEach(function(s){typeof s!="object"||s===null||Array.isArray(s)||Object.keys(s).forEach(function(o){if(i=id(t,o),r=id(s,o),r!==t)if(typeof r!="object"||r===null){t[o]=r;return}else if(Array.isArray(r)){t[o]=od(r);return}else if(nd(r)){t[o]=sd(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){t[o]=bu({},r);return}else{t[o]=bu(i,r);return}})}),t}});var fd=F((J6,hd)=>{"use strict";function Nb(t,e){var r=t;e.slice(0,-1).forEach(function(n){r=r[n]||{}});var i=e[e.length-1];return i in r}function ld(t){return typeof t=="number"||/^0x[0-9a-f]+$/i.test(t)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function cd(t,e){return e==="constructor"&&typeof t[e]=="function"||e==="__proto__"}hd.exports=function(t,e){e||(e={});var r={bools:{},strings:{},unknownFn:null};typeof e.unknown=="function"&&(r.unknownFn=e.unknown),typeof e.boolean=="boolean"&&e.boolean?r.allBools=!0:[].concat(e.boolean).filter(Boolean).forEach(function(B){r.bools[B]=!0});var i={};function n(B){return i[B].some(function(te){return r.bools[te]})}Object.keys(e.alias||{}).forEach(function(B){i[B]=[].concat(e.alias[B]),i[B].forEach(function(te){i[te]=[B].concat(i[B].filter(function(ae){return te!==ae}))})}),[].concat(e.string).filter(Boolean).forEach(function(B){r.strings[B]=!0,i[B]&&[].concat(i[B]).forEach(function(te){r.strings[te]=!0})});var s=e.default||{},o={_:[]};function u(B,te){return r.allBools&&/^--[^=]+$/.test(te)||r.strings[B]||r.bools[B]||i[B]}function a(B,te,ae){for(var Q=B,Ce=0;Ce<te.length-1;Ce++){var R=te[Ce];if(cd(Q,R))return;Q[R]===void 0&&(Q[R]={}),(Q[R]===Object.prototype||Q[R]===Number.prototype||Q[R]===String.prototype)&&(Q[R]={}),Q[R]===Array.prototype&&(Q[R]=[]),Q=Q[R]}var P=te[te.length-1];cd(Q,P)||((Q===Object.prototype||Q===Number.prototype||Q===String.prototype)&&(Q={}),Q===Array.prototype&&(Q=[]),Q[P]===void 0||r.bools[P]||typeof Q[P]=="boolean"?Q[P]=ae:Array.isArray(Q[P])?Q[P].push(ae):Q[P]=[Q[P],ae])}function l(B,te,ae){if(!(ae&&r.unknownFn&&!u(B,ae)&&r.unknownFn(ae)===!1)){var Q=!r.strings[B]&&ld(te)?Number(te):te;a(o,B.split("."),Q),(i[B]||[]).forEach(function(Ce){a(o,Ce.split("."),Q)})}}Object.keys(r.bools).forEach(function(B){l(B,s[B]===void 0?!1:s[B])});var c=[];t.indexOf("--")!==-1&&(c=t.slice(t.indexOf("--")+1),t=t.slice(0,t.indexOf("--")));for(var f=0;f<t.length;f++){var m=t[f],d,g;if(/^--.+=/.test(m)){var C=m.match(/^--([^=]+)=([\s\S]*)$/);d=C[1];var S=C[2];r.bools[d]&&(S=S!=="false"),l(d,S,m)}else if(/^--no-.+/.test(m))d=m.match(/^--no-(.+)/)[1],l(d,!1,m);else if(/^--.+/.test(m))d=m.match(/^--(.+)/)[1],g=t[f+1],g!==void 0&&!/^(-|--)[^-]/.test(g)&&!r.bools[d]&&!r.allBools&&(!i[d]||!n(d))?(l(d,g,m),f+=1):/^(true|false)$/.test(g)?(l(d,g==="true",m),f+=1):l(d,r.strings[d]?"":!0,m);else if(/^-[^-]+/.test(m)){for(var O=m.slice(1,-1).split(""),T=!1,I=0;I<O.length;I++){if(g=m.slice(I+2),g==="-"){l(O[I],g,m);continue}if(/[A-Za-z]/.test(O[I])&&g[0]==="="){l(O[I],g.slice(1),m),T=!0;break}if(/[A-Za-z]/.test(O[I])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(g)){l(O[I],g,m),T=!0;break}if(O[I+1]&&O[I+1].match(/\W/)){l(O[I],m.slice(I+2),m),T=!0;break}else l(O[I],r.strings[O[I]]?"":!0,m)}d=m.slice(-1)[0],!T&&d!=="-"&&(t[f+1]&&!/^(-|--)[^-]/.test(t[f+1])&&!r.bools[d]&&(!i[d]||!n(d))?(l(d,t[f+1],m),f+=1):t[f+1]&&/^(true|false)$/.test(t[f+1])?(l(d,t[f+1]==="true",m),f+=1):l(d,r.strings[d]?"":!0,m))}else if((!r.unknownFn||r.unknownFn(m)!==!1)&&o._.push(r.strings._||!ld(m)?m:Number(m)),e.stopEarly){o._.push.apply(o._,t.slice(f+1));break}}return Object.keys(s).forEach(function(B){Nb(o,B.split("."))||(a(o,B.split("."),s[B]),(i[B]||[]).forEach(function(te){a(o,te.split("."),s[B])}))}),e["--"]?o["--"]=c.slice():c.forEach(function(B){o._.push(B)}),o}});var md=F((X6,Dd)=>{var ji=rd(),ti=X("path").join,Mb=ad(),dd="/etc",pd=process.platform==="win32",qi=pd?process.env.USERPROFILE:process.env.HOME;Dd.exports=function(t,e,r,i){if(typeof t!="string")throw new Error("rc(name): name *must* be string");r||(r=fd()(process.argv.slice(2))),e=(typeof e=="string"?ji.json(e):e)||{},i=i||ji.parse;var n=ji.env(t+"_"),s=[e],o=[];function u(a){if(!(o.indexOf(a)>=0)){var l=ji.file(a);l&&(s.push(i(l)),o.push(a))}}return pd||[ti(dd,t,"config"),ti(dd,t+"rc")].forEach(u),qi&&[ti(qi,".config",t,"config"),ti(qi,".config",t),ti(qi,"."+t,"config"),ti(qi,"."+t+"rc")].forEach(u),u(ji.find("."+t+"rc")),n.config&&u(n.config),r.config&&u(r.config),Mb.apply(null,s.concat([n,r,o.length?{configs:o,config:o[o.length-1]}:void 0]))}});var Fd=F((Q6,yd)=>{var tr=X("constants"),jb=process.cwd,Zn=null,qb=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Zn||(Zn=jb.call(process)),Zn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(wu=process.chdir,process.chdir=function(t){Zn=null,wu.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,wu));var wu;yd.exports=Ub;function Ub(t){tr.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=u(t.stat),t.fstat=u(t.fstat),t.lstat=u(t.lstat),t.statSync=a(t.statSync),t.fstatSync=a(t.fstatSync),t.lstatSync=a(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,f,m){m&&process.nextTick(m)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,f,m,d){d&&process.nextTick(d)},t.lchownSync=function(){}),qb==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(c){function f(m,d,g){var C=Date.now(),S=0;c(m,d,function O(T){if(T&&(T.code==="EACCES"||T.code==="EPERM")&&Date.now()-C<6e4){setTimeout(function(){t.stat(d,function(I,B){I&&I.code==="ENOENT"?c(m,d,O):g(T)})},S),S<100&&(S+=10);return}g&&g(T)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(c){function f(m,d,g,C,S,O){var T;if(O&&typeof O=="function"){var I=0;T=function(B,te,ae){if(B&&B.code==="EAGAIN"&&I<10)return I++,c.call(t,m,d,g,C,S,T);O.apply(this,arguments)}}return c.call(t,m,d,g,C,S,T)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(c){return function(f,m,d,g,C){for(var S=0;;)try{return c.call(t,f,m,d,g,C)}catch(O){if(O.code==="EAGAIN"&&S<10){S++;continue}throw O}}})(t.readSync);function e(c){c.lchmod=function(f,m,d){c.open(f,tr.O_WRONLY|tr.O_SYMLINK,m,function(g,C){if(g){d&&d(g);return}c.fchmod(C,m,function(S){c.close(C,function(O){d&&d(S||O)})})})},c.lchmodSync=function(f,m){var d=c.openSync(f,tr.O_WRONLY|tr.O_SYMLINK,m),g=!0,C;try{C=c.fchmodSync(d,m),g=!1}finally{if(g)try{c.closeSync(d)}catch{}else c.closeSync(d)}return C}}function r(c){tr.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,m,d,g){c.open(f,tr.O_SYMLINK,function(C,S){if(C){g&&g(C);return}c.futimes(S,m,d,function(O){c.close(S,function(T){g&&g(O||T)})})})},c.lutimesSync=function(f,m,d){var g=c.openSync(f,tr.O_SYMLINK),C,S=!0;try{C=c.futimesSync(g,m,d),S=!1}finally{if(S)try{c.closeSync(g)}catch{}else c.closeSync(g)}return C}):c.futimes&&(c.lutimes=function(f,m,d,g){g&&process.nextTick(g)},c.lutimesSync=function(){})}function i(c){return c&&function(f,m,d){return c.call(t,f,m,function(g){l(g)&&(g=null),d&&d.apply(this,arguments)})}}function n(c){return c&&function(f,m){try{return c.call(t,f,m)}catch(d){if(!l(d))throw d}}}function s(c){return c&&function(f,m,d,g){return c.call(t,f,m,d,function(C){l(C)&&(C=null),g&&g.apply(this,arguments)})}}function o(c){return c&&function(f,m,d){try{return c.call(t,f,m,d)}catch(g){if(!l(g))throw g}}}function u(c){return c&&function(f,m,d){typeof m=="function"&&(d=m,m=null);function g(C,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),d&&d.apply(this,arguments)}return m?c.call(t,f,m,g):c.call(t,f,g)}}function a(c){return c&&function(f,m){var d=m?c.call(t,f,m):c.call(t,f);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var Cd=F((eT,bd)=>{var Ed=X("stream").Stream;bd.exports=Hb;function Hb(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);Ed.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var o=Object.keys(n),u=0,a=o.length;u<a;u++){var l=o[u];this[l]=n[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(c,f){if(c){s.emit("error",c),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);Ed.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var s=Object.keys(n),o=0,u=s.length;o<u;o++){var a=s[o];this[a]=n[a]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var vd=F((tT,wd)=>{"use strict";wd.exports=Wb;var Gb=Object.getPrototypeOf||function(t){return t.__proto__};function Wb(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Gb(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var Ad=F((rT,_u)=>{var ye=X("fs"),Vb=Fd(),zb=Cd(),Yb=vd(),Qn=X("util"),Be,ts;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Be=Symbol.for("graceful-fs.queue"),ts=Symbol.for("graceful-fs.previous")):(Be="___graceful-fs.queue",ts="___graceful-fs.previous");function Kb(){}function Sd(t,e){Object.defineProperty(t,Be,{get:function(){return e}})}var Er=Kb;Qn.debuglog?Er=Qn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Er=function(){var t=Qn.format.apply(Qn,arguments);t="GFS4: "+t.split(/\n/).join(`
41
+ GFS4: `),console.error(t)});ye[Be]||(xd=global[Be]||[],Sd(ye,xd),ye.close=(function(t){function e(r,i){return t.call(ye,r,function(n){n||_d(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,ts,{value:t}),e})(ye.close),ye.closeSync=(function(t){function e(r){t.apply(ye,arguments),_d()}return Object.defineProperty(e,ts,{value:t}),e})(ye.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Er(ye[Be]),X("assert").equal(ye[Be].length,0)}));var xd;global[Be]||Sd(global,ye[Be]);_u.exports=vu(Yb(ye));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ye.__patched&&(_u.exports=vu(ye),ye.__patched=!0);function vu(t){Vb(t),t.gracefulify=vu,t.createReadStream=te,t.createWriteStream=ae;var e=t.readFile;t.readFile=r;function r(R,P,L){return typeof P=="function"&&(L=P,P=null),J(R,P,L);function J(j,V,q,z){return e(j,V,function(W){W&&(W.code==="EMFILE"||W.code==="ENFILE")?ri([J,[j,V,q],W,z||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(R,P,L,J){return typeof L=="function"&&(J=L,L=null),j(R,P,L,J);function j(V,q,z,W,Y){return i(V,q,z,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?ri([j,[V,q,z,W],G,Y||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(R,P,L,J){return typeof L=="function"&&(J=L,L=null),j(R,P,L,J);function j(V,q,z,W,Y){return s(V,q,z,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?ri([j,[V,q,z,W],G,Y||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var u=t.copyFile;u&&(t.copyFile=a);function a(R,P,L,J){return typeof L=="function"&&(J=L,L=0),j(R,P,L,J);function j(V,q,z,W,Y){return u(V,q,z,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?ri([j,[V,q,z,W],G,Y||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var l=t.readdir;t.readdir=f;var c=/^v[0-5]\./;function f(R,P,L){typeof P=="function"&&(L=P,P=null);var J=c.test(process.version)?function(q,z,W,Y){return l(q,j(q,z,W,Y))}:function(q,z,W,Y){return l(q,z,j(q,z,W,Y))};return J(R,P,L);function j(V,q,z,W){return function(Y,G){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?ri([J,[V,q,z],Y,W||Date.now(),Date.now()]):(G&&G.sort&&G.sort(),typeof z=="function"&&z.call(this,Y,G))}}}if(process.version.substr(0,4)==="v0.8"){var m=zb(t);O=m.ReadStream,I=m.WriteStream}var d=t.ReadStream;d&&(O.prototype=Object.create(d.prototype),O.prototype.open=T);var g=t.WriteStream;g&&(I.prototype=Object.create(g.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return O},set:function(R){O=R},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return I},set:function(R){I=R},enumerable:!0,configurable:!0});var C=O;Object.defineProperty(t,"FileReadStream",{get:function(){return C},set:function(R){C=R},enumerable:!0,configurable:!0});var S=I;Object.defineProperty(t,"FileWriteStream",{get:function(){return S},set:function(R){S=R},enumerable:!0,configurable:!0});function O(R,P){return this instanceof O?(d.apply(this,arguments),this):O.apply(Object.create(O.prototype),arguments)}function T(){var R=this;Ce(R.path,R.flags,R.mode,function(P,L){P?(R.autoClose&&R.destroy(),R.emit("error",P)):(R.fd=L,R.emit("open",L),R.read())})}function I(R,P){return this instanceof I?(g.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function B(){var R=this;Ce(R.path,R.flags,R.mode,function(P,L){P?(R.destroy(),R.emit("error",P)):(R.fd=L,R.emit("open",L))})}function te(R,P){return new t.ReadStream(R,P)}function ae(R,P){return new t.WriteStream(R,P)}var Q=t.open;t.open=Ce;function Ce(R,P,L,J){return typeof L=="function"&&(J=L,L=null),j(R,P,L,J);function j(V,q,z,W,Y){return Q(V,q,z,function(G,cr){G&&(G.code==="EMFILE"||G.code==="ENFILE")?ri([j,[V,q,z,W],G,Y||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}return t}function ri(t){Er("ENQUEUE",t[0].name,t[1]),ye[Be].push(t),xu()}var es;function _d(){for(var t=Date.now(),e=0;e<ye[Be].length;++e)ye[Be][e].length>2&&(ye[Be][e][3]=t,ye[Be][e][4]=t);xu()}function xu(){if(clearTimeout(es),es=void 0,ye[Be].length!==0){var t=ye[Be].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)Er("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Er("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var u=Date.now()-s,a=Math.max(s-n,1),l=Math.min(a*1.2,100);u>=l?(Er("RETRY",e.name,r),e.apply(null,r.concat([n]))):ye[Be].push(t)}es===void 0&&(es=setTimeout(xu,0))}}});var Od=F(ii=>{"use strict";var Jb=ii&&ii.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ii,"__esModule",{value:!0});ii.readCAFileSync=void 0;var Xb=Jb(Ad());function Zb(t){try{let e=Xb.default.readFileSync(t,"utf8"),r="-----END CERTIFICATE-----";return e.split(r).filter(n=>!!n.trim()).map(n=>`${n.trimLeft()}${r}`)}catch(e){if(e.code==="ENOENT")return;throw e}}ii.readCAFileSync=Zb});var Rd=F(br=>{"use strict";var Qb=br&&br.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),eC=br&&br.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Qb(e,t,r)};Object.defineProperty(br,"__esModule",{value:!0});eC(Od(),br)});var Bd=F((sT,Id)=>{Id.exports=Td;function Cr(t,e){if(typeof Object.setPrototypeOf=="function")return Object.setPrototypeOf(t,e);t.__proto__=e}function Td(){this.list=[];var t=null;Object.defineProperty(this,"root",{get:function(){return t},set:function(e){t=e,this.list.length&&Cr(this.list[this.list.length-1],e)},enumerable:!0,configurable:!0})}Td.prototype={get length(){return this.list.length},get keys(){var t=[];for(var e in this.list[0])t.push(e);return t},get snapshot(){var t={};return this.keys.forEach(function(e){t[e]=this.get(e)},this),t},get store(){return this.list[0]},push:function(t){return typeof t!="object"&&(t={valueOf:t}),this.list.length>=1&&Cr(this.list[this.list.length-1],t),Cr(t,this.root),this.list.push(t)},pop:function(){return this.list.length>=2&&Cr(this.list[this.list.length-2],this.root),this.list.pop()},unshift:function(t){return Cr(t,this.list[0]||this.root),this.list.unshift(t)},shift:function(){return this.list.length===1&&Cr(this.list[0],this.root),this.list.shift()},get:function(t){return this.list[0][t]},set:function(t,e,r){return this.length||this.push({}),r&&this.list[0].hasOwnProperty(t)&&this.push({}),this.list[0][t]=e},forEach:function(t,e){for(var r in this.list[0])t.call(e,r,this.list[0][r])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){for(var t=this.list.splice.apply(this.list,arguments),e=0,r=this.list.length;e<r;e++)Cr(this.list[e],this.list[e+1]||this.root);return t}}});var Ld=F((kt,kd)=>{var $d=Bd(),Ui=X("path"),rs=X("fs"),Su=Fu(),Au=X("events").EventEmitter,tC=X("url"),rC=X("http"),kt=kd.exports=function(){for(var t=[].slice.call(arguments),e=new Ne;t.length;){var r=t.shift();r&&e.push(typeof r=="string"?nC(r):r)}return e},oT=kt.find=function(){var t=Ui.join.apply(null,[].slice.call(arguments));function e(r,i){var n=Ui.join(r,i);try{return rs.statSync(n),n}catch{if(Ui.dirname(r)!==r)return e(Ui.dirname(r),i)}}return e(__dirname,t)},iC=kt.parse=function(t,e,r){if(t=""+t,r)if(r==="json")if(this.emit)try{return JSON.parse(t)}catch(i){this.emit("error",i)}else return JSON.parse(t);else return Su.parse(t);else try{return JSON.parse(t)}catch{return Su.parse(t)}},nC=kt.json=function(){var t=[].slice.call(arguments).filter(function(i){return i!=null}),e=Ui.join.apply(null,t),r;try{r=rs.readFileSync(e,"utf-8")}catch{return}return iC(r,e,"json")},uT=kt.env=function(t,e){e=e||process.env;var r={},i=t.length;for(var n in e)n.indexOf(t)===0&&(r[n.substring(i)]=e[n]);return r};kt.ConfigChain=Ne;function Ne(){Au.apply(this),$d.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var Pd={constructor:{value:Ne}};Object.keys(Au.prototype).forEach(function(t){Pd[t]=Object.getOwnPropertyDescriptor(Au.prototype,t)});Ne.prototype=Object.create($d.prototype,Pd);Ne.prototype.del=function(t,e){if(e){var r=this.sources[e];if(r=r&&r.data,!r)return this.emit("error",new Error("not found "+e));delete r[t]}else for(var i=0,n=this.list.length;i<n;i++)delete this.list[i][t];return this};Ne.prototype.set=function(t,e,r){var i;if(r){if(i=this.sources[r],i=i&&i.data,!i)return this.emit("error",new Error("not found "+r))}else if(i=this.list[0],!i)return this.emit("error",new Error("cannot set, no confs!"));return i[t]=e,this};Ne.prototype.get=function(t,e){return e?(e=this.sources[e],e&&(e=e.data),e&&Object.hasOwnProperty.call(e,t)?e[t]:void 0):this.list[0][t]};Ne.prototype.save=function(t,s,r){typeof s=="function"&&(r=s,s=null);var i=this.sources[t];if(!i||!(i.path||i.source)||!i.data)return this.emit("error",new Error("bad save target: "+t));if(i.source){var n=i.prefix||"";return Object.keys(i.data).forEach(function(u){i.source[n+u]=i.data[u]}),this}var s=s||i.type,o=i.data;return i.type==="json"?o=JSON.stringify(o):o=Su.stringify(o),this._saving++,rs.writeFile(i.path,o,"utf8",function(u){if(this._saving--,u)return r?r(u):this.emit("error",u);this._saving===0&&(r&&r(),this.emit("save"))}.bind(this)),this};Ne.prototype.addFile=function(t,e,r){r=r||t;var i={__source__:r};return this.sources[r]={path:t,type:e},this.push(i),this._await(),rs.readFile(t,"utf8",function(n,s){n&&this.emit("error",n),this.addString(s,t,e,i)}.bind(this)),this};Ne.prototype.addEnv=function(t,e,r){r=r||"env";var i=kt.env(t,e);return this.sources[r]={data:i,source:e,prefix:t},this.add(i,r)};Ne.prototype.addUrl=function(t,e,r){this._await();var i=tC.format(t);r=r||i;var n={__source__:r};return this.sources[r]={href:i,type:e},this.push(n),rC.request(t,function(s){var o=[],u=s.headers["content-type"];e||(e=u.indexOf("json")!==-1?"json":u.indexOf("ini")!==-1?"ini":i.match(/\.json$/)?"json":i.match(/\.ini$/)?"ini":null,n.type=e),s.on("data",o.push.bind(o)).on("end",function(){this.addString(Buffer.concat(o),i,e,n)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this};Ne.prototype.addString=function(t,e,r,i){return t=this.parse(t,e,r),this.add(t,i),this};Ne.prototype.add=function(t,e){if(e&&typeof e=="object"){var r=this.list.indexOf(e);if(r===-1)return this.emit("error",new Error("bad marker"));this.splice(r,1,t),e=e.__source__,this.sources[e]=this.sources[e]||{},this.sources[e].data=t,this._resolve()}else typeof e=="string"&&(this.sources[e]=this.sources[e]||{},this.sources[e].data=t),this._await(),this.push(t),process.nextTick(this._resolve.bind(this));return this};Ne.prototype.parse=kt.parse;Ne.prototype._await=function(){this._awaiting++};Ne.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}});var jd=F((aT,Md)=>{Md.exports=function(t){let e=t.indexOf(":");if(e===-1)return Nd(t);let r=t.substr(0,e),i=t.substr(e+1);return`${r}:${Nd(i)}`};function Nd(t){if(t=t.toLowerCase(),t==="_authtoken")return"_authToken";let e=t[0];for(let r=1;r<t.length;r++)e+=t[r]==="_"?"-":t[r];return e}});var qd=F(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.envReplace=void 0;var sC=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function oC(t,e){return t.replace(sC,uC.bind(null,e))}is.envReplace=oC;function uC(t,e,r,i){if(r.length%2)return e.slice((r.length+1)/2);let n=lC(t,i);if(n===void 0)throw new Error(`Failed to replace env in config: ${e}`);return`${r.slice(r.length/2)}${n}`}var aC=/([^:-]+)(:?)-(.+)/;function lC(t,e){let r=e.match(aC);if(!r)return t[e];let[,i,n,s]=r;return Object.prototype.hasOwnProperty.call(t,i)?!t[i]&&n?s:t[i]:s}});var Ud=F(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.envReplace=void 0;var cC=qd();Object.defineProperty(ns,"envReplace",{enumerable:!0,get:function(){return cC.envReplace}})});var Hd=F(Hi=>{"use strict";var hC=X("fs"),wr=X("path"),{envReplace:Ou}=Ud(),fC=t=>typeof t!="string"?t:Ou(t,process.env),dC=(t,e,r)=>{if(typeof e!="string")return e;let i=[].concat(t[r]),n=i.indexOf(wr)!==-1,s=i.indexOf(Boolean)!==-1,o=i.indexOf(String)!==-1,u=i.indexOf(Number)!==-1;if(e=`${e}`.trim(),/^".*"$/.test(e))try{e=JSON.parse(e)}catch{throw new Error(`Failed parsing JSON config key ${r}: ${e}`)}if(s&&!o&&e==="")return!0;switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}let a=Ou(e,process.env);if((r.endsWith(":tokenHelper")||r==="tokenHelper")&&a!==e)throw new Error(`It is not allowed to use environment variables in the value of the ${r} setting.`);return e=a,n&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&process.env.HOME&&(e=wr.resolve(process.env.HOME,e.substr(2))),e=wr.resolve(e)),u&&!isNaN(e)&&(e=Number(e)),e},pC=t=>{t=wr.resolve(t);let e=!1;for(;wr.basename(t)==="node_modules";)t=wr.dirname(t),e=!0;if(e)return t;let r=(i,n)=>{let s=/^[a-zA-Z]:(\\|\/)?$/;if(i==="/"||process.platform==="win32"&&s.test(i))return n;try{let o=hC.readdirSync(i);if(o.includes("node_modules")||o.includes("package.json")||o.includes("package.json5")||o.includes("package.yaml")||o.includes("pnpm-workspace.yaml"))return i;let u=wr.dirname(i);return u===i?n:r(u,n)}catch(o){if(i===n){if(o.code==="ENOENT")return n;throw o}return n}};return r(t,t)};Hi.envReplace=Ou;Hi.findPrefix=pC;Hi.parseField=dC;Hi.parseKey=fC});var Vd=F(Wd=>{"use strict";var vr=X("path"),DC=X("stream").Stream,ss=X("url"),mC=()=>{},gC=()=>[],Gd=()=>{};Wd.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],audit:Boolean,"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:vr,cache:vr,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:vr,"global-style":Boolean,group:[Number,String],"https-proxy":[null,ss],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":vr,"init-author-name":String,"init-author-email":String,"init-author-url":["",ss],"init-license":String,"init-version":Gd,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":gC(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:DC,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,Gd],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:vr,production:Boolean,progress:Boolean,proxy:[null,!1,ss],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,ss],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:vr,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:vr,umask:mC,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}});var Kd=F((dT,Yd)=>{"use strict";var{readCAFileSync:yC}=Rd(),zd=X("fs"),Ru=X("path"),{ConfigChain:FC}=Ld(),EC=jd(),Tu=Hd(),Iu=class extends FC{constructor(e,r){super(e),this.root=e,this._parseField=Tu.parseField.bind(null,r||Vd())}add(e,r){try{for(let[i,n]of Object.entries(e)){let s=Tu.parseKey(i);s!==i&&delete e[i],e[s]=this._parseField(n,s)}}catch(i){throw i}return super.add(e,r)}addFile(e,r){r=r||e;let i={__source__:r};this.sources[r]={path:e,type:"ini"},this.push(i),this._await();try{let n=zd.readFileSync(e,"utf8");this.addString(n,e,"ini",i)}catch(n){if(n.code==="ENOENT")this.add({},i);else if(n.code!=="EISDIR")return`Issue while reading "${e}". ${n.message}`}}addEnv(e){e=e||process.env;let r={};return Object.keys(e).filter(i=>/^npm_config_/i.test(i)).forEach(i=>{if(!e[i])return;let n=EC(i.substr(11)),s=e[i];r[n]=bC(n,s)}),super.addEnv("",r,"env")}loadPrefix(){let e=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:i=>{let n=this.get("global");this[n?"globalPrefix":"localPrefix"]=i},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:i=>{this.set("prefix",i)},get:()=>Ru.resolve(this.get("prefix"))});let r;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:i=>{r=i},get:()=>r}),Object.prototype.hasOwnProperty.call(e,"prefix"))r=Ru.resolve(e.prefix);else try{r=Tu.findPrefix(process.cwd())}catch(i){throw i}return r}loadCAFile(e){if(!e)return;let r=yC(e);r&&this.set("ca",r)}loadUser(){let e=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){e.user=Number(process.env.SUDO_UID);return}let r=Ru.resolve(this.get("prefix"));try{let i=zd.statSync(r);e.user=i.uid}catch(i){if(i.code==="ENOENT")return;throw i}}};function bC(t,e){function r(i){return i.indexOf(`
42
+
43
+ `)?i.split(`
44
+
45
+ `):i.split(",")}switch(t){case"hoist-pattern":case"public-hoist-pattern":return r(e)}return e}Yd.exports=Iu});var tp=F(ep=>{"use strict";var Zd=X("os"),Lt=X("path"),Qd=Zd.tmpdir(),CC=process.getuid?process.getuid():process.pid,wC=()=>!0,Jd=process.platform==="win32",Xd={editor:()=>process.env.EDITOR||process.env.VISUAL||(Jd?"notepad.exe":"vi"),shell:()=>Jd?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},vC={fromString:()=>process.umask()},ni=Zd.homedir();ni?process.env.HOME=ni:ni=Lt.resolve(Qd,"npm-"+CC);var xC=process.platform==="win32"?"npm-cache":".npm",_C=process.platform==="win32"&&process.env.APPDATA||ni,SC=Lt.resolve(_C,xC),os,xr;Object.defineProperty(ep,"defaults",{get:function(){return os||(process.env.PREFIX?xr=process.env.PREFIX:process.platform==="win32"?xr=Lt.dirname(process.execPath):(xr=Lt.dirname(Lt.dirname(process.execPath)),process.env.DESTDIR&&(xr=Lt.join(process.env.DESTDIR,xr))),os={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:SC,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:Xd.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:Lt.resolve(xr,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":Lt.resolve(ni,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:xr,production:!1,progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:900,"send-metrics":!1,shell:Xd.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:Qd,unicode:wC(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:Lt.resolve(ni,".npmrc"),umask:process.umask?process.umask():vC.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},os)}})});var ip=F((DT,Bu)=>{"use strict";var _r=X("path"),AC=Kd(),rp=tp();Bu.exports=(t,e,r)=>{let i=new AC(Object.assign({},rp.defaults,r),e);i.add(Object.assign({},t),"cli");let n=[],s=!1;if(X.resolve.paths){let l=X.resolve.paths("npm"),c;try{c=X.resolve("npm",{paths:l.slice(-1)})}catch{s=!0}c&&n.push(i.addFile(_r.resolve(_r.dirname(c),"..","npmrc"),"builtin"))}i.addEnv(),i.loadPrefix();let o=_r.resolve(i.localPrefix,".npmrc"),u=i.get("userconfig");if(!i.get("global")&&o!==u?n.push(i.addFile(o,"project")):i.add({},"project"),i.get("workspace-prefix")&&i.get("workspace-prefix")!==o){let l=_r.resolve(i.get("workspace-prefix"),".npmrc");n.push(i.addFile(l,"workspace"))}if(n.push(i.addFile(i.get("userconfig"),"user")),i.get("prefix")){let l=_r.resolve(i.get("prefix"),"etc");i.root.globalconfig=_r.resolve(l,"npmrc"),i.root.globalignorefile=_r.resolve(l,"npmignore")}n.push(i.addFile(i.get("globalconfig"),"global")),i.loadUser();let a=i.get("cafile");return a&&i.loadCAFile(a),{config:i,warnings:n.filter(Boolean),failedToLoadBuiltInConfig:s}};Object.defineProperty(Bu.exports,"defaults",{get(){return rp.defaults},enumerable:!0})});var hp=F((gT,cp)=>{var np=ip(),sp=":_authToken",op=":_auth",up=":username",ap=":_password";cp.exports=function(){let e,r;arguments.length>=2?(e=arguments[0],r=Object.assign({},arguments[1])):typeof arguments[0]=="string"?e=arguments[0]:r=Object.assign({},arguments[0]),r=r||{};let i=r.npmrc;return r.npmrc=(r.npmrc?{config:{get:n=>i[n]}}:np()).config,e=e||r.npmrc.get("registry")||np.defaults.registry,lp(e,r)||RC(r.npmrc)};function OC(t,e){let r=new URL(e,new URL(t.startsWith("//")?`./${t}`:t,"resolve://"));if(r.protocol==="resolve:"){let{pathname:i,search:n,hash:s}=r;return i+n+s}return r.toString()}function lp(t,e){let r=t instanceof URL?t:new URL(t.startsWith("//")?`http:${t}`:t),i;for(;i!=="/"&&r.pathname!==i;){i=r.pathname||"/";let n="//"+r.host+i.replace(/\/$/,""),s=IC(n,e.npmrc);if(s)return s;if(!e.recursive)return/\/$/.test(t)?void 0:lp(new URL("./",r),e);r.pathname=OC(TC(i),"..")||"/"}}function RC(t){return t.get("_auth")?{token:us(t.get("_auth")),type:"Basic"}:void 0}function TC(t){return t[t.length-1]==="/"?t:t+"/"}function IC(t,e){let r=BC(e.get(t+sp)||e.get(t+"/"+sp));if(r)return r;let i=e.get(t+up)||e.get(t+"/"+up),n=e.get(t+ap)||e.get(t+"/"+ap),s=$C(i,n);if(s)return s;let o=PC(e.get(t+op)||e.get(t+"/"+op));if(o)return o}function us(t){return t.replace(/^\$\{?([^}]*)\}?$/,function(e,r){return process.env[r]})}function BC(t){return t?{token:us(t),type:"Bearer"}:void 0}function $C(t,e){if(!t||!e)return;let r=Buffer.from(us(e),"base64").toString("utf8");return{token:Buffer.from(t+":"+r,"utf8").toString("base64"),type:"Basic",password:r,username:t}}function PC(t){return t?{token:us(t),type:"Basic"}:void 0}});var dp=F((yT,fp)=>{"use strict";var kC=mr(),LC=(t,e)=>{let r=kC(t,e);return r?r.version:null};fp.exports=LC});var Dp=F((FT,pp)=>{"use strict";var NC=mr(),MC=(t,e)=>{let r=NC(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};pp.exports=MC});var yp=F((ET,gp)=>{"use strict";var mp=Le(),jC=(t,e,r,i,n)=>{typeof r=="string"&&(n=i,i=r,r=void 0);try{return new mp(t instanceof mp?t.version:t,r).inc(e,i,n).version}catch{return null}};gp.exports=jC});var Ep=F((bT,Fp)=>{"use strict";var qC=Le(),UC=(t,e)=>new qC(t,e).major;Fp.exports=UC});var Cp=F((CT,bp)=>{"use strict";var HC=Le(),GC=(t,e)=>new HC(t,e).minor;bp.exports=GC});var vp=F((wT,wp)=>{"use strict";var WC=Le(),VC=(t,e)=>new WC(t,e).patch;wp.exports=VC});var _p=F((vT,xp)=>{"use strict";var zC=mr(),YC=(t,e)=>{let r=zC(t,e);return r&&r.prerelease.length?r.prerelease:null};xp.exports=YC});var Ap=F((xT,Sp)=>{"use strict";var KC=ot(),JC=(t,e,r)=>KC(e,t,r);Sp.exports=JC});var Rp=F((_T,Op)=>{"use strict";var XC=ot(),ZC=(t,e)=>XC(t,e,!0);Op.exports=ZC});var as=F((ST,Ip)=>{"use strict";var Tp=Le(),QC=(t,e,r)=>{let i=new Tp(t,r),n=new Tp(e,r);return i.compare(n)||i.compareBuild(n)};Ip.exports=QC});var $p=F((AT,Bp)=>{"use strict";var ew=as(),tw=(t,e)=>t.sort((r,i)=>ew(r,i,e));Bp.exports=tw});var kp=F((OT,Pp)=>{"use strict";var rw=as(),iw=(t,e)=>t.sort((r,i)=>rw(i,r,e));Pp.exports=iw});var ls=F((RT,Lp)=>{"use strict";var nw=ot(),sw=(t,e,r)=>nw(t,e,r)<0;Lp.exports=sw});var $u=F((TT,Np)=>{"use strict";var ow=ot(),uw=(t,e,r)=>ow(t,e,r)===0;Np.exports=uw});var Pu=F((IT,Mp)=>{"use strict";var aw=ot(),lw=(t,e,r)=>aw(t,e,r)!==0;Mp.exports=lw});var cs=F((BT,jp)=>{"use strict";var cw=ot(),hw=(t,e,r)=>cw(t,e,r)>=0;jp.exports=hw});var hs=F(($T,qp)=>{"use strict";var fw=ot(),dw=(t,e,r)=>fw(t,e,r)<=0;qp.exports=dw});var ku=F((PT,Up)=>{"use strict";var pw=$u(),Dw=Pu(),mw=Jr(),gw=cs(),yw=ls(),Fw=hs(),Ew=(t,e,r,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return pw(t,r,i);case"!=":return Dw(t,r,i);case">":return mw(t,r,i);case">=":return gw(t,r,i);case"<":return yw(t,r,i);case"<=":return Fw(t,r,i);default:throw new TypeError(`Invalid operator: ${e}`)}};Up.exports=Ew});var Gp=F((kT,Hp)=>{"use strict";var bw=Le(),Cw=mr(),{safeRe:fs,t:ds}=Kr(),ww=(t,e)=>{if(t instanceof bw)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?fs[ds.COERCEFULL]:fs[ds.COERCE]);else{let a=e.includePrerelease?fs[ds.COERCERTLFULL]:fs[ds.COERCERTL],l;for(;(l=a.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),a.lastIndex=l.index+l[1].length+l[2].length;a.lastIndex=-1}if(r===null)return null;let i=r[2],n=r[3]||"0",s=r[4]||"0",o=e.includePrerelease&&r[5]?`-${r[5]}`:"",u=e.includePrerelease&&r[6]?`+${r[6]}`:"";return Cw(`${i}.${n}.${s}${o}${u}`,e)};Hp.exports=ww});var Vp=F((LT,Wp)=>{"use strict";var Lu=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let n=this.map.keys().next().value;this.delete(n)}this.map.set(e,r)}return this}};Wp.exports=Lu});var ut=F((NT,Jp)=>{"use strict";var vw=/\s+/g,Nu=class t{constructor(e,r){if(r=_w(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof Mu)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(vw," "),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(n=>!Yp(n[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&Bw(n[0])){this.set=[n];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 r=this.set[e];for(let i=0;i<r.length;i++)i>0&&(this.formatted+=" "),this.formatted+=r[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&Tw)|(this.options.loose&&Iw))+":"+e,n=zp.get(i);if(n)return n;let s=this.options.loose,o=s?Ue[Me.HYPHENRANGELOOSE]:Ue[Me.HYPHENRANGE];e=e.replace(o,Hw(this.options.includePrerelease)),he("hyphen replace",e),e=e.replace(Ue[Me.COMPARATORTRIM],Aw),he("comparator trim",e),e=e.replace(Ue[Me.TILDETRIM],Ow),he("tilde trim",e),e=e.replace(Ue[Me.CARETTRIM],Rw),he("caret trim",e);let u=e.split(" ").map(f=>$w(f,this.options)).join(" ").split(/\s+/).map(f=>Uw(f,this.options));s&&(u=u.filter(f=>(he("loose invalid filter",f,this.options),!!f.match(Ue[Me.COMPARATORLOOSE])))),he("range list",u);let a=new Map,l=u.map(f=>new Mu(f,this.options));for(let f of l){if(Yp(f))return[f];a.set(f.value,f)}a.size>1&&a.has("")&&a.delete("");let c=[...a.values()];return zp.set(i,c),c}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(i=>Kp(i,r)&&e.set.some(n=>Kp(n,r)&&i.every(s=>n.every(o=>s.intersects(o,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Sw(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Gw(this.set[r],e,this.options))return!0;return!1}};Jp.exports=Nu;var xw=Vp(),zp=new xw,_w=qn(),Mu=Gi(),he=$i(),Sw=Le(),{safeRe:Ue,t:Me,comparatorTrimReplace:Aw,tildeTrimReplace:Ow,caretTrimReplace:Rw}=Kr(),{FLAG_INCLUDE_PRERELEASE:Tw,FLAG_LOOSE:Iw}=Pi(),Yp=t=>t.value==="<0.0.0-0",Bw=t=>t.value==="",Kp=(t,e)=>{let r=!0,i=t.slice(),n=i.pop();for(;r&&i.length;)r=i.every(s=>n.intersects(s,e)),n=i.pop();return r},$w=(t,e)=>(t=t.replace(Ue[Me.BUILD],""),he("comp",t,e),t=Lw(t,e),he("caret",t),t=Pw(t,e),he("tildes",t),t=Mw(t,e),he("xrange",t),t=qw(t,e),he("stars",t),t),He=t=>!t||t.toLowerCase()==="x"||t==="*",Pw=(t,e)=>t.trim().split(/\s+/).map(r=>kw(r,e)).join(" "),kw=(t,e)=>{let r=e.loose?Ue[Me.TILDELOOSE]:Ue[Me.TILDE];return t.replace(r,(i,n,s,o,u)=>{he("tilde",t,i,n,s,o,u);let a;return He(n)?a="":He(s)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:He(o)?a=`>=${n}.${s}.0 <${n}.${+s+1}.0-0`:u?(he("replaceTilde pr",u),a=`>=${n}.${s}.${o}-${u} <${n}.${+s+1}.0-0`):a=`>=${n}.${s}.${o} <${n}.${+s+1}.0-0`,he("tilde return",a),a})},Lw=(t,e)=>t.trim().split(/\s+/).map(r=>Nw(r,e)).join(" "),Nw=(t,e)=>{he("caret",t,e);let r=e.loose?Ue[Me.CARETLOOSE]:Ue[Me.CARET],i=e.includePrerelease?"-0":"";return t.replace(r,(n,s,o,u,a)=>{he("caret",t,n,s,o,u,a);let l;return He(s)?l="":He(o)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:He(u)?s==="0"?l=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.0${i} <${+s+1}.0.0-0`:a?(he("replaceCaret pr",a),s==="0"?o==="0"?l=`>=${s}.${o}.${u}-${a} <${s}.${o}.${+u+1}-0`:l=`>=${s}.${o}.${u}-${a} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${u}-${a} <${+s+1}.0.0-0`):(he("no pr"),s==="0"?o==="0"?l=`>=${s}.${o}.${u}${i} <${s}.${o}.${+u+1}-0`:l=`>=${s}.${o}.${u}${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${u} <${+s+1}.0.0-0`),he("caret return",l),l})},Mw=(t,e)=>(he("replaceXRanges",t,e),t.split(/\s+/).map(r=>jw(r,e)).join(" ")),jw=(t,e)=>{t=t.trim();let r=e.loose?Ue[Me.XRANGELOOSE]:Ue[Me.XRANGE];return t.replace(r,(i,n,s,o,u,a)=>{he("xRange",t,i,n,s,o,u,a);let l=He(s),c=l||He(o),f=c||He(u),m=f;return n==="="&&m&&(n=""),a=e.includePrerelease?"-0":"",l?n===">"||n==="<"?i="<0.0.0-0":i="*":n&&m?(c&&(o=0),u=0,n===">"?(n=">=",c?(s=+s+1,o=0,u=0):(o=+o+1,u=0)):n==="<="&&(n="<",c?s=+s+1:o=+o+1),n==="<"&&(a="-0"),i=`${n+s}.${o}.${u}${a}`):c?i=`>=${s}.0.0${a} <${+s+1}.0.0-0`:f&&(i=`>=${s}.${o}.0${a} <${s}.${+o+1}.0-0`),he("xRange return",i),i})},qw=(t,e)=>(he("replaceStars",t,e),t.trim().replace(Ue[Me.STAR],"")),Uw=(t,e)=>(he("replaceGTE0",t,e),t.trim().replace(Ue[e.includePrerelease?Me.GTE0PRE:Me.GTE0],"")),Hw=t=>(e,r,i,n,s,o,u,a,l,c,f,m)=>(He(i)?r="":He(n)?r=`>=${i}.0.0${t?"-0":""}`:He(s)?r=`>=${i}.${n}.0${t?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,He(l)?a="":He(c)?a=`<${+l+1}.0.0-0`:He(f)?a=`<${l}.${+c+1}.0-0`:m?a=`<=${l}.${c}.${f}-${m}`:t?a=`<${l}.${c}.${+f+1}-0`:a=`<=${a}`,`${r} ${a}`.trim()),Gw=(t,e,r)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let i=0;i<t.length;i++)if(he(t[i].semver),t[i].semver!==Mu.ANY&&t[i].semver.prerelease.length>0){let n=t[i].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}});var Gi=F((MT,rD)=>{"use strict";var Wi=Symbol("SemVer ANY"),Uu=class t{static get ANY(){return Wi}constructor(e,r){if(r=Xp(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),qu("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Wi?this.value="":this.value=this.operator+this.semver.version,qu("comp",this)}parse(e){let r=this.options.loose?Zp[Qp.COMPARATORLOOSE]:Zp[Qp.COMPARATOR],i=e.match(r);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 eD(i[2],this.options.loose):this.semver=Wi}toString(){return this.value}test(e){if(qu("Comparator.test",e,this.options.loose),this.semver===Wi||e===Wi)return!0;if(typeof e=="string")try{e=new eD(e,this.options)}catch{return!1}return ju(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new tD(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new tD(this.value,r).test(e.semver):(r=Xp(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.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("=")||ju(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||ju(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};rD.exports=Uu;var Xp=qn(),{safeRe:Zp,t:Qp}=Kr(),ju=ku(),qu=$i(),eD=Le(),tD=ut()});var Vi=F((jT,iD)=>{"use strict";var Ww=ut(),Vw=(t,e,r)=>{try{e=new Ww(e,r)}catch{return!1}return e.test(t)};iD.exports=Vw});var sD=F((qT,nD)=>{"use strict";var zw=ut(),Yw=(t,e)=>new zw(t,e).set.map(r=>r.map(i=>i.value).join(" ").trim().split(" "));nD.exports=Yw});var uD=F((UT,oD)=>{"use strict";var Kw=Le(),Jw=ut(),Xw=(t,e,r)=>{let i=null,n=null,s=null;try{s=new Jw(e,r)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||n.compare(o)===-1)&&(i=o,n=new Kw(i,r))}),i};oD.exports=Xw});var lD=F((HT,aD)=>{"use strict";var Zw=Le(),Qw=ut(),ev=(t,e,r)=>{let i=null,n=null,s=null;try{s=new Qw(e,r)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||n.compare(o)===1)&&(i=o,n=new Zw(i,r))}),i};aD.exports=ev});var fD=F((GT,hD)=>{"use strict";var Hu=Le(),tv=ut(),cD=Jr(),rv=(t,e)=>{t=new tv(t,e);let r=new Hu("0.0.0");if(t.test(r)||(r=new Hu("0.0.0-0"),t.test(r)))return r;r=null;for(let i=0;i<t.set.length;++i){let n=t.set[i],s=null;n.forEach(o=>{let u=new Hu(o.semver.version);switch(o.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!s||cD(u,s))&&(s=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||cD(r,s))&&(r=s)}return r&&t.test(r)?r:null};hD.exports=rv});var pD=F((WT,dD)=>{"use strict";var iv=ut(),nv=(t,e)=>{try{return new iv(t,e).range||"*"}catch{return null}};dD.exports=nv});var ps=F((VT,yD)=>{"use strict";var sv=Le(),gD=Gi(),{ANY:ov}=gD,uv=ut(),av=Vi(),DD=Jr(),mD=ls(),lv=hs(),cv=cs(),hv=(t,e,r,i)=>{t=new sv(t,i),e=new uv(e,i);let n,s,o,u,a;switch(r){case">":n=DD,s=lv,o=mD,u=">",a=">=";break;case"<":n=mD,s=cv,o=DD,u="<",a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(av(t,e,i))return!1;for(let l=0;l<e.set.length;++l){let c=e.set[l],f=null,m=null;if(c.forEach(d=>{d.semver===ov&&(d=new gD(">=0.0.0")),f=f||d,m=m||d,n(d.semver,f.semver,i)?f=d:o(d.semver,m.semver,i)&&(m=d)}),f.operator===u||f.operator===a||(!m.operator||m.operator===u)&&s(t,m.semver))return!1;if(m.operator===a&&o(t,m.semver))return!1}return!0};yD.exports=hv});var ED=F((zT,FD)=>{"use strict";var fv=ps(),dv=(t,e,r)=>fv(t,e,">",r);FD.exports=dv});var CD=F((YT,bD)=>{"use strict";var pv=ps(),Dv=(t,e,r)=>pv(t,e,"<",r);bD.exports=Dv});var xD=F((KT,vD)=>{"use strict";var wD=ut(),mv=(t,e,r)=>(t=new wD(t,r),e=new wD(e,r),t.intersects(e,r));vD.exports=mv});var SD=F((JT,_D)=>{"use strict";var gv=Vi(),yv=ot();_D.exports=(t,e,r)=>{let i=[],n=null,s=null,o=t.sort((c,f)=>yv(c,f,r));for(let c of o)gv(c,e,r)?(s=c,n||(n=c)):(s&&i.push([n,s]),s=null,n=null);n&&i.push([n,null]);let u=[];for(let[c,f]of i)c===f?u.push(c):!f&&c===o[0]?u.push("*"):f?c===o[0]?u.push(`<=${f}`):u.push(`${c} - ${f}`):u.push(`>=${c}`);let a=u.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return a.length<l.length?a:e}});var BD=F((XT,ID)=>{"use strict";var AD=ut(),Wu=Gi(),{ANY:Gu}=Wu,zi=Vi(),Vu=ot(),Fv=(t,e,r={})=>{if(t===e)return!0;t=new AD(t,r),e=new AD(e,r);let i=!1;e:for(let n of t.set){for(let s of e.set){let o=bv(n,s,r);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},Ev=[new Wu(">=0.0.0-0")],OD=[new Wu(">=0.0.0")],bv=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Gu){if(e.length===1&&e[0].semver===Gu)return!0;r.includePrerelease?t=Ev:t=OD}if(e.length===1&&e[0].semver===Gu){if(r.includePrerelease)return!0;e=OD}let i=new Set,n,s;for(let d of t)d.operator===">"||d.operator===">="?n=RD(n,d,r):d.operator==="<"||d.operator==="<="?s=TD(s,d,r):i.add(d.semver);if(i.size>1)return null;let o;if(n&&s){if(o=Vu(n.semver,s.semver,r),o>0)return null;if(o===0&&(n.operator!==">="||s.operator!=="<="))return null}for(let d of i){if(n&&!zi(d,String(n),r)||s&&!zi(d,String(s),r))return null;for(let g of e)if(!zi(d,String(g),r))return!1;return!0}let u,a,l,c,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,m=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let d of e){if(c=c||d.operator===">"||d.operator===">=",l=l||d.operator==="<"||d.operator==="<=",n){if(m&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===m.major&&d.semver.minor===m.minor&&d.semver.patch===m.patch&&(m=!1),d.operator===">"||d.operator===">="){if(u=RD(n,d,r),u===d&&u!==n)return!1}else if(n.operator===">="&&!zi(n.semver,String(d),r))return!1}if(s){if(f&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===f.major&&d.semver.minor===f.minor&&d.semver.patch===f.patch&&(f=!1),d.operator==="<"||d.operator==="<="){if(a=TD(s,d,r),a===d&&a!==s)return!1}else if(s.operator==="<="&&!zi(s.semver,String(d),r))return!1}if(!d.operator&&(s||n)&&o!==0)return!1}return!(n&&l&&!s&&o!==0||s&&c&&!n&&o!==0||m||f)},RD=(t,e,r)=>{if(!t)return e;let i=Vu(t.semver,e.semver,r);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},TD=(t,e,r)=>{if(!t)return e;let i=Vu(t.semver,e.semver,r);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};ID.exports=Fv});var LD=F((ZT,kD)=>{"use strict";var zu=Kr(),$D=Pi(),Cv=Le(),PD=uu(),wv=mr(),vv=dp(),xv=Dp(),_v=yp(),Sv=cu(),Av=Ep(),Ov=Cp(),Rv=vp(),Tv=_p(),Iv=ot(),Bv=Ap(),$v=Rp(),Pv=as(),kv=$p(),Lv=kp(),Nv=Jr(),Mv=ls(),jv=$u(),qv=Pu(),Uv=cs(),Hv=hs(),Gv=ku(),Wv=Gp(),Vv=Gi(),zv=ut(),Yv=Vi(),Kv=sD(),Jv=uD(),Xv=lD(),Zv=fD(),Qv=pD(),ex=ps(),tx=ED(),rx=CD(),ix=xD(),nx=SD(),sx=BD();kD.exports={parse:wv,valid:vv,clean:xv,inc:_v,diff:Sv,major:Av,minor:Ov,patch:Rv,prerelease:Tv,compare:Iv,rcompare:Bv,compareLoose:$v,compareBuild:Pv,sort:kv,rsort:Lv,gt:Nv,lt:Mv,eq:jv,neq:qv,gte:Uv,lte:Hv,cmp:Gv,coerce:Wv,Comparator:Vv,Range:zv,satisfies:Yv,toComparators:Kv,maxSatisfying:Jv,minSatisfying:Xv,minVersion:Zv,validRange:Qv,outside:ex,gtr:tx,ltr:rx,intersects:ix,simplifyRange:nx,subset:sx,SemVer:Cv,re:zu.re,src:zu.src,tokens:zu.t,SEMVER_SPEC_VERSION:$D.SEMVER_SPEC_VERSION,RELEASE_TYPES:$D.RELEASE_TYPES,compareIdentifiers:PD.compareIdentifiers,rcompareIdentifiers:PD.rcompareIdentifiers}});var VD=F((aI,WD)=>{var{hasOwnProperty:Zu}=Object.prototype,Qu=(t,e={})=>{typeof e=="string"&&(e={section:e}),e.align=e.align===!0,e.newline=e.newline===!0,e.sort=e.sort===!0,e.whitespace=e.whitespace===!0||e.align===!0,e.platform=e.platform||typeof process<"u"&&process.platform,e.bracketedArray=e.bracketedArray!==!1;let r=e.platform==="win32"?`\r
46
+ `:`
47
+ `,i=e.whitespace?" = ":"=",n=[],s=e.sort?Object.keys(t).sort():Object.keys(t),o=0;e.align&&(o=Nt(s.filter(l=>t[l]===null||Array.isArray(t[l])||typeof t[l]!="object").map(l=>Array.isArray(t[l])?`${l}[]`:l).concat([""]).reduce((l,c)=>Nt(l).length>=Nt(c).length?l:c)).length);let u="",a=e.bracketedArray?"[]":"";for(let l of s){let c=t[l];if(c&&Array.isArray(c))for(let f of c)u+=Nt(`${l}${a}`).padEnd(o," ")+i+Nt(f)+r;else c&&typeof c=="object"?n.push(l):u+=Nt(l).padEnd(o," ")+i+Nt(c)+r}e.section&&u.length&&(u="["+Nt(e.section)+"]"+(e.newline?r+r:r)+u);for(let l of n){let c=HD(l,".").join("\\."),f=(e.section?e.section+".":"")+c,m=Qu(t[l],{...e,section:f});u.length&&m.length&&(u+=r),u+=m}return u};function HD(t,e){var r=0,i=0,n=0,s=[];do if(n=t.indexOf(e,r),n!==-1){if(r=n+e.length,n>0&&t[n-1]==="\\")continue;s.push(t.slice(i,n)),i=n+e.length}while(n!==-1);return s.push(t.slice(i)),s}var UD=(t,e={})=>{e.bracketedArray=e.bracketedArray!==!1;let r=Object.create(null),i=r,n=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o=t.split(/[\r\n]+/g),u={};for(let l of o){if(!l||l.match(/^\s*[;#]/)||l.match(/^\s*$/))continue;let c=l.match(s);if(!c)continue;if(c[1]!==void 0){if(n=ms(c[1]),n==="__proto__"){i=Object.create(null);continue}i=r[n]=r[n]||Object.create(null);continue}let f=ms(c[2]),m;e.bracketedArray?m=f.length>2&&f.slice(-2)==="[]":(u[f]=(u?.[f]||0)+1,m=u[f]>1);let d=m?f.slice(0,-2):f;if(d==="__proto__")continue;let g=c[3]?ms(c[4]):!0,C=g==="true"||g==="false"||g==="null"?JSON.parse(g):g;m&&(Zu.call(i,d)?Array.isArray(i[d])||(i[d]=[i[d]]):i[d]=[]),Array.isArray(i[d])?i[d].push(C):i[d]=C}let a=[];for(let l of Object.keys(r)){if(!Zu.call(r,l)||typeof r[l]!="object"||Array.isArray(r[l]))continue;let c=HD(l,".");i=r;let f=c.pop(),m=f.replace(/\\\./g,".");for(let d of c)d!=="__proto__"&&((!Zu.call(i,d)||typeof i[d]!="object")&&(i[d]=Object.create(null)),i=i[d]);i===r&&m===f||(i[m]=r[l],a.push(l))}for(let l of a)delete r[l];return r},GD=t=>t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'"),Nt=t=>typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&GD(t)||t!==t.trim()?JSON.stringify(t):t.split(";").join("\\;").split("#").join("\\#"),ms=(t,e)=>{if(t=(t||"").trim(),GD(t)){t.charAt(0)==="'"&&(t=t.slice(1,-1));try{t=JSON.parse(t)}catch{}}else{let r=!1,i="";for(let n=0,s=t.length;n<s;n++){let o=t.charAt(n);if(r)"\\;#".indexOf(o)!==-1?i+=o:i+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:i+=o}}return r&&(i+="\\"),i.trim()}return t};WD.exports={parse:UD,decode:UD,stringify:Qu,encode:Qu,safe:Nt,unsafe:ms}});function ia({onlyFirst:t=!1}={}){let n="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(n,t?void 0:"g")}var QD=oe(()=>{});function Sr(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(yx,"")}var yx,Fs=oe(()=>{QD();yx=ia()});function em(t){return t===161||t===164||t===167||t===168||t===170||t===173||t===174||t>=176&&t<=180||t>=182&&t<=186||t>=188&&t<=191||t===198||t===208||t===215||t===216||t>=222&&t<=225||t===230||t>=232&&t<=234||t===236||t===237||t===240||t===242||t===243||t>=247&&t<=250||t===252||t===254||t===257||t===273||t===275||t===283||t===294||t===295||t===299||t>=305&&t<=307||t===312||t>=319&&t<=322||t===324||t>=328&&t<=331||t===333||t===338||t===339||t===358||t===359||t===363||t===462||t===464||t===466||t===468||t===470||t===472||t===474||t===476||t===593||t===609||t===708||t===711||t>=713&&t<=715||t===717||t===720||t>=728&&t<=731||t===733||t===735||t>=768&&t<=879||t>=913&&t<=929||t>=931&&t<=937||t>=945&&t<=961||t>=963&&t<=969||t===1025||t>=1040&&t<=1103||t===1105||t===8208||t>=8211&&t<=8214||t===8216||t===8217||t===8220||t===8221||t>=8224&&t<=8226||t>=8228&&t<=8231||t===8240||t===8242||t===8243||t===8245||t===8251||t===8254||t===8308||t===8319||t>=8321&&t<=8324||t===8364||t===8451||t===8453||t===8457||t===8467||t===8470||t===8481||t===8482||t===8486||t===8491||t===8531||t===8532||t>=8539&&t<=8542||t>=8544&&t<=8555||t>=8560&&t<=8569||t===8585||t>=8592&&t<=8601||t===8632||t===8633||t===8658||t===8660||t===8679||t===8704||t===8706||t===8707||t===8711||t===8712||t===8715||t===8719||t===8721||t===8725||t===8730||t>=8733&&t<=8736||t===8739||t===8741||t>=8743&&t<=8748||t===8750||t>=8756&&t<=8759||t===8764||t===8765||t===8776||t===8780||t===8786||t===8800||t===8801||t>=8804&&t<=8807||t===8810||t===8811||t===8814||t===8815||t===8834||t===8835||t===8838||t===8839||t===8853||t===8857||t===8869||t===8895||t===8978||t>=9312&&t<=9449||t>=9451&&t<=9547||t>=9552&&t<=9587||t>=9600&&t<=9615||t>=9618&&t<=9621||t===9632||t===9633||t>=9635&&t<=9641||t===9650||t===9651||t===9654||t===9655||t===9660||t===9661||t===9664||t===9665||t>=9670&&t<=9672||t===9675||t>=9678&&t<=9681||t>=9698&&t<=9701||t===9711||t===9733||t===9734||t===9737||t===9742||t===9743||t===9756||t===9758||t===9792||t===9794||t===9824||t===9825||t>=9827&&t<=9829||t>=9831&&t<=9834||t===9836||t===9837||t===9839||t===9886||t===9887||t===9919||t>=9926&&t<=9933||t>=9935&&t<=9939||t>=9941&&t<=9953||t===9955||t===9960||t===9961||t>=9963&&t<=9969||t===9972||t>=9974&&t<=9977||t===9979||t===9980||t===9982||t===9983||t===10045||t>=10102&&t<=10111||t>=11094&&t<=11097||t>=12872&&t<=12879||t>=57344&&t<=63743||t>=65024&&t<=65039||t===65533||t>=127232&&t<=127242||t>=127248&&t<=127277||t>=127280&&t<=127337||t>=127344&&t<=127373||t===127375||t===127376||t>=127387&&t<=127404||t>=917760&&t<=917999||t>=983040&&t<=1048573||t>=1048576&&t<=1114109}function tm(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function rm(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9776&&t<=9783||t>=9800&&t<=9811||t===9855||t>=9866&&t<=9871||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t>=94192&&t<=94198||t>=94208&&t<=101589||t>=101631&&t<=101662||t>=101760&&t<=101874||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128728||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129674||t>=129678&&t<=129734||t===129736||t>=129741&&t<=129756||t>=129759&&t<=129770||t>=129775&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}var im=oe(()=>{});function Fx(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}function nm(t,{ambiguousAsWide:e=!1}={}){return Fx(t),tm(t)||rm(t)||e&&em(t)?2:1}var sm=oe(()=>{im()});var um=F((OI,om)=>{om.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});function $e(t,e={}){if(typeof t!="string"||t.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:i=!1}=e;if(i||(t=Sr(t)),t.length===0)return 0;let n=0,s={ambiguousAsWide:!r};for(let{segment:o}of Ex.segment(t)){let u=o.codePointAt(0);if(!(u<=31||u>=127&&u<=159)&&!(u>=8203&&u<=8207||u===65279)&&!(u>=768&&u<=879||u>=6832&&u<=6911||u>=7616&&u<=7679||u>=8400&&u<=8447||u>=65056&&u<=65071)&&!(u>=55296&&u<=57343)&&!(u>=65024&&u<=65039)&&!bx.test(o)){if((0,am.default)().test(o)){n+=2;continue}n+=nm(u,s)}}return n}var am,Ex,bx,Ji=oe(()=>{Fs();sm();am=Se(um(),1),Ex=new Intl.Segmenter,bx=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u")});var lm=F((PI,Cx)=>{Cx.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var sa=F((kI,na)=>{"use strict";var cm=lm();na.exports=cm;na.exports.default=cm});var mm=F((NI,Dm)=>{"use strict";Dm.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var ym=F((MI,gm)=>{"use strict";var Ox=mm();gm.exports=t=>typeof t=="string"?t.replace(Ox(),""):t});var Em=F((jI,aa)=>{"use strict";var Fm=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);aa.exports=Fm;aa.exports.default=Fm});var Cm=F((qI,bm)=>{"use strict";bm.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 ca=F((UI,la)=>{"use strict";var Rx=ym(),Tx=Em(),Ix=Cm(),wm=t=>{if(typeof t!="string"||t.length===0||(t=Rx(t),t.length===0))return 0;t=t.replace(Ix()," ");let e=0;for(let r=0;r<t.length;r++){let i=t.codePointAt(r);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&r++,e+=Tx(i)?2:1)}return e};la.exports=wm;la.exports.default=wm});var xm=F((HI,vm)=>{"use strict";var Bx=ca();function Ar(t,e){if(!t)return t;e=e||{};let r=e.align||"center";if(r==="left")return t;let i=e.split||`
48
+ `,n=e.pad||" ",s=r!=="right"?$x:Px,o=!1;Array.isArray(t)||(o=!0,t=String(t).split(i));let u,a=0;return t=t.map(function(l){return l=String(l),u=Bx(l),a=Math.max(u,a),{str:l,width:u}}).map(function(l){return new Array(s(a,l.width)+1).join(n)+l.str}),o?t.join(i):t}Ar.left=function(e){return Ar(e,{align:"left"})};Ar.center=function(e){return Ar(e,{align:"center"})};Ar.right=function(e){return Ar(e,{align:"right"})};vm.exports=Ar;function $x(t,e){return Math.floor((t-e)/2)}function Px(t,e){return t-e}});function ba(t,e,{ignoreNonConfigurable:r=!1}={}){let{name:i}=t;for(let n of Reflect.ownKeys(e))s_(t,e,n,r);return u_(t,e),h_(t,e,i),t}var s_,o_,u_,a_,l_,c_,h_,Ym=oe(()=>{s_=(t,e,r,i)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;let n=Object.getOwnPropertyDescriptor(t,r),s=Object.getOwnPropertyDescriptor(e,r);!o_(n,s)&&i||Object.defineProperty(t,r,s)},o_=function(t,e){return t===void 0||t.configurable||t.writable===e.writable&&t.enumerable===e.enumerable&&t.configurable===e.configurable&&(t.writable||t.value===e.value)},u_=(t,e)=>{let r=Object.getPrototypeOf(e);r!==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,r)},a_=(t,e)=>`/* Wrapped ${t}*/
49
+ ${e}`,l_=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),c_=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),h_=(t,e,r)=>{let i=r===""?"":`with ${r.trim()}() `,n=a_.bind(null,i,e.toString());Object.defineProperty(n,"name",c_);let{writable:s,enumerable:o,configurable:u}=l_;Object.defineProperty(t,"toString",{value:n,writable:s,enumerable:o,configurable:u})}});var Ss,Km,Jm,Xm=oe(()=>{Ym();Ss=new WeakMap,Km=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(Ss.set(s,++i),i===1)r=t.apply(this,o),t=void 0;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return ba(s,t),Ss.set(s,i),s};Km.callCount=t=>{if(!Ss.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ss.get(t)};Jm=Km});var Rr,Zm=oe(()=>{Rr=[];Rr.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Rr.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Rr.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var As,Ca,wa,f_,va,Os,d_,xa,_a,Sa,Qm,L5,N5,e0=oe(()=>{Zm();As=t=>!!t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function",Ca=Symbol.for("signal-exit emitter"),wa=globalThis,f_=Object.defineProperty.bind(Object),va=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(wa[Ca])return wa[Ca];f_(wa,Ca,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,r){this.listeners[e].push(r)}removeListener(e,r){let i=this.listeners[e],n=i.indexOf(r);n!==-1&&(n===0&&i.length===1?i.length=0:i.splice(n,1))}emit(e,r,i){if(this.emitted[e])return!1;this.emitted[e]=!0;let n=!1;for(let s of this.listeners[e])n=s(r,i)===!0||n;return e==="exit"&&(n=this.emit("afterExit",r,i)||n),n}},Os=class{},d_=t=>({onExit(e,r){return t.onExit(e,r)},load(){return t.load()},unload(){return t.unload()}}),xa=class extends Os{onExit(){return()=>{}}load(){}unload(){}},_a=class extends Os{#u=Sa.platform==="win32"?"SIGINT":"SIGHUP";#i=new va;#t;#r;#e;#n={};#s=!1;constructor(e){super(),this.#t=e,this.#n={};for(let r of Rr)this.#n[r]=()=>{let i=this.#t.listeners(r),{count:n}=this.#i,s=e;if(typeof s.__signal_exit_emitter__=="object"&&typeof s.__signal_exit_emitter__.count=="number"&&(n+=s.__signal_exit_emitter__.count),i.length===n){this.unload();let o=this.#i.emit("exit",null,r),u=r==="SIGHUP"?this.#u:r;o||e.kill(e.pid,u)}};this.#e=e.reallyExit,this.#r=e.emit}onExit(e,r){if(!As(this.#t))return()=>{};this.#s===!1&&this.load();let i=r?.alwaysLast?"afterExit":"exit";return this.#i.on(i,e),()=>{this.#i.removeListener(i,e),this.#i.listeners.exit.length===0&&this.#i.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#s){this.#s=!0,this.#i.count+=1;for(let e of Rr)try{let r=this.#n[e];r&&this.#t.on(e,r)}catch{}this.#t.emit=(e,...r)=>this.#h(e,...r),this.#t.reallyExit=e=>this.#o(e)}}unload(){this.#s&&(this.#s=!1,Rr.forEach(e=>{let r=this.#n[e];if(!r)throw new Error("Listener not defined for signal: "+e);try{this.#t.removeListener(e,r)}catch{}}),this.#t.emit=this.#r,this.#t.reallyExit=this.#e,this.#i.count-=1)}#o(e){return As(this.#t)?(this.#t.exitCode=e||0,this.#i.emit("exit",this.#t.exitCode,null),this.#e.call(this.#t,this.#t.exitCode)):0}#h(e,...r){let i=this.#r;if(e==="exit"&&As(this.#t)){typeof r[0]=="number"&&(this.#t.exitCode=r[0]);let n=i.call(this.#t,e,...r);return this.#i.emit("exit",this.#t.exitCode,null),n}else return i.call(this.#t,e,...r)}},Sa=globalThis.process,{onExit:Qm,load:L5,unload:N5}=d_(As(Sa)?new _a(Sa):new xa)});import Rs from"node:process";var t0,p_,r0,i0=oe(()=>{Xm();e0();t0=Rs.stderr.isTTY?Rs.stderr:Rs.stdout.isTTY?Rs.stdout:void 0,p_=t0?Jm(()=>{Qm(()=>{t0.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},r0=p_});import n0 from"node:process";var Ts,si,Aa,s0=oe(()=>{i0();Ts=!1,si={};si.show=(t=n0.stderr)=>{t.isTTY&&(Ts=!1,t.write("\x1B[?25h"))};si.hide=(t=n0.stderr)=>{t.isTTY&&(r0(),Ts=!0,t.write("\x1B[?25l"))};si.toggle=(t,e)=>{t!==void 0&&(Ts=t),Ts?si.show(e):si.hide(e)};Aa=si});var o0=F((z5,D_)=>{D_.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},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} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},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 "]}}});var Oa=F((Y5,a0)=>{"use strict";var Is=Object.assign({},o0()),u0=Object.keys(Is);Object.defineProperty(Is,"random",{get(){let t=Math.floor(Math.random()*u0.length),e=u0[t];return Is[e]}});a0.exports=Is});import dt from"node:process";function Ra(){return dt.platform!=="win32"?dt.env.TERM!=="linux":!!dt.env.CI||!!dt.env.WT_SESSION||!!dt.env.TERMINUS_SUBLIME||dt.env.ConEmuTask==="{cmd::Cmder}"||dt.env.TERM_PROGRAM==="Terminus-Sublime"||dt.env.TERM_PROGRAM==="vscode"||dt.env.TERM==="xterm-256color"||dt.env.TERM==="alacritty"||dt.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var l0=oe(()=>{});var m_,g_,y_,tn,c0=oe(()=>{Pt();l0();m_={info:x.blue("\u2139"),success:x.green("\u2714"),warning:x.yellow("\u26A0"),error:x.red("\u2716")},g_={info:x.blue("i"),success:x.green("\u221A"),warning:x.yellow("\u203C"),error:x.red("\xD7")},y_=Ra()?m_:g_,tn=y_});function Ta({stream:t=process.stdout}={}){return!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var h0=oe(()=>{});import f0 from"node:process";function Ia(){let{env:t}=f0,{TERM:e,TERM_PROGRAM:r}=t;return f0.platform!=="win32"?e!=="linux":!!t.WT_SESSION||!!t.TERMINUS_SUBLIME||t.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||e==="xterm-256color"||e==="alacritty"||e==="rxvt-unicode"||e==="rxvt-unicode-256color"||t.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var d0=oe(()=>{});import wt from"node:process";var F_,Ba,E_,$a,p0=oe(()=>{F_=3,Ba=class{#u=0;start(){this.#u++,this.#u===1&&this.#i()}stop(){if(this.#u<=0)throw new Error("`stop` called more times than `start`");this.#u--,this.#u===0&&this.#t()}#i(){wt.platform==="win32"||!wt.stdin.isTTY||(wt.stdin.setRawMode(!0),wt.stdin.on("data",this.#r),wt.stdin.resume())}#t(){wt.stdin.isTTY&&(wt.stdin.off("data",this.#r),wt.stdin.pause(),wt.stdin.setRawMode(!1))}#r(e){e[0]===F_&&wt.emit("SIGINT")}},E_=new Ba,$a=E_});import Bs from"node:process";function ka(t){return new Pa(t)}var rn,b_,Pa,D0=oe(()=>{Pt();s0();rn=Se(Oa(),1);c0();Fs();Ji();h0();d0();p0();b_=Se(Oa(),1),Pa=class{#u=0;#i=!1;#t=0;#r=-1;#e=0;#n;#s;#o;#h;#m;#f;#c;#a;#p;#d;#l;color;constructor(e){typeof e=="string"&&(e={text:e}),this.#n={color:"cyan",stream:Bs.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#n.color,this.spinner=this.#n.spinner,this.#m=this.#n.interval,this.#o=this.#n.stream,this.#f=typeof this.#n.isEnabled=="boolean"?this.#n.isEnabled:Ta({stream:this.#o}),this.#c=typeof this.#n.isSilent=="boolean"?this.#n.isSilent:!1,this.text=this.#n.text,this.prefixText=this.#n.prefixText,this.suffixText=this.#n.suffixText,this.indent=this.#n.indent,Bs.env.NODE_ENV==="test"&&(this._stream=this.#o,this._isEnabled=this.#f,Object.defineProperty(this,"_linesToClear",{get(){return this.#u},set(r){this.#u=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#r}}),Object.defineProperty(this,"_lineCount",{get(){return this.#t}}))}get indent(){return this.#a}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.#a=e,this.#y()}get interval(){return this.#m??this.#s.interval??100}get spinner(){return this.#s}set spinner(e){if(this.#r=-1,this.#m=void 0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#s=e}else if(!Ia())this.#s=rn.default.line;else if(e===void 0)this.#s=rn.default.dots;else if(e!=="default"&&rn.default[e])this.#s=rn.default[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.#p}set text(e=""){this.#p=e,this.#y()}get prefixText(){return this.#d}set prefixText(e=""){this.#d=e,this.#y()}get suffixText(){return this.#l}set suffixText(e=""){this.#l=e,this.#y()}get isSpinning(){return this.#h!==void 0}#D(e=this.#d,r=" "){return typeof e=="string"&&e!==""?e+r:typeof e=="function"?e()+r:""}#g(e=this.#l,r=" "){return typeof e=="string"&&e!==""?r+e:typeof e=="function"?r+e():""}#y(){let e=this.#o.columns??80,r=this.#D(this.#d,"-"),i=this.#g(this.#l,"-"),n=" ".repeat(this.#a)+r+"--"+this.#p+"--"+i;this.#t=0;for(let s of Sr(n).split(`
50
+ `))this.#t+=Math.max(1,Math.ceil($e(s,{countAnsiEscapeCodes:!0})/e))}get isEnabled(){return this.#f&&!this.#c}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#f=e}get isSilent(){return this.#c}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#c=e}frame(){let e=Date.now();(this.#r===-1||e-this.#e>=this.interval)&&(this.#r=++this.#r%this.#s.frames.length,this.#e=e);let{frames:r}=this.#s,i=r[this.#r];this.color&&(i=x[this.color](i));let n=typeof this.#d=="string"&&this.#d!==""?this.#d+" ":"",s=typeof this.text=="string"?" "+this.text:"",o=typeof this.#l=="string"&&this.#l!==""?" "+this.#l:"";return n+i+s+o}clear(){if(!this.#f||!this.#o.isTTY)return this;this.#o.cursorTo(0);for(let e=0;e<this.#u;e++)e>0&&this.#o.moveCursor(0,-1),this.#o.clearLine(1);return(this.#a||this.lastIndent!==this.#a)&&this.#o.cursorTo(this.#a),this.lastIndent=this.#a,this.#u=0,this}render(){return this.#c?this:(this.clear(),this.#o.write(this.frame()),this.#u=this.#t,this)}start(e){return e&&(this.text=e),this.#c?this:this.#f?this.isSpinning?this:(this.#n.hideCursor&&Aa.hide(this.#o),this.#n.discardStdin&&Bs.stdin.isTTY&&(this.#i=!0,$a.start()),this.render(),this.#h=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#o.write(`- ${this.text}
51
+ `),this)}stop(){return this.#f?(clearInterval(this.#h),this.#h=void 0,this.#r=0,this.clear(),this.#n.hideCursor&&Aa.show(this.#o),this.#n.discardStdin&&Bs.stdin.isTTY&&this.#i&&($a.stop(),this.#i=!1),this):this}succeed(e){return this.stopAndPersist({symbol:tn.success,text:e})}fail(e){return this.stopAndPersist({symbol:tn.error,text:e})}warn(e){return this.stopAndPersist({symbol:tn.warning,text:e})}info(e){return this.stopAndPersist({symbol:tn.info,text:e})}stopAndPersist(e={}){if(this.#c)return this;let r=e.prefixText??this.#d,i=this.#D(r," "),n=e.symbol??" ",s=e.text??this.text,u=typeof s=="string"?(n?" ":"")+s:"",a=e.suffixText??this.#l,l=this.#g(a," "),c=i+n+u+l+`
52
+ `;return this.stop(),this.#o.write(c),this}}});var $s=F((DB,g0)=>{var La=[],m0=0,je=(t,e)=>{m0>=e&&La.push(t)};je.WARN=1;je.INFO=2;je.DEBUG=3;je.reset=()=>{La=[]};je.setDebugLevel=t=>{m0=t};je.warn=t=>je(t,je.WARN);je.info=t=>je(t,je.INFO);je.debug=t=>je(t,je.DEBUG);je.debugMessages=()=>La;g0.exports=je});var Na=F((mB,b0)=>{var y0=ca();function Ps(t){return t?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function vt(t){let e=Ps();return(""+t).replace(e,"").split(`
53
+ `).reduce(function(n,s){return y0(s)>n?y0(s):n},0)}function nn(t,e){return Array(e+1).join(t)}function C_(t,e,r,i){let n=vt(t);if(e+1>=n){let s=e-n;switch(i){case"right":{t=nn(r,s)+t;break}case"center":{let o=Math.ceil(s/2),u=s-o;t=nn(r,u)+t+nn(r,o);break}default:{t=t+nn(r,s);break}}}return t}var oi={};function sn(t,e,r){e="\x1B["+e+"m",r="\x1B["+r+"m",oi[e]={set:t,to:!0},oi[r]={set:t,to:!1},oi[t]={on:e,off:r}}sn("bold",1,22);sn("italics",3,23);sn("underline",4,24);sn("inverse",7,27);sn("strikethrough",9,29);function F0(t,e){let r=e[1]?parseInt(e[1].split(";")[0]):0;if(r>=30&&r<=39||r>=90&&r<=97){t.lastForegroundAdded=e[0];return}if(r>=40&&r<=49||r>=100&&r<=107){t.lastBackgroundAdded=e[0];return}if(r===0){for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&delete t[n];return}let i=oi[e[0]];i&&(t[i.set]=i.to)}function w_(t){let e=Ps(!0),r=e.exec(t),i={};for(;r!==null;)F0(i,r),r=e.exec(t);return i}function E0(t,e){let r=t.lastBackgroundAdded,i=t.lastForegroundAdded;return delete t.lastBackgroundAdded,delete t.lastForegroundAdded,Object.keys(t).forEach(function(n){t[n]&&(e+=oi[n].off)}),r&&r!="\x1B[49m"&&(e+="\x1B[49m"),i&&i!="\x1B[39m"&&(e+="\x1B[39m"),e}function v_(t,e){let r=t.lastBackgroundAdded,i=t.lastForegroundAdded;return delete t.lastBackgroundAdded,delete t.lastForegroundAdded,Object.keys(t).forEach(function(n){t[n]&&(e=oi[n].on+e)}),r&&r!="\x1B[49m"&&(e=r+e),i&&i!="\x1B[39m"&&(e=i+e),e}function x_(t,e){if(t.length===vt(t))return t.substr(0,e);for(;vt(t)>e;)t=t.slice(0,-1);return t}function __(t,e){let r=Ps(!0),i=t.split(Ps()),n=0,s=0,o="",u,a={};for(;s<e;){u=r.exec(t);let l=i[n];if(n++,s+vt(l)>e&&(l=x_(l,e-s)),o+=l,s+=vt(l),s<e){if(!u)break;o+=u[0],F0(a,u)}}return E0(a,o)}function S_(t,e,r){if(r=r||"\u2026",vt(t)<=e)return t;e-=vt(r);let n=__(t,e);n+=r;let s="\x1B]8;;\x07";return t.includes(s)&&!n.includes(s)&&(n+=s),n}function A_(){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 O_(t,e){t=t||{},e=e||A_();let r=Object.assign({},e,t);return r.chars=Object.assign({},e.chars,t.chars),r.style=Object.assign({},e.style,t.style),r}function R_(t,e){let r=[],i=e.split(/(\s+)/g),n=[],s=0,o;for(let u=0;u<i.length;u+=2){let a=i[u],l=s+vt(a);s>0&&o&&(l+=o.length),l>t?(s!==0&&r.push(n.join("")),n=[a],s=vt(a)):(n.push(o||"",a),s=l),o=i[u+1]}return s&&r.push(n.join("")),r}function T_(t,e){let r=[],i="";function n(o,u){for(i.length&&u&&(i+=u),i+=o;i.length>t;)r.push(i.slice(0,t)),i=i.slice(t)}let s=e.split(/(\s+)/g);for(let o=0;o<s.length;o+=2)n(s[o],o&&s[o-1]);return i.length&&r.push(i),r}function I_(t,e,r=!0){let i=[];e=e.split(`
54
+ `);let n=r?R_:T_;for(let s=0;s<e.length;s++)i.push.apply(i,n(t,e[s]));return i}function B_(t){let e={},r=[];for(let i=0;i<t.length;i++){let n=v_(e,t[i]);e=w_(n);let s=Object.assign({},e);r.push(E0(s,n))}return r}function $_(t,e){return["\x1B]","8",";",";",t||e,"\x07",e,"\x1B]","8",";",";","\x07"].join("")}b0.exports={strlen:vt,repeat:nn,pad:C_,truncate:S_,mergeOptions:O_,wordWrap:I_,colorizeLines:B_,hyperlink:$_}});var x0=F((gB,v0)=>{var w0={};v0.exports=w0;var C0={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(C0).forEach(function(t){var e=C0[t],r=w0[t]=[];r.open="\x1B["+e[0]+"m",r.close="\x1B["+e[1]+"m"})});var S0=F((yB,_0)=>{"use strict";_0.exports=function(t,e){e=e||process.argv;var r=e.indexOf("--"),i=/^-{1,2}/.test(t)?"":"--",n=e.indexOf(i+t);return n!==-1&&(r===-1?!0:n<r)}});var O0=F((FB,A0)=>{"use strict";var P_=X("os"),pt=S0(),Ge=process.env,ui=void 0;pt("no-color")||pt("no-colors")||pt("color=false")?ui=!1:(pt("color")||pt("colors")||pt("color=true")||pt("color=always"))&&(ui=!0);"FORCE_COLOR"in Ge&&(ui=Ge.FORCE_COLOR.length===0||parseInt(Ge.FORCE_COLOR,10)!==0);function k_(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function L_(t){if(ui===!1)return 0;if(pt("color=16m")||pt("color=full")||pt("color=truecolor"))return 3;if(pt("color=256"))return 2;if(t&&!t.isTTY&&ui!==!0)return 0;var e=ui?1:0;if(process.platform==="win32"){var r=P_.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Ge)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(n){return n in Ge})||Ge.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Ge)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ge.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in Ge){var i=parseInt((Ge.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ge.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ge.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Ge.TERM)||"COLORTERM"in Ge?1:(Ge.TERM==="dumb",e)}function Ma(t){var e=L_(t);return k_(e)}A0.exports={supportsColor:Ma,stdout:Ma(process.stdout),stderr:Ma(process.stderr)}});var T0=F((EB,R0)=>{R0.exports=function(e,r){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var n={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(s){s=s.toLowerCase();var o=n[s]||[" "],u=Math.floor(Math.random()*o.length);typeof n[s]<"u"?i+=n[s][u]:i+=s}),i}});var B0=F((bB,I0)=>{I0.exports=function(e,r){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"]},n=[].concat(i.up,i.down,i.mid);function s(a){var l=Math.floor(Math.random()*a);return l}function o(a){var l=!1;return n.filter(function(c){l=c===a}),l}function u(a,l){var c="",f,m;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",a=a.split("");for(m in a)if(!o(m)){switch(c=c+a[m],f={up:0,down:0,mid:0},l.size){case"mini":f.up=s(8),f.mid=s(2),f.down=s(8);break;case"maxi":f.up=s(16)+3,f.mid=s(4)+1,f.down=s(64)+3;break;default:f.up=s(8)+1,f.mid=s(6)/2,f.down=s(8)+1;break}var d=["up","mid","down"];for(var g in d)for(var C=d[g],S=0;S<=f[C];S++)l[C]&&(c=c+i[C][s(i[C].length)])}return c}return u(e,r)}});var P0=F((CB,$0)=>{$0.exports=function(t){return function(e,r,i){if(e===" ")return e;switch(r%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var L0=F((wB,k0)=>{k0.exports=function(t){return function(e,r,i){return r%2===0?e:t.inverse(e)}}});var M0=F((vB,N0)=>{N0.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(r,i,n){return r===" "?r:t[e[i++%e.length]](r)}}});var q0=F((xB,j0)=>{j0.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,i,n){return r===" "?r:t[e[Math.round(Math.random()*(e.length-2))]](r)}}});var z0=F((SB,V0)=>{var re={};V0.exports=re;re.themes={};var N_=X("util"),Tr=re.styles=x0(),H0=Object.defineProperties,M_=new RegExp(/[\r\n]+/g);re.supportsColor=O0().supportsColor;typeof re.enabled>"u"&&(re.enabled=re.supportsColor()!==!1);re.enable=function(){re.enabled=!0};re.disable=function(){re.enabled=!1};re.stripColors=re.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var _B=re.stylize=function(e,r){if(!re.enabled)return e+"";var i=Tr[r];return!i&&r in re?re[r](e):i.open+e+i.close},j_=/[|\\{}()[\]^$+*?.]/g,q_=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(j_,"\\$&")};function G0(t){var e=function r(){return H_.apply(r,arguments)};return e._styles=t,e.__proto__=U_,e}var W0=(function(){var t={};return Tr.grey=Tr.gray,Object.keys(Tr).forEach(function(e){Tr[e].closeRe=new RegExp(q_(Tr[e].close),"g"),t[e]={get:function(){return G0(this._styles.concat(e))}}}),t})(),U_=H0(function(){},W0);function H_(){var t=Array.prototype.slice.call(arguments),e=t.map(function(o){return o!=null&&o.constructor===String?o:N_.inspect(o)}).join(" ");if(!re.enabled||!e)return e;for(var r=e.indexOf(`
55
+ `)!=-1,i=this._styles,n=i.length;n--;){var s=Tr[i[n]];e=s.open+e.replace(s.closeRe,s.open)+s.close,r&&(e=e.replace(M_,function(o){return s.close+o+s.open}))}return e}re.setTheme=function(t){if(typeof t=="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 t)(function(r){re[r]=function(i){if(typeof t[r]=="object"){var n=i;for(var s in t[r])n=re[t[r][s]](n);return n}return re[t[r]](i)}})(e)};function G_(){var t={};return Object.keys(W0).forEach(function(e){t[e]={get:function(){return G0([e])}}}),t}var W_=function(e,r){var i=r.split("");return i=i.map(e),i.join("")};re.trap=T0();re.zalgo=B0();re.maps={};re.maps.america=P0()(re);re.maps.zebra=L0()(re);re.maps.rainbow=M0()(re);re.maps.random=q0()(re);for(U0 in re.maps)(function(t){re[t]=function(e){return W_(re.maps[t],e)}})(U0);var U0;H0(re,G_())});var K0=F((AB,Y0)=>{var V_=z0();Y0.exports=V_});var Q0=F((OB,ks)=>{var{info:z_,debug:Z0}=$s(),Qe=Na(),qa=class t{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 r=e.content;if(["boolean","number","bigint","string"].indexOf(typeof r)!==-1)this.content=String(r);else if(!r)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof r);this.colSpan=e.colSpan||1,this.rowSpan=e.rowSpan||1,this.options.href&&Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(e,r){this.cells=r;let i=this.options.chars||{},n=e.chars,s=this.chars={};K_.forEach(function(a){ja(i,n,a,s)}),this.truncate=this.options.truncate||e.truncate;let o=this.options.style=this.options.style||{},u=e.style;ja(o,u,"padding-left",this),ja(o,u,"padding-right",this),this.head=o.head||u.head,this.border=o.border||u.border,this.fixedWidth=e.colWidths[this.x],this.lines=this.computeLines(e),this.desiredWidth=Qe.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(e){let r=e.wordWrap||e.textWrap,{wordWrap:i=r}=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:n=!0}=e,{wrapOnWordBoundary:s=n}=this.options;return this.wrapLines(Qe.wordWrap(this.fixedWidth,this.content,s))}return this.wrapLines(this.content.split(`
56
+ `))}wrapLines(e){let r=Qe.colorizeLines(e);return this.href?r.map(i=>Qe.hyperlink(this.href,i)):r}init(e){let r=this.x,i=this.y;this.widths=e.colWidths.slice(r,r+this.colSpan),this.heights=e.rowHeights.slice(i,i+this.rowSpan),this.width=this.widths.reduce(X0,-1),this.height=this.heights.reduce(X0,-1),this.hAlign=this.options.hAlign||e.colAligns[r],this.vAlign=this.options.vAlign||e.rowAligns[i],this.drawRight=r+this.colSpan==e.colWidths.length}draw(e,r){if(e=="top")return this.drawTop(this.drawRight);if(e=="bottom")return this.drawBottom(this.drawRight);let i=Qe.truncate(this.content,10,this.truncate);e||z_(`${this.y}-${this.x}: ${this.rowSpan-e}x${this.colSpan} Cell ${i}`);let n=Math.max(this.height-this.lines.length,0),s;switch(this.vAlign){case"center":s=Math.ceil(n/2);break;case"bottom":s=n;break;default:s=0}if(e<s||e>=s+this.lines.length)return this.drawEmpty(this.drawRight,r);let o=this.lines.length>this.height&&e+1>=this.height;return this.drawLine(e-s,this.drawRight,o,r)}drawTop(e){let r=[];return this.cells?this.widths.forEach(function(i,n){r.push(this._topLeftChar(n)),r.push(Qe.repeat(this.chars[this.y==0?"top":"mid"],i))},this):(r.push(this._topLeftChar(0)),r.push(Qe.repeat(this.chars[this.y==0?"top":"mid"],this.width))),e&&r.push(this.chars[this.y==0?"topRight":"rightMid"]),this.wrapWithStyleColors("border",r.join(""))}_topLeftChar(e){let r=this.x+e,i;if(this.y==0)i=r==0?"topLeft":e==0?"topMid":"top";else if(r==0)i="leftMid";else if(i=e==0?"midMid":"bottomMid",this.cells&&(this.cells[this.y-1][r]instanceof t.ColSpanCell&&(i=e==0?"topMid":"mid"),e==0)){let s=1;for(;this.cells[this.y][r-s]instanceof t.ColSpanCell;)s++;this.cells[this.y][r-s]instanceof t.RowSpanCell&&(i="leftMid")}return this.chars[i]}wrapWithStyleColors(e,r){if(this[e]&&this[e].length)try{let i=K0();for(let n=this[e].length-1;n>=0;n--)i=i[this[e][n]];return i(r)}catch{return r}else return r}drawLine(e,r,i,n){let s=this.chars[this.x==0?"left":"middle"];if(this.x&&n&&this.cells){let m=this.cells[this.y+n][this.x-1];for(;m instanceof on;)m=this.cells[m.y][m.x-1];m instanceof un||(s=this.chars.rightMid)}let o=Qe.repeat(" ",this.paddingLeft),u=r?this.chars.right:"",a=Qe.repeat(" ",this.paddingRight),l=this.lines[e],c=this.width-(this.paddingLeft+this.paddingRight);i&&(l+=this.truncate||"\u2026");let f=Qe.truncate(l,c,this.truncate);return f=Qe.pad(f,c," ",this.hAlign),f=o+f+a,this.stylizeLine(s,f,u)}stylizeLine(e,r,i){return e=this.wrapWithStyleColors("border",e),i=this.wrapWithStyleColors("border",i),this.y===0&&(r=this.wrapWithStyleColors("head",r)),e+r+i}drawBottom(e){let r=this.chars[this.x==0?"bottomLeft":"bottomMid"],i=Qe.repeat(this.chars.bottom,this.width),n=e?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",r+i+n)}drawEmpty(e,r){let i=this.chars[this.x==0?"left":"middle"];if(this.x&&r&&this.cells){let o=this.cells[this.y+r][this.x-1];for(;o instanceof on;)o=this.cells[o.y][o.x-1];o instanceof un||(i=this.chars.rightMid)}let n=e?this.chars.right:"",s=Qe.repeat(" ",this.width);return this.stylizeLine(i,s,n)}},on=class{constructor(){}draw(e){return typeof e=="number"&&Z0(`${this.y}-${this.x}: 1x1 ColSpanCell`),""}init(){}mergeTableOptions(){}},un=class{constructor(e){this.originalCell=e}init(e){let r=this.y,i=this.originalCell.y;this.cellOffset=r-i,this.offset=Y_(e.rowHeights,i,this.cellOffset)}draw(e){return e=="top"?this.originalCell.draw(this.offset,this.cellOffset):e=="bottom"?this.originalCell.draw("bottom"):(Z0(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+e))}mergeTableOptions(){}};function J0(...t){return t.filter(e=>e!=null).shift()}function ja(t,e,r,i){let n=r.split("-");n.length>1?(n[1]=n[1].charAt(0).toUpperCase()+n[1].substr(1),n=n.join(""),i[n]=J0(t[n],t[r],e[n],e[r])):i[r]=J0(t[r],e[r])}function Y_(t,e,r){let i=t[e];for(let n=1;n<r;n++)i+=1+t[e+n];return i}function X0(t,e){return t+e+1}var K_=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];ks.exports=qa;ks.exports.ColSpanCell=on;ks.exports.RowSpanCell=un});var rg=F((RB,tg)=>{var{warn:J_,debug:X_}=$s(),Ua=Q0(),{ColSpanCell:Z_,RowSpanCell:Q_}=Ua;(function(){function t(d,g){return d[g]>0?t(d,g+1):g}function e(d){let g={};d.forEach(function(C,S){let O=0;C.forEach(function(T){T.y=S,T.x=S?t(g,O):O;let I=T.rowSpan||1,B=T.colSpan||1;if(I>1)for(let te=0;te<B;te++)g[T.x+te]=I;O=T.x+B}),Object.keys(g).forEach(T=>{g[T]--,g[T]<1&&delete g[T]})})}function r(d){let g=0;return d.forEach(function(C){C.forEach(function(S){g=Math.max(g,S.x+(S.colSpan||1))})}),g}function i(d){return d.length}function n(d,g){let C=d.y,S=d.y-1+(d.rowSpan||1),O=g.y,T=g.y-1+(g.rowSpan||1),I=!(C>T||O>S),B=d.x,te=d.x-1+(d.colSpan||1),ae=g.x,Q=g.x-1+(g.colSpan||1),Ce=!(B>Q||ae>te);return I&&Ce}function s(d,g,C){let S=Math.min(d.length-1,C),O={x:g,y:C};for(let T=0;T<=S;T++){let I=d[T];for(let B=0;B<I.length;B++)if(n(O,I[B]))return!0}return!1}function o(d,g,C,S){for(let O=C;O<S;O++)if(s(d,O,g))return!1;return!0}function u(d){d.forEach(function(g,C){g.forEach(function(S){for(let O=1;O<S.rowSpan;O++){let T=new Q_(S);T.x=S.x,T.y=S.y+O,T.colSpan=S.colSpan,l(T,d[C+O])}})})}function a(d){for(let g=d.length-1;g>=0;g--){let C=d[g];for(let S=0;S<C.length;S++){let O=C[S];for(let T=1;T<O.colSpan;T++){let I=new Z_;I.x=O.x+T,I.y=O.y,C.splice(S+1,0,I)}}}}function l(d,g){let C=0;for(;C<g.length&&g[C].x<d.x;)C++;g.splice(C,0,d)}function c(d){let g=i(d),C=r(d);X_(`Max rows: ${g}; Max cols: ${C}`);for(let S=0;S<g;S++)for(let O=0;O<C;O++)if(!s(d,O,S)){let T={x:O,y:S,colSpan:1,rowSpan:1};for(O++;O<C&&!s(d,O,S);)T.colSpan++,O++;let I=S+1;for(;I<g&&o(d,I,T.x,T.x+T.colSpan);)T.rowSpan++,I++;let B=new Ua(T);B.x=T.x,B.y=T.y,J_(`Missing cell at ${B.y}-${B.x}.`),l(B,d[S])}}function f(d){return d.map(function(g){if(!Array.isArray(g)){let C=Object.keys(g)[0];g=g[C],Array.isArray(g)?(g=g.slice(),g.unshift(C)):g=[C,g]}return g.map(function(C){return new Ua(C)})})}function m(d){let g=f(d);return e(g),c(g),u(g),a(g),g}tg.exports={makeTableLayout:m,layoutTable:e,addRowSpanCells:u,maxWidth:r,fillInTable:c,computeWidths:eg("colSpan","desiredWidth","x",1),computeHeights:eg("rowSpan","desiredHeight","y",1)}})();function eg(t,e,r,i){return function(n,s){let o=[],u=[],a={};s.forEach(function(l){l.forEach(function(c){(c[t]||1)>1?u.push(c):o[c[r]]=Math.max(o[c[r]]||0,c[e]||0,i)})}),n.forEach(function(l,c){typeof l=="number"&&(o[c]=l)});for(let l=u.length-1;l>=0;l--){let c=u[l],f=c[t],m=c[r],d=o[m],g=typeof n[m]=="number"?0:1;if(typeof d=="number")for(let C=1;C<f;C++)d+=1+o[m+C],typeof n[m+C]!="number"&&g++;else d=e==="desiredWidth"?c.desiredWidth-1:1,(!a[m]||a[m]<d)&&(a[m]=d);if(c[e]>d){let C=0;for(;g>0&&c[e]>d;){if(typeof n[m+C]!="number"){let S=Math.round((c[e]-d)/g);d+=S,o[m+C]+=S,g--}C++}}}Object.assign(n,o,a);for(let l=0;l<n.length;l++)n[l]=Math.max(i,n[l]||0)}}});var ng=F((TB,ig)=>{var Mt=$s(),eS=Na(),Ha=rg(),Ls=class extends Array{constructor(e){super();let r=eS.mergeOptions(e);if(Object.defineProperty(this,"options",{value:r,enumerable:r.debug}),r.debug){switch(typeof r.debug){case"boolean":Mt.setDebugLevel(Mt.WARN);break;case"number":Mt.setDebugLevel(r.debug);break;case"string":Mt.setDebugLevel(parseInt(r.debug,10));break;default:Mt.setDebugLevel(Mt.WARN),Mt.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof r.debug}`)}Object.defineProperty(this,"messages",{get(){return Mt.debugMessages()}})}}toString(){let e=this,r=this.options.head&&this.options.head.length;r?(e=[this.options.head],this.length&&e.push.apply(e,this)):this.options.style.head=[];let i=Ha.makeTableLayout(e);i.forEach(function(s){s.forEach(function(o){o.mergeTableOptions(this.options,i)},this)},this),Ha.computeWidths(this.options.colWidths,i),Ha.computeHeights(this.options.rowHeights,i),i.forEach(function(s){s.forEach(function(o){o.init(this.options)},this)},this);let n=[];for(let s=0;s<i.length;s++){let o=i[s],u=this.options.rowHeights[s];(s===0||!this.options.style.compact||s==1&&r)&&Ga(o,"top",n);for(let a=0;a<u;a++)Ga(o,a,n);s+1==i.length&&Ga(o,"bottom",n)}return n.join(`
57
+ `)}get width(){return this.toString().split(`
58
+ `)[0].length}};Ls.reset=()=>Mt.reset();function Ga(t,e,r){let i=[];t.forEach(function(s){i.push(s.draw(e))});let n=i.join("");n.length&&r.push(n)}ig.exports=Ls});var og=F((IB,sg)=>{sg.exports=ng()});var Fe=F((BB,ag)=>{"use strict";var{FORCE_COLOR:tS,NODE_DISABLE_COLORS:rS,TERM:iS}=process.env,ue={enabled:!rS&&iS!=="dumb"&&tS!=="0",reset:ce(0,0),bold:ce(1,22),dim:ce(2,22),italic:ce(3,23),underline:ce(4,24),inverse:ce(7,27),hidden:ce(8,28),strikethrough:ce(9,29),black:ce(30,39),red:ce(31,39),green:ce(32,39),yellow:ce(33,39),blue:ce(34,39),magenta:ce(35,39),cyan:ce(36,39),white:ce(37,39),gray:ce(90,39),grey:ce(90,39),bgBlack:ce(40,49),bgRed:ce(41,49),bgGreen:ce(42,49),bgYellow:ce(43,49),bgBlue:ce(44,49),bgMagenta:ce(45,49),bgCyan:ce(46,49),bgWhite:ce(47,49)};function ug(t,e){let r=0,i,n="",s="";for(;r<t.length;r++)i=t[r],n+=i.open,s+=i.close,e.includes(i.close)&&(e=e.replace(i.rgx,i.close+i.open));return n+e+s}function nS(t,e){let r={has:t,keys:e};return r.reset=ue.reset.bind(r),r.bold=ue.bold.bind(r),r.dim=ue.dim.bind(r),r.italic=ue.italic.bind(r),r.underline=ue.underline.bind(r),r.inverse=ue.inverse.bind(r),r.hidden=ue.hidden.bind(r),r.strikethrough=ue.strikethrough.bind(r),r.black=ue.black.bind(r),r.red=ue.red.bind(r),r.green=ue.green.bind(r),r.yellow=ue.yellow.bind(r),r.blue=ue.blue.bind(r),r.magenta=ue.magenta.bind(r),r.cyan=ue.cyan.bind(r),r.white=ue.white.bind(r),r.gray=ue.gray.bind(r),r.grey=ue.grey.bind(r),r.bgBlack=ue.bgBlack.bind(r),r.bgRed=ue.bgRed.bind(r),r.bgGreen=ue.bgGreen.bind(r),r.bgYellow=ue.bgYellow.bind(r),r.bgBlue=ue.bgBlue.bind(r),r.bgMagenta=ue.bgMagenta.bind(r),r.bgCyan=ue.bgCyan.bind(r),r.bgWhite=ue.bgWhite.bind(r),r}function ce(t,e){let r={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(i){return this!==void 0&&this.has!==void 0?(this.has.includes(t)||(this.has.push(t),this.keys.push(r)),i===void 0?this:ue.enabled?ug(this.keys,i+""):i+""):i===void 0?nS([t],[r]):ue.enabled?ug([r],i+""):i+""}}ag.exports=ue});var cg=F(($B,lg)=>{"use strict";lg.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var Ns=F((PB,hg)=>{"use strict";hg.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var Ee=F((kB,fg)=>{"use strict";var Wa={to(t,e){return e?`\x1B[${e+1};${t+1}H`:`\x1B[${t+1}G`},move(t,e){let r="";return t<0?r+=`\x1B[${-t}D`:t>0&&(r+=`\x1B[${t}C`),e<0?r+=`\x1B[${-e}A`:e>0&&(r+=`\x1B[${e}B`),r},up:(t=1)=>`\x1B[${t}A`,down:(t=1)=>`\x1B[${t}B`,forward:(t=1)=>`\x1B[${t}C`,backward:(t=1)=>`\x1B[${t}D`,nextLine:(t=1)=>"\x1B[E".repeat(t),prevLine:(t=1)=>"\x1B[F".repeat(t),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},sS={up:(t=1)=>"\x1B[S".repeat(t),down:(t=1)=>"\x1B[T".repeat(t)},oS={screen:"\x1B[2J",up:(t=1)=>"\x1B[1J".repeat(t),down:(t=1)=>"\x1B[J".repeat(t),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(t){let e="";for(let r=0;r<t;r++)e+=this.line+(r<t-1?Wa.up():"");return t&&(e+=Wa.left),e}};fg.exports={cursor:Wa,scroll:sS,erase:oS,beep:"\x07"}});var gg=F((LB,mg)=>{"use strict";function uS(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=aS(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
59
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,u;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return s=l.done,l},e:function(l){o=!0,u=l},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw u}}}}function aS(t,e){if(t){if(typeof t=="string")return dg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dg(t,e)}}function dg(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}var lS=Ns(),Dg=Ee(),pg=Dg.erase,cS=Dg.cursor,hS=t=>[...lS(t)].length;mg.exports=function(t,e){if(!e)return pg.line+cS.to(0);let r=0,i=t.split(/\r?\n/);var n=uS(i),s;try{for(n.s();!(s=n.n()).done;){let o=s.value;r+=1+Math.floor(Math.max(hS(o)-1,0)/e)}}catch(o){n.e(o)}finally{n.f()}return pg.lines(r)}});var Va=F((NB,yg)=>{"use strict";var an={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},fS={arrowUp:an.arrowUp,arrowDown:an.arrowDown,arrowLeft:an.arrowLeft,arrowRight:an.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},dS=process.platform==="win32"?fS:an;yg.exports=dS});var Eg=F((MB,Fg)=>{"use strict";var ai=Fe(),Ir=Va(),za=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),pS=t=>za[t]||za.default,ln=Object.freeze({aborted:ai.red(Ir.cross),done:ai.green(Ir.tick),exited:ai.yellow(Ir.cross),default:ai.cyan("?")}),DS=(t,e,r)=>e?ln.aborted:r?ln.exited:t?ln.done:ln.default,mS=t=>ai.gray(t?Ir.ellipsis:Ir.pointerSmall),gS=(t,e)=>ai.gray(t?e?Ir.pointerSmall:"+":Ir.line);Fg.exports={styles:za,render:pS,symbols:ln,symbol:DS,delimiter:mS,item:gS}});var Cg=F((jB,bg)=>{"use strict";var yS=Ns();bg.exports=function(t,e){let r=String(yS(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,n)=>i+n):r.length}});var vg=F((qB,wg)=>{"use strict";wg.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(n=>n.split(/\s+/g).reduce((s,o)=>(o.length+r.length>=i||s[s.length-1].length+o.length+1<i?s[s.length-1]+=` ${o}`:s.push(`${r}${o}`),s),[r]).join(`
60
+ `)).join(`
61
+ `)}});var _g=F((UB,xg)=>{"use strict";xg.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let n=Math.min(i+r,e);return{startIndex:i,endIndex:n}}});var Dt=F((HB,Sg)=>{"use strict";Sg.exports={action:cg(),clear:gg(),style:Eg(),strip:Ns(),figures:Va(),lines:Cg(),wrap:vg(),entriesToDisplay:_g()}});var jt=F((GB,Rg)=>{"use strict";var Ag=X("readline"),FS=Dt(),ES=FS.action,bS=X("events"),Og=Ee(),CS=Og.beep,wS=Og.cursor,vS=Fe(),Ya=class extends bS{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=Ag.createInterface({input:this.in,escapeCodeTimeout:50});Ag.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,n=(s,o)=>{let u=ES(o,i);u===!1?this._&&this._(s,o):typeof this[u]=="function"?this[u](o):this.bell()};this.close=()=>{this.out.write(wS.show),this.in.removeListener("keypress",n),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",n)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(CS)}render(){this.onRender(vS),this.firstRender&&(this.firstRender=!1)}};Rg.exports=Ya});var Pg=F((WB,$g)=>{"use strict";function Tg(t,e,r,i,n,s,o){try{var u=t[s](o),a=u.value}catch(l){r(l);return}u.done?e(a):Promise.resolve(a).then(i,n)}function Ig(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function o(a){Tg(s,i,n,o,u,"next",a)}function u(a){Tg(s,i,n,o,u,"throw",a)}o(void 0)})}}var Ms=Fe(),xS=jt(),Bg=Ee(),_S=Bg.erase,cn=Bg.cursor,js=Dt(),Ka=js.style,Ja=js.clear,SS=js.lines,AS=js.figures,Xa=class extends xS{constructor(e={}){super(e),this.transform=Ka.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=Ja("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=Ms.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
62
+ `),this.close()}validate(){var e=this;return Ig(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return Ig(function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error){e.red=!0,e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(`
63
+ `),e.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${i}${e}${n}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(cn.down(SS(this.outputError,this.out.columns)-1)+Ja(this.outputError,this.out.columns)),this.out.write(Ja(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[Ka.symbol(this.done,this.aborted),Ms.bold(this.msg),Ka.delimiter(this.done),this.red?Ms.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
64
+ `).reduce((e,r,i)=>e+`
65
+ ${i?" ":AS.pointerSmall} ${Ms.red().italic(r)}`,"")),this.out.write(_S.line+cn.to(0)+this.outputText+cn.save+this.outputError+cn.restore+cn.move(this.cursorOffset,0)))}};$g.exports=Xa});var Mg=F((VB,Ng)=>{"use strict";var qt=Fe(),OS=jt(),hn=Dt(),kg=hn.style,Lg=hn.clear,qs=hn.figures,RS=hn.wrap,TS=hn.entriesToDisplay,IS=Ee(),BS=IS.cursor,Za=class extends OS{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),value:r&&(r.value===void 0?i:r.value),description:r&&r.description,selected:r&&r.selected,disabled:r&&r.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=Lg("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
66
+ `),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
67
+ `),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(BS.hide):this.out.write(Lg(this.outputText,this.out.columns)),super.render();let e=TS(this.cursor,this.choices.length,this.optionsPerPage),r=e.startIndex,i=e.endIndex;if(this.outputText=[kg.symbol(this.done,this.aborted),qt.bold(this.msg),kg.delimiter(!1),this.done?this.selection.title:this.selection.disabled?qt.yellow(this.warn):qt.gray(this.hint)].join(" "),!this.done){this.outputText+=`
68
+ `;for(let n=r;n<i;n++){let s,o,u="",a=this.choices[n];n===r&&r>0?o=qs.arrowUp:n===i-1&&i<this.choices.length?o=qs.arrowDown:o=" ",a.disabled?(s=this.cursor===n?qt.gray().underline(a.title):qt.strikethrough().gray(a.title),o=(this.cursor===n?qt.bold().gray(qs.pointer)+" ":" ")+o):(s=this.cursor===n?qt.cyan().underline(a.title):a.title,o=(this.cursor===n?qt.cyan(qs.pointer)+" ":" ")+o,a.description&&this.cursor===n&&(u=` - ${a.description}`,(o.length+s.length+u.length>=this.out.columns||a.description.split(/\r?\n/).length>1)&&(u=`
69
+ `+RS(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${o} ${s}${qt.gray(u)}
70
+ `}}this.out.write(this.outputText)}};Ng.exports=Za});var Wg=F((zB,Gg)=>{"use strict";var Us=Fe(),$S=jt(),Ug=Dt(),jg=Ug.style,PS=Ug.clear,Hg=Ee(),qg=Hg.cursor,kS=Hg.erase,Qa=class extends $S{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
71
+ `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
72
+ `),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(qg.hide):this.out.write(PS(this.outputText,this.out.columns)),super.render(),this.outputText=[jg.symbol(this.done,this.aborted),Us.bold(this.msg),jg.delimiter(this.done),this.value?this.inactive:Us.cyan().underline(this.inactive),Us.gray("/"),this.value?Us.cyan().underline(this.active):this.active].join(" "),this.out.write(kS.line+qg.to(0)+this.outputText))}};Gg.exports=Qa});var xt=F((YB,Vg)=>{"use strict";var el=class t{constructor({token:e,date:r,parts:i,locales:n}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=n||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof t)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,n)=>n>r&&i instanceof t)}toString(){return String(this.date)}};Vg.exports=el});var Yg=F((KB,zg)=>{"use strict";var LS=xt(),tl=class extends LS{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};zg.exports=tl});var Jg=F((JB,Kg)=>{"use strict";var NS=xt(),MS=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),rl=class extends NS{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+MS(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};Kg.exports=rl});var Zg=F((XB,Xg)=>{"use strict";var jS=xt(),il=class extends jS{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};Xg.exports=il});var ey=F((ZB,Qg)=>{"use strict";var qS=xt(),nl=class extends qS{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};Qg.exports=nl});var ry=F((QB,ty)=>{"use strict";var US=xt(),sl=class extends US{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};ty.exports=sl});var ny=F((e$,iy)=>{"use strict";var HS=xt(),ol=class extends HS{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};iy.exports=ol});var oy=F((t$,sy)=>{"use strict";var GS=xt(),ul=class extends GS{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};sy.exports=ul});var ay=F((r$,uy)=>{"use strict";var WS=xt(),al=class extends WS{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};uy.exports=al});var cy=F((i$,ly)=>{"use strict";ly.exports={DatePart:xt(),Meridiem:Yg(),Day:Jg(),Hours:Zg(),Milliseconds:ey(),Minutes:ry(),Month:ny(),Seconds:oy(),Year:ay()}});var Ey=F((n$,Fy)=>{"use strict";function hy(t,e,r,i,n,s,o){try{var u=t[s](o),a=u.value}catch(l){r(l);return}u.done?e(a):Promise.resolve(a).then(i,n)}function fy(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function o(a){hy(s,i,n,o,u,"next",a)}function u(a){hy(s,i,n,o,u,"throw",a)}o(void 0)})}}var ll=Fe(),VS=jt(),hl=Dt(),dy=hl.style,py=hl.clear,zS=hl.figures,yy=Ee(),YS=yy.erase,Dy=yy.cursor,Ut=cy(),my=Ut.DatePart,KS=Ut.Meridiem,JS=Ut.Day,XS=Ut.Hours,ZS=Ut.Milliseconds,QS=Ut.Minutes,e3=Ut.Month,t3=Ut.Seconds,r3=Ut.Year,i3=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,gy={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new JS(t),3:t=>new e3(t),4:t=>new r3(t),5:t=>new KS(t),6:t=>new XS(t),7:t=>new QS(t),8:t=>new t3(t),9:t=>new ZS(t)},n3={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},cl=class extends VS{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(n3,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=py("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=i3.exec(e);){let n=r.shift(),s=r.findIndex(o=>o!=null);this.parts.push(s in gy?gy[s]({token:r[s]||n,date:this.date,parts:this.parts,locales:this.locales}):r[s]||n)}let i=this.parts.reduce((n,s)=>(typeof s=="string"&&typeof n[n.length-1]=="string"?n[n.length-1]+=s:n.push(s),n),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof my)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
73
+ `),this.close()}validate(){var e=this;return fy(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return fy(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(`
74
+ `),e.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(r=>r instanceof my)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(Dy.hide):this.out.write(py(this.outputText,this.out.columns)),super.render(),this.outputText=[dy.symbol(this.done,this.aborted),ll.bold(this.msg),dy.delimiter(!1),this.parts.reduce((e,r,i)=>e.concat(i===this.cursor&&!this.done?ll.cyan().underline(r.toString()):r),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
75
+ `).reduce((e,r,i)=>e+`
76
+ ${i?" ":zS.pointerSmall} ${ll.red().italic(r)}`,"")),this.out.write(YS.line+Dy.to(0)+this.outputText))}};Fy.exports=cl});var Sy=F((s$,_y)=>{"use strict";function by(t,e,r,i,n,s,o){try{var u=t[s](o),a=u.value}catch(l){r(l);return}u.done?e(a):Promise.resolve(a).then(i,n)}function Cy(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function o(a){by(s,i,n,o,u,"next",a)}function u(a){by(s,i,n,o,u,"throw",a)}o(void 0)})}}var Hs=Fe(),s3=jt(),xy=Ee(),Gs=xy.cursor,o3=xy.erase,Ws=Dt(),fl=Ws.style,u3=Ws.figures,wy=Ws.clear,a3=Ws.lines,l3=/[0-9]/,dl=t=>t!==void 0,vy=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},pl=class extends s3{constructor(e={}){super(e),this.transform=fl.render(e.style),this.msg=e.message,this.initial=dl(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=dl(e.min)?e.min:-1/0,this.max=dl(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=Hs.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${vy(e,this.round)}`),this._value=vy(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||l3.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
77
+ `),this.close()}validate(){var e=this;return Cy(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return Cy(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}let r=e.value;e.value=r!==""?r:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write(`
78
+ `),e.close()})()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,r){if(!this.valid(e))return this.bell();let i=Date.now();if(i-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Gs.down(a3(this.outputError,this.out.columns)-1)+wy(this.outputError,this.out.columns)),this.out.write(wy(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[fl.symbol(this.done,this.aborted),Hs.bold(this.msg),fl.delimiter(this.done),!this.done||!this.done&&!this.placeholder?Hs[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
79
+ `).reduce((e,r,i)=>e+`
80
+ ${i?" ":u3.pointerSmall} ${Hs.red().italic(r)}`,"")),this.out.write(o3.line+Gs.to(0)+this.outputText+Gs.save+this.outputError+Gs.restore))}};_y.exports=pl});var ml=F((o$,Ry)=>{"use strict";var _t=Fe(),c3=Ee(),h3=c3.cursor,f3=jt(),fn=Dt(),Ay=fn.clear,ir=fn.figures,Oy=fn.style,d3=fn.wrap,p3=fn.entriesToDisplay,Dl=class extends f3{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=Ay("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
81
+ `),this.close()}submit(){let e=this.value.filter(r=>r.selected);this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
82
+ `),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){this.cursor===0?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(r=>!r.disabled).forEach(r=>r.selected=e),this.render()}_(e,r){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
83
+ Instructions:
84
+ ${ir.arrowUp}/${ir.arrowDown}: Highlight option
85
+ ${ir.arrowLeft}/${ir.arrowRight}/[space]: Toggle selection
86
+ `+(this.maxChoices===void 0?` a: Toggle all
87
+ `:"")+" enter/return: Complete answer":""}renderOption(e,r,i,n){let s=(r.selected?_t.green(ir.radioOn):ir.radioOff)+" "+n+" ",o,u;return r.disabled?o=e===i?_t.gray().underline(r.title):_t.strikethrough().gray(r.title):(o=e===i?_t.cyan().underline(r.title):r.title,e===i&&r.description&&(u=` - ${r.description}`,(s.length+o.length+u.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(u=`
88
+ `+d3(r.description,{margin:s.length,width:this.out.columns})))),s+o+_t.gray(u||"")}paginateOptions(e){if(e.length===0)return _t.red("No matches for this query.");let r=p3(this.cursor,e.length,this.optionsPerPage),i=r.startIndex,n=r.endIndex,s,o=[];for(let u=i;u<n;u++)u===i&&i>0?s=ir.arrowUp:u===n-1&&n<e.length?s=ir.arrowDown:s=" ",o.push(this.renderOption(this.cursor,e[u],u,s));return`
89
+ `+o.join(`
90
+ `)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[_t.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(_t.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(h3.hide),super.render();let e=[Oy.symbol(this.done,this.aborted),_t.bold(this.msg),Oy.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=_t.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=Ay(e,this.out.columns)}};Ry.exports=Dl});var Ly=F((u$,ky)=>{"use strict";function Ty(t,e,r,i,n,s,o){try{var u=t[s](o),a=u.value}catch(l){r(l);return}u.done?e(a):Promise.resolve(a).then(i,n)}function D3(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function o(a){Ty(s,i,n,o,u,"next",a)}function u(a){Ty(s,i,n,o,u,"throw",a)}o(void 0)})}}var dn=Fe(),m3=jt(),Py=Ee(),g3=Py.erase,Iy=Py.cursor,pn=Dt(),gl=pn.style,By=pn.clear,yl=pn.figures,y3=pn.wrap,F3=pn.entriesToDisplay,$y=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),E3=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),b3=(t,e)=>{let r=t.findIndex(i=>i.value===e||i.title===e);return r>-1?r:void 0},Fl=class extends m3{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:b3(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=gl.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=By("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=$y(this.suggestions,e):this.value=this.fallback.value,this.fire()}complete(e){var r=this;return D3(function*(){let i=r.completing=r.suggest(r.input,r.choices),n=yield i;if(r.completing!==i)return;r.suggestions=n.map((o,u,a)=>({title:E3(a,u),value:$y(a,u),description:o.description})),r.completing=!1;let s=Math.max(n.length-1,0);r.moveSelect(Math.min(s,r.select)),e&&e()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
91
+ `),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(`
92
+ `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(`
93
+ `),this.close()}_(e,r){let i=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${i}${e}${n}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1),r=this.input.slice(this.cursor);this.input=`${e}${r}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor+1);this.input=`${e}${r}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,r,i,n){let s,o=i?yl.arrowUp:n?yl.arrowDown:" ",u=r?dn.cyan().underline(e.title):e.title;return o=(r?dn.cyan(yl.pointer)+" ":" ")+o,e.description&&(s=` - ${e.description}`,(o.length+u.length+s.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(s=`
94
+ `+y3(e.description,{margin:3,width:this.out.columns}))),o+" "+u+dn.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(Iy.hide):this.out.write(By(this.outputText,this.out.columns)),super.render();let e=F3(this.select,this.choices.length,this.limit),r=e.startIndex,i=e.endIndex;if(this.outputText=[gl.symbol(this.done,this.aborted,this.exited),dn.bold(this.msg),gl.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let n=this.suggestions.slice(r,i).map((s,o)=>this.renderOption(s,this.select===o+r,o===0&&r>0,o+r===i-1&&i<this.choices.length)).join(`
95
+ `);this.outputText+=`
96
+ `+(n||dn.gray(this.fallback.title))}this.out.write(g3.line+Iy.to(0)+this.outputText)}};ky.exports=Fl});var qy=F((a$,jy)=>{"use strict";var Ht=Fe(),C3=Ee(),w3=C3.cursor,v3=ml(),bl=Dt(),Ny=bl.clear,My=bl.style,li=bl.figures,El=class extends v3{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=Ny("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let r=this.filteredOptions.findIndex(i=>i===e);this.cursor=r<0?0:r,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,r){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
97
+ Instructions:
98
+ ${li.arrowUp}/${li.arrowDown}: Highlight option
99
+ ${li.arrowLeft}/${li.arrowRight}/[space]: Toggle selection
100
+ [a,b,c]/delete: Filter choices
101
+ enter/return: Complete answer
102
+ `:""}renderCurrentInput(){return`
103
+ Filtered results for: ${this.inputValue?this.inputValue:Ht.gray("Enter something to filter")}
104
+ `}renderOption(e,r,i){let n;return r.disabled?n=e===i?Ht.gray().underline(r.title):Ht.strikethrough().gray(r.title):n=e===i?Ht.cyan().underline(r.title):r.title,(r.selected?Ht.green(li.radioOn):li.radioOff)+" "+n}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[Ht.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(Ht.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(w3.hide),super.render();let e=[My.symbol(this.done,this.aborted),Ht.bold(this.msg),My.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=Ht.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=Ny(e,this.out.columns)}};jy.exports=El});var Yy=F((l$,zy)=>{"use strict";var Uy=Fe(),x3=jt(),Wy=Dt(),Hy=Wy.style,_3=Wy.clear,Vy=Ee(),S3=Vy.erase,Gy=Vy.cursor,Cl=class extends x3{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
105
+ `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
106
+ `),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Gy.hide):this.out.write(_3(this.outputText,this.out.columns)),super.render(),this.outputText=[Hy.symbol(this.done,this.aborted),Uy.bold(this.msg),Hy.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Uy.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(S3.line+Gy.to(0)+this.outputText))}};zy.exports=Cl});var Jy=F((c$,Ky)=>{"use strict";Ky.exports={TextPrompt:Pg(),SelectPrompt:Mg(),TogglePrompt:Wg(),DatePrompt:Ey(),NumberPrompt:Sy(),MultiselectPrompt:ml(),AutocompletePrompt:Ly(),AutocompleteMultiselectPrompt:qy(),ConfirmPrompt:Yy()}});var Zy=F(Xy=>{"use strict";var ze=Xy,A3=Jy(),Vs=t=>t;function St(t,e,r={}){return new Promise((i,n)=>{let s=new A3[t](e),o=r.onAbort||Vs,u=r.onSubmit||Vs,a=r.onExit||Vs;s.on("state",e.onState||Vs),s.on("submit",l=>i(u(l))),s.on("exit",l=>i(a(l))),s.on("abort",l=>n(o(l)))})}ze.text=t=>St("TextPrompt",t);ze.password=t=>(t.style="password",ze.text(t));ze.invisible=t=>(t.style="invisible",ze.text(t));ze.number=t=>St("NumberPrompt",t);ze.date=t=>St("DatePrompt",t);ze.confirm=t=>St("ConfirmPrompt",t);ze.list=t=>{let e=t.separator||",";return St("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};ze.toggle=t=>St("TogglePrompt",t);ze.select=t=>St("SelectPrompt",t);ze.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return St("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};ze.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return St("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var O3=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));ze.autocomplete=t=>(t.suggest=t.suggest||O3,t.choices=[].concat(t.choices||[]),St("AutocompletePrompt",t))});var oF=F((f$,sF)=>{"use strict";function Qy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function eF(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Qy(Object(r),!0).forEach(function(i){R3(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qy(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function R3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function T3(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=I3(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
107
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,u;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return s=l.done,l},e:function(l){o=!0,u=l},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw u}}}}function I3(t,e){if(t){if(typeof t=="string")return tF(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tF(t,e)}}function tF(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function rF(t,e,r,i,n,s,o){try{var u=t[s](o),a=u.value}catch(l){r(l);return}u.done?e(a):Promise.resolve(a).then(i,n)}function iF(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function o(a){rF(s,i,n,o,u,"next",a)}function u(a){rF(s,i,n,o,u,"throw",a)}o(void 0)})}}var wl=Zy(),B3=["suggest","format","onState","validate","onRender","type"],nF=()=>{};function nr(){return vl.apply(this,arguments)}function vl(){return vl=iF(function*(t=[],{onSubmit:e=nF,onCancel:r=nF}={}){let i={},n=nr._override||{};t=[].concat(t);let s,o,u,a,l,c,f=(function(){var S=iF(function*(O,T,I=!1){if(!(!I&&O.validate&&O.validate(T)!==!0))return O.format?yield O.format(T,i):T});return function(T,I){return S.apply(this,arguments)}})();var m=T3(t),d;try{for(m.s();!(d=m.n()).done;){o=d.value;var g=o;if(a=g.name,l=g.type,typeof l=="function"&&(l=yield l(s,eF({},i),o),o.type=l),!!l){for(let S in o){if(B3.includes(S))continue;let O=o[S];o[S]=typeof O=="function"?yield O(s,eF({},i),c):O}if(c=o,typeof o.message!="string")throw new Error("prompt message is required");var C=o;if(a=C.name,l=C.type,wl[l]===void 0)throw new Error(`prompt type (${l}) is not defined`);if(n[o.name]!==void 0&&(s=yield f(o,n[o.name]),s!==void 0)){i[a]=s;continue}try{s=nr._injected?$3(nr._injected,o.initial):yield wl[l](o),i[a]=s=yield f(o,s,!0),u=yield e(o,s,i)}catch{u=!(yield r(o,i))}if(u)return i}}}catch(S){m.e(S)}finally{m.f()}return i}),vl.apply(this,arguments)}function $3(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function P3(t){nr._injected=(nr._injected||[]).concat(t)}function k3(t){nr._override=Object.assign({},t)}sF.exports=Object.assign(nr,{prompt:nr,prompts:wl,inject:P3,override:k3})});var aF=F((d$,uF)=>{"use strict";uF.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var zs=F((p$,lF)=>{"use strict";lF.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var fF=F((D$,hF)=>{"use strict";var L3=zs(),{erase:cF,cursor:N3}=Ee(),M3=t=>[...L3(t)].length;hF.exports=function(t,e){if(!e)return cF.line+N3.to(0);let r=0,i=t.split(/\r?\n/);for(let n of i)r+=1+Math.floor(Math.max(M3(n)-1,0)/e);return cF.lines(r)}});var xl=F((m$,dF)=>{"use strict";var Dn={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},j3={arrowUp:Dn.arrowUp,arrowDown:Dn.arrowDown,arrowLeft:Dn.arrowLeft,arrowRight:Dn.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},q3=process.platform==="win32"?j3:Dn;dF.exports=q3});var DF=F((g$,pF)=>{"use strict";var ci=Fe(),Br=xl(),_l=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),U3=t=>_l[t]||_l.default,mn=Object.freeze({aborted:ci.red(Br.cross),done:ci.green(Br.tick),exited:ci.yellow(Br.cross),default:ci.cyan("?")}),H3=(t,e,r)=>e?mn.aborted:r?mn.exited:t?mn.done:mn.default,G3=t=>ci.gray(t?Br.ellipsis:Br.pointerSmall),W3=(t,e)=>ci.gray(t?e?Br.pointerSmall:"+":Br.line);pF.exports={styles:_l,render:U3,symbols:mn,symbol:H3,delimiter:G3,item:W3}});var gF=F((y$,mF)=>{"use strict";var V3=zs();mF.exports=function(t,e){let r=String(V3(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,n)=>i+n):r.length}});var FF=F((F$,yF)=>{"use strict";yF.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(n=>n.split(/\s+/g).reduce((s,o)=>(o.length+r.length>=i||s[s.length-1].length+o.length+1<i?s[s.length-1]+=` ${o}`:s.push(`${r}${o}`),s),[r]).join(`
108
+ `)).join(`
109
+ `)}});var bF=F((E$,EF)=>{"use strict";EF.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let n=Math.min(i+r,e);return{startIndex:i,endIndex:n}}});var mt=F((b$,CF)=>{"use strict";CF.exports={action:aF(),clear:fF(),style:DF(),strip:zs(),figures:xl(),lines:gF(),wrap:FF(),entriesToDisplay:bF()}});var Gt=F((C$,vF)=>{"use strict";var wF=X("readline"),{action:z3}=mt(),Y3=X("events"),{beep:K3,cursor:J3}=Ee(),X3=Fe(),Sl=class extends Y3{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=wF.createInterface({input:this.in,escapeCodeTimeout:50});wF.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,n=(s,o)=>{let u=z3(o,i);u===!1?this._&&this._(s,o):typeof this[u]=="function"?this[u](o):this.bell()};this.close=()=>{this.out.write(J3.show),this.in.removeListener("keypress",n),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",n)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(K3)}render(){this.onRender(X3),this.firstRender&&(this.firstRender=!1)}};vF.exports=Sl});var _F=F((w$,xF)=>{var Ys=Fe(),Z3=Gt(),{erase:Q3,cursor:gn}=Ee(),{style:Al,clear:Ol,lines:eA,figures:tA}=mt(),Rl=class extends Z3{constructor(e={}){super(e),this.transform=Al.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=Ol("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=Ys.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
110
+ `),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
111
+ `),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${i}${e}${n}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(gn.down(eA(this.outputError,this.out.columns)-1)+Ol(this.outputError,this.out.columns)),this.out.write(Ol(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[Al.symbol(this.done,this.aborted),Ys.bold(this.msg),Al.delimiter(this.done),this.red?Ys.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
112
+ `).reduce((e,r,i)=>e+`
113
+ ${i?" ":tA.pointerSmall} ${Ys.red().italic(r)}`,"")),this.out.write(Q3.line+gn.to(0)+this.outputText+gn.save+this.outputError+gn.restore+gn.move(this.cursorOffset,0)))}};xF.exports=Rl});var RF=F((v$,OF)=>{"use strict";var Wt=Fe(),rA=Gt(),{style:SF,clear:AF,figures:Ks,wrap:iA,entriesToDisplay:nA}=mt(),{cursor:sA}=Ee(),Tl=class extends rA{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),value:r&&(r.value===void 0?i:r.value),description:r&&r.description,selected:r&&r.selected,disabled:r&&r.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=AF("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
114
+ `),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
115
+ `),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(sA.hide):this.out.write(AF(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:r}=nA(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[SF.symbol(this.done,this.aborted),Wt.bold(this.msg),SF.delimiter(!1),this.done?this.selection.title:this.selection.disabled?Wt.yellow(this.warn):Wt.gray(this.hint)].join(" "),!this.done){this.outputText+=`
116
+ `;for(let i=e;i<r;i++){let n,s,o="",u=this.choices[i];i===e&&e>0?s=Ks.arrowUp:i===r-1&&r<this.choices.length?s=Ks.arrowDown:s=" ",u.disabled?(n=this.cursor===i?Wt.gray().underline(u.title):Wt.strikethrough().gray(u.title),s=(this.cursor===i?Wt.bold().gray(Ks.pointer)+" ":" ")+s):(n=this.cursor===i?Wt.cyan().underline(u.title):u.title,s=(this.cursor===i?Wt.cyan(Ks.pointer)+" ":" ")+s,u.description&&this.cursor===i&&(o=` - ${u.description}`,(s.length+n.length+o.length>=this.out.columns||u.description.split(/\r?\n/).length>1)&&(o=`
117
+ `+iA(u.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${n}${Wt.gray(o)}
118
+ `}}this.out.write(this.outputText)}};OF.exports=Tl});var $F=F((x$,BF)=>{var Js=Fe(),oA=Gt(),{style:TF,clear:uA}=mt(),{cursor:IF,erase:aA}=Ee(),Il=class extends oA{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
119
+ `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
120
+ `),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(IF.hide):this.out.write(uA(this.outputText,this.out.columns)),super.render(),this.outputText=[TF.symbol(this.done,this.aborted),Js.bold(this.msg),TF.delimiter(this.done),this.value?this.inactive:Js.cyan().underline(this.inactive),Js.gray("/"),this.value?Js.cyan().underline(this.active):this.active].join(" "),this.out.write(aA.line+IF.to(0)+this.outputText))}};BF.exports=Il});var At=F((_$,PF)=>{"use strict";var Bl=class t{constructor({token:e,date:r,parts:i,locales:n}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=n||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof t)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,n)=>n>r&&i instanceof t)}toString(){return String(this.date)}};PF.exports=Bl});var LF=F((S$,kF)=>{"use strict";var lA=At(),$l=class extends lA{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};kF.exports=$l});var MF=F((A$,NF)=>{"use strict";var cA=At(),hA=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),Pl=class extends cA{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+hA(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};NF.exports=Pl});var qF=F((O$,jF)=>{"use strict";var fA=At(),kl=class extends fA{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};jF.exports=kl});var HF=F((R$,UF)=>{"use strict";var dA=At(),Ll=class extends dA{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};UF.exports=Ll});var WF=F((T$,GF)=>{"use strict";var pA=At(),Nl=class extends pA{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};GF.exports=Nl});var zF=F((I$,VF)=>{"use strict";var DA=At(),Ml=class extends DA{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};VF.exports=Ml});var KF=F((B$,YF)=>{"use strict";var mA=At(),jl=class extends mA{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};YF.exports=jl});var XF=F(($$,JF)=>{"use strict";var gA=At(),ql=class extends gA{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};JF.exports=ql});var QF=F((P$,ZF)=>{"use strict";ZF.exports={DatePart:At(),Meridiem:LF(),Day:MF(),Hours:qF(),Milliseconds:HF(),Minutes:WF(),Month:zF(),Seconds:KF(),Year:XF()}});var oE=F((k$,sE)=>{"use strict";var Ul=Fe(),yA=Gt(),{style:eE,clear:tE,figures:FA}=mt(),{erase:EA,cursor:rE}=Ee(),{DatePart:iE,Meridiem:bA,Day:CA,Hours:wA,Milliseconds:vA,Minutes:xA,Month:_A,Seconds:SA,Year:AA}=QF(),OA=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,nE={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new CA(t),3:t=>new _A(t),4:t=>new AA(t),5:t=>new bA(t),6:t=>new wA(t),7:t=>new xA(t),8:t=>new SA(t),9:t=>new vA(t)},RA={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},Hl=class extends yA{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(RA,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=tE("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=OA.exec(e);){let n=r.shift(),s=r.findIndex(o=>o!=null);this.parts.push(s in nE?nE[s]({token:r[s]||n,date:this.date,parts:this.parts,locales:this.locales}):r[s]||n)}let i=this.parts.reduce((n,s)=>(typeof s=="string"&&typeof n[n.length-1]=="string"?n[n.length-1]+=s:n.push(s),n),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof iE)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
121
+ `),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
122
+ `),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(r=>r instanceof iE)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(rE.hide):this.out.write(tE(this.outputText,this.out.columns)),super.render(),this.outputText=[eE.symbol(this.done,this.aborted),Ul.bold(this.msg),eE.delimiter(!1),this.parts.reduce((e,r,i)=>e.concat(i===this.cursor&&!this.done?Ul.cyan().underline(r.toString()):r),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
123
+ `).reduce((e,r,i)=>e+`
124
+ ${i?" ":FA.pointerSmall} ${Ul.red().italic(r)}`,"")),this.out.write(EA.line+rE.to(0)+this.outputText))}};sE.exports=Hl});var cE=F((L$,lE)=>{var Xs=Fe(),TA=Gt(),{cursor:Zs,erase:IA}=Ee(),{style:Gl,figures:BA,clear:uE,lines:$A}=mt(),PA=/[0-9]/,Wl=t=>t!==void 0,aE=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},Vl=class extends TA{constructor(e={}){super(e),this.transform=Gl.render(e.style),this.msg=e.message,this.initial=Wl(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=Wl(e.min)?e.min:-1/0,this.max=Wl(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=Xs.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${aE(e,this.round)}`),this._value=aE(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||PA.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
125
+ `),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let e=this.value;this.value=e!==""?e:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(`
126
+ `),this.close()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,r){if(!this.valid(e))return this.bell();let i=Date.now();if(i-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Zs.down($A(this.outputError,this.out.columns)-1)+uE(this.outputError,this.out.columns)),this.out.write(uE(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[Gl.symbol(this.done,this.aborted),Xs.bold(this.msg),Gl.delimiter(this.done),!this.done||!this.done&&!this.placeholder?Xs[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
127
+ `).reduce((e,r,i)=>e+`
128
+ ${i?" ":BA.pointerSmall} ${Xs.red().italic(r)}`,"")),this.out.write(IA.line+Zs.to(0)+this.outputText+Zs.save+this.outputError+Zs.restore))}};lE.exports=Vl});var Yl=F((N$,dE)=>{"use strict";var Ot=Fe(),{cursor:kA}=Ee(),LA=Gt(),{clear:hE,figures:sr,style:fE,wrap:NA,entriesToDisplay:MA}=mt(),zl=class extends LA{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=hE("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
129
+ `),this.close()}submit(){let e=this.value.filter(r=>r.selected);this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
130
+ `),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){this.cursor===0?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(r=>!r.disabled).forEach(r=>r.selected=e),this.render()}_(e,r){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
131
+ Instructions:
132
+ ${sr.arrowUp}/${sr.arrowDown}: Highlight option
133
+ ${sr.arrowLeft}/${sr.arrowRight}/[space]: Toggle selection
134
+ `+(this.maxChoices===void 0?` a: Toggle all
135
+ `:"")+" enter/return: Complete answer":""}renderOption(e,r,i,n){let s=(r.selected?Ot.green(sr.radioOn):sr.radioOff)+" "+n+" ",o,u;return r.disabled?o=e===i?Ot.gray().underline(r.title):Ot.strikethrough().gray(r.title):(o=e===i?Ot.cyan().underline(r.title):r.title,e===i&&r.description&&(u=` - ${r.description}`,(s.length+o.length+u.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(u=`
136
+ `+NA(r.description,{margin:s.length,width:this.out.columns})))),s+o+Ot.gray(u||"")}paginateOptions(e){if(e.length===0)return Ot.red("No matches for this query.");let{startIndex:r,endIndex:i}=MA(this.cursor,e.length,this.optionsPerPage),n,s=[];for(let o=r;o<i;o++)o===r&&r>0?n=sr.arrowUp:o===i-1&&i<e.length?n=sr.arrowDown:n=" ",s.push(this.renderOption(this.cursor,e[o],o,n));return`
137
+ `+s.join(`
138
+ `)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[Ot.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(Ot.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(kA.hide),super.render();let e=[fE.symbol(this.done,this.aborted),Ot.bold(this.msg),fE.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=Ot.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=hE(e,this.out.columns)}};dE.exports=zl});var yE=F((M$,gE)=>{"use strict";var yn=Fe(),jA=Gt(),{erase:qA,cursor:pE}=Ee(),{style:Kl,clear:DE,figures:Jl,wrap:UA,entriesToDisplay:HA}=mt(),mE=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),GA=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),WA=(t,e)=>{let r=t.findIndex(i=>i.value===e||i.title===e);return r>-1?r:void 0},Xl=class extends jA{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:WA(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=Kl.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=DE("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=mE(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){let r=this.completing=this.suggest(this.input,this.choices),i=await r;if(this.completing!==r)return;this.suggestions=i.map((s,o,u)=>({title:GA(u,o),value:mE(u,o),description:s.description})),this.completing=!1;let n=Math.max(i.length-1,0);this.moveSelect(Math.min(n,this.select)),e&&e()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
139
+ `),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(`
140
+ `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(`
141
+ `),this.close()}_(e,r){let i=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${i}${e}${n}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1),r=this.input.slice(this.cursor);this.input=`${e}${r}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor+1);this.input=`${e}${r}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,r,i,n){let s,o=i?Jl.arrowUp:n?Jl.arrowDown:" ",u=r?yn.cyan().underline(e.title):e.title;return o=(r?yn.cyan(Jl.pointer)+" ":" ")+o,e.description&&(s=` - ${e.description}`,(o.length+u.length+s.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(s=`
142
+ `+UA(e.description,{margin:3,width:this.out.columns}))),o+" "+u+yn.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(pE.hide):this.out.write(DE(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:r}=HA(this.select,this.choices.length,this.limit);if(this.outputText=[Kl.symbol(this.done,this.aborted,this.exited),yn.bold(this.msg),Kl.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let i=this.suggestions.slice(e,r).map((n,s)=>this.renderOption(n,this.select===s+e,s===0&&e>0,s+e===r-1&&r<this.choices.length)).join(`
143
+ `);this.outputText+=`
144
+ `+(i||yn.gray(this.fallback.title))}this.out.write(qA.line+pE.to(0)+this.outputText)}};gE.exports=Xl});var CE=F((j$,bE)=>{"use strict";var Vt=Fe(),{cursor:VA}=Ee(),zA=Yl(),{clear:FE,style:EE,figures:hi}=mt(),Zl=class extends zA{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=FE("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let r=this.filteredOptions.findIndex(i=>i===e);this.cursor=r<0?0:r,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,r){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
145
+ Instructions:
146
+ ${hi.arrowUp}/${hi.arrowDown}: Highlight option
147
+ ${hi.arrowLeft}/${hi.arrowRight}/[space]: Toggle selection
148
+ [a,b,c]/delete: Filter choices
149
+ enter/return: Complete answer
150
+ `:""}renderCurrentInput(){return`
151
+ Filtered results for: ${this.inputValue?this.inputValue:Vt.gray("Enter something to filter")}
152
+ `}renderOption(e,r,i){let n;return r.disabled?n=e===i?Vt.gray().underline(r.title):Vt.strikethrough().gray(r.title):n=e===i?Vt.cyan().underline(r.title):r.title,(r.selected?Vt.green(hi.radioOn):hi.radioOff)+" "+n}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[Vt.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(Vt.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(VA.hide),super.render();let e=[EE.symbol(this.done,this.aborted),Vt.bold(this.msg),EE.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=Vt.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=FE(e,this.out.columns)}};bE.exports=Zl});var SE=F((q$,_E)=>{var wE=Fe(),YA=Gt(),{style:vE,clear:KA}=mt(),{erase:JA,cursor:xE}=Ee(),Ql=class extends YA{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
153
+ `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
154
+ `),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(xE.hide):this.out.write(KA(this.outputText,this.out.columns)),super.render(),this.outputText=[vE.symbol(this.done,this.aborted),wE.bold(this.msg),vE.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:wE.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(JA.line+xE.to(0)+this.outputText))}};_E.exports=Ql});var OE=F((U$,AE)=>{"use strict";AE.exports={TextPrompt:_F(),SelectPrompt:RF(),TogglePrompt:$F(),DatePrompt:oE(),NumberPrompt:cE(),MultiselectPrompt:Yl(),AutocompletePrompt:yE(),AutocompleteMultiselectPrompt:CE(),ConfirmPrompt:SE()}});var TE=F(RE=>{"use strict";var Ye=RE,XA=OE(),Qs=t=>t;function Rt(t,e,r={}){return new Promise((i,n)=>{let s=new XA[t](e),o=r.onAbort||Qs,u=r.onSubmit||Qs,a=r.onExit||Qs;s.on("state",e.onState||Qs),s.on("submit",l=>i(u(l))),s.on("exit",l=>i(a(l))),s.on("abort",l=>n(o(l)))})}Ye.text=t=>Rt("TextPrompt",t);Ye.password=t=>(t.style="password",Ye.text(t));Ye.invisible=t=>(t.style="invisible",Ye.text(t));Ye.number=t=>Rt("NumberPrompt",t);Ye.date=t=>Rt("DatePrompt",t);Ye.confirm=t=>Rt("ConfirmPrompt",t);Ye.list=t=>{let e=t.separator||",";return Rt("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};Ye.toggle=t=>Rt("TogglePrompt",t);Ye.select=t=>Rt("SelectPrompt",t);Ye.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return Rt("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};Ye.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return Rt("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var ZA=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));Ye.autocomplete=t=>(t.suggest=t.suggest||ZA,t.choices=[].concat(t.choices||[]),Rt("AutocompletePrompt",t))});var $E=F((G$,BE)=>{"use strict";var ec=TE(),QA=["suggest","format","onState","validate","onRender","type"],IE=()=>{};async function or(t=[],{onSubmit:e=IE,onCancel:r=IE}={}){let i={},n=or._override||{};t=[].concat(t);let s,o,u,a,l,c,f=async(m,d,g=!1)=>{if(!(!g&&m.validate&&m.validate(d)!==!0))return m.format?await m.format(d,i):d};for(o of t)if({name:a,type:l}=o,typeof l=="function"&&(l=await l(s,{...i},o),o.type=l),!!l){for(let m in o){if(QA.includes(m))continue;let d=o[m];o[m]=typeof d=="function"?await d(s,{...i},c):d}if(c=o,typeof o.message!="string")throw new Error("prompt message is required");if({name:a,type:l}=o,ec[l]===void 0)throw new Error(`prompt type (${l}) is not defined`);if(n[o.name]!==void 0&&(s=await f(o,n[o.name]),s!==void 0)){i[a]=s;continue}try{s=or._injected?eO(or._injected,o.initial):await ec[l](o),i[a]=s=await f(o,s,!0),u=await e(o,s,i)}catch{u=!await r(o,i)}if(u)return i}return i}function eO(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function tO(t){or._injected=(or._injected||[]).concat(t)}function rO(t){or._override=Object.assign({},t)}BE.exports=Object.assign(or,{prompt:or,prompts:ec,inject:tO,override:rO})});var tc=F((W$,PE)=>{function iO(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let e=0,r=process.versions.node.split(".").map(Number);for(;e<t.length;e++){if(r[e]>t[e])return!1;if(t[e]>r[e])return!0}return!1}PE.exports=iO("8.6.0")?oF():$E()});function Tt(t){return ur&&ur.stop(),ur=ka({text:x.cyan(t),spinner:"dots",color:"cyan"}).start(),ur}function qe(t=!0,e){ur&&(t?ur.succeed(e?x.green(e):void 0):ur.fail(e?x.red(e):void 0),ur=null)}function zt(t){console.log(),console.log(x.bold(x.cyan(` ${ne.rocket} ${t}`))),console.log(x.dim(" "+"\u2500".repeat(t.length+4)))}function fi(t){console.log(),console.log(x.bold(x.white(` ${ne.dot} ${t}`)))}function gt(t){console.log(` ${ne.success} ${x.green(t)}`)}function _e(t,e){console.log(` ${ne.error} ${x.red(t)}`),e&&console.log(x.dim(` ${e}`))}function eo(t){console.log(` ${ne.warning} ${x.yellow(t)}`)}function se(t){console.log(` ${ne.info} ${x.blue(t)}`)}function Yt(t,e,r=x.gray){console.log(` ${r(t.padEnd(20))} ${x.white(e)}`)}function $r(t){return new kE.default({head:t.map(e=>x.bold(x.cyan(e))),style:{head:[],border:[x.dim("gray")]},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"}})}function Ke(t,e){console.log(` ${x.dim("$")} ${x.cyan(t)} ${x.gray(e)}`)}function Fn(){console.log(x.dim(" "+"\u2500".repeat(60)))}function LE(){console.log(),console.log(x.cyan(" \u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E")),console.log(x.cyan(" \u2502")+" "+x.bold(x.magenta("\u{1F680} Delta CLI"))+x.dim(" - Code Analysis & Documentation ")+x.cyan("\u2502")),console.log(x.cyan(" \u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524")),console.log(x.cyan(" \u2502")+" "+x.gray("Local-first analysis with cloud power ")+x.cyan("\u2502")),console.log(x.cyan(" \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F")),console.log()}var kE,nO,ne,ur,di=oe(()=>{"use strict";Pt();D0();kE=Se(og(),1),nO=Se(tc(),1),ne={success:x.green("\u2714"),error:x.red("\u2716"),warning:x.yellow("\u26A0"),info:x.blue("\u2139"),arrow:x.cyan("\u2192"),bullet:x.dim("\u2022"),star:x.yellow("\u2605"),check:x.green("\u2713"),cross:x.red("\u2717"),loading:x.cyan("\u23F3"),rocket:x.magenta("\u{1F680}"),lock:x.yellow("\u{1F512}"),user:x.blue("\u{1F464}"),package:x.cyan("\u{1F4E6}"),chart:x.green("\u{1F4CA}"),folder:x.yellow("\u{1F4C1}"),gear:x.gray("\u2699\uFE0F"),link:x.blue("\u{1F517}"),sparkles:x.yellow("\u2728"),dot:x.cyan("\u23F5")},ur=null});import*as Pe from"fs/promises";import*as pi from"path";import*as Di from"os";import{createServer as J$}from"http";import{URL as Z$}from"url";import to from"crypto";async function jE(){try{let i=await Pe.readFile(NE,"utf-8").catch(()=>null);if(i)return Buffer.from(i,"hex")}catch{}let t=`${Di.userInfo().username}@${Di.hostname()}`,r=to.pbkdf2Sync(t,"delta-cli-v2-fixed-salt",1e5,32,"sha256");return await Pe.mkdir(Pr,{recursive:!0}),await Pe.writeFile(NE,r.toString("hex"),{mode:384}),r}async function ME(t){let e=await jE(),r=to.randomBytes(16),i=to.createCipheriv("aes-256-gcm",e,r),n=i.update(t,"utf-8","hex");n+=i.final("hex");let s=i.getAuthTag();return`${r.toString("hex")}:${s.toString("hex")}:${n}`}async function sO(t){try{let e=await jE(),r=t.split(":");if(r.length!==3)return null;let i=Buffer.from(r[0],"hex"),n=Buffer.from(r[1],"hex"),s=r[2],o=to.createDecipheriv("aes-256-gcm",e,i);o.setAuthTag(n);let u=o.update(s,"hex","utf-8");return u+=o.final("utf-8"),u}catch{return null}}var Pr,En,NE,De,It=oe(()=>{"use strict";di();Pr=pi.join(Di.homedir(),".delta"),En=pi.join(Pr,"tokens.enc"),NE=pi.join(Pr,".key");De=class{static async saveTokens(e){await Pe.mkdir(Pr,{recursive:!0});let r=JSON.stringify({access:e.access||null,refresh:e.refresh||null,updatedAt:new Date().toISOString()}),i=await ME(r);await Pe.writeFile(En,i,{mode:384})}static async loadTokens(){try{let e=await Pe.readFile(En,"utf-8"),r=await sO(e);if(!r)return{access:null,refresh:null};let i=JSON.parse(r);return{access:i.access||null,refresh:i.refresh||null}}catch{return{access:null,refresh:null}}}static async saveAccessToken(e){let r=await this.loadTokens();await this.saveTokens({access:e,refresh:r.refresh??void 0})}static async getAccessToken(){return(await this.loadTokens()).access}static async saveRefreshToken(e){let r=await ME(e),i=await this.loadTokens();await this.saveTokens({access:i.access||void 0,refresh:e})}static async saveSessionInfo(e){let r=pi.join(Pr,"session.json");await Pe.mkdir(Pr,{recursive:!0}),await Pe.writeFile(r,JSON.stringify(e,null,2))}static async getRefreshToken(){return(await this.loadTokens()).refresh}static async clearTokens(){try{try{await Pe.access(En)}catch{return}await Pe.unlink(En);let e=pi.join(Pr,"session.json");try{await Pe.access(e),await Pe.unlink(e)}catch{}console.log(" Tokens cleared from:",En)}catch(e){throw console.error(" Warning: Could not clear tokens:",e.message),e}}static async hasTokens(){return!!await this.getAccessToken()}}});import*as oO from"https";import*as uO from"http";import{spawn as aO}from"child_process";import*as qE from"os";async function UE(t){return new rc(t).startDeviceFlow()}var rc,HE=oe(()=>{"use strict";di();It();rc=class{apiUrl;clientId;constructor(e,r="delta-cli"){this.apiUrl=e,this.clientId=r}async startDeviceFlow(){zt("Device Authorization"),se("Starting device authorization flow..."),console.log();try{Tt("Requesting device code...");let e=await this.requestDeviceCode();qe(!0,"Device code received"),this.displayAuthorizationInstructions(e),await this.openBrowser(e.verification_uri_complete),fi("Waiting for Authorization"),se("Waiting for you to complete the authorization in your browser..."),console.log();let r=await this.pollForToken(e);return await this.saveTokens(r),this.showSuccess(),!0}catch(e){return this.handleError(e),!1}}async requestDeviceCode(){let e=await this.makeRequest("/api/auth/device/code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:this.clientId,scope:"read write analyze"})}),r=await e.json();if(!e.ok)throw new Error(`Failed to request device code: ${r.error||"Unknown error"}`);return r}displayAuthorizationInstructions(e){console.log(),fi("Authorization Required"),se("Please complete the authorization using one of these methods:"),console.log(),Yt("\u{1F310} Browser","A browser window should have opened automatically"),console.log(),Yt("\u{1F4CB} Manual URL",e.verification_uri),Yt("\u{1F522} Code",e.user_code),console.log(),se("Or use this direct link:"),console.log(` ${e.verification_uri_complete}`),console.log(),se("\u23F1\uFE0F This code will expire in "+Math.floor(e.expires_in/60)+" minutes"),console.log()}async openBrowser(e){let r=qE.platform(),i;switch(r){case"darwin":i=`open "${e}"`;break;case"win32":i=`start "" "${e}"`;break;default:i=`xdg-open "${e}"`;break}try{await this.executeCommand(i),se("\u2713 Browser opened successfully")}catch{se("\u26A0\uFE0F Could not open browser automatically"),se("Please manually open the URL above")}}executeCommand(e){return new Promise((r,i)=>{let n=aO(e,[],{shell:!0,stdio:"ignore"});n.on("close",s=>{s===0?r():i(new Error(`Command failed with code ${s}`))}),n.on("error",i)})}async pollForToken(e){let i=Date.now()+e.expires_in*1e3,n=e.interval*1e3,s=Tt("Checking authorization status...");for(;Date.now()<i;)try{let u=await(await this.makeRequest("/api/auth/device/token",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({device_code:e.device_code,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})})).json();if("error"in u)if(u.error==="authorization_pending"){await this.sleep(n);continue}else if(u.error==="slow_down"){await this.sleep(n*2);continue}else throw qe(!1),new Error(`Authorization failed: ${u.error_description||u.error}`);else return qe(!0,"Authorization complete"),u}catch(o){throw qe(!1),o}throw qe(!1),new Error("Authorization timed out. Please try again.")}async saveTokens(e){await De.saveAccessToken(e.access_token),await De.saveRefreshToken(e.refresh_token),await De.saveSessionInfo({session_id:e.session_id,expires_at:new Date(Date.now()+e.expires_in*1e3).toISOString()})}showSuccess(){console.log(),gt("\u{1F389} Device authorization successful!"),console.log(),fi("Next Steps"),Ke("delta whoami","to verify your account"),Ke("delta analyze","to start analyzing code"),console.log()}handleError(e){console.log(),_e("Device authorization failed"),console.log(),e instanceof Error?e.message.includes("ENOTFOUND")||e.message.includes("ECONNREFUSED")?(_e("Connection Error","Cannot connect to the Delta platform"),se("Please check:"),Yt("\u2022 Server","Is the web platform running?"),Yt("\u2022 Network","Check your internet connection"),Yt("\u2022 URL",`Is ${this.apiUrl} correct?`)):e.message.includes("authorization_pending")?(_e("Timeout","Authorization was not completed in time"),se("Please try again")):e.message.includes("access_denied")?(_e("Access Denied","You denied the authorization request"),se("If this was a mistake, please try again")):_e("Error",e.message):_e("Unknown Error",String(e)),console.log(),se("Alternative: Use a Personal Access Token"),Ke("delta login --token delta_pat_xxxxx","")}async makeRequest(e,r){let i=`${this.apiUrl}${e}`;return typeof fetch<"u"?fetch(i,r):new Promise((n,s)=>{let u=new URL(i).protocol==="https:"?oO:uO,a={method:r.method||"GET",headers:r.headers||{}},l=u.request(i,a,c=>{let f="";c.on("data",m=>f+=m),c.on("end",()=>{n(new Response(f,{status:c.statusCode,statusText:c.statusMessage,headers:c.headers}))})});l.on("error",s),r.body&&l.write(r.body),l.end()})}sleep(e){return new Promise(r=>setTimeout(r,e))}}});var zE={};Ei(zE,{CONFIG_FILE:()=>ar,authCommands:()=>VE,loadConfig:()=>et,loginCommand:()=>lO,saveConfig:()=>ro});import*as mi from"fs/promises";import*as ic from"path";import*as GE from"os";async function et(){try{let t=await mi.readFile(ar,"utf-8");return JSON.parse(t)}catch{return{}}}async function ro(t){await mi.mkdir(WE,{recursive:!0}),await mi.writeFile(ar,JSON.stringify(t,null,2))}var WE,ar,VE,lO,lr=oe(()=>{"use strict";di();It();HE();WE=ic.join(GE.homedir(),".delta"),ar=ic.join(WE,"config.json");VE={async login(t){LE(),zt("Authentication");let e=t.token??process.env.DELTA_PAT,r=await et(),i=process.env.DELTA_API_URL||r.apiUrl||"http://localhost:3000";e||(se("No token provided. Starting Device Authorization Flow..."),se("This will open your browser for secure authentication."),console.log(),await UE(i)||(_e("Device authorization failed"),console.log(),se("You can also authenticate using a Personal Access Token:"),Ke("delta login --token <your-token>",""),process.exit(1)),process.exit(0)),e.startsWith("delta_pat_")||(_e("Invalid PAT token format",'Token should start with "delta_pat_"'),console.log(),se("You can get your PAT from:"),Ke("http://localhost:3000/dashboard/cli-tokens",""),process.exit(1)),fi("Connecting to Platform"),Yt("API Endpoint",i),console.log(),Tt("Verifying credentials...");try{let n=new AbortController,s=setTimeout(()=>n.abort(),1e4),o=await fetch(`${i}/api/me/entitlements`,{headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},signal:n.signal});if(clearTimeout(s),!o.ok){let f=await o.text().catch(()=>o.statusText);throw new Error(`HTTP ${o.status}: ${f}`)}let u=await o.json();if(!u.success)throw new Error(u.error?.message||"Authentication failed");await De.saveAccessToken(e),await ro({apiUrl:i,lastUsedAt:new Date().toISOString()}),qe(!0,"Authentication successful!"),console.log();let a=u.data.user,l=u.data.quota;zt("Account Overview");let c=$r(["Property","Value"]);c.push([ne.user+" Email",a.email],[ne.package+" Plan",a.plan],[ne.chart+" Quota Used",`${l.used}/${l.limit} reports`],[ne.lock+" Config",ar]),console.log(c.toString()),console.log(),gt(`Welcome back, ${a.email.split("@")[0]}! \u{1F389}`),console.log(),Ke("delta whoami","to see full account details"),Ke("delta analyze","to start analyzing code"),process.exit(0)}catch(n){if(qe(!1,"Authentication failed"),console.log(),n instanceof Error&&n.name==="AbortError")_e("Request timeout (10s)","Check if the server is running and accessible");else{let s=n instanceof Error?n.message:String(n);s.includes("401")?_e("Invalid or expired token","Generate a new token from the web app"):s.includes("ENOTFOUND")||s.includes("ECONNREFUSED")?_e("Cannot connect to server","Check your internet connection and API URL"):_e(s)}console.log(),se("Need help? Visit: http://localhost:3000/docs/cli/authentication"),process.exit(1)}}},lO=VE.login});var e2={};Ei(e2,{logoutCommand:()=>DO});import*as QE from"fs/promises";async function DO(){try{await De.hasTokens()||(console.log("\u2139\uFE0F Not currently authenticated"),process.exit(0)),await De.clearTokens();try{await QE.unlink(ar)}catch{}console.log("\u2705 Successfully logged out"),console.log(" Authentication data removed"),process.exit(0)}catch(t){console.error("\u274C Error during logout:",t instanceof Error?t.message:String(t)),process.exit(1)}}var t2=oe(()=>{"use strict";lr();It()});var r2={};Ei(r2,{whoamiCommand:()=>mO});async function mO(t){try{let e=await et(),r=await De.getAccessToken();r||(zt("Authentication Status"),_e("Not authenticated"),console.log(),se("Please login first:"),Ke("delta login","to authenticate with your PAT"),process.exit(1)),zt("Loading Account Information"),Tt("Fetching user data...");let i=e.apiUrl||process.env.DELTA_API_URL||"http://localhost:3000",n=await fetch(`${i}/api/auth/me`,{headers:{Authorization:`Bearer ${r}`,"Content-Type":"application/json"}});if(!n.ok)throw qe(!1),n.status===401&&(_e("Authentication expired or invalid"),console.log(),se("Please login again:"),Ke("delta login --token <new-pat>","to re-authenticate"),process.exit(1)),new Error(`API error: ${n.status} ${n.statusText}`);let s=await n.json();qe(!0),console.log();let o=s;zt("User Profile");let u=$r(["Property","Value"]);u.push([ne.user+" Email",o.email],[ne.user+" User ID",o.id],[ne.package+" Plan",gO(o.plan)],[ne.star+" Role",o.role||o.plan],[ne.info+" Status",o.status||"active"],[ne.bullet+" Created",new Date(o.created_at).toLocaleDateString("en-US")]),console.log(u.toString()),Fn(),console.log(),gt("\u2713 Authenticated successfully"),console.log(),Ke("delta analyze","to run a code analysis"),Ke("delta status","to check project status"),process.exit(0)}catch(e){qe(!1),console.log(),_e(e instanceof Error?e.message:String(e)),process.exit(1)}}function gO(t){return{individual_free:"\u{1F537} Free",individual_pro:"\u{1F48E} Pro",individual_team:"\u{1F465} Team",enterprise:"\u{1F3E2} Enterprise"}[t]||t}var i2=oe(()=>{"use strict";lr();It();di()});var s2={};Ei(s2,{analyzeCommand:()=>yO});import*as Bt from"fs/promises";import*as at from"path";import*as kr from"crypto";function sc(t){if(!t||typeof t!="object")return{};let e=t.error;if(!e||typeof e!="object")return{};let r=e;return{message:typeof r.message=="string"?r.message:void 0,details:r.details}}async function yO(t,e){let r=at.resolve(t);se("\u{1F510} Checking authentication..."),await et(),await De.getAccessToken()||(console.error(),console.error(x.red("\u274C Error: You must be logged in to use Delta CLI.")),console.error(),console.error(x.yellow("Please authenticate first:")),console.error(x.cyan(" delta login")),console.error(),console.error(x.dim("Or use a valid PAT:")),console.error(x.cyan(" delta login --token <your-pat>")),console.error(),process.exit(1)),gt("\u2713 Authenticated"),console.log(),e.upload&&(se("\u{1F4E4} Upload mode enabled"),console.log()),se("\u{1F50D} Starting Delta Analysis Engine..."),Fn(),console.log(`${ne.folder} Project: ${x.cyan(r)}`),console.log(),Tt("Scanning project files...");let n=await EO(r,{include:e.include?[e.include]:["**/*.{ts,tsx,js,jsx}"],exclude:e.exclude?[e.exclude].concat(["node_modules","dist",".git"]):["node_modules","dist",".git"],maxSize:parseInt(e.maxSize,10)});qe(!0,`Found ${n.length} files to analyze`),console.log(),n.length===0&&(eo("No files found matching the criteria"),se("Try adjusting --include or --exclude patterns"),process.exit(0)),console.log(`${ne.loading} Analyzing ${n.length} files...`),console.log();let s=Date.now(),o={totalFiles:n.length,successfulParses:0,failedParses:0,totalLines:0,totalFunctions:0,totalClasses:0,totalDuration:0,errors:[]},u=[];for(let c=0;c<n.length;c++){let f=n[c],m=Math.round((c+1)/n.length*100),d=bO(m);process.stdout.write(`\r${d} ${x.cyan(`${c+1}/${n.length}`)} ${x.dim(f.split(/[/\\]/).pop()||"")}`);try{let g=await Bt.readFile(f,"utf-8"),C=g.split(`
155
+ `);o.totalLines+=C.length,o.successfulParses++,g.includes("function ")&&o.totalFunctions++,g.includes("class ")&&o.totalClasses++,g.includes("eval(")&&u.push({file:at.relative(r,f),type:"security",severity:"high",message:"Use of eval() detected"}),g.includes("console.log")&&u.push({file:at.relative(r,f),type:"maintainability",severity:"low",message:"Console.log statement found"})}catch(g){o.failedParses++,o.errors.push({file:at.relative(r,f),error:g instanceof Error?g.message:String(g)})}}process.stdout.write("\r"+" ".repeat(80)+"\r"),console.log(`${ne.check} Analysis complete: ${x.green(`${o.successfulParses} successful`)}, ${o.failedParses>0?x.red(`${o.failedParses} failed`):""}`),console.log(),o.totalDuration=Date.now()-s;let a={schema_version:"1.0",engine_version:"0.5.0",created_at:new Date().toISOString(),project:{name:e.projectName||at.basename(r),root_fingerprint:"",path:r},tools_used:[{id:"delta-core",version:"0.5.0",adapter_version:"0.5.0"}],summary:{total:u.length,high:u.filter(c=>c.severity==="high").length,medium:u.filter(c=>c.severity==="medium").length,low:u.filter(c=>c.severity==="low").length},findings:u,metadata:o};Fn(),gt("Analysis Complete"),console.log();let l=$r(["Metric","Value"]);if(l.push([ne.folder+" Files Analyzed",o.totalFiles.toString()],[ne.chart+" Total Lines",o.totalLines.toLocaleString()],[ne.gear+" Functions Found",o.totalFunctions.toString()],[ne.package+" Classes Found",o.totalClasses.toString()],[ne.loading+" Duration",CO(o.totalDuration)]),console.log(l.toString()),console.log(),u.length>0){eo(`Found ${u.length} issues:`);let c=$r(["Severity","Count"]),f=u.filter(g=>g.severity==="high").length,m=u.filter(g=>g.severity==="medium").length,d=u.filter(g=>g.severity==="low").length;f>0&&c.push([x.red("\u{1F534} High"),f.toString()]),m>0&&c.push([x.yellow("\u{1F7E1} Medium"),m.toString()]),d>0&&c.push([x.blue("\u{1F535} Low"),d.toString()]),console.log(c.toString())}else gt("\u2728 No issues found! Great job!");if(console.log(),e.upload)se(`${ne.chart} Report will be available on Delta Cloud Dashboard`),console.log();else{let c=at.resolve(e.output);await Bt.mkdir(c,{recursive:!0});let f=at.join(c,`report-${Date.now()}.json`);await Bt.writeFile(f,JSON.stringify(a,null,2)),se(`${ne.chart} Report saved: ${x.cyan(f)}`),console.log()}e.upload&&(console.log(`${ne.rocket} Uploading to Delta Cloud...`),await FO(a)),process.exit(0)}async function FO(t){let e=await et(),r=await De.getAccessToken();r||(console.error("\u274C Error: Not authenticated. Run: delta login --token <pat>"),process.exit(1));let i=process.env.DELTA_API_URL||e.apiUrl||"http://localhost:3000",n=JSON.stringify(t),s=kr.createHash("sha256").update(n).digest("hex");try{let o=await fetch(`${i}/api/upload/init`,{method:"POST",headers:{Authorization:`Bearer ${r}`,"Content-Type":"application/json","Idempotency-Key":kr.randomUUID()},body:JSON.stringify({schemaVersion:"1.0",engineVersion:"0.5.0",reportHash:s,reportSizeBytes:Buffer.byteLength(n),toolsUsed:[{id:"delta-core",version:"0.5.0",adapterVersion:"0.5.0"}]})});if(!o.ok){let g;try{g=await o.json()}catch{g=await o.text().catch(()=>{})}let C=sc(g),S=C.details?`
156
+ Details: ${JSON.stringify(C.details)}`:"",O=C.message||`Init failed: ${o.status}`;throw new Error(O+S)}let u=await o.json();if(!u.success)throw new Error(u.error?.message||"Upload init failed");let a=u.data.uploadId,l=u.data.signing.secret;console.log(` Upload session: ${a}`);let c=kr.createHmac("sha256",l).update(n).digest("hex"),f=await fetch(`${i}/api/upload/${a}`,{method:"PUT",headers:{Authorization:`Bearer ${r}`,"Content-Type":"application/json"},body:JSON.stringify({report:Object.assign({},t,{integrity:{report_hash:s,signature:c,algorithm:"HMAC-SHA256"}})})});if(!f.ok){let g;try{g=await f.json()}catch{g=await f.text().catch(()=>{})}let C=sc(g),S=C.details?`
157
+ Details: ${JSON.stringify(C.details)}`:"",O=C.message||`Upload failed: ${f.status}`;throw new Error(O+S)}console.log(" Report uploaded");let m=await fetch(`${i}/api/upload/${a}/finalize`,{method:"POST",headers:{Authorization:`Bearer ${r}`,"Content-Type":"application/json","Idempotency-Key":kr.randomUUID()},body:"{}"});if(!m.ok){let g;try{g=await m.json()}catch{g=await m.text().catch(()=>{})}let C=sc(g),S=C.details?`
158
+ Details: ${JSON.stringify(C.details)}`:"",O=C.message||`Finalize failed: ${m.status}`;throw new Error(O+S)}let d=await m.json();if(!d.success)throw new Error(d.error?.message||"Upload finalize failed");console.log(`\u2705 Report finalized: ${d.data.reportId}`),console.log(" Quota updated")}catch(o){console.error("\u274C Upload failed:",o instanceof Error?o.message:String(o)),process.exit(1)}}async function EO(t,e){let r=[];async function i(n){let s=await Bt.readdir(n,{withFileTypes:!0});for(let o of s){let u=at.join(n,o.name);if(o.isDirectory()){if(e.exclude.some(a=>o.name.includes(a)))continue;await i(u)}else if(o.isFile()&&e.include.some(l=>{if(l.includes("{")&&l.includes("}")){let c=l.match(/\{([^}]+)\}/);if(c){let f=c[1].split(","),m=l.replace(/\{[^}]+\}/,"");return f.some(d=>{let g=m+d;return n2(u,g)})}}return n2(u,l)}))try{(await Bt.stat(u)).size<=e.maxSize&&r.push(u)}catch{}}}return await i(t),r}function n2(t,e){let r=t.split(/[/\\]/).pop()||"";if(e.includes("**")){let i=e.replace("**/*","");return r.endsWith(i)}else if(e.includes("*")){let i=e.replace("*","");return r.endsWith(i)}return t.includes(e)}function bO(t){let r=Math.round(t/100*20),i=20-r,n=x.cyan("\u2588".repeat(r)),s=x.gray("\u2591".repeat(i));return`${n}${s} ${x.bold(`${t}%`)}`}function CO(t){return t<1e3?`${t}ms`:`${(t/1e3).toFixed(2)}s`}var o2=oe(()=>{"use strict";lr();It();Pt();di()});var u2={};Ei(u2,{configCommand:()=>wO});async function wO(t){let e=await et();if(t.get){let r=e[t.get];console.log(r!==void 0?`${t.get}: ${r}`:`${t.get}: (not set)`),process.exit(0)}if(t.set){let[r,i]=t.set.split("=");(!r||i===void 0)&&(console.error("\u274C Error: Invalid format. Use: key=value"),process.exit(1));let n={...e,apiUrl:e.apiUrl||"http://localhost:3000",[r]:i};await ro(n),console.log(`\u2705 Set ${r} = ${i}`),process.exit(0)}if(t.list||!t.get&&!t.set){console.log("\u{1F527} Delta CLI Configuration"),console.log(` Config file: ${ar}`),console.log();let r=await De.hasTokens();console.log(r?" PAT: \u2705 Set (securely stored in keychain)":" PAT: \u274C Not set"),console.log(` API URL: ${e.apiUrl||"http://localhost:3000 (default)"}`),e.lastUsedAt&&console.log(` Last used: ${new Date(e.lastUsedAt).toLocaleString()}`),process.exit(0)}}var a2=oe(()=>{"use strict";lr();It()});var wc=Se(Cc(),1),{program:qO,createCommand:UO,createArgument:HO,createOption:GO,CommanderError:WO,InvalidArgumentError:VO,InvalidOptionArgumentError:zO,Command:vc,Argument:YO,Option:KO,Help:JO}=wc.default;var Nr=Se(mh(),1);import*as Xt from"fs";import*as Hr from"path";var s1={FULL_WIDTH:0,FITTING:1,SMUSHING:2,CONTROLLED_SMUSHING:3},qo=class{constructor(){this.comment="",this.numChars=0,this.options={}}},jo=["1Row","3-D","3D Diagonal","3D-ASCII","3x5","4Max","5 Line Oblique","AMC 3 Line","AMC 3 Liv1","AMC AAA01","AMC Neko","AMC Razor","AMC Razor2","AMC Slash","AMC Slider","AMC Thin","AMC Tubes","AMC Untitled","ANSI Compact","ANSI Regular","ANSI Shadow","ASCII 12","ASCII 9","ASCII New Roman","Acrobatic","Alligator","Alligator2","Alpha","Alphabet","Arrows","Avatar","B1FF","Babyface Lame","Babyface Leet","Banner","Banner3-D","Banner3","Banner4","Barbwire","Basic","Bear","Bell","Benjamin","Big ASCII 12","Big ASCII 9","Big Chief","Big Money-ne","Big Money-nw","Big Money-se","Big Money-sw","Big Mono 12","Big Mono 9","Big","Bigfig","Binary","Block","Blocks","Bloody","BlurVision ASCII","Bolger","Braced","Bright","Broadway KB","Broadway","Bubble","Bulbhead","Caligraphy","Caligraphy2","Calvin S","Cards","Catwalk","Chiseled","Chunky","Circle","Classy","Coder Mini","Coinstak","Cola","Colossal","Computer","Contessa","Contrast","Cosmike","Cosmike2","Crawford","Crawford2","Crazy","Cricket","Cursive","Cyberlarge","Cybermedium","Cybersmall","Cygnet","DANC4","DOS Rebel","DWhistled","Dancing Font","Decimal","Def Leppard","Delta Corps Priest 1","DiamFont","Diamond","Diet Cola","Digital","Doh","Doom","Dot Matrix","Double Shorts","Double","Dr Pepper","Efti Chess","Efti Font","Efti Italic","Efti Piti","Efti Robot","Efti Wall","Efti Water","Electronic","Elite","Emboss 2","Emboss","Epic","Fender","Filter","Fire Font-k","Fire Font-s","Flipped","Flower Power","Font Font","Four Tops","Fraktur","Fun Face","Fun Faces","Future","Fuzzy","Georgi16","Georgia11","Ghost","Ghoulish","Glenyn","Goofy","Gothic","Graceful","Gradient","Graffiti","Greek","Heart Left","Heart Right","Henry 3D","Hex","Hieroglyphs","Hollywood","Horizontal Left","Horizontal Right","ICL-1900","Impossible","Invita","Isometric1","Isometric2","Isometric3","Isometric4","Italic","Ivrit","JS Block Letters","JS Bracket Letters","JS Capital Curves","JS Cursive","JS Stick Letters","Jacky","Jazmine","Jerusalem","Katakana","Kban","Keyboard","Knob","Konto Slant","Konto","LCD","Larry 3D 2","Larry 3D","Lean","Letter","Letters","Lil Devil","Line Blocks","Linux","Lockergnome","Madrid","Marquee","Maxfour","Merlin1","Merlin2","Mike","Mini","Mirror","Mnemonic","Modular","Mono 12","Mono 9","Morse","Morse2","Moscow","Mshebrew210","Muzzle","NScript","NT Greek","NV Script","Nancyj-Fancy","Nancyj-Improved","Nancyj-Underlined","Nancyj","Nipples","O8","OS2","Octal","Ogre","Old Banner","Pagga","Patorjk's Cheese","Patorjk-HeX","Pawp","Peaks Slant","Peaks","Pebbles","Pepper","Poison","Puffy","Puzzle","Pyramid","Rammstein","Rebel","Rectangles","Red Phoenix","Relief","Relief2","Reverse","Roman","Rot13","Rotated","Rounded","Rowan Cap","Rozzo","RubiFont","Runic","Runyc","S Blood","SL Script","Santa Clara","Script","Serifcap","Shaded Blocky","Shadow","Shimrod","Short","Slant Relief","Slant","Slide","Small ASCII 12","Small ASCII 9","Small Block","Small Braille","Small Caps","Small Isometric1","Small Keyboard","Small Mono 12","Small Mono 9","Small Poison","Small Script","Small Shadow","Small Slant","Small Tengwar","Small","Soft","Speed","Spliff","Stacey","Stampate","Stampatello","Standard","Star Strips","Star Wars","Stellar","Stforek","Stick Letters","Stop","Straight","Stronger Than All","Sub-Zero","Swamp Land","Swan","Sweet","THIS","Tanja","Tengwar","Term","Terrace","Test1","The Edge","Thick","Thin","Thorned","Three Point","Ticks Slant","Ticks","Tiles","Tinker-Toy","Tmplr","Tombstone","Train","Trek","Tsalagi","Tubular","Twisted","Two Point","USA Flag","Univers","Upside Down Text","Varsity","Wavescape","Wavy","Weird","Wet Letter","Whimsy","WideTerm","Wow","miniwi"],gh={"ANSI-Compact":"ANSI Compact"},Jt=t=>gh[t]?gh[t]:t;function o1(t){return/[.*+?^${}()|[\]\\]/.test(t)?"\\"+t:t}var yh=(()=>{let{FULL_WIDTH:t=0,FITTING:e,SMUSHING:r,CONTROLLED_SMUSHING:i}=s1,n={},s={font:"Standard",fontPath:"./fonts",fetchFontIfMissing:!0};function o(w,_,y){let b=o1(w.trim().slice(-1))||"@",h=_===y-1?new RegExp(b+b+"?\\s*$"):new RegExp(b+"\\s*$");return w.replace(h,"")}function u(w=-1,_=null){let y={},b,h=[[16384,"vLayout",r],[8192,"vLayout",e],[4096,"vRule5",!0],[2048,"vRule4",!0],[1024,"vRule3",!0],[512,"vRule2",!0],[256,"vRule1",!0],[128,"hLayout",r],[64,"hLayout",e],[32,"hRule6",!0],[16,"hRule5",!0],[8,"hRule4",!0],[4,"hRule3",!0],[2,"hRule2",!0],[1,"hRule1",!0]];b=_!==null?_:w;for(let[D,p,E]of h)b>=D?(b-=D,y[p]===void 0&&(y[p]=E)):p!=="vLayout"&&p!=="hLayout"&&(y[p]=!1);return typeof y.hLayout>"u"?w===0?y.hLayout=e:w===-1?y.hLayout=t:y.hRule1||y.hRule2||y.hRule3||y.hRule4||y.hRule5||y.hRule6?y.hLayout=i:y.hLayout=r:y.hLayout===r&&(y.hRule1||y.hRule2||y.hRule3||y.hRule4||y.hRule5||y.hRule6)&&(y.hLayout=i),typeof y.vLayout>"u"?y.vRule1||y.vRule2||y.vRule3||y.vRule4||y.vRule5?y.vLayout=i:y.vLayout=t:y.vLayout===r&&(y.vRule1||y.vRule2||y.vRule3||y.vRule4||y.vRule5)&&(y.vLayout=i),y}function a(w,_,y=""){return w===_&&w!==y?w:!1}function l(w,_){let y="|/\\[]{}()<>";if(w==="_"){if(y.indexOf(_)!==-1)return _}else if(_==="_"&&y.indexOf(w)!==-1)return w;return!1}function c(w,_){let y="| /\\ [] {} () <>",b=y.indexOf(w),h=y.indexOf(_);if(b!==-1&&h!==-1&&b!==h&&Math.abs(b-h)!==1){let D=Math.max(b,h),p=D+1;return y.substring(D,p)}return!1}function f(w,_){let y="[] {} ()",b=y.indexOf(w),h=y.indexOf(_);return b!==-1&&h!==-1&&Math.abs(b-h)<=1?"|":!1}function m(w,_){return{"/\\":"|","\\/":"Y","><":"X"}[w+_]||!1}function d(w,_,y=""){return w===y&&_===y?y:!1}function g(w,_){return w===_?w:!1}function C(w,_){return l(w,_)}function S(w,_){return c(w,_)}function O(w,_){return w==="-"&&_==="_"||w==="_"&&_==="-"?"=":!1}function T(w,_){return w==="|"&&_==="|"?"|":!1}function I(w,_,y){return _===" "||_===""||_===y&&w!==" "?w:_}function B(w,_,y){if(y.fittingRules&&y.fittingRules.vLayout===t)return"invalid";let b,h=Math.min(w.length,_.length),D,p,E=!1,v;if(h===0)return"invalid";for(b=0;b<h;b++)if(D=w.substring(b,b+1),p=_.substring(b,b+1),D!==" "&&p!==" "){if(y.fittingRules&&y.fittingRules.vLayout===e)return"invalid";if(y.fittingRules&&y.fittingRules.vLayout===r)return"end";if(T(D,p)){E=E||!1;continue}if(v=!1,v=y.fittingRules&&y.fittingRules.vRule1?g(D,p):v,v=!v&&y.fittingRules&&y.fittingRules.vRule2?C(D,p):v,v=!v&&y.fittingRules&&y.fittingRules.vRule3?S(D,p):v,v=!v&&y.fittingRules&&y.fittingRules.vRule4?O(D,p):v,E=!0,!v)return"invalid"}return E?"end":"valid"}function te(w,_,y){let b=w.length,h=w.length,D,p,E,v=1,A,$,k;for(;v<=b;){for(D=w.slice(Math.max(0,h-v),h),p=_.slice(0,Math.min(b,v)),E=p.length,k="",A=0;A<E;A++)if($=B(D[A],p[A],y),$==="end")k=$;else if($==="invalid"){k=$;break}else k===""&&(k="valid");if(k==="invalid"){v--;break}if(k==="end")break;k==="valid"&&v++}return Math.min(b,v)}function ae(w,_,y){let b,h=Math.min(w.length,_.length),D,p,E="",v,A=y.fittingRules||{};for(b=0;b<h;b++)D=w.substring(b,b+1),p=_.substring(b,b+1),D!==" "&&p!==" "?A.vLayout===e||A.vLayout===r?E+=I(D,p):(v=!1,v=A.vRule5?T(D,p):v,v=!v&&A.vRule1?g(D,p):v,v=!v&&A.vRule2?C(D,p):v,v=!v&&A.vRule3?S(D,p):v,v=!v&&A.vRule4?O(D,p):v,E+=v):E+=I(D,p);return E}function Q(w,_,y,b){let h=w.length,D=_.length,p=w.slice(0,Math.max(0,h-y)),E=w.slice(Math.max(0,h-y),h),v=_.slice(0,Math.min(y,D)),A,$,k,U=[],K;for($=E.length,A=0;A<$;A++)A>=D?k=E[A]:k=ae(E[A],v[A],b),U.push(k);return K=_.slice(Math.min(y,D),D),[...p,...U,...K]}function Ce(w,_){let y=" ".repeat(_);return w.map(b=>b+y)}function R(w,_,y){let b=w[0].length,h=_[0].length,D;return b>h?_=Ce(_,b-h):h>b&&(w=Ce(w,h-b)),D=te(w,_,y),Q(w,_,D,y)}function P(w,_,y){let b=y.fittingRules||{};if(b.hLayout===t)return 0;let h,D=w.length,p=_.length,E=D,v=1,A=!1,$,k,U,K;if(D===0)return 0;e:for(;v<=E;){let Re=D-v;for($=w.substring(Re,Re+v),k=_.substring(0,Math.min(v,p)),h=0;h<Math.min(v,p);h++)if(U=$.substring(h,h+1),K=k.substring(h,h+1),U!==" "&&K!==" "){if(b.hLayout===e){v=v-1;break e}else if(b.hLayout===r){(U===y.hardBlank||K===y.hardBlank)&&(v=v-1);break e}else if(A=!0,!(b.hRule1&&a(U,K,y.hardBlank)||b.hRule2&&l(U,K)||b.hRule3&&c(U,K)||b.hRule4&&f(U,K)||b.hRule5&&m(U,K)||b.hRule6&&d(U,K,y.hardBlank))){v=v-1;break e}}if(A)break;v++}return Math.min(E,v)}function L(w,_,y,b){let h,D,p=[],E,v,A,$,k,U,K,Re,le=b.fittingRules||{};if(typeof b.height!="number")throw new Error("height is not defined.");for(h=0;h<b.height;h++){K=w[h],Re=_[h],k=K.length,U=Re.length,E=k-y,v=K.slice(0,Math.max(0,E)),A="";let Fi=Math.max(0,k-y),ct=K.substring(Fi,Fi+y),hr=Re.substring(0,Math.min(y,U));for(D=0;D<y;D++){let rt=D<k?ct.substring(D,D+1):" ",We=D<U?hr.substring(D,D+1):" ";if(rt!==" "&&We!==" ")if(le.hLayout===e||le.hLayout===r)A+=I(rt,We,b.hardBlank);else{let c2=le.hRule1&&a(rt,We,b.hardBlank)||le.hRule2&&l(rt,We)||le.hRule3&&c(rt,We)||le.hRule4&&f(rt,We)||le.hRule5&&m(rt,We)||le.hRule6&&d(rt,We,b.hardBlank)||I(rt,We,b.hardBlank);A+=c2}else A+=I(rt,We,b.hardBlank)}y>=U?$="":$=Re.substring(y,y+Math.max(0,U-y)),p[h]=v+A+$}return p}function J(w){return new Array(w).fill("")}let j=function(w){return Math.max(...w.map(_=>_.length))};function V(w,_,y){return w.reduce(function(b,h){return L(b,h.fig,h.overlap||0,y)},J(_))}function q(w,_,y){for(let b=w.length-1;b>0;b--){let h=V(w.slice(0,b),_,y);if(j(h)<=y.width)return{outputFigText:h,chars:w.slice(b)}}return{outputFigText:J(_),chars:w}}function z(w,_,y){let b,h,D=0,p,E,v,A=y.height,$=[],k,U={chars:[],overlap:D},K=[],Re,le,Fi,ct,hr;if(typeof A!="number")throw new Error("height is not defined.");E=J(A);let rt=y.fittingRules||{};for(y.printDirection===1&&(w=w.split("").reverse().join("")),v=w.length,b=0;b<v;b++)if(Re=w.substring(b,b+1),le=Re.match(/\s/),h=_[Re.charCodeAt(0)],ct=null,h){if(rt.hLayout!==t){for(D=1e4,p=0;p<A;p++)D=Math.min(D,P(E[p],h[p],y));D=D===1e4?0:D}if(y.width>0&&(y.whitespaceBreak?(Fi=V(U.chars.concat([{fig:h,overlap:D}]),A,y),ct=V(K.concat([{fig:Fi,overlap:U.overlap}]),A,y),k=j(ct)):(ct=L(E,h,D,y),k=j(ct)),k>=y.width&&b>0&&(y.whitespaceBreak?(E=V(K.slice(0,-1),A,y),K.length>1&&($.push(E),E=J(A)),K=[]):($.push(E),E=J(A)))),y.width>0&&y.whitespaceBreak&&((!le||b===v-1)&&U.chars.push({fig:h,overlap:D}),le||b===v-1)){for(hr=null;ct=V(U.chars,A,y),k=j(ct),k>=y.width;)hr=q(U.chars,A,y),U={chars:hr.chars},$.push(hr.outputFigText);k>0&&(hr?K.push({fig:ct,overlap:1}):K.push({fig:ct,overlap:U.overlap})),le&&(K.push({fig:h,overlap:D}),E=J(A)),b===v-1&&(E=V(K,A,y)),U={chars:[],overlap:D};continue}E=L(E,h,D,y)}return j(E)>0&&$.push(E),y.showHardBlanks||$.forEach(function(We){for(v=We.length,p=0;p<v;p++)We[p]=We[p].replace(new RegExp("\\"+y.hardBlank,"g")," ")}),w===""&&$.length===0&&$.push(new Array(A).fill("")),$}let W=function(w,_){let y,b=_.fittingRules||{};if(w==="default")y={hLayout:b.hLayout,hRule1:b.hRule1,hRule2:b.hRule2,hRule3:b.hRule3,hRule4:b.hRule4,hRule5:b.hRule5,hRule6:b.hRule6};else if(w==="full")y={hLayout:t,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(w==="fitted")y={hLayout:e,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(w==="controlled smushing")y={hLayout:i,hRule1:!0,hRule2:!0,hRule3:!0,hRule4:!0,hRule5:!0,hRule6:!0};else if(w==="universal smushing")y={hLayout:r,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else return;return y},Y=function(w,_){let y={},b=_.fittingRules||{};if(w==="default")y={vLayout:b.vLayout,vRule1:b.vRule1,vRule2:b.vRule2,vRule3:b.vRule3,vRule4:b.vRule4,vRule5:b.vRule5};else if(w==="full")y={vLayout:t,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(w==="fitted")y={vLayout:e,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(w==="controlled smushing")y={vLayout:i,vRule1:!0,vRule2:!0,vRule3:!0,vRule4:!0,vRule5:!0};else if(w==="universal smushing")y={vLayout:r,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else return;return y},G=function(w,_,y){y=y.replace(/\r\n/g,`
159
+ `).replace(/\r/g,`
160
+ `);let b=Jt(w),h=y.split(`
161
+ `),D=[],p,E,v;for(E=h.length,p=0;p<E;p++)D=D.concat(z(h[p],n[b],_));for(E=D.length,v=D[0],p=1;p<E;p++)v=R(v,D[p],_);return v?v.join(`
162
+ `):""};function cr(w,_){let y;if(typeof structuredClone<"u"?y=structuredClone(w):y=JSON.parse(JSON.stringify(w)),y.showHardBlanks=_.showHardBlanks||!1,y.width=_.width||-1,y.whitespaceBreak=_.whitespaceBreak||!1,_.horizontalLayout){let b=W(_.horizontalLayout,w);b&&Object.assign(y.fittingRules,b)}if(_.verticalLayout){let b=Y(_.verticalLayout,w);b&&Object.assign(y.fittingRules,b)}return y.printDirection=_.printDirection!==null&&_.printDirection!==void 0?_.printDirection:w.printDirection,y}let me=async function(w,_,y){return me.text(w,_,y)};return me.text=async function(w,_,y){w=w+"";let b,h;typeof _=="function"?(h=_,b={font:s.font}):typeof _=="string"?(b={font:_},h=y):_?(b=_,h=y):(b={font:s.font},h=y);let D=b.font||s.font;try{let p=await me.loadFont(D),E=p?G(D,cr(p,b),w):"";return h&&h(null,E),E}catch(p){let E=p instanceof Error?p:new Error(String(p));if(h)return h(E),"";throw E}},me.textSync=function(w,_){w=w+"",typeof _=="string"?_={font:_}:_=_||{};let y=_.font||s.font,b=cr(me.loadFontSync(y),_);return G(y,b,w)},me.metadata=async function(w,_){w=w+"";try{let y=await me.loadFont(w);if(!y)throw new Error("Error loading font.");let b=Jt(w),h=n[b]||{},D=[y,h.comment||""];return _&&_(null,y,h.comment),D}catch(y){let b=y instanceof Error?y:new Error(String(y));if(_)return _(b),null;throw b}},me.defaults=function(w){return w&&typeof w=="object"&&Object.assign(s,w),typeof structuredClone<"u"?structuredClone(s):JSON.parse(JSON.stringify(s))},me.parseFont=function(w,_,y=!0){if(n[w]&&!y)return n[w].options;_=_.replace(/\r\n/g,`
163
+ `).replace(/\r/g,`
164
+ `);let b=new qo,h=_.split(`
165
+ `),D=h.shift();if(!D)throw new Error("Invalid font file: missing header");let p=D.split(" "),E={hardBlank:p[0].substring(5,6),height:parseInt(p[1],10),baseline:parseInt(p[2],10),maxLength:parseInt(p[3],10),oldLayout:parseInt(p[4],10),numCommentLines:parseInt(p[5],10),printDirection:p[6]?parseInt(p[6],10):0,fullLayout:p[7]?parseInt(p[7],10):null,codeTagCount:p[8]?parseInt(p[8],10):null};if((E.hardBlank||"").length!==1||[E.height,E.baseline,E.maxLength,E.oldLayout,E.numCommentLines].some($=>$==null||isNaN($)))throw new Error("FIGlet header contains invalid values.");if(E.height==null||E.numCommentLines==null)throw new Error("FIGlet header contains invalid values.");E.fittingRules=u(E.oldLayout,E.fullLayout),b.options=E;let A=[];for(let $=32;$<=126;$++)A.push($);if(A.push(196,214,220,228,246,252,223),h.length<E.numCommentLines+E.height*A.length)throw new Error(`FIGlet file is missing data. Line length: ${h.length}. Comment lines: ${E.numCommentLines}. Height: ${E.height}. Num chars: ${A.length}.`);for(b.comment=h.splice(0,E.numCommentLines).join(`
166
+ `),b.numChars=0;h.length>0&&b.numChars<A.length;){let $=A[b.numChars];b[$]=h.splice(0,E.height);for(let k=0;k<E.height;k++)typeof b[$][k]>"u"?b[$][k]="":b[$][k]=o(b[$][k],k,E.height);b.numChars++}for(;h.length>0;){let $=h.shift();if(!$||$.trim()==="")break;let k=$.split(" ")[0],U;if(/^-?0[xX][0-9a-fA-F]+$/.test(k))U=parseInt(k,16);else if(/^-?0[0-7]+$/.test(k))U=parseInt(k,8);else if(/^-?[0-9]+$/.test(k))U=parseInt(k,10);else throw new Error(`Error parsing data. Invalid data: ${k}`);if(U===-1||U<-2147483648||U>2147483647){let K=U===-1?"The char code -1 is not permitted.":`The char code cannot be ${U<-2147483648?"less than -2147483648":"greater than 2147483647"}.`;throw new Error(`Error parsing data. ${K}`)}b[U]=h.splice(0,E.height);for(let K=0;K<E.height;K++)typeof b[U][K]>"u"?b[U][K]="":b[U][K]=o(b[U][K],K,E.height);b.numChars++}return n[w]=b,E},me.loadedFonts=()=>Object.keys(n),me.clearLoadedFonts=()=>{Object.keys(n).forEach(w=>{delete n[w]})},me.loadFont=async function(w,_){let y=Jt(w);if(n[y]){let b=n[y].options;return _&&_(null,b),Promise.resolve(b)}try{if(!s.fetchFontIfMissing)throw new Error(`Font is not loaded: ${y}`);let b=await fetch(`${s.fontPath}/${y}.flf`);if(!b.ok)throw new Error(`Network response was not ok: ${b.status}`);let h=await b.text(),D=me.parseFont(y,h);return _&&_(null,D),D}catch(b){let h=b instanceof Error?b:new Error(String(b));if(_)return _(h),null;throw h}},me.loadFontSync=function(w){let _=Jt(w);if(n[_])return n[_].options;throw new Error("Synchronous font loading is not implemented for the browser, it will only work for fonts already loaded.")},me.preloadFonts=async function(w,_){try{for(let y of w){let b=Jt(y),h=await fetch(`${s.fontPath}/${b}.flf`);if(!h.ok)throw new Error(`Failed to preload fonts. Error fetching font: ${b}, status code: ${h.statusText}`);let D=await h.text();me.parseFont(b,D)}_&&_()}catch(y){let b=y instanceof Error?y:new Error(String(y));if(_){_(b);return}throw y}},me.fonts=function(w){return new Promise(function(_,y){_(jo),w&&w(null,jo)})},me.fontsSync=function(){return jo},me.figFonts=n,me})();import{fileURLToPath as u1}from"url";var a1=u1(import.meta.url),l1=Hr.dirname(a1),c1=Hr.join(l1,"/../fonts/"),we=yh;we.defaults({fontPath:c1});we.loadFont=function(t,e){let r=Jt(t);return new Promise((i,n)=>{if(we.figFonts[r]){e&&e(null,we.figFonts[r].options),i(we.figFonts[r].options);return}Xt.readFile(Hr.join(we.defaults().fontPath,r+".flf"),{encoding:"utf-8"},(s,o)=>{if(s){e&&e(s),n(s);return}o=o+"";try{let u=we.parseFont(r,o);e&&e(null,u),i(u)}catch(u){let a=u instanceof Error?u:new Error(String(u));e&&e(a),n(a)}})})};we.loadFontSync=function(t){let e=Jt(t);if(we.figFonts[e])return we.figFonts[e].options;let r=Xt.readFileSync(Hr.join(we.defaults().fontPath,e+".flf"),{encoding:"utf-8"})+"";return we.parseFont(e,r)};we.fonts=function(t){return new Promise((e,r)=>{let i=[];Xt.readdir(we.defaults().fontPath,(n,s)=>{if(n){t&&t(n),r(n);return}s.forEach(o=>{/\.flf$/.test(o)&&i.push(o.replace(/\.flf$/,""))}),t&&t(null,i),e(i)})})};we.fontsSync=function(){let t=[];return Xt.readdirSync(we.defaults().fontPath).forEach(e=>{/\.flf$/.test(e)&&t.push(e.replace(/\.flf$/,""))}),t};import Or from"node:process";import{spawn as t_}from"node:child_process";import{fileURLToPath as r_}from"node:url";import Um from"node:path";import{format as ya}from"node:util";var Ri=Se(Oh(),1);import Oi from"node:path";import $1 from"node:os";import b1 from"os";import $n from"path";var Qt=b1.homedir(),{env:dr}=process,Rh=dr.XDG_DATA_HOME||(Qt?$n.join(Qt,".local","share"):void 0),Wr=dr.XDG_CONFIG_HOME||(Qt?$n.join(Qt,".config"):void 0),ER=dr.XDG_STATE_HOME||(Qt?$n.join(Qt,".local","state"):void 0),bR=dr.XDG_CACHE_HOME||(Qt?$n.join(Qt,".cache"):void 0),CR=dr.XDG_RUNTIME_DIR||void 0,C1=(dr.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");Rh&&C1.unshift(Rh);var w1=(dr.XDG_CONFIG_DIRS||"/etc/xdg").split(":");Wr&&w1.unshift(Wr);import{once as y8}from"node:events";import{createWriteStream as E8}from"node:fs";import I1 from"node:path";import{Readable as w8}from"node:stream";import ie from"node:fs";import{promisify as ke}from"node:util";var v1=(t,e)=>{let{onError:r}=e;return function(...n){return t.apply(void 0,n).catch(r)}},yt=v1;var x1=(t,e)=>{let{onError:r}=e;return function(...n){try{return t.apply(void 0,n)}catch(s){return r(s)}}},ht=x1;var S1=(t,e)=>{let{isRetriable:r}=e;return function(n){let{timeout:s}=n,o=n.interval??250,u=Date.now()+s;return function a(...l){return t.apply(void 0,l).catch(c=>{if(!r(c)||Date.now()>=u)throw c;let f=Math.round(o*Math.random());return f>0?new Promise(d=>setTimeout(d,f)).then(()=>a.apply(void 0,l)):a.apply(void 0,l)})}}},Ft=S1;var A1=(t,e)=>{let{isRetriable:r}=e;return function(n){let{timeout:s}=n,o=Date.now()+s;return function(...a){for(;;)try{return t.apply(void 0,a)}catch(l){if(!r(l)||Date.now()>=o)throw l;continue}}}},Et=A1;import Ih from"node:process";var _i={isChangeErrorOk:t=>{if(!_i.isNodeError(t))return!1;let{code:e}=t;return e==="ENOSYS"||!Th&&(e==="EINVAL"||e==="EPERM")},isNodeError:t=>t instanceof Error,isRetriableError:t=>{if(!_i.isNodeError(t))return!1;let{code:e}=t;return e==="EMFILE"||e==="ENFILE"||e==="EAGAIN"||e==="EBUSY"||e==="EACCESS"||e==="EACCES"||e==="EACCS"||e==="EPERM"},onChangeError:t=>{if(!_i.isNodeError(t))throw t;if(!_i.isChangeErrorOk(t))throw t}},Vo=_i;var Si={onError:Vo.onChangeError},Ve={onError:()=>{}},Th=Ih.getuid?!Ih.getuid():!1,Ie={isRetriable:Vo.isRetriableError};var O1={attempt:{chmod:yt(ke(ie.chmod),Si),chown:yt(ke(ie.chown),Si),close:yt(ke(ie.close),Ve),fsync:yt(ke(ie.fsync),Ve),mkdir:yt(ke(ie.mkdir),Ve),realpath:yt(ke(ie.realpath),Ve),stat:yt(ke(ie.stat),Ve),unlink:yt(ke(ie.unlink),Ve),chmodSync:ht(ie.chmodSync,Si),chownSync:ht(ie.chownSync,Si),closeSync:ht(ie.closeSync,Ve),existsSync:ht(ie.existsSync,Ve),fsyncSync:ht(ie.fsync,Ve),mkdirSync:ht(ie.mkdirSync,Ve),realpathSync:ht(ie.realpathSync,Ve),statSync:ht(ie.statSync,Ve),unlinkSync:ht(ie.unlinkSync,Ve)},retry:{close:Ft(ke(ie.close),Ie),fsync:Ft(ke(ie.fsync),Ie),open:Ft(ke(ie.open),Ie),readFile:Ft(ke(ie.readFile),Ie),rename:Ft(ke(ie.rename),Ie),stat:Ft(ke(ie.stat),Ie),write:Ft(ke(ie.write),Ie),writeFile:Ft(ke(ie.writeFile),Ie),closeSync:Et(ie.closeSync,Ie),fsyncSync:Et(ie.fsyncSync,Ie),openSync:Et(ie.openSync,Ie),readFileSync:Et(ie.readFileSync,Ie),renameSync:Et(ie.renameSync,Ie),statSync:Et(ie.statSync,Ie),writeSync:Et(ie.writeSync,Ie),writeFileSync:Et(ie.writeFileSync,Ie)}},Oe=O1;import pr from"node:process";var Bh="utf8",zo=438,$h=511;var Ph={},kh=pr.geteuid?pr.geteuid():-1,Lh=pr.getegid?pr.getegid():-1;var Nh=1e3,Mh=!!pr.getuid,zR=pr.getuid?!pr.getuid():!1,Yo=128;var jh=t=>t instanceof Error&&"code"in t;var Ko=t=>typeof t=="string",Pn=t=>t===void 0;import T1 from"node:path";import Vr from"node:process";import qh from"node:process";var Uh=qh.platform==="linux",kn=qh.platform==="win32";var Jo=["SIGHUP","SIGINT","SIGTERM"];kn||Jo.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");Uh&&Jo.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var Hh=Jo;var Xo=class{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=e=>{if(!this.exited){this.exited=!0;for(let r of this.callbacks)r();e&&(kn&&e!=="SIGINT"&&e!=="SIGTERM"&&e!=="SIGKILL"?Vr.kill(Vr.pid,"SIGTERM"):Vr.kill(Vr.pid,e))}},this.hook=()=>{Vr.once("exit",()=>this.exit());for(let e of Hh)try{Vr.once(e,()=>this.exit(e))}catch{}},this.register=e=>(this.callbacks.add(e),()=>{this.callbacks.delete(e)}),this.hook()}},Gh=new Xo;var R1=Gh.register,Wh=R1;var Xe={store:{},create:t=>{let e=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),n=`.tmp-${Date.now().toString().slice(-10)}${e}`;return`${t}${n}`},get:(t,e,r=!0)=>{let i=Xe.truncate(e(t));return i in Xe.store?Xe.get(t,e,r):(Xe.store[i]=r,[i,()=>delete Xe.store[i]])},purge:t=>{Xe.store[t]&&(delete Xe.store[t],Oe.attempt.unlink(t))},purgeSync:t=>{Xe.store[t]&&(delete Xe.store[t],Oe.attempt.unlinkSync(t))},purgeSyncAll:()=>{for(let t in Xe.store)Xe.purgeSync(t)},truncate:t=>{let e=T1.basename(t);if(e.length<=Yo)return t;let r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(e);if(!r)return t;let i=e.length-Yo;return`${t.slice(0,-e.length)}${r[1]}${r[2].slice(0,-i)}${r[3]}`}};Wh(Xe.purgeSyncAll);var Ai=Xe;function Ln(t,e,r=Ph){if(Ko(r))return Ln(t,e,{encoding:r});let n={timeout:r.timeout??Nh},s=null,o=null,u=null;try{let a=Oe.attempt.realpathSync(t),l=!!a;t=a||t,[o,s]=Ai.get(t,r.tmpCreate||Ai.create,r.tmpPurge!==!1);let c=Mh&&Pn(r.chown),f=Pn(r.mode);if(l&&(c||f)){let m=Oe.attempt.statSync(t);m&&(r={...r},c&&(r.chown={uid:m.uid,gid:m.gid}),f&&(r.mode=m.mode))}if(!l){let m=I1.dirname(t);Oe.attempt.mkdirSync(m,{mode:$h,recursive:!0})}u=Oe.retry.openSync(n)(o,"w",r.mode||zo),r.tmpCreated&&r.tmpCreated(o),Ko(e)?Oe.retry.writeSync(n)(u,e,0,r.encoding||Bh):Pn(e)||Oe.retry.writeSync(n)(u,e,0,e.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?Oe.retry.fsyncSync(n)(u):Oe.attempt.fsync(u)),Oe.retry.closeSync(n)(u),u=null,r.chown&&(r.chown.uid!==kh||r.chown.gid!==Lh)&&Oe.attempt.chownSync(o,r.chown.uid,r.chown.gid),r.mode&&r.mode!==zo&&Oe.attempt.chmodSync(o,r.mode);try{Oe.retry.renameSync(n)(o,t)}catch(m){if(!jh(m)||m.code!=="ENAMETOOLONG")throw m;Oe.retry.renameSync(n)(o,Ai.truncate(t))}s(),o=null}finally{u&&Oe.attempt.closeSync(u),o&&Ai.purge(o)}}var Dr=t=>{let e=typeof t;return t!==null&&(e==="object"||e==="function")};var Zo=new Set(["__proto__","prototype","constructor"]),B1=new Set("0123456789");function Nn(t){let e=[],r="",i="start",n=!1;for(let s of t)switch(s){case"\\":{if(i==="index")throw new Error("Invalid character in an index");if(i==="indexEnd")throw new Error("Invalid character after an index");n&&(r+=s),i="property",n=!n;break}case".":{if(i==="index")throw new Error("Invalid character in an index");if(i==="indexEnd"){i="property";break}if(n){n=!1,r+=s;break}if(Zo.has(r))return[];e.push(r),r="",i="property";break}case"[":{if(i==="index")throw new Error("Invalid character in an index");if(i==="indexEnd"){i="index";break}if(n){n=!1,r+=s;break}if(i==="property"){if(Zo.has(r))return[];e.push(r),r=""}i="index";break}case"]":{if(i==="index"){e.push(Number.parseInt(r,10)),r="",i="indexEnd";break}if(i==="indexEnd")throw new Error("Invalid character after an index")}default:{if(i==="index"&&!B1.has(s))throw new Error("Invalid character in an index");if(i==="indexEnd")throw new Error("Invalid character after an index");i==="start"&&(i="property"),n&&(n=!1,r+="\\"),r+=s}}switch(n&&(r+="\\"),i){case"property":{if(Zo.has(r))return[];e.push(r);break}case"index":throw new Error("Index was not closed");case"start":{e.push("");break}}return e}function Qo(t,e){if(typeof e!="number"&&Array.isArray(t)){let r=Number.parseInt(e,10);return Number.isInteger(r)&&t[r]===t[e]}return!1}function Vh(t,e){if(Qo(t,e))throw new Error("Cannot use string index")}function zh(t,e,r){if(!Dr(t)||typeof e!="string")return r===void 0?t:r;let i=Nn(e);if(i.length===0)return r;for(let n=0;n<i.length;n++){let s=i[n];if(Qo(t,s)?t=n===i.length-1?void 0:null:t=t[s],t==null){if(n!==i.length-1)return r;break}}return t===void 0?r:t}function eu(t,e,r){if(!Dr(t)||typeof e!="string")return t;let i=t,n=Nn(e);for(let s=0;s<n.length;s++){let o=n[s];Vh(t,o),s===n.length-1?t[o]=r:Dr(t[o])||(t[o]=typeof n[s+1]=="number"?[]:{}),t=t[o]}return i}function Yh(t,e){if(!Dr(t)||typeof e!="string")return!1;let r=Nn(e);for(let i=0;i<r.length;i++){let n=r[i];if(Vh(t,n),i===r.length-1)return delete t[n],!0;if(t=t[n],!Dr(t))return!1}}function Kh(t,e){if(!Dr(t)||typeof e!="string")return!1;let r=Nn(e);if(r.length===0)return!1;for(let i of r){if(!Dr(t)||!(i in t)||Qo(t,i))return!1;t=t[i]}return!0}function P1(t,e){let r=e?Oi.join(t,"config.json"):Oi.join("configstore",`${t}.json`),i=Wr??Ri.default.mkdtempSync(Ri.default.realpathSync($1.tmpdir())+Oi.sep);return Oi.join(i,r)}var k1="You don't have access to this file.",L1={mode:448,recursive:!0},Jh={mode:384};function Xh(t){throw t.code==="EACCES"&&(t.message=`${t.message}
167
+ ${k1}
168
+ `),t}var Ti=class{constructor(e,r,i={}){this._path=i.configPath??P1(e,i.globalConfigPath),this._clearInvalidConfig=i.clearInvalidConfig??!0,r&&(this.all={...r,...this.all})}get all(){try{return JSON.parse(Ri.default.readFileSync(this._path,"utf8"))}catch(e){if(e.code==="ENOENT")return{};if(e.name==="SyntaxError"){if(this._clearInvalidConfig)return Ln(this._path,"",Jh),{};throw e}return Xh(e),{}}}set all(e){try{Ri.default.mkdirSync(Oi.dirname(this._path),L1),Ln(this._path,JSON.stringify(e,void 0," "),Jh)}catch(r){Xh(r)}}get size(){return Object.keys(this.all||{}).length}get(e){return zh(this.all,e)}set(e,r){let i=this.all;if(typeof e=="object"&&arguments.length===1)for(let n of Object.keys(e))eu(i,n,e[n]);else eu(i,e,r);this.all=i}has(e){return Kh(this.all,e)}delete(e){let r=this.all;Yh(r,e),this.all=r}clear(){this.all={}}get path(){return this._path}};Pt();var Hm=Se(cu(),1),Gm=Se(Jr(),1);var gr=class extends Error{response;request;options;constructor(e,r,i){let n=e.status||e.status===0?e.status:"",s=e.statusText??"",o=`${n} ${s}`.trim(),u=o?`status code ${o}`:"an unknown error";super(`Request failed with ${u}: ${r.method} ${r.url}`),this.name="HTTPError",this.response=e,this.request=r,this.options=i}};var Xr=class extends Error{name="NonError";value;constructor(e){let r="Non-error value was thrown";try{typeof e=="string"?r=e:e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"&&(r=e.message)}catch{}super(r),this.value=e}};var Zr=class extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(e){let r=e?.cause?e.cause instanceof Error?e.cause:new Xr(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:"Forced retry",r?{cause:r}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}};var hu=(()=>{let t=!1,e=!1,r=typeof globalThis.ReadableStream=="function",i=typeof globalThis.Request=="function";if(r&&i)try{e=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type")}catch(n){if(n instanceof Error&&n.message==="unsupported BodyInit type")return!1;throw n}return t&&!e})(),Of=typeof globalThis.AbortController=="function",Vn=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",Rf=typeof globalThis.ReadableStream=="function",Tf=typeof globalThis.FormData=="function",zn=["get","post","put","patch","head","delete"],vb=()=>{};vb();var If={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Yn=2147483647,Bf=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,Kn=Symbol("stop"),ki=class{options;constructor(e){this.options=e}},$f=t=>new ki(t),Pf={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},kf={next:!0},Lf={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 xb=t=>{if(!t)return 0;if(t instanceof FormData){let e=0;for(let[r,i]of t)e+=Bf,e+=new TextEncoder().encode(`Content-Disposition: form-data; name="${r}"`).length,e+=typeof i=="string"?new TextEncoder().encode(i).length:i.size;return e}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength;if(typeof t=="string")return new TextEncoder().encode(t).length;if(t instanceof URLSearchParams)return new TextEncoder().encode(t.toString()).length;if("byteLength"in t)return t.byteLength;if(typeof t=="object"&&t!==null)try{let e=JSON.stringify(t);return new TextEncoder().encode(e).length}catch{return 0}return 0},Nf=(t,e,r)=>{let i,n=0;return t.pipeThrough(new TransformStream({transform(s,o){if(o.enqueue(s),i){n+=i.byteLength;let u=e===0?0:n/e;u>=1&&(u=1-Number.EPSILON),r?.({percent:u,totalBytes:Math.max(e,n),transferredBytes:n},i)}i=s},flush(){i&&(n+=i.byteLength,r?.({percent:1,totalBytes:Math.max(e,n),transferredBytes:n},i))}}))},Mf=(t,e)=>{if(!t.body)return t;if(t.status===204)return new Response(null,{status:t.status,statusText:t.statusText,headers:t.headers});let r=Math.max(0,Number(t.headers.get("content-length"))||0);return new Response(Nf(t.body,r,e),{status:t.status,statusText:t.statusText,headers:t.headers})},jf=(t,e,r)=>{if(!t.body)return t;let i=xb(r??t.body);return new Request(t,{duplex:"half",body:Nf(t.body,i,e)})};var er=t=>t!==null&&typeof t=="object";var Li=(...t)=>{for(let e of t)if((!er(e)||Array.isArray(e))&&e!==void 0)throw new TypeError("The `options` argument must be an object");return pu({},...t)},fu=(t={},e={})=>{let r=new globalThis.Headers(t),i=e instanceof globalThis.Headers,n=new globalThis.Headers(e);for(let[s,o]of n.entries())i&&o==="undefined"||o===void 0?r.delete(s):r.set(s,o);return r};function Jn(t,e,r){return Object.hasOwn(e,r)&&e[r]===void 0?[]:pu(t[r]??[],e[r]??[])}var du=(t={},e={})=>({beforeRequest:Jn(t,e,"beforeRequest"),beforeRetry:Jn(t,e,"beforeRetry"),afterResponse:Jn(t,e,"afterResponse"),beforeError:Jn(t,e,"beforeError")}),_b=(t,e)=>{let r=new URLSearchParams;for(let i of[t,e])if(i!==void 0)if(i instanceof URLSearchParams)for(let[n,s]of i.entries())r.append(n,s);else if(Array.isArray(i))for(let n of i){if(!Array.isArray(n)||n.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");r.append(String(n[0]),String(n[1]))}else if(er(i))for(let[n,s]of Object.entries(i))s!==void 0&&r.append(n,String(s));else{let n=new URLSearchParams(i);for(let[s,o]of n.entries())r.append(s,o)}return r},pu=(...t)=>{let e={},r={},i={},n,s=[];for(let o of t)if(Array.isArray(o))Array.isArray(e)||(e=[]),e=[...e,...o];else if(er(o)){for(let[u,a]of Object.entries(o)){if(u==="signal"&&a instanceof globalThis.AbortSignal){s.push(a);continue}if(u==="context"){if(a!=null&&(!er(a)||Array.isArray(a)))throw new TypeError("The `context` option must be an object");e={...e,context:a==null?{}:{...e.context,...a}};continue}if(u==="searchParams"){a==null?n=void 0:n=n===void 0?a:_b(n,a);continue}er(a)&&u in e&&(a=pu(e[u],a)),e={...e,[u]:a}}er(o.hooks)&&(i=du(i,o.hooks),e.hooks=i),er(o.headers)&&(r=fu(r,o.headers),e.headers=r)}return n!==void 0&&(e.searchParams=n),s.length>0&&(s.length===1?e.signal=s[0]:Vn?e.signal=AbortSignal.any(s):e.signal=s.at(-1)),e};var Uf=t=>zn.includes(t)?t.toUpperCase():t,Sb=["get","put","head","delete","options","trace"],Ab=[408,413,429,500,502,503,504],Ob=[413,429,503],qf={limit:2,methods:Sb,statusCodes:Ab,afterStatusCodes:Ob,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:t=>.3*2**(t-1)*1e3,jitter:void 0,retryOnTimeout:!1},Hf=(t={})=>{if(typeof t=="number")return{...qf,limit:t};if(t.methods&&!Array.isArray(t.methods))throw new Error("retry.methods must be an array");if(t.methods&&=t.methods.map(r=>r.toLowerCase()),t.statusCodes&&!Array.isArray(t.statusCodes))throw new Error("retry.statusCodes must be an array");let e=Object.fromEntries(Object.entries(t).filter(([,r])=>r!==void 0));return{...qf,...e}};var yr=class extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}};async function Du(t,e,r,i){return new Promise((n,s)=>{let o=setTimeout(()=>{r&&r.abort(),s(new yr(t))},i.timeout);i.fetch(t,e).then(n).catch(s).then(()=>{clearTimeout(o)})})}async function mu(t,{signal:e}){return new Promise((r,i)=>{e&&(e.throwIfAborted(),e.addEventListener("abort",n,{once:!0}));function n(){clearTimeout(s),i(e.reason)}let s=setTimeout(()=>{e?.removeEventListener("abort",n),r()},t)})}var Gf=(t,e)=>{let r={};for(let i in e)Object.hasOwn(e,i)&&!(i in Lf)&&!(i in Pf)&&(!(i in t)||i in kf)&&(r[i]=e[i]);return r},Wf=t=>t===void 0?!1:Array.isArray(t)?t.length>0:t instanceof URLSearchParams?t.size>0:typeof t=="object"?Object.keys(t).length>0:typeof t=="string"?t.trim().length>0:!!t;function Vf(t){return t instanceof gr||t?.name===gr.name}function zf(t){return t instanceof yr||t?.name===yr.name}var Ni=class t{static create(e,r){let i=new t(e,r),n=async()=>{if(typeof i.#e.timeout=="number"&&i.#e.timeout>Yn)throw new RangeError(`The \`timeout\` option cannot be greater than ${Yn}`);await Promise.resolve();let o=await i.#d();for(let u of i.#e.hooks.afterResponse){let a=i.#f(o.clone()),l;try{l=await u(i.request,i.#l(),a,{retryCount:i.#t})}catch(f){throw i.#a(a),i.#a(o),f}if(l instanceof ki)throw i.#a(a),i.#a(o),new Zr(l.options);let c=l instanceof globalThis.Response?l:o;a!==c&&i.#a(a),o!==c&&i.#a(o),o=c}if(i.#f(o),!o.ok&&(typeof i.#e.throwHttpErrors=="function"?i.#e.throwHttpErrors(o.status):i.#e.throwHttpErrors)){let u=new gr(o,i.request,i.#l());for(let a of i.#e.hooks.beforeError)u=await a(u,{retryCount:i.#t});throw u}if(i.#e.onDownloadProgress){if(typeof i.#e.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!Rf)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");let u=o.clone();return i.#a(o),Mf(u,i.#e.onDownloadProgress)}return o},s=i.#p(n).finally(()=>{let o=i.#n;i.#c(o?.body??void 0),i.#c(i.request.body??void 0)});for(let[o,u]of Object.entries(If))o==="bytes"&&typeof globalThis.Response?.prototype?.bytes!="function"||(s[o]=async()=>{i.request.headers.set("accept",i.request.headers.get("accept")||u);let a=await s;if(o==="json"){if(a.status===204)return"";let l=await a.text();return l===""?"":r.parseJson?r.parseJson(l):JSON.parse(l)}return a[o]()});return s}static#u(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof URLSearchParams)?Object.fromEntries(Object.entries(e).filter(([,r])=>r!==void 0)):e}request;#i;#t=0;#r;#e;#n;#s;#o;constructor(e,r={}){if(this.#r=e,this.#e={...r,headers:fu(this.#r.headers,r.headers),hooks:du({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},r.hooks),method:Uf(r.method??this.#r.method??"GET"),prefixUrl:String(r.prefixUrl||""),retry:Hf(r.retry),throwHttpErrors:r.throwHttpErrors??!0,timeout:r.timeout??1e4,fetch:r.fetch??globalThis.fetch.bind(globalThis),context:r.context??{}},typeof this.#r!="string"&&!(this.#r instanceof URL||this.#r instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this.#e.prefixUrl&&typeof this.#r=="string"){if(this.#r.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this.#e.prefixUrl.endsWith("/")||(this.#e.prefixUrl+="/"),this.#r=this.#e.prefixUrl+this.#r}Of&&Vn&&(this.#s=this.#e.signal??this.#r.signal,this.#i=new globalThis.AbortController,this.#e.signal=this.#s?AbortSignal.any([this.#s,this.#i.signal]):this.#i.signal),hu&&(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=r.headers&&new globalThis.Headers(r.headers).has("content-type");if(this.#r instanceof globalThis.Request&&(Tf&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!i&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#r,this.#e),Wf(this.#e.searchParams)){let s="?"+(typeof this.#e.searchParams=="string"?this.#e.searchParams.replace(/^\?/,""):new URLSearchParams(t.#u(this.#e.searchParams)).toString()),o=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,s);this.request=new globalThis.Request(o,this.#e)}if(this.#e.onUploadProgress){if(typeof this.#e.onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");if(!hu)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#g(this.request,this.#e.body??void 0)}}#h(){let e=this.#e.retry.delay(this.#t),r=e;this.#e.retry.jitter===!0?r=Math.random()*e:typeof this.#e.retry.jitter=="function"&&(r=this.#e.retry.jitter(e),(!Number.isFinite(r)||r<0)&&(r=e));let i=this.#e.retry.backoffLimit??Number.POSITIVE_INFINITY;return Math.min(i,r)}async#m(e){if(this.#t++,this.#t>this.#e.retry.limit)throw e;let r=e instanceof Error?e:new Xr(e);if(r instanceof Zr)return r.customDelay??this.#h();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:r,retryCount:this.#t});if(i===!1)throw e;if(i===!0)return this.#h()}if(zf(e)&&!this.#e.retry.retryOnTimeout)throw e;if(Vf(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;Number.isNaN(n)?n=Date.parse(i)-Date.now():n>=Date.parse("2024-01-01")&&(n-=Date.now());let s=this.#e.retry.maxRetryAfter??n;return n<s?n:s}if(e.response.status===413)throw e}return this.#h()}#f(e){return this.#e.parseJson&&(e.json=async()=>this.#e.parseJson(await e.text())),e}#c(e){e&&e.cancel().catch(()=>{})}#a(e){this.#c(e.body??void 0)}async#p(e){try{return await e()}catch(r){let i=Math.min(await this.#m(r),Yn);if(this.#t<1)throw r;if(await mu(i,this.#s?{signal:this.#s}:{}),r instanceof Zr&&r.customRequest){let n=this.#e.signal?new globalThis.Request(r.customRequest,{signal:this.#e.signal}):new globalThis.Request(r.customRequest);this.#D(n)}for(let n of this.#e.hooks.beforeRetry){let s=await n({request:this.request,options:this.#l(),error:r,retryCount:this.#t});if(s instanceof globalThis.Request){this.#D(s);break}if(s instanceof globalThis.Response)return s;if(s===Kn)return}return this.#p(e)}}async#d(){this.#i?.signal.aborted&&(this.#i=new globalThis.AbortController,this.#e.signal=this.#s?AbortSignal.any([this.#s,this.#i.signal]):this.#i.signal,this.request=new globalThis.Request(this.request,{signal:this.#e.signal}));for(let r of this.#e.hooks.beforeRequest){let i=await r(this.request,this.#l(),{retryCount:this.#t});if(i instanceof Response)return i;if(i instanceof globalThis.Request){this.#D(i);break}}let e=Gf(this.request,this.#e);return this.#n=this.request,this.request=this.#n.clone(),this.#e.timeout===!1?this.#e.fetch(this.#n,e):Du(this.#n,e,this.#i,this.#e)}#l(){if(!this.#o){let{hooks:e,...r}=this.#e;this.#o=Object.freeze(r)}return this.#o}#D(e){this.#o=void 0,this.request=this.#g(e)}#g(e,r){return!this.#e.onUploadProgress||!e.body?e:jf(e,this.#e.onUploadProgress,r??this.#e.body??void 0)}};var gu=t=>{let e=(r,i)=>Ni.create(r,Li(t,i));for(let r of zn)e[r]=(i,n)=>Ni.create(i,Li(t,n,{method:r}));return e.create=r=>gu(Li(r)),e.extend=r=>(typeof r=="function"&&(r=r(t??{})),gu(Li(t,r))),e.stop=Kn,e.retry=$f,e},Rb=gu(),Yf=Rb;var gd=Se(md(),1);function Cu(t){let e=(0,gd.default)("npm",{registry:"https://registry.npmjs.org/"}),r=e[`${t}:registry`]||e.config_registry||e.registry;return r.slice(-1)==="/"?r:`${r}/`}var ND=Se(hp(),1),MD=Se(LD(),1),Yu=class extends Error{constructor(e){super(`Package \`${e}\` could not be found`),this.name="PackageNotFoundError"}},Ku=class extends Error{constructor(e,r){super(`Version \`${r}\` for package \`${e}\` could not be found`),this.name="VersionNotFoundError"}};async function Ju(t,e={}){let{version:r="latest"}=e,{omitDeprecated:i=!0}=e,n=t.split("/")[0],s=e.registryUrl??Cu(n),o=new URL(encodeURIComponent(t).replace(/^%40/,"@"),s),u=(0,ND.default)(s.toString(),{recursive:!0}),a={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"};e.fullMetadata&&delete a.accept,u&&(a.authorization=`${u.type} ${u.token}`);let l;try{l=await Yf(o,{headers:a,keepalive:!0}).json()}catch(f){throw f?.response?.status===404?new Yu(t):f}if(e.allVersions)return l;let c=new Ku(t,r);if(l["dist-tags"][r]){let{time:f}=l;l=l.versions[l["dist-tags"][r]],l.time=f}else if(r){let f=!!l.versions[r];if(i&&!f)for(let[d,g]of Object.entries(l.versions))g.deprecated&&delete l.versions[d];if(!f){let d=Object.keys(l.versions);if(r=MD.default.maxSatisfying(d,r),!r)throw c}let{time:m}=l;if(l=l.versions[r],l.time=m,!l)throw c}return l}async function Xu(t,e){let{version:r}=await Ju(t.toLowerCase(),e);return r}import jD from"node:process";var ox=jD.env.npm_package_json,Ds=jD.env.npm_config_user_agent,ux=!!Ds?.startsWith("npm")||!!ox?.endsWith("package.json"),ax=!!Ds?.startsWith("yarn"),sI=!!Ds?.startsWith("pnpm"),oI=!!Ds?.startsWith("bun"),qD=ux||ax;import px from"node:fs";import Dx from"node:path";import{fileURLToPath as mx}from"node:url";var YD=Se(VD(),1);import ve from"node:process";import xe from"node:path";import ea from"node:os";import gs from"node:fs";var Ki=ve.platform==="win32",zD=t=>{try{return YD.default.parse(gs.readFileSync(t,"utf8")).prefix}catch{}},lx=()=>Object.keys(ve.env).reduce((t,e)=>/^npm_config_prefix$/i.test(e)?ve.env[e]:t,void 0),cx=()=>{if(Ki&&ve.env.APPDATA)return xe.join(ve.env.APPDATA,"/npm/etc/npmrc");if(ve.execPath.includes("/Cellar/node")){let t=ve.execPath.slice(0,ve.execPath.indexOf("/Cellar/node"));return xe.join(t,"/lib/node_modules/npm/npmrc")}if(ve.execPath.endsWith("/bin/node")){let t=xe.dirname(xe.dirname(ve.execPath));return xe.join(t,"/etc/npmrc")}},hx=()=>{if(Ki){let{APPDATA:t}=ve.env;return t?xe.join(t,"npm"):xe.dirname(ve.execPath)}return xe.dirname(xe.dirname(ve.execPath))},fx=()=>{let t=lx();if(t)return t;let e=zD(xe.join(ea.homedir(),".npmrc"));if(e)return e;if(ve.env.PREFIX)return ve.env.PREFIX;let r=zD(cx());return r||hx()},Yi=xe.resolve(fx()),KD=()=>{if(Ki&&ve.env.LOCALAPPDATA){let t=xe.join(ve.env.LOCALAPPDATA,"Yarn");if(gs.existsSync(t))return t}return!1},dx=()=>{if(ve.env.PREFIX)return ve.env.PREFIX;let t=KD();if(t)return t;let e=xe.join(ea.homedir(),".config/yarn");if(gs.existsSync(e))return e;let r=xe.join(ea.homedir(),".yarn-config");return gs.existsSync(r)?r:Yi},Ct={};Ct.npm={};Ct.npm.prefix=Yi;Ct.npm.packages=xe.join(Yi,Ki?"node_modules":"lib/node_modules");Ct.npm.binaries=Ki?Yi:xe.join(Yi,"bin");var JD=xe.resolve(dx());Ct.yarn={};Ct.yarn.prefix=JD;Ct.yarn.packages=xe.join(JD,KD()?"Data/global/node_modules":"global/node_modules");Ct.yarn.binaries=xe.join(Ct.yarn.packages,".bin");var ta=Ct;import ra from"node:path";function ys(t,e){let r=ra.relative(e,t);return!!(r&&r!==".."&&!r.startsWith(`..${ra.sep}`)&&r!==ra.resolve(t))}var XD=Dx.dirname(mx(import.meta.url)),gx=(()=>{try{return ys(XD,ta.yarn.packages)||ys(XD,px.realpathSync(ta.npm.packages))}catch{return!1}})(),ZD=gx;Ji();Pt();import vs from"node:process";Ji();function Es(t){let e=0;for(let r of t.split(`
169
+ `))e=Math.max(e,$e(r));return e}var Lm=Se(sa(),1);var wx=/[\p{Lu}]/u,vx=/[\p{Ll}]/u,hm=/^[\p{Lu}](?![\p{Lu}])/gu,pm=/([\p{Alpha}\p{N}_]|$)/u,oa=/[_.\- ]+/,xx=new RegExp("^"+oa.source),fm=new RegExp(oa.source+pm.source,"gu"),dm=new RegExp("\\d+"+pm.source,"gu"),_x=(t,e,r,i)=>{let n=!1,s=!1,o=!1,u=!1;for(let a=0;a<t.length;a++){let l=t[a];u=a>2?t[a-3]==="-":!0,n&&wx.test(l)?(t=t.slice(0,a)+"-"+t.slice(a),n=!1,o=s,s=!0,a++):s&&o&&vx.test(l)&&(!u||i)?(t=t.slice(0,a-1)+"-"+t.slice(a-1),o=s,s=!1,n=!0):(n=e(l)===l&&r(l)!==l,o=s,s=r(l)===l&&e(l)!==l)}return t},Sx=(t,e)=>(hm.lastIndex=0,t.replaceAll(hm,r=>e(r))),Ax=(t,e)=>(fm.lastIndex=0,dm.lastIndex=0,t.replaceAll(dm,(r,i,n)=>["_","-"].includes(t.charAt(n+r.length))?r:e(r)).replaceAll(fm,(r,i)=>e(i)));function ua(t,e){if(!(typeof t=="string"||Array.isArray(t)))throw new TypeError("Expected the input to be `string | string[]`");if(e={pascalCase:!1,preserveConsecutiveUppercase:!1,...e},Array.isArray(t)?t=t.map(s=>s.trim()).filter(s=>s.length).join("-"):t=t.trim(),t.length===0)return"";let r=e.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(e.locale),i=e.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(e.locale);return t.length===1?oa.test(t)?"":e.pascalCase?i(t):r(t):(t!==r(t)&&(t=_x(t,r,i,e.preserveConsecutiveUppercase)),t=t.replace(xx,""),t=e.preserveConsecutiveUppercase?Sx(t,r):r(t),e.pascalCase&&(t=i(t.charAt(0))+t.slice(1)),Ax(t,i))}var da=Se(xm(),1);Ji();Fs();var _m=(t=0)=>e=>`\x1B[${e+t}m`,Sm=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Am=(t=0)=>(e,r,i)=>`\x1B[${38+t};2;${e};${r};${i}m`,pe={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]}},GI=Object.keys(pe.modifier),kx=Object.keys(pe.color),Lx=Object.keys(pe.bgColor),WI=[...kx,...Lx];function Nx(){let t=new Map;for(let[e,r]of Object.entries(pe)){for(let[i,n]of Object.entries(r))pe[i]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},r[i]=pe[i],t.set(n[0],n[1]);Object.defineProperty(pe,e,{value:r,enumerable:!1})}return Object.defineProperty(pe,"codes",{value:t,enumerable:!1}),pe.color.close="\x1B[39m",pe.bgColor.close="\x1B[49m",pe.color.ansi=_m(),pe.color.ansi256=Sm(),pe.color.ansi16m=Am(),pe.bgColor.ansi=_m(10),pe.bgColor.ansi256=Sm(10),pe.bgColor.ansi16m=Am(10),Object.defineProperties(pe,{rgbToAnsi256:{value(e,r,i){return e===r&&r===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[i]=r;i.length===3&&(i=[...i].map(s=>s+s).join(""));let n=Number.parseInt(i,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:e=>pe.rgbToAnsi256(...pe.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,i,n;if(e>=232)r=((e-232)*10+8)/255,i=r,n=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,i=Math.floor(u/6)/5,n=u%6/5}let s=Math.max(r,i,n)*2;if(s===0)return 30;let o=30+(Math.round(n)<<2|Math.round(i)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,i)=>pe.ansi256ToAnsi(pe.rgbToAnsi256(e,r,i)),enumerable:!1},hexToAnsi:{value:e=>pe.ansi256ToAnsi(pe.hexToAnsi256(e)),enumerable:!1}}),pe}var Mx=Nx(),Om=Mx;var Cs=new Set(["\x1B","\x9B"]),jx=39,fa="\x07",Im="[",qx="]",Bm="m",bs=`${qx}8;;`,Rm=t=>`${Cs.values().next().value}${Im}${t}${Bm}`,Tm=t=>`${Cs.values().next().value}${bs}${t}${fa}`,Ux=t=>t.split(" ").map(e=>$e(e)),ha=(t,e,r)=>{let i=[...e],n=!1,s=!1,o=$e(Sr(t.at(-1)));for(let[u,a]of i.entries()){let l=$e(a);if(o+l<=r?t[t.length-1]+=a:(t.push(a),o=0),Cs.has(a)&&(n=!0,s=i.slice(u+1,u+1+bs.length).join("")===bs),n){s?a===fa&&(n=!1,s=!1):a===Bm&&(n=!1);continue}o+=l,o===r&&u<i.length-1&&(t.push(""),o=0)}!o&&t.at(-1).length>0&&t.length>1&&(t[t.length-2]+=t.pop())},Hx=t=>{let e=t.split(" "),r=e.length;for(;r>0&&!($e(e[r-1])>0);)r--;return r===e.length?t:e.slice(0,r).join(" ")+e.slice(r).join("")},Gx=(t,e,r={})=>{if(r.trim!==!1&&t.trim()==="")return"";let i="",n,s,o=Ux(t),u=[""];for(let[f,m]of t.split(" ").entries()){r.trim!==!1&&(u[u.length-1]=u.at(-1).trimStart());let d=$e(u.at(-1));if(f!==0&&(d>=e&&(r.wordWrap===!1||r.trim===!1)&&(u.push(""),d=0),(d>0||r.trim===!1)&&(u[u.length-1]+=" ",d++)),r.hard&&o[f]>e){let g=e-d,C=1+Math.floor((o[f]-g-1)/e);Math.floor((o[f]-1)/e)<C&&u.push(""),ha(u,m,e);continue}if(d+o[f]>e&&d>0&&o[f]>0){if(r.wordWrap===!1&&d<e){ha(u,m,e);continue}u.push("")}if(d+o[f]>e&&r.wordWrap===!1){ha(u,m,e);continue}u[u.length-1]+=m}r.trim!==!1&&(u=u.map(f=>Hx(f)));let a=u.join(`
170
+ `),l=[...a],c=0;for(let[f,m]of l.entries()){if(i+=m,Cs.has(m)){let{groups:g}=new RegExp(`(?:\\${Im}(?<code>\\d+)m|\\${bs}(?<uri>.*)${fa})`).exec(a.slice(c))||{groups:{}};if(g.code!==void 0){let C=Number.parseFloat(g.code);n=C===jx?void 0:C}else g.uri!==void 0&&(s=g.uri.length===0?void 0:g.uri)}let d=Om.codes.get(Number(n));l[f+1]===`
171
+ `?(s&&(i+=Tm("")),n&&d&&(i+=Rm(d))):m===`
172
+ `&&(n&&d&&(i+=Rm(n)),s&&(i+=Tm(s))),c+=m.length}return i};function ws(t,e,r){return String(t).normalize().replaceAll(`\r
173
+ `,`
174
+ `).split(`
175
+ `).map(i=>Gx(i,e,r)).join(`
176
+ `)}var Qx=Se(sa(),1),rr=`
177
+ `,Ze=" ",Xi="none",Nm=()=>{let{env:t,stdout:e,stderr:r}=vs;return e?.columns?e.columns:r?.columns?r.columns:t.COLUMNS?Number.parseInt(t.COLUMNS,10):80},$m=t=>typeof t=="number"?{top:t,right:t*3,bottom:t,left:t*3}:{top:0,right:0,bottom:0,left:0,...t},Zi=t=>t===Xi?0:2,Wx=t=>{let e=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"],r;if(t===Xi){t={};for(let i of e)t[i]=""}if(typeof t=="string"){if(r=Lm.default[t],!r)throw new TypeError(`Invalid border style: ${t}`)}else{typeof t?.vertical=="string"&&(t.left=t.vertical,t.right=t.vertical),typeof t?.horizontal=="string"&&(t.top=t.horizontal,t.bottom=t.horizontal);for(let i of e)if(t[i]===null||typeof t[i]!="string")throw new TypeError(`Invalid border style: ${i}`);r=t}return r},Vx=(t,e,r)=>{let i="",n=$e(t);switch(r){case"left":{i=t+e.slice(n);break}case"right":{i=e.slice(n)+t;break}default:{e=e.slice(n),e.length%2===1?(e=e.slice(Math.floor(e.length/2)),i=e.slice(1)+t+e):(e=e.slice(e.length/2),i=e+t+e);break}}return i},zx=(t,{padding:e,width:r,textAlignment:i,height:n})=>{t=(0,da.default)(t,{align:i});let s=t.split(rr),o=Es(t),u=r-e.left-e.right;if(o>u){let c=[];for(let f of s){let m=ws(f,u,{hard:!0}),g=(0,da.default)(m,{align:i}).split(`
178
+ `),C=Math.max(...g.map(S=>$e(S)));for(let S of g){let O;switch(i){case"center":{O=Ze.repeat((u-C)/2)+S;break}case"right":{O=Ze.repeat(u-C)+S;break}default:{O=S;break}}c.push(O)}}s=c}i==="center"&&o<u?s=s.map(c=>Ze.repeat((u-o)/2)+c):i==="right"&&o<u&&(s=s.map(c=>Ze.repeat(u-o)+c));let a=Ze.repeat(e.left),l=Ze.repeat(e.right);return s=s.map(c=>{let f=a+c+l;return f+Ze.repeat(r-$e(f))}),e.top>0&&(s=[...Array.from({length:e.top}).fill(Ze.repeat(r)),...s]),e.bottom>0&&(s=[...s,...Array.from({length:e.bottom}).fill(Ze.repeat(r))]),n&&s.length>n?s=s.slice(0,n):n&&s.length<n&&(s=[...s,...Array.from({length:n-s.length}).fill(Ze.repeat(r))]),s.join(rr)},Yx=(t,e,r)=>{let i=c=>{let f=r.borderColor?Xx(r.borderColor)(c):c;return r.dimBorder?x.dim(f):f},n=c=>r.backgroundColor?Zx(r.backgroundColor)(c):c,s=Wx(r.borderStyle),o=Nm(),u=Ze.repeat(r.margin.left);if(r.float==="center"){let c=Math.max((o-e-Zi(r.borderStyle))/2,0);u=Ze.repeat(c)}else if(r.float==="right"){let c=Math.max(o-e-r.margin.right-Zi(r.borderStyle),0);u=Ze.repeat(c)}let a="";r.margin.top&&(a+=rr.repeat(r.margin.top)),(r.borderStyle!==Xi||r.title)&&(a+=i(u+s.topLeft+(r.title?Vx(r.title,s.top.repeat(e),r.titleAlignment):s.top.repeat(e))+s.topRight)+rr);let l=t.split(rr);return a+=l.map(c=>u+i(s.left)+n(c)+i(s.right)).join(rr),r.borderStyle!==Xi&&(a+=rr+i(u+s.bottomLeft+s.bottom.repeat(e)+s.bottomRight)),r.margin.bottom&&(a+=rr.repeat(r.margin.bottom)),a},Kx=t=>{if(t.fullscreen&&vs?.stdout){let e=[vs.stdout.columns,vs.stdout.rows];typeof t.fullscreen=="function"&&(e=t.fullscreen(...e)),t.width||=e[0],t.height||=e[1]}return t.width&&=Math.max(1,t.width-Zi(t.borderStyle)),t.height&&=Math.max(1,t.height-Zi(t.borderStyle)),t},Pm=(t,e)=>e===Xi?t:` ${t} `,Jx=(t,e)=>{e=Kx(e);let r=e.width!==void 0,i=Nm(),n=Zi(e.borderStyle),s=i-e.margin.left-e.margin.right-n,o=Es(ws(t,i-n,{hard:!0,trim:!1}))+e.padding.left+e.padding.right;if(e.title&&r?(e.title=e.title.slice(0,Math.max(0,e.width-2)),e.title&&=Pm(e.title,e.borderStyle)):e.title&&(e.title=e.title.slice(0,Math.max(0,s-2)),e.title&&(e.title=Pm(e.title,e.borderStyle),$e(e.title)>o&&(e.width=$e(e.title)))),e.width||=o,!r){if(e.margin.left&&e.margin.right&&e.width>s){let a=(i-e.width-n)/(e.margin.left+e.margin.right);e.margin.left=Math.max(0,Math.floor(e.margin.left*a)),e.margin.right=Math.max(0,Math.floor(e.margin.right*a))}e.width=Math.min(e.width,i-n-e.margin.left-e.margin.right)}return e.width-(e.padding.left+e.padding.right)<=0&&(e.padding.left=0,e.padding.right=0),e.height&&e.height-(e.padding.top+e.padding.bottom)<=0&&(e.padding.top=0,e.padding.bottom=0),e},pa=t=>t.match(/^#(?:[0-f]{3}){1,2}$/i),km=t=>typeof t=="string"&&(x[t]??pa(t)),Xx=t=>pa(t)?x.hex(t):x[t],Zx=t=>pa(t)?x.bgHex(t):x[ua(["bg",t])];function xs(t,e){if(e={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...e},e.align&&(e.textAlignment=e.align),e.borderColor&&!km(e.borderColor))throw new Error(`${e.borderColor} is not a valid borderColor`);if(e.backgroundColor&&!km(e.backgroundColor))throw new Error(`${e.backgroundColor} is not a valid backgroundColor`);return e.padding=$m(e.padding),e.margin=$m(e.margin),e=Jx(t,e),t=zx(t,e),Yx(t,e.width,e)}import{env as Qi}from"node:process";var e_=Qi.CI!=="0"&&Qi.CI!=="false"&&("CI"in Qi||"CONTINUOUS_INTEGRATION"in Qi||Object.keys(Qi).some(t=>t.startsWith("CI_"))),Mm=e_;var jm=t=>t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;");function qm(t,...e){if(typeof t=="string")return jm(t);let r=t[0];for(let[i,n]of e.entries())r=r+jm(String(n))+t[i+1];return r}var Da=class extends Error{constructor(e){super(`Missing a value for ${e?`the placeholder: ${e}`:"a placeholder"}`,e),this.name="MissingValueError",this.key=e}},ma=class extends Error{constructor(e){super(`Missing filter: ${e}`),this.name="MissingFilterError",this.filterName=e}};function ga(t,e,{ignoreMissing:r=!1,transform:i=({value:s})=>s,filters:n={}}={}){if(typeof t!="string")throw new TypeError(`Expected a \`string\` in the first argument, got \`${typeof t}\``);if(typeof e!="object")throw new TypeError(`Expected an \`object\` or \`Array\` in the second argument, got \`${typeof e}\``);let s="\uE000\uE001\uE002",o="\uE003\uE004\uE005";t=t.replace(/\\{/g,s),t=t.replace(/\\}/g,o);let u=g=>{let C=[],S="";for(let O=0;O<g.length;O++)g[O]==="\\"&&g[O+1]==="."?(S+=".",O++):g[O]==="."?(C.push(S),S=""):S+=g[O];return C.push(S),C},a=(g,C)=>{let S=C.split("|").map(ae=>ae.trim()),O=S[0],T=S.slice(1),I=u(O),B=e;for(let ae of I)B&&(B=B[ae]);for(let ae of T){let Q=n[ae];if(!Q){if(r)return g;throw new ma(ae)}B!==void 0&&(B=Q(B))}let te=i({value:B,key:O});if(te===void 0){if(r)return g;throw new Da(O)}return String(te)},f="((\\d+|[a-z$_][\\w\\-.$\\\\]*)\\s*(?:\\|\\s*[a-z$_][\\w$]*\\s*)*)",m=new RegExp(`{{${f}}}`,"gi"),d=new RegExp(`{${f}}`,"gi");return t=t.replace(m,(...g)=>qm(a(...g))),t=t.replace(d,a),t=t.replace(new RegExp(s,"g"),"{"),t=t.replace(new RegExp(o,"g"),"}"),t}var i_=Um.dirname(r_(import.meta.url)),n_=1e3*60*60*24,en=class{config;update;_packageName;_shouldNotifyInNpmScript;#u;#i;#t;#r;constructor(e={}){if(this.#u=e,e.pkg??={},e.distTag??="latest",e.pkg={name:e.pkg.name??e.packageName,version:e.pkg.version??e.packageVersion},!e.pkg.name||!e.pkg.version)throw new Error("pkg.name and pkg.version required");if(this._packageName=e.pkg.name,this.#i=e.pkg.version,this.#t=typeof e.updateCheckInterval=="number"?e.updateCheckInterval:n_,this.#r="NO_UPDATE_NOTIFIER"in Or.env||Or.env.NODE_ENV==="test"||Or.argv.includes("--no-update-notifier")||Mm,this._shouldNotifyInNpmScript=e.shouldNotifyInNpmScript,!this.#r)try{this.config=new Ti(`update-notifier-${this._packageName}`,{optOut:!1,lastUpdateCheck:Date.now()})}catch{let r=x.yellow(ya(" %s update check failed ",e.pkg.name))+ya(`
179
+ Try running with %s or get access `,x.cyan("sudo"))+`
180
+ to the local update config store via
181
+ `+x.cyan(ya(" sudo chown -R $USER:$(id -gn $USER) %s ",Wr));Or.on("exit",()=>{console.error(xs(r,{textAlignment:"center"}))})}}check(){!this.config||this.config.get("optOut")||this.#r||(this.update=this.config.get("update"),this.update&&(this.update.current=this.#i,this.config.delete("update")),!(Date.now()-this.config.get("lastUpdateCheck")<this.#t)&&t_(Or.execPath,[Um.join(i_,"check.js"),JSON.stringify(this.#u)],{detached:!0,stdio:"ignore"}).unref())}async fetchInfo(){let{distTag:e}=this.#u,r=await Xu(this._packageName,{version:e});return{latest:r,current:this.#i,type:(0,Hm.default)(this.#i,r)??e,name:this._packageName}}notify(e){let r=!this._shouldNotifyInNpmScript&&qD;if(!Or.stdout.isTTY||r||!this.update||!(0,Gm.default)(this.update.latest,this.update.current))return this;e={isGlobal:ZD,...e};let i=e.isGlobal?`npm i -g ${this._packageName}`:`npm i ${this._packageName}`,n="Update available "+x.dim("{currentVersion}")+x.reset(" \u2192 ")+x.green("{latestVersion}")+`
182
+ Run `+x.cyan("{updateCommand}")+" to update",s=e.message||n;e.boxenOptions??={padding:1,margin:1,textAlignment:"center",borderColor:"yellow",borderStyle:"round"};let o=xs(ga(s,{packageName:this._packageName,currentVersion:this.update.current,latestVersion:this.update.latest,updateCommand:i}),e.boxenOptions);return e.defer===!1?console.error(o):Or.on("exit",()=>{console.error(o)}),this}};function Fa(t){let e=new en(t);return e.check(),e}Pt();import{readFileSync as vO}from"fs";import{fileURLToPath as xO}from"url";import{dirname as _O,join as SO}from"path";var ee;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.VALIDATION_ERROR=1]="VALIDATION_ERROR",t[t.NETWORK_ERROR=2]="NETWORK_ERROR",t[t.AUTH_ERROR=3]="AUTH_ERROR",t[t.POLICY_BLOCKED=4]="POLICY_BLOCKED",t[t.EXECUTION_ERROR=5]="EXECUTION_ERROR",t[t.UNKNOWN_ERROR=6]="UNKNOWN_ERROR"})(ee||(ee={}));function Wm(t){let e=typeof t=="string"?t:t instanceof Error?t.message:t.message||String(t),r=typeof t=="object"&&"code"in t?t.code:void 0;if(r)switch(r){case"VALIDATION_ERROR":case"INVALID_INPUT":case"MISSING_ARGUMENT":return ee.VALIDATION_ERROR;case"AUTH_ERROR":case"UNAUTHORIZED":case"TOKEN_EXPIRED":return ee.AUTH_ERROR;case"NETWORK_ERROR":case"CONNECTION_FAILED":case"TIMEOUT":return ee.NETWORK_ERROR;case"POLICY_BLOCKED":case"QUOTA_EXCEEDED":case"PERMISSION_DENIED":return ee.POLICY_BLOCKED;case"EXECUTION_ERROR":return ee.EXECUTION_ERROR}return e.includes("validation")||e.includes("invalid")||e.includes("required")?ee.VALIDATION_ERROR:e.includes("auth")||e.includes("token")||e.includes("unauthorized")?ee.AUTH_ERROR:e.includes("network")||e.includes("connection")||e.includes("timeout")?ee.NETWORK_ERROR:e.includes("policy")||e.includes("quota")||e.includes("permission")?ee.POLICY_BLOCKED:ee.EXECUTION_ERROR}var _5={[ee.SUCCESS]:"Success",[ee.VALIDATION_ERROR]:"Validation error - check your input",[ee.NETWORK_ERROR]:"Network error - check your connection",[ee.AUTH_ERROR]:"Authentication error - please login",[ee.POLICY_BLOCKED]:"Policy blocked - insufficient permissions or quota",[ee.EXECUTION_ERROR]:"Execution error - task failed during execution",[ee.UNKNOWN_ERROR]:"Unknown error - please report this issue"};var Ea=class{providers=new Map;config;policy;listeners=[];version="2.0.0";constructor(e,r){this.config=e,this.policy=r}registerProvider(e){this.providers.set(e.name,e)}getProvider(e){return this.providers.get(e)}async execute(e){let r=Date.now();this.emit({type:"task:start",request:e});try{let i=this.policy.validate(e);if(!i.valid){let l=i.exitCode||ee.VALIDATION_ERROR;throw Object.assign(new Error(i.reason||"Task validation failed"),{code:l===ee.POLICY_BLOCKED?"POLICY_BLOCKED":"VALIDATION_ERROR",exitCode:l})}let n=this.policy.transform?.(e)||e,s=this.policy.selectProvider(n,this.providers);if(!s)throw Object.assign(new Error(`No provider available for task type '${n.type}'`),{code:"NO_PROVIDER",exitCode:ee.POLICY_BLOCKED});if(!await s.isAvailable())throw Object.assign(new Error(`Provider '${s.name}' is not available`),{code:"PROVIDER_UNAVAILABLE",exitCode:ee.NETWORK_ERROR});this.emit({type:"task:progress",request:n,progress:.5});let u=await s.execute(n),a={...u,meta:{...u.meta,command:e.command,duration:Date.now()-r,timestamp:new Date().toISOString(),version:this.version,coldStart:Date.now()-r-u.meta.duration,provider:s.name}};return this.emit({type:"task:complete",request:n,response:a}),a}catch(i){return this.emit({type:"task:error",request:e,error:i instanceof Error?i:new Error(String(i))}),{success:!1,exitCode:Wm(i),meta:{command:e.command,duration:Date.now()-r,timestamp:new Date().toISOString(),version:this.version,provider:"engine"},error:{code:i instanceof Error&&"code"in i?i.code:"EXECUTION_ERROR",message:i instanceof Error?i.message:String(i)}}}}on(e,r){this.listeners.push(r)}emit(e){this.listeners.forEach(r=>r(e))}getStatus(){return{version:this.version,providers:Array.from(this.providers.keys()),defaultProvider:this.config.defaultProvider}}},Vm=null;function zm(t,e){return Vm=new Ea(t,e),Vm}var _s=class{config;constructor(e){this.config=e}validate(e){if(e.options.provider){if(!["local","remote","ai"].includes(e.options.provider))return{valid:!1,reason:`Invalid provider '${e.options.provider}'. Allowed: local, remote, ai`,exitCode:ee.VALIDATION_ERROR};if(e.options.provider==="ai"&&!this.config.providers.ai?.enabled)return{valid:!1,reason:"AI provider is not enabled. Use --provider=local or --provider=remote",exitCode:ee.POLICY_BLOCKED}}return["analyze","init","status","sync","deploy","config","auth","plugin"].includes(e.type)?{valid:!0}:{valid:!1,reason:`Invalid task type '${e.type}'`,exitCode:ee.VALIDATION_ERROR}}selectProvider(e,r){if(e.options.provider){let s=r.get(e.options.provider);return s&&s.capabilities.commands.includes(e.type)?s:null}let i=this.getPreferredProvider(e.type),n=r.get(i);if(n&&n.capabilities.commands.includes(e.type))return n;for(let[,s]of r)if(s.capabilities.commands.includes(e.type))return s;return null}getPreferredProvider(e){switch(e){case"analyze":return this.config.providers.remote?.enabled?"remote":"local";case"sync":case"deploy":return this.config.providers.remote?.enabled?"remote":"local";default:return"local"}}transform(e){return!process.stdout.isTTY&&!e.options.json?{...e,options:{...e.options,nonInteractive:!0,json:!0}}:e}checkCapabilities(e){return{allowed:!0}}};lr();It();import*as Je from"fs/promises";import*as tt from"path";var io=class{name="local";version="2.0.0";capabilities={commands:["analyze","init","status","config","auth"],features:{json:!0,streaming:!1,caching:!0,ai:!1},constraints:{maxFileSize:10*1024*1024,maxFiles:1e3,requiresAuth:!1}};config;constructor(e){this.config=e}async isAvailable(){return!0}async execute(e){let r=Date.now();try{switch(e.type){case"analyze":return await this.executeAnalyze(e);case"init":return await this.executeInit(e);case"status":return await this.executeStatus(e);case"config":return await this.executeConfig(e);case"auth":return await this.executeAuth(e);default:throw new Error(`Task type '${e.type}' not supported by local provider`)}}catch(i){return{success:!1,exitCode:ee.EXECUTION_ERROR,meta:{command:e.command,duration:Date.now()-r,timestamp:new Date().toISOString(),version:this.version,provider:this.name},error:{code:"LOCAL_EXECUTION_ERROR",message:i instanceof Error?i.message:String(i)}}}}async executeAnalyze(e){let{targetPath:r,options:i}=e.payload,n=await this.discoverFiles(r,{include:["**/*.{ts,tsx,js,jsx}"],exclude:this.config.excludePatterns,maxSize:i.maxSize}),s=[],o=0,u=0,a=0;for(let m of n){let d=await Je.readFile(m,"utf-8"),g=d.split(`
183
+ `);o+=g.length,d.includes("function ")&&u++,d.includes("class ")&&a++,d.includes("eval(")&&s.push({file:tt.relative(r,m),type:"security",severity:"high",message:"Use of eval() detected"}),d.includes("console.log")&&s.push({file:tt.relative(r,m),type:"maintainability",severity:"low",message:"Console.log statement found"})}let l={schema_version:"1.0",engine_version:this.version,created_at:new Date().toISOString(),project:{name:i.projectName||tt.basename(r),path:r},summary:{total:s.length,high:s.filter(m=>m.severity==="high").length,medium:s.filter(m=>m.severity==="medium").length,low:s.filter(m=>m.severity==="low").length},metrics:{totalFiles:n.length,totalLines:o,totalFunctions:u,totalClasses:a},findings:s},c=tt.resolve(i.output);await Je.mkdir(c,{recursive:!0});let f=tt.join(c,`report-${Date.now()}.json`);return await Je.writeFile(f,JSON.stringify(l,null,2)),{success:!0,exitCode:ee.SUCCESS,meta:{command:e.command,duration:0,timestamp:new Date().toISOString(),version:this.version,provider:this.name},data:{report:l,reportFile:f,filesAnalyzed:n.length,findings:s.length}}}async executeInit(e){let{projectPath:r,template:i}=e.payload;await Je.mkdir(r,{recursive:!0});let n={name:tt.basename(r),version:"1.0.0",template:i,type:"default",created_at:new Date().toISOString()},s=tt.join(r,"delta.config.json");return await Je.writeFile(s,JSON.stringify(n,null,2)),{success:!0,exitCode:ee.SUCCESS,meta:{command:e.command,duration:0,timestamp:new Date().toISOString(),version:this.version,provider:this.name},data:{projectPath:r,configPath:s,template:i}}}async executeStatus(e){let{projectPath:r}=e.payload,i=tt.join(r,"delta.config.json"),n=!1;try{await Je.access(i),n=!0}catch{n=!1}let s=await et(),o=await De.hasTokens();return{success:!0,exitCode:ee.SUCCESS,meta:{command:e.command,duration:0,timestamp:new Date().toISOString(),version:this.version,provider:this.name},data:{project:{path:r,hasConfig:n,configPath:n?i:null},auth:{authenticated:o,apiUrl:s.apiUrl||"default"}}}}async executeConfig(e){return{success:!0,exitCode:ee.SUCCESS,meta:{command:e.command,duration:0,timestamp:new Date().toISOString(),version:this.version,provider:this.name},data:{action:e.payload.action,config:{}}}}async executeAuth(e){let{action:r}=e.payload;return{success:!0,exitCode:ee.SUCCESS,meta:{command:e.command,duration:0,timestamp:new Date().toISOString(),version:this.version,provider:this.name},data:{action:r,authenticated:r==="login"}}}async discoverFiles(e,r){let i=[];async function n(s){let o=await Je.readdir(s,{withFileTypes:!0});for(let u of o){let a=tt.join(s,u.name);if(u.isDirectory()){if(r.exclude.some(l=>u.name.includes(l)))continue;await n(a)}else if(u.isFile()&&r.include.some(c=>{if(c.includes("**")){let f=c.replace("**/*","");return u.name.endsWith(f)}return u.name.includes(c.replace("*",""))}))try{(await Je.stat(a)).size<=r.maxSize&&i.push(a)}catch{}}}return await n(e),i}};It();var no=class{name="remote";version="2.0.0";capabilities={commands:["analyze","status","sync","deploy"],features:{json:!0,streaming:!0,caching:!0,ai:!1},constraints:{maxFileSize:50*1024*1024,maxFiles:1e4,requiresAuth:!0}};config;constructor(e){this.config=e}async isAvailable(){try{let e=new AbortController,r=setTimeout(()=>e.abort(),5e3),i=await fetch(`${this.config.apiUrl}/health`,{method:"GET",signal:e.signal});return clearTimeout(r),i.ok}catch{return!1}}async execute(e){let r=Date.now();try{let i=await De.getAccessToken();if(!i)throw new Error("Authentication required for remote execution");let n=await fetch(`${this.config.apiUrl}/api/cli/execute`,{method:"POST",headers:{Authorization:`Bearer ${i}`,"Content-Type":"application/json"},body:JSON.stringify({type:e.type,command:e.command,payload:e.payload})});if(!n.ok){let o=await n.text();throw new Error(`Remote execution failed: ${o}`)}let s=await n.json();return{success:!0,exitCode:ee.SUCCESS,meta:{command:e.command,duration:Date.now()-r,timestamp:new Date().toISOString(),version:this.version,provider:this.name},data:s}}catch(i){return{success:!1,exitCode:ee.NETWORK_ERROR,meta:{command:e.command,duration:Date.now()-r,timestamp:new Date().toISOString(),version:this.version,provider:this.name},error:{code:"REMOTE_EXECUTION_ERROR",message:i instanceof Error?i.message:String(i)}}}}};var so=class{name="ai";version="2.0.0-placeholder";capabilities={commands:["analyze"],features:{json:!0,streaming:!0,caching:!1,ai:!0},constraints:{maxFileSize:100*1024*1024,requiresAuth:!0}};config;constructor(e){this.config=e}async isAvailable(){return this.config.enabled&&!!this.config.apiKey}async execute(e){let r=Date.now();return{success:!1,exitCode:ee.POLICY_BLOCKED,meta:{command:e.command,duration:Date.now()-r,timestamp:new Date().toISOString(),version:this.version,provider:this.name},error:{code:"AI_NOT_IMPLEMENTED",message:"AI features are reserved for future releases. Use --provider=local for now.",details:{note:"AI integration will be available in v2.1.0 without requiring any CLI changes",alternative:"Use --provider=local for local execution or --provider=remote for cloud execution"}}}}async generate(e,r){if(!this.config.enabled)throw new Error("AI provider is not enabled");return`AI generation not implemented. Input received: ${e.substring(0,50)}...`}async analyzeCode(e,r){if(!this.config.enabled)throw new Error("AI provider is not enabled");return{insights:["AI code analysis not yet implemented"],suggestions:["Use --provider=local for current analysis capabilities"],score:0}}};var YE={commands:[{name:"help",alias:["/?","/h"],desc:"Show help"},{name:"analyze",alias:["/a","/analyze"],desc:"Code analysis"},{name:"init",alias:["/i","/init"],desc:"Initialize project"},{name:"status",alias:["/st","/status"],desc:"Check status"},{name:"login",alias:["/login"],desc:"Authenticate"},{name:"logout",alias:["/logout"],desc:"Sign out"},{name:"whoami",alias:["/me","/whoami"],desc:"User info"},{name:"config",alias:["/config"],desc:"Configuration"},{name:"dashboard",alias:["/ui","/dashboard"],desc:"Interactive UI"},{name:"sync",alias:["/sync"],desc:"Cloud sync"},{name:"deploy",alias:["/deploy"],desc:"Deploy project"},{name:"plugins",alias:["/plugins"],desc:"Manage plugins"}],globalFlags:[{name:"--json",desc:"Output as JSON"},{name:"--provider",values:["local","remote","ai"],desc:"Execution provider"},{name:"--theme",values:["delta","cyber","sunset","neon","ocean","fire"],desc:"Color theme"},{name:"--verbose",desc:"Verbose logging"},{name:"--no-color",desc:"Disable colors"},{name:"--interactive",alias:"-i",desc:"Interactive mode"},{name:"--version",alias:"-v",desc:"Show version"},{name:"--help",alias:"-h",desc:"Show help"}],commandFlags:{analyze:[{name:"--format",values:["json","html","markdown","sarif"],desc:"Output format"},{name:"--output",values:["./delta-reports"],desc:"Output directory"},{name:"--include",desc:"Include patterns"},{name:"--exclude",desc:"Exclude patterns"},{name:"--max-size",desc:"Max file size"},{name:"--upload",desc:"Upload to cloud"},{name:"--share",desc:"Generate shareable link"},{name:"--project-name",desc:"Project name"},{name:"--ai-insights",desc:"AI insights"},{name:"--security-scan",desc:"Security scan"},{name:"--performance",desc:"Performance analysis"}],init:[{name:"--template",values:["default","nextjs","react","node","python"],desc:"Project template"},{name:"--force",alias:"-f",desc:"Overwrite existing"},{name:"--git",desc:"Initialize git"}],status:[{name:"--diagnostics",desc:"Full diagnostics"},{name:"--fix",desc:"Auto-fix issues"}],login:[{name:"--method",values:["oauth","pat","github","google"],desc:"Auth method"},{name:"--token",desc:"PAT token"}],config:[{name:"--get",desc:"Get config value"},{name:"--set",desc:"Set config value"},{name:"--list",alias:"-l",desc:"List all config"},{name:"--reset",desc:"Reset to default"}]}};function nc(t){let e="delta";switch(t){case"bash":return cO(e);case"zsh":return hO(e);case"fish":return fO(e);case"powershell":return dO(e);default:throw new Error(`Unsupported shell: ${t}`)}}function cO(t){let e=YE.commands.map(i=>i.name).join(" "),r=YE.commands.flatMap(i=>i.alias).filter(i=>i.startsWith("/")).join(" ");return`#!/bin/bash
184
+ # Delta CLI Bash Completion
185
+ # Source this file: source <(delta completion bash)
186
+
187
+ _${t}_completions() {
188
+ local cur prev opts
189
+ COMPREPLY=()
190
+ cur="\${COMP_WORDS[COMP_CWORD]}"
191
+ prev="\${COMP_WORDS[COMP_CWORD-1]}"
192
+
193
+ # Commands list
194
+ local commands="${e} ${r}"
195
+ local global_flags="--json --provider --theme --verbose --no-color --interactive --version --help -i -v -h"
196
+
197
+ # Complete commands
198
+ if [[ \${COMP_CWORD} -eq 1 ]]; then
199
+ COMPREPLY=( $(compgen -W "\${commands} \${global_flags}" -- \${cur}) )
200
+ return 0
201
+ fi
202
+
203
+ # Complete flags based on command
204
+ case "\${COMP_WORDS[1]}" in
205
+ analyze|/a|/analyze)
206
+ opts="--format --output --include --exclude --max-size --upload --share --project-name --ai-insights --security-scan --performance --json --provider"
207
+ ;;
208
+ init|/i|/init)
209
+ opts="--template --force --git --json --provider -f"
210
+ ;;
211
+ status|/st|/status)
212
+ opts="--diagnostics --fix --json"
213
+ ;;
214
+ login|/login)
215
+ opts="--method --token --json"
216
+ ;;
217
+ config|/config)
218
+ opts="--get --set --list --reset -l --json"
219
+ ;;
220
+ *)
221
+ opts="\${global_flags}"
222
+ ;;
223
+ esac
224
+
225
+ # Complete flag values
226
+ case "\${prev}" in
227
+ --provider)
228
+ COMPREPLY=( $(compgen -W "local remote ai" -- \${cur}) )
229
+ return 0
230
+ ;;
231
+ --theme)
232
+ COMPREPLY=( $(compgen -W "delta cyber sunset neon ocean fire" -- \${cur}) )
233
+ return 0
234
+ ;;
235
+ --format)
236
+ COMPREPLY=( $(compgen -W "json html markdown sarif" -- \${cur}) )
237
+ return 0
238
+ ;;
239
+ --template)
240
+ COMPREPLY=( $(compgen -W "default nextjs react node python" -- \${cur}) )
241
+ return 0
242
+ ;;
243
+ --method)
244
+ COMPREPLY=( $(compgen -W "oauth pat github google" -- \${cur}) )
245
+ return 0
246
+ ;;
247
+ esac
248
+
249
+ COMPREPLY=( $(compgen -W "\${opts}" -- \${cur}) )
250
+ return 0
251
+ }
252
+
253
+ complete -F _${t}_completions ${t}
254
+ `}function hO(t){return`#compdef ${t}
255
+ # Delta CLI Zsh Completion
256
+
257
+ _${t}() {
258
+ local curcontext="$curcontext" state line
259
+ typeset -A opt_args
260
+
261
+ _arguments -C \\
262
+ '(-h --help)'{-h,--help}'[Show help]' \\
263
+ '(-v --version)'{-v,--version}'[Show version]' \\
264
+ '(-i --interactive)'{-i,--interactive}'[Interactive mode]' \\
265
+ '--json[Output as JSON]' \\
266
+ '--provider[Execution provider]:provider:(local remote ai)' \\
267
+ '--theme[Color theme]:theme:(delta cyber sunset neon ocean fire)' \\
268
+ '--verbose[Verbose logging]' \\
269
+ '--no-color[Disable colors]' \\
270
+ '1: :->command' \\
271
+ '*:: :->args'
272
+
273
+ case "$state" in
274
+ command)
275
+ _values 'commands' \\
276
+ 'help[Show help]' \\
277
+ 'analyze[Code analysis]' \\
278
+ 'init[Initialize project]' \\
279
+ 'status[Check status]' \\
280
+ 'login[Authenticate]' \\
281
+ 'logout[Sign out]' \\
282
+ 'whoami[User info]' \\
283
+ 'config[Configuration]' \\
284
+ 'dashboard[Interactive UI]' \\
285
+ 'sync[Cloud sync]' \\
286
+ 'deploy[Deploy project]' \\
287
+ 'plugins[Manage plugins]'
288
+ ;;
289
+ args)
290
+ case "$line[1]" in
291
+ analyze)
292
+ _arguments \\
293
+ '--format[Output format]:format:(json html markdown sarif)' \\
294
+ '--output[Output directory]' \\
295
+ '--include[Include patterns]' \\
296
+ '--exclude[Exclude patterns]' \\
297
+ '--upload[Upload to cloud]' \\
298
+ '--share[Generate shareable link]' \\
299
+ '--project-name[Project name]'
300
+ ;;
301
+ init)
302
+ _arguments \\
303
+ '--template[Project template]:template:(default nextjs react node python)' \\
304
+ '(-f --force)'{-f,--force}'[Overwrite existing]' \\
305
+ '--git[Initialize git]'
306
+ ;;
307
+ status)
308
+ _arguments \\
309
+ '--diagnostics[Full diagnostics]' \\
310
+ '--fix[Auto-fix issues]'
311
+ ;;
312
+ esac
313
+ ;;
314
+ esac
315
+ }
316
+
317
+ _${t} "$@"
318
+ `}function fO(t){return`# Delta CLI Fish Completion
319
+
320
+ # Commands
321
+ complete -c ${t} -f
322
+ complete -c ${t} -n '__fish_use_subcommand' -a 'help' -d 'Show help'
323
+ complete -c ${t} -n '__fish_use_subcommand' -a 'analyze' -d 'Code analysis'
324
+ complete -c ${t} -n '__fish_use_subcommand' -a 'init' -d 'Initialize project'
325
+ complete -c ${t} -n '__fish_use_subcommand' -a 'status' -d 'Check status'
326
+ complete -c ${t} -n '__fish_use_subcommand' -a 'login' -d 'Authenticate'
327
+ complete -c ${t} -n '__fish_use_subcommand' -a 'logout' -d 'Sign out'
328
+
329
+ # Global flags
330
+ complete -c ${t} -l json -d 'Output as JSON'
331
+ complete -c ${t} -l provider -d 'Execution provider' -xa 'local remote ai'
332
+ complete -c ${t} -l theme -d 'Color theme' -xa 'delta cyber sunset neon ocean fire'
333
+ complete -c ${t} -l verbose -d 'Verbose logging'
334
+ complete -c ${t} -l no-color -d 'Disable colors'
335
+ complete -c ${t} -s i -l interactive -d 'Interactive mode'
336
+ complete -c ${t} -s v -l version -d 'Show version'
337
+ complete -c ${t} -s h -l help -d 'Show help'
338
+ `}function dO(t){return`# Delta CLI PowerShell Completion
339
+ # Add to $PROFILE: . delta completion powershell | Out-String | Invoke-Expression
340
+
341
+ Register-ArgumentCompleter -Native -CommandName ${t} -ScriptBlock {
342
+ param($wordToComplete, $commandAst, $cursorPosition)
343
+
344
+ $commands = @('help', 'analyze', 'init', 'status', 'login', 'logout', 'whoami', 'config', 'dashboard', 'sync', 'deploy', 'plugins')
345
+ $slashCommands = @('/help', '/h', '/analyze', '/a', '/init', '/i', '/status', '/st', '/login', '/logout', '/me', '/whoami', '/config', '/ui', '/sync', '/deploy', '/plugins')
346
+
347
+ $command = $commandAst.CommandElements[1].Value
348
+
349
+ if ($commandAst.CommandElements.Count -eq 1 -or
350
+ ($commandAst.CommandElements.Count -eq 2 -and $wordToComplete -ne '')) {
351
+ $commands + $slashCommands | Where-Object { $_ -like "$wordToComplete*" } | ForEach-Object {
352
+ [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
353
+ }
354
+ return
355
+ }
356
+
357
+ switch ($command) {
358
+ { $_ -in 'analyze', '/a', '/analyze' } {
359
+ $flags = @('--format', '--output', '--include', '--exclude', '--upload', '--share', '--json', '--provider')
360
+ $flags | Where-Object { $_ -like "$wordToComplete*" } | ForEach-Object {
361
+ [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterName', $_)
362
+ }
363
+ }
364
+ { $_ -in 'init', '/i', '/init' } {
365
+ $flags = @('--template', '--force', '--git', '--json')
366
+ $flags | Where-Object { $_ -like "$wordToComplete*" } | ForEach-Object {
367
+ [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterName', $_)
368
+ }
369
+ }
370
+ }
371
+ }
372
+ `}async function KE(t){let e=t||process.env.SHELL?.split("/").pop()||"bash";console.log(`Installing completion for ${e}...
373
+ `);let r=nc(e);console.log(`Add this to your shell config:
374
+ `),console.log(r),console.log(`
375
+ Or run: eval "$(delta completion `+e+')"')}var JE=Se(tc(),1);Pt();var pO=[{name:"projectName",message:"What is your project name?",type:"text",initial:"my-delta-project",validate:t=>t.length>0||"Project name is required"},{name:"template",message:"Choose a project template:",type:"select",choices:[{title:"Default",value:"default",description:"Basic Delta project structure"},{title:"Next.js",value:"nextjs",description:"Next.js app with Delta integration"},{title:"React",value:"react",description:"React SPA with Delta support"},{title:"Node.js",value:"node",description:"Node.js backend service"},{title:"Python",value:"python",description:"Python project with Delta CLI"}]},{name:"features",message:"Select features to enable:",type:"multiselect",choices:[{title:"Code Analysis",value:"analysis",description:"Auto-analyze on commits"},{title:"Documentation",value:"docs",description:"Auto-generate docs"},{title:"CI/CD Config",value:"cicd",description:"GitHub Actions workflow"},{title:"Docker",value:"docker",description:"Docker configuration"},{title:"TypeScript",value:"typescript",description:"TypeScript setup"}]},{name:"initializeGit",message:"Initialize Git repository?",type:"confirm",initial:!0},{name:"installDependencies",message:"Install dependencies now?",type:"confirm",initial:!0}];async function XE(){console.log(x.bold.cyan(`
376
+ \u{1F680} Delta Project Wizard
377
+ `)),console.log(x.gray(`Answer a few questions to set up your project.
378
+ `));let t={};for(let r of pO){let i=await(0,JE.default)({type:r.type,name:r.name,message:r.message,choices:r.choices,initial:r.initial,validate:r.validate},{onCancel:()=>{console.log(x.yellow(`
379
+ \u26A0\uFE0F Wizard cancelled`)),process.exit(0)}});t[r.name]=i[r.name]}let e=`./${t.projectName}`;return{projectName:t.projectName,projectPath:e,template:t.template,initializeGit:t.initializeGit,installDependencies:t.installDependencies,features:t.features||[]}}async function ZE(t){console.log(x.bold.cyan(`
380
+ \u{1F4E6} Creating Project...
381
+ `));let e=[{name:"Creating directory",action:()=>`mkdir -p ${t.projectPath}`},{name:"Writing config",action:()=>"config"},{name:"Setting up template",action:()=>t.template}];t.initializeGit&&e.push({name:"Initializing Git",action:()=>"git init"}),t.features.includes("docker")&&e.push({name:"Creating Dockerfile",action:()=>"docker"}),t.features.includes("cicd")&&e.push({name:"Creating CI/CD workflow",action:()=>"cicd"});for(let r=0;r<e.length;r++){let i=e[r];process.stdout.write(x.gray(` [${r+1}/${e.length}] ${i.name}... `)),await new Promise(n=>setTimeout(n,300)),console.log(x.green("\u2713"))}console.log(x.bold.green(`
382
+ \u2705 Project created successfully!
383
+ `)),console.log(x.cyan("Next steps:")),console.log(x.gray(` cd ${t.projectPath}`)),console.log(x.gray(" delta /analyze # Analyze your code")),console.log(x.gray(" delta /status # Check project status")),console.log()}lr();It();var AO=xO(import.meta.url),OO=_O(AO),lc=JSON.parse(vO(SO(OO,"../package.json"),"utf8")),oc=Fa({pkg:lc,updateCheckInterval:1e3*60*60}),l2={delta:(0,Nr.default)(["#00d4ff","#7b2cbf","#ff006e"]),cyber:(0,Nr.default)(["#00f5ff","#0080ff","#8000ff"]),sunset:(0,Nr.default)(["#ff4e50","#fca311","#e85d04"]),neon:(0,Nr.default)(["#39ff14","#00ffff","#ff00ff"]),ocean:(0,Nr.default)(["#0066ff","#00ccff","#66ffff"]),fire:(0,Nr.default)(["#ff4e00","#ff9500","#ffcc00"])};function RO(t="delta"){let e=we.textSync("DELTA",{font:"Big Money-nw",horizontalLayout:"default",verticalLayout:"default"});console.log(`
384
+ `+l2[t](e)+`
385
+ `)}function Y4(){let t=we.textSync("\u0394",{font:"ANSI Shadow",horizontalLayout:"default"});console.log(l2.delta(t))}function cc(){console.clear(),RO(),console.log(x.dim(" \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550")),console.log(),console.log(x.white.bold(" \u{1F680} Delta CLI v2.0")+x.gray(" \u2014 Next-gen code analysis & documentation")),console.log(),console.log(x.gray(" Local-first architecture with ")+x.cyan("cloud power")+x.gray(" & ")+x.magenta("AI intelligence")),console.log(),console.log(x.dim(" \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550")),console.log(),oc.update&&(console.log(x.yellow.bold(" \u26A1 Update Available!")),console.log(x.gray(` ${oc.update.current} \u2192 ${oc.update.latest}`)),console.log(x.cyan(` Run: npm install -g ${lc.name}`)),console.log())}function TO(){let t=[{cmd:"delta /help",desc:"Quick help with slash commands"},{cmd:"delta /analyze",desc:"Run analysis with / command"},{cmd:"delta /status",desc:"Check project status"},{cmd:"delta --interactive",desc:"Open interactive dashboard"}];console.log(x.bold.cyan(" Quick Start (Slash Commands Available):")),console.log(),t.forEach(({cmd:e,desc:r})=>{console.log(x.gray(" \u2022 ")+x.cyan(e)+x.gray(` \u2014 ${r}`))}),console.log(),console.log(x.dim(" Try ")+x.cyan("/help")+x.dim(", ")+x.cyan("/analyze")+x.dim(", ")+x.cyan("/status")+x.dim(" for quick access")),console.log(x.dim(" Press ")+x.bold("Ctrl+T")+x.dim(" for variants \u2022 ")+x.bold("Tab")+x.dim(" for agents \u2022 ")+x.bold("Ctrl+P")+x.dim(" for commands")),console.log()}var Lr=null;async function uc(){if(Lr)return Lr;let t=await et(),e=await De.hasTokens(),r={defaultProvider:"local",providers:{local:{enabled:!0,maxFileSize:10*1024*1024,excludePatterns:["node_modules","dist",".git","coverage"]},remote:{enabled:e,apiUrl:t.apiUrl||"http://localhost:3000",timeout:3e4,retryAttempts:3},ai:{enabled:!1,provider:"openai"}},features:{cache:!0,offlineMode:!e,autoUpdate:!0}},i=new _s(r);return Lr=zm(r,i),Lr.registerProvider(new io(r.providers.local)),r.providers.remote.enabled&&Lr.registerProvider(new no(r.providers.remote)),Lr.registerProvider(new so(r.providers.ai)),Lr}function ac(t){console.log(JSON.stringify(t,null,2))}function yi(){return!process.stdout.isTTY||process.env.CI==="true"||process.env.NO_COLOR==="true"}var lt=new vc;lt.name("delta").description("Delta Platform - Next-gen code analysis and documentation").version(lc.version,"-v, --version","Display version number").usage("<command> [options]").helpOption("-h, --help","Display help for command").addHelpCommand("help [command]","Display help for command");lt.option("--no-color","Disable colored output",!1).option("--verbose","Enable verbose logging",!1);lt.command("login").description("\u{1F510} Authenticate with Delta cloud (OAuth2 + secure keychain storage)").option("--method <type>","Auth method: oauth, pat, github, google","oauth").option("--token <token>","Personal Access Token (for CI/CD)").action(async t=>{cc();let{loginCommand:e}=await Promise.resolve().then(()=>(lr(),zE));await e(t)});lt.command("logout").description("\u{1F513} Remove stored authentication and clear credentials").action(async()=>{let{logoutCommand:t}=await Promise.resolve().then(()=>(t2(),e2));await t()});lt.command("whoami").alias("me").description("\u{1F464} Show current user, plan, quota, and session info").option("--format <type>","Output format: table, json, compact","table").action(async t=>{let{whoamiCommand:e}=await Promise.resolve().then(()=>(i2(),r2));await e(t)});lt.command("analyze [path]").alias("a").description("\u{1F50D} Run code analysis and optionally upload to cloud").option("-f, --format <type>","Output format: json, html, markdown","json").option("-o, --output <dir>","Output directory","./delta-reports").option("-i, --include <patterns...>","Include file patterns").option("-e, --exclude <patterns...>","Exclude file patterns").option("--max-size <bytes>","Max file size","10485760").option("--upload","Upload report to Delta cloud",!1).option("--project-name <name>","Project name for the report").option("--json","Output results as JSON",!1).action(async(t,e)=>{let{analyzeCommand:r}=await Promise.resolve().then(()=>(o2(),s2));await r(t||".",{format:e.format,output:e.output,include:e.include?.join(","),exclude:e.exclude?.join(","),maxSize:e.maxSize,upload:e.upload,projectName:e.projectName})});lt.command("init [path]").description("\u{1F680} Initialize a new Delta project with wizard").option("-t, --template <name>","Project template: default, nextjs, react, node, python","default").option("-f, --force","Overwrite existing config",!1).option("--git","Initialize git repository",!1).option("--json","Output results as JSON",!1).option("--provider <name>","Execution provider: local, remote","local").option("-w, --wizard","Run interactive wizard",!1).action(async(t,e)=>{if(e.wizard||!t){let s=await XE();await ZE(s);let u=await(await uc()).execute({type:"init",command:"init",payload:{projectPath:s.projectPath,template:s.template,force:e.force,git:s.initializeGit},options:{json:e.json||yi(),provider:e.provider}});(e.json||yi())&&ac(u);return}let r=await uc(),i=t||".",n=await r.execute({type:"init",command:"init",payload:{projectPath:i,template:e.template,force:e.force,git:e.git},options:{json:e.json||yi(),provider:e.provider}});e.json||yi()?ac(n):(cc(),n.success?(console.log(`
386
+ \u{1F4C1} Project initialized`),console.log(` Path: ${n.data?.projectPath}`),console.log(` Config: ${n.data?.configPath}`),console.log(` Template: ${n.data?.template}`)):(console.error(`
387
+ \u274C Init failed:`,n.error?.message),process.exit(1)))});lt.command("config").description("\u2699\uFE0F Manage CLI configuration with schema validation").option("-g, --get <key>","Get config value").option("-s, --set <key=value>","Set config value").option("-l, --list","List all config").option("--reset","Reset to default configuration").action(async t=>{let{configCommand:e}=await Promise.resolve().then(()=>(a2(),u2));await e(t)});lt.command("status [path]").alias("st").description("\u{1F4C8} Check project health, connection status, and diagnostics").option("--diagnostics","Run full diagnostics",!1).option("--fix","Auto-fix issues where possible",!1).option("--json","Output results as JSON",!1).action(async(t,e)=>{let r=await uc(),i=t||".",n=await r.execute({type:"status",command:"status",payload:{projectPath:i,diagnostics:e.diagnostics,fix:e.fix},options:{json:e.json||yi()}});if(e.json||yi())ac(n);else if(n.success){let s=n.data;console.log(`
388
+ \u{1F4CA} Project Status`),console.log(` Path: ${s?.project?.path||"N/A"}`),console.log(` Config: ${s?.project?.hasConfig?"\u2705":"\u274C"}`),console.log(` Auth: ${s?.auth?.authenticated?"\u2705":"\u274C"}`)}else console.error(`
389
+ \u274C Status check failed:`,n.error?.message)});lt.command("completion [shell]").description("\u{1F527} Generate shell completion script").option("--install","Install completion for current shell",!1).action(async(t,e)=>{let r=t||"bash";e.install?await KE(r):console.log(nc(r))});var gi=process.argv.slice(2),IO={"/help":"help","/h":"help","/analyze":"analyze","/a":"analyze","/status":"status","/st":"status","/init":"init","/i":"init","/login":"login","/logout":"logout","/whoami":"whoami","/me":"whoami","/config":"config","/version":"--version","/v":"--version"};if(gi.length>0&&gi[0].startsWith("/")){let t=gi[0].toLowerCase(),e=IO[t];e?(e.startsWith("--"),gi[0]=e):(console.error(x.red(`\u274C Unknown command: ${t}`)),console.log(x.gray("Run /help to see available commands")),process.exit(1))}lt.parse(["node","delta",...gi]);process.argv.length<=2&&(cc(),TO(),lt.help());export{l2 as gradients,RO as printLogo,Y4 as printMinimalLogo,TO as printTips,cc as printWelcome};
390
+ /*! Bundled license information:
391
+
392
+ deep-extend/lib/deep-extend.js:
393
+ (*!
394
+ * @description Recursive object extending
395
+ * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
396
+ * @license MIT
397
+ *
398
+ * The MIT License (MIT)
399
+ *
400
+ * Copyright (c) 2013-2018 Viacheslav Lotsmanov
401
+ *
402
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
403
+ * this software and associated documentation files (the "Software"), to deal in
404
+ * the Software without restriction, including without limitation the rights to
405
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
406
+ * the Software, and to permit persons to whom the Software is furnished to do so,
407
+ * subject to the following conditions:
408
+ *
409
+ * The above copyright notice and this permission notice shall be included in all
410
+ * copies or substantial portions of the Software.
411
+ *
412
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
413
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
414
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
415
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
416
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
417
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
418
+ *)
419
+
420
+ ky/distribution/index.js:
421
+ (*! MIT License © Sindre Sorhus *)
422
+ */