create-pixi-vn 1.1.13 → 1.1.15

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/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import Tt from"child_process";import se from"path";import xe from"which";import z0 from"fs";import G from"node:path";import N from"node:fs";import*as Gn from"node:readline";import Wn from"node:readline";import Y0 from"stream";import zn from"node:tty";import K from"node:process";import{AsyncLocalStorage as Yn,AsyncResource as $0}from"node:async_hooks";import{stripVTControlCharacters as Hn}from"node:util";import Kn from"tty";import H0 from"util";import M0 from"buffer";import Jn from"string_decoder";import Xn from"crypto";import{fileURLToPath as Zn}from"node:url";function o0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var x0={exports:{}},K0={exports:{}},Ot;function ei(){if(Ot)return K0.exports;Ot=1;const e=(t={})=>{const r=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};return K0.exports=e,K0.exports.default=e,K0.exports}var ce,It;function ti(){if(It)return ce;It=1;const e=se,t=xe,r=ei();function i(o,s){const u=o.options.env||process.env,a=process.cwd(),x=o.options.cwd!=null,c=x&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(o.options.cwd)}catch{}let l;try{l=t.sync(o.command,{path:u[r({env:u})],pathExt:s?e.delimiter:void 0})}catch{}finally{c&&process.chdir(a)}return l&&(l=e.resolve(x?o.options.cwd:"",l)),l}function n(o){return i(o)||i(o,!0)}return ce=n,ce}var J0={},Lt;function ri(){if(Lt)return J0;Lt=1;const e=/([()\][%!^"`<>&|;, *?])/g;function t(i){return i=i.replace(e,"^$1"),i}function r(i,n){return i=`${i}`,i=i.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),i=i.replace(/(?=(\\+?)?)\1$/,"$1$1"),i=`"${i}"`,i=i.replace(e,"^$1"),n&&(i=i.replace(e,"^$1")),i}return J0.command=t,J0.argument=r,J0}var le,$t;function ni(){return $t||($t=1,le=/^#!(.*)/),le}var fe,Mt;function ii(){if(Mt)return fe;Mt=1;const e=ni();return fe=(t="")=>{const r=t.match(e);if(!r)return null;const[i,n]=r[0].replace(/#! ?/,"").split(" "),o=i.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o},fe}var De,jt;function oi(){if(jt)return De;jt=1;const e=z0,t=ii();function r(i){const o=Buffer.alloc(150);let s;try{s=e.openSync(i,"r"),e.readSync(s,o,0,150,0),e.closeSync(s)}catch{}return t(o.toString())}return De=r,De}var de,Ut;function ai(){if(Ut)return de;Ut=1;const e=se,t=ti(),r=ri(),i=oi(),n=process.platform==="win32",o=/\.(?:com|exe)$/i,s=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(c){c.file=t(c);const l=c.file&&i(c.file);return l?(c.args.unshift(c.file),c.command=l,t(c)):c.file}function a(c){if(!n)return c;const l=u(c),f=!o.test(l);if(c.options.forceShell||f){const D=s.test(l);c.command=e.normalize(c.command),c.command=r.command(c.command),c.args=c.args.map(d=>r.argument(d,D));const h=[c.command].concat(c.args).join(" ");c.args=["/d","/s","/c",`"${h}"`],c.command=process.env.comspec||"cmd.exe",c.options.windowsVerbatimArguments=!0}return c}function x(c,l,f){l&&!Array.isArray(l)&&(f=l,l=null),l=l?l.slice(0):[],f=Object.assign({},f);const D={command:c,args:l,options:f,file:void 0,original:{command:c,args:l}};return f.shell?D:a(D)}return de=x,de}var he,Pt;function ui(){if(Pt)return he;Pt=1;const e=process.platform==="win32";function t(o,s){return Object.assign(new Error(`${s} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${s} ${o.command}`,path:o.command,spawnargs:o.args})}function r(o,s){if(!e)return;const u=o.emit;o.emit=function(a,x){if(a==="exit"){const c=i(x,s);if(c)return u.call(o,"error",c)}return u.apply(o,arguments)}}function i(o,s){return e&&o===1&&!s.file?t(s.original,"spawn"):null}function n(o,s){return e&&o===1&&!s.file?t(s.original,"spawnSync"):null}return he={hookChildProcess:r,verifyENOENT:i,verifyENOENTSync:n,notFoundError:t},he}var qt;function si(){if(qt)return x0.exports;qt=1;const e=Tt,t=ai(),r=ui();function i(o,s,u){const a=t(o,s,u),x=e.spawn(a.command,a.args,a.options);return r.hookChildProcess(x,a),x}function n(o,s,u){const a=t(o,s,u),x=e.spawnSync(a.command,a.args,a.options);return x.error=x.error||r.verifyENOENTSync(x.status,a),x}return x0.exports=i,x0.exports.spawn=i,x0.exports.sync=n,x0.exports._parse=t,x0.exports._enoent=r,x0.exports}var xi=si();const c0=o0(xi);let l0=!0;const E0=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let j0=0;if(E0.process&&E0.process.env&&E0.process.stdout){const{FORCE_COLOR:e,NODE_DISABLE_COLORS:t,NO_COLOR:r,TERM:i,COLORTERM:n}=E0.process.env;t||r||e==="0"?l0=!1:e==="1"||e==="2"||e==="3"?l0=!0:i==="dumb"?l0=!1:"CI"in E0.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in E0.process.env)?l0=!0:l0=process.stdout.isTTY,l0&&(process.platform==="win32"||n&&(n==="truecolor"||n==="24bit")?j0=3:i&&(i.endsWith("-256color")||i.endsWith("256"))?j0=2:j0=1)}let Nt={enabled:l0,supportLevel:j0};function X0(e,t,r=1){const i=`\x1B[${e}m`,n=`\x1B[${t}m`,o=new RegExp(`\\x1b\\[${t}m`,"g");return s=>Nt.enabled&&Nt.supportLevel>=r?i+(""+s).replace(o,i)+n:""+s}const Vt=X0(31,39),pe=X0(36,39),ci=X0(90,39),li=X0(91,39);var Ee,Gt;function fi(){if(Gt)return Ee;Gt=1;function e(i,n){var o=i;n.slice(0,-1).forEach(function(u){o=o[u]||{}});var s=n[n.length-1];return s in o}function t(i){return typeof i=="number"||/^0x[0-9a-f]+$/i.test(i)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(i)}function r(i,n){return n==="constructor"&&typeof i[n]=="function"||n==="__proto__"}return Ee=function(i,n){n||(n={});var o={bools:{},strings:{},unknownFn:null};typeof n.unknown=="function"&&(o.unknownFn=n.unknown),typeof n.boolean=="boolean"&&n.boolean?o.allBools=!0:[].concat(n.boolean).filter(Boolean).forEach(function(y){o.bools[y]=!0});var s={};function u(y){return s[y].some(function(A){return o.bools[A]})}Object.keys(n.alias||{}).forEach(function(y){s[y]=[].concat(n.alias[y]),s[y].forEach(function(A){s[A]=[y].concat(s[y].filter(function(v){return A!==v}))})}),[].concat(n.string).filter(Boolean).forEach(function(y){o.strings[y]=!0,s[y]&&[].concat(s[y]).forEach(function(A){o.strings[A]=!0})});var a=n.default||{},x={_:[]};function c(y,A){return o.allBools&&/^--[^=]+$/.test(A)||o.strings[y]||o.bools[y]||s[y]}function l(y,A,v){for(var w=y,$=0;$<A.length-1;$++){var L=A[$];if(r(w,L))return;w[L]===void 0&&(w[L]={}),(w[L]===Object.prototype||w[L]===Number.prototype||w[L]===String.prototype)&&(w[L]={}),w[L]===Array.prototype&&(w[L]=[]),w=w[L]}var R=A[A.length-1];r(w,R)||((w===Object.prototype||w===Number.prototype||w===String.prototype)&&(w={}),w===Array.prototype&&(w=[]),w[R]===void 0||o.bools[R]||typeof w[R]=="boolean"?w[R]=v:Array.isArray(w[R])?w[R].push(v):w[R]=[w[R],v])}function f(y,A,v){if(!(v&&o.unknownFn&&!c(y,v)&&o.unknownFn(v)===!1)){var w=!o.strings[y]&&t(A)?Number(A):A;l(x,y.split("."),w),(s[y]||[]).forEach(function($){l(x,$.split("."),w)})}}Object.keys(o.bools).forEach(function(y){f(y,a[y]===void 0?!1:a[y])});var D=[];i.indexOf("--")!==-1&&(D=i.slice(i.indexOf("--")+1),i=i.slice(0,i.indexOf("--")));for(var h=0;h<i.length;h++){var d=i[h],p,E;if(/^--.+=/.test(d)){var b=d.match(/^--([^=]+)=([\s\S]*)$/);p=b[1];var m=b[2];o.bools[p]&&(m=m!=="false"),f(p,m,d)}else if(/^--no-.+/.test(d))p=d.match(/^--no-(.+)/)[1],f(p,!1,d);else if(/^--.+/.test(d))p=d.match(/^--(.+)/)[1],E=i[h+1],E!==void 0&&!/^(-|--)[^-]/.test(E)&&!o.bools[p]&&!o.allBools&&(!s[p]||!u(p))?(f(p,E,d),h+=1):/^(true|false)$/.test(E)?(f(p,E==="true",d),h+=1):f(p,o.strings[p]?"":!0,d);else if(/^-[^-]+/.test(d)){for(var F=d.slice(1,-1).split(""),C=!1,g=0;g<F.length;g++){if(E=d.slice(g+2),E==="-"){f(F[g],E,d);continue}if(/[A-Za-z]/.test(F[g])&&E[0]==="="){f(F[g],E.slice(1),d),C=!0;break}if(/[A-Za-z]/.test(F[g])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(E)){f(F[g],E,d),C=!0;break}if(F[g+1]&&F[g+1].match(/\W/)){f(F[g],d.slice(g+2),d),C=!0;break}else f(F[g],o.strings[F[g]]?"":!0,d)}p=d.slice(-1)[0],!C&&p!=="-"&&(i[h+1]&&!/^(-|--)[^-]/.test(i[h+1])&&!o.bools[p]&&(!s[p]||!u(p))?(f(p,i[h+1],d),h+=1):i[h+1]&&/^(true|false)$/.test(i[h+1])?(f(p,i[h+1]==="true",d),h+=1):f(p,o.strings[p]?"":!0,d))}else if((!o.unknownFn||o.unknownFn(d)!==!1)&&x._.push(o.strings._||!t(d)?d:Number(d)),n.stopEarly){x._.push.apply(x._,i.slice(h+1));break}}return Object.keys(a).forEach(function(y){e(x,y.split("."))||(l(x,y.split("."),a[y]),(s[y]||[]).forEach(function(A){l(x,A.split("."),a[y])}))}),n["--"]?x["--"]=D.slice():D.forEach(function(y){x._.push(y)}),x},Ee}var Di=fi();const di=o0(Di),b0=e=>e.name==="up"||e.name==="k"||e.ctrl&&e.name==="p",Z0=e=>e.name==="down"||e.name==="j"||e.ctrl&&e.name==="n",hi=e=>e.name==="space",be=e=>e.name==="backspace",Wt=e=>"123456789".includes(e.name),J=e=>e.name==="enter"||e.name==="return";class Fe extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(t){super(),this.cause=t?.cause}}class pi extends Error{name="CancelPromptError";message="Prompt was canceled"}class Ei extends Error{name="ExitPromptError"}class bi extends Error{name="HookError"}class me extends Error{name="ValidationError"}const zt=new Yn;function Fi(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function mi(e,t){const r=Fi(e);return zt.run(r,()=>{function i(n){r.handleChange=()=>{r.index=0,n()},r.handleChange()}return t(i)})}function f0(){const e=zt.getStore();if(!e)throw new bi("[Inquirer] Hook functions can only be called from within a prompt");return e}function Yt(){return f0().rl}function Ht(e){const t=(...r)=>{const i=f0();let n=!1;const o=i.handleChange;i.handleChange=()=>{n=!0};const s=e(...r);return n&&o(),i.handleChange=o,s};return $0.bind(t)}function Ce(e){const t=f0(),{index:r}=t,i={get(){return t.hooks[r]},set(o){t.hooks[r]=o},initialized:r in t.hooks},n=e(i);return t.index++,n}function Ci(){f0().handleChange()}const U0={queue(e){const t=f0(),{index:r}=t;t.hooksEffect.push(()=>{t.hooksCleanup[r]?.();const i=e(Yt());if(i!=null&&typeof i!="function")throw new me("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[r]=i})},run(){const e=f0();Ht(()=>{e.hooksEffect.forEach(t=>{t()}),e.hooksEffect.length=0})()},clearAll(){const e=f0();e.hooksCleanup.forEach(t=>{t?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}};function T(e){return Ce(t=>{const r=n=>{t.get()!==n&&(t.set(n),Ci())};if(t.initialized)return[t.get(),r];const i=typeof e=="function"?e():e;return t.set(i),[i,r]})}function P0(e,t){Ce(r=>{const i=r.get();(!Array.isArray(i)||t.some((o,s)=>!Object.is(o,i[s])))&&U0.queue(e),r.set(t)})}var ge,Kt;function gi(){if(Kt)return ge;Kt=1;const t=zn?.WriteStream?.prototype?.hasColors?.()??!1,r=(n,o)=>{if(!t)return a=>a;const s=`\x1B[${n}m`,u=`\x1B[${o}m`;return a=>{const x=a+"";let c=x.indexOf(u);if(c===-1)return s+x+u;let l=s,f=0;for(;c!==-1;)l+=x.slice(f,c)+s,f=c+u.length,c=x.indexOf(u,f);return l+=x.slice(f)+u,l}},i={};return i.reset=r(0,0),i.bold=r(1,22),i.dim=r(2,22),i.italic=r(3,23),i.underline=r(4,24),i.overline=r(53,55),i.inverse=r(7,27),i.hidden=r(8,28),i.strikethrough=r(9,29),i.black=r(30,39),i.red=r(31,39),i.green=r(32,39),i.yellow=r(33,39),i.blue=r(34,39),i.magenta=r(35,39),i.cyan=r(36,39),i.white=r(37,39),i.gray=r(90,39),i.bgBlack=r(40,49),i.bgRed=r(41,49),i.bgGreen=r(42,49),i.bgYellow=r(43,49),i.bgBlue=r(44,49),i.bgMagenta=r(45,49),i.bgCyan=r(46,49),i.bgWhite=r(47,49),i.bgGray=r(100,49),i.redBright=r(91,39),i.greenBright=r(92,39),i.yellowBright=r(93,39),i.blueBright=r(94,39),i.magentaBright=r(95,39),i.cyanBright=r(96,39),i.whiteBright=r(97,39),i.bgRedBright=r(101,49),i.bgGreenBright=r(102,49),i.bgYellowBright=r(103,49),i.bgBlueBright=r(104,49),i.bgMagentaBright=r(105,49),i.bgCyanBright=r(106,49),i.bgWhiteBright=r(107,49),ge=i,ge}var yi=gi();const M=o0(yi);function vi(){return K.platform!=="win32"?K.env.TERM!=="linux":!!K.env.WT_SESSION||!!K.env.TERMINUS_SUBLIME||K.env.ConEmuTask==="{cmd::Cmder}"||K.env.TERM_PROGRAM==="Terminus-Sublime"||K.env.TERM_PROGRAM==="vscode"||K.env.TERM==="xterm-256color"||K.env.TERM==="alacritty"||K.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const Jt={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},wi={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Bi={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Ai={...Jt,...wi},Si={...Jt,...Bi},_i=vi(),D0=_i?Ai:Si,Ri={prefix:{idle:M.blue("?"),done:M.green(D0.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(e=>M.yellow(e))},style:{answer:M.cyan,message:M.bold,error:e=>M.red(`> ${e}`),defaultAnswer:e=>M.dim(`(${e})`),help:M.dim,highlight:M.cyan,key:e=>M.cyan(M.bold(`<${e}>`))}};function Xt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Zt(...e){const t={};for(const r of e)for(const[i,n]of Object.entries(r)){const o=t[i];t[i]=Xt(o)&&Xt(n)?Zt(o,n):n}return t}function Y(...e){const t=[Ri,...e.filter(r=>r!=null)];return Zt(...t)}function X({status:e="idle",theme:t}){const[r,i]=T(!1),[n,o]=T(0),{prefix:s,spinner:u}=Y(t);return P0(()=>{if(e==="loading"){let x,c=-1;const l=setTimeout($0.bind(()=>{i(!0),x=setInterval($0.bind(()=>{c=c+1,o(c%u.frames.length)}),u.interval)}),300);return()=>{clearTimeout(l),clearInterval(x)}}else i(!1)},[e]),r?u.frames[n]:typeof s=="string"?s:s[e==="loading"?"idle":e]??s.idle}function d0(e,t){return Ce(r=>{const i=r.get();if(!i||i.dependencies.length!==t.length||i.dependencies.some((n,o)=>n!==t[o])){const n=e();return r.set({value:n,dependencies:t}),n}return i.value})}function F0(e){return T({current:e})[0]}function Z(e){const t=F0(e);t.current=e,P0(r=>{let i=!1;const n=Ht((o,s)=>{i||t.current(s,r)});return r.input.on("keypress",n),()=>{i=!0,r.input.removeListener("keypress",n)}},[])}var ye,Qt;function ki(){if(Qt)return ye;Qt=1,ye=t;function e(r){const i={defaultWidth:0,output:process.stdout,tty:Kn};return r?(Object.keys(i).forEach(function(n){r[n]||(r[n]=i[n])}),r):i}function t(r){const i=e(r);if(i.output.getWindowSize)return i.output.getWindowSize()[0]||i.defaultWidth;if(i.tty.getWindowSize)return i.tty.getWindowSize()[1]||i.defaultWidth;if(i.output.columns)return i.output.columns;if(process.env.CLI_WIDTH){const n=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(n)&&n!==0)return n}return i.defaultWidth}return ye}var Ti=ki();const Oi=o0(Ti);var Q0={exports:{}},ve,er;function Ii(){return er||(er=1,ve=({onlyFirst:e=!1}={})=>{const t=["[\\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(t,e?void 0:"g")}),ve}var we,tr;function rr(){if(tr)return we;tr=1;const e=Ii();return we=t=>typeof t=="string"?t.replace(e(),""):t,we}var ee={exports:{}},nr;function Li(){if(nr)return ee.exports;nr=1;const e=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);return ee.exports=e,ee.exports.default=e,ee.exports}var Be,ir;function $i(){return ir||(ir=1,Be=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}),Be}var or;function Mi(){if(or)return Q0.exports;or=1;const e=rr(),t=Li(),r=$i(),i=n=>{if(typeof n!="string"||n.length===0||(n=e(n),n.length===0))return 0;n=n.replace(r()," ");let o=0;for(let s=0;s<n.length;s++){const u=n.codePointAt(s);u<=31||u>=127&&u<=159||u>=768&&u<=879||(u>65535&&s++,o+=t(u)?2:1)}return o};return Q0.exports=i,Q0.exports.default=i,Q0.exports}var te={exports:{}},Ae,ar;function ji(){return ar||(ar=1,Ae={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]}),Ae}var Se,ur;function sr(){if(ur)return Se;ur=1;const e=ji(),t={};for(const n of Object.keys(e))t[e[n]]=n;const r={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"]}};Se=r;for(const n of Object.keys(r)){if(!("channels"in r[n]))throw new Error("missing channels property: "+n);if(!("labels"in r[n]))throw new Error("missing channel labels property: "+n);if(r[n].labels.length!==r[n].channels)throw new Error("channel and label counts mismatch: "+n);const{channels:o,labels:s}=r[n];delete r[n].channels,delete r[n].labels,Object.defineProperty(r[n],"channels",{value:o}),Object.defineProperty(r[n],"labels",{value:s})}r.rgb.hsl=function(n){const o=n[0]/255,s=n[1]/255,u=n[2]/255,a=Math.min(o,s,u),x=Math.max(o,s,u),c=x-a;let l,f;x===a?l=0:o===x?l=(s-u)/c:s===x?l=2+(u-o)/c:u===x&&(l=4+(o-s)/c),l=Math.min(l*60,360),l<0&&(l+=360);const D=(a+x)/2;return x===a?f=0:D<=.5?f=c/(x+a):f=c/(2-x-a),[l,f*100,D*100]},r.rgb.hsv=function(n){let o,s,u,a,x;const c=n[0]/255,l=n[1]/255,f=n[2]/255,D=Math.max(c,l,f),h=D-Math.min(c,l,f),d=function(p){return(D-p)/6/h+1/2};return h===0?(a=0,x=0):(x=h/D,o=d(c),s=d(l),u=d(f),c===D?a=u-s:l===D?a=1/3+o-u:f===D&&(a=2/3+s-o),a<0?a+=1:a>1&&(a-=1)),[a*360,x*100,D*100]},r.rgb.hwb=function(n){const o=n[0],s=n[1];let u=n[2];const a=r.rgb.hsl(n)[0],x=1/255*Math.min(o,Math.min(s,u));return u=1-1/255*Math.max(o,Math.max(s,u)),[a,x*100,u*100]},r.rgb.cmyk=function(n){const o=n[0]/255,s=n[1]/255,u=n[2]/255,a=Math.min(1-o,1-s,1-u),x=(1-o-a)/(1-a)||0,c=(1-s-a)/(1-a)||0,l=(1-u-a)/(1-a)||0;return[x*100,c*100,l*100,a*100]};function i(n,o){return(n[0]-o[0])**2+(n[1]-o[1])**2+(n[2]-o[2])**2}return r.rgb.keyword=function(n){const o=t[n];if(o)return o;let s=1/0,u;for(const a of Object.keys(e)){const x=e[a],c=i(n,x);c<s&&(s=c,u=a)}return u},r.keyword.rgb=function(n){return e[n]},r.rgb.xyz=function(n){let o=n[0]/255,s=n[1]/255,u=n[2]/255;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,u=u>.04045?((u+.055)/1.055)**2.4:u/12.92;const a=o*.4124+s*.3576+u*.1805,x=o*.2126+s*.7152+u*.0722,c=o*.0193+s*.1192+u*.9505;return[a*100,x*100,c*100]},r.rgb.lab=function(n){const o=r.rgb.xyz(n);let s=o[0],u=o[1],a=o[2];s/=95.047,u/=100,a/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;const x=116*u-16,c=500*(s-u),l=200*(u-a);return[x,c,l]},r.hsl.rgb=function(n){const o=n[0]/360,s=n[1]/100,u=n[2]/100;let a,x,c;if(s===0)return c=u*255,[c,c,c];u<.5?a=u*(1+s):a=u+s-u*s;const l=2*u-a,f=[0,0,0];for(let D=0;D<3;D++)x=o+1/3*-(D-1),x<0&&x++,x>1&&x--,6*x<1?c=l+(a-l)*6*x:2*x<1?c=a:3*x<2?c=l+(a-l)*(2/3-x)*6:c=l,f[D]=c*255;return f},r.hsl.hsv=function(n){const o=n[0];let s=n[1]/100,u=n[2]/100,a=s;const x=Math.max(u,.01);u*=2,s*=u<=1?u:2-u,a*=x<=1?x:2-x;const c=(u+s)/2,l=u===0?2*a/(x+a):2*s/(u+s);return[o,l*100,c*100]},r.hsv.rgb=function(n){const o=n[0]/60,s=n[1]/100;let u=n[2]/100;const a=Math.floor(o)%6,x=o-Math.floor(o),c=255*u*(1-s),l=255*u*(1-s*x),f=255*u*(1-s*(1-x));switch(u*=255,a){case 0:return[u,f,c];case 1:return[l,u,c];case 2:return[c,u,f];case 3:return[c,l,u];case 4:return[f,c,u];case 5:return[u,c,l]}},r.hsv.hsl=function(n){const o=n[0],s=n[1]/100,u=n[2]/100,a=Math.max(u,.01);let x,c;c=(2-s)*u;const l=(2-s)*a;return x=s*a,x/=l<=1?l:2-l,x=x||0,c/=2,[o,x*100,c*100]},r.hwb.rgb=function(n){const o=n[0]/360;let s=n[1]/100,u=n[2]/100;const a=s+u;let x;a>1&&(s/=a,u/=a);const c=Math.floor(6*o),l=1-u;x=6*o-c,(c&1)!==0&&(x=1-x);const f=s+x*(l-s);let D,h,d;switch(c){default:case 6:case 0:D=l,h=f,d=s;break;case 1:D=f,h=l,d=s;break;case 2:D=s,h=l,d=f;break;case 3:D=s,h=f,d=l;break;case 4:D=f,h=s,d=l;break;case 5:D=l,h=s,d=f;break}return[D*255,h*255,d*255]},r.cmyk.rgb=function(n){const o=n[0]/100,s=n[1]/100,u=n[2]/100,a=n[3]/100,x=1-Math.min(1,o*(1-a)+a),c=1-Math.min(1,s*(1-a)+a),l=1-Math.min(1,u*(1-a)+a);return[x*255,c*255,l*255]},r.xyz.rgb=function(n){const o=n[0]/100,s=n[1]/100,u=n[2]/100;let a,x,c;return a=o*3.2406+s*-1.5372+u*-.4986,x=o*-.9689+s*1.8758+u*.0415,c=o*.0557+s*-.204+u*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,x=x>.0031308?1.055*x**(1/2.4)-.055:x*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,a=Math.min(Math.max(0,a),1),x=Math.min(Math.max(0,x),1),c=Math.min(Math.max(0,c),1),[a*255,x*255,c*255]},r.xyz.lab=function(n){let o=n[0],s=n[1],u=n[2];o/=95.047,s/=100,u/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;const a=116*s-16,x=500*(o-s),c=200*(s-u);return[a,x,c]},r.lab.xyz=function(n){const o=n[0],s=n[1],u=n[2];let a,x,c;x=(o+16)/116,a=s/500+x,c=x-u/200;const l=x**3,f=a**3,D=c**3;return x=l>.008856?l:(x-16/116)/7.787,a=f>.008856?f:(a-16/116)/7.787,c=D>.008856?D:(c-16/116)/7.787,a*=95.047,x*=100,c*=108.883,[a,x,c]},r.lab.lch=function(n){const o=n[0],s=n[1],u=n[2];let a;a=Math.atan2(u,s)*360/2/Math.PI,a<0&&(a+=360);const c=Math.sqrt(s*s+u*u);return[o,c,a]},r.lch.lab=function(n){const o=n[0],s=n[1],a=n[2]/360*2*Math.PI,x=s*Math.cos(a),c=s*Math.sin(a);return[o,x,c]},r.rgb.ansi16=function(n,o=null){const[s,u,a]=n;let x=o===null?r.rgb.hsv(n)[2]:o;if(x=Math.round(x/50),x===0)return 30;let c=30+(Math.round(a/255)<<2|Math.round(u/255)<<1|Math.round(s/255));return x===2&&(c+=60),c},r.hsv.ansi16=function(n){return r.rgb.ansi16(r.hsv.rgb(n),n[2])},r.rgb.ansi256=function(n){const o=n[0],s=n[1],u=n[2];return o===s&&s===u?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(s/255*5)+Math.round(u/255*5)},r.ansi16.rgb=function(n){let o=n%10;if(o===0||o===7)return n>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const s=(~~(n>50)+1)*.5,u=(o&1)*s*255,a=(o>>1&1)*s*255,x=(o>>2&1)*s*255;return[u,a,x]},r.ansi256.rgb=function(n){if(n>=232){const x=(n-232)*10+8;return[x,x,x]}n-=16;let o;const s=Math.floor(n/36)/5*255,u=Math.floor((o=n%36)/6)/5*255,a=o%6/5*255;return[s,u,a]},r.rgb.hex=function(n){const s=(((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},r.hex.rgb=function(n){const o=n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!o)return[0,0,0];let s=o[0];o[0].length===3&&(s=s.split("").map(l=>l+l).join(""));const u=parseInt(s,16),a=u>>16&255,x=u>>8&255,c=u&255;return[a,x,c]},r.rgb.hcg=function(n){const o=n[0]/255,s=n[1]/255,u=n[2]/255,a=Math.max(Math.max(o,s),u),x=Math.min(Math.min(o,s),u),c=a-x;let l,f;return c<1?l=x/(1-c):l=0,c<=0?f=0:a===o?f=(s-u)/c%6:a===s?f=2+(u-o)/c:f=4+(o-s)/c,f/=6,f%=1,[f*360,c*100,l*100]},r.hsl.hcg=function(n){const o=n[1]/100,s=n[2]/100,u=s<.5?2*o*s:2*o*(1-s);let a=0;return u<1&&(a=(s-.5*u)/(1-u)),[n[0],u*100,a*100]},r.hsv.hcg=function(n){const o=n[1]/100,s=n[2]/100,u=o*s;let a=0;return u<1&&(a=(s-u)/(1-u)),[n[0],u*100,a*100]},r.hcg.rgb=function(n){const o=n[0]/360,s=n[1]/100,u=n[2]/100;if(s===0)return[u*255,u*255,u*255];const a=[0,0,0],x=o%1*6,c=x%1,l=1-c;let f=0;switch(Math.floor(x)){case 0:a[0]=1,a[1]=c,a[2]=0;break;case 1:a[0]=l,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=c;break;case 3:a[0]=0,a[1]=l,a[2]=1;break;case 4:a[0]=c,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=l}return f=(1-s)*u,[(s*a[0]+f)*255,(s*a[1]+f)*255,(s*a[2]+f)*255]},r.hcg.hsv=function(n){const o=n[1]/100,s=n[2]/100,u=o+s*(1-o);let a=0;return u>0&&(a=o/u),[n[0],a*100,u*100]},r.hcg.hsl=function(n){const o=n[1]/100,u=n[2]/100*(1-o)+.5*o;let a=0;return u>0&&u<.5?a=o/(2*u):u>=.5&&u<1&&(a=o/(2*(1-u))),[n[0],a*100,u*100]},r.hcg.hwb=function(n){const o=n[1]/100,s=n[2]/100,u=o+s*(1-o);return[n[0],(u-o)*100,(1-u)*100]},r.hwb.hcg=function(n){const o=n[1]/100,u=1-n[2]/100,a=u-o;let x=0;return a<1&&(x=(u-a)/(1-a)),[n[0],a*100,x*100]},r.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]},r.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]},r.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]},r.gray.hsl=function(n){return[0,0,n[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(n){return[0,100,n[0]]},r.gray.cmyk=function(n){return[0,0,0,n[0]]},r.gray.lab=function(n){return[n[0],0,0]},r.gray.hex=function(n){const o=Math.round(n[0]/100*255)&255,u=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".substring(u.length)+u},r.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]},Se}var _e,xr;function Ui(){if(xr)return _e;xr=1;const e=sr();function t(){const o={},s=Object.keys(e);for(let u=s.length,a=0;a<u;a++)o[s[a]]={distance:-1,parent:null};return o}function r(o){const s=t(),u=[o];for(s[o].distance=0;u.length;){const a=u.pop(),x=Object.keys(e[a]);for(let c=x.length,l=0;l<c;l++){const f=x[l],D=s[f];D.distance===-1&&(D.distance=s[a].distance+1,D.parent=a,u.unshift(f))}}return s}function i(o,s){return function(u){return s(o(u))}}function n(o,s){const u=[s[o].parent,o];let a=e[s[o].parent][o],x=s[o].parent;for(;s[x].parent;)u.unshift(s[x].parent),a=i(e[s[x].parent][x],a),x=s[x].parent;return a.conversion=u,a}return _e=function(o){const s=r(o),u={},a=Object.keys(s);for(let x=a.length,c=0;c<x;c++){const l=a[c];s[l].parent!==null&&(u[l]=n(l,s))}return u},_e}var Re,cr;function Pi(){if(cr)return Re;cr=1;const e=sr(),t=Ui(),r={},i=Object.keys(e);function n(s){const u=function(...a){const x=a[0];return x==null?x:(x.length>1&&(a=x),s(a))};return"conversion"in s&&(u.conversion=s.conversion),u}function o(s){const u=function(...a){const x=a[0];if(x==null)return x;x.length>1&&(a=x);const c=s(a);if(typeof c=="object")for(let l=c.length,f=0;f<l;f++)c[f]=Math.round(c[f]);return c};return"conversion"in s&&(u.conversion=s.conversion),u}return i.forEach(s=>{r[s]={},Object.defineProperty(r[s],"channels",{value:e[s].channels}),Object.defineProperty(r[s],"labels",{value:e[s].labels});const u=t(s);Object.keys(u).forEach(x=>{const c=u[x];r[s][x]=o(c),r[s][x].raw=n(c)})}),Re=r,Re}te.exports;var lr;function qi(){return lr||(lr=1,function(e){const t=(c,l)=>(...f)=>`\x1B[${c(...f)+l}m`,r=(c,l)=>(...f)=>{const D=c(...f);return`\x1B[${38+l};5;${D}m`},i=(c,l)=>(...f)=>{const D=c(...f);return`\x1B[${38+l};2;${D[0]};${D[1]};${D[2]}m`},n=c=>c,o=(c,l,f)=>[c,l,f],s=(c,l,f)=>{Object.defineProperty(c,l,{get:()=>{const D=f();return Object.defineProperty(c,l,{value:D,enumerable:!0,configurable:!0}),D},enumerable:!0,configurable:!0})};let u;const a=(c,l,f,D)=>{u===void 0&&(u=Pi());const h=D?10:0,d={};for(const[p,E]of Object.entries(u)){const b=p==="ansi16"?"ansi":p;p===l?d[b]=c(f,h):typeof E=="object"&&(d[b]=c(E[l],h))}return d};function x(){const c=new Map,l={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]}};l.color.gray=l.color.blackBright,l.bgColor.bgGray=l.bgColor.bgBlackBright,l.color.grey=l.color.blackBright,l.bgColor.bgGrey=l.bgColor.bgBlackBright;for(const[f,D]of Object.entries(l)){for(const[h,d]of Object.entries(D))l[h]={open:`\x1B[${d[0]}m`,close:`\x1B[${d[1]}m`},D[h]=l[h],c.set(d[0],d[1]);Object.defineProperty(l,f,{value:D,enumerable:!1})}return Object.defineProperty(l,"codes",{value:c,enumerable:!1}),l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",s(l.color,"ansi",()=>a(t,"ansi16",n,!1)),s(l.color,"ansi256",()=>a(r,"ansi256",n,!1)),s(l.color,"ansi16m",()=>a(i,"rgb",o,!1)),s(l.bgColor,"ansi",()=>a(t,"ansi16",n,!0)),s(l.bgColor,"ansi256",()=>a(r,"ansi256",n,!0)),s(l.bgColor,"ansi16m",()=>a(i,"rgb",o,!0)),l}Object.defineProperty(e,"exports",{enumerable:!0,get:x})}(te)),te.exports}var ke,fr;function Ni(){if(fr)return ke;fr=1;const e=Mi(),t=rr(),r=qi(),i=new Set(["\x1B","\x9B"]),n=39,o=c=>`${i.values().next().value}[${c}m`,s=c=>c.split(" ").map(l=>e(l)),u=(c,l,f)=>{const D=[...l];let h=!1,d=e(t(c[c.length-1]));for(const[p,E]of D.entries()){const b=e(E);if(d+b<=f?c[c.length-1]+=E:(c.push(E),d=0),i.has(E))h=!0;else if(h&&E==="m"){h=!1;continue}h||(d+=b,d===f&&p<D.length-1&&(c.push(""),d=0))}!d&&c[c.length-1].length>0&&c.length>1&&(c[c.length-2]+=c.pop())},a=c=>{const l=c.split(" ");let f=l.length;for(;f>0&&!(e(l[f-1])>0);)f--;return f===l.length?c:l.slice(0,f).join(" ")+l.slice(f).join("")},x=(c,l,f={})=>{if(f.trim!==!1&&c.trim()==="")return"";let D="",h="",d;const p=s(c);let E=[""];for(const[b,m]of c.split(" ").entries()){f.trim!==!1&&(E[E.length-1]=E[E.length-1].trimLeft());let F=e(E[E.length-1]);if(b!==0&&(F>=l&&(f.wordWrap===!1||f.trim===!1)&&(E.push(""),F=0),(F>0||f.trim===!1)&&(E[E.length-1]+=" ",F++)),f.hard&&p[b]>l){const C=l-F,g=1+Math.floor((p[b]-C-1)/l);Math.floor((p[b]-1)/l)<g&&E.push(""),u(E,m,l);continue}if(F+p[b]>l&&F>0&&p[b]>0){if(f.wordWrap===!1&&F<l){u(E,m,l);continue}E.push("")}if(F+p[b]>l&&f.wordWrap===!1){u(E,m,l);continue}E[E.length-1]+=m}f.trim!==!1&&(E=E.map(a)),D=E.join(`
1
+ import Tt from"child_process";import se from"path";import xe from"which";import z0 from"fs";import G from"node:path";import N from"node:fs";import*as Gn from"node:readline";import Wn from"node:readline";import Y0 from"stream";import zn from"node:tty";import K from"node:process";import{AsyncLocalStorage as Yn,AsyncResource as $0}from"node:async_hooks";import{stripVTControlCharacters as Hn}from"node:util";import Kn from"tty";import H0 from"util";import M0 from"buffer";import Jn from"string_decoder";import Xn from"crypto";import{fileURLToPath as Zn}from"node:url";function o0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qn(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var x0={exports:{}},K0={exports:{}},Ot;function ei(){if(Ot)return K0.exports;Ot=1;const e=(t={})=>{const r=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};return K0.exports=e,K0.exports.default=e,K0.exports}var ce,It;function ti(){if(It)return ce;It=1;const e=se,t=xe,r=ei();function i(o,s){const u=o.options.env||process.env,a=process.cwd(),x=o.options.cwd!=null,c=x&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(o.options.cwd)}catch{}let l;try{l=t.sync(o.command,{path:u[r({env:u})],pathExt:s?e.delimiter:void 0})}catch{}finally{c&&process.chdir(a)}return l&&(l=e.resolve(x?o.options.cwd:"",l)),l}function n(o){return i(o)||i(o,!0)}return ce=n,ce}var J0={},Lt;function ri(){if(Lt)return J0;Lt=1;const e=/([()\][%!^"`<>&|;, *?])/g;function t(i){return i=i.replace(e,"^$1"),i}function r(i,n){return i=`${i}`,i=i.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),i=i.replace(/(?=(\\+?)?)\1$/,"$1$1"),i=`"${i}"`,i=i.replace(e,"^$1"),n&&(i=i.replace(e,"^$1")),i}return J0.command=t,J0.argument=r,J0}var le,$t;function ni(){return $t||($t=1,le=/^#!(.*)/),le}var fe,Mt;function ii(){if(Mt)return fe;Mt=1;const e=ni();return fe=(t="")=>{const r=t.match(e);if(!r)return null;const[i,n]=r[0].replace(/#! ?/,"").split(" "),o=i.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o},fe}var De,jt;function oi(){if(jt)return De;jt=1;const e=z0,t=ii();function r(i){const o=Buffer.alloc(150);let s;try{s=e.openSync(i,"r"),e.readSync(s,o,0,150,0),e.closeSync(s)}catch{}return t(o.toString())}return De=r,De}var de,Ut;function ai(){if(Ut)return de;Ut=1;const e=se,t=ti(),r=ri(),i=oi(),n=process.platform==="win32",o=/\.(?:com|exe)$/i,s=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(c){c.file=t(c);const l=c.file&&i(c.file);return l?(c.args.unshift(c.file),c.command=l,t(c)):c.file}function a(c){if(!n)return c;const l=u(c),f=!o.test(l);if(c.options.forceShell||f){const D=s.test(l);c.command=e.normalize(c.command),c.command=r.command(c.command),c.args=c.args.map(d=>r.argument(d,D));const h=[c.command].concat(c.args).join(" ");c.args=["/d","/s","/c",`"${h}"`],c.command=process.env.comspec||"cmd.exe",c.options.windowsVerbatimArguments=!0}return c}function x(c,l,f){l&&!Array.isArray(l)&&(f=l,l=null),l=l?l.slice(0):[],f=Object.assign({},f);const D={command:c,args:l,options:f,file:void 0,original:{command:c,args:l}};return f.shell?D:a(D)}return de=x,de}var he,Pt;function ui(){if(Pt)return he;Pt=1;const e=process.platform==="win32";function t(o,s){return Object.assign(new Error(`${s} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${s} ${o.command}`,path:o.command,spawnargs:o.args})}function r(o,s){if(!e)return;const u=o.emit;o.emit=function(a,x){if(a==="exit"){const c=i(x,s);if(c)return u.call(o,"error",c)}return u.apply(o,arguments)}}function i(o,s){return e&&o===1&&!s.file?t(s.original,"spawn"):null}function n(o,s){return e&&o===1&&!s.file?t(s.original,"spawnSync"):null}return he={hookChildProcess:r,verifyENOENT:i,verifyENOENTSync:n,notFoundError:t},he}var qt;function si(){if(qt)return x0.exports;qt=1;const e=Tt,t=ai(),r=ui();function i(o,s,u){const a=t(o,s,u),x=e.spawn(a.command,a.args,a.options);return r.hookChildProcess(x,a),x}function n(o,s,u){const a=t(o,s,u),x=e.spawnSync(a.command,a.args,a.options);return x.error=x.error||r.verifyENOENTSync(x.status,a),x}return x0.exports=i,x0.exports.spawn=i,x0.exports.sync=n,x0.exports._parse=t,x0.exports._enoent=r,x0.exports}var xi=si();const c0=o0(xi);let l0=!0;const E0=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let j0=0;if(E0.process&&E0.process.env&&E0.process.stdout){const{FORCE_COLOR:e,NODE_DISABLE_COLORS:t,NO_COLOR:r,TERM:i,COLORTERM:n}=E0.process.env;t||r||e==="0"?l0=!1:e==="1"||e==="2"||e==="3"?l0=!0:i==="dumb"?l0=!1:"CI"in E0.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in E0.process.env)?l0=!0:l0=process.stdout.isTTY,l0&&(process.platform==="win32"||n&&(n==="truecolor"||n==="24bit")?j0=3:i&&(i.endsWith("-256color")||i.endsWith("256"))?j0=2:j0=1)}let Nt={enabled:l0,supportLevel:j0};function X0(e,t,r=1){const i=`\x1B[${e}m`,n=`\x1B[${t}m`,o=new RegExp(`\\x1b\\[${t}m`,"g");return s=>Nt.enabled&&Nt.supportLevel>=r?i+(""+s).replace(o,i)+n:""+s}const Vt=X0(31,39),pe=X0(36,39),ci=X0(90,39),li=X0(91,39);var Ee,Gt;function fi(){if(Gt)return Ee;Gt=1;function e(i,n){var o=i;n.slice(0,-1).forEach(function(u){o=o[u]||{}});var s=n[n.length-1];return s in o}function t(i){return typeof i=="number"||/^0x[0-9a-f]+$/i.test(i)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(i)}function r(i,n){return n==="constructor"&&typeof i[n]=="function"||n==="__proto__"}return Ee=function(i,n){n||(n={});var o={bools:{},strings:{},unknownFn:null};typeof n.unknown=="function"&&(o.unknownFn=n.unknown),typeof n.boolean=="boolean"&&n.boolean?o.allBools=!0:[].concat(n.boolean).filter(Boolean).forEach(function(y){o.bools[y]=!0});var s={};function u(y){return s[y].some(function(A){return o.bools[A]})}Object.keys(n.alias||{}).forEach(function(y){s[y]=[].concat(n.alias[y]),s[y].forEach(function(A){s[A]=[y].concat(s[y].filter(function(v){return A!==v}))})}),[].concat(n.string).filter(Boolean).forEach(function(y){o.strings[y]=!0,s[y]&&[].concat(s[y]).forEach(function(A){o.strings[A]=!0})});var a=n.default||{},x={_:[]};function c(y,A){return o.allBools&&/^--[^=]+$/.test(A)||o.strings[y]||o.bools[y]||s[y]}function l(y,A,v){for(var w=y,$=0;$<A.length-1;$++){var L=A[$];if(r(w,L))return;w[L]===void 0&&(w[L]={}),(w[L]===Object.prototype||w[L]===Number.prototype||w[L]===String.prototype)&&(w[L]={}),w[L]===Array.prototype&&(w[L]=[]),w=w[L]}var R=A[A.length-1];r(w,R)||((w===Object.prototype||w===Number.prototype||w===String.prototype)&&(w={}),w===Array.prototype&&(w=[]),w[R]===void 0||o.bools[R]||typeof w[R]=="boolean"?w[R]=v:Array.isArray(w[R])?w[R].push(v):w[R]=[w[R],v])}function f(y,A,v){if(!(v&&o.unknownFn&&!c(y,v)&&o.unknownFn(v)===!1)){var w=!o.strings[y]&&t(A)?Number(A):A;l(x,y.split("."),w),(s[y]||[]).forEach(function($){l(x,$.split("."),w)})}}Object.keys(o.bools).forEach(function(y){f(y,a[y]===void 0?!1:a[y])});var D=[];i.indexOf("--")!==-1&&(D=i.slice(i.indexOf("--")+1),i=i.slice(0,i.indexOf("--")));for(var h=0;h<i.length;h++){var d=i[h],p,E;if(/^--.+=/.test(d)){var b=d.match(/^--([^=]+)=([\s\S]*)$/);p=b[1];var m=b[2];o.bools[p]&&(m=m!=="false"),f(p,m,d)}else if(/^--no-.+/.test(d))p=d.match(/^--no-(.+)/)[1],f(p,!1,d);else if(/^--.+/.test(d))p=d.match(/^--(.+)/)[1],E=i[h+1],E!==void 0&&!/^(-|--)[^-]/.test(E)&&!o.bools[p]&&!o.allBools&&(!s[p]||!u(p))?(f(p,E,d),h+=1):/^(true|false)$/.test(E)?(f(p,E==="true",d),h+=1):f(p,o.strings[p]?"":!0,d);else if(/^-[^-]+/.test(d)){for(var F=d.slice(1,-1).split(""),C=!1,g=0;g<F.length;g++){if(E=d.slice(g+2),E==="-"){f(F[g],E,d);continue}if(/[A-Za-z]/.test(F[g])&&E[0]==="="){f(F[g],E.slice(1),d),C=!0;break}if(/[A-Za-z]/.test(F[g])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(E)){f(F[g],E,d),C=!0;break}if(F[g+1]&&F[g+1].match(/\W/)){f(F[g],d.slice(g+2),d),C=!0;break}else f(F[g],o.strings[F[g]]?"":!0,d)}p=d.slice(-1)[0],!C&&p!=="-"&&(i[h+1]&&!/^(-|--)[^-]/.test(i[h+1])&&!o.bools[p]&&(!s[p]||!u(p))?(f(p,i[h+1],d),h+=1):i[h+1]&&/^(true|false)$/.test(i[h+1])?(f(p,i[h+1]==="true",d),h+=1):f(p,o.strings[p]?"":!0,d))}else if((!o.unknownFn||o.unknownFn(d)!==!1)&&x._.push(o.strings._||!t(d)?d:Number(d)),n.stopEarly){x._.push.apply(x._,i.slice(h+1));break}}return Object.keys(a).forEach(function(y){e(x,y.split("."))||(l(x,y.split("."),a[y]),(s[y]||[]).forEach(function(A){l(x,A.split("."),a[y])}))}),n["--"]?x["--"]=D.slice():D.forEach(function(y){x._.push(y)}),x},Ee}var Di=fi();const di=o0(Di),b0=e=>e.name==="up"||e.name==="k"||e.ctrl&&e.name==="p",Z0=e=>e.name==="down"||e.name==="j"||e.ctrl&&e.name==="n",hi=e=>e.name==="space",be=e=>e.name==="backspace",Wt=e=>"123456789".includes(e.name),J=e=>e.name==="enter"||e.name==="return";class Fe extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(t){super(),this.cause=t?.cause}}class pi extends Error{name="CancelPromptError";message="Prompt was canceled"}class Ei extends Error{name="ExitPromptError"}class bi extends Error{name="HookError"}class me extends Error{name="ValidationError"}const zt=new Yn;function Fi(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function mi(e,t){const r=Fi(e);return zt.run(r,()=>{function i(n){r.handleChange=()=>{r.index=0,n()},r.handleChange()}return t(i)})}function f0(){const e=zt.getStore();if(!e)throw new bi("[Inquirer] Hook functions can only be called from within a prompt");return e}function Yt(){return f0().rl}function Ht(e){const t=(...r)=>{const i=f0();let n=!1;const o=i.handleChange;i.handleChange=()=>{n=!0};const s=e(...r);return n&&o(),i.handleChange=o,s};return $0.bind(t)}function Ce(e){const t=f0(),{index:r}=t,i={get(){return t.hooks[r]},set(o){t.hooks[r]=o},initialized:r in t.hooks},n=e(i);return t.index++,n}function Ci(){f0().handleChange()}const U0={queue(e){const t=f0(),{index:r}=t;t.hooksEffect.push(()=>{t.hooksCleanup[r]?.();const i=e(Yt());if(i!=null&&typeof i!="function")throw new me("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[r]=i})},run(){const e=f0();Ht(()=>{e.hooksEffect.forEach(t=>{t()}),e.hooksEffect.length=0})()},clearAll(){const e=f0();e.hooksCleanup.forEach(t=>{t?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}};function T(e){return Ce(t=>{const r=n=>{t.get()!==n&&(t.set(n),Ci())};if(t.initialized)return[t.get(),r];const i=typeof e=="function"?e():e;return t.set(i),[i,r]})}function P0(e,t){Ce(r=>{const i=r.get();(!Array.isArray(i)||t.some((o,s)=>!Object.is(o,i[s])))&&U0.queue(e),r.set(t)})}var ge,Kt;function gi(){if(Kt)return ge;Kt=1;const t=zn?.WriteStream?.prototype?.hasColors?.()??!1,r=(n,o)=>{if(!t)return a=>a;const s=`\x1B[${n}m`,u=`\x1B[${o}m`;return a=>{const x=a+"";let c=x.indexOf(u);if(c===-1)return s+x+u;let l=s,f=0;for(;c!==-1;)l+=x.slice(f,c)+s,f=c+u.length,c=x.indexOf(u,f);return l+=x.slice(f)+u,l}},i={};return i.reset=r(0,0),i.bold=r(1,22),i.dim=r(2,22),i.italic=r(3,23),i.underline=r(4,24),i.overline=r(53,55),i.inverse=r(7,27),i.hidden=r(8,28),i.strikethrough=r(9,29),i.black=r(30,39),i.red=r(31,39),i.green=r(32,39),i.yellow=r(33,39),i.blue=r(34,39),i.magenta=r(35,39),i.cyan=r(36,39),i.white=r(37,39),i.gray=r(90,39),i.bgBlack=r(40,49),i.bgRed=r(41,49),i.bgGreen=r(42,49),i.bgYellow=r(43,49),i.bgBlue=r(44,49),i.bgMagenta=r(45,49),i.bgCyan=r(46,49),i.bgWhite=r(47,49),i.bgGray=r(100,49),i.redBright=r(91,39),i.greenBright=r(92,39),i.yellowBright=r(93,39),i.blueBright=r(94,39),i.magentaBright=r(95,39),i.cyanBright=r(96,39),i.whiteBright=r(97,39),i.bgRedBright=r(101,49),i.bgGreenBright=r(102,49),i.bgYellowBright=r(103,49),i.bgBlueBright=r(104,49),i.bgMagentaBright=r(105,49),i.bgCyanBright=r(106,49),i.bgWhiteBright=r(107,49),ge=i,ge}var yi=gi();const M=o0(yi);function vi(){return K.platform!=="win32"?K.env.TERM!=="linux":!!K.env.WT_SESSION||!!K.env.TERMINUS_SUBLIME||K.env.ConEmuTask==="{cmd::Cmder}"||K.env.TERM_PROGRAM==="Terminus-Sublime"||K.env.TERM_PROGRAM==="vscode"||K.env.TERM==="xterm-256color"||K.env.TERM==="alacritty"||K.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const Jt={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},wi={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Bi={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Ai={...Jt,...wi},Si={...Jt,...Bi},_i=vi(),D0=_i?Ai:Si,Ri={prefix:{idle:M.blue("?"),done:M.green(D0.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(e=>M.yellow(e))},style:{answer:M.cyan,message:M.bold,error:e=>M.red(`> ${e}`),defaultAnswer:e=>M.dim(`(${e})`),help:M.dim,highlight:M.cyan,key:e=>M.cyan(M.bold(`<${e}>`))}};function Xt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Zt(...e){const t={};for(const r of e)for(const[i,n]of Object.entries(r)){const o=t[i];t[i]=Xt(o)&&Xt(n)?Zt(o,n):n}return t}function Y(...e){const t=[Ri,...e.filter(r=>r!=null)];return Zt(...t)}function X({status:e="idle",theme:t}){const[r,i]=T(!1),[n,o]=T(0),{prefix:s,spinner:u}=Y(t);return P0(()=>{if(e==="loading"){let x,c=-1;const l=setTimeout($0.bind(()=>{i(!0),x=setInterval($0.bind(()=>{c=c+1,o(c%u.frames.length)}),u.interval)}),300);return()=>{clearTimeout(l),clearInterval(x)}}else i(!1)},[e]),r?u.frames[n]:typeof s=="string"?s:s[e==="loading"?"idle":e]??s.idle}function d0(e,t){return Ce(r=>{const i=r.get();if(!i||i.dependencies.length!==t.length||i.dependencies.some((n,o)=>n!==t[o])){const n=e();return r.set({value:n,dependencies:t}),n}return i.value})}function F0(e){return T({current:e})[0]}function Z(e){const t=F0(e);t.current=e,P0(r=>{let i=!1;const n=Ht((o,s)=>{i||t.current(s,r)});return r.input.on("keypress",n),()=>{i=!0,r.input.removeListener("keypress",n)}},[])}var ye,Qt;function ki(){if(Qt)return ye;Qt=1,ye=t;function e(r){const i={defaultWidth:0,output:process.stdout,tty:Kn};return r?(Object.keys(i).forEach(function(n){r[n]||(r[n]=i[n])}),r):i}function t(r){const i=e(r);if(i.output.getWindowSize)return i.output.getWindowSize()[0]||i.defaultWidth;if(i.tty.getWindowSize)return i.tty.getWindowSize()[1]||i.defaultWidth;if(i.output.columns)return i.output.columns;if(process.env.CLI_WIDTH){const n=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(n)&&n!==0)return n}return i.defaultWidth}return ye}var Ti=ki();const Oi=o0(Ti);var Q0={exports:{}},ve,er;function Ii(){return er||(er=1,ve=({onlyFirst:e=!1}={})=>{const t=["[\\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(t,e?void 0:"g")}),ve}var we,tr;function rr(){if(tr)return we;tr=1;const e=Ii();return we=t=>typeof t=="string"?t.replace(e(),""):t,we}var ee={exports:{}},nr;function Li(){if(nr)return ee.exports;nr=1;const e=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);return ee.exports=e,ee.exports.default=e,ee.exports}var Be,ir;function $i(){return ir||(ir=1,Be=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}),Be}var or;function Mi(){if(or)return Q0.exports;or=1;const e=rr(),t=Li(),r=$i(),i=n=>{if(typeof n!="string"||n.length===0||(n=e(n),n.length===0))return 0;n=n.replace(r()," ");let o=0;for(let s=0;s<n.length;s++){const u=n.codePointAt(s);u<=31||u>=127&&u<=159||u>=768&&u<=879||(u>65535&&s++,o+=t(u)?2:1)}return o};return Q0.exports=i,Q0.exports.default=i,Q0.exports}var te={exports:{}},Ae,ar;function ji(){return ar||(ar=1,Ae={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]}),Ae}var Se,ur;function sr(){if(ur)return Se;ur=1;const e=ji(),t={};for(const n of Object.keys(e))t[e[n]]=n;const r={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"]}};Se=r;for(const n of Object.keys(r)){if(!("channels"in r[n]))throw new Error("missing channels property: "+n);if(!("labels"in r[n]))throw new Error("missing channel labels property: "+n);if(r[n].labels.length!==r[n].channels)throw new Error("channel and label counts mismatch: "+n);const{channels:o,labels:s}=r[n];delete r[n].channels,delete r[n].labels,Object.defineProperty(r[n],"channels",{value:o}),Object.defineProperty(r[n],"labels",{value:s})}r.rgb.hsl=function(n){const o=n[0]/255,s=n[1]/255,u=n[2]/255,a=Math.min(o,s,u),x=Math.max(o,s,u),c=x-a;let l,f;x===a?l=0:o===x?l=(s-u)/c:s===x?l=2+(u-o)/c:u===x&&(l=4+(o-s)/c),l=Math.min(l*60,360),l<0&&(l+=360);const D=(a+x)/2;return x===a?f=0:D<=.5?f=c/(x+a):f=c/(2-x-a),[l,f*100,D*100]},r.rgb.hsv=function(n){let o,s,u,a,x;const c=n[0]/255,l=n[1]/255,f=n[2]/255,D=Math.max(c,l,f),h=D-Math.min(c,l,f),d=function(p){return(D-p)/6/h+1/2};return h===0?(a=0,x=0):(x=h/D,o=d(c),s=d(l),u=d(f),c===D?a=u-s:l===D?a=1/3+o-u:f===D&&(a=2/3+s-o),a<0?a+=1:a>1&&(a-=1)),[a*360,x*100,D*100]},r.rgb.hwb=function(n){const o=n[0],s=n[1];let u=n[2];const a=r.rgb.hsl(n)[0],x=1/255*Math.min(o,Math.min(s,u));return u=1-1/255*Math.max(o,Math.max(s,u)),[a,x*100,u*100]},r.rgb.cmyk=function(n){const o=n[0]/255,s=n[1]/255,u=n[2]/255,a=Math.min(1-o,1-s,1-u),x=(1-o-a)/(1-a)||0,c=(1-s-a)/(1-a)||0,l=(1-u-a)/(1-a)||0;return[x*100,c*100,l*100,a*100]};function i(n,o){return(n[0]-o[0])**2+(n[1]-o[1])**2+(n[2]-o[2])**2}return r.rgb.keyword=function(n){const o=t[n];if(o)return o;let s=1/0,u;for(const a of Object.keys(e)){const x=e[a],c=i(n,x);c<s&&(s=c,u=a)}return u},r.keyword.rgb=function(n){return e[n]},r.rgb.xyz=function(n){let o=n[0]/255,s=n[1]/255,u=n[2]/255;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,u=u>.04045?((u+.055)/1.055)**2.4:u/12.92;const a=o*.4124+s*.3576+u*.1805,x=o*.2126+s*.7152+u*.0722,c=o*.0193+s*.1192+u*.9505;return[a*100,x*100,c*100]},r.rgb.lab=function(n){const o=r.rgb.xyz(n);let s=o[0],u=o[1],a=o[2];s/=95.047,u/=100,a/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;const x=116*u-16,c=500*(s-u),l=200*(u-a);return[x,c,l]},r.hsl.rgb=function(n){const o=n[0]/360,s=n[1]/100,u=n[2]/100;let a,x,c;if(s===0)return c=u*255,[c,c,c];u<.5?a=u*(1+s):a=u+s-u*s;const l=2*u-a,f=[0,0,0];for(let D=0;D<3;D++)x=o+1/3*-(D-1),x<0&&x++,x>1&&x--,6*x<1?c=l+(a-l)*6*x:2*x<1?c=a:3*x<2?c=l+(a-l)*(2/3-x)*6:c=l,f[D]=c*255;return f},r.hsl.hsv=function(n){const o=n[0];let s=n[1]/100,u=n[2]/100,a=s;const x=Math.max(u,.01);u*=2,s*=u<=1?u:2-u,a*=x<=1?x:2-x;const c=(u+s)/2,l=u===0?2*a/(x+a):2*s/(u+s);return[o,l*100,c*100]},r.hsv.rgb=function(n){const o=n[0]/60,s=n[1]/100;let u=n[2]/100;const a=Math.floor(o)%6,x=o-Math.floor(o),c=255*u*(1-s),l=255*u*(1-s*x),f=255*u*(1-s*(1-x));switch(u*=255,a){case 0:return[u,f,c];case 1:return[l,u,c];case 2:return[c,u,f];case 3:return[c,l,u];case 4:return[f,c,u];case 5:return[u,c,l]}},r.hsv.hsl=function(n){const o=n[0],s=n[1]/100,u=n[2]/100,a=Math.max(u,.01);let x,c;c=(2-s)*u;const l=(2-s)*a;return x=s*a,x/=l<=1?l:2-l,x=x||0,c/=2,[o,x*100,c*100]},r.hwb.rgb=function(n){const o=n[0]/360;let s=n[1]/100,u=n[2]/100;const a=s+u;let x;a>1&&(s/=a,u/=a);const c=Math.floor(6*o),l=1-u;x=6*o-c,(c&1)!==0&&(x=1-x);const f=s+x*(l-s);let D,h,d;switch(c){default:case 6:case 0:D=l,h=f,d=s;break;case 1:D=f,h=l,d=s;break;case 2:D=s,h=l,d=f;break;case 3:D=s,h=f,d=l;break;case 4:D=f,h=s,d=l;break;case 5:D=l,h=s,d=f;break}return[D*255,h*255,d*255]},r.cmyk.rgb=function(n){const o=n[0]/100,s=n[1]/100,u=n[2]/100,a=n[3]/100,x=1-Math.min(1,o*(1-a)+a),c=1-Math.min(1,s*(1-a)+a),l=1-Math.min(1,u*(1-a)+a);return[x*255,c*255,l*255]},r.xyz.rgb=function(n){const o=n[0]/100,s=n[1]/100,u=n[2]/100;let a,x,c;return a=o*3.2406+s*-1.5372+u*-.4986,x=o*-.9689+s*1.8758+u*.0415,c=o*.0557+s*-.204+u*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,x=x>.0031308?1.055*x**(1/2.4)-.055:x*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,a=Math.min(Math.max(0,a),1),x=Math.min(Math.max(0,x),1),c=Math.min(Math.max(0,c),1),[a*255,x*255,c*255]},r.xyz.lab=function(n){let o=n[0],s=n[1],u=n[2];o/=95.047,s/=100,u/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;const a=116*s-16,x=500*(o-s),c=200*(s-u);return[a,x,c]},r.lab.xyz=function(n){const o=n[0],s=n[1],u=n[2];let a,x,c;x=(o+16)/116,a=s/500+x,c=x-u/200;const l=x**3,f=a**3,D=c**3;return x=l>.008856?l:(x-16/116)/7.787,a=f>.008856?f:(a-16/116)/7.787,c=D>.008856?D:(c-16/116)/7.787,a*=95.047,x*=100,c*=108.883,[a,x,c]},r.lab.lch=function(n){const o=n[0],s=n[1],u=n[2];let a;a=Math.atan2(u,s)*360/2/Math.PI,a<0&&(a+=360);const c=Math.sqrt(s*s+u*u);return[o,c,a]},r.lch.lab=function(n){const o=n[0],s=n[1],a=n[2]/360*2*Math.PI,x=s*Math.cos(a),c=s*Math.sin(a);return[o,x,c]},r.rgb.ansi16=function(n,o=null){const[s,u,a]=n;let x=o===null?r.rgb.hsv(n)[2]:o;if(x=Math.round(x/50),x===0)return 30;let c=30+(Math.round(a/255)<<2|Math.round(u/255)<<1|Math.round(s/255));return x===2&&(c+=60),c},r.hsv.ansi16=function(n){return r.rgb.ansi16(r.hsv.rgb(n),n[2])},r.rgb.ansi256=function(n){const o=n[0],s=n[1],u=n[2];return o===s&&s===u?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(s/255*5)+Math.round(u/255*5)},r.ansi16.rgb=function(n){let o=n%10;if(o===0||o===7)return n>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const s=(~~(n>50)+1)*.5,u=(o&1)*s*255,a=(o>>1&1)*s*255,x=(o>>2&1)*s*255;return[u,a,x]},r.ansi256.rgb=function(n){if(n>=232){const x=(n-232)*10+8;return[x,x,x]}n-=16;let o;const s=Math.floor(n/36)/5*255,u=Math.floor((o=n%36)/6)/5*255,a=o%6/5*255;return[s,u,a]},r.rgb.hex=function(n){const s=(((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},r.hex.rgb=function(n){const o=n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!o)return[0,0,0];let s=o[0];o[0].length===3&&(s=s.split("").map(l=>l+l).join(""));const u=parseInt(s,16),a=u>>16&255,x=u>>8&255,c=u&255;return[a,x,c]},r.rgb.hcg=function(n){const o=n[0]/255,s=n[1]/255,u=n[2]/255,a=Math.max(Math.max(o,s),u),x=Math.min(Math.min(o,s),u),c=a-x;let l,f;return c<1?l=x/(1-c):l=0,c<=0?f=0:a===o?f=(s-u)/c%6:a===s?f=2+(u-o)/c:f=4+(o-s)/c,f/=6,f%=1,[f*360,c*100,l*100]},r.hsl.hcg=function(n){const o=n[1]/100,s=n[2]/100,u=s<.5?2*o*s:2*o*(1-s);let a=0;return u<1&&(a=(s-.5*u)/(1-u)),[n[0],u*100,a*100]},r.hsv.hcg=function(n){const o=n[1]/100,s=n[2]/100,u=o*s;let a=0;return u<1&&(a=(s-u)/(1-u)),[n[0],u*100,a*100]},r.hcg.rgb=function(n){const o=n[0]/360,s=n[1]/100,u=n[2]/100;if(s===0)return[u*255,u*255,u*255];const a=[0,0,0],x=o%1*6,c=x%1,l=1-c;let f=0;switch(Math.floor(x)){case 0:a[0]=1,a[1]=c,a[2]=0;break;case 1:a[0]=l,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=c;break;case 3:a[0]=0,a[1]=l,a[2]=1;break;case 4:a[0]=c,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=l}return f=(1-s)*u,[(s*a[0]+f)*255,(s*a[1]+f)*255,(s*a[2]+f)*255]},r.hcg.hsv=function(n){const o=n[1]/100,s=n[2]/100,u=o+s*(1-o);let a=0;return u>0&&(a=o/u),[n[0],a*100,u*100]},r.hcg.hsl=function(n){const o=n[1]/100,u=n[2]/100*(1-o)+.5*o;let a=0;return u>0&&u<.5?a=o/(2*u):u>=.5&&u<1&&(a=o/(2*(1-u))),[n[0],a*100,u*100]},r.hcg.hwb=function(n){const o=n[1]/100,s=n[2]/100,u=o+s*(1-o);return[n[0],(u-o)*100,(1-u)*100]},r.hwb.hcg=function(n){const o=n[1]/100,u=1-n[2]/100,a=u-o;let x=0;return a<1&&(x=(u-a)/(1-a)),[n[0],a*100,x*100]},r.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]},r.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]},r.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]},r.gray.hsl=function(n){return[0,0,n[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(n){return[0,100,n[0]]},r.gray.cmyk=function(n){return[0,0,0,n[0]]},r.gray.lab=function(n){return[n[0],0,0]},r.gray.hex=function(n){const o=Math.round(n[0]/100*255)&255,u=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".substring(u.length)+u},r.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]},Se}var _e,xr;function Ui(){if(xr)return _e;xr=1;const e=sr();function t(){const o={},s=Object.keys(e);for(let u=s.length,a=0;a<u;a++)o[s[a]]={distance:-1,parent:null};return o}function r(o){const s=t(),u=[o];for(s[o].distance=0;u.length;){const a=u.pop(),x=Object.keys(e[a]);for(let c=x.length,l=0;l<c;l++){const f=x[l],D=s[f];D.distance===-1&&(D.distance=s[a].distance+1,D.parent=a,u.unshift(f))}}return s}function i(o,s){return function(u){return s(o(u))}}function n(o,s){const u=[s[o].parent,o];let a=e[s[o].parent][o],x=s[o].parent;for(;s[x].parent;)u.unshift(s[x].parent),a=i(e[s[x].parent][x],a),x=s[x].parent;return a.conversion=u,a}return _e=function(o){const s=r(o),u={},a=Object.keys(s);for(let x=a.length,c=0;c<x;c++){const l=a[c];s[l].parent!==null&&(u[l]=n(l,s))}return u},_e}var Re,cr;function Pi(){if(cr)return Re;cr=1;const e=sr(),t=Ui(),r={},i=Object.keys(e);function n(s){const u=function(...a){const x=a[0];return x==null?x:(x.length>1&&(a=x),s(a))};return"conversion"in s&&(u.conversion=s.conversion),u}function o(s){const u=function(...a){const x=a[0];if(x==null)return x;x.length>1&&(a=x);const c=s(a);if(typeof c=="object")for(let l=c.length,f=0;f<l;f++)c[f]=Math.round(c[f]);return c};return"conversion"in s&&(u.conversion=s.conversion),u}return i.forEach(s=>{r[s]={},Object.defineProperty(r[s],"channels",{value:e[s].channels}),Object.defineProperty(r[s],"labels",{value:e[s].labels});const u=t(s);Object.keys(u).forEach(x=>{const c=u[x];r[s][x]=o(c),r[s][x].raw=n(c)})}),Re=r,Re}te.exports;var lr;function qi(){return lr||(lr=1,function(e){const t=(c,l)=>(...f)=>`\x1B[${c(...f)+l}m`,r=(c,l)=>(...f)=>{const D=c(...f);return`\x1B[${38+l};5;${D}m`},i=(c,l)=>(...f)=>{const D=c(...f);return`\x1B[${38+l};2;${D[0]};${D[1]};${D[2]}m`},n=c=>c,o=(c,l,f)=>[c,l,f],s=(c,l,f)=>{Object.defineProperty(c,l,{get:()=>{const D=f();return Object.defineProperty(c,l,{value:D,enumerable:!0,configurable:!0}),D},enumerable:!0,configurable:!0})};let u;const a=(c,l,f,D)=>{u===void 0&&(u=Pi());const h=D?10:0,d={};for(const[p,E]of Object.entries(u)){const b=p==="ansi16"?"ansi":p;p===l?d[b]=c(f,h):typeof E=="object"&&(d[b]=c(E[l],h))}return d};function x(){const c=new Map,l={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]}};l.color.gray=l.color.blackBright,l.bgColor.bgGray=l.bgColor.bgBlackBright,l.color.grey=l.color.blackBright,l.bgColor.bgGrey=l.bgColor.bgBlackBright;for(const[f,D]of Object.entries(l)){for(const[h,d]of Object.entries(D))l[h]={open:`\x1B[${d[0]}m`,close:`\x1B[${d[1]}m`},D[h]=l[h],c.set(d[0],d[1]);Object.defineProperty(l,f,{value:D,enumerable:!1})}return Object.defineProperty(l,"codes",{value:c,enumerable:!1}),l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",s(l.color,"ansi",()=>a(t,"ansi16",n,!1)),s(l.color,"ansi256",()=>a(r,"ansi256",n,!1)),s(l.color,"ansi16m",()=>a(i,"rgb",o,!1)),s(l.bgColor,"ansi",()=>a(t,"ansi16",n,!0)),s(l.bgColor,"ansi256",()=>a(r,"ansi256",n,!0)),s(l.bgColor,"ansi16m",()=>a(i,"rgb",o,!0)),l}Object.defineProperty(e,"exports",{enumerable:!0,get:x})}(te)),te.exports}var ke,fr;function Ni(){if(fr)return ke;fr=1;const e=Mi(),t=rr(),r=qi(),i=new Set(["\x1B","\x9B"]),n=39,o=c=>`${i.values().next().value}[${c}m`,s=c=>c.split(" ").map(l=>e(l)),u=(c,l,f)=>{const D=[...l];let h=!1,d=e(t(c[c.length-1]));for(const[p,E]of D.entries()){const b=e(E);if(d+b<=f?c[c.length-1]+=E:(c.push(E),d=0),i.has(E))h=!0;else if(h&&E==="m"){h=!1;continue}h||(d+=b,d===f&&p<D.length-1&&(c.push(""),d=0))}!d&&c[c.length-1].length>0&&c.length>1&&(c[c.length-2]+=c.pop())},a=c=>{const l=c.split(" ");let f=l.length;for(;f>0&&!(e(l[f-1])>0);)f--;return f===l.length?c:l.slice(0,f).join(" ")+l.slice(f).join("")},x=(c,l,f={})=>{if(f.trim!==!1&&c.trim()==="")return"";let D="",h="",d;const p=s(c);let E=[""];for(const[b,m]of c.split(" ").entries()){f.trim!==!1&&(E[E.length-1]=E[E.length-1].trimLeft());let F=e(E[E.length-1]);if(b!==0&&(F>=l&&(f.wordWrap===!1||f.trim===!1)&&(E.push(""),F=0),(F>0||f.trim===!1)&&(E[E.length-1]+=" ",F++)),f.hard&&p[b]>l){const C=l-F,g=1+Math.floor((p[b]-C-1)/l);Math.floor((p[b]-1)/l)<g&&E.push(""),u(E,m,l);continue}if(F+p[b]>l&&F>0&&p[b]>0){if(f.wordWrap===!1&&F<l){u(E,m,l);continue}E.push("")}if(F+p[b]>l&&f.wordWrap===!1){u(E,m,l);continue}E[E.length-1]+=m}f.trim!==!1&&(E=E.map(a)),D=E.join(`
2
2
  `);for(const[b,m]of[...D].entries()){if(h+=m,i.has(m)){const C=parseFloat(/\d[^m]*/.exec(D.slice(b,b+4)));d=C===n?null:C}const F=r.codes.get(Number(d));d&&F&&(D[b+1]===`
3
3
  `?h+=o(F):m===`
4
4
  `&&(h+=o(d)))}return h};return ke=(c,l,f)=>String(c).normalize().replace(/\r\n/g,`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-pixi-vn",
3
3
  "description": "Create a new Pixi’VN project",
4
- "version": "1.1.13",
4
+ "version": "1.1.15",
5
5
  "type": "module",
6
6
  "license": "GPL-3.0",
7
7
  "author": "DRincs-Productions",
@@ -24,11 +24,12 @@ type TypewriterStoreType = {
24
24
  };
25
25
 
26
26
  const useTypewriterStore = create<TypewriterStoreType>((set) => ({
27
- delay: localStorage.getItem("typewriter_delay_millisecond")
28
- ? parseInt(localStorage.getItem("typewriter_delay_millisecond")!)
29
- : 10,
27
+ delay:
28
+ typeof localStorage.getItem("typewriter_delay_millisecond") === "number"
29
+ ? parseInt(localStorage.getItem("typewriter_delay_millisecond")!)
30
+ : 10,
30
31
  setDelay: (value: number) => {
31
- if (value) {
32
+ if (typeof value === "number") {
32
33
  localStorage.setItem("typewriter_delay_millisecond", value.toString());
33
34
  set({ delay: value });
34
35
  }
@@ -1,6 +1,7 @@
1
- import { CharacterBaseModel, getCharacterById, narration } from "@drincs/pixi-vn";
1
+ import { CharacterInterface, getCharacterById, narration } from "@drincs/pixi-vn";
2
2
  import { useQuery, useQueryClient } from "@tanstack/react-query";
3
3
  import { useTranslation } from "react-i18next";
4
+ import Character from "../models/Character";
4
5
 
5
6
  export const INTERFACE_DATA_USE_QUEY_KEY = "interface_data_use_quey_key";
6
7
 
@@ -41,7 +42,7 @@ export function useQueryInputValue<T>() {
41
42
  type DialogueModel = {
42
43
  text?: string;
43
44
  oldText?: string;
44
- character?: CharacterBaseModel;
45
+ character?: CharacterInterface;
45
46
  };
46
47
  const DIALOGUE_USE_QUEY_KEY = "dialogue_use_quey_key";
47
48
  export function useQueryDialogue() {
@@ -53,11 +54,11 @@ export function useQueryDialogue() {
53
54
  queryFn: ({ queryKey }) => {
54
55
  let dialogue = narration.dialogue;
55
56
  let text: string | undefined = dialogue?.text;
56
- let newCharacter: CharacterBaseModel | undefined = undefined;
57
+ let newCharacter: CharacterInterface | undefined = undefined;
57
58
  if (dialogue) {
58
59
  newCharacter = dialogue.character ? getCharacterById(dialogue.character) : undefined;
59
60
  if (!newCharacter && dialogue.character) {
60
- newCharacter = new CharacterBaseModel(dialogue.character, { name: tNarration(dialogue.character) });
61
+ newCharacter = new Character(dialogue.character, { name: tNarration(dialogue.character) });
61
62
  }
62
63
  }
63
64
 
@@ -101,7 +102,7 @@ export function useQueryNarrativeHistory({ searchString }: { searchString?: stri
101
102
  .map((step) => {
102
103
  let character = step.dialoge?.character
103
104
  ? getCharacterById(step.dialoge?.character) ??
104
- new CharacterBaseModel(step.dialoge?.character, { name: tNarration(step.dialoge?.character) })
105
+ new Character(step.dialoge?.character, { name: tNarration(step.dialoge?.character) })
105
106
  : undefined;
106
107
  return {
107
108
  character: character?.name
@@ -24,11 +24,12 @@ type TypewriterStoreType = {
24
24
  };
25
25
 
26
26
  const useTypewriterStore = create<TypewriterStoreType>((set) => ({
27
- delay: localStorage.getItem("typewriter_delay_millisecond")
28
- ? parseInt(localStorage.getItem("typewriter_delay_millisecond")!)
29
- : 10,
27
+ delay:
28
+ typeof localStorage.getItem("typewriter_delay_millisecond") === "number"
29
+ ? parseInt(localStorage.getItem("typewriter_delay_millisecond")!)
30
+ : 10,
30
31
  setDelay: (value: number) => {
31
- if (value) {
32
+ if (typeof value === "number") {
32
33
  localStorage.setItem("typewriter_delay_millisecond", value.toString());
33
34
  set({ delay: value });
34
35
  }
@@ -1,6 +1,7 @@
1
- import { CharacterBaseModel, getCharacterById, narration } from "@drincs/pixi-vn";
1
+ import { CharacterInterface, getCharacterById, narration } from "@drincs/pixi-vn";
2
2
  import { useQuery, useQueryClient } from "@tanstack/react-query";
3
3
  import { useTranslation } from "react-i18next";
4
+ import Character from "../models/Character";
4
5
 
5
6
  export const INTERFACE_DATA_USE_QUEY_KEY = "interface_data_use_quey_key";
6
7
 
@@ -41,7 +42,7 @@ export function useQueryInputValue<T>() {
41
42
  type DialogueModel = {
42
43
  text?: string;
43
44
  oldText?: string;
44
- character?: CharacterBaseModel;
45
+ character?: CharacterInterface;
45
46
  };
46
47
  const DIALOGUE_USE_QUEY_KEY = "dialogue_use_quey_key";
47
48
  export function useQueryDialogue() {
@@ -53,11 +54,11 @@ export function useQueryDialogue() {
53
54
  queryFn: ({ queryKey }) => {
54
55
  let dialogue = narration.dialogue;
55
56
  let text: string | undefined = dialogue?.text;
56
- let newCharacter: CharacterBaseModel | undefined = undefined;
57
+ let newCharacter: CharacterInterface | undefined = undefined;
57
58
  if (dialogue) {
58
59
  newCharacter = dialogue.character ? getCharacterById(dialogue.character) : undefined;
59
60
  if (!newCharacter && dialogue.character) {
60
- newCharacter = new CharacterBaseModel(dialogue.character, { name: tNarration(dialogue.character) });
61
+ newCharacter = new Character(dialogue.character, { name: tNarration(dialogue.character) });
61
62
  }
62
63
  }
63
64
 
@@ -101,7 +102,7 @@ export function useQueryNarrativeHistory({ searchString }: { searchString?: stri
101
102
  .map((step) => {
102
103
  let character = step.dialoge?.character
103
104
  ? getCharacterById(step.dialoge?.character) ??
104
- new CharacterBaseModel(step.dialoge?.character, { name: tNarration(step.dialoge?.character) })
105
+ new Character(step.dialoge?.character, { name: tNarration(step.dialoge?.character) })
105
106
  : undefined;
106
107
  return {
107
108
  character: character?.name
@@ -24,11 +24,12 @@ type TypewriterStoreType = {
24
24
  };
25
25
 
26
26
  const useTypewriterStore = create<TypewriterStoreType>((set) => ({
27
- delay: localStorage.getItem("typewriter_delay_millisecond")
28
- ? parseInt(localStorage.getItem("typewriter_delay_millisecond")!)
29
- : 10,
27
+ delay:
28
+ typeof localStorage.getItem("typewriter_delay_millisecond") === "number"
29
+ ? parseInt(localStorage.getItem("typewriter_delay_millisecond")!)
30
+ : 10,
30
31
  setDelay: (value: number) => {
31
- if (value) {
32
+ if (typeof value === "number") {
32
33
  localStorage.setItem("typewriter_delay_millisecond", value.toString());
33
34
  set({ delay: value });
34
35
  }
@@ -1,6 +1,7 @@
1
- import { CharacterBaseModel, getCharacterById, narration } from "@drincs/pixi-vn";
1
+ import { CharacterInterface, getCharacterById, narration } from "@drincs/pixi-vn";
2
2
  import { useQuery, useQueryClient } from "@tanstack/react-query";
3
3
  import { useTranslation } from "react-i18next";
4
+ import Character from "../models/Character";
4
5
 
5
6
  export const INTERFACE_DATA_USE_QUEY_KEY = "interface_data_use_quey_key";
6
7
 
@@ -41,7 +42,7 @@ export function useQueryInputValue<T>() {
41
42
  type DialogueModel = {
42
43
  text?: string;
43
44
  oldText?: string;
44
- character?: CharacterBaseModel;
45
+ character?: CharacterInterface;
45
46
  };
46
47
  const DIALOGUE_USE_QUEY_KEY = "dialogue_use_quey_key";
47
48
  export function useQueryDialogue() {
@@ -53,11 +54,11 @@ export function useQueryDialogue() {
53
54
  queryFn: ({ queryKey }) => {
54
55
  let dialogue = narration.dialogue;
55
56
  let text: string | undefined = dialogue?.text;
56
- let newCharacter: CharacterBaseModel | undefined = undefined;
57
+ let newCharacter: CharacterInterface | undefined = undefined;
57
58
  if (dialogue) {
58
59
  newCharacter = dialogue.character ? getCharacterById(dialogue.character) : undefined;
59
60
  if (!newCharacter && dialogue.character) {
60
- newCharacter = new CharacterBaseModel(dialogue.character, { name: tNarration(dialogue.character) });
61
+ newCharacter = new Character(dialogue.character, { name: tNarration(dialogue.character) });
61
62
  }
62
63
  }
63
64
 
@@ -101,7 +102,7 @@ export function useQueryNarrativeHistory({ searchString }: { searchString?: stri
101
102
  .map((step) => {
102
103
  let character = step.dialoge?.character
103
104
  ? getCharacterById(step.dialoge?.character) ??
104
- new CharacterBaseModel(step.dialoge?.character, { name: tNarration(step.dialoge?.character) })
105
+ new Character(step.dialoge?.character, { name: tNarration(step.dialoge?.character) })
105
106
  : undefined;
106
107
  return {
107
108
  character: character?.name
@@ -24,11 +24,12 @@ type TypewriterStoreType = {
24
24
  };
25
25
 
26
26
  const useTypewriterStore = create<TypewriterStoreType>((set) => ({
27
- delay: localStorage.getItem("typewriter_delay_millisecond")
28
- ? parseInt(localStorage.getItem("typewriter_delay_millisecond")!)
29
- : 10,
27
+ delay:
28
+ typeof localStorage.getItem("typewriter_delay_millisecond") === "number"
29
+ ? parseInt(localStorage.getItem("typewriter_delay_millisecond")!)
30
+ : 10,
30
31
  setDelay: (value: number) => {
31
- if (value) {
32
+ if (typeof value === "number") {
32
33
  localStorage.setItem("typewriter_delay_millisecond", value.toString());
33
34
  set({ delay: value });
34
35
  }
@@ -1,6 +1,7 @@
1
- import { CharacterBaseModel, getCharacterById, narration } from "@drincs/pixi-vn";
1
+ import { CharacterInterface, getCharacterById, narration } from "@drincs/pixi-vn";
2
2
  import { useQuery, useQueryClient } from "@tanstack/react-query";
3
3
  import { useTranslation } from "react-i18next";
4
+ import Character from "../models/Character";
4
5
 
5
6
  export const INTERFACE_DATA_USE_QUEY_KEY = "interface_data_use_quey_key";
6
7
 
@@ -41,7 +42,7 @@ export function useQueryInputValue<T>() {
41
42
  type DialogueModel = {
42
43
  text?: string;
43
44
  oldText?: string;
44
- character?: CharacterBaseModel;
45
+ character?: CharacterInterface;
45
46
  };
46
47
  const DIALOGUE_USE_QUEY_KEY = "dialogue_use_quey_key";
47
48
  export function useQueryDialogue() {
@@ -53,11 +54,11 @@ export function useQueryDialogue() {
53
54
  queryFn: ({ queryKey }) => {
54
55
  let dialogue = narration.dialogue;
55
56
  let text: string | undefined = dialogue?.text;
56
- let newCharacter: CharacterBaseModel | undefined = undefined;
57
+ let newCharacter: CharacterInterface | undefined = undefined;
57
58
  if (dialogue) {
58
59
  newCharacter = dialogue.character ? getCharacterById(dialogue.character) : undefined;
59
60
  if (!newCharacter && dialogue.character) {
60
- newCharacter = new CharacterBaseModel(dialogue.character, { name: tNarration(dialogue.character) });
61
+ newCharacter = new Character(dialogue.character, { name: tNarration(dialogue.character) });
61
62
  }
62
63
  }
63
64
 
@@ -101,7 +102,7 @@ export function useQueryNarrativeHistory({ searchString }: { searchString?: stri
101
102
  .map((step) => {
102
103
  let character = step.dialoge?.character
103
104
  ? getCharacterById(step.dialoge?.character) ??
104
- new CharacterBaseModel(step.dialoge?.character, { name: tNarration(step.dialoge?.character) })
105
+ new Character(step.dialoge?.character, { name: tNarration(step.dialoge?.character) })
105
106
  : undefined;
106
107
  return {
107
108
  character: character?.name