@socketsecurity/lib 3.2.3 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/abort.js +1 -1
- package/dist/agent.js +1 -1
- package/dist/ansi.js +1 -1
- package/dist/argv/flags.js +1 -1
- package/dist/argv/parse.js +1 -1
- package/dist/arrays.js +1 -1
- package/dist/bin.js +1 -1
- package/dist/cacache.js +1 -1
- package/dist/cache-with-ttl.js +1 -1
- package/dist/constants/agents.js +1 -1
- package/dist/constants/core.js +1 -1
- package/dist/constants/encoding.js +1 -1
- package/dist/constants/github.js +1 -1
- package/dist/constants/licenses.js +1 -1
- package/dist/constants/node.js +1 -1
- package/dist/constants/packages.js +1 -1
- package/dist/constants/paths.js +1 -1
- package/dist/constants/platform.js +1 -1
- package/dist/constants/process.js +1 -1
- package/dist/constants/socket.js +1 -1
- package/dist/constants/testing.js +1 -1
- package/dist/constants/time.js +1 -1
- package/dist/constants/typescript.js +1 -1
- package/dist/cover/code.js +1 -1
- package/dist/cover/formatters.js +1 -1
- package/dist/cover/type.js +1 -1
- package/dist/cover/types.js +1 -1
- package/dist/debug.js +1 -1
- package/dist/dlx-binary.js +1 -1
- package/dist/dlx-manifest.js +1 -1
- package/dist/dlx-package.js +1 -1
- package/dist/dlx.js +1 -1
- package/dist/effects/pulse-frames.js +4 -4
- package/dist/effects/text-shimmer.js +1 -1
- package/dist/effects/types.js +1 -1
- package/dist/effects/ultra.js +1 -1
- package/dist/env/ci.js +1 -1
- package/dist/env/debug.js +1 -1
- package/dist/env/github.js +1 -1
- package/dist/env/helpers.js +1 -1
- package/dist/env/home.js +1 -1
- package/dist/env/locale.js +1 -1
- package/dist/env/node-auth-token.js +1 -1
- package/dist/env/node-env.js +1 -1
- package/dist/env/npm.js +1 -1
- package/dist/env/package-manager.js +1 -1
- package/dist/env/path.js +1 -1
- package/dist/env/pre-commit.js +1 -1
- package/dist/env/rewire.js +1 -1
- package/dist/env/shell.js +1 -1
- package/dist/env/socket-cli-shadow.js +1 -1
- package/dist/env/socket-cli.js +1 -1
- package/dist/env/socket.js +1 -1
- package/dist/env/temp-dir.js +1 -1
- package/dist/env/term.js +1 -1
- package/dist/env/test.js +1 -1
- package/dist/env/windows.js +1 -1
- package/dist/env/xdg.js +1 -1
- package/dist/env.js +1 -1
- package/dist/external/@inquirer/confirm.js +16 -15
- package/dist/external/@inquirer/input.js +16 -15
- package/dist/external/@inquirer/password.js +17 -16
- package/dist/external/@inquirer/search.js +18 -17
- package/dist/external/@inquirer/select.js +19 -18
- package/dist/external/@npmcli/package-json/lib/read-package.js +7 -1
- package/dist/external/@npmcli/package-json/lib/sort.js +6 -1
- package/dist/external/@npmcli/package-json.js +18 -0
- package/dist/external/@npmcli/promise-spawn.js +2 -1
- package/dist/external/@socketregistry/is-unicode-supported.js +2 -1
- package/dist/external/@socketregistry/packageurl-js.js +3 -2
- package/dist/external/@socketregistry/yocto-spinner.js +5 -4
- package/dist/external/@yarnpkg/extensions.js +2 -1
- package/dist/external/cacache.js +10 -9
- package/dist/external/debug.js +2 -5
- package/dist/external/del.js +3 -2
- package/dist/external/fast-glob.js +3 -2
- package/dist/external/fast-sort.js +2 -1
- package/dist/external/get-east-asian-width.js +2 -1
- package/dist/external/libnpmexec.js +6 -0
- package/dist/external/libnpmpack.js +64 -63
- package/dist/external/make-fetch-happen.js +16 -15
- package/dist/external/normalize-package-data.js +3 -2
- package/dist/external/npm-package-arg.js +3 -2
- package/dist/external/pacote.js +36 -35
- package/dist/external/picomatch.js +2 -1
- package/dist/external/semver.js +2 -1
- package/dist/external/spdx-correct.js +2 -1
- package/dist/external/spdx-expression-parse.js +2 -1
- package/dist/external/streaming-iterables.js +2 -1
- package/dist/external/validate-npm-package-name.js +2 -1
- package/dist/external/which.js +2 -1
- package/dist/external/yargs-parser.js +2 -1
- package/dist/external/yoctocolors-cjs.js +2 -1
- package/dist/external/zod.js +10 -9
- package/dist/fs.js +1 -1
- package/dist/functions.js +1 -1
- package/dist/git.js +1 -1
- package/dist/github.js +1 -1
- package/dist/globs.js +1 -1
- package/dist/http-request.js +1 -1
- package/dist/ipc.js +1 -1
- package/dist/json.js +1 -1
- package/dist/links/index.js +1 -1
- package/dist/logger.d.ts +29 -4
- package/dist/logger.js +34 -5
- package/dist/maintained-node-versions.js +1 -1
- package/dist/memoization.js +1 -1
- package/dist/objects.js +1 -1
- package/dist/packages/editable.js +1 -1
- package/dist/packages/exports.js +1 -1
- package/dist/packages/isolation.js +1 -1
- package/dist/packages/licenses.js +1 -1
- package/dist/packages/manifest.js +1 -1
- package/dist/packages/normalize.js +1 -1
- package/dist/packages/operations.js +1 -1
- package/dist/packages/paths.js +1 -1
- package/dist/packages/provenance.js +1 -1
- package/dist/packages/specs.js +1 -1
- package/dist/packages/validation.js +1 -1
- package/dist/packages.js +1 -1
- package/dist/path.js +1 -1
- package/dist/paths/rewire.js +1 -1
- package/dist/paths.js +1 -1
- package/dist/performance.js +1 -1
- package/dist/process-lock.js +1 -1
- package/dist/promise-queue.js +1 -1
- package/dist/promises.js +1 -1
- package/dist/regexps.js +1 -1
- package/dist/sea.js +1 -1
- package/dist/shadow.js +1 -1
- package/dist/signal-exit.js +1 -1
- package/dist/sorts.js +1 -1
- package/dist/spawn.js +1 -1
- package/dist/spinner.js +1 -1
- package/dist/ssri.js +1 -1
- package/dist/stdio/clear.js +1 -1
- package/dist/stdio/divider.js +1 -1
- package/dist/stdio/footer.js +1 -1
- package/dist/stdio/header.js +1 -1
- package/dist/stdio/mask.js +1 -1
- package/dist/stdio/progress.js +1 -1
- package/dist/stdio/prompts.js +1 -1
- package/dist/stdio/stderr.js +1 -1
- package/dist/stdio/stdout.js +1 -1
- package/dist/streams.js +1 -1
- package/dist/strings.js +1 -1
- package/dist/suppress-warnings.js +1 -1
- package/dist/tables.js +1 -1
- package/dist/temporary-executor.js +1 -1
- package/dist/themes/context.js +1 -1
- package/dist/themes/index.js +1 -1
- package/dist/themes/themes.js +1 -1
- package/dist/themes/types.js +1 -1
- package/dist/themes/utils.js +1 -1
- package/dist/types.js +1 -1
- package/dist/url.js +1 -1
- package/dist/utils/get-ipc.js +1 -1
- package/dist/validation/json-parser.js +1 -1
- package/dist/validation/types.js +1 -1
- package/dist/versions.js +1 -1
- package/dist/words.js +1 -1
- package/dist/zod.js +1 -1
- package/package.json +1 -1
- package/dist/abort.js.map +0 -7
- package/dist/agent.js.map +0 -7
- package/dist/ansi.js.map +0 -7
- package/dist/argv/flags.js.map +0 -7
- package/dist/argv/parse.js.map +0 -7
- package/dist/arrays.js.map +0 -7
- package/dist/bin.js.map +0 -7
- package/dist/cacache.js.map +0 -7
- package/dist/cache-with-ttl.js.map +0 -7
- package/dist/constants/agents.js.map +0 -7
- package/dist/constants/core.js.map +0 -7
- package/dist/constants/encoding.js.map +0 -7
- package/dist/constants/github.js.map +0 -7
- package/dist/constants/licenses.js.map +0 -7
- package/dist/constants/node.js.map +0 -7
- package/dist/constants/packages.js.map +0 -7
- package/dist/constants/paths.js.map +0 -7
- package/dist/constants/platform.js.map +0 -7
- package/dist/constants/process.js.map +0 -7
- package/dist/constants/socket.js.map +0 -7
- package/dist/constants/testing.js.map +0 -7
- package/dist/constants/time.js.map +0 -7
- package/dist/constants/typescript.js.map +0 -7
- package/dist/cover/code.js.map +0 -7
- package/dist/cover/formatters.js.map +0 -7
- package/dist/cover/type.js.map +0 -7
- package/dist/cover/types.js.map +0 -7
- package/dist/debug.js.map +0 -7
- package/dist/dlx-binary.js.map +0 -7
- package/dist/dlx-manifest.js.map +0 -7
- package/dist/dlx-package.js.map +0 -7
- package/dist/dlx.js.map +0 -7
- package/dist/effects/pulse-frames.js.map +0 -7
- package/dist/effects/text-shimmer.js.map +0 -7
- package/dist/effects/types.js.map +0 -7
- package/dist/effects/ultra.js.map +0 -7
- package/dist/env/ci.js.map +0 -7
- package/dist/env/debug.js.map +0 -7
- package/dist/env/github.js.map +0 -7
- package/dist/env/helpers.js.map +0 -7
- package/dist/env/home.js.map +0 -7
- package/dist/env/locale.js.map +0 -7
- package/dist/env/node-auth-token.js.map +0 -7
- package/dist/env/node-env.js.map +0 -7
- package/dist/env/npm.js.map +0 -7
- package/dist/env/package-manager.js.map +0 -7
- package/dist/env/path.js.map +0 -7
- package/dist/env/pre-commit.js.map +0 -7
- package/dist/env/rewire.js.map +0 -7
- package/dist/env/shell.js.map +0 -7
- package/dist/env/socket-cli-shadow.js.map +0 -7
- package/dist/env/socket-cli.js.map +0 -7
- package/dist/env/socket.js.map +0 -7
- package/dist/env/temp-dir.js.map +0 -7
- package/dist/env/term.js.map +0 -7
- package/dist/env/test.js.map +0 -7
- package/dist/env/windows.js.map +0 -7
- package/dist/env/xdg.js.map +0 -7
- package/dist/env.js.map +0 -7
- package/dist/external/@npmcli/package-json/index.js +0 -1
- package/dist/external/@socketregistry/is-unicode-supported.d.ts +0 -2
- package/dist/external/@socketregistry/yocto-spinner.d.ts +0 -12
- package/dist/external/@yarnpkg/extensions.d.ts +0 -4
- package/dist/external/cacache.d.ts +0 -86
- package/dist/external/debug.d.ts +0 -22
- package/dist/external/del.d.ts +0 -1
- package/dist/external/fast-sort.d.ts +0 -3
- package/dist/external/get-east-asian-width.d.ts +0 -5
- package/dist/external/libnpmexec.d.ts +0 -33
- package/dist/external/libnpmpack.d.ts +0 -2
- package/dist/external/make-fetch-happen.d.ts +0 -15
- package/dist/external/pacote.d.ts +0 -14
- package/dist/external/semver.d.ts +0 -2
- package/dist/external/yargs-parser.d.ts +0 -2
- package/dist/external/yoctocolors-cjs.d.ts +0 -52
- package/dist/external/zod.d.ts +0 -1
- package/dist/fs.js.map +0 -7
- package/dist/functions.js.map +0 -7
- package/dist/git.js.map +0 -7
- package/dist/github.js.map +0 -7
- package/dist/globs.js.map +0 -7
- package/dist/http-request.js.map +0 -7
- package/dist/ipc.js.map +0 -7
- package/dist/json.js.map +0 -7
- package/dist/links/index.js.map +0 -7
- package/dist/logger.js.map +0 -7
- package/dist/maintained-node-versions.js.map +0 -7
- package/dist/memoization.js.map +0 -7
- package/dist/objects.js.map +0 -7
- package/dist/packages/editable.js.map +0 -7
- package/dist/packages/exports.js.map +0 -7
- package/dist/packages/isolation.js.map +0 -7
- package/dist/packages/licenses.js.map +0 -7
- package/dist/packages/manifest.js.map +0 -7
- package/dist/packages/normalize.js.map +0 -7
- package/dist/packages/operations.js.map +0 -7
- package/dist/packages/paths.js.map +0 -7
- package/dist/packages/provenance.js.map +0 -7
- package/dist/packages/specs.js.map +0 -7
- package/dist/packages/validation.js.map +0 -7
- package/dist/packages.js.map +0 -7
- package/dist/path.js.map +0 -7
- package/dist/paths/rewire.js.map +0 -7
- package/dist/paths.js.map +0 -7
- package/dist/performance.js.map +0 -7
- package/dist/process-lock.js.map +0 -7
- package/dist/promise-queue.js.map +0 -7
- package/dist/promises.js.map +0 -7
- package/dist/regexps.js.map +0 -7
- package/dist/sea.js.map +0 -7
- package/dist/shadow.js.map +0 -7
- package/dist/signal-exit.js.map +0 -7
- package/dist/sorts.js.map +0 -7
- package/dist/spawn.js.map +0 -7
- package/dist/spinner.js.map +0 -7
- package/dist/ssri.js.map +0 -7
- package/dist/stdio/clear.js.map +0 -7
- package/dist/stdio/divider.js.map +0 -7
- package/dist/stdio/footer.js.map +0 -7
- package/dist/stdio/header.js.map +0 -7
- package/dist/stdio/mask.js.map +0 -7
- package/dist/stdio/progress.js.map +0 -7
- package/dist/stdio/prompts.js.map +0 -7
- package/dist/stdio/stderr.js.map +0 -7
- package/dist/stdio/stdout.js.map +0 -7
- package/dist/streams.js.map +0 -7
- package/dist/strings.js.map +0 -7
- package/dist/suppress-warnings.js.map +0 -7
- package/dist/tables.js.map +0 -7
- package/dist/temporary-executor.js.map +0 -7
- package/dist/themes/context.js.map +0 -7
- package/dist/themes/index.js.map +0 -7
- package/dist/themes/themes.js.map +0 -7
- package/dist/themes/types.js.map +0 -7
- package/dist/themes/utils.js.map +0 -7
- package/dist/types.js.map +0 -7
- package/dist/url.js.map +0 -7
- package/dist/utils/get-ipc.js.map +0 -7
- package/dist/validation/json-parser.js.map +0 -7
- package/dist/validation/types.js.map +0 -7
- package/dist/versions.js.map +0 -7
- package/dist/words.js.map +0 -7
- package/dist/zod.js.map +0 -7
|
@@ -1,25 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Bundled from @inquirer/search
|
|
3
4
|
* This is a zero-dependency bundle created by esbuild.
|
|
4
5
|
*/
|
|
5
|
-
"use strict";var pt=Object.defineProperty;var i=(e,u)=>pt(e,"name",{value:u,configurable:!0});var g=(e,u)=>()=>(u||e((u={exports:{}}).exports,u),u.exports);var ru=g(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.isEnterKey=v.isNumberKey=v.isTabKey=v.isBackspaceKey=v.isSpaceKey=v.isDownKey=v.isUpKey=void 0;var gt=i((e,u=[])=>e.name==="up"||u.includes("vim")&&e.name==="k"||u.includes("emacs")&&e.ctrl&&e.name==="p","isUpKey");v.isUpKey=gt;var Ct=i((e,u=[])=>e.name==="down"||u.includes("vim")&&e.name==="j"||u.includes("emacs")&&e.ctrl&&e.name==="n","isDownKey");v.isDownKey=Ct;var Et=i(e=>e.name==="space","isSpaceKey");v.isSpaceKey=Et;var bt=i(e=>e.name==="backspace","isBackspaceKey");v.isBackspaceKey=bt;var mt=i(e=>e.name==="tab","isTabKey");v.isTabKey=mt;var Bt=i(e=>"1234567890".includes(e.name),"isNumberKey");v.isNumberKey=Bt;var yt=i(e=>e.name==="enter"||e.name==="return","isEnterKey");v.isEnterKey=yt});var ne=g(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.ValidationError=L.HookError=L.ExitPromptError=L.CancelPromptError=L.AbortPromptError=void 0;var Ee=class extends Error{static{i(this,"AbortPromptError")}name="AbortPromptError";message="Prompt was aborted";constructor(u){super(),this.cause=u?.cause}};L.AbortPromptError=Ee;var be=class extends Error{static{i(this,"CancelPromptError")}name="CancelPromptError";message="Prompt was canceled"};L.CancelPromptError=be;var me=class extends Error{static{i(this,"ExitPromptError")}name="ExitPromptError"};L.ExitPromptError=me;var Be=class extends Error{static{i(this,"HookError")}name="HookError"};L.HookError=Be;var ye=class extends Error{static{i(this,"ValidationError")}name="ValidationError"};L.ValidationError=ye});var N=g(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.effectScheduler=void 0;q.withHooks=wt;q.readline=ou;q.withUpdates=lu;q.withPointer=At;q.handleChange=vt;var Du=require("node:async_hooks"),su=ne(),iu=new Du.AsyncLocalStorage;function _t(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}i(_t,"createStore");function wt(e,u){let t=_t(e);return iu.run(t,()=>{function n(r){t.handleChange=()=>{t.index=0,r()},t.handleChange()}return i(n,"cycle"),u(n)})}i(wt,"withHooks");function $(){let e=iu.getStore();if(!e)throw new su.HookError("[Inquirer] Hook functions can only be called from within a prompt");return e}i($,"getStore");function ou(){return $().rl}i(ou,"readline");function lu(e){let u=i((...t)=>{let n=$(),r=!1,D=n.handleChange;n.handleChange=()=>{r=!0};let s=e(...t);return r&&D(),n.handleChange=D,s},"wrapped");return Du.AsyncResource.bind(u)}i(lu,"withUpdates");function At(e){let u=$(),{index:t}=u,n={get(){return u.hooks[t]},set(D){u.hooks[t]=D},initialized:t in u.hooks},r=e(n);return u.index++,r}i(At,"withPointer");function vt(){$().handleChange()}i(vt,"handleChange");q.effectScheduler={queue(e){let u=$(),{index:t}=u;u.hooksEffect.push(()=>{u.hooksCleanup[t]?.();let n=e(ou());if(n!=null&&typeof n!="function")throw new su.ValidationError("useEffect return value must be a cleanup function or nothing.");u.hooksCleanup[t]=n})},run(){let e=$();lu(()=>{e.hooksEffect.forEach(u=>{u()}),e.hooksEffect.length=0})()},clearAll(){let e=$();e.hooksCleanup.forEach(u=>{u?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}}});var re=g(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.useState=St;var xt=require("node:async_hooks"),au=N();function St(e){return(0,au.withPointer)(u=>{let t=xt.AsyncResource.bind(i(function(D){u.get()!==D&&(u.set(D),(0,au.handleChange)())},"setState"));if(u.initialized)return[u.get(),t];let n=typeof e=="function"?e():e;return u.set(n),[n,t]})}i(St,"useState")});var De=g(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.useEffect=kt;var cu=N();function kt(e,u){(0,cu.withPointer)(t=>{let n=t.get();(!Array.isArray(n)||u.some((D,s)=>!Object.is(D,n[s])))&&cu.effectScheduler.queue(e),t.set(u)})}i(kt,"useEffect")});var se=g((wr,fu)=>{var Lt=require("node:tty"),Ot=Lt?.WriteStream?.prototype?.hasColors?.()??!1,d=i((e,u)=>{if(!Ot)return r=>r;let t=`\x1B[${e}m`,n=`\x1B[${u}m`;return r=>{let D=r+"",s=D.indexOf(n);if(s===-1)return t+D+n;let o=t,l=0,f=(u===22?n:"")+t;for(;s!==-1;)o+=D.slice(l,s)+f,l=s+n.length,s=D.indexOf(n,l);return o+=D.slice(l)+n,o}},"format"),h={};h.reset=d(0,0);h.bold=d(1,22);h.dim=d(2,22);h.italic=d(3,23);h.underline=d(4,24);h.overline=d(53,55);h.inverse=d(7,27);h.hidden=d(8,28);h.strikethrough=d(9,29);h.black=d(30,39);h.red=d(31,39);h.green=d(32,39);h.yellow=d(33,39);h.blue=d(34,39);h.magenta=d(35,39);h.cyan=d(36,39);h.white=d(37,39);h.gray=d(90,39);h.bgBlack=d(40,49);h.bgRed=d(41,49);h.bgGreen=d(42,49);h.bgYellow=d(43,49);h.bgBlue=d(44,49);h.bgMagenta=d(45,49);h.bgCyan=d(46,49);h.bgWhite=d(47,49);h.bgGray=d(100,49);h.redBright=d(91,39);h.greenBright=d(92,39);h.yellowBright=d(93,39);h.blueBright=d(94,39);h.magentaBright=d(95,39);h.cyanBright=d(96,39);h.whiteBright=d(97,39);h.bgRedBright=d(101,49);h.bgGreenBright=d(102,49);h.bgYellowBright=d(103,49);h.bgBlueBright=d(104,49);h.bgMagentaBright=d(105,49);h.bgCyanBright=d(106,49);h.bgWhiteBright=d(107,49);fu.exports=h});var ie=g(S=>{"use strict";var Pt=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(S,"__esModule",{value:!0});S.replaceSymbols=S.fallbackSymbols=S.mainSymbols=void 0;var U=Pt(require("node:process"));function Rt(){return U.default.platform!=="win32"?U.default.env.TERM!=="linux":!!U.default.env.WT_SESSION||!!U.default.env.TERMINUS_SUBLIME||U.default.env.ConEmuTask==="{cmd::Cmder}"||U.default.env.TERM_PROGRAM==="Terminus-Sublime"||U.default.env.TERM_PROGRAM==="vscode"||U.default.env.TERM==="xterm-256color"||U.default.env.TERM==="alacritty"||U.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}i(Rt,"isUnicodeSupported");var hu={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},du={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},Mt={tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"};S.mainSymbols={...hu,...du};S.fallbackSymbols={...hu,...Mt};var Fu=Rt(),Ut=Fu?S.mainSymbols:S.fallbackSymbols;S.default=Ut;var jt=Object.entries(du),qt=i((e,{useFallback:u=!Fu}={})=>{if(u)for(let[t,n]of jt){let r=S.fallbackSymbols[t];if(!r)throw new Error(`Unable to find fallback for ${t}`);e=e.replaceAll(n,r)}return e},"replaceSymbols");S.replaceSymbols=qt});var gu=g(z=>{"use strict";var pu=z&&z.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(z,"__esModule",{value:!0});z.defaultTheme=void 0;var P=pu(se()),Tt=pu(ie());z.defaultTheme={prefix:{idle:P.default.blue("?"),done:P.default.green(Tt.default.tick)},spinner:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map(e=>P.default.yellow(e))},style:{answer:P.default.cyan,message:P.default.bold,error:i(e=>P.default.red(`> ${e}`),"error"),defaultAnswer:i(e=>P.default.dim(`(${e})`),"defaultAnswer"),help:P.default.dim,highlight:P.default.cyan,key:i(e=>P.default.cyan(P.default.bold(`<${e}>`)),"key")}}});var ve=g(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.makeTheme=It;var Kt=gu();function Cu(e){if(typeof e!="object"||e===null)return!1;let u=e;for(;Object.getPrototypeOf(u)!==null;)u=Object.getPrototypeOf(u);return Object.getPrototypeOf(e)===u}i(Cu,"isPlainObject");function Eu(...e){let u={};for(let t of e)for(let[n,r]of Object.entries(t)){let D=u[n];u[n]=Cu(D)&&Cu(r)?Eu(D,r):r}return u}i(Eu,"deepMerge");function It(...e){let u=[Kt.defaultTheme,...e.filter(t=>t!=null)];return Eu(...u)}i(It,"makeTheme")});var mu=g(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.usePrefix=Gt;var bu=re(),$t=De(),Nt=ve();function Gt({status:e="idle",theme:u}){let[t,n]=(0,bu.useState)(!1),[r,D]=(0,bu.useState)(0),{prefix:s,spinner:o}=(0,Nt.makeTheme)(u);return(0,$t.useEffect)(()=>{if(e==="loading"){let a,f=-1,p=setTimeout(()=>{n(!0),a=setInterval(()=>{f=f+1,D(f%o.frames.length)},o.interval)},300);return()=>{clearTimeout(p),clearInterval(a)}}else n(!1)},[e]),t?o.frames[r]:typeof s=="string"?s:s[e==="loading"?"idle":e]??s.idle}i(Gt,"usePrefix")});var Bu=g(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.useMemo=Vt;var Wt=N();function Vt(e,u){return(0,Wt.withPointer)(t=>{let n=t.get();if(!n||n.dependencies.length!==u.length||n.dependencies.some((r,D)=>r!==u[D])){let r=e();return t.set({value:r,dependencies:u}),r}return n.value})}i(Vt,"useMemo")});var oe=g(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.useRef=Ht;var zt=re();function Ht(e){return(0,zt.useState)({current:e})[0]}i(Ht,"useRef")});var yu=g(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.useKeypress=Jt;var Yt=oe(),Zt=De(),Qt=N();function Jt(e){let u=(0,Yt.useRef)(e);u.current=e,(0,Zt.useEffect)(t=>{let n=!1,r=(0,Qt.withUpdates)((D,s)=>{n||u.current(s,t)});return t.input.on("keypress",r),()=>{n=!0,t.input.removeListener("keypress",r)}},[])}i(Jt,"useKeypress")});var wu=g((Ir,_u)=>{"use strict";_u.exports=en;function Xt(e){let u={defaultWidth:0,output:process.stdout,tty:require("tty")};return e?(Object.keys(u).forEach(function(t){e[t]||(e[t]=u[t])}),e):u}i(Xt,"normalizeOpts");function en(e){let u=Xt(e);if(u.output.getWindowSize)return u.output.getWindowSize()[0]||u.defaultWidth;if(u.tty.getWindowSize)return u.tty.getWindowSize()[1]||u.defaultWidth;if(u.output.columns)return u.output.columns;if(process.env.CLI_WIDTH){let t=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(t)&&t!==0)return t}return u.defaultWidth}i(en,"cliWidth")});var vu=g((Nr,Au)=>{"use strict";Au.exports=({onlyFirst:e=!1}={})=>{let u=["[\\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(u,e?void 0:"g")}});var Oe=g((Gr,xu)=>{"use strict";var un=vu();xu.exports=e=>typeof e=="string"?e.replace(un(),""):e});var ku=g((Wr,Pe)=>{"use strict";var Su=i(e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141),"isFullwidthCodePoint");Pe.exports=Su;Pe.exports.default=Su});var Ou=g((zr,Lu)=>{"use strict";Lu.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 Ru=g((Hr,Re)=>{"use strict";var tn=Oe(),nn=ku(),rn=Ou(),Pu=i(e=>{if(typeof e!="string"||e.length===0||(e=tn(e),e.length===0))return 0;e=e.replace(rn()," ");let u=0;for(let t=0;t<e.length;t++){let n=e.codePointAt(t);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&t++,u+=nn(n)?2:1)}return u},"stringWidth");Re.exports=Pu;Re.exports.default=Pu});var Uu=g((Zr,Mu)=>{"use strict";Mu.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 Me=g((Qr,qu)=>{var X=Uu(),ju={};for(let e of Object.keys(X))ju[X[e]]=e;var c={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"]}};qu.exports=c;for(let e of Object.keys(c)){if(!("channels"in c[e]))throw new Error("missing channels property: "+e);if(!("labels"in c[e]))throw new Error("missing channel labels property: "+e);if(c[e].labels.length!==c[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:u,labels:t}=c[e];delete c[e].channels,delete c[e].labels,Object.defineProperty(c[e],"channels",{value:u}),Object.defineProperty(c[e],"labels",{value:t})}c.rgb.hsl=function(e){let u=e[0]/255,t=e[1]/255,n=e[2]/255,r=Math.min(u,t,n),D=Math.max(u,t,n),s=D-r,o,l;D===r?o=0:u===D?o=(t-n)/s:t===D?o=2+(n-u)/s:n===D&&(o=4+(u-t)/s),o=Math.min(o*60,360),o<0&&(o+=360);let a=(r+D)/2;return D===r?l=0:a<=.5?l=s/(D+r):l=s/(2-D-r),[o,l*100,a*100]};c.rgb.hsv=function(e){let u,t,n,r,D,s=e[0]/255,o=e[1]/255,l=e[2]/255,a=Math.max(s,o,l),f=a-Math.min(s,o,l),p=i(function(y){return(a-y)/6/f+1/2},"diffc");return f===0?(r=0,D=0):(D=f/a,u=p(s),t=p(o),n=p(l),s===a?r=n-t:o===a?r=1/3+u-n:l===a&&(r=2/3+t-u),r<0?r+=1:r>1&&(r-=1)),[r*360,D*100,a*100]};c.rgb.hwb=function(e){let u=e[0],t=e[1],n=e[2],r=c.rgb.hsl(e)[0],D=1/255*Math.min(u,Math.min(t,n));return n=1-1/255*Math.max(u,Math.max(t,n)),[r,D*100,n*100]};c.rgb.cmyk=function(e){let u=e[0]/255,t=e[1]/255,n=e[2]/255,r=Math.min(1-u,1-t,1-n),D=(1-u-r)/(1-r)||0,s=(1-t-r)/(1-r)||0,o=(1-n-r)/(1-r)||0;return[D*100,s*100,o*100,r*100]};function Dn(e,u){return(e[0]-u[0])**2+(e[1]-u[1])**2+(e[2]-u[2])**2}i(Dn,"comparativeDistance");c.rgb.keyword=function(e){let u=ju[e];if(u)return u;let t=1/0,n;for(let r of Object.keys(X)){let D=X[r],s=Dn(e,D);s<t&&(t=s,n=r)}return n};c.keyword.rgb=function(e){return X[e]};c.rgb.xyz=function(e){let u=e[0]/255,t=e[1]/255,n=e[2]/255;u=u>.04045?((u+.055)/1.055)**2.4:u/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let r=u*.4124+t*.3576+n*.1805,D=u*.2126+t*.7152+n*.0722,s=u*.0193+t*.1192+n*.9505;return[r*100,D*100,s*100]};c.rgb.lab=function(e){let u=c.rgb.xyz(e),t=u[0],n=u[1],r=u[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let D=116*n-16,s=500*(t-n),o=200*(n-r);return[D,s,o]};c.hsl.rgb=function(e){let u=e[0]/360,t=e[1]/100,n=e[2]/100,r,D,s;if(t===0)return s=n*255,[s,s,s];n<.5?r=n*(1+t):r=n+t-n*t;let o=2*n-r,l=[0,0,0];for(let a=0;a<3;a++)D=u+1/3*-(a-1),D<0&&D++,D>1&&D--,6*D<1?s=o+(r-o)*6*D:2*D<1?s=r:3*D<2?s=o+(r-o)*(2/3-D)*6:s=o,l[a]=s*255;return l};c.hsl.hsv=function(e){let u=e[0],t=e[1]/100,n=e[2]/100,r=t,D=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=D<=1?D:2-D;let s=(n+t)/2,o=n===0?2*r/(D+r):2*t/(n+t);return[u,o*100,s*100]};c.hsv.rgb=function(e){let u=e[0]/60,t=e[1]/100,n=e[2]/100,r=Math.floor(u)%6,D=u-Math.floor(u),s=255*n*(1-t),o=255*n*(1-t*D),l=255*n*(1-t*(1-D));switch(n*=255,r){case 0:return[n,l,s];case 1:return[o,n,s];case 2:return[s,n,l];case 3:return[s,o,n];case 4:return[l,s,n];case 5:return[n,s,o]}};c.hsv.hsl=function(e){let u=e[0],t=e[1]/100,n=e[2]/100,r=Math.max(n,.01),D,s;s=(2-t)*n;let o=(2-t)*r;return D=t*r,D/=o<=1?o:2-o,D=D||0,s/=2,[u,D*100,s*100]};c.hwb.rgb=function(e){let u=e[0]/360,t=e[1]/100,n=e[2]/100,r=t+n,D;r>1&&(t/=r,n/=r);let s=Math.floor(6*u),o=1-n;D=6*u-s,(s&1)!==0&&(D=1-D);let l=t+D*(o-t),a,f,p;switch(s){default:case 6:case 0:a=o,f=l,p=t;break;case 1:a=l,f=o,p=t;break;case 2:a=t,f=o,p=l;break;case 3:a=t,f=l,p=o;break;case 4:a=l,f=t,p=o;break;case 5:a=o,f=t,p=l;break}return[a*255,f*255,p*255]};c.cmyk.rgb=function(e){let u=e[0]/100,t=e[1]/100,n=e[2]/100,r=e[3]/100,D=1-Math.min(1,u*(1-r)+r),s=1-Math.min(1,t*(1-r)+r),o=1-Math.min(1,n*(1-r)+r);return[D*255,s*255,o*255]};c.xyz.rgb=function(e){let u=e[0]/100,t=e[1]/100,n=e[2]/100,r,D,s;return r=u*3.2406+t*-1.5372+n*-.4986,D=u*-.9689+t*1.8758+n*.0415,s=u*.0557+t*-.204+n*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,D=D>.0031308?1.055*D**(1/2.4)-.055:D*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,r=Math.min(Math.max(0,r),1),D=Math.min(Math.max(0,D),1),s=Math.min(Math.max(0,s),1),[r*255,D*255,s*255]};c.xyz.lab=function(e){let u=e[0],t=e[1],n=e[2];u/=95.047,t/=100,n/=108.883,u=u>.008856?u**(1/3):7.787*u+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let r=116*t-16,D=500*(u-t),s=200*(t-n);return[r,D,s]};c.lab.xyz=function(e){let u=e[0],t=e[1],n=e[2],r,D,s;D=(u+16)/116,r=t/500+D,s=D-n/200;let o=D**3,l=r**3,a=s**3;return D=o>.008856?o:(D-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,s=a>.008856?a:(s-16/116)/7.787,r*=95.047,D*=100,s*=108.883,[r,D,s]};c.lab.lch=function(e){let u=e[0],t=e[1],n=e[2],r;r=Math.atan2(n,t)*360/2/Math.PI,r<0&&(r+=360);let s=Math.sqrt(t*t+n*n);return[u,s,r]};c.lch.lab=function(e){let u=e[0],t=e[1],r=e[2]/360*2*Math.PI,D=t*Math.cos(r),s=t*Math.sin(r);return[u,D,s]};c.rgb.ansi16=function(e,u=null){let[t,n,r]=e,D=u===null?c.rgb.hsv(e)[2]:u;if(D=Math.round(D/50),D===0)return 30;let s=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return D===2&&(s+=60),s};c.hsv.ansi16=function(e){return c.rgb.ansi16(c.hsv.rgb(e),e[2])};c.rgb.ansi256=function(e){let u=e[0],t=e[1],n=e[2];return u===t&&t===n?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)};c.ansi16.rgb=function(e){let u=e%10;if(u===0||u===7)return e>50&&(u+=3.5),u=u/10.5*255,[u,u,u];let t=(~~(e>50)+1)*.5,n=(u&1)*t*255,r=(u>>1&1)*t*255,D=(u>>2&1)*t*255;return[n,r,D]};c.ansi256.rgb=function(e){if(e>=232){let D=(e-232)*10+8;return[D,D,D]}e-=16;let u,t=Math.floor(e/36)/5*255,n=Math.floor((u=e%36)/6)/5*255,r=u%6/5*255;return[t,n,r]};c.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};c.hex.rgb=function(e){let u=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!u)return[0,0,0];let t=u[0];u[0].length===3&&(t=t.split("").map(o=>o+o).join(""));let n=parseInt(t,16),r=n>>16&255,D=n>>8&255,s=n&255;return[r,D,s]};c.rgb.hcg=function(e){let u=e[0]/255,t=e[1]/255,n=e[2]/255,r=Math.max(Math.max(u,t),n),D=Math.min(Math.min(u,t),n),s=r-D,o,l;return s<1?o=D/(1-s):o=0,s<=0?l=0:r===u?l=(t-n)/s%6:r===t?l=2+(n-u)/s:l=4+(u-t)/s,l/=6,l%=1,[l*360,s*100,o*100]};c.hsl.hcg=function(e){let u=e[1]/100,t=e[2]/100,n=t<.5?2*u*t:2*u*(1-t),r=0;return n<1&&(r=(t-.5*n)/(1-n)),[e[0],n*100,r*100]};c.hsv.hcg=function(e){let u=e[1]/100,t=e[2]/100,n=u*t,r=0;return n<1&&(r=(t-n)/(1-n)),[e[0],n*100,r*100]};c.hcg.rgb=function(e){let u=e[0]/360,t=e[1]/100,n=e[2]/100;if(t===0)return[n*255,n*255,n*255];let r=[0,0,0],D=u%1*6,s=D%1,o=1-s,l=0;switch(Math.floor(D)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=o,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=o,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=o}return l=(1-t)*n,[(t*r[0]+l)*255,(t*r[1]+l)*255,(t*r[2]+l)*255]};c.hcg.hsv=function(e){let u=e[1]/100,t=e[2]/100,n=u+t*(1-u),r=0;return n>0&&(r=u/n),[e[0],r*100,n*100]};c.hcg.hsl=function(e){let u=e[1]/100,n=e[2]/100*(1-u)+.5*u,r=0;return n>0&&n<.5?r=u/(2*n):n>=.5&&n<1&&(r=u/(2*(1-n))),[e[0],r*100,n*100]};c.hcg.hwb=function(e){let u=e[1]/100,t=e[2]/100,n=u+t*(1-u);return[e[0],(n-u)*100,(1-n)*100]};c.hwb.hcg=function(e){let u=e[1]/100,n=1-e[2]/100,r=n-u,D=0;return r<1&&(D=(n-r)/(1-r)),[e[0],r*100,D*100]};c.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};c.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};c.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};c.gray.hsl=function(e){return[0,0,e[0]]};c.gray.hsv=c.gray.hsl;c.gray.hwb=function(e){return[0,100,e[0]]};c.gray.cmyk=function(e){return[0,0,0,e[0]]};c.gray.lab=function(e){return[e[0],0,0]};c.gray.hex=function(e){let u=Math.round(e[0]/100*255)&255,n=((u<<16)+(u<<8)+u).toString(16).toUpperCase();return"000000".substring(n.length)+n};c.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Ku=g((Xr,Tu)=>{var le=Me();function sn(){let e={},u=Object.keys(le);for(let t=u.length,n=0;n<t;n++)e[u[n]]={distance:-1,parent:null};return e}i(sn,"buildGraph");function on(e){let u=sn(),t=[e];for(u[e].distance=0;t.length;){let n=t.pop(),r=Object.keys(le[n]);for(let D=r.length,s=0;s<D;s++){let o=r[s],l=u[o];l.distance===-1&&(l.distance=u[n].distance+1,l.parent=n,t.unshift(o))}}return u}i(on,"deriveBFS");function ln(e,u){return function(t){return u(e(t))}}i(ln,"link");function an(e,u){let t=[u[e].parent,e],n=le[u[e].parent][e],r=u[e].parent;for(;u[r].parent;)t.unshift(u[r].parent),n=ln(le[u[r].parent][r],n),r=u[r].parent;return n.conversion=t,n}i(an,"wrapConversion");Tu.exports=function(e){let u=on(e),t={},n=Object.keys(u);for(let r=n.length,D=0;D<r;D++){let s=n[D];u[s].parent!==null&&(t[s]=an(s,u))}return t}});var $u=g((uD,Iu)=>{var Ue=Me(),cn=Ku(),H={},fn=Object.keys(Ue);function hn(e){let u=i(function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),e(t))},"wrappedFn");return"conversion"in e&&(u.conversion=e.conversion),u}i(hn,"wrapRaw");function dn(e){let u=i(function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let r=e(t);if(typeof r=="object")for(let D=r.length,s=0;s<D;s++)r[s]=Math.round(r[s]);return r},"wrappedFn");return"conversion"in e&&(u.conversion=e.conversion),u}i(dn,"wrapRounded");fn.forEach(e=>{H[e]={},Object.defineProperty(H[e],"channels",{value:Ue[e].channels}),Object.defineProperty(H[e],"labels",{value:Ue[e].labels});let u=cn(e);Object.keys(u).forEach(n=>{let r=u[n];H[e][n]=dn(r),H[e][n].raw=hn(r)})});Iu.exports=H});var Hu=g((nD,zu)=>{"use strict";var Nu=i((e,u)=>(...t)=>`\x1B[${e(...t)+u}m`,"wrapAnsi16"),Gu=i((e,u)=>(...t)=>{let n=e(...t);return`\x1B[${38+u};5;${n}m`},"wrapAnsi256"),Wu=i((e,u)=>(...t)=>{let n=e(...t);return`\x1B[${38+u};2;${n[0]};${n[1]};${n[2]}m`},"wrapAnsi16m"),ae=i(e=>e,"ansi2ansi"),Vu=i((e,u,t)=>[e,u,t],"rgb2rgb"),Y=i((e,u,t)=>{Object.defineProperty(e,u,{get:i(()=>{let n=t();return Object.defineProperty(e,u,{value:n,enumerable:!0,configurable:!0}),n},"get"),enumerable:!0,configurable:!0})},"setLazyProperty"),je,Z=i((e,u,t,n)=>{je===void 0&&(je=$u());let r=n?10:0,D={};for(let[s,o]of Object.entries(je)){let l=s==="ansi16"?"ansi":s;s===u?D[l]=e(t,r):typeof o=="object"&&(D[l]=e(o[u],r))}return D},"makeDynamicStyles");function Fn(){let e=new Map,u={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]}};u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(let[t,n]of Object.entries(u)){for(let[r,D]of Object.entries(n))u[r]={open:`\x1B[${D[0]}m`,close:`\x1B[${D[1]}m`},n[r]=u[r],e.set(D[0],D[1]);Object.defineProperty(u,t,{value:n,enumerable:!1})}return Object.defineProperty(u,"codes",{value:e,enumerable:!1}),u.color.close="\x1B[39m",u.bgColor.close="\x1B[49m",Y(u.color,"ansi",()=>Z(Nu,"ansi16",ae,!1)),Y(u.color,"ansi256",()=>Z(Gu,"ansi256",ae,!1)),Y(u.color,"ansi16m",()=>Z(Wu,"rgb",Vu,!1)),Y(u.bgColor,"ansi",()=>Z(Nu,"ansi16",ae,!0)),Y(u.bgColor,"ansi256",()=>Z(Gu,"ansi256",ae,!0)),Y(u.bgColor,"ansi16m",()=>Z(Wu,"rgb",Vu,!0)),u}i(Fn,"assembleStyles");Object.defineProperty(zu,"exports",{enumerable:!0,get:Fn})});var Qu=g((DD,Zu)=>{"use strict";var ee=Ru(),pn=Oe(),gn=Hu(),Te=new Set(["\x1B",""]),Cn=39,Yu=i(e=>`${Te.values().next().value}[${e}m`,"wrapAnsi"),En=i(e=>e.split(" ").map(u=>ee(u)),"wordLengths"),qe=i((e,u,t)=>{let n=[...u],r=!1,D=ee(pn(e[e.length-1]));for(let[s,o]of n.entries()){let l=ee(o);if(D+l<=t?e[e.length-1]+=o:(e.push(o),D=0),Te.has(o))r=!0;else if(r&&o==="m"){r=!1;continue}r||(D+=l,D===t&&s<n.length-1&&(e.push(""),D=0))}!D&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},"wrapWord"),bn=i(e=>{let u=e.split(" "),t=u.length;for(;t>0&&!(ee(u[t-1])>0);)t--;return t===u.length?e:u.slice(0,t).join(" ")+u.slice(t).join("")},"stringVisibleTrimSpacesRight"),mn=i((e,u,t={})=>{if(t.trim!==!1&&e.trim()==="")return"";let n="",r="",D,s=En(e),o=[""];for(let[l,a]of e.split(" ").entries()){t.trim!==!1&&(o[o.length-1]=o[o.length-1].trimLeft());let f=ee(o[o.length-1]);if(l!==0&&(f>=u&&(t.wordWrap===!1||t.trim===!1)&&(o.push(""),f=0),(f>0||t.trim===!1)&&(o[o.length-1]+=" ",f++)),t.hard&&s[l]>u){let p=u-f,y=1+Math.floor((s[l]-p-1)/u);Math.floor((s[l]-1)/u)<y&&o.push(""),qe(o,a,u);continue}if(f+s[l]>u&&f>0&&s[l]>0){if(t.wordWrap===!1&&f<u){qe(o,a,u);continue}o.push("")}if(f+s[l]>u&&t.wordWrap===!1){qe(o,a,u);continue}o[o.length-1]+=a}t.trim!==!1&&(o=o.map(bn)),n=o.join(`
|
|
6
|
-
`);for(let[l,a]of[...n].entries()){if(r+=a,
|
|
7
|
-
`?r+=
|
|
8
|
-
`&&(r+=
|
|
6
|
+
"use strict";var Ct=Object.defineProperty;var i=(e,u)=>Ct(e,"name",{value:u,configurable:!0});var g=(e,u)=>()=>(u||e((u={exports:{}}).exports,u),u.exports);var Du=g(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.isEnterKey=v.isNumberKey=v.isTabKey=v.isBackspaceKey=v.isSpaceKey=v.isDownKey=v.isUpKey=void 0;var Et=i((e,u=[])=>e.name==="up"||u.includes("vim")&&e.name==="k"||u.includes("emacs")&&e.ctrl&&e.name==="p","isUpKey");v.isUpKey=Et;var bt=i((e,u=[])=>e.name==="down"||u.includes("vim")&&e.name==="j"||u.includes("emacs")&&e.ctrl&&e.name==="n","isDownKey");v.isDownKey=bt;var mt=i(e=>e.name==="space","isSpaceKey");v.isSpaceKey=mt;var Bt=i(e=>e.name==="backspace","isBackspaceKey");v.isBackspaceKey=Bt;var yt=i(e=>e.name==="tab","isTabKey");v.isTabKey=yt;var _t=i(e=>"1234567890".includes(e.name),"isNumberKey");v.isNumberKey=_t;var wt=i(e=>e.name==="enter"||e.name==="return","isEnterKey");v.isEnterKey=wt});var re=g(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.ValidationError=L.HookError=L.ExitPromptError=L.CancelPromptError=L.AbortPromptError=void 0;var be=class extends Error{static{i(this,"AbortPromptError")}name="AbortPromptError";message="Prompt was aborted";constructor(u){super(),this.cause=u?.cause}};L.AbortPromptError=be;var me=class extends Error{static{i(this,"CancelPromptError")}name="CancelPromptError";message="Prompt was canceled"};L.CancelPromptError=me;var Be=class extends Error{static{i(this,"ExitPromptError")}name="ExitPromptError"};L.ExitPromptError=Be;var ye=class extends Error{static{i(this,"HookError")}name="HookError"};L.HookError=ye;var _e=class extends Error{static{i(this,"ValidationError")}name="ValidationError"};L.ValidationError=_e});var N=g(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.effectScheduler=void 0;q.withHooks=vt;q.readline=lu;q.withUpdates=au;q.withPointer=xt;q.handleChange=St;var su=require("node:async_hooks"),iu=re(),ou=new su.AsyncLocalStorage;function At(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}i(At,"createStore");function vt(e,u){let t=At(e);return ou.run(t,()=>{function n(r){t.handleChange=()=>{t.index=0,r()},t.handleChange()}return i(n,"cycle"),u(n)})}i(vt,"withHooks");function $(){let e=ou.getStore();if(!e)throw new iu.HookError("[Inquirer] Hook functions can only be called from within a prompt");return e}i($,"getStore");function lu(){return $().rl}i(lu,"readline");function au(e){let u=i((...t)=>{let n=$(),r=!1,D=n.handleChange;n.handleChange=()=>{r=!0};let s=e(...t);return r&&D(),n.handleChange=D,s},"wrapped");return su.AsyncResource.bind(u)}i(au,"withUpdates");function xt(e){let u=$(),{index:t}=u,n={get(){return u.hooks[t]},set(D){u.hooks[t]=D},initialized:t in u.hooks},r=e(n);return u.index++,r}i(xt,"withPointer");function St(){$().handleChange()}i(St,"handleChange");q.effectScheduler={queue(e){let u=$(),{index:t}=u;u.hooksEffect.push(()=>{u.hooksCleanup[t]?.();let n=e(lu());if(n!=null&&typeof n!="function")throw new iu.ValidationError("useEffect return value must be a cleanup function or nothing.");u.hooksCleanup[t]=n})},run(){let e=$();au(()=>{e.hooksEffect.forEach(u=>{u()}),e.hooksEffect.length=0})()},clearAll(){let e=$();e.hooksCleanup.forEach(u=>{u?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}}});var De=g(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.useState=Lt;var kt=require("node:async_hooks"),cu=N();function Lt(e){return(0,cu.withPointer)(u=>{let t=kt.AsyncResource.bind(i(function(D){u.get()!==D&&(u.set(D),(0,cu.handleChange)())},"setState"));if(u.initialized)return[u.get(),t];let n=typeof e=="function"?e():e;return u.set(n),[n,t]})}i(Lt,"useState")});var se=g(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.useEffect=Ot;var fu=N();function Ot(e,u){(0,fu.withPointer)(t=>{let n=t.get();(!Array.isArray(n)||u.some((D,s)=>!Object.is(D,n[s])))&&fu.effectScheduler.queue(e),t.set(u)})}i(Ot,"useEffect")});var ie=g((vr,hu)=>{var Pt=require("node:tty"),Rt=Pt?.WriteStream?.prototype?.hasColors?.()??!1,d=i((e,u)=>{if(!Rt)return r=>r;let t=`\x1B[${e}m`,n=`\x1B[${u}m`;return r=>{let D=r+"",s=D.indexOf(n);if(s===-1)return t+D+n;let o=t,l=0,f=(u===22?n:"")+t;for(;s!==-1;)o+=D.slice(l,s)+f,l=s+n.length,s=D.indexOf(n,l);return o+=D.slice(l)+n,o}},"format"),h={};h.reset=d(0,0);h.bold=d(1,22);h.dim=d(2,22);h.italic=d(3,23);h.underline=d(4,24);h.overline=d(53,55);h.inverse=d(7,27);h.hidden=d(8,28);h.strikethrough=d(9,29);h.black=d(30,39);h.red=d(31,39);h.green=d(32,39);h.yellow=d(33,39);h.blue=d(34,39);h.magenta=d(35,39);h.cyan=d(36,39);h.white=d(37,39);h.gray=d(90,39);h.bgBlack=d(40,49);h.bgRed=d(41,49);h.bgGreen=d(42,49);h.bgYellow=d(43,49);h.bgBlue=d(44,49);h.bgMagenta=d(45,49);h.bgCyan=d(46,49);h.bgWhite=d(47,49);h.bgGray=d(100,49);h.redBright=d(91,39);h.greenBright=d(92,39);h.yellowBright=d(93,39);h.blueBright=d(94,39);h.magentaBright=d(95,39);h.cyanBright=d(96,39);h.whiteBright=d(97,39);h.bgRedBright=d(101,49);h.bgGreenBright=d(102,49);h.bgYellowBright=d(103,49);h.bgBlueBright=d(104,49);h.bgMagentaBright=d(105,49);h.bgCyanBright=d(106,49);h.bgWhiteBright=d(107,49);hu.exports=h});var oe=g(S=>{"use strict";var Mt=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(S,"__esModule",{value:!0});S.replaceSymbols=S.fallbackSymbols=S.mainSymbols=void 0;var U=Mt(require("node:process"));function Ut(){return U.default.platform!=="win32"?U.default.env.TERM!=="linux":!!U.default.env.WT_SESSION||!!U.default.env.TERMINUS_SUBLIME||U.default.env.ConEmuTask==="{cmd::Cmder}"||U.default.env.TERM_PROGRAM==="Terminus-Sublime"||U.default.env.TERM_PROGRAM==="vscode"||U.default.env.TERM==="xterm-256color"||U.default.env.TERM==="alacritty"||U.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}i(Ut,"isUnicodeSupported");var du={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},Fu={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},jt={tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"};S.mainSymbols={...du,...Fu};S.fallbackSymbols={...du,...jt};var pu=Ut(),qt=pu?S.mainSymbols:S.fallbackSymbols;S.default=qt;var Tt=Object.entries(Fu),Kt=i((e,{useFallback:u=!pu}={})=>{if(u)for(let[t,n]of Tt){let r=S.fallbackSymbols[t];if(!r)throw new Error(`Unable to find fallback for ${t}`);e=e.replaceAll(n,r)}return e},"replaceSymbols");S.replaceSymbols=Kt});var Cu=g(H=>{"use strict";var gu=H&&H.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(H,"__esModule",{value:!0});H.defaultTheme=void 0;var P=gu(ie()),It=gu(oe());H.defaultTheme={prefix:{idle:P.default.blue("?"),done:P.default.green(It.default.tick)},spinner:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map(e=>P.default.yellow(e))},style:{answer:P.default.cyan,message:P.default.bold,error:i(e=>P.default.red(`> ${e}`),"error"),defaultAnswer:i(e=>P.default.dim(`(${e})`),"defaultAnswer"),help:P.default.dim,highlight:P.default.cyan,key:i(e=>P.default.cyan(P.default.bold(`<${e}>`)),"key")}}});var xe=g(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.makeTheme=Nt;var $t=Cu();function Eu(e){if(typeof e!="object"||e===null)return!1;let u=e;for(;Object.getPrototypeOf(u)!==null;)u=Object.getPrototypeOf(u);return Object.getPrototypeOf(e)===u}i(Eu,"isPlainObject");function bu(...e){let u={};for(let t of e)for(let[n,r]of Object.entries(t)){let D=u[n];u[n]=Eu(D)&&Eu(r)?bu(D,r):r}return u}i(bu,"deepMerge");function Nt(...e){let u=[$t.defaultTheme,...e.filter(t=>t!=null)];return bu(...u)}i(Nt,"makeTheme")});var Bu=g(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.usePrefix=Vt;var mu=De(),Gt=se(),Wt=xe();function Vt({status:e="idle",theme:u}){let[t,n]=(0,mu.useState)(!1),[r,D]=(0,mu.useState)(0),{prefix:s,spinner:o}=(0,Wt.makeTheme)(u);return(0,Gt.useEffect)(()=>{if(e==="loading"){let a,f=-1,p=setTimeout(()=>{n(!0),a=setInterval(()=>{f=f+1,D(f%o.frames.length)},o.interval)},300);return()=>{clearTimeout(p),clearInterval(a)}}else n(!1)},[e]),t?o.frames[r]:typeof s=="string"?s:s[e==="loading"?"idle":e]??s.idle}i(Vt,"usePrefix")});var yu=g(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.useMemo=Ht;var zt=N();function Ht(e,u){return(0,zt.withPointer)(t=>{let n=t.get();if(!n||n.dependencies.length!==u.length||n.dependencies.some((r,D)=>r!==u[D])){let r=e();return t.set({value:r,dependencies:u}),r}return n.value})}i(Ht,"useMemo")});var le=g(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.useRef=Zt;var Yt=De();function Zt(e){return(0,Yt.useState)({current:e})[0]}i(Zt,"useRef")});var _u=g(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.useKeypress=en;var Qt=le(),Jt=se(),Xt=N();function en(e){let u=(0,Qt.useRef)(e);u.current=e,(0,Jt.useEffect)(t=>{let n=!1,r=(0,Xt.withUpdates)((D,s)=>{n||u.current(s,t)});return t.input.on("keypress",r),()=>{n=!0,t.input.removeListener("keypress",r)}},[])}i(en,"useKeypress")});var Au=g((Nr,wu)=>{"use strict";wu.exports=tn;function un(e){let u={defaultWidth:0,output:process.stdout,tty:require("tty")};return e?(Object.keys(u).forEach(function(t){e[t]||(e[t]=u[t])}),e):u}i(un,"normalizeOpts");function tn(e){let u=un(e);if(u.output.getWindowSize)return u.output.getWindowSize()[0]||u.defaultWidth;if(u.tty.getWindowSize)return u.tty.getWindowSize()[1]||u.defaultWidth;if(u.output.columns)return u.output.columns;if(process.env.CLI_WIDTH){let t=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(t)&&t!==0)return t}return u.defaultWidth}i(tn,"cliWidth")});var xu=g((Wr,vu)=>{"use strict";vu.exports=({onlyFirst:e=!1}={})=>{let u=["[\\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(u,e?void 0:"g")}});var Pe=g((Vr,Su)=>{"use strict";var nn=xu();Su.exports=e=>typeof e=="string"?e.replace(nn(),""):e});var Lu=g((zr,Re)=>{"use strict";var ku=i(e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141),"isFullwidthCodePoint");Re.exports=ku;Re.exports.default=ku});var Pu=g((Yr,Ou)=>{"use strict";Ou.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 Mu=g((Zr,Me)=>{"use strict";var rn=Pe(),Dn=Lu(),sn=Pu(),Ru=i(e=>{if(typeof e!="string"||e.length===0||(e=rn(e),e.length===0))return 0;e=e.replace(sn()," ");let u=0;for(let t=0;t<e.length;t++){let n=e.codePointAt(t);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&t++,u+=Dn(n)?2:1)}return u},"stringWidth");Me.exports=Ru;Me.exports.default=Ru});var ju=g((Jr,Uu)=>{"use strict";Uu.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 Ue=g((Xr,Tu)=>{var ee=ju(),qu={};for(let e of Object.keys(ee))qu[ee[e]]=e;var c={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"]}};Tu.exports=c;for(let e of Object.keys(c)){if(!("channels"in c[e]))throw new Error("missing channels property: "+e);if(!("labels"in c[e]))throw new Error("missing channel labels property: "+e);if(c[e].labels.length!==c[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:u,labels:t}=c[e];delete c[e].channels,delete c[e].labels,Object.defineProperty(c[e],"channels",{value:u}),Object.defineProperty(c[e],"labels",{value:t})}c.rgb.hsl=function(e){let u=e[0]/255,t=e[1]/255,n=e[2]/255,r=Math.min(u,t,n),D=Math.max(u,t,n),s=D-r,o,l;D===r?o=0:u===D?o=(t-n)/s:t===D?o=2+(n-u)/s:n===D&&(o=4+(u-t)/s),o=Math.min(o*60,360),o<0&&(o+=360);let a=(r+D)/2;return D===r?l=0:a<=.5?l=s/(D+r):l=s/(2-D-r),[o,l*100,a*100]};c.rgb.hsv=function(e){let u,t,n,r,D,s=e[0]/255,o=e[1]/255,l=e[2]/255,a=Math.max(s,o,l),f=a-Math.min(s,o,l),p=i(function(y){return(a-y)/6/f+1/2},"diffc");return f===0?(r=0,D=0):(D=f/a,u=p(s),t=p(o),n=p(l),s===a?r=n-t:o===a?r=1/3+u-n:l===a&&(r=2/3+t-u),r<0?r+=1:r>1&&(r-=1)),[r*360,D*100,a*100]};c.rgb.hwb=function(e){let u=e[0],t=e[1],n=e[2],r=c.rgb.hsl(e)[0],D=1/255*Math.min(u,Math.min(t,n));return n=1-1/255*Math.max(u,Math.max(t,n)),[r,D*100,n*100]};c.rgb.cmyk=function(e){let u=e[0]/255,t=e[1]/255,n=e[2]/255,r=Math.min(1-u,1-t,1-n),D=(1-u-r)/(1-r)||0,s=(1-t-r)/(1-r)||0,o=(1-n-r)/(1-r)||0;return[D*100,s*100,o*100,r*100]};function on(e,u){return(e[0]-u[0])**2+(e[1]-u[1])**2+(e[2]-u[2])**2}i(on,"comparativeDistance");c.rgb.keyword=function(e){let u=qu[e];if(u)return u;let t=1/0,n;for(let r of Object.keys(ee)){let D=ee[r],s=on(e,D);s<t&&(t=s,n=r)}return n};c.keyword.rgb=function(e){return ee[e]};c.rgb.xyz=function(e){let u=e[0]/255,t=e[1]/255,n=e[2]/255;u=u>.04045?((u+.055)/1.055)**2.4:u/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let r=u*.4124+t*.3576+n*.1805,D=u*.2126+t*.7152+n*.0722,s=u*.0193+t*.1192+n*.9505;return[r*100,D*100,s*100]};c.rgb.lab=function(e){let u=c.rgb.xyz(e),t=u[0],n=u[1],r=u[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let D=116*n-16,s=500*(t-n),o=200*(n-r);return[D,s,o]};c.hsl.rgb=function(e){let u=e[0]/360,t=e[1]/100,n=e[2]/100,r,D,s;if(t===0)return s=n*255,[s,s,s];n<.5?r=n*(1+t):r=n+t-n*t;let o=2*n-r,l=[0,0,0];for(let a=0;a<3;a++)D=u+1/3*-(a-1),D<0&&D++,D>1&&D--,6*D<1?s=o+(r-o)*6*D:2*D<1?s=r:3*D<2?s=o+(r-o)*(2/3-D)*6:s=o,l[a]=s*255;return l};c.hsl.hsv=function(e){let u=e[0],t=e[1]/100,n=e[2]/100,r=t,D=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=D<=1?D:2-D;let s=(n+t)/2,o=n===0?2*r/(D+r):2*t/(n+t);return[u,o*100,s*100]};c.hsv.rgb=function(e){let u=e[0]/60,t=e[1]/100,n=e[2]/100,r=Math.floor(u)%6,D=u-Math.floor(u),s=255*n*(1-t),o=255*n*(1-t*D),l=255*n*(1-t*(1-D));switch(n*=255,r){case 0:return[n,l,s];case 1:return[o,n,s];case 2:return[s,n,l];case 3:return[s,o,n];case 4:return[l,s,n];case 5:return[n,s,o]}};c.hsv.hsl=function(e){let u=e[0],t=e[1]/100,n=e[2]/100,r=Math.max(n,.01),D,s;s=(2-t)*n;let o=(2-t)*r;return D=t*r,D/=o<=1?o:2-o,D=D||0,s/=2,[u,D*100,s*100]};c.hwb.rgb=function(e){let u=e[0]/360,t=e[1]/100,n=e[2]/100,r=t+n,D;r>1&&(t/=r,n/=r);let s=Math.floor(6*u),o=1-n;D=6*u-s,(s&1)!==0&&(D=1-D);let l=t+D*(o-t),a,f,p;switch(s){default:case 6:case 0:a=o,f=l,p=t;break;case 1:a=l,f=o,p=t;break;case 2:a=t,f=o,p=l;break;case 3:a=t,f=l,p=o;break;case 4:a=l,f=t,p=o;break;case 5:a=o,f=t,p=l;break}return[a*255,f*255,p*255]};c.cmyk.rgb=function(e){let u=e[0]/100,t=e[1]/100,n=e[2]/100,r=e[3]/100,D=1-Math.min(1,u*(1-r)+r),s=1-Math.min(1,t*(1-r)+r),o=1-Math.min(1,n*(1-r)+r);return[D*255,s*255,o*255]};c.xyz.rgb=function(e){let u=e[0]/100,t=e[1]/100,n=e[2]/100,r,D,s;return r=u*3.2406+t*-1.5372+n*-.4986,D=u*-.9689+t*1.8758+n*.0415,s=u*.0557+t*-.204+n*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,D=D>.0031308?1.055*D**(1/2.4)-.055:D*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,r=Math.min(Math.max(0,r),1),D=Math.min(Math.max(0,D),1),s=Math.min(Math.max(0,s),1),[r*255,D*255,s*255]};c.xyz.lab=function(e){let u=e[0],t=e[1],n=e[2];u/=95.047,t/=100,n/=108.883,u=u>.008856?u**(1/3):7.787*u+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let r=116*t-16,D=500*(u-t),s=200*(t-n);return[r,D,s]};c.lab.xyz=function(e){let u=e[0],t=e[1],n=e[2],r,D,s;D=(u+16)/116,r=t/500+D,s=D-n/200;let o=D**3,l=r**3,a=s**3;return D=o>.008856?o:(D-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,s=a>.008856?a:(s-16/116)/7.787,r*=95.047,D*=100,s*=108.883,[r,D,s]};c.lab.lch=function(e){let u=e[0],t=e[1],n=e[2],r;r=Math.atan2(n,t)*360/2/Math.PI,r<0&&(r+=360);let s=Math.sqrt(t*t+n*n);return[u,s,r]};c.lch.lab=function(e){let u=e[0],t=e[1],r=e[2]/360*2*Math.PI,D=t*Math.cos(r),s=t*Math.sin(r);return[u,D,s]};c.rgb.ansi16=function(e,u=null){let[t,n,r]=e,D=u===null?c.rgb.hsv(e)[2]:u;if(D=Math.round(D/50),D===0)return 30;let s=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return D===2&&(s+=60),s};c.hsv.ansi16=function(e){return c.rgb.ansi16(c.hsv.rgb(e),e[2])};c.rgb.ansi256=function(e){let u=e[0],t=e[1],n=e[2];return u===t&&t===n?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)};c.ansi16.rgb=function(e){let u=e%10;if(u===0||u===7)return e>50&&(u+=3.5),u=u/10.5*255,[u,u,u];let t=(~~(e>50)+1)*.5,n=(u&1)*t*255,r=(u>>1&1)*t*255,D=(u>>2&1)*t*255;return[n,r,D]};c.ansi256.rgb=function(e){if(e>=232){let D=(e-232)*10+8;return[D,D,D]}e-=16;let u,t=Math.floor(e/36)/5*255,n=Math.floor((u=e%36)/6)/5*255,r=u%6/5*255;return[t,n,r]};c.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};c.hex.rgb=function(e){let u=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!u)return[0,0,0];let t=u[0];u[0].length===3&&(t=t.split("").map(o=>o+o).join(""));let n=parseInt(t,16),r=n>>16&255,D=n>>8&255,s=n&255;return[r,D,s]};c.rgb.hcg=function(e){let u=e[0]/255,t=e[1]/255,n=e[2]/255,r=Math.max(Math.max(u,t),n),D=Math.min(Math.min(u,t),n),s=r-D,o,l;return s<1?o=D/(1-s):o=0,s<=0?l=0:r===u?l=(t-n)/s%6:r===t?l=2+(n-u)/s:l=4+(u-t)/s,l/=6,l%=1,[l*360,s*100,o*100]};c.hsl.hcg=function(e){let u=e[1]/100,t=e[2]/100,n=t<.5?2*u*t:2*u*(1-t),r=0;return n<1&&(r=(t-.5*n)/(1-n)),[e[0],n*100,r*100]};c.hsv.hcg=function(e){let u=e[1]/100,t=e[2]/100,n=u*t,r=0;return n<1&&(r=(t-n)/(1-n)),[e[0],n*100,r*100]};c.hcg.rgb=function(e){let u=e[0]/360,t=e[1]/100,n=e[2]/100;if(t===0)return[n*255,n*255,n*255];let r=[0,0,0],D=u%1*6,s=D%1,o=1-s,l=0;switch(Math.floor(D)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=o,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=o,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=o}return l=(1-t)*n,[(t*r[0]+l)*255,(t*r[1]+l)*255,(t*r[2]+l)*255]};c.hcg.hsv=function(e){let u=e[1]/100,t=e[2]/100,n=u+t*(1-u),r=0;return n>0&&(r=u/n),[e[0],r*100,n*100]};c.hcg.hsl=function(e){let u=e[1]/100,n=e[2]/100*(1-u)+.5*u,r=0;return n>0&&n<.5?r=u/(2*n):n>=.5&&n<1&&(r=u/(2*(1-n))),[e[0],r*100,n*100]};c.hcg.hwb=function(e){let u=e[1]/100,t=e[2]/100,n=u+t*(1-u);return[e[0],(n-u)*100,(1-n)*100]};c.hwb.hcg=function(e){let u=e[1]/100,n=1-e[2]/100,r=n-u,D=0;return r<1&&(D=(n-r)/(1-r)),[e[0],r*100,D*100]};c.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};c.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};c.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};c.gray.hsl=function(e){return[0,0,e[0]]};c.gray.hsv=c.gray.hsl;c.gray.hwb=function(e){return[0,100,e[0]]};c.gray.cmyk=function(e){return[0,0,0,e[0]]};c.gray.lab=function(e){return[e[0],0,0]};c.gray.hex=function(e){let u=Math.round(e[0]/100*255)&255,n=((u<<16)+(u<<8)+u).toString(16).toUpperCase();return"000000".substring(n.length)+n};c.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Iu=g((uD,Ku)=>{var ae=Ue();function ln(){let e={},u=Object.keys(ae);for(let t=u.length,n=0;n<t;n++)e[u[n]]={distance:-1,parent:null};return e}i(ln,"buildGraph");function an(e){let u=ln(),t=[e];for(u[e].distance=0;t.length;){let n=t.pop(),r=Object.keys(ae[n]);for(let D=r.length,s=0;s<D;s++){let o=r[s],l=u[o];l.distance===-1&&(l.distance=u[n].distance+1,l.parent=n,t.unshift(o))}}return u}i(an,"deriveBFS");function cn(e,u){return function(t){return u(e(t))}}i(cn,"link");function fn(e,u){let t=[u[e].parent,e],n=ae[u[e].parent][e],r=u[e].parent;for(;u[r].parent;)t.unshift(u[r].parent),n=cn(ae[u[r].parent][r],n),r=u[r].parent;return n.conversion=t,n}i(fn,"wrapConversion");Ku.exports=function(e){let u=an(e),t={},n=Object.keys(u);for(let r=n.length,D=0;D<r;D++){let s=n[D];u[s].parent!==null&&(t[s]=fn(s,u))}return t}});var Nu=g((nD,$u)=>{var je=Ue(),hn=Iu(),Y={},dn=Object.keys(je);function Fn(e){let u=i(function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),e(t))},"wrappedFn");return"conversion"in e&&(u.conversion=e.conversion),u}i(Fn,"wrapRaw");function pn(e){let u=i(function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let r=e(t);if(typeof r=="object")for(let D=r.length,s=0;s<D;s++)r[s]=Math.round(r[s]);return r},"wrappedFn");return"conversion"in e&&(u.conversion=e.conversion),u}i(pn,"wrapRounded");dn.forEach(e=>{Y[e]={},Object.defineProperty(Y[e],"channels",{value:je[e].channels}),Object.defineProperty(Y[e],"labels",{value:je[e].labels});let u=hn(e);Object.keys(u).forEach(n=>{let r=u[n];Y[e][n]=pn(r),Y[e][n].raw=Fn(r)})});$u.exports=Y});var Yu=g((DD,Hu)=>{"use strict";var Gu=i((e,u)=>(...t)=>`\x1B[${e(...t)+u}m`,"wrapAnsi16"),Wu=i((e,u)=>(...t)=>{let n=e(...t);return`\x1B[${38+u};5;${n}m`},"wrapAnsi256"),Vu=i((e,u)=>(...t)=>{let n=e(...t);return`\x1B[${38+u};2;${n[0]};${n[1]};${n[2]}m`},"wrapAnsi16m"),ce=i(e=>e,"ansi2ansi"),zu=i((e,u,t)=>[e,u,t],"rgb2rgb"),Z=i((e,u,t)=>{Object.defineProperty(e,u,{get:i(()=>{let n=t();return Object.defineProperty(e,u,{value:n,enumerable:!0,configurable:!0}),n},"get"),enumerable:!0,configurable:!0})},"setLazyProperty"),qe,Q=i((e,u,t,n)=>{qe===void 0&&(qe=Nu());let r=n?10:0,D={};for(let[s,o]of Object.entries(qe)){let l=s==="ansi16"?"ansi":s;s===u?D[l]=e(t,r):typeof o=="object"&&(D[l]=e(o[u],r))}return D},"makeDynamicStyles");function gn(){let e=new Map,u={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]}};u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(let[t,n]of Object.entries(u)){for(let[r,D]of Object.entries(n))u[r]={open:`\x1B[${D[0]}m`,close:`\x1B[${D[1]}m`},n[r]=u[r],e.set(D[0],D[1]);Object.defineProperty(u,t,{value:n,enumerable:!1})}return Object.defineProperty(u,"codes",{value:e,enumerable:!1}),u.color.close="\x1B[39m",u.bgColor.close="\x1B[49m",Z(u.color,"ansi",()=>Q(Gu,"ansi16",ce,!1)),Z(u.color,"ansi256",()=>Q(Wu,"ansi256",ce,!1)),Z(u.color,"ansi16m",()=>Q(Vu,"rgb",zu,!1)),Z(u.bgColor,"ansi",()=>Q(Gu,"ansi16",ce,!0)),Z(u.bgColor,"ansi256",()=>Q(Wu,"ansi256",ce,!0)),Z(u.bgColor,"ansi16m",()=>Q(Vu,"rgb",zu,!0)),u}i(gn,"assembleStyles");Object.defineProperty(Hu,"exports",{enumerable:!0,get:gn})});var Ju=g((iD,Qu)=>{"use strict";var ue=Mu(),Cn=Pe(),En=Yu(),Ke=new Set(["\x1B",""]),bn=39,Zu=i(e=>`${Ke.values().next().value}[${e}m`,"wrapAnsi"),mn=i(e=>e.split(" ").map(u=>ue(u)),"wordLengths"),Te=i((e,u,t)=>{let n=[...u],r=!1,D=ue(Cn(e[e.length-1]));for(let[s,o]of n.entries()){let l=ue(o);if(D+l<=t?e[e.length-1]+=o:(e.push(o),D=0),Ke.has(o))r=!0;else if(r&&o==="m"){r=!1;continue}r||(D+=l,D===t&&s<n.length-1&&(e.push(""),D=0))}!D&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},"wrapWord"),Bn=i(e=>{let u=e.split(" "),t=u.length;for(;t>0&&!(ue(u[t-1])>0);)t--;return t===u.length?e:u.slice(0,t).join(" ")+u.slice(t).join("")},"stringVisibleTrimSpacesRight"),yn=i((e,u,t={})=>{if(t.trim!==!1&&e.trim()==="")return"";let n="",r="",D,s=mn(e),o=[""];for(let[l,a]of e.split(" ").entries()){t.trim!==!1&&(o[o.length-1]=o[o.length-1].trimLeft());let f=ue(o[o.length-1]);if(l!==0&&(f>=u&&(t.wordWrap===!1||t.trim===!1)&&(o.push(""),f=0),(f>0||t.trim===!1)&&(o[o.length-1]+=" ",f++)),t.hard&&s[l]>u){let p=u-f,y=1+Math.floor((s[l]-p-1)/u);Math.floor((s[l]-1)/u)<y&&o.push(""),Te(o,a,u);continue}if(f+s[l]>u&&f>0&&s[l]>0){if(t.wordWrap===!1&&f<u){Te(o,a,u);continue}o.push("")}if(f+s[l]>u&&t.wordWrap===!1){Te(o,a,u);continue}o[o.length-1]+=a}t.trim!==!1&&(o=o.map(Bn)),n=o.join(`
|
|
7
|
+
`);for(let[l,a]of[...n].entries()){if(r+=a,Ke.has(a)){let p=parseFloat(/\d[^m]*/.exec(n.slice(l,l+4)));D=p===bn?null:p}let f=En.codes.get(Number(D));D&&f&&(n[l+1]===`
|
|
8
|
+
`?r+=Zu(f):a===`
|
|
9
|
+
`&&(r+=Zu(D)))}return r},"exec");Qu.exports=(e,u,t)=>String(e).normalize().replace(/\r\n/g,`
|
|
9
10
|
`).split(`
|
|
10
|
-
`).map(n=>
|
|
11
|
-
`)});var
|
|
12
|
-
`).flatMap(t=>(0,
|
|
11
|
+
`).map(n=>yn(n,u,t)).join(`
|
|
12
|
+
`)});var Ie=g(J=>{"use strict";var Xu=J&&J.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(J,"__esModule",{value:!0});J.breakLines=vn;J.readlineWidth=xn;var _n=Xu(Au()),wn=Xu(Ju()),An=N();function vn(e,u){return e.split(`
|
|
13
|
+
`).flatMap(t=>(0,wn.default)(t,u,{trim:!1,hard:!0}).split(`
|
|
13
14
|
`).map(n=>n.trimEnd())).join(`
|
|
14
|
-
`)}i(
|
|
15
|
-
`)),l=o.reduce((b,C)=>b+C.length,0),a=i(b=>o[b]??[],"renderItemAtIndex"),f=
|
|
16
|
-
`)}i(
|
|
17
|
-
`).length,"height"),
|
|
18
|
-
`).pop()??"","lastLine"),
|
|
15
|
+
`)}i(vn,"breakLines");function xn(){return(0,_n.default)({defaultWidth:80,output:(0,An.readline)().output})}i(xn,"readlineWidth")});var ut=g($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.usePagination=Ln;var Sn=le(),et=Ie();function kn({active:e,renderedItems:u,pageSize:t,loop:n}){let r=(0,Sn.useRef)({lastPointer:e,lastActive:void 0}),{lastPointer:D,lastActive:s}=r.current,o=Math.floor(t/2),l=u.reduce((p,y)=>p+y.length,0),a=u.slice(0,e).reduce((p,y)=>p+y.length,0),f=a;if(l>t)if(n)f=D,s!=null&&s<e&&e-s<t&&(f=Math.min(o,Math.abs(e-s)===1?Math.min(D+(u[s]?.length??0),Math.max(a,D)):D+e-s));else{let p=u.slice(e).reduce((y,_)=>y+_.length,0);f=p<t-o?t-p:Math.min(a,o)}return r.current.lastPointer=f,r.current.lastActive=e,f}i(kn,"usePointerPosition");function Ln({items:e,active:u,renderItem:t,pageSize:n,loop:r=!0}){let D=(0,et.readlineWidth)(),s=i(b=>(b%e.length+e.length)%e.length,"bound"),o=e.map((b,C)=>b==null?[]:(0,et.breakLines)(t({item:b,index:C,isActive:C===u}),D).split(`
|
|
16
|
+
`)),l=o.reduce((b,C)=>b+C.length,0),a=i(b=>o[b]??[],"renderItemAtIndex"),f=kn({active:u,renderedItems:o,pageSize:n,loop:r}),p=a(u).slice(0,n),y=f+p.length<=n?f:n-p.length,_=Array.from({length:n});_.splice(y,p.length,...p);let M=new Set([u]),A=y+p.length,E=s(u+1);for(;A<n&&!M.has(E)&&(r&&l>n?E!==u:E>u);){let C=a(E).slice(0,n-A);_.splice(A,C.length,...C),M.add(E),A+=C.length,E=s(E+1)}for(A=y-1,E=s(u-1);A>=0&&!M.has(E)&&(r&&l>n?E!==u:E<u);){let b=a(E),C=b.slice(Math.max(0,b.length-A-1));_.splice(A-C.length+1,C.length,...C),M.add(E),A-=C.length,E=s(E-1)}return _.filter(b=>typeof b=="string").join(`
|
|
17
|
+
`)}i(Ln,"usePagination")});var nt=g((hD,tt)=>{var On=require("stream"),Ne=class extends On{static{i(this,"MuteStream")}#t=null;constructor(u={}){super(u),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=u.replace,this._prompt=u.prompt||null,this._hadControl=!1}#u(u,t){return this._dest?this._dest[u]:this._src?this._src[u]:t}#e(u,...t){typeof this._dest?.[u]=="function"&&this._dest[u](...t),typeof this._src?.[u]=="function"&&this._src[u](...t)}get isTTY(){return this.#t!==null?this.#t:this.#u("isTTY",!1)}set isTTY(u){this.#t=u}get rows(){return this.#u("rows")}get columns(){return this.#u("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(u){this._src=u}pipe(u,t){return this._dest=u,super.pipe(u,t)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(u){if(this.muted){if(!this.replace)return!0;if(u.match(/^\u001b/))return u.indexOf(this._prompt)===0&&(u=u.slice(this._prompt.length),u=u.replace(/./g,this.replace),u=this._prompt+u),this._hadControl=!0,this.emit("data",u);this._prompt&&this._hadControl&&u.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),u=u.slice(this._prompt.length)),u=u.toString().replace(/./g,this.replace)}this.emit("data",u)}end(u){this.muted&&(u&&this.replace?u=u.toString().replace(/./g,this.replace):u=null),u&&this.emit("data",u),this.emit("end")}destroy(...u){return this.#e("destroy",...u)}destroySoon(...u){return this.#e("destroySoon",...u)}close(...u){return this.#e("close",...u)}};tt.exports=Ne});var rt=g(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.signals=void 0;G.signals=[];G.signals.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&G.signals.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&G.signals.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var Dt=g(j=>{"use strict";var fe;Object.defineProperty(j,"__esModule",{value:!0});j.unload=j.load=j.onExit=j.signals=void 0;var he=rt();Object.defineProperty(j,"signals",{enumerable:!0,get:i(function(){return he.signals},"get")});var de=i(e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function","processOk"),Ge=Symbol.for("signal-exit emitter"),We=globalThis,Pn=Object.defineProperty.bind(Object),Ve=class{static{i(this,"Emitter")}emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(We[Ge])return We[Ge];Pn(We,Ge,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(u,t){this.listeners[u].push(t)}removeListener(u,t){let n=this.listeners[u],r=n.indexOf(t);r!==-1&&(r===0&&n.length===1?n.length=0:n.splice(r,1))}emit(u,t,n){if(this.emitted[u])return!1;this.emitted[u]=!0;let r=!1;for(let D of this.listeners[u])r=D(t,n)===!0||r;return u==="exit"&&(r=this.emit("afterExit",t,n)||r),r}},Fe=class{static{i(this,"SignalExitBase")}},Rn=i(e=>({onExit(u,t){return e.onExit(u,t)},load(){return e.load()},unload(){return e.unload()}}),"signalExitWrap"),ze=class extends Fe{static{i(this,"SignalExitFallback")}onExit(){return()=>{}}load(){}unload(){}},He=class extends Fe{static{i(this,"SignalExit")}#t=Ye.platform==="win32"?"SIGINT":"SIGHUP";#u=new Ve;#e;#D;#s;#r={};#n=!1;constructor(u){super(),this.#e=u,this.#r={};for(let t of he.signals)this.#r[t]=()=>{let n=this.#e.listeners(t),{count:r}=this.#u,D=u;if(typeof D.__signal_exit_emitter__=="object"&&typeof D.__signal_exit_emitter__.count=="number"&&(r+=D.__signal_exit_emitter__.count),n.length===r){this.unload();let s=this.#u.emit("exit",null,t),o=t==="SIGHUP"?this.#t:t;s||u.kill(u.pid,o)}};this.#s=u.reallyExit,this.#D=u.emit}onExit(u,t){if(!de(this.#e))return()=>{};this.#n===!1&&this.load();let n=t?.alwaysLast?"afterExit":"exit";return this.#u.on(n,u),()=>{this.#u.removeListener(n,u),this.#u.listeners.exit.length===0&&this.#u.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#n){this.#n=!0,this.#u.count+=1;for(let u of he.signals)try{let t=this.#r[u];t&&this.#e.on(u,t)}catch{}this.#e.emit=(u,...t)=>this.#o(u,...t),this.#e.reallyExit=u=>this.#i(u)}}unload(){this.#n&&(this.#n=!1,he.signals.forEach(u=>{let t=this.#r[u];if(!t)throw new Error("Listener not defined for signal: "+u);try{this.#e.removeListener(u,t)}catch{}}),this.#e.emit=this.#D,this.#e.reallyExit=this.#s,this.#u.count-=1)}#i(u){return de(this.#e)?(this.#e.exitCode=u||0,this.#u.emit("exit",this.#e.exitCode,null),this.#s.call(this.#e,this.#e.exitCode)):0}#o(u,...t){let n=this.#D;if(u==="exit"&&de(this.#e)){typeof t[0]=="number"&&(this.#e.exitCode=t[0]);let r=n.call(this.#e,u,...t);return this.#u.emit("exit",this.#e.exitCode,null),r}else return n.call(this.#e,u,...t)}},Ye=globalThis.process;fe=Rn(de(Ye)?new He(Ye):new ze),j.onExit=fe.onExit,j.load=fe.load,j.unload=fe.unload});var it=g(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.eraseLines=w.cursorTo=w.cursorDown=w.cursorUp=w.cursorShow=w.cursorHide=w.cursorLeft=void 0;var T="\x1B[";w.cursorLeft=T+"G";w.cursorHide=T+"?25l";w.cursorShow=T+"?25h";var Mn=i((e=1)=>e>0?`${T}${e}A`:"","cursorUp");w.cursorUp=Mn;var Un=i((e=1)=>e>0?`${T}${e}B`:"","cursorDown");w.cursorDown=Un;var jn=i((e,u)=>typeof u=="number"&&!Number.isNaN(u)?`${T}${u+1};${e+1}H`:`${T}${e+1}G`,"cursorTo");w.cursorTo=jn;var st=T+"2K",qn=i(e=>e>0?(st+(0,w.cursorUp)(1)).repeat(e-1)+st+w.cursorLeft:"","eraseLines");w.eraseLines=qn});var lt=g(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});var Tn=require("node:util"),Ze=Ie(),K=it(),ot=i(e=>e.split(`
|
|
18
|
+
`).length,"height"),Kn=i(e=>e.split(`
|
|
19
|
+
`).pop()??"","lastLine"),Qe=class{static{i(this,"ScreenManager")}height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(u){this.rl=u,this.cursorPos=u.getCursorPos()}write(u){this.rl.output.unmute(),this.rl.output.write(u),this.rl.output.mute()}render(u,t=""){let n=Kn(u),r=(0,Tn.stripVTControlCharacters)(n),D=r;this.rl.line.length>0&&(D=D.slice(0,-this.rl.line.length)),this.rl.setPrompt(D),this.cursorPos=this.rl.getCursorPos();let s=(0,Ze.readlineWidth)();u=(0,Ze.breakLines)(u,s),t=(0,Ze.breakLines)(t,s),r.length%s===0&&(u+=`
|
|
19
20
|
`);let o=u+(t?`
|
|
20
|
-
`+t:""),a=Math.floor(r.length/s)-this.cursorPos.rows+(t?
|
|
21
|
-
`,t+=K.cursorShow,this.write(t),this.rl.close()}};
|
|
22
|
-
at ${I}`)}let[
|
|
21
|
+
`+t:""),a=Math.floor(r.length/s)-this.cursorPos.rows+(t?ot(t):0);a>0&&(o+=(0,K.cursorUp)(a)),o+=(0,K.cursorTo)(this.cursorPos.cols),this.write((0,K.cursorDown)(this.extraLinesUnderPrompt)+(0,K.eraseLines)(this.height)+o),this.extraLinesUnderPrompt=a,this.height=ot(o)}checkCursorPos(){let u=this.rl.getCursorPos();u.cols!==this.cursorPos.cols&&(this.write((0,K.cursorTo)(u.cols)),this.cursorPos=u)}done({clearContent:u}){this.rl.setPrompt("");let t=(0,K.cursorDown)(this.extraLinesUnderPrompt);t+=u?(0,K.eraseLines)(this.height):`
|
|
22
|
+
`,t+=K.cursorShow,this.write(t),this.rl.close()}};Je.default=Qe});var at=g(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.PromisePolyfill=void 0;var Xe=class extends Promise{static{i(this,"PromisePolyfill")}static withResolver(){let u,t;return{promise:new Promise((r,D)=>{u=r,t=D}),resolve:u,reject:t}}};pe.PromisePolyfill=Xe});var ft=g(R=>{"use strict";var In=R&&R.__createBinding||(Object.create?(function(e,u,t,n){n===void 0&&(n=t);var r=Object.getOwnPropertyDescriptor(u,t);(!r||("get"in r?!u.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:i(function(){return u[t]},"get")}),Object.defineProperty(e,n,r)}):(function(e,u,t,n){n===void 0&&(n=t),e[n]=u[t]})),$n=R&&R.__setModuleDefault||(Object.create?(function(e,u){Object.defineProperty(e,"default",{enumerable:!0,value:u})}):function(e,u){e.default=u}),Nn=R&&R.__importStar||(function(){var e=i(function(u){return e=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},e(u)},"ownKeys");return function(u){if(u&&u.__esModule)return u;var t={};if(u!=null)for(var n=e(u),r=0;r<n.length;r++)n[r]!=="default"&&In(t,u,n[r]);return $n(t,u),t}})(),ct=R&&R.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R,"__esModule",{value:!0});R.createPrompt=Qn;var Gn=Nn(require("node:readline")),Wn=require("node:async_hooks"),Vn=ct(nt()),zn=Dt(),Hn=ct(lt()),Yn=at(),te=N(),ge=re();function Zn(){let e=Error.prepareStackTrace,u=[];try{Error.prepareStackTrace=(t,n)=>{let r=n.slice(1);return u=r,r},new Error().stack}catch{return u}return Error.prepareStackTrace=e,u}i(Zn,"getCallSites");function Qn(e){let u=Zn();return i((n,r={})=>{let{input:D=process.stdin,signal:s}=r,o=new Set,l=new Vn.default;l.pipe(r.output??process.stdout);let a=Gn.createInterface({terminal:!0,input:D,output:l}),f=new Hn.default(a),{promise:p,resolve:y,reject:_}=Yn.PromisePolyfill.withResolver(),M=i(()=>_(new ge.CancelPromptError),"cancel");if(s){let b=i(()=>_(new ge.AbortPromptError({cause:s.reason})),"abort");if(s.aborted)return b(),Object.assign(p,{cancel:M});s.addEventListener("abort",b),o.add(()=>s.removeEventListener("abort",b))}o.add((0,zn.onExit)((b,C)=>{_(new ge.ExitPromptError(`User force closed the prompt with ${b} ${C}`))}));let A=i(()=>_(new ge.ExitPromptError("User force closed the prompt with SIGINT")),"sigint");a.on("SIGINT",A),o.add(()=>a.removeListener("SIGINT",A));let E=i(()=>f.checkCursorPos(),"checkCursorPos");return a.input.on("keypress",E),o.add(()=>a.input.removeListener("keypress",E)),(0,te.withHooks)(a,b=>{let C=Wn.AsyncResource.bind(()=>te.effectScheduler.clearAll());return a.on("close",C),o.add(()=>a.removeListener("close",C)),b(()=>{try{let x=e(n,I=>{setImmediate(()=>y(I))});if(x===void 0){let I=u[1]?.getFileName();throw new Error(`Prompt functions must return a string.
|
|
23
|
+
at ${I}`)}let[ne,Ce]=typeof x=="string"?[x]:x;f.render(ne,Ce),te.effectScheduler.run()}catch(x){_(x)}}),Object.assign(p.then(x=>(te.effectScheduler.clearAll(),x),x=>{throw te.effectScheduler.clearAll(),x}).finally(()=>{o.forEach(x=>x()),f.done({clearContent:!!r.clearPromptOnDone}),l.end()}).then(()=>p),{cancel:M})})},"prompt")}i(Qn,"createPrompt")});var dt=g(X=>{"use strict";var ht=X&&X.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(X,"__esModule",{value:!0});X.Separator=void 0;var Jn=ht(ie()),Xn=ht(oe()),eu=class{static{i(this,"Separator")}separator=Jn.default.dim(Array.from({length:15}).join(Xn.default.line));type="separator";constructor(u){u&&(this.separator=u)}static isSeparator(u){return!!(u&&typeof u=="object"&&"type"in u&&u.type==="separator")}};X.Separator=eu});var uu=g(F=>{"use strict";var er=F&&F.__createBinding||(Object.create?(function(e,u,t,n){n===void 0&&(n=t);var r=Object.getOwnPropertyDescriptor(u,t);(!r||("get"in r?!u.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:i(function(){return u[t]},"get")}),Object.defineProperty(e,n,r)}):(function(e,u,t,n){n===void 0&&(n=t),e[n]=u[t]})),ur=F&&F.__exportStar||function(e,u){for(var t in e)t!=="default"&&!Object.prototype.hasOwnProperty.call(u,t)&&er(u,e,t)};Object.defineProperty(F,"__esModule",{value:!0});F.Separator=F.createPrompt=F.usePagination=F.makeTheme=F.useKeypress=F.useRef=F.useMemo=F.useEffect=F.useState=F.usePrefix=F.isEnterKey=F.isNumberKey=F.isTabKey=F.isBackspaceKey=F.isSpaceKey=F.isDownKey=F.isUpKey=void 0;var W=Du();Object.defineProperty(F,"isUpKey",{enumerable:!0,get:i(function(){return W.isUpKey},"get")});Object.defineProperty(F,"isDownKey",{enumerable:!0,get:i(function(){return W.isDownKey},"get")});Object.defineProperty(F,"isSpaceKey",{enumerable:!0,get:i(function(){return W.isSpaceKey},"get")});Object.defineProperty(F,"isBackspaceKey",{enumerable:!0,get:i(function(){return W.isBackspaceKey},"get")});Object.defineProperty(F,"isTabKey",{enumerable:!0,get:i(function(){return W.isTabKey},"get")});Object.defineProperty(F,"isNumberKey",{enumerable:!0,get:i(function(){return W.isNumberKey},"get")});Object.defineProperty(F,"isEnterKey",{enumerable:!0,get:i(function(){return W.isEnterKey},"get")});ur(re(),F);var tr=Bu();Object.defineProperty(F,"usePrefix",{enumerable:!0,get:i(function(){return tr.usePrefix},"get")});var nr=De();Object.defineProperty(F,"useState",{enumerable:!0,get:i(function(){return nr.useState},"get")});var rr=se();Object.defineProperty(F,"useEffect",{enumerable:!0,get:i(function(){return rr.useEffect},"get")});var Dr=yu();Object.defineProperty(F,"useMemo",{enumerable:!0,get:i(function(){return Dr.useMemo},"get")});var sr=le();Object.defineProperty(F,"useRef",{enumerable:!0,get:i(function(){return sr.useRef},"get")});var ir=_u();Object.defineProperty(F,"useKeypress",{enumerable:!0,get:i(function(){return ir.useKeypress},"get")});var or=xe();Object.defineProperty(F,"makeTheme",{enumerable:!0,get:i(function(){return or.makeTheme},"get")});var lr=ut();Object.defineProperty(F,"usePagination",{enumerable:!0,get:i(function(){return lr.usePagination},"get")});var ar=ft();Object.defineProperty(F,"createPrompt",{enumerable:!0,get:i(function(){return ar.createPrompt},"get")});var cr=dt();Object.defineProperty(F,"Separator",{enumerable:!0,get:i(function(){return cr.Separator},"get")})});var pt=g(V=>{"use strict";var Ft=V&&V.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(V,"__esModule",{value:!0});V.Separator=void 0;var B=uu(),tu=Ft(ie()),fr=Ft(oe()),hr={icon:{cursor:fr.default.pointer},style:{disabled:i(e=>tu.default.dim(`- ${e}`),"disabled"),searchTerm:i(e=>tu.default.cyan(e),"searchTerm"),description:i(e=>tu.default.cyan(e),"description")},helpMode:"auto"};function nu(e){return!B.Separator.isSeparator(e)&&!e.disabled}i(nu,"isSelectable");function dr(e){return e.map(u=>{if(B.Separator.isSeparator(u))return u;if(typeof u=="string")return{value:u,name:u,short:u,disabled:!1};let t=u.name??String(u.value),n={value:u.value,name:t,short:u.short??t,disabled:u.disabled??!1};return u.description&&(n.description=u.description),n})}i(dr,"normalizeChoices");V.default=(0,B.createPrompt)((e,u)=>{let{pageSize:t=7,validate:n=i(()=>!0,"validate")}=e,r=(0,B.makeTheme)(hr,e.theme),D=(0,B.useRef)(!0),[s,o]=(0,B.useState)("loading"),[l,a]=(0,B.useState)(""),[f,p]=(0,B.useState)([]),[y,_]=(0,B.useState)(),M=(0,B.usePrefix)({status:s,theme:r}),A=(0,B.useMemo)(()=>{let m=f.findIndex(nu),k=f.findLastIndex(nu);return{first:m,last:k}},[f]),[E=A.first,b]=(0,B.useState)();(0,B.useEffect)(()=>{let m=new AbortController;return o("loading"),_(void 0),i(async()=>{try{let O=await e.source(l||void 0,{signal:m.signal});m.signal.aborted||(b(void 0),_(void 0),p(dr(O)),o("idle"))}catch(O){!m.signal.aborted&&O instanceof Error&&_(O.message)}},"fetchResults")(),()=>{m.abort()}},[l]);let C=f[E];(0,B.useKeypress)(async(m,k)=>{if((0,B.isEnterKey)(m))if(C){o("loading");let O=await n(C.value);o("idle"),O===!0?(o("done"),u(C.value)):C.name===l?_(O||"You must provide a valid value"):(k.write(C.name),a(C.name))}else k.write(l);else if((0,B.isTabKey)(m)&&C)k.clearLine(0),k.write(C.name),a(C.name);else if(s!=="loading"&&((0,B.isUpKey)(m)||(0,B.isDownKey)(m))){if(k.clearLine(0),(0,B.isUpKey)(m)&&E!==A.first||(0,B.isDownKey)(m)&&E!==A.last){let O=(0,B.isUpKey)(m)?-1:1,z=E;do z=(z+O+f.length)%f.length;while(!nu(f[z]));b(z)}}else a(k.line)});let x=r.style.message(e.message,s);E>0&&(D.current=!1);let ne="";f.length>1&&(r.helpMode==="always"||r.helpMode==="auto"&&D.current)&&(ne=f.length>t?`
|
|
23
24
|
${r.style.help(`(${e.instructions?.pager??"Use arrow keys to reveal more choices"})`)}`:`
|
|
24
|
-
${r.style.help(`(${e.instructions?.navigation??"Use arrow keys"})`)}`);let
|
|
25
|
-
${r.style.description(C.description)}`:"";return[[M,x,
|
|
25
|
+
${r.style.help(`(${e.instructions?.navigation??"Use arrow keys"})`)}`);let Ce=(0,B.usePagination)({items:f,active:E,renderItem({item:m,isActive:k}){if(B.Separator.isSeparator(m))return` ${m.separator}`;if(m.disabled){let Ee=typeof m.disabled=="string"?m.disabled:"(disabled)";return r.style.disabled(`${m.name} ${Ee}`)}let O=k?r.style.highlight:Ee=>Ee,z=k?r.icon.cursor:" ";return O(`${z} ${m.name}`)},pageSize:t,loop:!1}),I;y?I=r.style.error(y):f.length===0&&l!==""&&s==="idle"&&(I=r.style.error("No results found"));let ru;if(s==="done"&&C){let m=C.short;return`${M} ${x} ${r.style.answer(m)}`}else ru=r.style.searchTerm(l);let gt=C?.description?`
|
|
26
|
+
${r.style.description(C.description)}`:"";return[[M,x,ru].filter(Boolean).join(" "),`${I??Ce}${ne}${gt}`]});var Fr=uu();Object.defineProperty(V,"Separator",{enumerable:!0,get:i(function(){return Fr.Separator},"get")})});module.exports=pt();
|