@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,22 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Bundled from @inquirer/input
|
|
3
4
|
* This is a zero-dependency bundle created by esbuild.
|
|
4
5
|
*/
|
|
5
|
-
"use strict";var it=Object.defineProperty;var s=(e,u)=>it(e,"name",{value:u,configurable:!0});var p=(e,u)=>()=>(u||e((u={exports:{}}).exports,u),u.exports);var Ye=p(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.isEnterKey=w.isNumberKey=w.isTabKey=w.isBackspaceKey=w.isSpaceKey=w.isDownKey=w.isUpKey=void 0;var st=s((e,u=[])=>e.name==="up"||u.includes("vim")&&e.name==="k"||u.includes("emacs")&&e.ctrl&&e.name==="p","isUpKey");w.isUpKey=st;var ot=s((e,u=[])=>e.name==="down"||u.includes("vim")&&e.name==="j"||u.includes("emacs")&&e.ctrl&&e.name==="n","isDownKey");w.isDownKey=ot;var lt=s(e=>e.name==="space","isSpaceKey");w.isSpaceKey=lt;var at=s(e=>e.name==="backspace","isBackspaceKey");w.isBackspaceKey=at;var ct=s(e=>e.name==="tab","isTabKey");w.isTabKey=ct;var ft=s(e=>"1234567890".includes(e.name),"isNumberKey");w.isNumberKey=ft;var ht=s(e=>e.name==="enter"||e.name==="return","isEnterKey");w.isEnterKey=ht});var ee=p(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.ValidationError=x.HookError=x.ExitPromptError=x.CancelPromptError=x.AbortPromptError=void 0;var fe=class extends Error{static{s(this,"AbortPromptError")}name="AbortPromptError";message="Prompt was aborted";constructor(u){super(),this.cause=u?.cause}};x.AbortPromptError=fe;var he=class extends Error{static{s(this,"CancelPromptError")}name="CancelPromptError";message="Prompt was canceled"};x.CancelPromptError=he;var de=class extends Error{static{s(this,"ExitPromptError")}name="ExitPromptError"};x.ExitPromptError=de;var Fe=class extends Error{static{s(this,"HookError")}name="HookError"};x.HookError=Fe;var Ce=class extends Error{static{s(this,"ValidationError")}name="ValidationError"};x.ValidationError=Ce});var T=p(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.effectScheduler=void 0;M.withHooks=Ft;M.readline=Xe;M.withUpdates=eu;M.withPointer=Ct;M.handleChange=pt;var Ze=require("node:async_hooks"),Qe=ee(),Je=new Ze.AsyncLocalStorage;function dt(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}s(dt,"createStore");function Ft(e,u){let t=dt(e);return Je.run(t,()=>{function n(D){t.handleChange=()=>{t.index=0,D()},t.handleChange()}return s(n,"cycle"),u(n)})}s(Ft,"withHooks");function q(){let e=Je.getStore();if(!e)throw new Qe.HookError("[Inquirer] Hook functions can only be called from within a prompt");return e}s(q,"getStore");function Xe(){return q().rl}s(Xe,"readline");function eu(e){let u=s((...t)=>{let n=q(),D=!1,r=n.handleChange;n.handleChange=()=>{D=!0};let i=e(...t);return D&&r(),n.handleChange=r,i},"wrapped");return Ze.AsyncResource.bind(u)}s(eu,"withUpdates");function Ct(e){let u=q(),{index:t}=u,n={get(){return u.hooks[t]},set(r){u.hooks[t]=r},initialized:t in u.hooks},D=e(n);return u.index++,D}s(Ct,"withPointer");function pt(){q().handleChange()}s(pt,"handleChange");M.effectScheduler={queue(e){let u=q(),{index:t}=u;u.hooksEffect.push(()=>{u.hooksCleanup[t]?.();let n=e(Xe());if(n!=null&&typeof n!="function")throw new Qe.ValidationError("useEffect return value must be a cleanup function or nothing.");u.hooksCleanup[t]=n})},run(){let e=q();eu(()=>{e.hooksEffect.forEach(u=>{u()}),e.hooksEffect.length=0})()},clearAll(){let e=q();e.hooksCleanup.forEach(u=>{u?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}}});var ue=p(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.useState=Et;var gt=require("node:async_hooks"),uu=T();function Et(e){return(0,uu.withPointer)(u=>{let t=gt.AsyncResource.bind(s(function(r){u.get()!==r&&(u.set(r),(0,uu.handleChange)())},"setState"));if(u.initialized)return[u.get(),t];let n=typeof e=="function"?e():e;return u.set(n),[n,t]})}s(Et,"useState")});var te=p(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.useEffect=bt;var tu=T();function bt(e,u){(0,tu.withPointer)(t=>{let n=t.get();(!Array.isArray(n)||u.some((r,i)=>!Object.is(r,n[i])))&&tu.effectScheduler.queue(e),t.set(u)})}s(bt,"useEffect")});var Ee=p((fD,nu)=>{var mt=require("node:tty"),Bt=mt?.WriteStream?.prototype?.hasColors?.()??!1,d=s((e,u)=>{if(!Bt)return D=>D;let t=`\x1B[${e}m`,n=`\x1B[${u}m`;return D=>{let r=D+"",i=r.indexOf(n);if(i===-1)return t+r+n;let o=t,l=0,f=(u===22?n:"")+t;for(;i!==-1;)o+=r.slice(l,i)+f,l=i+n.length,i=r.indexOf(n,l);return o+=r.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);nu.exports=h});var be=p(v=>{"use strict";var yt=v&&v.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(v,"__esModule",{value:!0});v.replaceSymbols=v.fallbackSymbols=v.mainSymbols=void 0;var O=yt(require("node:process"));function _t(){return O.default.platform!=="win32"?O.default.env.TERM!=="linux":!!O.default.env.WT_SESSION||!!O.default.env.TERMINUS_SUBLIME||O.default.env.ConEmuTask==="{cmd::Cmder}"||O.default.env.TERM_PROGRAM==="Terminus-Sublime"||O.default.env.TERM_PROGRAM==="vscode"||O.default.env.TERM==="xterm-256color"||O.default.env.TERM==="alacritty"||O.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}s(_t,"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:"╱"},ru={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:"⅒"},wt={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"};v.mainSymbols={...Du,...ru};v.fallbackSymbols={...Du,...wt};var iu=_t(),At=iu?v.mainSymbols:v.fallbackSymbols;v.default=At;var vt=Object.entries(ru),xt=s((e,{useFallback:u=!iu}={})=>{if(u)for(let[t,n]of vt){let D=v.fallbackSymbols[t];if(!D)throw new Error(`Unable to find fallback for ${t}`);e=e.replaceAll(n,D)}return e},"replaceSymbols");v.replaceSymbols=xt});var ou=p($=>{"use strict";var su=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($,"__esModule",{value:!0});$.defaultTheme=void 0;var S=su(Ee()),kt=su(be());$.defaultTheme={prefix:{idle:S.default.blue("?"),done:S.default.green(kt.default.tick)},spinner:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map(e=>S.default.yellow(e))},style:{answer:S.default.cyan,message:S.default.bold,error:s(e=>S.default.red(`> ${e}`),"error"),defaultAnswer:s(e=>S.default.dim(`(${e})`),"defaultAnswer"),help:S.default.dim,highlight:S.default.cyan,key:s(e=>S.default.cyan(S.default.bold(`<${e}>`)),"key")}}});var Be=p(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.makeTheme=Lt;var St=ou();function lu(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}s(lu,"isPlainObject");function au(...e){let u={};for(let t of e)for(let[n,D]of Object.entries(t)){let r=u[n];u[n]=lu(r)&&lu(D)?au(r,D):D}return u}s(au,"deepMerge");function Lt(...e){let u=[St.defaultTheme,...e.filter(t=>t!=null)];return au(...u)}s(Lt,"makeTheme")});var fu=p(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.usePrefix=Rt;var cu=ue(),Ot=te(),Pt=Be();function Rt({status:e="idle",theme:u}){let[t,n]=(0,cu.useState)(!1),[D,r]=(0,cu.useState)(0),{prefix:i,spinner:o}=(0,Pt.makeTheme)(u);return(0,Ot.useEffect)(()=>{if(e==="loading"){let a,f=-1,C=setTimeout(()=>{n(!0),a=setInterval(()=>{f=f+1,r(f%o.frames.length)},o.interval)},300);return()=>{clearTimeout(C),clearInterval(a)}}else n(!1)},[e]),t?o.frames[D]:typeof i=="string"?i:i[e==="loading"?"idle":e]??i.idle}s(Rt,"usePrefix")});var hu=p(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.useMemo=jt;var Mt=T();function jt(e,u){return(0,Mt.withPointer)(t=>{let n=t.get();if(!n||n.dependencies.length!==u.length||n.dependencies.some((D,r)=>D!==u[r])){let D=e();return t.set({value:D,dependencies:u}),D}return n.value})}s(jt,"useMemo")});var ne=p(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.useRef=qt;var Ut=ue();function qt(e){return(0,Ut.useState)({current:e})[0]}s(qt,"useRef")});var du=p(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.useKeypress=Nt;var Tt=ne(),Kt=te(),It=T();function Nt(e){let u=(0,Tt.useRef)(e);u.current=e,(0,Kt.useEffect)(t=>{let n=!1,D=(0,It.withUpdates)((r,i)=>{n||u.current(i,t)});return t.input.on("keypress",D),()=>{n=!0,t.input.removeListener("keypress",D)}},[])}s(Nt,"useKeypress")});var Cu=p((xD,Fu)=>{"use strict";Fu.exports=Wt;function Gt(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}s(Gt,"normalizeOpts");function Wt(e){let u=Gt(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}s(Wt,"cliWidth")});var gu=p((SD,pu)=>{"use strict";pu.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 ve=p((LD,Eu)=>{"use strict";var $t=gu();Eu.exports=e=>typeof e=="string"?e.replace($t(),""):e});var mu=p((OD,xe)=>{"use strict";var bu=s(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");xe.exports=bu;xe.exports.default=bu});var yu=p((RD,Bu)=>{"use strict";Bu.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 wu=p((MD,ke)=>{"use strict";var Vt=ve(),Ht=mu(),zt=yu(),_u=s(e=>{if(typeof e!="string"||e.length===0||(e=Vt(e),e.length===0))return 0;e=e.replace(zt()," ");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+=Ht(n)?2:1)}return u},"stringWidth");ke.exports=_u;ke.exports.default=_u});var vu=p((UD,Au)=>{"use strict";Au.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 Se=p((qD,ku)=>{var Q=vu(),xu={};for(let e of Object.keys(Q))xu[Q[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"]}};ku.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,D=Math.min(u,t,n),r=Math.max(u,t,n),i=r-D,o,l;r===D?o=0:u===r?o=(t-n)/i:t===r?o=2+(n-u)/i:n===r&&(o=4+(u-t)/i),o=Math.min(o*60,360),o<0&&(o+=360);let a=(D+r)/2;return r===D?l=0:a<=.5?l=i/(r+D):l=i/(2-r-D),[o,l*100,a*100]};c.rgb.hsv=function(e){let u,t,n,D,r,i=e[0]/255,o=e[1]/255,l=e[2]/255,a=Math.max(i,o,l),f=a-Math.min(i,o,l),C=s(function(E){return(a-E)/6/f+1/2},"diffc");return f===0?(D=0,r=0):(r=f/a,u=C(i),t=C(o),n=C(l),i===a?D=n-t:o===a?D=1/3+u-n:l===a&&(D=2/3+t-u),D<0?D+=1:D>1&&(D-=1)),[D*360,r*100,a*100]};c.rgb.hwb=function(e){let u=e[0],t=e[1],n=e[2],D=c.rgb.hsl(e)[0],r=1/255*Math.min(u,Math.min(t,n));return n=1-1/255*Math.max(u,Math.max(t,n)),[D,r*100,n*100]};c.rgb.cmyk=function(e){let u=e[0]/255,t=e[1]/255,n=e[2]/255,D=Math.min(1-u,1-t,1-n),r=(1-u-D)/(1-D)||0,i=(1-t-D)/(1-D)||0,o=(1-n-D)/(1-D)||0;return[r*100,i*100,o*100,D*100]};function Yt(e,u){return(e[0]-u[0])**2+(e[1]-u[1])**2+(e[2]-u[2])**2}s(Yt,"comparativeDistance");c.rgb.keyword=function(e){let u=xu[e];if(u)return u;let t=1/0,n;for(let D of Object.keys(Q)){let r=Q[D],i=Yt(e,r);i<t&&(t=i,n=D)}return n};c.keyword.rgb=function(e){return Q[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 D=u*.4124+t*.3576+n*.1805,r=u*.2126+t*.7152+n*.0722,i=u*.0193+t*.1192+n*.9505;return[D*100,r*100,i*100]};c.rgb.lab=function(e){let u=c.rgb.xyz(e),t=u[0],n=u[1],D=u[2];t/=95.047,n/=100,D/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,D=D>.008856?D**(1/3):7.787*D+16/116;let r=116*n-16,i=500*(t-n),o=200*(n-D);return[r,i,o]};c.hsl.rgb=function(e){let u=e[0]/360,t=e[1]/100,n=e[2]/100,D,r,i;if(t===0)return i=n*255,[i,i,i];n<.5?D=n*(1+t):D=n+t-n*t;let o=2*n-D,l=[0,0,0];for(let a=0;a<3;a++)r=u+1/3*-(a-1),r<0&&r++,r>1&&r--,6*r<1?i=o+(D-o)*6*r:2*r<1?i=D:3*r<2?i=o+(D-o)*(2/3-r)*6:i=o,l[a]=i*255;return l};c.hsl.hsv=function(e){let u=e[0],t=e[1]/100,n=e[2]/100,D=t,r=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,D*=r<=1?r:2-r;let i=(n+t)/2,o=n===0?2*D/(r+D):2*t/(n+t);return[u,o*100,i*100]};c.hsv.rgb=function(e){let u=e[0]/60,t=e[1]/100,n=e[2]/100,D=Math.floor(u)%6,r=u-Math.floor(u),i=255*n*(1-t),o=255*n*(1-t*r),l=255*n*(1-t*(1-r));switch(n*=255,D){case 0:return[n,l,i];case 1:return[o,n,i];case 2:return[i,n,l];case 3:return[i,o,n];case 4:return[l,i,n];case 5:return[n,i,o]}};c.hsv.hsl=function(e){let u=e[0],t=e[1]/100,n=e[2]/100,D=Math.max(n,.01),r,i;i=(2-t)*n;let o=(2-t)*D;return r=t*D,r/=o<=1?o:2-o,r=r||0,i/=2,[u,r*100,i*100]};c.hwb.rgb=function(e){let u=e[0]/360,t=e[1]/100,n=e[2]/100,D=t+n,r;D>1&&(t/=D,n/=D);let i=Math.floor(6*u),o=1-n;r=6*u-i,(i&1)!==0&&(r=1-r);let l=t+r*(o-t),a,f,C;switch(i){default:case 6:case 0:a=o,f=l,C=t;break;case 1:a=l,f=o,C=t;break;case 2:a=t,f=o,C=l;break;case 3:a=t,f=l,C=o;break;case 4:a=l,f=t,C=o;break;case 5:a=o,f=t,C=l;break}return[a*255,f*255,C*255]};c.cmyk.rgb=function(e){let u=e[0]/100,t=e[1]/100,n=e[2]/100,D=e[3]/100,r=1-Math.min(1,u*(1-D)+D),i=1-Math.min(1,t*(1-D)+D),o=1-Math.min(1,n*(1-D)+D);return[r*255,i*255,o*255]};c.xyz.rgb=function(e){let u=e[0]/100,t=e[1]/100,n=e[2]/100,D,r,i;return D=u*3.2406+t*-1.5372+n*-.4986,r=u*-.9689+t*1.8758+n*.0415,i=u*.0557+t*-.204+n*1.057,D=D>.0031308?1.055*D**(1/2.4)-.055:D*12.92,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,D=Math.min(Math.max(0,D),1),r=Math.min(Math.max(0,r),1),i=Math.min(Math.max(0,i),1),[D*255,r*255,i*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 D=116*t-16,r=500*(u-t),i=200*(t-n);return[D,r,i]};c.lab.xyz=function(e){let u=e[0],t=e[1],n=e[2],D,r,i;r=(u+16)/116,D=t/500+r,i=r-n/200;let o=r**3,l=D**3,a=i**3;return r=o>.008856?o:(r-16/116)/7.787,D=l>.008856?l:(D-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,D*=95.047,r*=100,i*=108.883,[D,r,i]};c.lab.lch=function(e){let u=e[0],t=e[1],n=e[2],D;D=Math.atan2(n,t)*360/2/Math.PI,D<0&&(D+=360);let i=Math.sqrt(t*t+n*n);return[u,i,D]};c.lch.lab=function(e){let u=e[0],t=e[1],D=e[2]/360*2*Math.PI,r=t*Math.cos(D),i=t*Math.sin(D);return[u,r,i]};c.rgb.ansi16=function(e,u=null){let[t,n,D]=e,r=u===null?c.rgb.hsv(e)[2]:u;if(r=Math.round(r/50),r===0)return 30;let i=30+(Math.round(D/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return r===2&&(i+=60),i};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,D=(u>>1&1)*t*255,r=(u>>2&1)*t*255;return[n,D,r]};c.ansi256.rgb=function(e){if(e>=232){let r=(e-232)*10+8;return[r,r,r]}e-=16;let u,t=Math.floor(e/36)/5*255,n=Math.floor((u=e%36)/6)/5*255,D=u%6/5*255;return[t,n,D]};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),D=n>>16&255,r=n>>8&255,i=n&255;return[D,r,i]};c.rgb.hcg=function(e){let u=e[0]/255,t=e[1]/255,n=e[2]/255,D=Math.max(Math.max(u,t),n),r=Math.min(Math.min(u,t),n),i=D-r,o,l;return i<1?o=r/(1-i):o=0,i<=0?l=0:D===u?l=(t-n)/i%6:D===t?l=2+(n-u)/i:l=4+(u-t)/i,l/=6,l%=1,[l*360,i*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),D=0;return n<1&&(D=(t-.5*n)/(1-n)),[e[0],n*100,D*100]};c.hsv.hcg=function(e){let u=e[1]/100,t=e[2]/100,n=u*t,D=0;return n<1&&(D=(t-n)/(1-n)),[e[0],n*100,D*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 D=[0,0,0],r=u%1*6,i=r%1,o=1-i,l=0;switch(Math.floor(r)){case 0:D[0]=1,D[1]=i,D[2]=0;break;case 1:D[0]=o,D[1]=1,D[2]=0;break;case 2:D[0]=0,D[1]=1,D[2]=i;break;case 3:D[0]=0,D[1]=o,D[2]=1;break;case 4:D[0]=i,D[1]=0,D[2]=1;break;default:D[0]=1,D[1]=0,D[2]=o}return l=(1-t)*n,[(t*D[0]+l)*255,(t*D[1]+l)*255,(t*D[2]+l)*255]};c.hcg.hsv=function(e){let u=e[1]/100,t=e[2]/100,n=u+t*(1-u),D=0;return n>0&&(D=u/n),[e[0],D*100,n*100]};c.hcg.hsl=function(e){let u=e[1]/100,n=e[2]/100*(1-u)+.5*u,D=0;return n>0&&n<.5?D=u/(2*n):n>=.5&&n<1&&(D=u/(2*(1-n))),[e[0],D*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,D=n-u,r=0;return D<1&&(r=(n-D)/(1-D)),[e[0],D*100,r*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 Lu=p((KD,Su)=>{var De=Se();function Zt(){let e={},u=Object.keys(De);for(let t=u.length,n=0;n<t;n++)e[u[n]]={distance:-1,parent:null};return e}s(Zt,"buildGraph");function Qt(e){let u=Zt(),t=[e];for(u[e].distance=0;t.length;){let n=t.pop(),D=Object.keys(De[n]);for(let r=D.length,i=0;i<r;i++){let o=D[i],l=u[o];l.distance===-1&&(l.distance=u[n].distance+1,l.parent=n,t.unshift(o))}}return u}s(Qt,"deriveBFS");function Jt(e,u){return function(t){return u(e(t))}}s(Jt,"link");function Xt(e,u){let t=[u[e].parent,e],n=De[u[e].parent][e],D=u[e].parent;for(;u[D].parent;)t.unshift(u[D].parent),n=Jt(De[u[D].parent][D],n),D=u[D].parent;return n.conversion=t,n}s(Xt,"wrapConversion");Su.exports=function(e){let u=Qt(e),t={},n=Object.keys(u);for(let D=n.length,r=0;r<D;r++){let i=n[r];u[i].parent!==null&&(t[i]=Xt(i,u))}return t}});var Pu=p((ND,Ou)=>{var Le=Se(),en=Lu(),V={},un=Object.keys(Le);function tn(e){let u=s(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}s(tn,"wrapRaw");function nn(e){let u=s(function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let D=e(t);if(typeof D=="object")for(let r=D.length,i=0;i<r;i++)D[i]=Math.round(D[i]);return D},"wrappedFn");return"conversion"in e&&(u.conversion=e.conversion),u}s(nn,"wrapRounded");un.forEach(e=>{V[e]={},Object.defineProperty(V[e],"channels",{value:Le[e].channels}),Object.defineProperty(V[e],"labels",{value:Le[e].labels});let u=en(e);Object.keys(u).forEach(n=>{let D=u[n];V[e][n]=nn(D),V[e][n].raw=tn(D)})});Ou.exports=V});var Tu=p((WD,qu)=>{"use strict";var Ru=s((e,u)=>(...t)=>`\x1B[${e(...t)+u}m`,"wrapAnsi16"),Mu=s((e,u)=>(...t)=>{let n=e(...t);return`\x1B[${38+u};5;${n}m`},"wrapAnsi256"),ju=s((e,u)=>(...t)=>{let n=e(...t);return`\x1B[${38+u};2;${n[0]};${n[1]};${n[2]}m`},"wrapAnsi16m"),re=s(e=>e,"ansi2ansi"),Uu=s((e,u,t)=>[e,u,t],"rgb2rgb"),H=s((e,u,t)=>{Object.defineProperty(e,u,{get:s(()=>{let n=t();return Object.defineProperty(e,u,{value:n,enumerable:!0,configurable:!0}),n},"get"),enumerable:!0,configurable:!0})},"setLazyProperty"),Oe,z=s((e,u,t,n)=>{Oe===void 0&&(Oe=Pu());let D=n?10:0,r={};for(let[i,o]of Object.entries(Oe)){let l=i==="ansi16"?"ansi":i;i===u?r[l]=e(t,D):typeof o=="object"&&(r[l]=e(o[u],D))}return r},"makeDynamicStyles");function Dn(){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[D,r]of Object.entries(n))u[D]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[D]=u[D],e.set(r[0],r[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",H(u.color,"ansi",()=>z(Ru,"ansi16",re,!1)),H(u.color,"ansi256",()=>z(Mu,"ansi256",re,!1)),H(u.color,"ansi16m",()=>z(ju,"rgb",Uu,!1)),H(u.bgColor,"ansi",()=>z(Ru,"ansi16",re,!0)),H(u.bgColor,"ansi256",()=>z(Mu,"ansi256",re,!0)),H(u.bgColor,"ansi16m",()=>z(ju,"rgb",Uu,!0)),u}s(Dn,"assembleStyles");Object.defineProperty(qu,"exports",{enumerable:!0,get:Dn})});var Nu=p((VD,Iu)=>{"use strict";var J=wu(),rn=ve(),sn=Tu(),Re=new Set(["\x1B",""]),on=39,Ku=s(e=>`${Re.values().next().value}[${e}m`,"wrapAnsi"),ln=s(e=>e.split(" ").map(u=>J(u)),"wordLengths"),Pe=s((e,u,t)=>{let n=[...u],D=!1,r=J(rn(e[e.length-1]));for(let[i,o]of n.entries()){let l=J(o);if(r+l<=t?e[e.length-1]+=o:(e.push(o),r=0),Re.has(o))D=!0;else if(D&&o==="m"){D=!1;continue}D||(r+=l,r===t&&i<n.length-1&&(e.push(""),r=0))}!r&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},"wrapWord"),an=s(e=>{let u=e.split(" "),t=u.length;for(;t>0&&!(J(u[t-1])>0);)t--;return t===u.length?e:u.slice(0,t).join(" ")+u.slice(t).join("")},"stringVisibleTrimSpacesRight"),cn=s((e,u,t={})=>{if(t.trim!==!1&&e.trim()==="")return"";let n="",D="",r,i=ln(e),o=[""];for(let[l,a]of e.split(" ").entries()){t.trim!==!1&&(o[o.length-1]=o[o.length-1].trimLeft());let f=J(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&&i[l]>u){let C=u-f,E=1+Math.floor((i[l]-C-1)/u);Math.floor((i[l]-1)/u)<E&&o.push(""),Pe(o,a,u);continue}if(f+i[l]>u&&f>0&&i[l]>0){if(t.wordWrap===!1&&f<u){Pe(o,a,u);continue}o.push("")}if(f+i[l]>u&&t.wordWrap===!1){Pe(o,a,u);continue}o[o.length-1]+=a}t.trim!==!1&&(o=o.map(an)),n=o.join(`
|
|
6
|
-
`);for(let[l,a]of[...n].entries()){if(D+=a,Re.has(a)){let C=parseFloat(/\d[^m]*/.exec(n.slice(l,l+4)));r=C===
|
|
7
|
-
`?D+=
|
|
8
|
-
`&&(D+=
|
|
6
|
+
"use strict";var ot=Object.defineProperty;var s=(e,u)=>ot(e,"name",{value:u,configurable:!0});var p=(e,u)=>()=>(u||e((u={exports:{}}).exports,u),u.exports);var Ze=p(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.isEnterKey=w.isNumberKey=w.isTabKey=w.isBackspaceKey=w.isSpaceKey=w.isDownKey=w.isUpKey=void 0;var lt=s((e,u=[])=>e.name==="up"||u.includes("vim")&&e.name==="k"||u.includes("emacs")&&e.ctrl&&e.name==="p","isUpKey");w.isUpKey=lt;var at=s((e,u=[])=>e.name==="down"||u.includes("vim")&&e.name==="j"||u.includes("emacs")&&e.ctrl&&e.name==="n","isDownKey");w.isDownKey=at;var ct=s(e=>e.name==="space","isSpaceKey");w.isSpaceKey=ct;var ft=s(e=>e.name==="backspace","isBackspaceKey");w.isBackspaceKey=ft;var ht=s(e=>e.name==="tab","isTabKey");w.isTabKey=ht;var dt=s(e=>"1234567890".includes(e.name),"isNumberKey");w.isNumberKey=dt;var Ft=s(e=>e.name==="enter"||e.name==="return","isEnterKey");w.isEnterKey=Ft});var ee=p(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.ValidationError=x.HookError=x.ExitPromptError=x.CancelPromptError=x.AbortPromptError=void 0;var fe=class extends Error{static{s(this,"AbortPromptError")}name="AbortPromptError";message="Prompt was aborted";constructor(u){super(),this.cause=u?.cause}};x.AbortPromptError=fe;var he=class extends Error{static{s(this,"CancelPromptError")}name="CancelPromptError";message="Prompt was canceled"};x.CancelPromptError=he;var de=class extends Error{static{s(this,"ExitPromptError")}name="ExitPromptError"};x.ExitPromptError=de;var Fe=class extends Error{static{s(this,"HookError")}name="HookError"};x.HookError=Fe;var Ce=class extends Error{static{s(this,"ValidationError")}name="ValidationError"};x.ValidationError=Ce});var T=p(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.effectScheduler=void 0;M.withHooks=pt;M.readline=eu;M.withUpdates=uu;M.withPointer=gt;M.handleChange=Et;var Qe=require("node:async_hooks"),Je=ee(),Xe=new Qe.AsyncLocalStorage;function Ct(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}s(Ct,"createStore");function pt(e,u){let t=Ct(e);return Xe.run(t,()=>{function n(D){t.handleChange=()=>{t.index=0,D()},t.handleChange()}return s(n,"cycle"),u(n)})}s(pt,"withHooks");function q(){let e=Xe.getStore();if(!e)throw new Je.HookError("[Inquirer] Hook functions can only be called from within a prompt");return e}s(q,"getStore");function eu(){return q().rl}s(eu,"readline");function uu(e){let u=s((...t)=>{let n=q(),D=!1,r=n.handleChange;n.handleChange=()=>{D=!0};let i=e(...t);return D&&r(),n.handleChange=r,i},"wrapped");return Qe.AsyncResource.bind(u)}s(uu,"withUpdates");function gt(e){let u=q(),{index:t}=u,n={get(){return u.hooks[t]},set(r){u.hooks[t]=r},initialized:t in u.hooks},D=e(n);return u.index++,D}s(gt,"withPointer");function Et(){q().handleChange()}s(Et,"handleChange");M.effectScheduler={queue(e){let u=q(),{index:t}=u;u.hooksEffect.push(()=>{u.hooksCleanup[t]?.();let n=e(eu());if(n!=null&&typeof n!="function")throw new Je.ValidationError("useEffect return value must be a cleanup function or nothing.");u.hooksCleanup[t]=n})},run(){let e=q();uu(()=>{e.hooksEffect.forEach(u=>{u()}),e.hooksEffect.length=0})()},clearAll(){let e=q();e.hooksCleanup.forEach(u=>{u?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}}});var ue=p(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.useState=mt;var bt=require("node:async_hooks"),tu=T();function mt(e){return(0,tu.withPointer)(u=>{let t=bt.AsyncResource.bind(s(function(r){u.get()!==r&&(u.set(r),(0,tu.handleChange)())},"setState"));if(u.initialized)return[u.get(),t];let n=typeof e=="function"?e():e;return u.set(n),[n,t]})}s(mt,"useState")});var te=p(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.useEffect=Bt;var nu=T();function Bt(e,u){(0,nu.withPointer)(t=>{let n=t.get();(!Array.isArray(n)||u.some((r,i)=>!Object.is(r,n[i])))&&nu.effectScheduler.queue(e),t.set(u)})}s(Bt,"useEffect")});var Ee=p((dD,Du)=>{var yt=require("node:tty"),_t=yt?.WriteStream?.prototype?.hasColors?.()??!1,d=s((e,u)=>{if(!_t)return D=>D;let t=`\x1B[${e}m`,n=`\x1B[${u}m`;return D=>{let r=D+"",i=r.indexOf(n);if(i===-1)return t+r+n;let o=t,l=0,f=(u===22?n:"")+t;for(;i!==-1;)o+=r.slice(l,i)+f,l=i+n.length,i=r.indexOf(n,l);return o+=r.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);Du.exports=h});var be=p(v=>{"use strict";var wt=v&&v.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(v,"__esModule",{value:!0});v.replaceSymbols=v.fallbackSymbols=v.mainSymbols=void 0;var O=wt(require("node:process"));function At(){return O.default.platform!=="win32"?O.default.env.TERM!=="linux":!!O.default.env.WT_SESSION||!!O.default.env.TERMINUS_SUBLIME||O.default.env.ConEmuTask==="{cmd::Cmder}"||O.default.env.TERM_PROGRAM==="Terminus-Sublime"||O.default.env.TERM_PROGRAM==="vscode"||O.default.env.TERM==="xterm-256color"||O.default.env.TERM==="alacritty"||O.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}s(At,"isUnicodeSupported");var ru={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:"╱"},iu={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:"⅒"},vt={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"};v.mainSymbols={...ru,...iu};v.fallbackSymbols={...ru,...vt};var su=At(),xt=su?v.mainSymbols:v.fallbackSymbols;v.default=xt;var kt=Object.entries(iu),St=s((e,{useFallback:u=!su}={})=>{if(u)for(let[t,n]of kt){let D=v.fallbackSymbols[t];if(!D)throw new Error(`Unable to find fallback for ${t}`);e=e.replaceAll(n,D)}return e},"replaceSymbols");v.replaceSymbols=St});var lu=p($=>{"use strict";var ou=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($,"__esModule",{value:!0});$.defaultTheme=void 0;var S=ou(Ee()),Lt=ou(be());$.defaultTheme={prefix:{idle:S.default.blue("?"),done:S.default.green(Lt.default.tick)},spinner:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map(e=>S.default.yellow(e))},style:{answer:S.default.cyan,message:S.default.bold,error:s(e=>S.default.red(`> ${e}`),"error"),defaultAnswer:s(e=>S.default.dim(`(${e})`),"defaultAnswer"),help:S.default.dim,highlight:S.default.cyan,key:s(e=>S.default.cyan(S.default.bold(`<${e}>`)),"key")}}});var Be=p(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.makeTheme=Pt;var Ot=lu();function au(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}s(au,"isPlainObject");function cu(...e){let u={};for(let t of e)for(let[n,D]of Object.entries(t)){let r=u[n];u[n]=au(r)&&au(D)?cu(r,D):D}return u}s(cu,"deepMerge");function Pt(...e){let u=[Ot.defaultTheme,...e.filter(t=>t!=null)];return cu(...u)}s(Pt,"makeTheme")});var hu=p(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.usePrefix=jt;var fu=ue(),Rt=te(),Mt=Be();function jt({status:e="idle",theme:u}){let[t,n]=(0,fu.useState)(!1),[D,r]=(0,fu.useState)(0),{prefix:i,spinner:o}=(0,Mt.makeTheme)(u);return(0,Rt.useEffect)(()=>{if(e==="loading"){let a,f=-1,C=setTimeout(()=>{n(!0),a=setInterval(()=>{f=f+1,r(f%o.frames.length)},o.interval)},300);return()=>{clearTimeout(C),clearInterval(a)}}else n(!1)},[e]),t?o.frames[D]:typeof i=="string"?i:i[e==="loading"?"idle":e]??i.idle}s(jt,"usePrefix")});var du=p(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.useMemo=qt;var Ut=T();function qt(e,u){return(0,Ut.withPointer)(t=>{let n=t.get();if(!n||n.dependencies.length!==u.length||n.dependencies.some((D,r)=>D!==u[r])){let D=e();return t.set({value:D,dependencies:u}),D}return n.value})}s(qt,"useMemo")});var ne=p(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.useRef=Kt;var Tt=ue();function Kt(e){return(0,Tt.useState)({current:e})[0]}s(Kt,"useRef")});var Fu=p(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.useKeypress=Wt;var It=ne(),Nt=te(),Gt=T();function Wt(e){let u=(0,It.useRef)(e);u.current=e,(0,Nt.useEffect)(t=>{let n=!1,D=(0,Gt.withUpdates)((r,i)=>{n||u.current(i,t)});return t.input.on("keypress",D),()=>{n=!0,t.input.removeListener("keypress",D)}},[])}s(Wt,"useKeypress")});var pu=p((SD,Cu)=>{"use strict";Cu.exports=Vt;function $t(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}s($t,"normalizeOpts");function Vt(e){let u=$t(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}s(Vt,"cliWidth")});var Eu=p((OD,gu)=>{"use strict";gu.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 ve=p((PD,bu)=>{"use strict";var Ht=Eu();bu.exports=e=>typeof e=="string"?e.replace(Ht(),""):e});var Bu=p((RD,xe)=>{"use strict";var mu=s(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");xe.exports=mu;xe.exports.default=mu});var _u=p((jD,yu)=>{"use strict";yu.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 Au=p((UD,ke)=>{"use strict";var zt=ve(),Yt=Bu(),Zt=_u(),wu=s(e=>{if(typeof e!="string"||e.length===0||(e=zt(e),e.length===0))return 0;e=e.replace(Zt()," ");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+=Yt(n)?2:1)}return u},"stringWidth");ke.exports=wu;ke.exports.default=wu});var xu=p((TD,vu)=>{"use strict";vu.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 Se=p((KD,Su)=>{var Q=xu(),ku={};for(let e of Object.keys(Q))ku[Q[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"]}};Su.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,D=Math.min(u,t,n),r=Math.max(u,t,n),i=r-D,o,l;r===D?o=0:u===r?o=(t-n)/i:t===r?o=2+(n-u)/i:n===r&&(o=4+(u-t)/i),o=Math.min(o*60,360),o<0&&(o+=360);let a=(D+r)/2;return r===D?l=0:a<=.5?l=i/(r+D):l=i/(2-r-D),[o,l*100,a*100]};c.rgb.hsv=function(e){let u,t,n,D,r,i=e[0]/255,o=e[1]/255,l=e[2]/255,a=Math.max(i,o,l),f=a-Math.min(i,o,l),C=s(function(E){return(a-E)/6/f+1/2},"diffc");return f===0?(D=0,r=0):(r=f/a,u=C(i),t=C(o),n=C(l),i===a?D=n-t:o===a?D=1/3+u-n:l===a&&(D=2/3+t-u),D<0?D+=1:D>1&&(D-=1)),[D*360,r*100,a*100]};c.rgb.hwb=function(e){let u=e[0],t=e[1],n=e[2],D=c.rgb.hsl(e)[0],r=1/255*Math.min(u,Math.min(t,n));return n=1-1/255*Math.max(u,Math.max(t,n)),[D,r*100,n*100]};c.rgb.cmyk=function(e){let u=e[0]/255,t=e[1]/255,n=e[2]/255,D=Math.min(1-u,1-t,1-n),r=(1-u-D)/(1-D)||0,i=(1-t-D)/(1-D)||0,o=(1-n-D)/(1-D)||0;return[r*100,i*100,o*100,D*100]};function Qt(e,u){return(e[0]-u[0])**2+(e[1]-u[1])**2+(e[2]-u[2])**2}s(Qt,"comparativeDistance");c.rgb.keyword=function(e){let u=ku[e];if(u)return u;let t=1/0,n;for(let D of Object.keys(Q)){let r=Q[D],i=Qt(e,r);i<t&&(t=i,n=D)}return n};c.keyword.rgb=function(e){return Q[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 D=u*.4124+t*.3576+n*.1805,r=u*.2126+t*.7152+n*.0722,i=u*.0193+t*.1192+n*.9505;return[D*100,r*100,i*100]};c.rgb.lab=function(e){let u=c.rgb.xyz(e),t=u[0],n=u[1],D=u[2];t/=95.047,n/=100,D/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,D=D>.008856?D**(1/3):7.787*D+16/116;let r=116*n-16,i=500*(t-n),o=200*(n-D);return[r,i,o]};c.hsl.rgb=function(e){let u=e[0]/360,t=e[1]/100,n=e[2]/100,D,r,i;if(t===0)return i=n*255,[i,i,i];n<.5?D=n*(1+t):D=n+t-n*t;let o=2*n-D,l=[0,0,0];for(let a=0;a<3;a++)r=u+1/3*-(a-1),r<0&&r++,r>1&&r--,6*r<1?i=o+(D-o)*6*r:2*r<1?i=D:3*r<2?i=o+(D-o)*(2/3-r)*6:i=o,l[a]=i*255;return l};c.hsl.hsv=function(e){let u=e[0],t=e[1]/100,n=e[2]/100,D=t,r=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,D*=r<=1?r:2-r;let i=(n+t)/2,o=n===0?2*D/(r+D):2*t/(n+t);return[u,o*100,i*100]};c.hsv.rgb=function(e){let u=e[0]/60,t=e[1]/100,n=e[2]/100,D=Math.floor(u)%6,r=u-Math.floor(u),i=255*n*(1-t),o=255*n*(1-t*r),l=255*n*(1-t*(1-r));switch(n*=255,D){case 0:return[n,l,i];case 1:return[o,n,i];case 2:return[i,n,l];case 3:return[i,o,n];case 4:return[l,i,n];case 5:return[n,i,o]}};c.hsv.hsl=function(e){let u=e[0],t=e[1]/100,n=e[2]/100,D=Math.max(n,.01),r,i;i=(2-t)*n;let o=(2-t)*D;return r=t*D,r/=o<=1?o:2-o,r=r||0,i/=2,[u,r*100,i*100]};c.hwb.rgb=function(e){let u=e[0]/360,t=e[1]/100,n=e[2]/100,D=t+n,r;D>1&&(t/=D,n/=D);let i=Math.floor(6*u),o=1-n;r=6*u-i,(i&1)!==0&&(r=1-r);let l=t+r*(o-t),a,f,C;switch(i){default:case 6:case 0:a=o,f=l,C=t;break;case 1:a=l,f=o,C=t;break;case 2:a=t,f=o,C=l;break;case 3:a=t,f=l,C=o;break;case 4:a=l,f=t,C=o;break;case 5:a=o,f=t,C=l;break}return[a*255,f*255,C*255]};c.cmyk.rgb=function(e){let u=e[0]/100,t=e[1]/100,n=e[2]/100,D=e[3]/100,r=1-Math.min(1,u*(1-D)+D),i=1-Math.min(1,t*(1-D)+D),o=1-Math.min(1,n*(1-D)+D);return[r*255,i*255,o*255]};c.xyz.rgb=function(e){let u=e[0]/100,t=e[1]/100,n=e[2]/100,D,r,i;return D=u*3.2406+t*-1.5372+n*-.4986,r=u*-.9689+t*1.8758+n*.0415,i=u*.0557+t*-.204+n*1.057,D=D>.0031308?1.055*D**(1/2.4)-.055:D*12.92,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,D=Math.min(Math.max(0,D),1),r=Math.min(Math.max(0,r),1),i=Math.min(Math.max(0,i),1),[D*255,r*255,i*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 D=116*t-16,r=500*(u-t),i=200*(t-n);return[D,r,i]};c.lab.xyz=function(e){let u=e[0],t=e[1],n=e[2],D,r,i;r=(u+16)/116,D=t/500+r,i=r-n/200;let o=r**3,l=D**3,a=i**3;return r=o>.008856?o:(r-16/116)/7.787,D=l>.008856?l:(D-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,D*=95.047,r*=100,i*=108.883,[D,r,i]};c.lab.lch=function(e){let u=e[0],t=e[1],n=e[2],D;D=Math.atan2(n,t)*360/2/Math.PI,D<0&&(D+=360);let i=Math.sqrt(t*t+n*n);return[u,i,D]};c.lch.lab=function(e){let u=e[0],t=e[1],D=e[2]/360*2*Math.PI,r=t*Math.cos(D),i=t*Math.sin(D);return[u,r,i]};c.rgb.ansi16=function(e,u=null){let[t,n,D]=e,r=u===null?c.rgb.hsv(e)[2]:u;if(r=Math.round(r/50),r===0)return 30;let i=30+(Math.round(D/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return r===2&&(i+=60),i};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,D=(u>>1&1)*t*255,r=(u>>2&1)*t*255;return[n,D,r]};c.ansi256.rgb=function(e){if(e>=232){let r=(e-232)*10+8;return[r,r,r]}e-=16;let u,t=Math.floor(e/36)/5*255,n=Math.floor((u=e%36)/6)/5*255,D=u%6/5*255;return[t,n,D]};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),D=n>>16&255,r=n>>8&255,i=n&255;return[D,r,i]};c.rgb.hcg=function(e){let u=e[0]/255,t=e[1]/255,n=e[2]/255,D=Math.max(Math.max(u,t),n),r=Math.min(Math.min(u,t),n),i=D-r,o,l;return i<1?o=r/(1-i):o=0,i<=0?l=0:D===u?l=(t-n)/i%6:D===t?l=2+(n-u)/i:l=4+(u-t)/i,l/=6,l%=1,[l*360,i*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),D=0;return n<1&&(D=(t-.5*n)/(1-n)),[e[0],n*100,D*100]};c.hsv.hcg=function(e){let u=e[1]/100,t=e[2]/100,n=u*t,D=0;return n<1&&(D=(t-n)/(1-n)),[e[0],n*100,D*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 D=[0,0,0],r=u%1*6,i=r%1,o=1-i,l=0;switch(Math.floor(r)){case 0:D[0]=1,D[1]=i,D[2]=0;break;case 1:D[0]=o,D[1]=1,D[2]=0;break;case 2:D[0]=0,D[1]=1,D[2]=i;break;case 3:D[0]=0,D[1]=o,D[2]=1;break;case 4:D[0]=i,D[1]=0,D[2]=1;break;default:D[0]=1,D[1]=0,D[2]=o}return l=(1-t)*n,[(t*D[0]+l)*255,(t*D[1]+l)*255,(t*D[2]+l)*255]};c.hcg.hsv=function(e){let u=e[1]/100,t=e[2]/100,n=u+t*(1-u),D=0;return n>0&&(D=u/n),[e[0],D*100,n*100]};c.hcg.hsl=function(e){let u=e[1]/100,n=e[2]/100*(1-u)+.5*u,D=0;return n>0&&n<.5?D=u/(2*n):n>=.5&&n<1&&(D=u/(2*(1-n))),[e[0],D*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,D=n-u,r=0;return D<1&&(r=(n-D)/(1-D)),[e[0],D*100,r*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 Ou=p((ND,Lu)=>{var De=Se();function Jt(){let e={},u=Object.keys(De);for(let t=u.length,n=0;n<t;n++)e[u[n]]={distance:-1,parent:null};return e}s(Jt,"buildGraph");function Xt(e){let u=Jt(),t=[e];for(u[e].distance=0;t.length;){let n=t.pop(),D=Object.keys(De[n]);for(let r=D.length,i=0;i<r;i++){let o=D[i],l=u[o];l.distance===-1&&(l.distance=u[n].distance+1,l.parent=n,t.unshift(o))}}return u}s(Xt,"deriveBFS");function en(e,u){return function(t){return u(e(t))}}s(en,"link");function un(e,u){let t=[u[e].parent,e],n=De[u[e].parent][e],D=u[e].parent;for(;u[D].parent;)t.unshift(u[D].parent),n=en(De[u[D].parent][D],n),D=u[D].parent;return n.conversion=t,n}s(un,"wrapConversion");Lu.exports=function(e){let u=Xt(e),t={},n=Object.keys(u);for(let D=n.length,r=0;r<D;r++){let i=n[r];u[i].parent!==null&&(t[i]=un(i,u))}return t}});var Ru=p((WD,Pu)=>{var Le=Se(),tn=Ou(),V={},nn=Object.keys(Le);function Dn(e){let u=s(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}s(Dn,"wrapRaw");function rn(e){let u=s(function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let D=e(t);if(typeof D=="object")for(let r=D.length,i=0;i<r;i++)D[i]=Math.round(D[i]);return D},"wrappedFn");return"conversion"in e&&(u.conversion=e.conversion),u}s(rn,"wrapRounded");nn.forEach(e=>{V[e]={},Object.defineProperty(V[e],"channels",{value:Le[e].channels}),Object.defineProperty(V[e],"labels",{value:Le[e].labels});let u=tn(e);Object.keys(u).forEach(n=>{let D=u[n];V[e][n]=rn(D),V[e][n].raw=Dn(D)})});Pu.exports=V});var Ku=p((VD,Tu)=>{"use strict";var Mu=s((e,u)=>(...t)=>`\x1B[${e(...t)+u}m`,"wrapAnsi16"),ju=s((e,u)=>(...t)=>{let n=e(...t);return`\x1B[${38+u};5;${n}m`},"wrapAnsi256"),Uu=s((e,u)=>(...t)=>{let n=e(...t);return`\x1B[${38+u};2;${n[0]};${n[1]};${n[2]}m`},"wrapAnsi16m"),re=s(e=>e,"ansi2ansi"),qu=s((e,u,t)=>[e,u,t],"rgb2rgb"),H=s((e,u,t)=>{Object.defineProperty(e,u,{get:s(()=>{let n=t();return Object.defineProperty(e,u,{value:n,enumerable:!0,configurable:!0}),n},"get"),enumerable:!0,configurable:!0})},"setLazyProperty"),Oe,z=s((e,u,t,n)=>{Oe===void 0&&(Oe=Ru());let D=n?10:0,r={};for(let[i,o]of Object.entries(Oe)){let l=i==="ansi16"?"ansi":i;i===u?r[l]=e(t,D):typeof o=="object"&&(r[l]=e(o[u],D))}return r},"makeDynamicStyles");function sn(){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[D,r]of Object.entries(n))u[D]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[D]=u[D],e.set(r[0],r[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",H(u.color,"ansi",()=>z(Mu,"ansi16",re,!1)),H(u.color,"ansi256",()=>z(ju,"ansi256",re,!1)),H(u.color,"ansi16m",()=>z(Uu,"rgb",qu,!1)),H(u.bgColor,"ansi",()=>z(Mu,"ansi16",re,!0)),H(u.bgColor,"ansi256",()=>z(ju,"ansi256",re,!0)),H(u.bgColor,"ansi16m",()=>z(Uu,"rgb",qu,!0)),u}s(sn,"assembleStyles");Object.defineProperty(Tu,"exports",{enumerable:!0,get:sn})});var Gu=p((zD,Nu)=>{"use strict";var J=Au(),on=ve(),ln=Ku(),Re=new Set(["\x1B",""]),an=39,Iu=s(e=>`${Re.values().next().value}[${e}m`,"wrapAnsi"),cn=s(e=>e.split(" ").map(u=>J(u)),"wordLengths"),Pe=s((e,u,t)=>{let n=[...u],D=!1,r=J(on(e[e.length-1]));for(let[i,o]of n.entries()){let l=J(o);if(r+l<=t?e[e.length-1]+=o:(e.push(o),r=0),Re.has(o))D=!0;else if(D&&o==="m"){D=!1;continue}D||(r+=l,r===t&&i<n.length-1&&(e.push(""),r=0))}!r&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},"wrapWord"),fn=s(e=>{let u=e.split(" "),t=u.length;for(;t>0&&!(J(u[t-1])>0);)t--;return t===u.length?e:u.slice(0,t).join(" ")+u.slice(t).join("")},"stringVisibleTrimSpacesRight"),hn=s((e,u,t={})=>{if(t.trim!==!1&&e.trim()==="")return"";let n="",D="",r,i=cn(e),o=[""];for(let[l,a]of e.split(" ").entries()){t.trim!==!1&&(o[o.length-1]=o[o.length-1].trimLeft());let f=J(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&&i[l]>u){let C=u-f,E=1+Math.floor((i[l]-C-1)/u);Math.floor((i[l]-1)/u)<E&&o.push(""),Pe(o,a,u);continue}if(f+i[l]>u&&f>0&&i[l]>0){if(t.wordWrap===!1&&f<u){Pe(o,a,u);continue}o.push("")}if(f+i[l]>u&&t.wordWrap===!1){Pe(o,a,u);continue}o[o.length-1]+=a}t.trim!==!1&&(o=o.map(fn)),n=o.join(`
|
|
7
|
+
`);for(let[l,a]of[...n].entries()){if(D+=a,Re.has(a)){let C=parseFloat(/\d[^m]*/.exec(n.slice(l,l+4)));r=C===an?null:C}let f=ln.codes.get(Number(r));r&&f&&(n[l+1]===`
|
|
8
|
+
`?D+=Iu(f):a===`
|
|
9
|
+
`&&(D+=Iu(r)))}return D},"exec");Nu.exports=(e,u,t)=>String(e).normalize().replace(/\r\n/g,`
|
|
9
10
|
`).split(`
|
|
10
|
-
`).map(n=>
|
|
11
|
-
`)});var Me=p(Y=>{"use strict";var
|
|
12
|
-
`).flatMap(t=>(0,
|
|
11
|
+
`).map(n=>hn(n,u,t)).join(`
|
|
12
|
+
`)});var Me=p(Y=>{"use strict";var Wu=Y&&Y.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Y,"__esModule",{value:!0});Y.breakLines=pn;Y.readlineWidth=gn;var dn=Wu(pu()),Fn=Wu(Gu()),Cn=T();function pn(e,u){return e.split(`
|
|
13
|
+
`).flatMap(t=>(0,Fn.default)(t,u,{trim:!1,hard:!0}).split(`
|
|
13
14
|
`).map(n=>n.trimEnd())).join(`
|
|
14
|
-
`)}s(
|
|
15
|
-
`)),l=o.reduce((g,m)=>g+m.length,0),a=s(g=>o[g]??[],"renderItemAtIndex"),f=
|
|
16
|
-
`)}s(
|
|
17
|
-
`).length,"height"),
|
|
18
|
-
`).pop()??"","lastLine"),$e=class{static{s(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=
|
|
15
|
+
`)}s(pn,"breakLines");function gn(){return(0,dn.default)({defaultWidth:80,output:(0,Cn.readline)().output})}s(gn,"readlineWidth")});var Vu=p(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.usePagination=mn;var En=ne(),$u=Me();function bn({active:e,renderedItems:u,pageSize:t,loop:n}){let D=(0,En.useRef)({lastPointer:e,lastActive:void 0}),{lastPointer:r,lastActive:i}=D.current,o=Math.floor(t/2),l=u.reduce((C,E)=>C+E.length,0),a=u.slice(0,e).reduce((C,E)=>C+E.length,0),f=a;if(l>t)if(n)f=r,i!=null&&i<e&&e-i<t&&(f=Math.min(o,Math.abs(e-i)===1?Math.min(r+(u[i]?.length??0),Math.max(a,r)):r+e-i));else{let C=u.slice(e).reduce((E,y)=>E+y.length,0);f=C<t-o?t-C:Math.min(a,o)}return D.current.lastPointer=f,D.current.lastActive=e,f}s(bn,"usePointerPosition");function mn({items:e,active:u,renderItem:t,pageSize:n,loop:D=!0}){let r=(0,$u.readlineWidth)(),i=s(g=>(g%e.length+e.length)%e.length,"bound"),o=e.map((g,m)=>g==null?[]:(0,$u.breakLines)(t({item:g,index:m,isActive:m===u}),r).split(`
|
|
16
|
+
`)),l=o.reduce((g,m)=>g+m.length,0),a=s(g=>o[g]??[],"renderItemAtIndex"),f=bn({active:u,renderedItems:o,pageSize:n,loop:D}),C=a(u).slice(0,n),E=f+C.length<=n?f:n-C.length,y=Array.from({length:n});y.splice(E,C.length,...C);let R=new Set([u]),A=E+C.length,b=i(u+1);for(;A<n&&!R.has(b)&&(D&&l>n?b!==u:b>u);){let m=a(b).slice(0,n-A);y.splice(A,m.length,...m),R.add(b),A+=m.length,b=i(b+1)}for(A=E-1,b=i(u-1);A>=0&&!R.has(b)&&(D&&l>n?b!==u:b<u);){let g=a(b),m=g.slice(Math.max(0,g.length-A-1));y.splice(A-m.length+1,m.length,...m),R.add(b),A-=m.length,b=i(b-1)}return y.filter(g=>typeof g=="string").join(`
|
|
17
|
+
`)}s(mn,"usePagination")});var zu=p((er,Hu)=>{var Bn=require("stream"),Ue=class extends Bn{static{s(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)}};Hu.exports=Ue});var Yu=p(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.signals=void 0;K.signals=[];K.signals.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&K.signals.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&K.signals.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var Zu=p(P=>{"use strict";var ie;Object.defineProperty(P,"__esModule",{value:!0});P.unload=P.load=P.onExit=P.signals=void 0;var se=Yu();Object.defineProperty(P,"signals",{enumerable:!0,get:s(function(){return se.signals},"get")});var oe=s(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"),qe=Symbol.for("signal-exit emitter"),Te=globalThis,yn=Object.defineProperty.bind(Object),Ke=class{static{s(this,"Emitter")}emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Te[qe])return Te[qe];yn(Te,qe,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(u,t){this.listeners[u].push(t)}removeListener(u,t){let n=this.listeners[u],D=n.indexOf(t);D!==-1&&(D===0&&n.length===1?n.length=0:n.splice(D,1))}emit(u,t,n){if(this.emitted[u])return!1;this.emitted[u]=!0;let D=!1;for(let r of this.listeners[u])D=r(t,n)===!0||D;return u==="exit"&&(D=this.emit("afterExit",t,n)||D),D}},le=class{static{s(this,"SignalExitBase")}},_n=s(e=>({onExit(u,t){return e.onExit(u,t)},load(){return e.load()},unload(){return e.unload()}}),"signalExitWrap"),Ie=class extends le{static{s(this,"SignalExitFallback")}onExit(){return()=>{}}load(){}unload(){}},Ne=class extends le{static{s(this,"SignalExit")}#t=Ge.platform==="win32"?"SIGINT":"SIGHUP";#u=new Ke;#e;#r;#i;#D={};#n=!1;constructor(u){super(),this.#e=u,this.#D={};for(let t of se.signals)this.#D[t]=()=>{let n=this.#e.listeners(t),{count:D}=this.#u,r=u;if(typeof r.__signal_exit_emitter__=="object"&&typeof r.__signal_exit_emitter__.count=="number"&&(D+=r.__signal_exit_emitter__.count),n.length===D){this.unload();let i=this.#u.emit("exit",null,t),o=t==="SIGHUP"?this.#t:t;i||u.kill(u.pid,o)}};this.#i=u.reallyExit,this.#r=u.emit}onExit(u,t){if(!oe(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 se.signals)try{let t=this.#D[u];t&&this.#e.on(u,t)}catch{}this.#e.emit=(u,...t)=>this.#o(u,...t),this.#e.reallyExit=u=>this.#s(u)}}unload(){this.#n&&(this.#n=!1,se.signals.forEach(u=>{let t=this.#D[u];if(!t)throw new Error("Listener not defined for signal: "+u);try{this.#e.removeListener(u,t)}catch{}}),this.#e.emit=this.#r,this.#e.reallyExit=this.#i,this.#u.count-=1)}#s(u){return oe(this.#e)?(this.#e.exitCode=u||0,this.#u.emit("exit",this.#e.exitCode,null),this.#i.call(this.#e,this.#e.exitCode)):0}#o(u,...t){let n=this.#r;if(u==="exit"&&oe(this.#e)){typeof t[0]=="number"&&(this.#e.exitCode=t[0]);let D=n.call(this.#e,u,...t);return this.#u.emit("exit",this.#e.exitCode,null),D}else return n.call(this.#e,u,...t)}},Ge=globalThis.process;ie=_n(oe(Ge)?new Ne(Ge):new Ie),P.onExit=ie.onExit,P.load=ie.load,P.unload=ie.unload});var Ju=p(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.eraseLines=_.cursorTo=_.cursorDown=_.cursorUp=_.cursorShow=_.cursorHide=_.cursorLeft=void 0;var j="\x1B[";_.cursorLeft=j+"G";_.cursorHide=j+"?25l";_.cursorShow=j+"?25h";var wn=s((e=1)=>e>0?`${j}${e}A`:"","cursorUp");_.cursorUp=wn;var An=s((e=1)=>e>0?`${j}${e}B`:"","cursorDown");_.cursorDown=An;var vn=s((e,u)=>typeof u=="number"&&!Number.isNaN(u)?`${j}${u+1};${e+1}H`:`${j}${e+1}G`,"cursorTo");_.cursorTo=vn;var Qu=j+"2K",xn=s(e=>e>0?(Qu+(0,_.cursorUp)(1)).repeat(e-1)+Qu+_.cursorLeft:"","eraseLines");_.eraseLines=xn});var et=p(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});var kn=require("node:util"),We=Me(),U=Ju(),Xu=s(e=>e.split(`
|
|
18
|
+
`).length,"height"),Sn=s(e=>e.split(`
|
|
19
|
+
`).pop()??"","lastLine"),$e=class{static{s(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=Sn(u),D=(0,kn.stripVTControlCharacters)(n),r=D;this.rl.line.length>0&&(r=r.slice(0,-this.rl.line.length)),this.rl.setPrompt(r),this.cursorPos=this.rl.getCursorPos();let i=(0,We.readlineWidth)();u=(0,We.breakLines)(u,i),t=(0,We.breakLines)(t,i),D.length%i===0&&(u+=`
|
|
19
20
|
`);let o=u+(t?`
|
|
20
|
-
`+t:""),a=Math.floor(D.length/i)-this.cursorPos.rows+(t?
|
|
21
|
-
`,t+=U.cursorShow,this.write(t),this.rl.close()}};Ve.default=$e});var
|
|
22
|
-
at ${W}`)}let[N,G]=typeof B=="string"?[B]:B;f.render(N,G),X.effectScheduler.run()}catch(B){y(B)}}),Object.assign(C.then(B=>(X.effectScheduler.clearAll(),B),B=>{throw X.effectScheduler.clearAll(),B}).finally(()=>{o.forEach(B=>B()),f.done({clearContent:!!D.clearPromptOnDone}),l.end()}).then(()=>C),{cancel:R})})},"prompt")}s(
|
|
21
|
+
`+t:""),a=Math.floor(D.length/i)-this.cursorPos.rows+(t?Xu(t):0);a>0&&(o+=(0,U.cursorUp)(a)),o+=(0,U.cursorTo)(this.cursorPos.cols),this.write((0,U.cursorDown)(this.extraLinesUnderPrompt)+(0,U.eraseLines)(this.height)+o),this.extraLinesUnderPrompt=a,this.height=Xu(o)}checkCursorPos(){let u=this.rl.getCursorPos();u.cols!==this.cursorPos.cols&&(this.write((0,U.cursorTo)(u.cols)),this.cursorPos=u)}done({clearContent:u}){this.rl.setPrompt("");let t=(0,U.cursorDown)(this.extraLinesUnderPrompt);t+=u?(0,U.eraseLines)(this.height):`
|
|
22
|
+
`,t+=U.cursorShow,this.write(t),this.rl.close()}};Ve.default=$e});var ut=p(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.PromisePolyfill=void 0;var He=class extends Promise{static{s(this,"PromisePolyfill")}static withResolver(){let u,t;return{promise:new Promise((D,r)=>{u=D,t=r}),resolve:u,reject:t}}};ae.PromisePolyfill=He});var nt=p(L=>{"use strict";var Ln=L&&L.__createBinding||(Object.create?(function(e,u,t,n){n===void 0&&(n=t);var D=Object.getOwnPropertyDescriptor(u,t);(!D||("get"in D?!u.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:s(function(){return u[t]},"get")}),Object.defineProperty(e,n,D)}):(function(e,u,t,n){n===void 0&&(n=t),e[n]=u[t]})),On=L&&L.__setModuleDefault||(Object.create?(function(e,u){Object.defineProperty(e,"default",{enumerable:!0,value:u})}):function(e,u){e.default=u}),Pn=L&&L.__importStar||(function(){var e=s(function(u){return e=Object.getOwnPropertyNames||function(t){var n=[];for(var D in t)Object.prototype.hasOwnProperty.call(t,D)&&(n[n.length]=D);return n},e(u)},"ownKeys");return function(u){if(u&&u.__esModule)return u;var t={};if(u!=null)for(var n=e(u),D=0;D<n.length;D++)n[D]!=="default"&&Ln(t,u,n[D]);return On(t,u),t}})(),tt=L&&L.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(L,"__esModule",{value:!0});L.createPrompt=In;var Rn=Pn(require("node:readline")),Mn=require("node:async_hooks"),jn=tt(zu()),Un=Zu(),qn=tt(et()),Tn=ut(),X=T(),ce=ee();function Kn(){let e=Error.prepareStackTrace,u=[];try{Error.prepareStackTrace=(t,n)=>{let D=n.slice(1);return u=D,D},new Error().stack}catch{return u}return Error.prepareStackTrace=e,u}s(Kn,"getCallSites");function In(e){let u=Kn();return s((n,D={})=>{let{input:r=process.stdin,signal:i}=D,o=new Set,l=new jn.default;l.pipe(D.output??process.stdout);let a=Rn.createInterface({terminal:!0,input:r,output:l}),f=new qn.default(a),{promise:C,resolve:E,reject:y}=Tn.PromisePolyfill.withResolver(),R=s(()=>y(new ce.CancelPromptError),"cancel");if(i){let g=s(()=>y(new ce.AbortPromptError({cause:i.reason})),"abort");if(i.aborted)return g(),Object.assign(C,{cancel:R});i.addEventListener("abort",g),o.add(()=>i.removeEventListener("abort",g))}o.add((0,Un.onExit)((g,m)=>{y(new ce.ExitPromptError(`User force closed the prompt with ${g} ${m}`))}));let A=s(()=>y(new ce.ExitPromptError("User force closed the prompt with SIGINT")),"sigint");a.on("SIGINT",A),o.add(()=>a.removeListener("SIGINT",A));let b=s(()=>f.checkCursorPos(),"checkCursorPos");return a.input.on("keypress",b),o.add(()=>a.input.removeListener("keypress",b)),(0,X.withHooks)(a,g=>{let m=Mn.AsyncResource.bind(()=>X.effectScheduler.clearAll());return a.on("close",m),o.add(()=>a.removeListener("close",m)),g(()=>{try{let B=e(n,W=>{setImmediate(()=>E(W))});if(B===void 0){let W=u[1]?.getFileName();throw new Error(`Prompt functions must return a string.
|
|
23
|
+
at ${W}`)}let[N,G]=typeof B=="string"?[B]:B;f.render(N,G),X.effectScheduler.run()}catch(B){y(B)}}),Object.assign(C.then(B=>(X.effectScheduler.clearAll(),B),B=>{throw X.effectScheduler.clearAll(),B}).finally(()=>{o.forEach(B=>B()),f.done({clearContent:!!D.clearPromptOnDone}),l.end()}).then(()=>C),{cancel:R})})},"prompt")}s(In,"createPrompt")});var rt=p(Z=>{"use strict";var Dt=Z&&Z.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Z,"__esModule",{value:!0});Z.Separator=void 0;var Nn=Dt(Ee()),Gn=Dt(be()),ze=class{static{s(this,"Separator")}separator=Nn.default.dim(Array.from({length:15}).join(Gn.default.line));type="separator";constructor(u){u&&(this.separator=u)}static isSeparator(u){return!!(u&&typeof u=="object"&&"type"in u&&u.type==="separator")}};Z.Separator=ze});var it=p(F=>{"use strict";var Wn=F&&F.__createBinding||(Object.create?(function(e,u,t,n){n===void 0&&(n=t);var D=Object.getOwnPropertyDescriptor(u,t);(!D||("get"in D?!u.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:s(function(){return u[t]},"get")}),Object.defineProperty(e,n,D)}):(function(e,u,t,n){n===void 0&&(n=t),e[n]=u[t]})),$n=F&&F.__exportStar||function(e,u){for(var t in e)t!=="default"&&!Object.prototype.hasOwnProperty.call(u,t)&&Wn(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 I=Ze();Object.defineProperty(F,"isUpKey",{enumerable:!0,get:s(function(){return I.isUpKey},"get")});Object.defineProperty(F,"isDownKey",{enumerable:!0,get:s(function(){return I.isDownKey},"get")});Object.defineProperty(F,"isSpaceKey",{enumerable:!0,get:s(function(){return I.isSpaceKey},"get")});Object.defineProperty(F,"isBackspaceKey",{enumerable:!0,get:s(function(){return I.isBackspaceKey},"get")});Object.defineProperty(F,"isTabKey",{enumerable:!0,get:s(function(){return I.isTabKey},"get")});Object.defineProperty(F,"isNumberKey",{enumerable:!0,get:s(function(){return I.isNumberKey},"get")});Object.defineProperty(F,"isEnterKey",{enumerable:!0,get:s(function(){return I.isEnterKey},"get")});$n(ee(),F);var Vn=hu();Object.defineProperty(F,"usePrefix",{enumerable:!0,get:s(function(){return Vn.usePrefix},"get")});var Hn=ue();Object.defineProperty(F,"useState",{enumerable:!0,get:s(function(){return Hn.useState},"get")});var zn=te();Object.defineProperty(F,"useEffect",{enumerable:!0,get:s(function(){return zn.useEffect},"get")});var Yn=du();Object.defineProperty(F,"useMemo",{enumerable:!0,get:s(function(){return Yn.useMemo},"get")});var Zn=ne();Object.defineProperty(F,"useRef",{enumerable:!0,get:s(function(){return Zn.useRef},"get")});var Qn=Fu();Object.defineProperty(F,"useKeypress",{enumerable:!0,get:s(function(){return Qn.useKeypress},"get")});var Jn=Be();Object.defineProperty(F,"makeTheme",{enumerable:!0,get:s(function(){return Jn.makeTheme},"get")});var Xn=Vu();Object.defineProperty(F,"usePagination",{enumerable:!0,get:s(function(){return Xn.usePagination},"get")});var eD=nt();Object.defineProperty(F,"createPrompt",{enumerable:!0,get:s(function(){return eD.createPrompt},"get")});var uD=rt();Object.defineProperty(F,"Separator",{enumerable:!0,get:s(function(){return uD.Separator},"get")})});var st=p(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var k=it(),tD={validationFailureMode:"keep"};Ye.default=(0,k.createPrompt)((e,u)=>{let{required:t,validate:n=s(()=>!0,"validate"),prefill:D="tab"}=e,r=(0,k.makeTheme)(tD,e.theme),[i,o]=(0,k.useState)("idle"),[l="",a]=(0,k.useState)(e.default),[f,C]=(0,k.useState)(),[E,y]=(0,k.useState)(""),R=(0,k.usePrefix)({status:i,theme:r});(0,k.useKeypress)(async(B,N)=>{if(i==="idle")if((0,k.isEnterKey)(B)){let G=E||l;o("loading");let W=t&&!G?"You must provide a value":await n(G);W===!0?(y(G),o("done"),u(G)):(r.validationFailureMode==="clear"?y(""):N.write(E),C(W||"You must provide a valid value"),o("idle"))}else(0,k.isBackspaceKey)(B)&&!E?a(void 0):(0,k.isTabKey)(B)&&!E?(a(void 0),N.clearLine(0),N.write(l),y(l)):(y(N.line),C(void 0))}),(0,k.useEffect)(B=>{D==="editable"&&l&&(B.write(l),y(l))},[]);let A=r.style.message(e.message,i),b=E;typeof e.transformer=="function"?b=e.transformer(E,{isFinal:i==="done"}):i==="done"&&(b=r.style.answer(E));let g;l&&i!=="done"&&!E&&(g=r.style.defaultAnswer(l));let m="";return f&&(m=r.style.error(f)),[[R,A,g,b].filter(B=>B!==void 0).join(" "),m]})});module.exports=st();
|